[02:51:41]OFD Sender: No OFD packet to send [02:51:46]OFD Sender: No OFD packet to send [02:51:51]OFD Sender: No OFD packet to send [02:51:56]OFD Sender: No OFD packet to send [02:52:01]OFD Sender: No OFD packet to send [02:52:06]OFD Sender: No OFD packet to send [02:52:11]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52:42]OFD Sender: No OFD packet to send [02:52:47]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:02]OFD Sender: No OFD packet to send [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send [02:58:07]OFD Sender: No OFD packet to send [02:58:12]OFD Sender: No OFD packet to send [02:58:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:35]accept exits with 9 [03:00:35]New connection [03:00:35]New thread 3067383140 created [03:00:35]Thread 3067239780 joined [03:00:35]Waiting for new connection... [03:00:35] Sock 9.Parse request [03:00:35]Sock 9.Check first char [03:00:35]Sock 9.First char is OK [03:00:35]request: POST /json_proto HTTP/1.0 [03:00:35]Method: POST [03:00:35]URL: /json_proto [03:00:35]Method is POST - this is cgi request [03:00:35]url: /json_proto [03:00:35]query_string will be loaded in cgi processing [03:00:35]execute_cgi json_proto POST (null) [03:00:35]execute_cgi path=json_proto method=POST [03:00:35]POST find Content-Length [03:00:35]Host: 172.17.45.7:8080 [03:00:35]Content-Length: 677 [03:00:35]Content-Type: application/json [03:00:35] [03:00:35]POST finish read [03:00:35]Found Content-Length = 677 [03:00:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.030, "sum" : 205.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 205.00, "total" : 205.00, "payments": [ { "type": 0, "sum" : 205.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:00:35]execute_script... [03:00:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.030, "sum" : 205.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 205.00, "total" : 205.00, "payments": [ { "type": 0, "sum" : 205.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:00:35]POST & json_proto [03:00:35]process_json_proto [03:00:35]json parsed OK: [03:00:35]protocol is kg_v1.0 [03:00:35]action value=close_receipt [03:00:35]process_action close_receipt [03:00:35]cmd_close_receipt [03:00:35]MH_GetDate [03:00:35]Write to MH i2c: F0 00 00 2F 2B 49 [03:00:35]Write i2c OK [03:00:35]MH_I2C_Read... [03:00:35]Read from MH i2c: F0 [03:00:35]MH_I2C_Read... [03:00:35]Read from MH i2c: F0 09 00 [03:00:35]MH_I2C_Read... [03:00:35]Read from MH i2c: F0 09 00 2F 2B 00 D6 05 A7 66 90 0F 3E 66 7D [03:00:35]GetLastDocTimeStamp 1722218914 [03:00:35]current date 1722222038 [03:00:35]FM_GetShiftState [03:00:35]SAM_PROTO_GetShiftState [03:00:35]wFMCommunicate request_size=4 [03:00:35]MH_SAM_APDU [03:00:35]CAPDU: 80 13 01 00 [03:00:35]Write to MH i2c: E2 08 00 30 2B 80 13 01 00 00 00 00 00 D8 [03:00:35]Write i2c OK [03:00:35]MH_I2C_Read... [03:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:00:35]Read from MH i2c: E2 [03:00:35]MH_I2C_Read... [03:00:35]Read from MH i2c: E2 0E 00 [03:00:35]MH_I2C_Read... [03:00:35]Read from MH i2c: E2 0E 00 30 2B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 06 [03:00:35]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [03:00:35]wFMCommunicate OK [03:00:35]SAM_PROTO_GetShiftState done [03:00:35]FM_GetShiftState done [03:00:35]opened in 1722211641 [03:00:35]opened+sec_in_day 1722298041 [03:00:35]quantity*price = 20543 [03:00:35]sum+1 = 20544 [03:00:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 205.00 Внесено: 205.00 СДАЧА: 0.00 НСП 1% : 1.82 НДС 12% : 21.82 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 9 29.07.2024 03:00 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118633 ФПД: 211667502443859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T030038&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118633&fm=211667502443859&tin=02508201610067®Number=0000000000092660&sum=20500 [03:00:36]StoreToDocumentArchive [03:00:36]shift 434 fd 118633 [03:00:36]save to /storage/0434/doc_00118633 [03:00:36]save last doc name /storage/0434/doc_00118633 to /storage/kkm_last_doc_name [03:00:36]save OK [03:00:36]Clear old archive folders... [03:00:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:00:36]tlvbuf is B6FC19A0 [03:00:36]SAM_PROTO_ClearQueue [03:00:36]wFMCommunicate request_size=4 [03:00:36]MH_SAM_APDU [03:00:36]CAPDU: 80 09 00 00 [03:00:36]Write to MH i2c: E2 08 00 3D 2B 80 09 00 00 00 00 00 00 DA [03:00:36]Write i2c OK [03:00:36]MH_I2C_Read... [03:00:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:00:36]Read from MH i2c: E2 [03:00:36]MH_I2C_Read... [03:00:36]Read from MH i2c: E2 03 00 [03:00:36]MH_I2C_Read... [03:00:36]Read from MH i2c: E2 03 00 3D 2B 00 90 00 DC [03:00:36]RAPDU: 90 00 [03:00:36]wFMCommunicate OK [03:00:36]SAM_PROTO_ClearQueue done [03:00:36]KKMCreateOFDPacket [03:00:36]OFDProtocolAddRootSTLVToBuf [03:00:36]FM_MakeSignedData [03:00:36]FM_MakeSignedData [03:00:36]SAM_PROTO_SignData [03:00:36]wFMCommunicate request_size=4 [03:00:36]MH_SAM_APDU [03:00:36]CAPDU: 80 0D 01 02 [03:00:36]Write to MH i2c: E2 08 00 3E 2B 80 0D 01 02 00 00 00 00 E2 [03:00:36]Write i2c OK [03:00:36]MH_I2C_Read... [03:00:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:00:36]Read from MH i2c: E2 [03:00:36]MH_I2C_Read... [03:00:36]Read from MH i2c: E2 03 00 [03:00:36]MH_I2C_Read... [03:00:36]Read from MH i2c: E2 03 00 3E 2B 00 90 00 DD [03:00:36]RAPDU: 90 00 [03:00:36]wFMCommunicate OK [03:00:36]wFMCommunicate request_size=255 [03:00:36]MH_SAM_APDU [03:00:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D6 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3F 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 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 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 09 00 00 00 F4 03 04 00 D6 05 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 CF 01 00 35 04 06 00 C0 [03:00:36]Write to MH i2c: E2 02 01 3F 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D6 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3F 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 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 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 09 00 00 00 F4 03 04 00 D6 05 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 CF 01 00 35 04 06 00 C0 00 00 A0 [03:00:36]Write i2c OK [03:00:36]MH_I2C_Read... [03:00:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:00:36]Read from MH i2c: E2 [03:00:36]MH_I2C_Read... [03:00:36]Read from MH i2c: E2 03 00 [03:00:36]MH_I2C_Read... [03:00:36]Read from MH i2c: E2 03 00 3F 2B 00 90 00 DE [03:00:36]RAPDU: 90 00 [03:00:36]wFMCommunicate OK [03:00:36]wFMCommunicate request_size=10 [03:00:36]MH_SAM_APDU [03:00:36]CAPDU: 80 0D 02 02 05 82 AE 4B 2D 53 [03:00:36]Write to MH i2c: E2 0D 00 40 2B 80 0D 02 02 05 00 82 AE 4B 2D 53 00 00 EA [03:00:36]Write i2c OK [03:00:36]MH_I2C_Read... [03:00:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:00:36]Read from MH i2c: E2 [03:00:36]MH_I2C_Read... [03:00:36]Read from MH i2c: E2 03 00 [03:00:36]MH_I2C_Read... [03:00:36]Read from MH i2c: E2 03 00 40 2B 00 90 00 DF [03:00:36]RAPDU: 90 00 [03:00:36]wFMCommunicate OK [03:00:36]wFMCommunicate request_size=4 [03:00:36]MH_SAM_APDU [03:00:36]CAPDU: 80 0D 03 02 [03:00:36]Write to MH i2c: E2 08 00 41 2B 80 0D 03 02 00 00 00 00 E7 [03:00:36]Write i2c OK [03:00:36]MH_I2C_Read... [03:00:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:00:36]Read from MH i2c: E2 [03:00:36]MH_I2C_Read... [03:00:36]Read from MH i2c: E2 0B 00 [03:00:36]MH_I2C_Read... [03:00:36]Read from MH i2c: E2 0B 00 41 2B 00 98 32 00 90 03 DC 5A 79 90 00 F4 [03:00:36]RAPDU: 98 32 00 90 03 DC 5A 79 90 00 [03:00:36]wFMCommunicate OK [03:00:36]SAM_PROTO_SignData done [03:00:36]FM_MakeSignedData done [03:00:36]CreateOFDProtocolMessage [03:00:36]wFMCommunicate request_size=4 [03:00:36]MH_SAM_APDU [03:00:36]CAPDU: 80 11 00 00 [03:00:36]Write to MH i2c: E2 08 00 42 2B 80 11 00 00 00 00 00 00 E7 [03:00:36]Write i2c OK [03:00:36]MH_I2C_Read... [03:00:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:00:37]Read from MH i2c: E2 [03:00:37]MH_I2C_Read... [03:00:37]Read from MH i2c: E2 17 00 [03:00:37]MH_I2C_Read... [03:00:37]Read from MH i2c: E2 17 00 42 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 42 [03:00:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:00:37]wFMCommunicate OK [03:00:37]CreateOFDProtocolMessage done [03:00:37]OFDSenderStorePacket 118633 [03:00:37]StoreOFDPacket docnum=118633 [03:00:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4A 4E 07 01 C6 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D6 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3F 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 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 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 09 00 00 00 F4 03 04 00 D6 05 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 CF 01 00 35 04 06 00 C0 82 AE 4B 2D 53 98 32 00 90 03 DC 5A 79 [03:00:37]CheckFolder [03:00:37]dirname=/storage/ofd_packets [03:00:37]CheckFolder done [03:00:37]ProducePacketName [03:00:37]name=ofd_packets/00118633 [03:00:37]NVStorageSaveData ofd_packets/00118633 [03:00:37]File name is /storage/ofd_packets/00118633 [03:00:37]Write 301 bytes [03:00:37]NVStorageSaveData done [03:00:37]OFDSenderStorePacket done [03:00:37]KKMCreateOFDPacket done [03:00:37]NVStorageSaveData kkm_last_timestamp [03:00:37]File name is /storage/kkm_last_timestamp [03:00:37]Write 4 bytes [03:00:37]NVStorageSaveData done [03:00:37]ExternCall_PrintAddStr [03:00:37]wPrintStart [03:00:37]Write to MH i2c: 01 00 00 43 2B 6E [03:00:37]Write i2c OK [03:00:37]MH_I2C_Read... [03:00:37]Read from MH i2c: 01 [03:00:37]MH_I2C_Read... [03:00:37]Read from MH i2c: 01 07 00 [03:00:37]MH_I2C_Read... [03:00:37]Read from MH i2c: 01 07 00 43 2B 00 00 00 00 00 FF 0F 83 [03:00:37]RasterBufferAndPrint [03:00:37]line Счет N : (1)949517 [03:00:37]line ИНН: 02508201610067 [03:00:37]line Контрольно-Кассовый Чек [03:00:37]line ПРОДАЖА [03:00:37]line ТРК (МРК, ГНК) : 31 [03:00:37]line Товар: 2710124130 [03:00:37]line Аи-92-К-4 [03:00:37]line 3.030 * 67.80 [03:00:37]line = 205.43 [03:00:37]line НДС 12% НСП 1% [03:00:37]line > о реализуемом товаре [03:00:37]line ОКРУГЛЕНИЕ: -0.43 [03:00:37]line ИТОГО: 205.00 [03:00:37]line Внесено: 205.00 [03:00:37]line СДАЧА: 0.00 [03:00:37]line НСП 1% : 1.82 [03:00:37]line НДС 12% : 21.82 [03:00:37]line Наличными: 205.00 [03:00:37]line Безнал.: 0.00 [03:00:37]line Место: АЗС № 134 "Партнер Нефть" [03:00:37]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [03:00:37]line СНО: Общий режим [03:00:37]line Чек 9 29.07.2024 03:00 [03:00:37]line Смена: 434 ФФД: 1.0 [03:00:37]line ЗНМ: 0300000044 [03:00:37]line РНМ: 0000000000092660 [03:00:37]line Версия ККМ: 001 [03:00:37]line ФМ: 0000000000874939 [03:00:37]line ФД: 118633 [03:00:37]line ФПД: 211667502443859 [03:00:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T030038&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118633&fm=211667502443859&tin=02508201610067®Number=0000000000092660&sum=20500 [03:00:37]written 0, free lines is 4095 [03:00:37]OFD Sender: Processing packet 118633 [packets to send 86, broken 85] [03:00:37]ProducePacketName [03:00:37]name=ofd_packets/00118633 [03:00:37]OFD Sender: To server: pG, [03:00:37]CommunicateWithHost lk.salyk.kg:30040 [03:00:37]ConnectInit lk.salyk.kg [03:00:37]Connected sock=10 [03:00:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4A 4E 07 01 C6 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D6 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3F 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 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 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 09 00 00 00 F4 03 04 00 D6 05 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 CF 01 00 35 04 06 00 C0 82 AE 4B 2D 53 98 32 00 90 03 DC 5A 79 [03:00:37]Write to MH i2c: 01 00 00 6D 2B 98 [03:00:37]Write i2c OK [03:00:37]MH_I2C_Read... [03:00:37]Read from MH i2c: 01 [03:00:37]MH_I2C_Read... [03:00:37]Read from MH i2c: 01 07 00 [03:00:37]MH_I2C_Read... [03:00:37]Read from MH i2c: 01 07 00 6D 2B 00 00 00 00 00 CF 0C 7A [03:00:37]RasterBufferAndPrint [03:00:37]line [03:00:37]line [03:00:37]line [03:00:37]line [03:00:37]line [03:00:37]written 0, free lines is 3286 [03:00:37]MH_Cut [03:00:37]Write to MH i2c: D1 01 00 74 2B 01 71 [03:00:37]Write i2c OK [03:00:37]MH_I2C_Read... [03:00:37]Read from MH i2c: D1 [03:00:37]MH_I2C_Read... [03:00:37]Read from MH i2c: D1 01 00 [03:00:37]MH_I2C_Read... [03:00:37]Read from MH i2c: D1 01 00 74 2B 00 70 [03:00:37]Write to MH i2c: 01 00 00 75 2B A0 [03:00:37]Write i2c OK [03:00:37]MH_I2C_Read... [03:00:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D1 CE 47 00 76 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 CF 01 00 F4 03 04 00 65 B3 A6 66 B6 04 01 00 00 19 12 0B 23 C8 DB E2 E7 [03:00:37]CommunicateWithHost err = 0 [03:00:37]CheckOFDResponse [03:00:37]1017 (14) - 77093643461234 [03:00:37]1041 (16) - 0000000000874939 [03:00:37]1040 (4) - 118633 [03:00:37]1012 (4) - 28.07.2024 21:08 [03:00:37]1206 (1) - 0 [03:00:37]OFD Sender: Remove packet 118633 [03:00:37]ProducePacketName [03:00:37]name=ofd_packets/00118633 [03:00:37]NVStorageDeleteData [03:00:38]OFD Sender: No OFD packet to send [03:00:38]*** Cut start [03:00:38]*** Partial cut [03:00:38]*** CUTSNS_PIN = 1 [03:00:38]*** CUTSNS_PIN = 0 [03:00:38]*** Brake cut motor [03:00:38]Read from MH i2c: 01 [03:00:38]MH_I2C_Read... [03:00:38]*** Stop cut motor [03:00:38]*** Cut end [03:00:38]Read from MH i2c: 01 07 00 [03:00:38]MH_I2C_Read... [03:00:38]Read from MH i2c: 01 07 00 75 2B 00 00 00 00 00 FF 0F B5 [03:00:38]process_action close_receipt done [03:00:38]requested_data is exist [03:00:38]produce_requested_data [03:00:38]requested_item fm.sn is exist - process it [03:00:38]wFMCommunicate request_size=4 [03:00:38]MH_SAM_APDU [03:00:38]CAPDU: 80 11 00 00 [03:00:38]Write to MH i2c: E2 08 00 76 2B 80 11 00 00 00 00 00 00 1B [03:00:38]Write i2c OK [03:00:38]MH_I2C_Read... [03:00:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:00:38]Read from MH i2c: E2 [03:00:38]MH_I2C_Read... [03:00:38]Read from MH i2c: E2 17 00 [03:00:38]MH_I2C_Read... [03:00:38]Read from MH i2c: E2 17 00 76 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 76 [03:00:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:00:38]wFMCommunicate OK [03:00:38]requested_item fd.num is exist - process it [03:00:38]SAM_PROTO_GetFieldsCounters [03:00:38]wFMCommunicate request_size=4 [03:00:38]MH_SAM_APDU [03:00:38]CAPDU: 80 13 00 00 [03:00:38]Write to MH i2c: E2 08 00 77 2B 80 13 00 00 00 00 00 00 1E [03:00:38]Write i2c OK [03:00:38]MH_I2C_Read... [03:00:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:00:39]Read from MH i2c: E2 [03:00:39]MH_I2C_Read... [03:00:39]Read from MH i2c: E2 62 00 [03:00:39]MH_I2C_Read... [03:00:39]Read from MH i2c: E2 62 00 77 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 69 CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [03:00:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 69 CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:00:39]wFMCommunicate OK [03:00:39]SAM_PROTO_GetFieldsCounters done [03:00:39]requested_item shift.num is exist - process it [03:00:39]requested_item shift.opened is exist - process it [03:00:39]req_shift_opened [03:00:39]FM_GetShiftState [03:00:39]SAM_PROTO_GetShiftState [03:00:39]wFMCommunicate request_size=4 [03:00:39]MH_SAM_APDU [03:00:39]CAPDU: 80 13 01 00 [03:00:39]Write to MH i2c: E2 08 00 78 2B 80 13 01 00 00 00 00 00 20 [03:00:39]Write i2c OK [03:00:39]MH_I2C_Read... [03:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:00:39]Read from MH i2c: E2 [03:00:39]MH_I2C_Read... [03:00:39]Read from MH i2c: E2 0E 00 [03:00:39]MH_I2C_Read... [03:00:39]Read from MH i2c: E2 0E 00 78 2B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 4E [03:00:39]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [03:00:39]wFMCommunicate OK [03:00:39]SAM_PROTO_GetShiftState done [03:00:39]FM_GetShiftState done [03:00:39]req_shift_opened done [03:00:39]requested_item shift.open_date is exist - process it [03:00:39]req_shift_open_date [03:00:39]req_shift_open_date done [03:00:39]produce_requested_data done [03:00:39]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118633,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [03:00:39]process_action_free close_receipt [03:00:39]json_value_free [03:00:39]json_value_free done [03:00:39]process_json_proto returns [03:00:39]Send response to host [03:00:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118633,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [03:00:39]free response buf [03:00:39]execute_script done [03:00:39]execute_script returns [03:00:39]free content buf [03:00:39]Sock 9.Close socket [03:00:39]Sock 9.Thread stoped [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:55]OFD Sender: No OFD packet to send [03:30:00]OFD Sender: No OFD packet to send [03:30:05]OFD Sender: No OFD packet to send [03:30:10]OFD Sender: No OFD packet to send [03:30:15]OFD Sender: No OFD packet to send [03:30:20]OFD Sender: No OFD packet to send [03:30:25]OFD Sender: No OFD packet to send [03:30:30]OFD Sender: No OFD packet to send [03:30:35]OFD Sender: No OFD packet to send [03:30:40]OFD Sender: No OFD packet to send [03:30:45]OFD Sender: No OFD packet to send [03:30:50]OFD Sender: No OFD packet to send [03:30:55]OFD Sender: No OFD packet to send [03:31:00]OFD Sender: No OFD packet to send [03:31:05]OFD Sender: No OFD packet to send [03:31:10]OFD Sender: No OFD packet to send [03:31:15]OFD Sender: No OFD packet to send [03:31:20]OFD Sender: No OFD packet to send [03:31:25]OFD Sender: No OFD packet to send [03:31:30]OFD Sender: No OFD packet to send [03:31:35]OFD Sender: No OFD packet to send [03:31:40]OFD Sender: No OFD packet to send [03:31:45]OFD Sender: No OFD packet to send [03:31:50]OFD Sender: No OFD packet to send [03:31:55]OFD Sender: No OFD packet to send [03:32:00]OFD Sender: No OFD packet to send [03:32:05]OFD Sender: No OFD packet to send [03:32:10]OFD Sender: No OFD packet to send [03:32:15]OFD Sender: No OFD packet to send [03:32:20]OFD Sender: No OFD packet to send [03:32:25]OFD Sender: No OFD packet to send [03:32:30]OFD Sender: No OFD packet to send [03:32:35]OFD Sender: No OFD packet to send [03:32:40]OFD Sender: No OFD packet to send [03:32:45]OFD Sender: No OFD packet to send [03:32:50]OFD Sender: No OFD packet to send [03:32:55]OFD Sender: No OFD packet to send [03:33:00]OFD Sender: No OFD packet to send [03:33:05]OFD Sender: No OFD packet to send [03:33:10]OFD Sender: No OFD packet to send [03:33:15]OFD Sender: No OFD packet to send [03:33:20]OFD Sender: No OFD packet to send [03:33:25]OFD Sender: No OFD packet to send [03:33:30]OFD Sender: No OFD packet to send [03:33:35]OFD Sender: No OFD packet to send [03:33:40]OFD Sender: No OFD packet to send [03:33:45]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:40]OFD Sender: No OFD packet to send [03:35:45]OFD Sender: No OFD packet to send [03:35:50]OFD Sender: No OFD packet to send [03:35:55]OFD Sender: No OFD packet to send [03:36:00]OFD Sender: No OFD packet to send [03:36:05]OFD Sender: No OFD packet to send [03:36:10]OFD Sender: No OFD packet to send [03:36:15]OFD Sender: No OFD packet to send [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]OFD Sender: No OFD packet to send [03:36:45]OFD Sender: No OFD packet to send [03:36:50]OFD Sender: No OFD packet to send [03:36:55]OFD Sender: No OFD packet to send [03:37:00]OFD Sender: No OFD packet to send [03:37:05]OFD Sender: No OFD packet to send [03:37:10]OFD Sender: No OFD packet to send [03:37:15]OFD Sender: No OFD packet to send [03:37:20]OFD Sender: No OFD packet to send [03:37:25]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:20]OFD Sender: No OFD packet to send [03:38:25]OFD Sender: No OFD packet to send [03:38:30]OFD Sender: No OFD packet to send [03:38:35]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:05]OFD Sender: No OFD packet to send [03:39:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]OFD Sender: No OFD packet to send [03:40:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:01]OFD Sender: No OFD packet to send [03:46:06]OFD Sender: No OFD packet to send [03:46:11]OFD Sender: No OFD packet to send [03:46:16]OFD Sender: No OFD packet to send [03:46:21]OFD Sender: No OFD packet to send [03:46:26]OFD Sender: No OFD packet to send [03:46:31]OFD Sender: No OFD packet to send [03:46:36]OFD Sender: No OFD packet to send [03:46:41]OFD Sender: No OFD packet to send [03:46:46]OFD Sender: No OFD packet to send [03:46:51]OFD Sender: No OFD packet to send [03:46:56]OFD Sender: No OFD packet to send [03:47:01]OFD Sender: No OFD packet to send [03:47:06]OFD Sender: No OFD packet to send [03:47:11]OFD Sender: No OFD packet to send [03:47:16]OFD Sender: No OFD packet to send [03:47:21]OFD Sender: No OFD packet to send [03:47:26]OFD Sender: No OFD packet to send [03:47:31]OFD Sender: No OFD packet to send [03:47:36]OFD Sender: No OFD packet to send [03:47:41]OFD Sender: No OFD packet to send [03:47:46]OFD Sender: No OFD packet to send [03:47:51]OFD Sender: No OFD packet to send [03:47:56]OFD Sender: No OFD packet to send [03:48:01]OFD Sender: No OFD packet to send [03:48:06]OFD Sender: No OFD packet to send [03:48:11]OFD Sender: No OFD packet to send [03:48:16]OFD Sender: No OFD packet to send [03:48:21]OFD Sender: No OFD packet to send [03:48:26]OFD Sender: No OFD packet to send [03:48:31]OFD Sender: No OFD packet to send [03:48:36]OFD Sender: No OFD packet to send [03:48:41]OFD Sender: No OFD packet to send [03:48:46]OFD Sender: No OFD packet to send [03:48:51]OFD Sender: No OFD packet to send [03:48:56]OFD Sender: No OFD packet to send [03:49:01]OFD Sender: No OFD packet to send [03:49:06]OFD Sender: No OFD packet to send [03:49:11]OFD Sender: No OFD packet to send [03:49:16]OFD Sender: No OFD packet to send [03:49:21]OFD Sender: No OFD packet to send [03:49:26]OFD Sender: No OFD packet to send [03:49:31]OFD Sender: No OFD packet to send [03:49:36]OFD Sender: No OFD packet to send [03:49:41]OFD Sender: No OFD packet to send [03:49:46]OFD Sender: No OFD packet to send [03:49:51]OFD Sender: No OFD packet to send [03:49:56]OFD Sender: No OFD packet to send [03:50:01]OFD Sender: No OFD packet to send [03:50:06]OFD Sender: No OFD packet to send [03:50:11]OFD Sender: No OFD packet to send [03:50:16]OFD Sender: No OFD packet to send [03:50:21]OFD Sender: No OFD packet to send [03:50:26]OFD Sender: No OFD packet to send [03:50:31]OFD Sender: No OFD packet to send [03:50:36]OFD Sender: No OFD packet to send [03:50:41]OFD Sender: No OFD packet to send [03:50:46]OFD Sender: No OFD packet to send [03:50:51]OFD Sender: No OFD packet to send [03:50:56]OFD Sender: No OFD packet to send [03:51:01]OFD Sender: No OFD packet to send [03:51:06]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:26]OFD Sender: No OFD packet to send [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:41]OFD Sender: No OFD packet to send [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:06]OFD Sender: No OFD packet to send [03:58:11]OFD Sender: No OFD packet to send [03:58:15]accept exits with 7 [03:58:15]New connection [03:58:15]New thread 3067239780 created [03:58:15]Thread 3067383140 joined [03:58:15]Waiting for new connection... [03:58:15] Sock 7.Parse request [03:58:15]Sock 7.Check first char [03:58:15]Sock 7.First char is OK [03:58:15]request: POST /json_proto HTTP/1.0 [03:58:15]Method: POST [03:58:15]URL: /json_proto [03:58:15]Method is POST - this is cgi request [03:58:15]url: /json_proto [03:58:15]query_string will be loaded in cgi processing [03:58:15]execute_cgi json_proto POST (null) [03:58:15]execute_cgi path=json_proto method=POST [03:58:15]POST find Content-Length [03:58:15]Host: 172.17.45.7:8080 [03:58:15]Content-Length: 1195 [03:58:15]Content-Type: application/json [03:58:15] [03:58:15]POST finish read [03:58:15]Found Content-Length = 1195 [03:58:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949518\u000A29.07.2024 03:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991023\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:58:15]execute_script... [03:58:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949518\u000A29.07.2024 03:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991023\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:58:15]POST & json_proto [03:58:15]process_json_proto [03:58:15]json parsed OK: [03:58:15]protocol is kg_v1.0 [03:58:15]action value=print_text [03:58:15]process_action print_text [03:58:15]cmd_print_text [03:58:15]ExternCall_PrintAddStr [03:58:15]wPrintStart [03:58:15]Write to MH i2c: 01 00 00 79 2B A4 [03:58:15]Write i2c OK [03:58:15]MH_I2C_Read... [03:58:15]Read from MH i2c: 01 [03:58:15]MH_I2C_Read... [03:58:15]Read from MH i2c: 01 07 00 [03:58:15]MH_I2C_Read... [03:58:15]Read from MH i2c: 01 07 00 79 2B 00 00 00 00 00 FF 0F B9 [03:58:15]RasterBufferAndPrint [03:58:15]line *****ТОВАРНЫЙ ЧЕК***** [03:58:15]line АЗС-134 [03:58:15]line Партнер нефть [03:58:15]line 02508201610067 [03:58:15]line Кассир : Казаков Ч. [03:58:15]line Счет N : (1)949518 [03:58:15]line 29.07.2024 03:55 [03:58:15]line ПРОДАЖА [03:58:15]line ТРК (МРК, ГНК): 11 [03:58:15]line Вид ГСМ : 2710194800 [03:58:15]line ДТ-К-5 [03:58:15]line 100.000 x 76.20 [03:58:15]line ИТОГ: 7620.00 [03:58:15]line Тип оплаты: Талоны: Топливные Талоны [03:58:15]line 3991023 [03:58:15]line ______________________ [03:58:15]line (подпись) [03:58:15]written 0, free lines is 4095 [03:58:15]Write to MH i2c: 01 00 00 8D 2B B8 [03:58:15]Write i2c OK [03:58:15]MH_I2C_Read... [03:58:15]Read from MH i2c: 01 [03:58:15]MH_I2C_Read... [03:58:15]Read from MH i2c: 01 07 00 [03:58:15]MH_I2C_Read... [03:58:15]Read from MH i2c: 01 07 00 8D 2B 00 00 00 00 00 0E 0E DB [03:58:15]RasterBufferAndPrint [03:58:15]line [03:58:15]line [03:58:15]line [03:58:15]line [03:58:15]line [03:58:15]written 0, free lines is 3599 [03:58:15]MH_Cut [03:58:15]Write to MH i2c: D1 01 00 94 2B 01 91 [03:58:15]Write i2c OK [03:58:15]MH_I2C_Read... [03:58:15]Read from MH i2c: D1 [03:58:15]MH_I2C_Read... [03:58:15]Read from MH i2c: D1 01 00 [03:58:15]MH_I2C_Read... [03:58:15]Read from MH i2c: D1 01 00 94 2B 00 90 [03:58:15]Write to MH i2c: 01 00 00 95 2B C0 [03:58:15]Write i2c OK [03:58:15]MH_I2C_Read... [03:58:16]*** Cut start [03:58:16]*** Partial cut [03:58:16]*** CUTSNS_PIN = 1 [03:58:16]*** CUTSNS_PIN = 0 [03:58:16]*** Brake cut motor [03:58:16]OFD Sender: No OFD packet to send [03:58:16]Read from MH i2c: 01 [03:58:16]MH_I2C_Read... [03:58:16]*** Stop cut motor [03:58:16]*** Cut end [03:58:16]Read from MH i2c: 01 07 00 [03:58:16]MH_I2C_Read... [03:58:16]Read from MH i2c: 01 07 00 95 2B 00 00 00 00 00 FF 0F D5 [03:58:16]process_action print_text done [03:58:16]requested_data is exist [03:58:16]produce_requested_data [03:58:16]requested_item fm.sn is exist - process it [03:58:16]wFMCommunicate request_size=4 [03:58:16]MH_SAM_APDU [03:58:16]CAPDU: 80 11 00 00 [03:58:16]Write to MH i2c: E2 08 00 96 2B 80 11 00 00 00 00 00 00 3B [03:58:16]Write i2c OK [03:58:16]MH_I2C_Read... [03:58:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:58:16]Read from MH i2c: E2 [03:58:16]MH_I2C_Read... [03:58:16]Read from MH i2c: E2 17 00 [03:58:16]MH_I2C_Read... [03:58:16]Read from MH i2c: E2 17 00 96 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 96 [03:58:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:58:16]wFMCommunicate OK [03:58:16]requested_item fd.num is exist - process it [03:58:16]SAM_PROTO_GetFieldsCounters [03:58:16]wFMCommunicate request_size=4 [03:58:16]MH_SAM_APDU [03:58:16]CAPDU: 80 13 00 00 [03:58:16]Write to MH i2c: E2 08 00 97 2B 80 13 00 00 00 00 00 00 3E [03:58:16]Write i2c OK [03:58:16]MH_I2C_Read... [03:58:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:58:16]Read from MH i2c: E2 [03:58:16]MH_I2C_Read... [03:58:16]Read from MH i2c: E2 62 00 [03:58:16]MH_I2C_Read... [03:58:17]Read from MH i2c: E2 62 00 97 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 69 CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [03:58: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 69 CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:58:17]wFMCommunicate OK [03:58:17]SAM_PROTO_GetFieldsCounters done [03:58:17]requested_item shift.num is exist - process it [03:58:17]requested_item shift.opened is exist - process it [03:58:17]req_shift_opened [03:58:17]FM_GetShiftState [03:58:17]SAM_PROTO_GetShiftState [03:58:17]wFMCommunicate request_size=4 [03:58:17]MH_SAM_APDU [03:58:17]CAPDU: 80 13 01 00 [03:58:17]Write to MH i2c: E2 08 00 98 2B 80 13 01 00 00 00 00 00 40 [03:58:17]Write i2c OK [03:58:17]MH_I2C_Read... [03:58:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:58:17]Read from MH i2c: E2 [03:58:17]MH_I2C_Read... [03:58:17]Read from MH i2c: E2 0E 00 [03:58:17]MH_I2C_Read... [03:58:17]Read from MH i2c: E2 0E 00 98 2B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 6E [03:58:17]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [03:58:17]wFMCommunicate OK [03:58:17]SAM_PROTO_GetShiftState done [03:58:17]FM_GetShiftState done [03:58:17]req_shift_opened done [03:58:17]requested_item shift.open_date is exist - process it [03:58:17]req_shift_open_date [03:58:17]req_shift_open_date done [03:58:17]produce_requested_data done [03:58:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118633,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [03:58:17]process_action_free print_text [03:58:17]json_value_free [03:58:17]json_value_free done [03:58:17]process_json_proto returns [03:58:17]Send response to host [03:58:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118633,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [03:58:17]free response buf [03:58:17]execute_script done [03:58:17]execute_script returns [03:58:17]free content buf [03:58:17]Sock 7.Close socket [03:58:17]Sock 7.Thread stoped [03:58:21]OFD Sender: No OFD packet to send [03:58:22]accept exits with 9 [03:58:22]New connection [03:58:22]New thread 3067383140 created [03:58:22]Thread 3067239780 joined [03:58:22]Waiting for new connection... [03:58:22] Sock 9.Parse request [03:58:22]Sock 9.Check first char [03:58:22]Sock 9.First char is OK [03:58:22]request: POST /json_proto HTTP/1.0 [03:58:22]Method: POST [03:58:22]URL: /json_proto [03:58:22]Method is POST - this is cgi request [03:58:22]url: /json_proto [03:58:22]query_string will be loaded in cgi processing [03:58:22]execute_cgi json_proto POST (null) [03:58:22]execute_cgi path=json_proto method=POST [03:58:22]POST find Content-Length [03:58:22]Host: 172.17.45.7:8080 [03:58:22]Content-Length: 1195 [03:58:22]Content-Type: application/json [03:58:22] [03:58:22]POST finish read [03:58:22]Found Content-Length = 1195 [03:58:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949519\u000A29.07.2024 03:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991024\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:58:22]execute_script... [03:58:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949519\u000A29.07.2024 03:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991024\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:58:22]POST & json_proto [03:58:22]process_json_proto [03:58:22]json parsed OK: [03:58:22]protocol is kg_v1.0 [03:58:22]action value=print_text [03:58:22]process_action print_text [03:58:22]cmd_print_text [03:58:22]ExternCall_PrintAddStr [03:58:22]wPrintStart [03:58:22]Write to MH i2c: 01 00 00 99 2B C4 [03:58:22]Write i2c OK [03:58:22]MH_I2C_Read... [03:58:22]Read from MH i2c: 01 [03:58:22]MH_I2C_Read... [03:58:22]Read from MH i2c: 01 07 00 [03:58:22]MH_I2C_Read... [03:58:22]Read from MH i2c: 01 07 00 99 2B 00 00 00 00 00 FF 0F D9 [03:58:22]RasterBufferAndPrint [03:58:22]line *****ТОВАРНЫЙ ЧЕК***** [03:58:22]line АЗС-134 [03:58:22]line Партнер нефть [03:58:22]line 02508201610067 [03:58:22]line Кассир : Казаков Ч. [03:58:22]line Счет N : (1)949519 [03:58:22]line 29.07.2024 03:56 [03:58:22]line ПРОДАЖА [03:58:22]line ТРК (МРК, ГНК): 21 [03:58:22]line Вид ГСМ : 2710194800 [03:58:22]line ДТ-К-5 [03:58:22]line 100.000 x 76.20 [03:58:22]line ИТОГ: 7620.00 [03:58:22]line Тип оплаты: Талоны: Топливные Талоны [03:58:22]line 3991024 [03:58:22]line ______________________ [03:58:22]line (подпись) [03:58:22]written 0, free lines is 4095 [03:58:22]Write to MH i2c: 01 00 00 AD 2B D8 [03:58:22]Write i2c OK [03:58:22]MH_I2C_Read... [03:58:22]Read from MH i2c: 01 [03:58:22]MH_I2C_Read... [03:58:22]Read from MH i2c: 01 07 00 [03:58:22]MH_I2C_Read... [03:58:22]Read from MH i2c: 01 07 00 AD 2B 00 00 00 00 00 0E 0E FB [03:58:22]RasterBufferAndPrint [03:58:22]line [03:58:22]line [03:58:22]line [03:58:22]line [03:58:22]line [03:58:22]written 0, free lines is 3600 [03:58:22]MH_Cut [03:58:22]Write to MH i2c: D1 01 00 B4 2B 01 B1 [03:58:22]Write i2c OK [03:58:22]MH_I2C_Read... [03:58:22]Read from MH i2c: D1 [03:58:22]MH_I2C_Read... [03:58:22]Read from MH i2c: D1 01 00 [03:58:22]MH_I2C_Read... [03:58:22]Read from MH i2c: D1 01 00 B4 2B 00 B0 [03:58:22]Write to MH i2c: 01 00 00 B5 2B E0 [03:58:22]Write i2c OK [03:58:22]MH_I2C_Read... [03:58:23]*** Cut start [03:58:23]*** Partial cut [03:58:23]*** CUTSNS_PIN = 1 [03:58:23]*** CUTSNS_PIN = 0 [03:58:23]*** Brake cut motor [03:58:23]Read from MH i2c: 01 [03:58:23]MH_I2C_Read... [03:58:23]*** Stop cut motor [03:58:23]*** Cut end [03:58:23]Read from MH i2c: 01 07 00 [03:58:23]MH_I2C_Read... [03:58:23]Read from MH i2c: 01 07 00 B5 2B 00 00 00 00 00 FF 0F F5 [03:58:23]process_action print_text done [03:58:23]requested_data is exist [03:58:23]produce_requested_data [03:58:23]requested_item fm.sn is exist - process it [03:58:23]wFMCommunicate request_size=4 [03:58:23]MH_SAM_APDU [03:58:23]CAPDU: 80 11 00 00 [03:58:23]Write to MH i2c: E2 08 00 B6 2B 80 11 00 00 00 00 00 00 5B [03:58:23]Write i2c OK [03:58:23]MH_I2C_Read... [03:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:58:24]Read from MH i2c: E2 [03:58:24]MH_I2C_Read... [03:58:24]Read from MH i2c: E2 17 00 [03:58:24]MH_I2C_Read... [03:58:24]Read from MH i2c: E2 17 00 B6 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B6 [03:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:58:24]wFMCommunicate OK [03:58:24]requested_item fd.num is exist - process it [03:58:24]SAM_PROTO_GetFieldsCounters [03:58:24]wFMCommunicate request_size=4 [03:58:24]MH_SAM_APDU [03:58:24]CAPDU: 80 13 00 00 [03:58:24]Write to MH i2c: E2 08 00 B7 2B 80 13 00 00 00 00 00 00 5E [03:58:24]Write i2c OK [03:58:24]MH_I2C_Read... [03:58:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:58:24]Read from MH i2c: E2 [03:58:24]MH_I2C_Read... [03:58:24]Read from MH i2c: E2 62 00 [03:58:24]MH_I2C_Read... [03:58:24]Read from MH i2c: E2 62 00 B7 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 69 CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [03:58: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 69 CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:58:24]wFMCommunicate OK [03:58:24]SAM_PROTO_GetFieldsCounters done [03:58:24]requested_item shift.num is exist - process it [03:58:24]requested_item shift.opened is exist - process it [03:58:24]req_shift_opened [03:58:24]FM_GetShiftState [03:58:24]SAM_PROTO_GetShiftState [03:58:24]wFMCommunicate request_size=4 [03:58:24]MH_SAM_APDU [03:58:24]CAPDU: 80 13 01 00 [03:58:24]Write to MH i2c: E2 08 00 B8 2B 80 13 01 00 00 00 00 00 60 [03:58:24]Write i2c OK [03:58:24]MH_I2C_Read... [03:58:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:58:24]Read from MH i2c: E2 [03:58:24]MH_I2C_Read... [03:58:24]Read from MH i2c: E2 0E 00 [03:58:24]MH_I2C_Read... [03:58:24]Read from MH i2c: E2 0E 00 B8 2B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 8E [03:58:24]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [03:58:24]wFMCommunicate OK [03:58:24]SAM_PROTO_GetShiftState done [03:58:24]FM_GetShiftState done [03:58:24]req_shift_opened done [03:58:24]requested_item shift.open_date is exist - process it [03:58:24]req_shift_open_date [03:58:24]req_shift_open_date done [03:58:24]produce_requested_data done [03:58:24]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118633,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [03:58:24]process_action_free print_text [03:58:24]json_value_free [03:58:24]json_value_free done [03:58:24]process_json_proto returns [03:58:24]Send response to host [03:58:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118633,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [03:58:24]free response buf [03:58:24]execute_script done [03:58:24]execute_script returns [03:58:24]free content buf [03:58:24]Sock 9.Close socket [03:58:24]Sock 9.Thread stoped [03:58:26]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:36]OFD Sender: No OFD packet to send [03:58:41]OFD Sender: No OFD packet to send [03:58:46]OFD Sender: No OFD packet to send [03:58:51]OFD Sender: No OFD packet to send [03:58:56]OFD Sender: No OFD packet to send [03:59:01]OFD Sender: No OFD packet to send [03:59:06]OFD Sender: No OFD packet to send [03:59:11]OFD Sender: No OFD packet to send [03:59:16]OFD Sender: No OFD packet to send [03:59:21]OFD Sender: No OFD packet to send [03:59:26]OFD Sender: No OFD packet to send [03:59:31]OFD Sender: No OFD packet to send [03:59:36]OFD Sender: No OFD packet to send [03:59:41]OFD Sender: No OFD packet to send [03:59:46]OFD Sender: No OFD packet to send [03:59:51]OFD Sender: No OFD packet to send [03:59:56]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:47]OFD Sender: No OFD packet to send [04:05:52]OFD Sender: No OFD packet to send [04:05:57]OFD Sender: No OFD packet to send [04:06:02]OFD Sender: No OFD packet to send [04:06:07]OFD Sender: No OFD packet to send [04:06:12]OFD Sender: No OFD packet to send [04:06:17]OFD Sender: No OFD packet to send [04:06:22]OFD Sender: No OFD packet to send [04:06:27]OFD Sender: No OFD packet to send [04:06:32]OFD Sender: No OFD packet to send [04:06:37]OFD Sender: No OFD packet to send [04:06:42]OFD Sender: No OFD packet to send [04:06:47]OFD Sender: No OFD packet to send [04:06:52]OFD Sender: No OFD packet to send [04:06:57]OFD Sender: No OFD packet to send [04:07:02]OFD Sender: No OFD packet to send [04:07:07]OFD Sender: No OFD packet to send [04:07:12]OFD Sender: No OFD packet to send [04:07:17]OFD Sender: No OFD packet to send [04:07:22]OFD Sender: No OFD packet to send [04:07:27]OFD Sender: No OFD packet to send [04:07:32]OFD Sender: No OFD packet to send [04:07:37]OFD Sender: No OFD packet to send [04:07:42]OFD Sender: No OFD packet to send [04:07:47]OFD Sender: No OFD packet to send [04:07:52]OFD Sender: No OFD packet to send [04:07:57]OFD Sender: No OFD packet to send [04:08:02]OFD Sender: No OFD packet to send [04:08:07]OFD Sender: No OFD packet to send [04:08:12]OFD Sender: No OFD packet to send [04:08:17]OFD Sender: No OFD packet to send [04:08:22]OFD Sender: No OFD packet to send [04:08:27]OFD Sender: No OFD packet to send [04:08:32]OFD Sender: No OFD packet to send [04:08:37]OFD Sender: No OFD packet to send [04:08:42]OFD Sender: No OFD packet to send [04:08:47]OFD Sender: No OFD packet to send [04:08:52]OFD Sender: No OFD packet to send [04:08:57]OFD Sender: No OFD packet to send [04:09:02]OFD Sender: No OFD packet to send [04:09:07]OFD Sender: No OFD packet to send [04:09:12]OFD Sender: No OFD packet to send [04:09:17]OFD Sender: No OFD packet to send [04:09:20]accept exits with 7 [04:09:20]New connection [04:09:20]New thread 3067239780 created [04:09:20]Thread 3067383140 joined [04:09:20]Waiting for new connection... [04:09:20] Sock 7.Parse request [04:09:20]Sock 7.Check first char [04:09:20]Sock 7.First char is OK [04:09:20]request: POST /json_proto HTTP/1.0 [04:09:20]Method: POST [04:09:20]URL: /json_proto [04:09:20]Method is POST - this is cgi request [04:09:20]url: /json_proto [04:09:20]query_string will be loaded in cgi processing [04:09:20]execute_cgi json_proto POST (null) [04:09:20]execute_cgi path=json_proto method=POST [04:09:20]POST find Content-Length [04:09:20]Host: 172.17.45.7:8080 [04:09:20]Content-Length: 684 [04:09:20]Content-Type: application/json [04:09:20] [04:09:20]POST finish read [04:09:20]Found Content-Length = 684 [04:09:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.240, "sum" : 10000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:09:20]execute_script... [04:09:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.240, "sum" : 10000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:09:20]POST & json_proto [04:09:20]process_json_proto [04:09:20]json parsed OK: [04:09:20]protocol is kg_v1.0 [04:09:20]action value=close_receipt [04:09:20]process_action close_receipt [04:09:20]cmd_close_receipt [04:09:20]MH_GetDate [04:09:20]Write to MH i2c: F0 00 00 B9 2B D3 [04:09:20]Write i2c OK [04:09:20]MH_I2C_Read... [04:09:20]Read from MH i2c: F0 [04:09:20]MH_I2C_Read... [04:09:20]Read from MH i2c: F0 09 00 [04:09:20]MH_I2C_Read... [04:09:20]Read from MH i2c: F0 09 00 B9 2B 00 F4 15 A7 66 90 0F 3E 66 35 [04:09:20]GetLastDocTimeStamp 1722222038 [04:09:20]current date 1722226164 [04:09:20]FM_GetShiftState [04:09:20]SAM_PROTO_GetShiftState [04:09:20]wFMCommunicate request_size=4 [04:09:20]MH_SAM_APDU [04:09:20]CAPDU: 80 13 01 00 [04:09:20]Write to MH i2c: E2 08 00 BA 2B 80 13 01 00 00 00 00 00 62 [04:09:20]Write i2c OK [04:09:20]MH_I2C_Read... [04:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:09:20]Read from MH i2c: E2 [04:09:20]MH_I2C_Read... [04:09:20]Read from MH i2c: E2 0E 00 [04:09:20]MH_I2C_Read... [04:09:20]Read from MH i2c: E2 0E 00 BA 2B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 90 [04:09:20]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [04:09:20]wFMCommunicate OK [04:09:20]SAM_PROTO_GetShiftState done [04:09:20]FM_GetShiftState done [04:09:20]opened in 1722211641 [04:09:20]opened+sec_in_day 1722298041 [04:09:20]quantity*price = 1000048 [04:09:20]sum+1 = 1000050 [04:09:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 10000.00 Внесено: 10000.00 СДАЧА: 0.00 НСП 1% : 88.50 НДС 12% : 1062.00 Наличными: 10000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 10 29.07.2024 04:09 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118634 ФПД: 205228973321436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T040924&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118634&fm=205228973321436&tin=02508201610067®Number=0000000000092660&sum=1000000 [04:09:21]StoreToDocumentArchive [04:09:21]shift 434 fd 118634 [04:09:21]save to /storage/0434/doc_00118634 [04:09:21]save last doc name /storage/0434/doc_00118634 to /storage/kkm_last_doc_name [04:09:21]save OK [04:09:21]Clear old archive folders... [04:09:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:09:21]tlvbuf is B6E115C0 [04:09:21]SAM_PROTO_ClearQueue [04:09:21]wFMCommunicate request_size=4 [04:09:21]MH_SAM_APDU [04:09:21]CAPDU: 80 09 00 00 [04:09:21]Write to MH i2c: E2 08 00 C7 2B 80 09 00 00 00 00 00 00 64 [04:09:21]Write i2c OK [04:09:21]MH_I2C_Read... [04:09:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:09:21]Read from MH i2c: E2 [04:09:21]MH_I2C_Read... [04:09:21]Read from MH i2c: E2 03 00 [04:09:21]MH_I2C_Read... [04:09:21]Read from MH i2c: E2 03 00 C7 2B 00 90 00 66 [04:09:21]RAPDU: 90 00 [04:09:21]wFMCommunicate OK [04:09:21]SAM_PROTO_ClearQueue done [04:09:21]KKMCreateOFDPacket [04:09:21]OFDProtocolAddRootSTLVToBuf [04:09:21]FM_MakeSignedData [04:09:21]FM_MakeSignedData [04:09:21]SAM_PROTO_SignData [04:09:21]wFMCommunicate request_size=4 [04:09:21]MH_SAM_APDU [04:09:21]CAPDU: 80 0D 01 02 [04:09:21]Write to MH i2c: E2 08 00 C8 2B 80 0D 01 02 00 00 00 00 6C [04:09:21]Write i2c OK [04:09:21]MH_I2C_Read... [04:09:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:09:21]Read from MH i2c: E2 [04:09:21]MH_I2C_Read... [04:09:21]Read from MH i2c: E2 03 00 [04:09:21]MH_I2C_Read... [04:09:21]Read from MH i2c: E2 03 00 C8 2B 00 90 00 67 [04:09:21]RAPDU: 90 00 [04:09:21]wFMCommunicate OK [04:09:21]wFMCommunicate request_size=255 [04:09:21]MH_SAM_APDU [04:09:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 F4 15 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A CF 01 00 35 04 06 00 BA A7 98 0D [04:09:21]Write to MH i2c: E2 02 01 C9 2B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 F4 15 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A CF 01 00 35 04 06 00 BA A7 98 0D 00 00 81 [04:09:21]Write i2c OK [04:09:21]MH_I2C_Read... [04:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:09:21]Read from MH i2c: E2 [04:09:21]MH_I2C_Read... [04:09:21]Read from MH i2c: E2 03 00 [04:09:21]MH_I2C_Read... [04:09:21]Read from MH i2c: E2 03 00 C9 2B 00 90 00 68 [04:09:21]RAPDU: 90 00 [04:09:21]wFMCommunicate OK [04:09:21]wFMCommunicate request_size=7 [04:09:21]MH_SAM_APDU [04:09:21]CAPDU: 80 0D 02 02 02 6C DC [04:09:21]Write to MH i2c: E2 0A 00 CA 2B 80 0D 02 02 02 00 6C DC 00 00 BB [04:09:21]Write i2c OK [04:09:21]MH_I2C_Read... [04:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:09:21]Read from MH i2c: E2 [04:09:21]MH_I2C_Read... [04:09:21]Read from MH i2c: E2 03 00 [04:09:21]MH_I2C_Read... [04:09:21]Read from MH i2c: E2 03 00 CA 2B 00 90 00 69 [04:09:21]RAPDU: 90 00 [04:09:21]wFMCommunicate OK [04:09:21]wFMCommunicate request_size=4 [04:09:21]MH_SAM_APDU [04:09:21]CAPDU: 80 0D 03 02 [04:09:21]Write to MH i2c: E2 08 00 CB 2B 80 0D 03 02 00 00 00 00 71 [04:09:21]Write i2c OK [04:09:21]MH_I2C_Read... [04:09:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:09:21]Read from MH i2c: E2 [04:09:21]MH_I2C_Read... [04:09:21]Read from MH i2c: E2 0B 00 [04:09:21]MH_I2C_Read... [04:09:21]Read from MH i2c: E2 0B 00 CB 2B 00 38 6A DB E2 DD B7 C8 96 90 00 C3 [04:09:21]RAPDU: 38 6A DB E2 DD B7 C8 96 90 00 [04:09:21]wFMCommunicate OK [04:09:21]SAM_PROTO_SignData done [04:09:21]FM_MakeSignedData done [04:09:21]CreateOFDProtocolMessage [04:09:21]wFMCommunicate request_size=4 [04:09:21]MH_SAM_APDU [04:09:21]CAPDU: 80 11 00 00 [04:09:21]Write to MH i2c: E2 08 00 CC 2B 80 11 00 00 00 00 00 00 71 [04:09:21]Write i2c OK [04:09:21]MH_I2C_Read... [04:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:09:21]Read from MH i2c: E2 [04:09:21]MH_I2C_Read... [04:09:21]Read from MH i2c: E2 17 00 [04:09:21]MH_I2C_Read... [04:09:21]Read from MH i2c: E2 17 00 CC 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CC [04:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:09:21]wFMCommunicate OK [04:09:21]CreateOFDProtocolMessage done [04:09:21]OFDSenderStorePacket 118634 [04:09:21]StoreOFDPacket docnum=118634 [04:09:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2A 47 04 01 30 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 F4 15 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A CF 01 00 35 04 06 00 BA A7 98 0D 6C DC 38 6A DB E2 DD B7 C8 96 [04:09:21]CheckFolder [04:09:21]dirname=/storage/ofd_packets [04:09:21]CheckFolder done [04:09:21]ProducePacketName [04:09:21]name=ofd_packets/00118634 [04:09:21]NVStorageSaveData ofd_packets/00118634 [04:09:21]File name is /storage/ofd_packets/00118634 [04:09:21]Write 298 bytes [04:09:21]NVStorageSaveData done [04:09:21]OFDSenderStorePacket done [04:09:21]KKMCreateOFDPacket done [04:09:21]NVStorageSaveData kkm_last_timestamp [04:09:21]File name is /storage/kkm_last_timestamp [04:09:21]Write 4 bytes [04:09:21]NVStorageSaveData done [04:09:21]ExternCall_PrintAddStr [04:09:21]wPrintStart [04:09:21]Write to MH i2c: 01 00 00 CD 2B F8 [04:09:21]Write i2c OK [04:09:21]MH_I2C_Read... [04:09:21]Read from MH i2c: 01 [04:09:21]MH_I2C_Read... [04:09:21]Read from MH i2c: 01 07 00 [04:09:21]MH_I2C_Read... [04:09:21]Read from MH i2c: 01 07 00 CD 2B 00 00 00 00 00 FF 0F 0D [04:09:21]RasterBufferAndPrint [04:09:21]line Счет N : (1)949520 [04:09:21]line ИНН: 02508201610067 [04:09:21]line Контрольно-Кассовый Чек [04:09:21]line ПРОДАЖА [04:09:21]line ТРК (МРК, ГНК) : 11 [04:09:21]line Товар: 2710194800 [04:09:21]line ДТ-К-5 [04:09:21]line 131.240 * 76.20 [04:09:21]line = 10000.49 [04:09:21]line НДС 12% НСП 1% [04:09:21]line > о реализуемом товаре [04:09:21]line ОКРУГЛЕНИЕ: -0.49 [04:09:21]line ИТОГО: 10000.00 [04:09:21]line Внесено: 10000.00 [04:09:21]line СДАЧА: 0.00 [04:09:21]line НСП 1% : 88.50 [04:09:21]line НДС 12% : 1062.00 [04:09:21]line Наличными: 10000.00 [04:09:21]line Безнал.: 0.00 [04:09:21]line Место: АЗС № 134 "Партнер Нефть" [04:09:21]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:09:21]line СНО: Общий режим [04:09:21]line Чек 10 29.07.2024 04:09 [04:09:21]line Смена: 434 ФФД: 1.0 [04:09:21]line ЗНМ: 0300000044 [04:09:21]line РНМ: 0000000000092660 [04:09:21]line Версия ККМ: 001 [04:09:21]line ФМ: 0000000000874939 [04:09:21]line ФД: 118634 [04:09:21]line ФПД: 205228973321436 [04:09:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T040924&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118634&fm=205228973321436&tin=02508201610067®Number=0000000000092660&sum=1000000 [04:09:22]OFD Sender: Processing packet 118634 [packets to send 86, broken 85] [04:09:22]ProducePacketName [04:09:22]name=ofd_packets/00118634 [04:09:22]OFD Sender: To server: pG, [04:09:22]CommunicateWithHost lk.salyk.kg:30040 [04:09:22]ConnectInit lk.salyk.kg [04:09:22]written 0, free lines is 4095 [04:09:22]Connected sock=10 [04:09:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2A 47 04 01 30 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 F4 15 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A CF 01 00 35 04 06 00 BA A7 98 0D 6C DC 38 6A DB E2 DD B7 C8 96 [04:09:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 71 A4 47 00 FE 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 34 39 33 39 10 04 04 00 6A CF 01 00 F4 03 04 00 82 C3 A6 66 B6 04 01 00 00 E2 F2 E8 3A FA A6 3C 40 [04:09:22]CommunicateWithHost err = 0 [04:09:22]CheckOFDResponse [04:09:22]1017 (14) - 77093643461234 [04:09:22]1041 (16) - 0000000000874939 [04:09:22]1040 (4) - 118634 [04:09:22]1012 (4) - 28.07.2024 22:17 [04:09:22]1206 (1) - 0 [04:09:22]OFD Sender: Remove packet 118634 [04:09:22]ProducePacketName [04:09:22]name=ofd_packets/00118634 [04:09:22]NVStorageDeleteData [04:09:22]Write to MH i2c: 01 00 00 F7 2B 22 [04:09:22]Write i2c OK [04:09:22]MH_I2C_Read... [04:09:22]Read from MH i2c: 01 [04:09:22]MH_I2C_Read... [04:09:22]Read from MH i2c: 01 07 00 [04:09:22]MH_I2C_Read... [04:09:22]Read from MH i2c: 01 07 00 F7 2B 00 00 00 00 00 C8 0C FD [04:09:22]RasterBufferAndPrint [04:09:22]line [04:09:22]line [04:09:22]line [04:09:22]line [04:09:22]line [04:09:22]written 0, free lines is 3278 [04:09:22]MH_Cut [04:09:22]Write to MH i2c: D1 01 00 FE 2B 01 FB [04:09:22]Write i2c OK [04:09:22]MH_I2C_Read... [04:09:22]Read from MH i2c: D1 [04:09:22]MH_I2C_Read... [04:09:22]Read from MH i2c: D1 01 00 [04:09:22]MH_I2C_Read... [04:09:22]Read from MH i2c: D1 01 00 FE 2B 00 FA [04:09:22]Write to MH i2c: 01 00 00 FF 2B 2A [04:09:22]Write i2c OK [04:09:22]MH_I2C_Read... [04:09:23]OFD Sender: No OFD packet to send [04:09:23]*** Cut start [04:09:23]*** Partial cut [04:09:23]*** CUTSNS_PIN = 1 [04:09:23]*** CUTSNS_PIN = 0 [04:09:23]*** Brake cut motor [04:09:24]Read from MH i2c: 01 [04:09:24]MH_I2C_Read... [04:09:24]*** Stop cut motor [04:09:24]*** Cut end [04:09:24]Read from MH i2c: 01 07 00 [04:09:24]MH_I2C_Read... [04:09:24]Read from MH i2c: 01 07 00 FF 2B 00 00 00 00 00 FF 0F 3F [04:09:24]process_action close_receipt done [04:09:24]requested_data is exist [04:09:24]produce_requested_data [04:09:24]requested_item fm.sn is exist - process it [04:09:24]wFMCommunicate request_size=4 [04:09:24]MH_SAM_APDU [04:09:24]CAPDU: 80 11 00 00 [04:09:24]Write to MH i2c: E2 08 00 00 2C 80 11 00 00 00 00 00 00 A6 [04:09:24]Write i2c OK [04:09:24]MH_I2C_Read... [04:09:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:09:24]Read from MH i2c: E2 [04:09:24]MH_I2C_Read... [04:09:24]Read from MH i2c: E2 17 00 [04:09:24]MH_I2C_Read... [04:09:24]Read from MH i2c: E2 17 00 00 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 01 [04:09:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:09:24]wFMCommunicate OK [04:09:24]requested_item fd.num is exist - process it [04:09:24]SAM_PROTO_GetFieldsCounters [04:09:24]wFMCommunicate request_size=4 [04:09:24]MH_SAM_APDU [04:09:24]CAPDU: 80 13 00 00 [04:09:24]Write to MH i2c: E2 08 00 01 2C 80 13 00 00 00 00 00 00 A9 [04:09:24]Write i2c OK [04:09:24]MH_I2C_Read... [04:09:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:09:24]Read from MH i2c: E2 [04:09:24]MH_I2C_Read... [04:09:24]Read from MH i2c: E2 62 00 [04:09:24]MH_I2C_Read... [04:09:24]Read from MH i2c: E2 62 00 01 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6A CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [04:09: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6A CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:09:24]wFMCommunicate OK [04:09:24]SAM_PROTO_GetFieldsCounters done [04:09:24]requested_item shift.num is exist - process it [04:09:24]requested_item shift.opened is exist - process it [04:09:24]req_shift_opened [04:09:24]FM_GetShiftState [04:09:24]SAM_PROTO_GetShiftState [04:09:24]wFMCommunicate request_size=4 [04:09:24]MH_SAM_APDU [04:09:24]CAPDU: 80 13 01 00 [04:09:24]Write to MH i2c: E2 08 00 02 2C 80 13 01 00 00 00 00 00 AB [04:09:24]Write i2c OK [04:09:24]MH_I2C_Read... [04:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:09:24]Read from MH i2c: E2 [04:09:24]MH_I2C_Read... [04:09:24]Read from MH i2c: E2 0E 00 [04:09:24]MH_I2C_Read... [04:09:24]Read from MH i2c: E2 0E 00 02 2C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D9 [04:09:24]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [04:09:24]wFMCommunicate OK [04:09:24]SAM_PROTO_GetShiftState done [04:09:24]FM_GetShiftState done [04:09:24]req_shift_opened done [04:09:24]requested_item shift.open_date is exist - process it [04:09:24]req_shift_open_date [04:09:24]req_shift_open_date done [04:09:24]produce_requested_data done [04:09:24]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118634,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [04:09:24]process_action_free close_receipt [04:09:24]json_value_free [04:09:24]json_value_free done [04:09:24]process_json_proto returns [04:09:24]Send response to host [04:09:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118634,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [04:09:24]free response buf [04:09:24]execute_script done [04:09:24]execute_script returns [04:09:24]free content buf [04:09:24]Sock 7.Close socket [04:09:24]Sock 7.Thread stoped [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:08]OFD Sender: No OFD packet to send [04:13:13]OFD Sender: No OFD packet to send [04:13:18]OFD Sender: No OFD packet to send [04:13:23]OFD Sender: No OFD packet to send [04:13:28]OFD Sender: No OFD packet to send [04:13:33]OFD Sender: No OFD packet to send [04:13:38]OFD Sender: No OFD packet to send [04:13:43]OFD Sender: No OFD packet to send [04:13:48]OFD Sender: No OFD packet to send [04:13:53]OFD Sender: No OFD packet to send [04:13:58]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:23]accept exits with 9 [04:14:23]New connection [04:14:23]New thread 3067383140 created [04:14:23]Thread 3067239780 joined [04:14:23]Waiting for new connection... [04:14:23] Sock 9.Parse request [04:14:23]Sock 9.Check first char [04:14:23]Sock 9.First char is OK [04:14:23]request: POST /json_proto HTTP/1.0 [04:14:23]Method: POST [04:14:23]URL: /json_proto [04:14:23]Method is POST - this is cgi request [04:14:23]url: /json_proto [04:14:23]query_string will be loaded in cgi processing [04:14:23]execute_cgi json_proto POST (null) [04:14:23]execute_cgi path=json_proto method=POST [04:14:23]POST find Content-Length [04:14:23]Host: 172.17.45.7:8080 [04:14:23]Content-Length: 741 [04:14:23]Content-Type: application/json [04:14:23] [04:14:23]POST finish read [04:14:23]Found Content-Length = 741 [04:14:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118634, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.240, "sum" : 10000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:14:23]execute_script... [04:14:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118634, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.240, "sum" : 10000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:14:23]POST & json_proto [04:14:23]process_json_proto [04:14:23]json parsed OK: [04:14:23]protocol is kg_v1.0 [04:14:23]action value=close_receipt [04:14:23]process_action close_receipt [04:14:23]cmd_close_receipt [04:14:23]MH_GetDate [04:14:23]Write to MH i2c: F0 00 00 03 2C 1E [04:14:23]Write i2c OK [04:14:23]MH_I2C_Read... [04:14:23]Read from MH i2c: F0 [04:14:23]MH_I2C_Read... [04:14:23]Read from MH i2c: F0 09 00 [04:14:23]MH_I2C_Read... [04:14:23]Read from MH i2c: F0 09 00 03 2C 00 23 17 A7 66 90 0F 3E 66 B1 [04:14:23]GetLastDocTimeStamp 1722226164 [04:14:23]current date 1722226467 [04:14:23]FM_GetShiftState [04:14:23]SAM_PROTO_GetShiftState [04:14:23]wFMCommunicate request_size=4 [04:14:23]MH_SAM_APDU [04:14:23]CAPDU: 80 13 01 00 [04:14:23]Write to MH i2c: E2 08 00 04 2C 80 13 01 00 00 00 00 00 AD [04:14:23]Write i2c OK [04:14:23]MH_I2C_Read... [04:14:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:14:23]Read from MH i2c: E2 [04:14:23]MH_I2C_Read... [04:14:23]Read from MH i2c: E2 0E 00 [04:14:23]MH_I2C_Read... [04:14:23]Read from MH i2c: E2 0E 00 04 2C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 DB [04:14:23]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [04:14:23]wFMCommunicate OK [04:14:23]SAM_PROTO_GetShiftState done [04:14:23]FM_GetShiftState done [04:14:23]opened in 1722211641 [04:14:23]opened+sec_in_day 1722298041 [04:14:23]quantity*price = 1000048 [04:14:23]sum+1 = 1000050 [04:14:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 10000.00 НСП 1% : 88.50 НДС 12% : 1062.00 Наличными: 10000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 11 29.07.2024 04:14 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 118634 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 118635 ФПД: 21404025265181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T041427&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118635&fm=21404025265181&tin=02508201610067®Number=0000000000092660&sum=1000000 [04:14:25]StoreToDocumentArchive [04:14:25]shift 434 fd 118635 [04:14:25]save to /storage/0434/doc_00118635 [04:14:25]save last doc name /storage/0434/doc_00118635 to /storage/kkm_last_doc_name [04:14:25]save OK [04:14:25]Clear old archive folders... [04:14:25]ProcessDocumentItem done err = 0, tmpTLVsize=276 [04:14:25]tlvbuf is 01E89AF0 [04:14:25]SAM_PROTO_ClearQueue [04:14:25]wFMCommunicate request_size=4 [04:14:25]MH_SAM_APDU [04:14:25]CAPDU: 80 09 00 00 [04:14:25]Write to MH i2c: E2 08 00 13 2C 80 09 00 00 00 00 00 00 B1 [04:14:25]Write i2c OK [04:14:25]MH_I2C_Read... [04:14:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:14:25]Read from MH i2c: E2 [04:14:25]MH_I2C_Read... [04:14:25]Read from MH i2c: E2 03 00 [04:14:25]MH_I2C_Read... [04:14:25]Read from MH i2c: E2 03 00 13 2C 00 90 00 B3 [04:14:25]RAPDU: 90 00 [04:14:25]wFMCommunicate OK [04:14:25]SAM_PROTO_ClearQueue done [04:14:25]KKMCreateOFDPacket [04:14:25]OFDProtocolAddRootSTLVToBuf [04:14:25]FM_MakeSignedData [04:14:25]FM_MakeSignedData [04:14:25]SAM_PROTO_SignData [04:14:25]wFMCommunicate request_size=4 [04:14:25]MH_SAM_APDU [04:14:25]CAPDU: 80 0D 01 02 [04:14:25]Write to MH i2c: E2 08 00 14 2C 80 0D 01 02 00 00 00 00 B9 [04:14:25]Write i2c OK [04:14:25]MH_I2C_Read... [04:14:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:14:25]Read from MH i2c: E2 [04:14:25]MH_I2C_Read... [04:14:25]Read from MH i2c: E2 03 00 [04:14:25]MH_I2C_Read... [04:14:25]Read from MH i2c: E2 03 00 14 2C 00 90 00 B4 [04:14:25]RAPDU: 90 00 [04:14:25]wFMCommunicate OK [04:14:25]wFMCommunicate request_size=255 [04:14:25]MH_SAM_APDU [04:14:25]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 23 17 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 6A CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 [04:14:25]Write to MH i2c: E2 02 01 15 2C 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 23 17 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 6A CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 00 00 EC [04:14:25]Write i2c OK [04:14:25]MH_I2C_Read... [04:14:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:14:25]Read from MH i2c: E2 [04:14:25]MH_I2C_Read... [04:14:25]Read from MH i2c: E2 03 00 [04:14:25]MH_I2C_Read... [04:14:25]Read from MH i2c: E2 03 00 15 2C 00 90 00 B5 [04:14:25]RAPDU: 90 00 [04:14:25]wFMCommunicate OK [04:14:25]wFMCommunicate request_size=35 [04:14:25]MH_SAM_APDU [04:14:25]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B CF 01 00 35 04 06 00 13 77 83 52 9C 1D [04:14:25]Write to MH i2c: E2 26 00 16 2C 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B CF 01 00 35 04 06 00 13 77 83 52 9C 1D 00 00 0A [04:14:25]Write i2c OK [04:14:25]MH_I2C_Read... [04:14:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:14:25]Read from MH i2c: E2 [04:14:25]MH_I2C_Read... [04:14:25]Read from MH i2c: E2 03 00 [04:14:25]MH_I2C_Read... [04:14:25]Read from MH i2c: E2 03 00 16 2C 00 90 00 B6 [04:14:25]RAPDU: 90 00 [04:14:25]wFMCommunicate OK [04:14:25]wFMCommunicate request_size=4 [04:14:25]MH_SAM_APDU [04:14:25]CAPDU: 80 0D 03 02 [04:14:25]Write to MH i2c: E2 08 00 17 2C 80 0D 03 02 00 00 00 00 BE [04:14:25]Write i2c OK [04:14:25]MH_I2C_Read... [04:14:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:14:25]Read from MH i2c: E2 [04:14:25]MH_I2C_Read... [04:14:25]Read from MH i2c: E2 0B 00 [04:14:25]MH_I2C_Read... [04:14:25]Read from MH i2c: E2 0B 00 17 2C 00 78 53 48 D0 60 EE 8D FB 90 00 78 [04:14:25]RAPDU: 78 53 48 D0 60 EE 8D FB 90 00 [04:14:25]wFMCommunicate OK [04:14:25]SAM_PROTO_SignData done [04:14:25]FM_MakeSignedData done [04:14:25]CreateOFDProtocolMessage [04:14:25]wFMCommunicate request_size=4 [04:14:25]MH_SAM_APDU [04:14:25]CAPDU: 80 11 00 00 [04:14:25]Write to MH i2c: E2 08 00 18 2C 80 11 00 00 00 00 00 00 BE [04:14:25]Write i2c OK [04:14:25]MH_I2C_Read... [04:14:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:14:25]Read from MH i2c: E2 [04:14:25]MH_I2C_Read... [04:14:25]Read from MH i2c: E2 17 00 [04:14:25]MH_I2C_Read... [04:14:25]Read from MH i2c: E2 17 00 18 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 19 [04:14:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:14:25]wFMCommunicate OK [04:14:25]CreateOFDProtocolMessage done [04:14:25]OFDSenderStorePacket 118635 [04:14:25]StoreOFDPacket docnum=118635 [04:14:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 61 7B 20 01 EE 50 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 23 17 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 6A CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B CF 01 00 35 04 06 00 13 77 83 52 9C 1D 78 53 48 D0 60 EE 8D FB [04:14:25]CheckFolder [04:14:25]dirname=/storage/ofd_packets [04:14:25]CheckFolder done [04:14:25]ProducePacketName [04:14:25]name=ofd_packets/00118635 [04:14:25]NVStorageSaveData ofd_packets/00118635 [04:14:25]File name is /storage/ofd_packets/00118635 [04:14:25]Write 326 bytes [04:14:25]NVStorageSaveData done [04:14:25]OFDSenderStorePacket done [04:14:25]KKMCreateOFDPacket done [04:14:25]NVStorageSaveData kkm_last_timestamp [04:14:25]File name is /storage/kkm_last_timestamp [04:14:25]Write 4 bytes [04:14:25]NVStorageSaveData done [04:14:25]ExternCall_PrintAddStr [04:14:25]wPrintStart [04:14:25]Write to MH i2c: 01 00 00 19 2C 45 [04:14:25]Write i2c OK [04:14:25]MH_I2C_Read... [04:14:25]Read from MH i2c: 01 [04:14:25]MH_I2C_Read... [04:14:25]Read from MH i2c: 01 07 00 [04:14:25]MH_I2C_Read... [04:14:25]Read from MH i2c: 01 07 00 19 2C 00 00 00 00 00 FF 0F 5A [04:14:25]RasterBufferAndPrint [04:14:25]line Счет N : (1)949520 [04:14:25]line ИНН: 02508201610067 [04:14:25]line Контрольно-Кассовый Чек [04:14:25]line ВОЗВРАТ ПРОДАЖИ [04:14:25]line ТРК (МРК, ГНК) : 11 [04:14:25]line Товар: 2710194800 [04:14:25]line ДТ-К-5 [04:14:25]line 131.240 * 76.20 [04:14:25]line = 10000.49 [04:14:25]line НДС 12% НСП 1% [04:14:25]line > о реализуемом товаре [04:14:25]line ОКРУГЛЕНИЕ: -0.49 [04:14:25]line ИТОГО: 10000.00 [04:14:25]line НСП 1% : 88.50 [04:14:25]line НДС 12% : 1062.00 [04:14:25]line Наличными: 10000.00 [04:14:25]line Безнал.: 0.00 [04:14:25]line Место: АЗС № 134 "Партнер Нефть" [04:14:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:14:25]line СНО: Общий режим [04:14:25]line Чек 11 29.07.2024 04:14 [04:14:25]line Смена: 434 ФФД: 1.0 [04:14:25]line ЗНМ: 0300000044 [04:14:25]line РНМ: 0000000000092660 [04:14:25]line Версия ККМ: 001 [04:14:25]line ФД осн.: 118634 [04:14:25]line ФМ осн.: 0000000000874939 [04:14:25]line ФМ: 0000000000874939 [04:14:25]line ФД: 118635 [04:14:25]line ФПД: 21404025265181 [04:14:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T041427&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118635&fm=21404025265181&tin=02508201610067®Number=0000000000092660&sum=1000000 [04:14:26]OFD Sender: Processing packet 118635 [packets to send 86, broken 85] [04:14:26]ProducePacketName [04:14:26]name=ofd_packets/00118635 [04:14:26]OFD Sender: To server: pG, [04:14:26]CommunicateWithHost lk.salyk.kg:30040 [04:14:26]ConnectInit lk.salyk.kg [04:14:26]written 0, free lines is 4095 [04:14:26]Connected sock=10 [04:14:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 61 7B 20 01 EE 50 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 23 17 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 6A CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B CF 01 00 35 04 06 00 13 77 83 52 9C 1D 78 53 48 D0 60 EE 8D FB [04:14:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5F DF 47 00 1B CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B CF 01 00 F4 03 04 00 B2 C4 A6 66 B6 04 01 00 00 89 79 C5 CE 90 35 40 16 [04:14:26]CommunicateWithHost err = 0 [04:14:26]CheckOFDResponse [04:14:26]1017 (14) - 77093643461234 [04:14:26]1041 (16) - 0000000000874939 [04:14:26]1040 (4) - 118635 [04:14:26]1012 (4) - 28.07.2024 22:22 [04:14:26]1206 (1) - 0 [04:14:26]OFD Sender: Remove packet 118635 [04:14:26]ProducePacketName [04:14:26]name=ofd_packets/00118635 [04:14:26]NVStorageDeleteData [04:14:26]Write to MH i2c: 01 00 00 43 2C 6F [04:14:26]Write i2c OK [04:14:26]MH_I2C_Read... [04:14:26]Read from MH i2c: 01 [04:14:26]MH_I2C_Read... [04:14:26]Read from MH i2c: 01 07 00 [04:14:26]MH_I2C_Read... [04:14:26]Read from MH i2c: 01 07 00 43 2C 00 00 00 00 00 DF 0C 61 [04:14:26]RasterBufferAndPrint [04:14:26]line [04:14:26]line [04:14:26]line [04:14:26]line [04:14:26]line [04:14:26]written 0, free lines is 3301 [04:14:26]MH_Cut [04:14:26]Write to MH i2c: D1 01 00 4A 2C 01 48 [04:14:26]Write i2c OK [04:14:26]MH_I2C_Read... [04:14:26]Read from MH i2c: D1 [04:14:26]MH_I2C_Read... [04:14:26]Read from MH i2c: D1 01 00 [04:14:26]MH_I2C_Read... [04:14:26]Read from MH i2c: D1 01 00 4A 2C 00 47 [04:14:26]Write to MH i2c: 01 00 00 4B 2C 77 [04:14:26]Write i2c OK [04:14:26]MH_I2C_Read... [04:14:26]OFD Sender: No OFD packet to send [04:14:27]*** Cut start [04:14:27]*** Partial cut [04:14:27]*** CUTSNS_PIN = 1 [04:14:27]*** CUTSNS_PIN = 0 [04:14:27]*** Brake cut motor [04:14:27]Read from MH i2c: 01 [04:14:27]MH_I2C_Read... [04:14:27]*** Stop cut motor [04:14:27]*** Cut end [04:14:27]Read from MH i2c: 01 07 00 [04:14:27]MH_I2C_Read... [04:14:27]Read from MH i2c: 01 07 00 4B 2C 00 00 00 00 00 FF 0F 8C [04:14:27]process_action close_receipt done [04:14:27]requested_data is exist [04:14:27]produce_requested_data [04:14:27]requested_item fm.sn is exist - process it [04:14:27]wFMCommunicate request_size=4 [04:14:27]MH_SAM_APDU [04:14:27]CAPDU: 80 11 00 00 [04:14:27]Write to MH i2c: E2 08 00 4C 2C 80 11 00 00 00 00 00 00 F2 [04:14:27]Write i2c OK [04:14:27]MH_I2C_Read... [04:14:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:14:27]Read from MH i2c: E2 [04:14:27]MH_I2C_Read... [04:14:27]Read from MH i2c: E2 17 00 [04:14:27]MH_I2C_Read... [04:14:27]Read from MH i2c: E2 17 00 4C 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4D [04:14:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:14:27]wFMCommunicate OK [04:14:27]requested_item fd.num is exist - process it [04:14:27]SAM_PROTO_GetFieldsCounters [04:14:27]wFMCommunicate request_size=4 [04:14:27]MH_SAM_APDU [04:14:27]CAPDU: 80 13 00 00 [04:14:27]Write to MH i2c: E2 08 00 4D 2C 80 13 00 00 00 00 00 00 F5 [04:14:27]Write i2c OK [04:14:27]MH_I2C_Read... [04:14:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:14:28]Read from MH i2c: E2 [04:14:28]MH_I2C_Read... [04:14:28]Read from MH i2c: E2 62 00 [04:14:28]MH_I2C_Read... [04:14:28]Read from MH i2c: E2 62 00 4D 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6B CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [04:14: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6B CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:14:28]wFMCommunicate OK [04:14:28]SAM_PROTO_GetFieldsCounters done [04:14:28]requested_item shift.num is exist - process it [04:14:28]requested_item shift.opened is exist - process it [04:14:28]req_shift_opened [04:14:28]FM_GetShiftState [04:14:28]SAM_PROTO_GetShiftState [04:14:28]wFMCommunicate request_size=4 [04:14:28]MH_SAM_APDU [04:14:28]CAPDU: 80 13 01 00 [04:14:28]Write to MH i2c: E2 08 00 4E 2C 80 13 01 00 00 00 00 00 F7 [04:14:28]Write i2c OK [04:14:28]MH_I2C_Read... [04:14:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:14:28]Read from MH i2c: E2 [04:14:28]MH_I2C_Read... [04:14:28]Read from MH i2c: E2 0E 00 [04:14:28]MH_I2C_Read... [04:14:28]Read from MH i2c: E2 0E 00 4E 2C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 25 [04:14:28]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [04:14:28]wFMCommunicate OK [04:14:28]SAM_PROTO_GetShiftState done [04:14:28]FM_GetShiftState done [04:14:28]req_shift_opened done [04:14:28]requested_item shift.open_date is exist - process it [04:14:28]req_shift_open_date [04:14:28]req_shift_open_date done [04:14:28]produce_requested_data done [04:14:28]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118635,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [04:14:28]process_action_free close_receipt [04:14:28]json_value_free [04:14:28]json_value_free done [04:14:28]process_json_proto returns [04:14:28]Send response to host [04:14:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118635,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [04:14:28]free response buf [04:14:28]execute_script done [04:14:28]execute_script returns [04:14:28]free content buf [04:14:28]Sock 9.Close socket [04:14:28]Sock 9.Thread stoped [04:14:28]accept exits with 7 [04:14:28]New connection [04:14:28]New thread 3067239780 created [04:14:28]Thread 3067383140 joined [04:14:28]Waiting for new connection... [04:14:28] Sock 7.Parse request [04:14:28]Sock 7.Check first char [04:14:28]Sock 7.First char is OK [04:14:28]request: POST /json_proto HTTP/1.0 [04:14:28]Method: POST [04:14:28]URL: /json_proto [04:14:28]Method is POST - this is cgi request [04:14:28]url: /json_proto [04:14:28]query_string will be loaded in cgi processing [04:14:28]execute_cgi json_proto POST (null) [04:14:28]execute_cgi path=json_proto method=POST [04:14:28]POST find Content-Length [04:14:28]Host: 172.17.45.7:8080 [04:14:28]Content-Length: 681 [04:14:28]Content-Type: application/json [04:14:28] [04:14:28]POST finish read [04:14:28]Found Content-Length = 681 [04:14:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 9989.00, "payments": [ { "type": 0, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:14:28]execute_script... [04:14: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)949520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 9989.00, "payments": [ { "type": 0, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:14:28]POST & json_proto [04:14:28]process_json_proto [04:14:28]json parsed OK: [04:14:28]protocol is kg_v1.0 [04:14:28]action value=close_receipt [04:14:28]process_action close_receipt [04:14:28]cmd_close_receipt [04:14:28]MH_GetDate [04:14:28]Write to MH i2c: F0 00 00 4F 2C 6A [04:14:28]Write i2c OK [04:14:28]MH_I2C_Read... [04:14:28]Read from MH i2c: F0 [04:14:28]MH_I2C_Read... [04:14:28]Read from MH i2c: F0 09 00 [04:14:28]MH_I2C_Read... [04:14:28]Read from MH i2c: F0 09 00 4F 2C 00 28 17 A7 66 90 0F 3E 66 02 [04:14:28]GetLastDocTimeStamp 1722226467 [04:14:28]current date 1722226472 [04:14:28]FM_GetShiftState [04:14:28]SAM_PROTO_GetShiftState [04:14:28]wFMCommunicate request_size=4 [04:14:28]MH_SAM_APDU [04:14:28]CAPDU: 80 13 01 00 [04:14:28]Write to MH i2c: E2 08 00 50 2C 80 13 01 00 00 00 00 00 F9 [04:14:28]Write i2c OK [04:14:28]MH_I2C_Read... [04:14:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:14:28]Read from MH i2c: E2 [04:14:28]MH_I2C_Read... [04:14:28]Read from MH i2c: E2 0E 00 [04:14:28]MH_I2C_Read... [04:14:28]Read from MH i2c: E2 0E 00 50 2C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 27 [04:14:28]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [04:14:28]wFMCommunicate OK [04:14:28]SAM_PROTO_GetShiftState done [04:14:28]FM_GetShiftState done [04:14:28]opened in 1722211641 [04:14:28]opened+sec_in_day 1722298041 [04:14:28]quantity*price = 998982 [04:14:28]sum+1 = 998983 [04:14:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 9989.00 Внесено: 10000.00 СДАЧА: 11.00 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 9989.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 12 29.07.2024 04:14 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118636 ФПД: 107361613885492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T041432&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118636&fm=107361613885492&tin=02508201610067®Number=0000000000092660&sum=998900 [04:14:30]StoreToDocumentArchive [04:14:30]shift 434 fd 118636 [04:14:30]save to /storage/0434/doc_00118636 [04:14:30]save last doc name /storage/0434/doc_00118636 to /storage/kkm_last_doc_name [04:14:30]save OK [04:14:30]Clear old archive folders... [04:14:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:14:30]tlvbuf is 01E52110 [04:14:30]SAM_PROTO_ClearQueue [04:14:30]wFMCommunicate request_size=4 [04:14:30]MH_SAM_APDU [04:14:30]CAPDU: 80 09 00 00 [04:14:30]Write to MH i2c: E2 08 00 5D 2C 80 09 00 00 00 00 00 00 FB [04:14:30]Write i2c OK [04:14:30]MH_I2C_Read... [04:14:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:14:30]Read from MH i2c: E2 [04:14:30]MH_I2C_Read... [04:14:30]Read from MH i2c: E2 03 00 [04:14:30]MH_I2C_Read... [04:14:30]Read from MH i2c: E2 03 00 5D 2C 00 90 00 FD [04:14:30]RAPDU: 90 00 [04:14:30]wFMCommunicate OK [04:14:30]SAM_PROTO_ClearQueue done [04:14:30]KKMCreateOFDPacket [04:14:30]OFDProtocolAddRootSTLVToBuf [04:14:30]FM_MakeSignedData [04:14:30]FM_MakeSignedData [04:14:30]SAM_PROTO_SignData [04:14:30]wFMCommunicate request_size=4 [04:14:30]MH_SAM_APDU [04:14:30]CAPDU: 80 0D 01 02 [04:14:30]Write to MH i2c: E2 08 00 5E 2C 80 0D 01 02 00 00 00 00 03 [04:14:30]Write i2c OK [04:14:30]MH_I2C_Read... [04:14:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:14:30]Read from MH i2c: E2 [04:14:30]MH_I2C_Read... [04:14:30]Read from MH i2c: E2 03 00 [04:14:30]MH_I2C_Read... [04:14:30]Read from MH i2c: E2 03 00 5E 2C 00 90 00 FE [04:14:30]RAPDU: 90 00 [04:14:30]wFMCommunicate OK [04:14:30]wFMCommunicate request_size=255 [04:14:30]MH_SAM_APDU [04:14:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 F4 3D 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 28 17 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C CF 01 00 35 04 06 00 61 A5 12 DB [04:14:30]Write to MH i2c: E2 02 01 5F 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 F4 3D 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 28 17 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C CF 01 00 35 04 06 00 61 A5 12 DB 00 00 67 [04:14:30]Write i2c OK [04:14:30]MH_I2C_Read... [04:14:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:14:30]Read from MH i2c: E2 [04:14:30]MH_I2C_Read... [04:14:30]Read from MH i2c: E2 03 00 [04:14:30]MH_I2C_Read... [04:14:30]Read from MH i2c: E2 03 00 5F 2C 00 90 00 FF [04:14:30]RAPDU: 90 00 [04:14:30]wFMCommunicate OK [04:14:30]wFMCommunicate request_size=7 [04:14:30]MH_SAM_APDU [04:14:30]CAPDU: 80 0D 02 02 02 B0 34 [04:14:30]Write to MH i2c: E2 0A 00 60 2C 80 0D 02 02 02 00 B0 34 00 00 EE [04:14:30]Write i2c OK [04:14:30]MH_I2C_Read... [04:14:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:14:30]Read from MH i2c: E2 [04:14:30]MH_I2C_Read... [04:14:30]Read from MH i2c: E2 03 00 [04:14:30]MH_I2C_Read... [04:14:30]Read from MH i2c: E2 03 00 60 2C 00 90 00 00 [04:14:30]RAPDU: 90 00 [04:14:30]wFMCommunicate OK [04:14:30]wFMCommunicate request_size=4 [04:14:30]MH_SAM_APDU [04:14:30]CAPDU: 80 0D 03 02 [04:14:30]Write to MH i2c: E2 08 00 61 2C 80 0D 03 02 00 00 00 00 08 [04:14:30]Write i2c OK [04:14:30]MH_I2C_Read... [04:14:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:14:30]Read from MH i2c: E2 [04:14:30]MH_I2C_Read... [04:14:30]Read from MH i2c: E2 0B 00 [04:14:30]MH_I2C_Read... [04:14:30]Read from MH i2c: E2 0B 00 61 2C 00 21 DC A8 E3 E7 32 57 5F 90 00 60 [04:14:30]RAPDU: 21 DC A8 E3 E7 32 57 5F 90 00 [04:14:30]wFMCommunicate OK [04:14:30]SAM_PROTO_SignData done [04:14:30]FM_MakeSignedData done [04:14:30]CreateOFDProtocolMessage [04:14:30]wFMCommunicate request_size=4 [04:14:30]MH_SAM_APDU [04:14:30]CAPDU: 80 11 00 00 [04:14:30]Write to MH i2c: E2 08 00 62 2C 80 11 00 00 00 00 00 00 08 [04:14:30]Write i2c OK [04:14:30]MH_I2C_Read... [04:14:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:14:30]Read from MH i2c: E2 [04:14:30]MH_I2C_Read... [04:14:30]Read from MH i2c: E2 17 00 [04:14:30]MH_I2C_Read... [04:14:30]Read from MH i2c: E2 17 00 62 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 63 [04:14:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:14:30]wFMCommunicate OK [04:14:30]CreateOFDProtocolMessage done [04:14:30]OFDSenderStorePacket 118636 [04:14:30]StoreOFDPacket docnum=118636 [04:14:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 D4 46 04 01 68 85 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 F4 3D 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 28 17 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C CF 01 00 35 04 06 00 61 A5 12 DB B0 34 21 DC A8 E3 E7 32 57 5F [04:14:30]CheckFolder [04:14:30]dirname=/storage/ofd_packets [04:14:30]CheckFolder done [04:14:30]ProducePacketName [04:14:30]name=ofd_packets/00118636 [04:14:30]NVStorageSaveData ofd_packets/00118636 [04:14:30]File name is /storage/ofd_packets/00118636 [04:14:30]Write 298 bytes [04:14:30]NVStorageSaveData done [04:14:30]OFDSenderStorePacket done [04:14:30]KKMCreateOFDPacket done [04:14:30]NVStorageSaveData kkm_last_timestamp [04:14:30]File name is /storage/kkm_last_timestamp [04:14:30]Write 4 bytes [04:14:30]NVStorageSaveData done [04:14:30]ExternCall_PrintAddStr [04:14:30]wPrintStart [04:14:30]Write to MH i2c: 01 00 00 63 2C 8F [04:14:30]Write i2c OK [04:14:30]MH_I2C_Read... [04:14:30]Read from MH i2c: 01 [04:14:30]MH_I2C_Read... [04:14:30]Read from MH i2c: 01 07 00 [04:14:30]MH_I2C_Read... [04:14:30]Read from MH i2c: 01 07 00 63 2C 00 00 00 00 00 FF 0F A4 [04:14:30]RasterBufferAndPrint [04:14:30]line Счет N : (1)949520 [04:14:30]line ИНН: 02508201610067 [04:14:30]line Контрольно-Кассовый Чек [04:14:30]line ПРОДАЖА [04:14:30]line ТРК (МРК, ГНК) : 11 [04:14:30]line Товар: 2710194800 [04:14:30]line ДТ-К-5 [04:14:30]line 131.100 * 76.20 [04:14:30]line = 9989.82 [04:14:30]line НДС 12% НСП 1% [04:14:30]line > о реализуемом товаре [04:14:30]line ОКРУГЛЕНИЕ: -0.82 [04:14:30]line ИТОГО: 9989.00 [04:14:30]line Внесено: 10000.00 [04:14:30]line СДАЧА: 11.00 [04:14:30]line НСП 1% : 88.40 [04:14:30]line НДС 12% : 1060.87 [04:14:30]line Наличными: 9989.00 [04:14:30]line Безнал.: 0.00 [04:14:30]line Место: АЗС № 134 "Партнер Нефть" [04:14:30]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:14:30]line СНО: Общий режим [04:14:30]line Чек 12 29.07.2024 04:14 [04:14:30]line Смена: 434 ФФД: 1.0 [04:14:30]line ЗНМ: 0300000044 [04:14:30]line РНМ: 0000000000092660 [04:14:30]line Версия ККМ: 001 [04:14:30]line ФМ: 0000000000874939 [04:14:30]line ФД: 118636 [04:14:30]line ФПД: 107361613885492 [04:14:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T041432&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118636&fm=107361613885492&tin=02508201610067®Number=0000000000092660&sum=998900 [04:14:30]written 0, free lines is 4095 [04:14:30]OFD Sender: Processing packet 118636 [packets to send 86, broken 85] [04:14:30]ProducePacketName [04:14:30]name=ofd_packets/00118636 [04:14:30]OFD Sender: To server: pG, [04:14:30]CommunicateWithHost lk.salyk.kg:30040 [04:14:30]ConnectInit lk.salyk.kg [04:14:30]Connected sock=10 [04:14:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 D4 46 04 01 68 85 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 F4 3D 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 28 17 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C CF 01 00 35 04 06 00 61 A5 12 DB B0 34 21 DC A8 E3 E7 32 57 5F [04:14:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 64 D8 47 00 21 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 34 39 33 39 10 04 04 00 6C CF 01 00 F4 03 04 00 B7 C4 A6 66 B6 04 01 00 00 D5 CD ED 07 B4 3F BF 62 [04:14:31]CommunicateWithHost err = 0 [04:14:31]CheckOFDResponse [04:14:31]1017 (14) - 77093643461234 [04:14:31]1041 (16) - 0000000000874939 [04:14:31]1040 (4) - 118636 [04:14:31]1012 (4) - 28.07.2024 22:22 [04:14:31]1206 (1) - 0 [04:14:31]OFD Sender: Remove packet 118636 [04:14:31]ProducePacketName [04:14:31]name=ofd_packets/00118636 [04:14:31]NVStorageDeleteData [04:14:31]Write to MH i2c: 01 00 00 8D 2C B9 [04:14:31]Write i2c OK [04:14:31]MH_I2C_Read... [04:14:31]Read from MH i2c: 01 [04:14:31]MH_I2C_Read... [04:14:31]Read from MH i2c: 01 07 00 [04:14:31]MH_I2C_Read... [04:14:31]Read from MH i2c: 01 07 00 8D 2C 00 00 00 00 00 E3 0C AF [04:14:31]RasterBufferAndPrint [04:14:31]line [04:14:31]line [04:14:31]line [04:14:31]line [04:14:31]line [04:14:31]written 0, free lines is 3311 [04:14:31]MH_Cut [04:14:31]Write to MH i2c: D1 01 00 94 2C 01 92 [04:14:31]Write i2c OK [04:14:31]MH_I2C_Read... [04:14:31]Read from MH i2c: D1 [04:14:31]MH_I2C_Read... [04:14:31]Read from MH i2c: D1 01 00 [04:14:31]MH_I2C_Read... [04:14:31]Read from MH i2c: D1 01 00 94 2C 00 91 [04:14:31]Write to MH i2c: 01 00 00 95 2C C1 [04:14:31]Write i2c OK [04:14:31]MH_I2C_Read... [04:14:31]OFD Sender: No OFD packet to send [04:14:31]*** Cut start [04:14:31]*** Partial cut [04:14:31]*** CUTSNS_PIN = 1 [04:14:31]*** CUTSNS_PIN = 0 [04:14:32]*** Brake cut motor [04:14:32]Read from MH i2c: 01 [04:14:32]MH_I2C_Read... [04:14:32]*** Stop cut motor [04:14:32]*** Cut end [04:14:32]Read from MH i2c: 01 07 00 [04:14:32]MH_I2C_Read... [04:14:32]Read from MH i2c: 01 07 00 95 2C 00 00 00 00 00 FF 0F D6 [04:14:32]process_action close_receipt done [04:14:32]requested_data is exist [04:14:32]produce_requested_data [04:14:32]requested_item fm.sn is exist - process it [04:14:32]wFMCommunicate request_size=4 [04:14:32]MH_SAM_APDU [04:14:32]CAPDU: 80 11 00 00 [04:14:32]Write to MH i2c: E2 08 00 96 2C 80 11 00 00 00 00 00 00 3C [04:14:32]Write i2c OK [04:14:32]MH_I2C_Read... [04:14:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:14:32]Read from MH i2c: E2 [04:14:32]MH_I2C_Read... [04:14:32]Read from MH i2c: E2 17 00 [04:14:32]MH_I2C_Read... [04:14:32]Read from MH i2c: E2 17 00 96 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 97 [04:14:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:14:32]wFMCommunicate OK [04:14:32]requested_item fd.num is exist - process it [04:14:32]SAM_PROTO_GetFieldsCounters [04:14:32]wFMCommunicate request_size=4 [04:14:32]MH_SAM_APDU [04:14:32]CAPDU: 80 13 00 00 [04:14:32]Write to MH i2c: E2 08 00 97 2C 80 13 00 00 00 00 00 00 3F [04:14:32]Write i2c OK [04:14:32]MH_I2C_Read... [04:14:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:14:32]Read from MH i2c: E2 [04:14:32]MH_I2C_Read... [04:14:32]Read from MH i2c: E2 62 00 [04:14:32]MH_I2C_Read... [04:14:32]Read from MH i2c: E2 62 00 97 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6C CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [04:14:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6C CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:14:32]wFMCommunicate OK [04:14:32]SAM_PROTO_GetFieldsCounters done [04:14:32]requested_item shift.num is exist - process it [04:14:32]requested_item shift.opened is exist - process it [04:14:32]req_shift_opened [04:14:32]FM_GetShiftState [04:14:32]SAM_PROTO_GetShiftState [04:14:32]wFMCommunicate request_size=4 [04:14:32]MH_SAM_APDU [04:14:32]CAPDU: 80 13 01 00 [04:14:32]Write to MH i2c: E2 08 00 98 2C 80 13 01 00 00 00 00 00 41 [04:14:32]Write i2c OK [04:14:32]MH_I2C_Read... [04:14:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:14:32]Read from MH i2c: E2 [04:14:32]MH_I2C_Read... [04:14:32]Read from MH i2c: E2 0E 00 [04:14:32]MH_I2C_Read... [04:14:32]Read from MH i2c: E2 0E 00 98 2C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 6F [04:14:32]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [04:14:32]wFMCommunicate OK [04:14:32]SAM_PROTO_GetShiftState done [04:14:32]FM_GetShiftState done [04:14:32]req_shift_opened done [04:14:32]requested_item shift.open_date is exist - process it [04:14:32]req_shift_open_date [04:14:32]req_shift_open_date done [04:14:32]produce_requested_data done [04:14:32]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118636,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [04:14:32]process_action_free close_receipt [04:14:32]json_value_free [04:14:32]json_value_free done [04:14:32]process_json_proto returns [04:14:32]Send response to host [04:14:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118636,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [04:14:32]free response buf [04:14:32]execute_script done [04:14:32]execute_script returns [04:14:32]free content buf [04:14:32]Sock 7.Close socket [04:14:32]Sock 7.Thread stoped [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:49]accept exits with 9 [04:18:49]New connection [04:18:49]New thread 3067383140 created [04:18:49]Thread 3067239780 joined [04:18:49]Waiting for new connection... [04:18:49] Sock 9.Parse request [04:18:49]Sock 9.Check first char [04:18:49]Sock 9.First char is OK [04:18:49]request: POST /json_proto HTTP/1.0 [04:18:49]Method: POST [04:18:49]URL: /json_proto [04:18:49]Method is POST - this is cgi request [04:18:49]url: /json_proto [04:18:49]query_string will be loaded in cgi processing [04:18:49]execute_cgi json_proto POST (null) [04:18:49]execute_cgi path=json_proto method=POST [04:18:49]POST find Content-Length [04:18:49]Host: 172.17.45.7:8080 [04:18:49]Content-Length: 680 [04:18:49]Content-Type: application/json [04:18:49] [04:18:49]POST finish read [04:18:49]Found Content-Length = 680 [04:18:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:18:49]execute_script... [04:18:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:18:49]POST & json_proto [04:18:49]process_json_proto [04:18:49]json parsed OK: [04:18:49]protocol is kg_v1.0 [04:18:49]action value=close_receipt [04:18:49]process_action close_receipt [04:18:49]cmd_close_receipt [04:18:49]MH_GetDate [04:18:49]Write to MH i2c: F0 00 00 99 2C B4 [04:18:49]Write i2c OK [04:18:49]MH_I2C_Read... [04:18:49]Read from MH i2c: F0 [04:18:49]MH_I2C_Read... [04:18:49]Read from MH i2c: F0 09 00 [04:18:49]MH_I2C_Read... [04:18:49]Read from MH i2c: F0 09 00 99 2C 00 2D 18 A7 66 90 0F 3E 66 52 [04:18:49]GetLastDocTimeStamp 1722226472 [04:18:49]current date 1722226733 [04:18:49]FM_GetShiftState [04:18:49]SAM_PROTO_GetShiftState [04:18:49]wFMCommunicate request_size=4 [04:18:49]MH_SAM_APDU [04:18:49]CAPDU: 80 13 01 00 [04:18:49]Write to MH i2c: E2 08 00 9A 2C 80 13 01 00 00 00 00 00 43 [04:18:49]Write i2c OK [04:18:49]MH_I2C_Read... [04:18:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:18:49]Read from MH i2c: E2 [04:18:49]MH_I2C_Read... [04:18:49]Read from MH i2c: E2 0E 00 [04:18:49]MH_I2C_Read... [04:18:49]Read from MH i2c: E2 0E 00 9A 2C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 71 [04:18:49]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [04:18:49]wFMCommunicate OK [04:18:49]SAM_PROTO_GetShiftState done [04:18:49]FM_GetShiftState done [04:18:49]opened in 1722211641 [04:18:49]opened+sec_in_day 1722298041 [04:18:49]quantity*price = 800023 [04:18:49]sum+1 = 800025 [04:18:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.58 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 13 29.07.2024 04:18 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118637 ФПД: 95499837573342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T041853&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118637&fm=95499837573342&tin=02508201610067®Number=0000000000092660&sum=800000 [04:18:50]StoreToDocumentArchive [04:18:50]shift 434 fd 118637 [04:18:50]save to /storage/0434/doc_00118637 [04:18:50]save last doc name /storage/0434/doc_00118637 to /storage/kkm_last_doc_name [04:18:50]save OK [04:18:50]Clear old archive folders... [04:18:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:18:50]tlvbuf is 01E82DA0 [04:18:50]SAM_PROTO_ClearQueue [04:18:50]wFMCommunicate request_size=4 [04:18:50]MH_SAM_APDU [04:18:50]CAPDU: 80 09 00 00 [04:18:50]Write to MH i2c: E2 08 00 A7 2C 80 09 00 00 00 00 00 00 45 [04:18:50]Write i2c OK [04:18:50]MH_I2C_Read... [04:18:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:18:50]Read from MH i2c: E2 [04:18:50]MH_I2C_Read... [04:18:50]Read from MH i2c: E2 03 00 [04:18:50]MH_I2C_Read... [04:18:50]Read from MH i2c: E2 03 00 A7 2C 00 90 00 47 [04:18:50]RAPDU: 90 00 [04:18:50]wFMCommunicate OK [04:18:50]SAM_PROTO_ClearQueue done [04:18:50]KKMCreateOFDPacket [04:18:50]OFDProtocolAddRootSTLVToBuf [04:18:50]FM_MakeSignedData [04:18:50]FM_MakeSignedData [04:18:50]SAM_PROTO_SignData [04:18:50]wFMCommunicate request_size=4 [04:18:50]MH_SAM_APDU [04:18:50]CAPDU: 80 0D 01 02 [04:18:50]Write to MH i2c: E2 08 00 A8 2C 80 0D 01 02 00 00 00 00 4D [04:18:50]Write i2c OK [04:18:50]MH_I2C_Read... [04:18:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:18:50]Read from MH i2c: E2 [04:18:50]MH_I2C_Read... [04:18:50]Read from MH i2c: E2 03 00 [04:18:50]MH_I2C_Read... [04:18:50]Read from MH i2c: E2 03 00 A8 2C 00 90 00 48 [04:18:50]RAPDU: 90 00 [04:18:50]wFMCommunicate OK [04:18:50]wFMCommunicate request_size=255 [04:18:50]MH_SAM_APDU [04:18:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 2D 18 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6D CF 01 00 35 04 06 00 56 DB 49 E5 [04:18:50]Write to MH i2c: E2 02 01 A9 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 2D 18 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6D CF 01 00 35 04 06 00 56 DB 49 E5 00 00 C5 [04:18:50]Write i2c OK [04:18:50]MH_I2C_Read... [04:18:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:18:50]Read from MH i2c: E2 [04:18:50]MH_I2C_Read... [04:18:50]Read from MH i2c: E2 03 00 [04:18:50]MH_I2C_Read... [04:18:50]Read from MH i2c: E2 03 00 A9 2C 00 90 00 49 [04:18:50]RAPDU: 90 00 [04:18:50]wFMCommunicate OK [04:18:50]wFMCommunicate request_size=7 [04:18:50]MH_SAM_APDU [04:18:50]CAPDU: 80 0D 02 02 02 08 DE [04:18:50]Write to MH i2c: E2 0A 00 AA 2C 80 0D 02 02 02 00 08 DE 00 00 3A [04:18:50]Write i2c OK [04:18:50]MH_I2C_Read... [04:18:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:18:50]Read from MH i2c: E2 [04:18:50]MH_I2C_Read... [04:18:50]Read from MH i2c: E2 03 00 [04:18:50]MH_I2C_Read... [04:18:50]Read from MH i2c: E2 03 00 AA 2C 00 90 00 4A [04:18:50]RAPDU: 90 00 [04:18:50]wFMCommunicate OK [04:18:50]wFMCommunicate request_size=4 [04:18:50]MH_SAM_APDU [04:18:50]CAPDU: 80 0D 03 02 [04:18:50]Write to MH i2c: E2 08 00 AB 2C 80 0D 03 02 00 00 00 00 52 [04:18:50]Write i2c OK [04:18:50]MH_I2C_Read... [04:18:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:18:50]Read from MH i2c: E2 [04:18:50]MH_I2C_Read... [04:18:50]Read from MH i2c: E2 0B 00 [04:18:50]MH_I2C_Read... [04:18:50]Read from MH i2c: E2 0B 00 AB 2C 00 E8 24 B2 C4 B8 9C AC B9 90 00 8E [04:18:50]RAPDU: E8 24 B2 C4 B8 9C AC B9 90 00 [04:18:50]wFMCommunicate OK [04:18:50]SAM_PROTO_SignData done [04:18:50]FM_MakeSignedData done [04:18:50]CreateOFDProtocolMessage [04:18:50]wFMCommunicate request_size=4 [04:18:50]MH_SAM_APDU [04:18:50]CAPDU: 80 11 00 00 [04:18:50]Write to MH i2c: E2 08 00 AC 2C 80 11 00 00 00 00 00 00 52 [04:18:50]Write i2c OK [04:18:50]MH_I2C_Read... [04:18:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:18:50]Read from MH i2c: E2 [04:18:50]MH_I2C_Read... [04:18:50]Read from MH i2c: E2 17 00 [04:18:50]MH_I2C_Read... [04:18:50]Read from MH i2c: E2 17 00 AC 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AD [04:18:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:18:50]wFMCommunicate OK [04:18:50]CreateOFDProtocolMessage done [04:18:50]OFDSenderStorePacket 118637 [04:18:50]StoreOFDPacket docnum=118637 [04:18:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B0 AA 04 01 EF F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 2D 18 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6D CF 01 00 35 04 06 00 56 DB 49 E5 08 DE E8 24 B2 C4 B8 9C AC B9 [04:18:50]CheckFolder [04:18:50]dirname=/storage/ofd_packets [04:18:50]CheckFolder done [04:18:50]ProducePacketName [04:18:50]name=ofd_packets/00118637 [04:18:50]NVStorageSaveData ofd_packets/00118637 [04:18:50]File name is /storage/ofd_packets/00118637 [04:18:50]Write 298 bytes [04:18:50]NVStorageSaveData done [04:18:50]OFDSenderStorePacket done [04:18:50]KKMCreateOFDPacket done [04:18:50]NVStorageSaveData kkm_last_timestamp [04:18:50]File name is /storage/kkm_last_timestamp [04:18:50]Write 4 bytes [04:18:50]NVStorageSaveData done [04:18:50]ExternCall_PrintAddStr [04:18:50]wPrintStart [04:18:50]Write to MH i2c: 01 00 00 AD 2C D9 [04:18:50]Write i2c OK [04:18:50]MH_I2C_Read... [04:18:50]Read from MH i2c: 01 [04:18:50]MH_I2C_Read... [04:18:50]Read from MH i2c: 01 07 00 [04:18:50]MH_I2C_Read... [04:18:50]Read from MH i2c: 01 07 00 AD 2C 00 00 00 00 00 FF 0F EE [04:18:50]RasterBufferAndPrint [04:18:50]line Счет N : (1)949521 [04:18:50]line ИНН: 02508201610067 [04:18:50]line Контрольно-Кассовый Чек [04:18:50]line ПРОДАЖА [04:18:50]line ТРК (МРК, ГНК) : 11 [04:18:50]line Товар: 2710194800 [04:18:50]line ДТ-К-5 [04:18:50]line 104.990 * 76.20 [04:18:50]line = 8000.24 [04:18:50]line НДС 12% НСП 1% [04:18:50]line > о реализуемом товаре [04:18:50]line ОКРУГЛЕНИЕ: -0.24 [04:18:50]line ИТОГО: 8000.00 [04:18:50]line Внесено: 8000.00 [04:18:50]line СДАЧА: 0.00 [04:18:50]line НСП 1% : 70.80 [04:18:50]line НДС 12% : 849.58 [04:18:50]line Наличными: 8000.00 [04:18:50]line Безнал.: 0.00 [04:18:50]line Место: АЗС № 134 "Партнер Нефть" [04:18:50]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:18:50]line СНО: Общий режим [04:18:50]line Чек 13 29.07.2024 04:18 [04:18:50]line Смена: 434 ФФД: 1.0 [04:18:50]line ЗНМ: 0300000044 [04:18:50]line РНМ: 0000000000092660 [04:18:50]line Версия ККМ: 001 [04:18:50]line ФМ: 0000000000874939 [04:18:50]line ФД: 118637 [04:18:50]line ФПД: 95499837573342 [04:18:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T041853&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118637&fm=95499837573342&tin=02508201610067®Number=0000000000092660&sum=800000 [04:18:51]OFD Sender: Processing packet 118637 [packets to send 86, broken 85] [04:18:51]ProducePacketName [04:18:51]name=ofd_packets/00118637 [04:18:51]OFD Sender: To server: pG, [04:18:51]CommunicateWithHost lk.salyk.kg:30040 [04:18:51]ConnectInit lk.salyk.kg [04:18:51]written 0, free lines is 4095 [04:18:51]Connected sock=10 [04:18:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B0 AA 04 01 EF F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 2D 18 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6D CF 01 00 35 04 06 00 56 DB 49 E5 08 DE E8 24 B2 C4 B8 9C AC B9 [04:18:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 19 90 47 00 38 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 34 39 33 39 10 04 04 00 6D CF 01 00 F4 03 04 00 BB C5 A6 66 B6 04 01 00 00 09 1C BD F2 E5 C0 CF 80 [04:18:51]CommunicateWithHost err = 0 [04:18:51]CheckOFDResponse [04:18:51]1017 (14) - 77093643461234 [04:18:51]1041 (16) - 0000000000874939 [04:18:51]1040 (4) - 118637 [04:18:51]1012 (4) - 28.07.2024 22:27 [04:18:51]1206 (1) - 0 [04:18:51]OFD Sender: Remove packet 118637 [04:18:51]ProducePacketName [04:18:51]name=ofd_packets/00118637 [04:18:51]NVStorageDeleteData [04:18:51]Write to MH i2c: 01 00 00 D7 2C 03 [04:18:51]Write i2c OK [04:18:51]MH_I2C_Read... [04:18:51]Read from MH i2c: 01 [04:18:51]MH_I2C_Read... [04:18:51]Read from MH i2c: 01 07 00 [04:18:51]MH_I2C_Read... [04:18:51]Read from MH i2c: 01 07 00 D7 2C 00 00 00 00 00 E9 0C FF [04:18:51]RasterBufferAndPrint [04:18:51]line [04:18:51]line [04:18:51]line [04:18:51]line [04:18:51]line [04:18:51]written 0, free lines is 3311 [04:18:51]MH_Cut [04:18:51]Write to MH i2c: D1 01 00 DE 2C 01 DC [04:18:51]Write i2c OK [04:18:51]MH_I2C_Read... [04:18:51]Read from MH i2c: D1 [04:18:51]MH_I2C_Read... [04:18:51]Read from MH i2c: D1 01 00 [04:18:51]MH_I2C_Read... [04:18:51]Read from MH i2c: D1 01 00 DE 2C 00 DB [04:18:51]Write to MH i2c: 01 00 00 DF 2C 0B [04:18:51]Write i2c OK [04:18:51]MH_I2C_Read... [04:18:52]OFD Sender: No OFD packet to send [04:18:52]*** Cut start [04:18:52]*** Partial cut [04:18:52]*** CUTSNS_PIN = 1 [04:18:52]*** CUTSNS_PIN = 0 [04:18:52]*** Brake cut motor [04:18:53]Read from MH i2c: 01 [04:18:53]MH_I2C_Read... [04:18:53]*** Stop cut motor [04:18:53]*** Cut end [04:18:53]Read from MH i2c: 01 07 00 [04:18:53]MH_I2C_Read... [04:18:53]Read from MH i2c: 01 07 00 DF 2C 00 00 00 00 00 FF 0F 20 [04:18:53]process_action close_receipt done [04:18:53]requested_data is exist [04:18:53]produce_requested_data [04:18:53]requested_item fm.sn is exist - process it [04:18:53]wFMCommunicate request_size=4 [04:18:53]MH_SAM_APDU [04:18:53]CAPDU: 80 11 00 00 [04:18:53]Write to MH i2c: E2 08 00 E0 2C 80 11 00 00 00 00 00 00 86 [04:18:53]Write i2c OK [04:18:53]MH_I2C_Read... [04:18:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:18:53]Read from MH i2c: E2 [04:18:53]MH_I2C_Read... [04:18:53]Read from MH i2c: E2 17 00 [04:18:53]MH_I2C_Read... [04:18:53]Read from MH i2c: E2 17 00 E0 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E1 [04:18:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:18:53]wFMCommunicate OK [04:18:53]requested_item fd.num is exist - process it [04:18:53]SAM_PROTO_GetFieldsCounters [04:18:53]wFMCommunicate request_size=4 [04:18:53]MH_SAM_APDU [04:18:53]CAPDU: 80 13 00 00 [04:18:53]Write to MH i2c: E2 08 00 E1 2C 80 13 00 00 00 00 00 00 89 [04:18:53]Write i2c OK [04:18:53]MH_I2C_Read... [04:18:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:18:53]Read from MH i2c: E2 [04:18:53]MH_I2C_Read... [04:18:53]Read from MH i2c: E2 62 00 [04:18:53]MH_I2C_Read... [04:18:53]Read from MH i2c: E2 62 00 E1 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6D CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [04:18: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6D CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:18:53]wFMCommunicate OK [04:18:53]SAM_PROTO_GetFieldsCounters done [04:18:53]requested_item shift.num is exist - process it [04:18:53]requested_item shift.opened is exist - process it [04:18:53]req_shift_opened [04:18:53]FM_GetShiftState [04:18:53]SAM_PROTO_GetShiftState [04:18:53]wFMCommunicate request_size=4 [04:18:53]MH_SAM_APDU [04:18:53]CAPDU: 80 13 01 00 [04:18:53]Write to MH i2c: E2 08 00 E2 2C 80 13 01 00 00 00 00 00 8B [04:18:53]Write i2c OK [04:18:53]MH_I2C_Read... [04:18:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:18:53]Read from MH i2c: E2 [04:18:53]MH_I2C_Read... [04:18:53]Read from MH i2c: E2 0E 00 [04:18:53]MH_I2C_Read... [04:18:53]Read from MH i2c: E2 0E 00 E2 2C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B9 [04:18:53]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [04:18:53]wFMCommunicate OK [04:18:53]SAM_PROTO_GetShiftState done [04:18:53]FM_GetShiftState done [04:18:53]req_shift_opened done [04:18:53]requested_item shift.open_date is exist - process it [04:18:53]req_shift_open_date [04:18:53]req_shift_open_date done [04:18:53]produce_requested_data done [04:18:53]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118637,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [04:18:53]process_action_free close_receipt [04:18:53]json_value_free [04:18:53]json_value_free done [04:18:53]process_json_proto returns [04:18:53]Send response to host [04:18:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118637,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [04:18:53]free response buf [04:18:53]execute_script done [04:18:53]execute_script returns [04:18:53]free content buf [04:18:53]Sock 9.Close socket [04:18:53]Sock 9.Thread stoped [04:18:57]OFD Sender: No OFD packet to send [04:18:58]accept exits with 7 [04:18:58]New connection [04:18:58]New thread 3067239780 created [04:18:58]Thread 3067383140 joined [04:18:58]Waiting for new connection... [04:18:58] Sock 7.Parse request [04:18:58]Sock 7.Check first char [04:18:58]Sock 7.First char is OK [04:18:58]request: POST /json_proto HTTP/1.0 [04:18:58]Method: POST [04:18:58]URL: /json_proto [04:18:58]Method is POST - this is cgi request [04:18:58]url: /json_proto [04:18:58]query_string will be loaded in cgi processing [04:18:58]execute_cgi json_proto POST (null) [04:18:58]execute_cgi path=json_proto method=POST [04:18:58]POST find Content-Length [04:18:58]Host: 172.17.45.7:8080 [04:18:58]Content-Length: 680 [04:18:58]Content-Type: application/json [04:18:58] [04:18:58]POST finish read [04:18:58]Found Content-Length = 680 [04:18:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:18:58]execute_script... [04:18:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:18:58]POST & json_proto [04:18:58]process_json_proto [04:18:58]json parsed OK: [04:18:58]protocol is kg_v1.0 [04:18:58]action value=close_receipt [04:18:58]process_action close_receipt [04:18:58]cmd_close_receipt [04:18:58]MH_GetDate [04:18:58]Write to MH i2c: F0 00 00 E3 2C FE [04:18:58]Write i2c OK [04:18:58]MH_I2C_Read... [04:18:58]Read from MH i2c: F0 [04:18:58]MH_I2C_Read... [04:18:58]Read from MH i2c: F0 09 00 [04:18:58]MH_I2C_Read... [04:18:58]Read from MH i2c: F0 09 00 E3 2C 00 36 18 A7 66 90 0F 3E 66 A5 [04:18:58]GetLastDocTimeStamp 1722226733 [04:18:58]current date 1722226742 [04:18:58]FM_GetShiftState [04:18:58]SAM_PROTO_GetShiftState [04:18:58]wFMCommunicate request_size=4 [04:18:58]MH_SAM_APDU [04:18:58]CAPDU: 80 13 01 00 [04:18:58]Write to MH i2c: E2 08 00 E4 2C 80 13 01 00 00 00 00 00 8D [04:18:58]Write i2c OK [04:18:58]MH_I2C_Read... [04:18:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:18:58]Read from MH i2c: E2 [04:18:58]MH_I2C_Read... [04:18:58]Read from MH i2c: E2 0E 00 [04:18:58]MH_I2C_Read... [04:18:58]Read from MH i2c: E2 0E 00 E4 2C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 BB [04:18:58]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [04:18:58]wFMCommunicate OK [04:18:58]SAM_PROTO_GetShiftState done [04:18:58]FM_GetShiftState done [04:18:58]opened in 1722211641 [04:18:58]opened+sec_in_day 1722298041 [04:18:58]quantity*price = 800023 [04:18:58]sum+1 = 800025 [04:18:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.58 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 14 29.07.2024 04:19 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118638 ФПД: 139554070338546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T041902&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118638&fm=139554070338546&tin=02508201610067®Number=0000000000092660&sum=800000 [04:18:59]StoreToDocumentArchive [04:18:59]shift 434 fd 118638 [04:18:59]save to /storage/0434/doc_00118638 [04:18:59]save last doc name /storage/0434/doc_00118638 to /storage/kkm_last_doc_name [04:18:59]save OK [04:18:59]Clear old archive folders... [04:18:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:18:59]tlvbuf is B6F2A1F0 [04:18:59]SAM_PROTO_ClearQueue [04:18:59]wFMCommunicate request_size=4 [04:18:59]MH_SAM_APDU [04:18:59]CAPDU: 80 09 00 00 [04:18:59]Write to MH i2c: E2 08 00 F1 2C 80 09 00 00 00 00 00 00 8F [04:18:59]Write i2c OK [04:18:59]MH_I2C_Read... [04:18:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:18:59]Read from MH i2c: E2 [04:18:59]MH_I2C_Read... [04:18:59]Read from MH i2c: E2 03 00 [04:18:59]MH_I2C_Read... [04:18:59]Read from MH i2c: E2 03 00 F1 2C 00 90 00 91 [04:18:59]RAPDU: 90 00 [04:18:59]wFMCommunicate OK [04:18:59]SAM_PROTO_ClearQueue done [04:18:59]KKMCreateOFDPacket [04:18:59]OFDProtocolAddRootSTLVToBuf [04:18:59]FM_MakeSignedData [04:18:59]FM_MakeSignedData [04:18:59]SAM_PROTO_SignData [04:18:59]wFMCommunicate request_size=4 [04:18:59]MH_SAM_APDU [04:18:59]CAPDU: 80 0D 01 02 [04:18:59]Write to MH i2c: E2 08 00 F2 2C 80 0D 01 02 00 00 00 00 97 [04:18:59]Write i2c OK [04:18:59]MH_I2C_Read... [04:18:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:18:59]Read from MH i2c: E2 [04:18:59]MH_I2C_Read... [04:18:59]Read from MH i2c: E2 03 00 [04:18:59]MH_I2C_Read... [04:18:59]Read from MH i2c: E2 03 00 F2 2C 00 90 00 92 [04:18:59]RAPDU: 90 00 [04:18:59]wFMCommunicate OK [04:18:59]wFMCommunicate request_size=255 [04:18:59]MH_SAM_APDU [04:18:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 36 18 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E CF 01 00 35 04 06 00 7E EC 76 CA [04:18:59]Write to MH i2c: E2 02 01 F3 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 36 18 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E CF 01 00 35 04 06 00 7E EC 76 CA 00 00 65 [04:18:59]Write i2c OK [04:18:59]MH_I2C_Read... [04:19:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:19:00]Read from MH i2c: E2 [04:19:00]MH_I2C_Read... [04:19:00]Read from MH i2c: E2 03 00 [04:19:00]MH_I2C_Read... [04:19:00]Read from MH i2c: E2 03 00 F3 2C 00 90 00 93 [04:19:00]RAPDU: 90 00 [04:19:00]wFMCommunicate OK [04:19:00]wFMCommunicate request_size=7 [04:19:00]MH_SAM_APDU [04:19:00]CAPDU: 80 0D 02 02 02 1B F2 [04:19:00]Write to MH i2c: E2 0A 00 F4 2C 80 0D 02 02 02 00 1B F2 00 00 AB [04:19:00]Write i2c OK [04:19:00]MH_I2C_Read... [04:19:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:19:00]Read from MH i2c: E2 [04:19:00]MH_I2C_Read... [04:19:00]Read from MH i2c: E2 03 00 [04:19:00]MH_I2C_Read... [04:19:00]Read from MH i2c: E2 03 00 F4 2C 00 90 00 94 [04:19:00]RAPDU: 90 00 [04:19:00]wFMCommunicate OK [04:19:00]wFMCommunicate request_size=4 [04:19:00]MH_SAM_APDU [04:19:00]CAPDU: 80 0D 03 02 [04:19:00]Write to MH i2c: E2 08 00 F5 2C 80 0D 03 02 00 00 00 00 9C [04:19:00]Write i2c OK [04:19:00]MH_I2C_Read... [04:19:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:19:00]Read from MH i2c: E2 [04:19:00]MH_I2C_Read... [04:19:00]Read from MH i2c: E2 0B 00 [04:19:00]MH_I2C_Read... [04:19:00]Read from MH i2c: E2 0B 00 F5 2C 00 FF 14 5E B0 D4 B8 B1 CD 90 00 C8 [04:19:00]RAPDU: FF 14 5E B0 D4 B8 B1 CD 90 00 [04:19:00]wFMCommunicate OK [04:19:00]SAM_PROTO_SignData done [04:19:00]FM_MakeSignedData done [04:19:00]CreateOFDProtocolMessage [04:19:00]wFMCommunicate request_size=4 [04:19:00]MH_SAM_APDU [04:19:00]CAPDU: 80 11 00 00 [04:19:00]Write to MH i2c: E2 08 00 F6 2C 80 11 00 00 00 00 00 00 9C [04:19:00]Write i2c OK [04:19:00]MH_I2C_Read... [04:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:19:00]Read from MH i2c: E2 [04:19:00]MH_I2C_Read... [04:19:00]Read from MH i2c: E2 17 00 [04:19:00]MH_I2C_Read... [04:19:00]Read from MH i2c: E2 17 00 F6 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F7 [04:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:19:00]wFMCommunicate OK [04:19:00]CreateOFDProtocolMessage done [04:19:00]OFDSenderStorePacket 118638 [04:19:00]StoreOFDPacket docnum=118638 [04:19:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 28 98 04 01 41 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 36 18 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E CF 01 00 35 04 06 00 7E EC 76 CA 1B F2 FF 14 5E B0 D4 B8 B1 CD [04:19:00]CheckFolder [04:19:00]dirname=/storage/ofd_packets [04:19:00]CheckFolder done [04:19:00]ProducePacketName [04:19:00]name=ofd_packets/00118638 [04:19:00]NVStorageSaveData ofd_packets/00118638 [04:19:00]File name is /storage/ofd_packets/00118638 [04:19:00]Write 298 bytes [04:19:00]NVStorageSaveData done [04:19:00]OFDSenderStorePacket done [04:19:00]KKMCreateOFDPacket done [04:19:00]NVStorageSaveData kkm_last_timestamp [04:19:00]File name is /storage/kkm_last_timestamp [04:19:00]Write 4 bytes [04:19:00]NVStorageSaveData done [04:19:00]ExternCall_PrintAddStr [04:19:00]wPrintStart [04:19:00]Write to MH i2c: 01 00 00 F7 2C 23 [04:19:00]Write i2c OK [04:19:00]MH_I2C_Read... [04:19:00]Read from MH i2c: 01 [04:19:00]MH_I2C_Read... [04:19:00]Read from MH i2c: 01 07 00 [04:19:00]MH_I2C_Read... [04:19:00]Read from MH i2c: 01 07 00 F7 2C 00 00 00 00 00 FF 0F 38 [04:19:00]RasterBufferAndPrint [04:19:00]line Счет N : (1)949522 [04:19:00]line ИНН: 02508201610067 [04:19:00]line Контрольно-Кассовый Чек [04:19:00]line ПРОДАЖА [04:19:00]line ТРК (МРК, ГНК) : 21 [04:19:00]line Товар: 2710194800 [04:19:00]line ДТ-К-5 [04:19:00]line 104.990 * 76.20 [04:19:00]line = 8000.24 [04:19:00]line НДС 12% НСП 1% [04:19:00]line > о реализуемом товаре [04:19:00]line ОКРУГЛЕНИЕ: -0.24 [04:19:00]line ИТОГО: 8000.00 [04:19:00]line Внесено: 8000.00 [04:19:00]line СДАЧА: 0.00 [04:19:00]line НСП 1% : 70.80 [04:19:00]line НДС 12% : 849.58 [04:19:00]line Наличными: 8000.00 [04:19:00]line Безнал.: 0.00 [04:19:00]line Место: АЗС № 134 "Партнер Нефть" [04:19:00]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:19:00]line СНО: Общий режим [04:19:00]line Чек 14 29.07.2024 04:19 [04:19:00]line Смена: 434 ФФД: 1.0 [04:19:00]line ЗНМ: 0300000044 [04:19:00]line РНМ: 0000000000092660 [04:19:00]line Версия ККМ: 001 [04:19:00]line ФМ: 0000000000874939 [04:19:00]line ФД: 118638 [04:19:00]line ФПД: 139554070338546 [04:19:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T041902&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118638&fm=139554070338546&tin=02508201610067®Number=0000000000092660&sum=800000 [04:19:00]written 0, free lines is 4095 [04:19:00]OFD Sender: Processing packet 118638 [packets to send 86, broken 85] [04:19:00]ProducePacketName [04:19:00]name=ofd_packets/00118638 [04:19:00]OFD Sender: To server: pG, [04:19:00]CommunicateWithHost lk.salyk.kg:30040 [04:19:00]ConnectInit lk.salyk.kg [04:19:00]Connected sock=10 [04:19:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 28 98 04 01 41 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 36 18 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E CF 01 00 35 04 06 00 7E EC 76 CA 1B F2 FF 14 5E B0 D4 B8 B1 CD [04:19:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0A FD 47 00 D8 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 34 39 33 39 10 04 04 00 6E CF 01 00 F4 03 04 00 C4 C5 A6 66 B6 04 01 00 00 19 43 21 70 85 DB 58 0F [04:19:00]CommunicateWithHost err = 0 [04:19:00]CheckOFDResponse [04:19:00]1017 (14) - 77093643461234 [04:19:00]1041 (16) - 0000000000874939 [04:19:00]1040 (4) - 118638 [04:19:00]1012 (4) - 28.07.2024 22:27 [04:19:00]1206 (1) - 0 [04:19:00]OFD Sender: Remove packet 118638 [04:19:00]ProducePacketName [04:19:00]name=ofd_packets/00118638 [04:19:00]NVStorageDeleteData [04:19:00]Write to MH i2c: 01 00 00 21 2D 4E [04:19:00]Write i2c OK [04:19:00]MH_I2C_Read... [04:19:00]Read from MH i2c: 01 [04:19:00]MH_I2C_Read... [04:19:00]Read from MH i2c: 01 07 00 [04:19:00]MH_I2C_Read... [04:19:00]Read from MH i2c: 01 07 00 21 2D 00 00 00 00 00 EB 0C 4C [04:19:00]RasterBufferAndPrint [04:19:00]line [04:19:00]line [04:19:00]line [04:19:00]line [04:19:00]line [04:19:00]written 0, free lines is 3316 [04:19:00]MH_Cut [04:19:00]Write to MH i2c: D1 01 00 28 2D 01 27 [04:19:00]Write i2c OK [04:19:00]MH_I2C_Read... [04:19:00]Read from MH i2c: D1 [04:19:00]MH_I2C_Read... [04:19:00]Read from MH i2c: D1 01 00 [04:19:00]MH_I2C_Read... [04:19:00]Read from MH i2c: D1 01 00 28 2D 00 26 [04:19:00]Write to MH i2c: 01 00 00 29 2D 56 [04:19:00]Write i2c OK [04:19:00]MH_I2C_Read... [04:19:01]OFD Sender: No OFD packet to send [04:19:01]*** Cut start [04:19:01]*** Partial cut [04:19:01]*** CUTSNS_PIN = 1 [04:19:01]*** CUTSNS_PIN = 0 [04:19:01]*** Brake cut motor [04:19:02]Read from MH i2c: 01 [04:19:02]MH_I2C_Read... [04:19:02]*** Stop cut motor [04:19:02]*** Cut end [04:19:02]Read from MH i2c: 01 07 00 [04:19:02]MH_I2C_Read... [04:19:02]Read from MH i2c: 01 07 00 29 2D 00 00 00 00 00 FF 0F 6B [04:19:02]process_action close_receipt done [04:19:02]requested_data is exist [04:19:02]produce_requested_data [04:19:02]requested_item fm.sn is exist - process it [04:19:02]wFMCommunicate request_size=4 [04:19:02]MH_SAM_APDU [04:19:02]CAPDU: 80 11 00 00 [04:19:02]Write to MH i2c: E2 08 00 2A 2D 80 11 00 00 00 00 00 00 D1 [04:19:02]Write i2c OK [04:19:02]MH_I2C_Read... [04:19:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:19:02]Read from MH i2c: E2 [04:19:02]MH_I2C_Read... [04:19:02]Read from MH i2c: E2 17 00 [04:19:02]MH_I2C_Read... [04:19:02]Read from MH i2c: E2 17 00 2A 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2C [04:19:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:19:02]wFMCommunicate OK [04:19:02]requested_item fd.num is exist - process it [04:19:02]SAM_PROTO_GetFieldsCounters [04:19:02]wFMCommunicate request_size=4 [04:19:02]MH_SAM_APDU [04:19:02]CAPDU: 80 13 00 00 [04:19:02]Write to MH i2c: E2 08 00 2B 2D 80 13 00 00 00 00 00 00 D4 [04:19:02]Write i2c OK [04:19:02]MH_I2C_Read... [04:19:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:19:02]Read from MH i2c: E2 [04:19:02]MH_I2C_Read... [04:19:02]Read from MH i2c: E2 62 00 [04:19:02]MH_I2C_Read... [04:19:02]Read from MH i2c: E2 62 00 2B 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6E CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [04:19:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6E CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:19:02]wFMCommunicate OK [04:19:02]SAM_PROTO_GetFieldsCounters done [04:19:02]requested_item shift.num is exist - process it [04:19:02]requested_item shift.opened is exist - process it [04:19:02]req_shift_opened [04:19:02]FM_GetShiftState [04:19:02]SAM_PROTO_GetShiftState [04:19:02]wFMCommunicate request_size=4 [04:19:02]MH_SAM_APDU [04:19:02]CAPDU: 80 13 01 00 [04:19:02]Write to MH i2c: E2 08 00 2C 2D 80 13 01 00 00 00 00 00 D6 [04:19:02]Write i2c OK [04:19:02]MH_I2C_Read... [04:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:19:02]Read from MH i2c: E2 [04:19:02]MH_I2C_Read... [04:19:02]Read from MH i2c: E2 0E 00 [04:19:02]MH_I2C_Read... [04:19:02]Read from MH i2c: E2 0E 00 2C 2D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 04 [04:19:02]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [04:19:02]wFMCommunicate OK [04:19:02]SAM_PROTO_GetShiftState done [04:19:02]FM_GetShiftState done [04:19:02]req_shift_opened done [04:19:02]requested_item shift.open_date is exist - process it [04:19:02]req_shift_open_date [04:19:02]req_shift_open_date done [04:19:02]produce_requested_data done [04:19:02]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118638,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [04:19:02]process_action_free close_receipt [04:19:02]json_value_free [04:19:02]json_value_free done [04:19:02]process_json_proto returns [04:19:02]Send response to host [04:19:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118638,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [04:19:02]free response buf [04:19:02]execute_script done [04:19:02]execute_script returns [04:19:02]free content buf [04:19:02]Sock 7.Close socket [04:19:02]Sock 7.Thread stoped [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:08]accept exits with 9 [04:25:08]New connection [04:25:08]New thread 3067383140 created [04:25:08]Thread 3067239780 joined [04:25:08]Waiting for new connection... [04:25:08] Sock 9.Parse request [04:25:08]Sock 9.Check first char [04:25:08]Sock 9.First char is OK [04:25:08]request: POST /json_proto HTTP/1.0 [04:25:08]Method: POST [04:25:08]URL: /json_proto [04:25:08]Method is POST - this is cgi request [04:25:08]url: /json_proto [04:25:08]query_string will be loaded in cgi processing [04:25:08]execute_cgi json_proto POST (null) [04:25:08]execute_cgi path=json_proto method=POST [04:25:08]POST find Content-Length [04:25:08]Host: 172.17.45.7:8080 [04:25:08]Content-Length: 679 [04:25:08]Content-Type: application/json [04:25:08] [04:25:08]POST finish read [04:25:08]Found Content-Length = 679 [04:25:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 38.260, "sum" : 2915.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2915.00, "total" : 2915.00, "payments": [ { "type": 0, "sum" : 2915.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:25:08]execute_script... [04:25: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)949523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 38.260, "sum" : 2915.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2915.00, "total" : 2915.00, "payments": [ { "type": 0, "sum" : 2915.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:25:08]POST & json_proto [04:25:08]process_json_proto [04:25:08]json parsed OK: [04:25:08]protocol is kg_v1.0 [04:25:08]action value=close_receipt [04:25:08]process_action close_receipt [04:25:08]cmd_close_receipt [04:25:08]MH_GetDate [04:25:08]Write to MH i2c: F0 00 00 2D 2D 49 [04:25:08]Write i2c OK [04:25:08]MH_I2C_Read... [04:25:08]Read from MH i2c: F0 [04:25:08]MH_I2C_Read... [04:25:08]Read from MH i2c: F0 09 00 [04:25:08]MH_I2C_Read... [04:25:08]Read from MH i2c: F0 09 00 2D 2D 00 A7 19 A7 66 90 0F 3E 66 62 [04:25:08]GetLastDocTimeStamp 1722226742 [04:25:08]current date 1722227111 [04:25:08]FM_GetShiftState [04:25:08]SAM_PROTO_GetShiftState [04:25:08]wFMCommunicate request_size=4 [04:25:08]MH_SAM_APDU [04:25:08]CAPDU: 80 13 01 00 [04:25:08]Write to MH i2c: E2 08 00 2E 2D 80 13 01 00 00 00 00 00 D8 [04:25:08]Write i2c OK [04:25:08]MH_I2C_Read... [04:25:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:25:08]Read from MH i2c: E2 [04:25:08]MH_I2C_Read... [04:25:08]Read from MH i2c: E2 0E 00 [04:25:08]MH_I2C_Read... [04:25:08]Read from MH i2c: E2 0E 00 2E 2D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 06 [04:25:08]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [04:25:08]wFMCommunicate OK [04:25:08]SAM_PROTO_GetShiftState done [04:25:08]FM_GetShiftState done [04:25:08]opened in 1722211641 [04:25:08]opened+sec_in_day 1722298041 [04:25:08]quantity*price = 291541 [04:25:08]sum+1 = 291542 [04:25:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 2915.00 Внесено: 2915.00 СДАЧА: 0.00 НСП 1% : 25.80 НДС 12% : 309.60 Наличными: 2915.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 15 29.07.2024 04:25 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118639 ФПД: 73815702634755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T042511&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118639&fm=73815702634755&tin=02508201610067®Number=0000000000092660&sum=291500 [04:25:09]StoreToDocumentArchive [04:25:09]shift 434 fd 118639 [04:25:09]save to /storage/0434/doc_00118639 [04:25:09]save last doc name /storage/0434/doc_00118639 to /storage/kkm_last_doc_name [04:25:09]save OK [04:25:09]Clear old archive folders... [04:25:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:25:09]tlvbuf is 01EBD9A0 [04:25:09]SAM_PROTO_ClearQueue [04:25:09]wFMCommunicate request_size=4 [04:25:09]MH_SAM_APDU [04:25:09]CAPDU: 80 09 00 00 [04:25:09]Write to MH i2c: E2 08 00 3B 2D 80 09 00 00 00 00 00 00 DA [04:25:09]Write i2c OK [04:25:09]MH_I2C_Read... [04:25:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:25:09]Read from MH i2c: E2 [04:25:09]MH_I2C_Read... [04:25:09]Read from MH i2c: E2 03 00 [04:25:09]MH_I2C_Read... [04:25:09]Read from MH i2c: E2 03 00 3B 2D 00 90 00 DC [04:25:09]RAPDU: 90 00 [04:25:09]wFMCommunicate OK [04:25:09]SAM_PROTO_ClearQueue done [04:25:09]KKMCreateOFDPacket [04:25:09]OFDProtocolAddRootSTLVToBuf [04:25:09]FM_MakeSignedData [04:25:09]FM_MakeSignedData [04:25:09]SAM_PROTO_SignData [04:25:09]wFMCommunicate request_size=4 [04:25:09]MH_SAM_APDU [04:25:09]CAPDU: 80 0D 01 02 [04:25:09]Write to MH i2c: E2 08 00 3C 2D 80 0D 01 02 00 00 00 00 E2 [04:25:09]Write i2c OK [04:25:09]MH_I2C_Read... [04:25:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:25:09]Read from MH i2c: E2 [04:25:09]MH_I2C_Read... [04:25:09]Read from MH i2c: E2 03 00 [04:25:09]MH_I2C_Read... [04:25:09]Read from MH i2c: E2 03 00 3C 2D 00 90 00 DD [04:25:09]RAPDU: 90 00 [04:25:09]wFMCommunicate OK [04:25:09]wFMCommunicate request_size=255 [04:25:09]MH_SAM_APDU [04:25:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 95 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 72 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 72 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 78 00 00 00 00 07 04 06 00 AC 72 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A7 19 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F CF 01 00 35 04 06 00 43 22 8E BC [04:25:09]Write to MH i2c: E2 02 01 3D 2D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 95 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 72 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 72 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 78 00 00 00 00 07 04 06 00 AC 72 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A7 19 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F CF 01 00 35 04 06 00 43 22 8E BC 00 00 C6 [04:25:09]Write i2c OK [04:25:09]MH_I2C_Read... [04:25:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:25:09]Read from MH i2c: E2 [04:25:09]MH_I2C_Read... [04:25:09]Read from MH i2c: E2 03 00 [04:25:09]MH_I2C_Read... [04:25:09]Read from MH i2c: E2 03 00 3D 2D 00 90 00 DE [04:25:09]RAPDU: 90 00 [04:25:09]wFMCommunicate OK [04:25:09]wFMCommunicate request_size=7 [04:25:09]MH_SAM_APDU [04:25:09]CAPDU: 80 0D 02 02 02 01 03 [04:25:09]Write to MH i2c: E2 0A 00 3E 2D 80 0D 02 02 02 00 01 03 00 00 ED [04:25:09]Write i2c OK [04:25:09]MH_I2C_Read... [04:25:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:25:09]Read from MH i2c: E2 [04:25:09]MH_I2C_Read... [04:25:09]Read from MH i2c: E2 03 00 [04:25:09]MH_I2C_Read... [04:25:09]Read from MH i2c: E2 03 00 3E 2D 00 90 00 DF [04:25:09]RAPDU: 90 00 [04:25:09]wFMCommunicate OK [04:25:09]wFMCommunicate request_size=4 [04:25:09]MH_SAM_APDU [04:25:09]CAPDU: 80 0D 03 02 [04:25:09]Write to MH i2c: E2 08 00 3F 2D 80 0D 03 02 00 00 00 00 E7 [04:25:09]Write i2c OK [04:25:09]MH_I2C_Read... [04:25:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:25:09]Read from MH i2c: E2 [04:25:09]MH_I2C_Read... [04:25:09]Read from MH i2c: E2 0B 00 [04:25:09]MH_I2C_Read... [04:25:09]Read from MH i2c: E2 0B 00 3F 2D 00 48 9C 73 3C 68 C5 A4 91 90 00 DD [04:25:09]RAPDU: 48 9C 73 3C 68 C5 A4 91 90 00 [04:25:09]wFMCommunicate OK [04:25:09]SAM_PROTO_SignData done [04:25:09]FM_MakeSignedData done [04:25:09]CreateOFDProtocolMessage [04:25:09]wFMCommunicate request_size=4 [04:25:09]MH_SAM_APDU [04:25:09]CAPDU: 80 11 00 00 [04:25:09]Write to MH i2c: E2 08 00 40 2D 80 11 00 00 00 00 00 00 E7 [04:25:09]Write i2c OK [04:25:09]MH_I2C_Read... [04:25:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:25:09]Read from MH i2c: E2 [04:25:09]MH_I2C_Read... [04:25:09]Read from MH i2c: E2 17 00 [04:25:09]MH_I2C_Read... [04:25:09]Read from MH i2c: E2 17 00 40 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 42 [04:25:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:25:09]wFMCommunicate OK [04:25:09]CreateOFDProtocolMessage done [04:25:09]OFDSenderStorePacket 118639 [04:25:09]StoreOFDPacket docnum=118639 [04:25:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 78 F1 04 01 07 DF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 95 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 72 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 72 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 78 00 00 00 00 07 04 06 00 AC 72 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A7 19 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F CF 01 00 35 04 06 00 43 22 8E BC 01 03 48 9C 73 3C 68 C5 A4 91 [04:25:09]CheckFolder [04:25:09]dirname=/storage/ofd_packets [04:25:09]CheckFolder done [04:25:09]ProducePacketName [04:25:09]name=ofd_packets/00118639 [04:25:09]NVStorageSaveData ofd_packets/00118639 [04:25:09]File name is /storage/ofd_packets/00118639 [04:25:09]Write 298 bytes [04:25:09]NVStorageSaveData done [04:25:09]OFDSenderStorePacket done [04:25:09]KKMCreateOFDPacket done [04:25:09]NVStorageSaveData kkm_last_timestamp [04:25:09]File name is /storage/kkm_last_timestamp [04:25:09]Write 4 bytes [04:25:09]NVStorageSaveData done [04:25:09]ExternCall_PrintAddStr [04:25:09]wPrintStart [04:25:09]Write to MH i2c: 01 00 00 41 2D 6E [04:25:09]Write i2c OK [04:25:09]MH_I2C_Read... [04:25:09]Read from MH i2c: 01 [04:25:09]MH_I2C_Read... [04:25:09]Read from MH i2c: 01 07 00 [04:25:09]MH_I2C_Read... [04:25:09]Read from MH i2c: 01 07 00 41 2D 00 00 00 00 00 FF 0F 83 [04:25:09]RasterBufferAndPrint [04:25:09]line Счет N : (1)949523 [04:25:09]line ИНН: 02508201610067 [04:25:09]line Контрольно-Кассовый Чек [04:25:09]line ПРОДАЖА [04:25:09]line ТРК (МРК, ГНК) : 11 [04:25:09]line Товар: 2710194800 [04:25:09]line ДТ-К-5 [04:25:09]line 38.260 * 76.20 [04:25:09]line = 2915.41 [04:25:09]line НДС 12% НСП 1% [04:25:09]line > о реализуемом товаре [04:25:09]line ОКРУГЛЕНИЕ: -0.41 [04:25:09]line ИТОГО: 2915.00 [04:25:09]line Внесено: 2915.00 [04:25:09]line СДАЧА: 0.00 [04:25:09]line НСП 1% : 25.80 [04:25:09]line НДС 12% : 309.60 [04:25:09]line Наличными: 2915.00 [04:25:09]line Безнал.: 0.00 [04:25:09]line Место: АЗС № 134 "Партнер Нефть" [04:25:09]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:25:09]line СНО: Общий режим [04:25:09]line Чек 15 29.07.2024 04:25 [04:25:09]line Смена: 434 ФФД: 1.0 [04:25:09]line ЗНМ: 0300000044 [04:25:09]line РНМ: 0000000000092660 [04:25:09]line Версия ККМ: 001 [04:25:09]line ФМ: 0000000000874939 [04:25:09]line ФД: 118639 [04:25:09]line ФПД: 73815702634755 [04:25:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T042511&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118639&fm=73815702634755&tin=02508201610067®Number=0000000000092660&sum=291500 [04:25:09]written 0, free lines is 4095 [04:25:09]OFD Sender: Processing packet 118639 [packets to send 86, broken 85] [04:25:09]ProducePacketName [04:25:09]name=ofd_packets/00118639 [04:25:09]OFD Sender: To server: pG, [04:25:09]CommunicateWithHost lk.salyk.kg:30040 [04:25:09]ConnectInit lk.salyk.kg [04:25:09]Connected sock=10 [04:25:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 78 F1 04 01 07 DF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 95 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 72 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 72 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 78 00 00 00 00 07 04 06 00 AC 72 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A7 19 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F CF 01 00 35 04 06 00 43 22 8E BC 01 03 48 9C 73 3C 68 C5 A4 91 [04:25:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3A F4 47 00 E4 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F CF 01 00 F4 03 04 00 36 C7 A6 66 B6 04 01 00 00 DE AB A2 A1 19 6D D5 61 [04:25:10]CommunicateWithHost err = 0 [04:25:10]CheckOFDResponse [04:25:10]1017 (14) - 77093643461234 [04:25:10]1041 (16) - 0000000000874939 [04:25:10]1040 (4) - 118639 [04:25:10]1012 (4) - 28.07.2024 22:33 [04:25:10]1206 (1) - 0 [04:25:10]OFD Sender: Remove packet 118639 [04:25:10]ProducePacketName [04:25:10]name=ofd_packets/00118639 [04:25:10]NVStorageDeleteData [04:25:10]Write to MH i2c: 01 00 00 6B 2D 98 [04:25:10]Write i2c OK [04:25:10]MH_I2C_Read... [04:25:10]Read from MH i2c: 01 [04:25:10]MH_I2C_Read... [04:25:10]Read from MH i2c: 01 07 00 [04:25:10]MH_I2C_Read... [04:25:10]Read from MH i2c: 01 07 00 6B 2D 00 00 00 00 00 E5 0C 90 [04:25:10]RasterBufferAndPrint [04:25:10]line [04:25:10]line [04:25:10]line [04:25:10]line [04:25:10]line [04:25:10]written 0, free lines is 3307 [04:25:10]MH_Cut [04:25:10]Write to MH i2c: D1 01 00 72 2D 01 71 [04:25:10]Write i2c OK [04:25:10]MH_I2C_Read... [04:25:10]Read from MH i2c: D1 [04:25:10]MH_I2C_Read... [04:25:10]Read from MH i2c: D1 01 00 [04:25:10]MH_I2C_Read... [04:25:10]Read from MH i2c: D1 01 00 72 2D 00 70 [04:25:10]Write to MH i2c: 01 00 00 73 2D A0 [04:25:10]Write i2c OK [04:25:10]MH_I2C_Read... [04:25:10]OFD Sender: No OFD packet to send [04:25:10]*** Cut start [04:25:10]*** Partial cut [04:25:10]*** CUTSNS_PIN = 1 [04:25:11]*** CUTSNS_PIN = 0 [04:25:11]*** Brake cut motor [04:25:11]Read from MH i2c: 01 [04:25:11]MH_I2C_Read... [04:25:11]*** Stop cut motor [04:25:11]*** Cut end [04:25:11]Read from MH i2c: 01 07 00 [04:25:11]MH_I2C_Read... [04:25:11]Read from MH i2c: 01 07 00 73 2D 00 00 00 00 00 FF 0F B5 [04:25:11]process_action close_receipt done [04:25:11]requested_data is exist [04:25:11]produce_requested_data [04:25:11]requested_item fm.sn is exist - process it [04:25:11]wFMCommunicate request_size=4 [04:25:11]MH_SAM_APDU [04:25:11]CAPDU: 80 11 00 00 [04:25:11]Write to MH i2c: E2 08 00 74 2D 80 11 00 00 00 00 00 00 1B [04:25:11]Write i2c OK [04:25:11]MH_I2C_Read... [04:25:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:25:11]Read from MH i2c: E2 [04:25:11]MH_I2C_Read... [04:25:11]Read from MH i2c: E2 17 00 [04:25:11]MH_I2C_Read... [04:25:11]Read from MH i2c: E2 17 00 74 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 76 [04:25:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:25:11]wFMCommunicate OK [04:25:11]requested_item fd.num is exist - process it [04:25:11]SAM_PROTO_GetFieldsCounters [04:25:11]wFMCommunicate request_size=4 [04:25:11]MH_SAM_APDU [04:25:11]CAPDU: 80 13 00 00 [04:25:11]Write to MH i2c: E2 08 00 75 2D 80 13 00 00 00 00 00 00 1E [04:25:11]Write i2c OK [04:25:11]MH_I2C_Read... [04:25:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:25:11]Read from MH i2c: E2 [04:25:11]MH_I2C_Read... [04:25:11]Read from MH i2c: E2 62 00 [04:25:11]MH_I2C_Read... [04:25:11]Read from MH i2c: E2 62 00 75 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6F CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [04:25: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6F CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:25:11]wFMCommunicate OK [04:25:11]SAM_PROTO_GetFieldsCounters done [04:25:11]requested_item shift.num is exist - process it [04:25:11]requested_item shift.opened is exist - process it [04:25:11]req_shift_opened [04:25:11]FM_GetShiftState [04:25:11]SAM_PROTO_GetShiftState [04:25:11]wFMCommunicate request_size=4 [04:25:11]MH_SAM_APDU [04:25:11]CAPDU: 80 13 01 00 [04:25:11]Write to MH i2c: E2 08 00 76 2D 80 13 01 00 00 00 00 00 20 [04:25:11]Write i2c OK [04:25:11]MH_I2C_Read... [04:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:25:11]Read from MH i2c: E2 [04:25:11]MH_I2C_Read... [04:25:11]Read from MH i2c: E2 0E 00 [04:25:11]MH_I2C_Read... [04:25:11]Read from MH i2c: E2 0E 00 76 2D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 4E [04:25:11]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [04:25:11]wFMCommunicate OK [04:25:11]SAM_PROTO_GetShiftState done [04:25:11]FM_GetShiftState done [04:25:11]req_shift_opened done [04:25:11]requested_item shift.open_date is exist - process it [04:25:11]req_shift_open_date [04:25:11]req_shift_open_date done [04:25:11]produce_requested_data done [04:25:11]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118639,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [04:25:11]process_action_free close_receipt [04:25:11]json_value_free [04:25:11]json_value_free done [04:25:11]process_json_proto returns [04:25:11]Send response to host [04:25:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118639,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [04:25:11]free response buf [04:25:11]execute_script done [04:25:11]execute_script returns [04:25:11]free content buf [04:25:11]Sock 9.Close socket [04:25:11]Sock 9.Thread stoped [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:30]recv_with_timeout no data received [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:56]accept exits with 7 [04:55:56]New connection [04:55:56]New thread 3067239780 created [04:55:56]Thread 3067383140 joined [04:55:56]Waiting for new connection... [04:55:56] Sock 7.Parse request [04:55:56]Sock 7.Check first char [04:55:56]Sock 7.First char is OK [04:55:56]request: POST /json_proto HTTP/1.0 [04:55:56]Method: POST [04:55:56]URL: /json_proto [04:55:56]Method is POST - this is cgi request [04:55:56]url: /json_proto [04:55:56]query_string will be loaded in cgi processing [04:55:56]execute_cgi json_proto POST (null) [04:55:56]execute_cgi path=json_proto method=POST [04:55:56]POST find Content-Length [04:55:56]Host: 172.17.45.7:8080 [04:55:56]Content-Length: 682 [04:55:56]Content-Type: application/json [04:55:56] [04:55:56]POST finish read [04:55:56]Found Content-Length = 682 [04:55:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:55:56]execute_script... [04:55:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:55:56]POST & json_proto [04:55:56]process_json_proto [04:55:56]json parsed OK: [04:55:56]protocol is kg_v1.0 [04:55:56]action value=close_receipt [04:55:56]process_action close_receipt [04:55:56]cmd_close_receipt [04:55:56]MH_GetDate [04:55:56]Write to MH i2c: F0 00 00 77 2D 93 [04:55:56]Write i2c OK [04:55:56]MH_I2C_Read... [04:55:56]Read from MH i2c: F0 [04:55:56]MH_I2C_Read... [04:55:56]Read from MH i2c: F0 09 00 [04:55:56]MH_I2C_Read... [04:55:56]Read from MH i2c: F0 09 00 77 2D 00 E0 20 A7 66 90 0F 3E 66 EC [04:55:56]GetLastDocTimeStamp 1722227111 [04:55:56]current date 1722228960 [04:55:56]FM_GetShiftState [04:55:56]SAM_PROTO_GetShiftState [04:55:56]wFMCommunicate request_size=4 [04:55:56]MH_SAM_APDU [04:55:56]CAPDU: 80 13 01 00 [04:55:56]Write to MH i2c: E2 08 00 78 2D 80 13 01 00 00 00 00 00 22 [04:55:56]Write i2c OK [04:55:56]MH_I2C_Read... [04:55:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:55:56]Read from MH i2c: E2 [04:55:56]MH_I2C_Read... [04:55:56]Read from MH i2c: E2 0E 00 [04:55:56]MH_I2C_Read... [04:55:56]Read from MH i2c: E2 0E 00 78 2D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 50 [04:55:56]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [04:55:56]wFMCommunicate OK [04:55:56]SAM_PROTO_GetShiftState done [04:55:56]FM_GetShiftState done [04:55:56]opened in 1722211641 [04:55:56]opened+sec_in_day 1722298041 [04:55:56]quantity*price = 100021 [04:55:56]sum+1 = 100023 [04:55:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 16 29.07.2024 04:56 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118640 ФПД: 56734997980587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T045600&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118640&fm=56734997980587&tin=02508201610067®Number=0000000000092660&sum=100000 [04:55:57]StoreToDocumentArchive [04:55:57]shift 434 fd 118640 [04:55:57]save to /storage/0434/doc_00118640 [04:55:57]save last doc name /storage/0434/doc_00118640 to /storage/kkm_last_doc_name [04:55:57]save OK [04:55:57]Clear old archive folders... [04:55:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:55:57]tlvbuf is 01E56C10 [04:55:57]SAM_PROTO_ClearQueue [04:55:57]wFMCommunicate request_size=4 [04:55:57]MH_SAM_APDU [04:55:57]CAPDU: 80 09 00 00 [04:55:57]Write to MH i2c: E2 08 00 85 2D 80 09 00 00 00 00 00 00 24 [04:55:57]Write i2c OK [04:55:57]MH_I2C_Read... [04:55:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:55:57]Read from MH i2c: E2 [04:55:57]MH_I2C_Read... [04:55:57]Read from MH i2c: E2 03 00 [04:55:57]MH_I2C_Read... [04:55:57]Read from MH i2c: E2 03 00 85 2D 00 90 00 26 [04:55:57]RAPDU: 90 00 [04:55:57]wFMCommunicate OK [04:55:57]SAM_PROTO_ClearQueue done [04:55:57]KKMCreateOFDPacket [04:55:57]OFDProtocolAddRootSTLVToBuf [04:55:57]FM_MakeSignedData [04:55:57]FM_MakeSignedData [04:55:57]SAM_PROTO_SignData [04:55:57]wFMCommunicate request_size=4 [04:55:57]MH_SAM_APDU [04:55:57]CAPDU: 80 0D 01 02 [04:55:57]Write to MH i2c: E2 08 00 86 2D 80 0D 01 02 00 00 00 00 2C [04:55:57]Write i2c OK [04:55:57]MH_I2C_Read... [04:55:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:55:57]Read from MH i2c: E2 [04:55:57]MH_I2C_Read... [04:55:57]Read from MH i2c: E2 03 00 [04:55:57]MH_I2C_Read... [04:55:57]Read from MH i2c: E2 03 00 86 2D 00 90 00 27 [04:55:57]RAPDU: 90 00 [04:55:57]wFMCommunicate OK [04:55:57]wFMCommunicate request_size=255 [04:55:57]MH_SAM_APDU [04:55:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 E0 20 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 70 CF 01 00 35 04 06 00 33 [04:55:57]Write to MH i2c: E2 02 01 87 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 E0 20 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 70 CF 01 00 35 04 06 00 33 00 00 1F [04:55:57]Write i2c OK [04:55:57]MH_I2C_Read... [04:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:55:57]Read from MH i2c: E2 [04:55:57]MH_I2C_Read... [04:55:57]Read from MH i2c: E2 03 00 [04:55:57]MH_I2C_Read... [04:55:57]Read from MH i2c: E2 03 00 87 2D 00 90 00 28 [04:55:57]RAPDU: 90 00 [04:55:57]wFMCommunicate OK [04:55:57]wFMCommunicate request_size=10 [04:55:57]MH_SAM_APDU [04:55:57]CAPDU: 80 0D 02 02 05 99 A5 66 A5 AB [04:55:57]Write to MH i2c: E2 0D 00 88 2D 80 0D 02 02 05 00 99 A5 66 A5 AB 00 00 2D [04:55:57]Write i2c OK [04:55:57]MH_I2C_Read... [04:55:57]OFD Sender: No OFD packet to send [04:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:55:57]Read from MH i2c: E2 [04:55:57]MH_I2C_Read... [04:55:57]Read from MH i2c: E2 03 00 [04:55:57]MH_I2C_Read... [04:55:57]Read from MH i2c: E2 03 00 88 2D 00 90 00 29 [04:55:57]RAPDU: 90 00 [04:55:57]wFMCommunicate OK [04:55:57]wFMCommunicate request_size=4 [04:55:57]MH_SAM_APDU [04:55:57]CAPDU: 80 0D 03 02 [04:55:57]Write to MH i2c: E2 08 00 89 2D 80 0D 03 02 00 00 00 00 31 [04:55:57]Write i2c OK [04:55:57]MH_I2C_Read... [04:55:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:55:57]Read from MH i2c: E2 [04:55:57]MH_I2C_Read... [04:55:57]Read from MH i2c: E2 0B 00 [04:55:57]MH_I2C_Read... [04:55:57]Read from MH i2c: E2 0B 00 89 2D 00 AD D3 C7 20 C2 C4 9D 28 90 00 E4 [04:55:57]RAPDU: AD D3 C7 20 C2 C4 9D 28 90 00 [04:55:57]wFMCommunicate OK [04:55:57]SAM_PROTO_SignData done [04:55:57]FM_MakeSignedData done [04:55:57]CreateOFDProtocolMessage [04:55:57]wFMCommunicate request_size=4 [04:55:57]MH_SAM_APDU [04:55:57]CAPDU: 80 11 00 00 [04:55:57]Write to MH i2c: E2 08 00 8A 2D 80 11 00 00 00 00 00 00 31 [04:55:57]Write i2c OK [04:55:57]MH_I2C_Read... [04:55:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:55:57]Read from MH i2c: E2 [04:55:57]MH_I2C_Read... [04:55:57]Read from MH i2c: E2 17 00 [04:55:57]MH_I2C_Read... [04:55:57]Read from MH i2c: E2 17 00 8A 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8C [04:55:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:55:57]wFMCommunicate OK [04:55:57]CreateOFDProtocolMessage done [04:55:57]OFDSenderStorePacket 118640 [04:55:57]StoreOFDPacket docnum=118640 [04:55:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 77 EF 07 01 39 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 E0 20 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 70 CF 01 00 35 04 06 00 33 99 A5 66 A5 AB AD D3 C7 20 C2 C4 9D 28 [04:55:57]CheckFolder [04:55:57]dirname=/storage/ofd_packets [04:55:57]CheckFolder done [04:55:57]ProducePacketName [04:55:57]name=ofd_packets/00118640 [04:55:57]NVStorageSaveData ofd_packets/00118640 [04:55:57]File name is /storage/ofd_packets/00118640 [04:55:57]Write 301 bytes [04:55:57]NVStorageSaveData done [04:55:57]OFDSenderStorePacket done [04:55:57]KKMCreateOFDPacket done [04:55:57]NVStorageSaveData kkm_last_timestamp [04:55:57]File name is /storage/kkm_last_timestamp [04:55:57]Write 4 bytes [04:55:57]NVStorageSaveData done [04:55:57]ExternCall_PrintAddStr [04:55:57]wPrintStart [04:55:57]Write to MH i2c: 01 00 00 8B 2D B8 [04:55:57]Write i2c OK [04:55:57]MH_I2C_Read... [04:55:57]Read from MH i2c: 01 [04:55:57]MH_I2C_Read... [04:55:57]Read from MH i2c: 01 07 00 [04:55:57]MH_I2C_Read... [04:55:57]Read from MH i2c: 01 07 00 8B 2D 00 00 00 00 00 FF 0F CD [04:55:57]RasterBufferAndPrint [04:55:57]line Счет N : (1)949524 [04:55:57]line ИНН: 02508201610067 [04:55:57]line Контрольно-Кассовый Чек [04:55:57]line ПРОДАЖА [04:55:57]line ТРК (МРК, ГНК) : 33 [04:55:57]line Товар: 2710124500 [04:55:57]line Аи-95-К-3 [04:55:57]line 13.480 * 74.20 [04:55:57]line = 1000.22 [04:55:57]line НДС 12% НСП 1% [04:55:57]line > о реализуемом товаре [04:55:57]line ОКРУГЛЕНИЕ: -0.22 [04:55:57]line ИТОГО: 1000.00 [04:55:57]line Внесено: 1000.00 [04:55:57]line СДАЧА: 0.00 [04:55:57]line НСП 1% : 8.85 [04:55:57]line НДС 12% : 106.22 [04:55:57]line Наличными: 1000.00 [04:55:57]line Безнал.: 0.00 [04:55:57]line Место: АЗС № 134 "Партнер Нефть" [04:55:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:55:57]line СНО: Общий режим [04:55:57]line Чек 16 29.07.2024 04:56 [04:55:57]line Смена: 434 ФФД: 1.0 [04:55:57]line ЗНМ: 0300000044 [04:55:57]line РНМ: 0000000000092660 [04:55:57]line Версия ККМ: 001 [04:55:57]line ФМ: 0000000000874939 [04:55:57]line ФД: 118640 [04:55:57]line ФПД: 56734997980587 [04:55:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T045600&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118640&fm=56734997980587&tin=02508201610067®Number=0000000000092660&sum=100000 [04:55:58]OFD Sender: Processing packet 118640 [packets to send 86, broken 85] [04:55:58]ProducePacketName [04:55:58]name=ofd_packets/00118640 [04:55:58]OFD Sender: To server: pG, [04:55:58]CommunicateWithHost lk.salyk.kg:30040 [04:55:58]ConnectInit lk.salyk.kg [04:55:58]written 0, free lines is 4095 [04:55:58]Connected sock=10 [04:55:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 77 EF 07 01 39 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 E0 20 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 70 CF 01 00 35 04 06 00 33 99 A5 66 A5 AB AD D3 C7 20 C2 C4 9D 28 [04:55:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 30 F8 47 00 26 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 34 39 33 39 10 04 04 00 70 CF 01 00 F4 03 04 00 6E CE A6 66 B6 04 01 00 00 B8 2A 84 4E 22 6C A4 CF [04:55:58]CommunicateWithHost err = 0 [04:55:58]CheckOFDResponse [04:55:58]1017 (14) - 77093643461234 [04:55:58]1041 (16) - 0000000000874939 [04:55:58]1040 (4) - 118640 [04:55:58]1012 (4) - 28.07.2024 23:04 [04:55:58]1206 (1) - 0 [04:55:58]OFD Sender: Remove packet 118640 [04:55:58]ProducePacketName [04:55:58]name=ofd_packets/00118640 [04:55:58]NVStorageDeleteData [04:55:58]Write to MH i2c: 01 00 00 B5 2D E2 [04:55:58]Write i2c OK [04:55:58]MH_I2C_Read... [04:55:58]Read from MH i2c: 01 [04:55:58]MH_I2C_Read... [04:55:58]Read from MH i2c: 01 07 00 [04:55:58]MH_I2C_Read... [04:55:58]Read from MH i2c: 01 07 00 B5 2D 00 00 00 00 00 DF 0C D4 [04:55:58]RasterBufferAndPrint [04:55:58]line [04:55:58]line [04:55:58]line [04:55:58]line [04:55:58]line [04:55:58]written 0, free lines is 3300 [04:55:58]MH_Cut [04:55:58]Write to MH i2c: D1 01 00 BC 2D 01 BB [04:55:58]Write i2c OK [04:55:58]MH_I2C_Read... [04:55:58]Read from MH i2c: D1 [04:55:58]MH_I2C_Read... [04:55:58]Read from MH i2c: D1 01 00 [04:55:58]MH_I2C_Read... [04:55:58]Read from MH i2c: D1 01 00 BC 2D 00 BA [04:55:58]Write to MH i2c: 01 00 00 BD 2D EA [04:55:58]Write i2c OK [04:55:58]MH_I2C_Read... [04:55:58]OFD Sender: No OFD packet to send [04:55:59]*** Cut start [04:55:59]*** Partial cut [04:55:59]*** CUTSNS_PIN = 1 [04:55:59]*** CUTSNS_PIN = 0 [04:55:59]*** Brake cut motor [04:55:59]Read from MH i2c: 01 [04:55:59]MH_I2C_Read... [04:55:59]*** Stop cut motor [04:55:59]*** Cut end [04:55:59]Read from MH i2c: 01 07 00 [04:55:59]MH_I2C_Read... [04:55:59]Read from MH i2c: 01 07 00 BD 2D 00 00 00 00 00 FF 0F FF [04:55:59]process_action close_receipt done [04:55:59]requested_data is exist [04:55:59]produce_requested_data [04:55:59]requested_item fm.sn is exist - process it [04:55:59]wFMCommunicate request_size=4 [04:55:59]MH_SAM_APDU [04:55:59]CAPDU: 80 11 00 00 [04:55:59]Write to MH i2c: E2 08 00 BE 2D 80 11 00 00 00 00 00 00 65 [04:55:59]Write i2c OK [04:55:59]MH_I2C_Read... [04:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:55:59]Read from MH i2c: E2 [04:55:59]MH_I2C_Read... [04:55:59]Read from MH i2c: E2 17 00 [04:55:59]MH_I2C_Read... [04:55:59]Read from MH i2c: E2 17 00 BE 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C0 [04:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:55:59]wFMCommunicate OK [04:55:59]requested_item fd.num is exist - process it [04:55:59]SAM_PROTO_GetFieldsCounters [04:55:59]wFMCommunicate request_size=4 [04:55:59]MH_SAM_APDU [04:55:59]CAPDU: 80 13 00 00 [04:55:59]Write to MH i2c: E2 08 00 BF 2D 80 13 00 00 00 00 00 00 68 [04:55:59]Write i2c OK [04:55:59]MH_I2C_Read... [04:56:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:56:00]Read from MH i2c: E2 [04:56:00]MH_I2C_Read... [04:56:00]Read from MH i2c: E2 62 00 [04:56:00]MH_I2C_Read... [04:56:00]Read from MH i2c: E2 62 00 BF 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 70 CF 01 00 0E 04 04 00 B2 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 B2 [04:56: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 70 CF 01 00 0E 04 04 00 B2 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 [04:56:00]wFMCommunicate OK [04:56:00]SAM_PROTO_GetFieldsCounters done [04:56:00]requested_item shift.num is exist - process it [04:56:00]requested_item shift.opened is exist - process it [04:56:00]req_shift_opened [04:56:00]FM_GetShiftState [04:56:00]SAM_PROTO_GetShiftState [04:56:00]wFMCommunicate request_size=4 [04:56:00]MH_SAM_APDU [04:56:00]CAPDU: 80 13 01 00 [04:56:00]Write to MH i2c: E2 08 00 C0 2D 80 13 01 00 00 00 00 00 6A [04:56:00]Write i2c OK [04:56:00]MH_I2C_Read... [04:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:56:00]Read from MH i2c: E2 [04:56:00]MH_I2C_Read... [04:56:00]Read from MH i2c: E2 0E 00 [04:56:00]MH_I2C_Read... [04:56:00]Read from MH i2c: E2 0E 00 C0 2D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 98 [04:56:00]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [04:56:00]wFMCommunicate OK [04:56:00]SAM_PROTO_GetShiftState done [04:56:00]FM_GetShiftState done [04:56:00]req_shift_opened done [04:56:00]requested_item shift.open_date is exist - process it [04:56:00]req_shift_open_date [04:56:00]req_shift_open_date done [04:56:00]produce_requested_data done [04:56:00]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118640,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [04:56:00]process_action_free close_receipt [04:56:00]json_value_free [04:56:00]json_value_free done [04:56:00]process_json_proto returns [04:56:00]Send response to host [04:56:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118640,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [04:56:00]free response buf [04:56:00]execute_script done [04:56:00]execute_script returns [04:56:00]free content buf [04:56:00]Sock 7.Close socket [04:56:00]Sock 7.Thread stoped [04:56:03]OFD Sender: No OFD packet to send [04:56:08]OFD Sender: No OFD packet to send [04:56:13]OFD Sender: No OFD packet to send [04:56:18]OFD Sender: No OFD packet to send [04:56:23]OFD Sender: No OFD packet to send [04:56:28]OFD Sender: No OFD packet to send [04:56:33]OFD Sender: No OFD packet to send [04:56:38]OFD Sender: No OFD packet to send [04:56:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:53]OFD Sender: No OFD packet to send [04:56:58]OFD Sender: No OFD packet to send [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:18]OFD Sender: No OFD packet to send [04:57:23]OFD Sender: No OFD packet to send [04:57:28]OFD Sender: No OFD packet to send [04:57:33]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:01:29]OFD Sender: No OFD packet to send [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:09]OFD Sender: No OFD packet to send [05:03:14]OFD Sender: No OFD packet to send [05:03:19]OFD Sender: No OFD packet to send [05:03:24]OFD Sender: No OFD packet to send [05:03:29]OFD Sender: No OFD packet to send [05:03:34]OFD Sender: No OFD packet to send [05:03:39]OFD Sender: No OFD packet to send [05:03:44]OFD Sender: No OFD packet to send [05:03:49]OFD Sender: No OFD packet to send [05:03:54]OFD Sender: No OFD packet to send [05:03:59]OFD Sender: No OFD packet to send [05:04:04]OFD Sender: No OFD packet to send [05:04:09]OFD Sender: No OFD packet to send [05:04:14]OFD Sender: No OFD packet to send [05:04:19]OFD Sender: No OFD packet to send [05:04:24]OFD Sender: No OFD packet to send [05:04:29]OFD Sender: No OFD packet to send [05:04:34]OFD Sender: No OFD packet to send [05:04:39]OFD Sender: No OFD packet to send [05:04:44]OFD Sender: No OFD packet to send [05:04:49]OFD Sender: No OFD packet to send [05:04:54]OFD Sender: No OFD packet to send [05:04:59]OFD Sender: No OFD packet to send [05:05:04]OFD Sender: No OFD packet to send [05:05:09]OFD Sender: No OFD packet to send [05:05:14]OFD Sender: No OFD packet to send [05:05:19]OFD Sender: No OFD packet to send [05:05:24]OFD Sender: No OFD packet to send [05:05:29]OFD Sender: No OFD packet to send [05:05:34]OFD Sender: No OFD packet to send [05:05:39]OFD Sender: No OFD packet to send [05:05:44]OFD Sender: No OFD packet to send [05:05:49]OFD Sender: No OFD packet to send [05:05:54]OFD Sender: No OFD packet to send [05:05:59]OFD Sender: No OFD packet to send [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:39]OFD Sender: No OFD packet to send [05:06:44]OFD Sender: No OFD packet to send [05:06:49]OFD Sender: No OFD packet to send [05:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:24]OFD Sender: No OFD packet to send [05:07:29]OFD Sender: No OFD packet to send [05:07:34]OFD Sender: No OFD packet to send [05:07:39]OFD Sender: No OFD packet to send [05:07:44]OFD Sender: No OFD packet to send [05:07:49]OFD Sender: No OFD packet to send [05:07:54]OFD Sender: No OFD packet to send [05:07:59]OFD Sender: No OFD packet to send [05:08:04]OFD Sender: No OFD packet to send [05:08:09]OFD Sender: No OFD packet to send [05:08:14]OFD Sender: No OFD packet to send [05:08:19]OFD Sender: No OFD packet to send [05:08:24]OFD Sender: No OFD packet to send [05:08:29]OFD Sender: No OFD packet to send [05:08:34]OFD Sender: No OFD packet to send [05:08:39]OFD Sender: No OFD packet to send [05:08:44]OFD Sender: No OFD packet to send [05:08:49]OFD Sender: No OFD packet to send [05:08:54]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:39]OFD Sender: No OFD packet to send [05:09:44]OFD Sender: No OFD packet to send [05:09:49]OFD Sender: No OFD packet to send [05:09:54]OFD Sender: No OFD packet to send [05:09:59]OFD Sender: No OFD packet to send [05:10:04]OFD Sender: No OFD packet to send [05:10:09]OFD Sender: No OFD packet to send [05:10:14]OFD Sender: No OFD packet to send [05:10:19]OFD Sender: No OFD packet to send [05:10:24]OFD Sender: No OFD packet to send [05:10:29]OFD Sender: No OFD packet to send [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:19]OFD Sender: No OFD packet to send [05:12:24]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]OFD Sender: No OFD packet to send [05:22:00]OFD Sender: No OFD packet to send [05:22:05]OFD Sender: No OFD packet to send [05:22:10]OFD Sender: No OFD packet to send [05:22:15]OFD Sender: No OFD packet to send [05:22:20]OFD Sender: No OFD packet to send [05:22:25]OFD Sender: No OFD packet to send [05:22:30]OFD Sender: No OFD packet to send [05:22:35]OFD Sender: No OFD packet to send [05:22:40]OFD Sender: No OFD packet to send [05:22:45]OFD Sender: No OFD packet to send [05:22:50]OFD Sender: No OFD packet to send [05:22:55]OFD Sender: No OFD packet to send [05:23:00]OFD Sender: No OFD packet to send [05:23:05]OFD Sender: No OFD packet to send [05:23:10]OFD Sender: No OFD packet to send [05:23:15]OFD Sender: No OFD packet to send [05:23:20]OFD Sender: No OFD packet to send [05:23:25]OFD Sender: No OFD packet to send [05:23:30]OFD Sender: No OFD packet to send [05:23:35]OFD Sender: No OFD packet to send [05:23:40]OFD Sender: No OFD packet to send [05:23:45]OFD Sender: No OFD packet to send [05:23:50]OFD Sender: No OFD packet to send [05:23:55]OFD Sender: No OFD packet to send [05:24:00]OFD Sender: No OFD packet to send [05:24:05]OFD Sender: No OFD packet to send [05:24:10]OFD Sender: No OFD packet to send [05:24:15]OFD Sender: No OFD packet to send [05:24:20]OFD Sender: No OFD packet to send [05:24:25]OFD Sender: No OFD packet to send [05:24:30]OFD Sender: No OFD packet to send [05:24:35]OFD Sender: No OFD packet to send [05:24:40]OFD Sender: No OFD packet to send [05:24:45]OFD Sender: No OFD packet to send [05:24:50]OFD Sender: No OFD packet to send [05:24:55]OFD Sender: No OFD packet to send [05:25:00]OFD Sender: No OFD packet to send [05:25:05]OFD Sender: No OFD packet to send [05:25:10]OFD Sender: No OFD packet to send [05:25:15]OFD Sender: No OFD packet to send [05:25:20]OFD Sender: No OFD packet to send [05:25:25]OFD Sender: No OFD packet to send [05:25:30]OFD Sender: No OFD packet to send [05:25:35]OFD Sender: No OFD packet to send [05:25:40]OFD Sender: No OFD packet to send [05:25:45]OFD Sender: No OFD packet to send [05:25:50]OFD Sender: No OFD packet to send [05:25:55]OFD Sender: No OFD packet to send [05:26:00]OFD Sender: No OFD packet to send [05:26:05]OFD Sender: No OFD packet to send [05:26:10]OFD Sender: No OFD packet to send [05:26:15]OFD Sender: No OFD packet to send [05:26:20]OFD Sender: No OFD packet to send [05:26:25]OFD Sender: No OFD packet to send [05:26:30]OFD Sender: No OFD packet to send [05:26:35]OFD Sender: No OFD packet to send [05:26:40]OFD Sender: No OFD packet to send [05:26:45]OFD Sender: No OFD packet to send [05:26:50]OFD Sender: No OFD packet to send [05:26:55]OFD Sender: No OFD packet to send [05:27:00]OFD Sender: No OFD packet to send [05:27:05]OFD Sender: No OFD packet to send [05:27:10]OFD Sender: No OFD packet to send [05:27:15]OFD Sender: No OFD packet to send [05:27:20]OFD Sender: No OFD packet to send [05:27:25]OFD Sender: No OFD packet to send [05:27:30]OFD Sender: No OFD packet to send [05:27:35]OFD Sender: No OFD packet to send [05:27:40]OFD Sender: No OFD packet to send [05:27:45]OFD Sender: No OFD packet to send [05:27:50]OFD Sender: No OFD packet to send [05:27:55]OFD Sender: No OFD packet to send [05:28:00]OFD Sender: No OFD packet to send [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:20]OFD Sender: No OFD packet to send [05:29:25]OFD Sender: No OFD packet to send [05:29:30]OFD Sender: No OFD packet to send [05:29:35]OFD Sender: No OFD packet to send [05:29:40]OFD Sender: No OFD packet to send [05:29: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:56]OFD Sender: No OFD packet to send [05:42:01]OFD Sender: No OFD packet to send [05:42:06]OFD Sender: No OFD packet to send [05:42:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:21]OFD Sender: No OFD packet to send [05:42:26]OFD Sender: No OFD packet to send [05:42:31]OFD Sender: No OFD packet to send [05:42:36]OFD Sender: No OFD packet to send [05:42:41]OFD Sender: No OFD packet to send [05:42:46]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:43:01]OFD Sender: No OFD packet to send [05:43:06]OFD Sender: No OFD packet to send [05:43:11]OFD Sender: No OFD packet to send [05:43:16]OFD Sender: No OFD packet to send [05:43:21]OFD Sender: No OFD packet to send [05:43:26]OFD Sender: No OFD packet to send [05:43:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45: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:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08: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:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:03]OFD Sender: No OFD packet to send [06:17:08]OFD Sender: No OFD packet to send [06:17:13]OFD Sender: No OFD packet to send [06:17:18]OFD Sender: No OFD packet to send [06:17:23]OFD Sender: No OFD packet to send [06:17:28]OFD Sender: No OFD packet to send [06:17:33]OFD Sender: No OFD packet to send [06:17:38]OFD Sender: No OFD packet to send [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [06:17:53]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:24]OFD Sender: No OFD packet to send [06:27:29]OFD Sender: No OFD packet to send [06:27:34]OFD Sender: No OFD packet to send [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:49]OFD Sender: No OFD packet to send [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:06]accept exits with 9 [06:31:06]New connection [06:31:06]New thread 3067383140 created [06:31:06]Thread 3067239780 joined [06:31:06]Waiting for new connection... [06:31:06] Sock 9.Parse request [06:31:06]Sock 9.Check first char [06:31:06]Sock 9.First char is OK [06:31:06]request: POST /json_proto HTTP/1.0 [06:31:06]Method: POST [06:31:06]URL: /json_proto [06:31:06]Method is POST - this is cgi request [06:31:06]url: /json_proto [06:31:06]query_string will be loaded in cgi processing [06:31:06]execute_cgi json_proto POST (null) [06:31:06]execute_cgi path=json_proto method=POST [06:31:06]POST find Content-Length [06:31:06]Host: 172.17.45.7:8080 [06:31:06]Content-Length: 682 [06:31:06]Content-Type: application/json [06:31:06] [06:31:06]POST finish read [06:31:06]Found Content-Length = 682 [06:31:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:31:06]execute_script... [06:31: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)949526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:31:06]POST & json_proto [06:31:06]process_json_proto [06:31:06]json parsed OK: [06:31:06]protocol is kg_v1.0 [06:31:06]action value=close_receipt [06:31:06]process_action close_receipt [06:31:06]cmd_close_receipt [06:31:06]MH_GetDate [06:31:06]Write to MH i2c: F0 00 00 C1 2D DD [06:31:06]Write i2c OK [06:31:06]MH_I2C_Read... [06:31:06]Read from MH i2c: F0 [06:31:06]MH_I2C_Read... [06:31:06]Read from MH i2c: F0 09 00 [06:31:06]MH_I2C_Read... [06:31:06]Read from MH i2c: F0 09 00 C1 2D 00 2E 37 A7 66 90 0F 3E 66 9B [06:31:06]GetLastDocTimeStamp 1722228960 [06:31:06]current date 1722234670 [06:31:06]FM_GetShiftState [06:31:06]SAM_PROTO_GetShiftState [06:31:06]wFMCommunicate request_size=4 [06:31:06]MH_SAM_APDU [06:31:06]CAPDU: 80 13 01 00 [06:31:06]Write to MH i2c: E2 08 00 C2 2D 80 13 01 00 00 00 00 00 6C [06:31:06]Write i2c OK [06:31:06]MH_I2C_Read... [06:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:31:06]Read from MH i2c: E2 [06:31:06]MH_I2C_Read... [06:31:06]Read from MH i2c: E2 0E 00 [06:31:06]MH_I2C_Read... [06:31:06]Read from MH i2c: E2 0E 00 C2 2D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 9A [06:31:06]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:31:06]wFMCommunicate OK [06:31:06]SAM_PROTO_GetShiftState done [06:31:06]FM_GetShiftState done [06:31:06]opened in 1722211641 [06:31:06]opened+sec_in_day 1722298041 [06:31:06]quantity*price = 100005 [06:31:06]sum+1 = 100006 [06:31:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 17 29.07.2024 06:31 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118641 ФПД: 123817934780309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T063110&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118641&fm=123817934780309&tin=02508201610067®Number=0000000000092660&sum=100000 [06:31:07]StoreToDocumentArchive [06:31:07]shift 434 fd 118641 [06:31:07]save to /storage/0434/doc_00118641 [06:31:07]save last doc name /storage/0434/doc_00118641 to /storage/kkm_last_doc_name [06:31:07]save OK [06:31:07]Clear old archive folders... [06:31:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:31:07]tlvbuf is B6FC14F0 [06:31:07]SAM_PROTO_ClearQueue [06:31:07]wFMCommunicate request_size=4 [06:31:07]MH_SAM_APDU [06:31:07]CAPDU: 80 09 00 00 [06:31:07]Write to MH i2c: E2 08 00 CF 2D 80 09 00 00 00 00 00 00 6E [06:31:07]Write i2c OK [06:31:07]MH_I2C_Read... [06:31:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:31:07]Read from MH i2c: E2 [06:31:07]MH_I2C_Read... [06:31:07]Read from MH i2c: E2 03 00 [06:31:07]MH_I2C_Read... [06:31:07]Read from MH i2c: E2 03 00 CF 2D 00 90 00 70 [06:31:07]RAPDU: 90 00 [06:31:07]wFMCommunicate OK [06:31:07]SAM_PROTO_ClearQueue done [06:31:07]KKMCreateOFDPacket [06:31:07]OFDProtocolAddRootSTLVToBuf [06:31:07]FM_MakeSignedData [06:31:07]FM_MakeSignedData [06:31:07]SAM_PROTO_SignData [06:31:07]wFMCommunicate request_size=4 [06:31:07]MH_SAM_APDU [06:31:07]CAPDU: 80 0D 01 02 [06:31:07]Write to MH i2c: E2 08 00 D0 2D 80 0D 01 02 00 00 00 00 76 [06:31:07]Write i2c OK [06:31:07]MH_I2C_Read... [06:31:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:31:07]Read from MH i2c: E2 [06:31:07]MH_I2C_Read... [06:31:07]Read from MH i2c: E2 03 00 [06:31:07]MH_I2C_Read... [06:31:07]Read from MH i2c: E2 03 00 D0 2D 00 90 00 71 [06:31:07]RAPDU: 90 00 [06:31:07]wFMCommunicate OK [06:31:07]wFMCommunicate request_size=255 [06:31:07]MH_SAM_APDU [06:31: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 2E 37 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 CF 01 00 35 04 06 00 70 [06:31:07]Write to MH i2c: E2 02 01 D1 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 2E 37 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 CF 01 00 35 04 06 00 70 00 00 70 [06:31:07]Write i2c OK [06:31:07]MH_I2C_Read... [06:31:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:31:08]Read from MH i2c: E2 [06:31:08]MH_I2C_Read... [06:31:08]Read from MH i2c: E2 03 00 [06:31:08]MH_I2C_Read... [06:31:08]Read from MH i2c: E2 03 00 D1 2D 00 90 00 72 [06:31:08]RAPDU: 90 00 [06:31:08]wFMCommunicate OK [06:31:08]wFMCommunicate request_size=10 [06:31:08]MH_SAM_APDU [06:31:08]CAPDU: 80 0D 02 02 05 9C 9C 04 F7 95 [06:31:08]Write to MH i2c: E2 0D 00 D2 2D 80 0D 02 02 05 00 9C 9C 04 F7 95 00 00 4B [06:31:08]Write i2c OK [06:31:08]MH_I2C_Read... [06:31:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:31:08]Read from MH i2c: E2 [06:31:08]MH_I2C_Read... [06:31:08]Read from MH i2c: E2 03 00 [06:31:08]MH_I2C_Read... [06:31:08]Read from MH i2c: E2 03 00 D2 2D 00 90 00 73 [06:31:08]RAPDU: 90 00 [06:31:08]wFMCommunicate OK [06:31:08]wFMCommunicate request_size=4 [06:31:08]MH_SAM_APDU [06:31:08]CAPDU: 80 0D 03 02 [06:31:08]Write to MH i2c: E2 08 00 D3 2D 80 0D 03 02 00 00 00 00 7B [06:31:08]Write i2c OK [06:31:08]MH_I2C_Read... [06:31:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:31:08]Read from MH i2c: E2 [06:31:08]MH_I2C_Read... [06:31:08]Read from MH i2c: E2 0B 00 [06:31:08]MH_I2C_Read... [06:31:08]Read from MH i2c: E2 0B 00 D3 2D 00 68 B0 18 31 F2 C2 71 C0 90 00 C2 [06:31:08]RAPDU: 68 B0 18 31 F2 C2 71 C0 90 00 [06:31:08]wFMCommunicate OK [06:31:08]SAM_PROTO_SignData done [06:31:08]FM_MakeSignedData done [06:31:08]CreateOFDProtocolMessage [06:31:08]wFMCommunicate request_size=4 [06:31:08]MH_SAM_APDU [06:31:08]CAPDU: 80 11 00 00 [06:31:08]Write to MH i2c: E2 08 00 D4 2D 80 11 00 00 00 00 00 00 7B [06:31:08]Write i2c OK [06:31:08]MH_I2C_Read... [06:31:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:31:08]Read from MH i2c: E2 [06:31:08]MH_I2C_Read... [06:31:08]Read from MH i2c: E2 17 00 [06:31:08]MH_I2C_Read... [06:31:08]Read from MH i2c: E2 17 00 D4 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D6 [06:31:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:31:08]wFMCommunicate OK [06:31:08]CreateOFDProtocolMessage done [06:31:08]OFDSenderStorePacket 118641 [06:31:08]StoreOFDPacket docnum=118641 [06:31:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 77 9D 07 01 B6 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 2E 37 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 CF 01 00 35 04 06 00 70 9C 9C 04 F7 95 68 B0 18 31 F2 C2 71 C0 [06:31:08]CheckFolder [06:31:08]dirname=/storage/ofd_packets [06:31:08]CheckFolder done [06:31:08]ProducePacketName [06:31:08]name=ofd_packets/00118641 [06:31:08]NVStorageSaveData ofd_packets/00118641 [06:31:08]File name is /storage/ofd_packets/00118641 [06:31:08]Write 301 bytes [06:31:08]NVStorageSaveData done [06:31:08]OFDSenderStorePacket done [06:31:08]KKMCreateOFDPacket done [06:31:08]NVStorageSaveData kkm_last_timestamp [06:31:08]File name is /storage/kkm_last_timestamp [06:31:08]Write 4 bytes [06:31:08]NVStorageSaveData done [06:31:08]ExternCall_PrintAddStr [06:31:08]wPrintStart [06:31:08]Write to MH i2c: 01 00 00 D5 2D 02 [06:31:08]Write i2c OK [06:31:08]MH_I2C_Read... [06:31:08]Read from MH i2c: 01 [06:31:08]MH_I2C_Read... [06:31:08]Read from MH i2c: 01 07 00 [06:31:08]MH_I2C_Read... [06:31:08]Read from MH i2c: 01 07 00 D5 2D 00 00 00 00 00 FF 0F 17 [06:31:08]RasterBufferAndPrint [06:31:08]line Счет N : (1)949526 [06:31:08]line ИНН: 02508201610067 [06:31:08]line Контрольно-Кассовый Чек [06:31:08]line ПРОДАЖА [06:31:08]line ТРК (МРК, ГНК) : 61 [06:31:08]line Товар: 2710124130 [06:31:08]line Аи-92-К-4 [06:31:08]line 14.750 * 67.80 [06:31:08]line = 1000.05 [06:31:08]line НДС 12% НСП 1% [06:31:08]line > о реализуемом товаре [06:31:08]line ОКРУГЛЕНИЕ: -0.05 [06:31:08]line ИТОГО: 1000.00 [06:31:08]line Внесено: 1000.00 [06:31:08]line СДАЧА: 0.00 [06:31:08]line НСП 1% : 8.85 [06:31:08]line НДС 12% : 106.20 [06:31:08]line Наличными: 1000.00 [06:31:08]line Безнал.: 0.00 [06:31:08]line Место: АЗС № 134 "Партнер Нефть" [06:31:08]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:31:08]line СНО: Общий режим [06:31:08]line Чек 17 29.07.2024 06:31 [06:31:08]line Смена: 434 ФФД: 1.0 [06:31:08]line ЗНМ: 0300000044 [06:31:08]line РНМ: 0000000000092660 [06:31:08]line Версия ККМ: 001 [06:31:08]line ФМ: 0000000000874939 [06:31:08]line ФД: 118641 [06:31:08]line ФПД: 123817934780309 [06:31:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T063110&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118641&fm=123817934780309&tin=02508201610067®Number=0000000000092660&sum=100000 [06:31:08]written 0, free lines is 4095 [06:31:08]OFD Sender: Processing packet 118641 [packets to send 86, broken 85] [06:31:08]ProducePacketName [06:31:08]name=ofd_packets/00118641 [06:31:08]OFD Sender: To server: pG, [06:31:08]CommunicateWithHost lk.salyk.kg:30040 [06:31:08]ConnectInit lk.salyk.kg [06:31:08]Connected sock=10 [06:31:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 77 9D 07 01 B6 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 2E 37 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 CF 01 00 35 04 06 00 70 9C 9C 04 F7 95 68 B0 18 31 F2 C2 71 C0 [06:31:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FD 35 47 00 32 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 34 39 33 39 10 04 04 00 71 CF 01 00 F4 03 04 00 BD E4 A6 66 B6 04 01 00 00 B1 A3 F2 77 E1 BA 64 7C [06:31:08]CommunicateWithHost err = 0 [06:31:08]CheckOFDResponse [06:31:08]1017 (14) - 77093643461234 [06:31:08]1041 (16) - 0000000000874939 [06:31:08]1040 (4) - 118641 [06:31:08]1012 (4) - 29.07.2024 00:39 [06:31:08]1206 (1) - 0 [06:31:08]OFD Sender: Remove packet 118641 [06:31:08]ProducePacketName [06:31:08]name=ofd_packets/00118641 [06:31:08]NVStorageDeleteData [06:31:09]Write to MH i2c: 01 00 00 FF 2D 2C [06:31:09]Write i2c OK [06:31:09]MH_I2C_Read... [06:31:09]Read from MH i2c: 01 [06:31:09]MH_I2C_Read... [06:31:09]Read from MH i2c: 01 07 00 [06:31:09]MH_I2C_Read... [06:31:09]Read from MH i2c: 01 07 00 FF 2D 00 00 00 00 00 D1 0C 10 [06:31:09]RasterBufferAndPrint [06:31:09]line [06:31:09]line [06:31:09]line [06:31:09]line [06:31:09]line [06:31:09]written 0, free lines is 3289 [06:31:09]MH_Cut [06:31:09]Write to MH i2c: D1 01 00 06 2E 01 06 [06:31:09]Write i2c OK [06:31:09]MH_I2C_Read... [06:31:09]Read from MH i2c: D1 [06:31:09]MH_I2C_Read... [06:31:09]Read from MH i2c: D1 01 00 [06:31:09]MH_I2C_Read... [06:31:09]Read from MH i2c: D1 01 00 06 2E 00 05 [06:31:09]Write to MH i2c: 01 00 00 07 2E 35 [06:31:09]Write i2c OK [06:31:09]MH_I2C_Read... [06:31:09]OFD Sender: No OFD packet to send [06:31:09]*** Cut start [06:31:09]*** Partial cut [06:31:09]*** CUTSNS_PIN = 1 [06:31:09]*** CUTSNS_PIN = 0 [06:31:10]*** Brake cut motor [06:31:10]Read from MH i2c: 01 [06:31:10]MH_I2C_Read... [06:31:10]*** Stop cut motor [06:31:10]*** Cut end [06:31:10]Read from MH i2c: 01 07 00 [06:31:10]MH_I2C_Read... [06:31:10]Read from MH i2c: 01 07 00 07 2E 00 00 00 00 00 FF 0F 4A [06:31:10]process_action close_receipt done [06:31:10]requested_data is exist [06:31:10]produce_requested_data [06:31:10]requested_item fm.sn is exist - process it [06:31:10]wFMCommunicate request_size=4 [06:31:10]MH_SAM_APDU [06:31:10]CAPDU: 80 11 00 00 [06:31:10]Write to MH i2c: E2 08 00 08 2E 80 11 00 00 00 00 00 00 B0 [06:31:10]Write i2c OK [06:31:10]MH_I2C_Read... [06:31:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:31:10]Read from MH i2c: E2 [06:31:10]MH_I2C_Read... [06:31:10]Read from MH i2c: E2 17 00 [06:31:10]MH_I2C_Read... [06:31:10]Read from MH i2c: E2 17 00 08 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0B [06:31:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:31:10]wFMCommunicate OK [06:31:10]requested_item fd.num is exist - process it [06:31:10]SAM_PROTO_GetFieldsCounters [06:31:10]wFMCommunicate request_size=4 [06:31:10]MH_SAM_APDU [06:31:10]CAPDU: 80 13 00 00 [06:31:10]Write to MH i2c: E2 08 00 09 2E 80 13 00 00 00 00 00 00 B3 [06:31:10]Write i2c OK [06:31:10]MH_I2C_Read... [06:31:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:31:10]Read from MH i2c: E2 [06:31:10]MH_I2C_Read... [06:31:10]Read from MH i2c: E2 62 00 [06:31:10]MH_I2C_Read... [06:31:10]Read from MH i2c: E2 62 00 09 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 71 CF 01 00 0E 04 04 00 B2 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 01 [06:31: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 71 CF 01 00 0E 04 04 00 B2 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 [06:31:10]wFMCommunicate OK [06:31:10]SAM_PROTO_GetFieldsCounters done [06:31:10]requested_item shift.num is exist - process it [06:31:10]requested_item shift.opened is exist - process it [06:31:10]req_shift_opened [06:31:10]FM_GetShiftState [06:31:10]SAM_PROTO_GetShiftState [06:31:10]wFMCommunicate request_size=4 [06:31:10]MH_SAM_APDU [06:31:10]CAPDU: 80 13 01 00 [06:31:10]Write to MH i2c: E2 08 00 0A 2E 80 13 01 00 00 00 00 00 B5 [06:31:10]Write i2c OK [06:31:10]MH_I2C_Read... [06:31:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:31:10]Read from MH i2c: E2 [06:31:10]MH_I2C_Read... [06:31:10]Read from MH i2c: E2 0E 00 [06:31:10]MH_I2C_Read... [06:31:10]Read from MH i2c: E2 0E 00 0A 2E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E3 [06:31:10]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:31:10]wFMCommunicate OK [06:31:10]SAM_PROTO_GetShiftState done [06:31:10]FM_GetShiftState done [06:31:10]req_shift_opened done [06:31:10]requested_item shift.open_date is exist - process it [06:31:10]req_shift_open_date [06:31:10]req_shift_open_date done [06:31:10]produce_requested_data done [06:31:10]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118641,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [06:31:10]process_action_free close_receipt [06:31:10]json_value_free [06:31:10]json_value_free done [06:31:10]process_json_proto returns [06:31:10]Send response to host [06:31:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118641,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [06:31:10]free response buf [06:31:10]execute_script done [06:31:10]execute_script returns [06:31:10]free content buf [06:31:10]Sock 9.Close socket [06:31:10]Sock 9.Thread stoped [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:27]accept exits with 7 [06:37:27]New connection [06:37:27]New thread 3067239780 created [06:37:27]Thread 3067383140 joined [06:37:27]Waiting for new connection... [06:37:27] Sock 7.Parse request [06:37:27]Sock 7.Check first char [06:37:27]Sock 7.First char is OK [06:37:27]request: POST /json_proto HTTP/1.0 [06:37:27]Method: POST [06:37:27]URL: /json_proto [06:37:27]Method is POST - this is cgi request [06:37:27]url: /json_proto [06:37:27]query_string will be loaded in cgi processing [06:37:27]execute_cgi json_proto POST (null) [06:37:27]execute_cgi path=json_proto method=POST [06:37:27]POST find Content-Length [06:37:27]Host: 172.17.45.7:8080 [06:37:27]Content-Length: 682 [06:37:27]Content-Type: application/json [06:37:27] [06:37:27]POST finish read [06:37:27]Found Content-Length = 682 [06:37:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:37:27]execute_script... [06:37:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:37:27]POST & json_proto [06:37:27]process_json_proto [06:37:27]json parsed OK: [06:37:27]protocol is kg_v1.0 [06:37:27]action value=close_receipt [06:37:27]process_action close_receipt [06:37:27]cmd_close_receipt [06:37:27]MH_GetDate [06:37:27]Write to MH i2c: F0 00 00 0B 2E 28 [06:37:27]Write i2c OK [06:37:27]MH_I2C_Read... [06:37:27]Read from MH i2c: F0 [06:37:27]MH_I2C_Read... [06:37:27]Read from MH i2c: F0 09 00 [06:37:27]MH_I2C_Read... [06:37:27]Read from MH i2c: F0 09 00 0B 2E 00 AC 38 A7 66 90 0F 3E 66 65 [06:37:27]GetLastDocTimeStamp 1722234670 [06:37:27]current date 1722235052 [06:37:27]FM_GetShiftState [06:37:27]SAM_PROTO_GetShiftState [06:37:27]wFMCommunicate request_size=4 [06:37:27]MH_SAM_APDU [06:37:27]CAPDU: 80 13 01 00 [06:37:27]Write to MH i2c: E2 08 00 0C 2E 80 13 01 00 00 00 00 00 B7 [06:37:27]Write i2c OK [06:37:27]MH_I2C_Read... [06:37:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:27]Read from MH i2c: E2 [06:37:27]MH_I2C_Read... [06:37:27]Read from MH i2c: E2 0E 00 [06:37:27]MH_I2C_Read... [06:37:27]Read from MH i2c: E2 0E 00 0C 2E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E5 [06:37:27]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:37:27]wFMCommunicate OK [06:37:27]SAM_PROTO_GetShiftState done [06:37:27]FM_GetShiftState done [06:37:27]opened in 1722211641 [06:37:27]opened+sec_in_day 1722298041 [06:37:27]quantity*price = 100005 [06:37:27]sum+1 = 100006 [06:37:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 18 29.07.2024 06:37 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118642 ФПД: 16191169082574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T063732&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118642&fm=16191169082574&tin=02508201610067®Number=0000000000092660&sum=100000 [06:37:29]StoreToDocumentArchive [06:37:29]shift 434 fd 118642 [06:37:29]save to /storage/0434/doc_00118642 [06:37:29]save last doc name /storage/0434/doc_00118642 to /storage/kkm_last_doc_name [06:37:29]save OK [06:37:29]Clear old archive folders... [06:37:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:37:29]tlvbuf is B6FC1EC0 [06:37:29]SAM_PROTO_ClearQueue [06:37:29]wFMCommunicate request_size=4 [06:37:29]MH_SAM_APDU [06:37:29]CAPDU: 80 09 00 00 [06:37:29]Write to MH i2c: E2 08 00 19 2E 80 09 00 00 00 00 00 00 B9 [06:37:29]Write i2c OK [06:37:29]MH_I2C_Read... [06:37:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:37:29]Read from MH i2c: E2 [06:37:29]MH_I2C_Read... [06:37:29]Read from MH i2c: E2 03 00 [06:37:29]MH_I2C_Read... [06:37:29]Read from MH i2c: E2 03 00 19 2E 00 90 00 BB [06:37:29]RAPDU: 90 00 [06:37:29]wFMCommunicate OK [06:37:29]SAM_PROTO_ClearQueue done [06:37:29]KKMCreateOFDPacket [06:37:29]OFDProtocolAddRootSTLVToBuf [06:37:29]FM_MakeSignedData [06:37:29]FM_MakeSignedData [06:37:29]SAM_PROTO_SignData [06:37:29]wFMCommunicate request_size=4 [06:37:29]MH_SAM_APDU [06:37:29]CAPDU: 80 0D 01 02 [06:37:29]Write to MH i2c: E2 08 00 1A 2E 80 0D 01 02 00 00 00 00 C1 [06:37:29]Write i2c OK [06:37:29]MH_I2C_Read... [06:37:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:37:29]Read from MH i2c: E2 [06:37:29]MH_I2C_Read... [06:37:29]Read from MH i2c: E2 03 00 [06:37:29]MH_I2C_Read... [06:37:29]Read from MH i2c: E2 03 00 1A 2E 00 90 00 BC [06:37:29]RAPDU: 90 00 [06:37:29]wFMCommunicate OK [06:37:29]wFMCommunicate request_size=255 [06:37:29]MH_SAM_APDU [06:37: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 AC 38 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 CF 01 00 35 04 06 00 0E [06:37:29]Write to MH i2c: E2 02 01 1B 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 AC 38 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 CF 01 00 35 04 06 00 0E 00 00 DA [06:37:29]Write i2c OK [06:37:29]MH_I2C_Read... [06:37:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:29]Read from MH i2c: E2 [06:37:29]MH_I2C_Read... [06:37:29]Read from MH i2c: E2 03 00 [06:37:29]MH_I2C_Read... [06:37:29]Read from MH i2c: E2 03 00 1B 2E 00 90 00 BD [06:37:29]RAPDU: 90 00 [06:37:29]wFMCommunicate OK [06:37:29]wFMCommunicate request_size=10 [06:37:29]MH_SAM_APDU [06:37:29]CAPDU: 80 0D 02 02 05 B9 CC E1 B4 CE [06:37:29]Write to MH i2c: E2 0D 00 1C 2E 80 0D 02 02 05 00 B9 CC E1 B4 CE 00 00 B6 [06:37:29]Write i2c OK [06:37:29]MH_I2C_Read... [06:37:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:29]Read from MH i2c: E2 [06:37:29]MH_I2C_Read... [06:37:29]Read from MH i2c: E2 03 00 [06:37:29]MH_I2C_Read... [06:37:29]Read from MH i2c: E2 03 00 1C 2E 00 90 00 BE [06:37:29]RAPDU: 90 00 [06:37:29]wFMCommunicate OK [06:37:29]wFMCommunicate request_size=4 [06:37:29]MH_SAM_APDU [06:37:29]CAPDU: 80 0D 03 02 [06:37:29]Write to MH i2c: E2 08 00 1D 2E 80 0D 03 02 00 00 00 00 C6 [06:37:29]Write i2c OK [06:37:29]MH_I2C_Read... [06:37:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:37:29]Read from MH i2c: E2 [06:37:29]MH_I2C_Read... [06:37:29]Read from MH i2c: E2 0B 00 [06:37:29]MH_I2C_Read... [06:37:29]Read from MH i2c: E2 0B 00 1D 2E 00 61 59 9F B1 08 43 E0 B8 90 00 B4 [06:37:29]RAPDU: 61 59 9F B1 08 43 E0 B8 90 00 [06:37:29]wFMCommunicate OK [06:37:29]SAM_PROTO_SignData done [06:37:29]FM_MakeSignedData done [06:37:29]CreateOFDProtocolMessage [06:37:29]wFMCommunicate request_size=4 [06:37:29]MH_SAM_APDU [06:37:29]CAPDU: 80 11 00 00 [06:37:29]Write to MH i2c: E2 08 00 1E 2E 80 11 00 00 00 00 00 00 C6 [06:37:29]Write i2c OK [06:37:29]MH_I2C_Read... [06:37:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:29]Read from MH i2c: E2 [06:37:29]MH_I2C_Read... [06:37:29]Read from MH i2c: E2 17 00 [06:37:29]MH_I2C_Read... [06:37:29]Read from MH i2c: E2 17 00 1E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 21 [06:37:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:37:29]wFMCommunicate OK [06:37:29]CreateOFDProtocolMessage done [06:37:29]OFDSenderStorePacket 118642 [06:37:29]StoreOFDPacket docnum=118642 [06:37:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 24 52 07 01 5A 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 AC 38 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 CF 01 00 35 04 06 00 0E B9 CC E1 B4 CE 61 59 9F B1 08 43 E0 B8 [06:37:29]CheckFolder [06:37:29]dirname=/storage/ofd_packets [06:37:29]CheckFolder done [06:37:29]ProducePacketName [06:37:29]name=ofd_packets/00118642 [06:37:29]NVStorageSaveData ofd_packets/00118642 [06:37:29]File name is /storage/ofd_packets/00118642 [06:37:29]Write 301 bytes [06:37:29]NVStorageSaveData done [06:37:29]OFDSenderStorePacket done [06:37:29]KKMCreateOFDPacket done [06:37:29]NVStorageSaveData kkm_last_timestamp [06:37:29]File name is /storage/kkm_last_timestamp [06:37:29]Write 4 bytes [06:37:29]NVStorageSaveData done [06:37:29]ExternCall_PrintAddStr [06:37:29]wPrintStart [06:37:29]Write to MH i2c: 01 00 00 1F 2E 4D [06:37:29]Write i2c OK [06:37:29]MH_I2C_Read... [06:37:29]Read from MH i2c: 01 [06:37:29]MH_I2C_Read... [06:37:29]Read from MH i2c: 01 07 00 [06:37:29]MH_I2C_Read... [06:37:29]Read from MH i2c: 01 07 00 1F 2E 00 00 00 00 00 FF 0F 62 [06:37:29]RasterBufferAndPrint [06:37:29]line Счет N : (1)949527 [06:37:29]line ИНН: 02508201610067 [06:37:29]line Контрольно-Кассовый Чек [06:37:29]line ПРОДАЖА [06:37:29]line ТРК (МРК, ГНК) : 51 [06:37:29]line Товар: 2710124130 [06:37:29]line Аи-92-К-4 [06:37:29]line 14.750 * 67.80 [06:37:29]line = 1000.05 [06:37:29]line НДС 12% НСП 1% [06:37:29]line > о реализуемом товаре [06:37:29]line ОКРУГЛЕНИЕ: -0.05 [06:37:29]line ИТОГО: 1000.00 [06:37:29]line Внесено: 1000.00 [06:37:29]line СДАЧА: 0.00 [06:37:29]line НСП 1% : 8.85 [06:37:29]line НДС 12% : 106.20 [06:37:29]line Наличными: 1000.00 [06:37:29]line Безнал.: 0.00 [06:37:29]line Место: АЗС № 134 "Партнер Нефть" [06:37:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:37:29]line СНО: Общий режим [06:37:29]line Чек 18 29.07.2024 06:37 [06:37:29]line Смена: 434 ФФД: 1.0 [06:37:29]line ЗНМ: 0300000044 [06:37:29]line РНМ: 0000000000092660 [06:37:29]line Версия ККМ: 001 [06:37:29]line ФМ: 0000000000874939 [06:37:29]line ФД: 118642 [06:37:29]line ФПД: 16191169082574 [06:37:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T063732&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118642&fm=16191169082574&tin=02508201610067®Number=0000000000092660&sum=100000 [06:37:29]OFD Sender: Processing packet 118642 [packets to send 86, broken 85] [06:37:29]ProducePacketName [06:37:29]name=ofd_packets/00118642 [06:37:29]OFD Sender: To server: pG, [06:37:29]CommunicateWithHost lk.salyk.kg:30040 [06:37:29]ConnectInit lk.salyk.kg [06:37:29]written 0, free lines is 4095 [06:37:29]Connected sock=10 [06:37:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 24 52 07 01 5A 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 AC 38 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 CF 01 00 35 04 06 00 0E B9 CC E1 B4 CE 61 59 9F B1 08 43 E0 B8 [06:37:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 56 FB 47 00 42 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 34 39 33 39 10 04 04 00 72 CF 01 00 F4 03 04 00 3A E6 A6 66 B6 04 01 00 00 29 A5 E5 D7 EE 6F 46 B6 [06:37:30]CommunicateWithHost err = 0 [06:37:30]CheckOFDResponse [06:37:30]1017 (14) - 77093643461234 [06:37:30]1041 (16) - 0000000000874939 [06:37:30]1040 (4) - 118642 [06:37:30]1012 (4) - 29.07.2024 00:45 [06:37:30]1206 (1) - 0 [06:37:30]OFD Sender: Remove packet 118642 [06:37:30]ProducePacketName [06:37:30]name=ofd_packets/00118642 [06:37:30]NVStorageDeleteData [06:37:30]Write to MH i2c: 01 00 00 49 2E 77 [06:37:30]Write i2c OK [06:37:30]MH_I2C_Read... [06:37:30]Read from MH i2c: 01 [06:37:30]MH_I2C_Read... [06:37:30]Read from MH i2c: 01 07 00 [06:37:30]MH_I2C_Read... [06:37:30]Read from MH i2c: 01 07 00 49 2E 00 00 00 00 00 DD 0C 67 [06:37:30]RasterBufferAndPrint [06:37:30]line [06:37:30]line [06:37:30]line [06:37:30]line [06:37:30]line [06:37:30]written 0, free lines is 3298 [06:37:30]MH_Cut [06:37:30]Write to MH i2c: D1 01 00 50 2E 01 50 [06:37:30]Write i2c OK [06:37:30]MH_I2C_Read... [06:37:30]Read from MH i2c: D1 [06:37:30]MH_I2C_Read... [06:37:30]Read from MH i2c: D1 01 00 [06:37:30]MH_I2C_Read... [06:37:30]Read from MH i2c: D1 01 00 50 2E 00 4F [06:37:30]Write to MH i2c: 01 00 00 51 2E 7F [06:37:30]Write i2c OK [06:37:30]MH_I2C_Read... [06:37:30]OFD Sender: No OFD packet to send [06:37:31]*** Cut start [06:37:31]*** Partial cut [06:37:31]*** CUTSNS_PIN = 1 [06:37:31]*** CUTSNS_PIN = 0 [06:37:31]*** Brake cut motor [06:37:31]Read from MH i2c: 01 [06:37:31]MH_I2C_Read... [06:37:31]*** Stop cut motor [06:37:31]*** Cut end [06:37:31]Read from MH i2c: 01 07 00 [06:37:31]MH_I2C_Read... [06:37:31]Read from MH i2c: 01 07 00 51 2E 00 00 00 00 00 FF 0F 94 [06:37:31]process_action close_receipt done [06:37:31]requested_data is exist [06:37:31]produce_requested_data [06:37:31]requested_item fm.sn is exist - process it [06:37:31]wFMCommunicate request_size=4 [06:37:31]MH_SAM_APDU [06:37:31]CAPDU: 80 11 00 00 [06:37:31]Write to MH i2c: E2 08 00 52 2E 80 11 00 00 00 00 00 00 FA [06:37:31]Write i2c OK [06:37:31]MH_I2C_Read... [06:37:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:31]Read from MH i2c: E2 [06:37:31]MH_I2C_Read... [06:37:31]Read from MH i2c: E2 17 00 [06:37:31]MH_I2C_Read... [06:37:31]Read from MH i2c: E2 17 00 52 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 55 [06:37:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:37:31]wFMCommunicate OK [06:37:31]requested_item fd.num is exist - process it [06:37:31]SAM_PROTO_GetFieldsCounters [06:37:31]wFMCommunicate request_size=4 [06:37:31]MH_SAM_APDU [06:37:31]CAPDU: 80 13 00 00 [06:37:31]Write to MH i2c: E2 08 00 53 2E 80 13 00 00 00 00 00 00 FD [06:37:31]Write i2c OK [06:37:31]MH_I2C_Read... [06:37:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:37:31]Read from MH i2c: E2 [06:37:31]MH_I2C_Read... [06:37:31]Read from MH i2c: E2 62 00 [06:37:31]MH_I2C_Read... [06:37:31]Read from MH i2c: E2 62 00 53 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 72 CF 01 00 0E 04 04 00 B2 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 4F [06:37: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 72 CF 01 00 0E 04 04 00 B2 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 [06:37:31]wFMCommunicate OK [06:37:31]SAM_PROTO_GetFieldsCounters done [06:37:31]requested_item shift.num is exist - process it [06:37:31]requested_item shift.opened is exist - process it [06:37:31]req_shift_opened [06:37:31]FM_GetShiftState [06:37:31]SAM_PROTO_GetShiftState [06:37:31]wFMCommunicate request_size=4 [06:37:31]MH_SAM_APDU [06:37:31]CAPDU: 80 13 01 00 [06:37:31]Write to MH i2c: E2 08 00 54 2E 80 13 01 00 00 00 00 00 FF [06:37:31]Write i2c OK [06:37:31]MH_I2C_Read... [06:37:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:31]Read from MH i2c: E2 [06:37:31]MH_I2C_Read... [06:37:31]Read from MH i2c: E2 0E 00 [06:37:31]MH_I2C_Read... [06:37:31]Read from MH i2c: E2 0E 00 54 2E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 2D [06:37:31]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:37:31]wFMCommunicate OK [06:37:31]SAM_PROTO_GetShiftState done [06:37:31]FM_GetShiftState done [06:37:31]req_shift_opened done [06:37:31]requested_item shift.open_date is exist - process it [06:37:31]req_shift_open_date [06:37:31]req_shift_open_date done [06:37:31]produce_requested_data done [06:37:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118642,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [06:37:31]process_action_free close_receipt [06:37:31]json_value_free [06:37:31]json_value_free done [06:37:31]process_json_proto returns [06:37:31]Send response to host [06:37:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118642,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [06:37:31]free response buf [06:37:31]execute_script done [06:37:31]execute_script returns [06:37:31]free content buf [06:37:31]Sock 7.Close socket [06:37:31]Sock 7.Thread stoped [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:10]OFD Sender: No OFD packet to send [06:38:15]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:38:40]OFD Sender: No OFD packet to send [06:38:45]OFD Sender: No OFD packet to send [06:38:50]OFD Sender: No OFD packet to send [06:38:55]OFD Sender: No OFD packet to send [06:39:00]OFD Sender: No OFD packet to send [06:39:05]OFD Sender: No OFD packet to send [06:39:10]OFD Sender: No OFD packet to send [06:39:15]accept exits with 9 [06:39:15]New connection [06:39:15]New thread 3067383140 created [06:39:15]Thread 3067239780 joined [06:39:15]Waiting for new connection... [06:39:15] Sock 9.Parse request [06:39:15]Sock 9.Check first char [06:39:15]Sock 9.First char is OK [06:39:15]request: POST /json_proto HTTP/1.0 [06:39:15]Method: POST [06:39:15]URL: /json_proto [06:39:15]Method is POST - this is cgi request [06:39:15]url: /json_proto [06:39:15]query_string will be loaded in cgi processing [06:39:15]execute_cgi json_proto POST (null) [06:39:15]execute_cgi path=json_proto method=POST [06:39:15]POST find Content-Length [06:39:15]Host: 172.17.45.7:8080 [06:39:15]Content-Length: 834 [06:39:15]Content-Type: application/json [06:39:15] [06:39:15]POST finish read [06:39:15]Found Content-Length = 834 [06:39:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.20, "quantity" : 7.450, "sum" : 500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:39:15]execute_script... [06:39:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.20, "quantity" : 7.450, "sum" : 500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:39:15]POST & json_proto [06:39:15]process_json_proto [06:39:15]json parsed OK: [06:39:15]protocol is kg_v1.0 [06:39:15]action value=close_receipt [06:39:15]process_action close_receipt [06:39:15]cmd_close_receipt [06:39:15]MH_GetDate [06:39:15]Write to MH i2c: F0 00 00 55 2E 72 [06:39:15]Write i2c OK [06:39:15]MH_I2C_Read... [06:39:15]Read from MH i2c: F0 [06:39:15]MH_I2C_Read... [06:39:15]Read from MH i2c: F0 09 00 [06:39:15]MH_I2C_Read... [06:39:15]Read from MH i2c: F0 09 00 55 2E 00 17 39 A7 66 90 0F 3E 66 1B [06:39:15]GetLastDocTimeStamp 1722235052 [06:39:15]current date 1722235159 [06:39:15]FM_GetShiftState [06:39:15]SAM_PROTO_GetShiftState [06:39:15]wFMCommunicate request_size=4 [06:39:15]MH_SAM_APDU [06:39:15]CAPDU: 80 13 01 00 [06:39:15]Write to MH i2c: E2 08 00 56 2E 80 13 01 00 00 00 00 00 01 [06:39:15]Write i2c OK [06:39:15]MH_I2C_Read... [06:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:39:15]Read from MH i2c: E2 [06:39:15]MH_I2C_Read... [06:39:15]Read from MH i2c: E2 0E 00 [06:39:15]MH_I2C_Read... [06:39:15]Read from MH i2c: E2 0E 00 56 2E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 2F [06:39:15]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:39:15]wFMCommunicate OK [06:39:15]SAM_PROTO_GetShiftState done [06:39:15]FM_GetShiftState done [06:39:15]opened in 1722211641 [06:39:15]opened+sec_in_day 1722298041 [06:39:15]quantity*price = 50064 [06:39:15]sum+1 = 50065 [06:39:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 19 29.07.2024 06:39 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 118643 ФПД: 237406217807501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T063919&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118643&fm=237406217807501&tin=02508201610067®Number=0000000000092660&sum=50000 [06:39:16]StoreToDocumentArchive [06:39:16]shift 434 fd 118643 [06:39:16]save to /storage/0434/doc_00118643 [06:39:16]save last doc name /storage/0434/doc_00118643 to /storage/kkm_last_doc_name [06:39:16]save OK [06:39:16]Clear old archive folders... [06:39:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:39:16]tlvbuf is 01F6A2A0 [06:39:16]SAM_PROTO_ClearQueue [06:39:16]wFMCommunicate request_size=4 [06:39:16]MH_SAM_APDU [06:39:16]CAPDU: 80 09 00 00 [06:39:16]Write to MH i2c: E2 08 00 63 2E 80 09 00 00 00 00 00 00 03 [06:39:16]Write i2c OK [06:39:16]MH_I2C_Read... [06:39:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:39:16]Read from MH i2c: E2 [06:39:16]MH_I2C_Read... [06:39:16]Read from MH i2c: E2 03 00 [06:39:16]MH_I2C_Read... [06:39:16]Read from MH i2c: E2 03 00 63 2E 00 90 00 05 [06:39:16]RAPDU: 90 00 [06:39:16]wFMCommunicate OK [06:39:16]SAM_PROTO_ClearQueue done [06:39:16]KKMCreateOFDPacket [06:39:16]OFDProtocolAddRootSTLVToBuf [06:39:16]FM_MakeSignedData [06:39:16]FM_MakeSignedData [06:39:16]SAM_PROTO_SignData [06:39:16]wFMCommunicate request_size=4 [06:39:16]MH_SAM_APDU [06:39:16]CAPDU: 80 0D 01 02 [06:39:16]Write to MH i2c: E2 08 00 64 2E 80 0D 01 02 00 00 00 00 0B [06:39:16]Write i2c OK [06:39:16]MH_I2C_Read... [06:39:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:39:16]Read from MH i2c: E2 [06:39:16]MH_I2C_Read... [06:39:16]Read from MH i2c: E2 03 00 [06:39:16]MH_I2C_Read... [06:39:16]Read from MH i2c: E2 03 00 64 2E 00 90 00 06 [06:39:16]RAPDU: 90 00 [06:39:16]wFMCommunicate OK [06:39:16]wFMCommunicate request_size=255 [06:39:16]MH_SAM_APDU [06:39:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 90 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 17 39 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 CF 01 00 35 04 06 00 D7 [06:39:16]Write to MH i2c: E2 02 01 65 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 90 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 17 39 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 CF 01 00 35 04 06 00 D7 00 00 F5 [06:39:16]Write i2c OK [06:39:16]MH_I2C_Read... [06:39:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:39:16]Read from MH i2c: E2 [06:39:16]MH_I2C_Read... [06:39:16]Read from MH i2c: E2 03 00 [06:39:16]MH_I2C_Read... [06:39:16]Read from MH i2c: E2 03 00 65 2E 00 90 00 07 [06:39:16]RAPDU: 90 00 [06:39:16]wFMCommunicate OK [06:39:16]wFMCommunicate request_size=10 [06:39:16]MH_SAM_APDU [06:39:16]CAPDU: 80 0D 02 02 05 EB 71 47 A6 8D [06:39:16]Write to MH i2c: E2 0D 00 66 2E 80 0D 02 02 05 00 EB 71 47 A6 8D 00 00 EE [06:39:16]Write i2c OK [06:39:16]MH_I2C_Read... [06:39:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:39:16]Read from MH i2c: E2 [06:39:16]MH_I2C_Read... [06:39:16]Read from MH i2c: E2 03 00 [06:39:16]MH_I2C_Read... [06:39:16]Read from MH i2c: E2 03 00 66 2E 00 90 00 08 [06:39:16]RAPDU: 90 00 [06:39:16]wFMCommunicate OK [06:39:16]wFMCommunicate request_size=4 [06:39:16]MH_SAM_APDU [06:39:16]CAPDU: 80 0D 03 02 [06:39:16]Write to MH i2c: E2 08 00 67 2E 80 0D 03 02 00 00 00 00 10 [06:39:16]Write i2c OK [06:39:16]MH_I2C_Read... [06:39:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:39:17]Read from MH i2c: E2 [06:39:17]MH_I2C_Read... [06:39:17]Read from MH i2c: E2 0B 00 [06:39:17]MH_I2C_Read... [06:39:17]Read from MH i2c: E2 0B 00 67 2E 00 28 60 9F 01 18 56 E3 98 90 00 22 [06:39:17]RAPDU: 28 60 9F 01 18 56 E3 98 90 00 [06:39:17]wFMCommunicate OK [06:39:17]SAM_PROTO_SignData done [06:39:17]FM_MakeSignedData done [06:39:17]CreateOFDProtocolMessage [06:39:17]wFMCommunicate request_size=4 [06:39:17]MH_SAM_APDU [06:39:17]CAPDU: 80 11 00 00 [06:39:17]Write to MH i2c: E2 08 00 68 2E 80 11 00 00 00 00 00 00 10 [06:39:17]Write i2c OK [06:39:17]MH_I2C_Read... [06:39:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:39:17]Read from MH i2c: E2 [06:39:17]MH_I2C_Read... [06:39:17]Read from MH i2c: E2 17 00 [06:39:17]MH_I2C_Read... [06:39:17]Read from MH i2c: E2 17 00 68 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6B [06:39:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:39:17]wFMCommunicate OK [06:39:17]CreateOFDProtocolMessage done [06:39:17]OFDSenderStorePacket 118643 [06:39:17]StoreOFDPacket docnum=118643 [06:39:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 00 75 07 01 00 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 1A 1D 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 90 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 17 39 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 CF 01 00 35 04 06 00 D7 EB 71 47 A6 8D 28 60 9F 01 18 56 E3 98 [06:39:17]CheckFolder [06:39:17]dirname=/storage/ofd_packets [06:39:17]CheckFolder done [06:39:17]ProducePacketName [06:39:17]name=ofd_packets/00118643 [06:39:17]NVStorageSaveData ofd_packets/00118643 [06:39:17]File name is /storage/ofd_packets/00118643 [06:39:17]Write 301 bytes [06:39:17]NVStorageSaveData done [06:39:17]OFDSenderStorePacket done [06:39:17]KKMCreateOFDPacket done [06:39:17]NVStorageSaveData kkm_last_timestamp [06:39:17]File name is /storage/kkm_last_timestamp [06:39:17]Write 4 bytes [06:39:17]NVStorageSaveData done [06:39:17]ExternCall_PrintAddStr [06:39:17]wPrintStart [06:39:17]Write to MH i2c: 01 00 00 69 2E 97 [06:39:17]Write i2c OK [06:39:17]MH_I2C_Read... [06:39:17]Read from MH i2c: 01 [06:39:17]MH_I2C_Read... [06:39:17]Read from MH i2c: 01 07 00 [06:39:17]MH_I2C_Read... [06:39:17]Read from MH i2c: 01 07 00 69 2E 00 00 00 00 00 FF 0F AC [06:39:17]RasterBufferAndPrint [06:39:17]line Счет N : (1)949528 [06:39:17]line ИНН: 02508201610067 [06:39:17]line Контрольно-Кассовый Чек [06:39:17]line ПРОДАЖА [06:39:17]line ТРК (МРК, ГНК) : 61 [06:39:17]line Товар: 2710124130 [06:39:17]line Аи-92-К-4 [06:39:17]line 7.450 * 67.20 [06:39:17]line = 500.64 [06:39:17]line НДС 12% НСП 1% [06:39:17]line > о реализуемом товаре [06:39:17]line ОКРУГЛЕНИЕ: -0.64 [06:39:17]line ИТОГО: 500.00 [06:39:17]line НСП 1% : 4.43 [06:39:17]line НДС 12% : 53.16 [06:39:17]line Наличными: 0.00 [06:39:17]line Безнал.: 500.00 [06:39:17]line Место: АЗС № 134 "Партнер Нефть" [06:39:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:39:17]line СНО: Общий режим [06:39:17]line Чек 19 29.07.2024 06:39 [06:39:17]line Смена: 434 ФФД: 1.0 [06:39:17]line ЗНМ: 0300000044 [06:39:17]line РНМ: 0000000000092660 [06:39:17]line Версия ККМ: 001 [06:39:17]line Платежная система: Бакай Банк [06:39:17]line ФМ: 0000000000874939 [06:39:17]line ФД: 118643 [06:39:17]line ФПД: 237406217807501 [06:39:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T063919&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118643&fm=237406217807501&tin=02508201610067®Number=0000000000092660&sum=50000 [06:39:17]written 0, free lines is 4095 [06:39:17]OFD Sender: Processing packet 118643 [packets to send 86, broken 85] [06:39:17]ProducePacketName [06:39:17]name=ofd_packets/00118643 [06:39:17]OFD Sender: To server: pG, [06:39:17]CommunicateWithHost lk.salyk.kg:30040 [06:39:17]ConnectInit lk.salyk.kg [06:39:17]Connected sock=10 [06:39:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 00 75 07 01 00 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 1A 1D 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 90 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 17 39 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 CF 01 00 35 04 06 00 D7 EB 71 47 A6 8D 28 60 9F 01 18 56 E3 98 [06:39:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A9 61 47 00 A5 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 34 39 33 39 10 04 04 00 73 CF 01 00 F4 03 04 00 A6 E6 A6 66 B6 04 01 00 00 19 5A BB 89 7D 0A 14 93 [06:39:17]CommunicateWithHost err = 0 [06:39:17]CheckOFDResponse [06:39:17]1017 (14) - 77093643461234 [06:39:17]1041 (16) - 0000000000874939 [06:39:17]1040 (4) - 118643 [06:39:17]1012 (4) - 29.07.2024 00:47 [06:39:17]1206 (1) - 0 [06:39:17]OFD Sender: Remove packet 118643 [06:39:17]ProducePacketName [06:39:17]name=ofd_packets/00118643 [06:39:17]NVStorageDeleteData [06:39:17]Write to MH i2c: 01 00 00 93 2E C1 [06:39:17]Write i2c OK [06:39:17]MH_I2C_Read... [06:39:17]Read from MH i2c: 01 [06:39:17]MH_I2C_Read... [06:39:17]Read from MH i2c: 01 07 00 [06:39:17]MH_I2C_Read... [06:39:17]Read from MH i2c: 01 07 00 93 2E 00 00 00 00 00 D6 0C AA [06:39:17]RasterBufferAndPrint [06:39:17]line [06:39:17]line [06:39:17]line [06:39:17]line [06:39:17]line [06:39:17]written 0, free lines is 3293 [06:39:17]MH_Cut [06:39:17]Write to MH i2c: D1 01 00 9A 2E 01 9A [06:39:17]Write i2c OK [06:39:17]MH_I2C_Read... [06:39:17]Read from MH i2c: D1 [06:39:17]MH_I2C_Read... [06:39:17]Read from MH i2c: D1 01 00 [06:39:17]MH_I2C_Read... [06:39:17]Read from MH i2c: D1 01 00 9A 2E 00 99 [06:39:17]Write to MH i2c: 01 00 00 9B 2E C9 [06:39:17]Write i2c OK [06:39:17]MH_I2C_Read... [06:39:18]OFD Sender: No OFD packet to send [06:39:18]*** Cut start [06:39:18]*** Partial cut [06:39:18]*** CUTSNS_PIN = 1 [06:39:18]*** CUTSNS_PIN = 0 [06:39:18]*** Brake cut motor [06:39:19]Read from MH i2c: 01 [06:39:19]MH_I2C_Read... [06:39:19]*** Stop cut motor [06:39:19]*** Cut end [06:39:19]Read from MH i2c: 01 07 00 [06:39:19]MH_I2C_Read... [06:39:19]Read from MH i2c: 01 07 00 9B 2E 00 00 00 00 00 FF 0F DE [06:39:19]process_action close_receipt done [06:39:19]requested_data is exist [06:39:19]produce_requested_data [06:39:19]requested_item fm.sn is exist - process it [06:39:19]wFMCommunicate request_size=4 [06:39:19]MH_SAM_APDU [06:39:19]CAPDU: 80 11 00 00 [06:39:19]Write to MH i2c: E2 08 00 9C 2E 80 11 00 00 00 00 00 00 44 [06:39:19]Write i2c OK [06:39:19]MH_I2C_Read... [06:39:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:39:19]Read from MH i2c: E2 [06:39:19]MH_I2C_Read... [06:39:19]Read from MH i2c: E2 17 00 [06:39:19]MH_I2C_Read... [06:39:19]Read from MH i2c: E2 17 00 9C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9F [06:39:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:39:19]wFMCommunicate OK [06:39:19]requested_item fd.num is exist - process it [06:39:19]SAM_PROTO_GetFieldsCounters [06:39:19]wFMCommunicate request_size=4 [06:39:19]MH_SAM_APDU [06:39:19]CAPDU: 80 13 00 00 [06:39:19]Write to MH i2c: E2 08 00 9D 2E 80 13 00 00 00 00 00 00 47 [06:39:19]Write i2c OK [06:39:19]MH_I2C_Read... [06:39:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:39:19]Read from MH i2c: E2 [06:39:19]MH_I2C_Read... [06:39:19]Read from MH i2c: E2 62 00 [06:39:19]MH_I2C_Read... [06:39:19]Read from MH i2c: E2 62 00 9D 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 73 CF 01 00 0E 04 04 00 B2 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 9D [06:39:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 73 CF 01 00 0E 04 04 00 B2 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 [06:39:19]wFMCommunicate OK [06:39:19]SAM_PROTO_GetFieldsCounters done [06:39:19]requested_item shift.num is exist - process it [06:39:19]requested_item shift.opened is exist - process it [06:39:19]req_shift_opened [06:39:19]FM_GetShiftState [06:39:19]SAM_PROTO_GetShiftState [06:39:19]wFMCommunicate request_size=4 [06:39:19]MH_SAM_APDU [06:39:19]CAPDU: 80 13 01 00 [06:39:19]Write to MH i2c: E2 08 00 9E 2E 80 13 01 00 00 00 00 00 49 [06:39:19]Write i2c OK [06:39:19]MH_I2C_Read... [06:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:39:19]Read from MH i2c: E2 [06:39:19]MH_I2C_Read... [06:39:19]Read from MH i2c: E2 0E 00 [06:39:19]MH_I2C_Read... [06:39:19]Read from MH i2c: E2 0E 00 9E 2E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 77 [06:39:19]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:39:19]wFMCommunicate OK [06:39:19]SAM_PROTO_GetShiftState done [06:39:19]FM_GetShiftState done [06:39:19]req_shift_opened done [06:39:19]requested_item shift.open_date is exist - process it [06:39:19]req_shift_open_date [06:39:19]req_shift_open_date done [06:39:19]produce_requested_data done [06:39:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118643,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [06:39:19]process_action_free close_receipt [06:39:19]json_value_free [06:39:19]json_value_free done [06:39:19]process_json_proto returns [06:39:19]Send response to host [06:39:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118643,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [06:39:19]free response buf [06:39:19]execute_script done [06:39:19]execute_script returns [06:39:19]free content buf [06:39:19]Sock 9.Close socket [06:39:19]Sock 9.Thread stoped [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [06:40:23]OFD Sender: No OFD packet to send [06:40:24]accept exits with 7 [06:40:24]New connection [06:40:24]New thread 3067239780 created [06:40:24]Thread 3067383140 joined [06:40:24]Waiting for new connection... [06:40:24] Sock 7.Parse request [06:40:24]Sock 7.Check first char [06:40:24]Sock 7.First char is OK [06:40:24]request: POST /json_proto HTTP/1.0 [06:40:24]Method: POST [06:40:24]URL: /json_proto [06:40:24]Method is POST - this is cgi request [06:40:24]url: /json_proto [06:40:24]query_string will be loaded in cgi processing [06:40:24]execute_cgi json_proto POST (null) [06:40:24]execute_cgi path=json_proto method=POST [06:40:24]POST find Content-Length [06:40:24]Host: 172.17.45.7:8080 [06:40:24]Content-Length: 679 [06:40:24]Content-Type: application/json [06:40:24] [06:40:24]POST finish read [06:40:24]Found Content-Length = 679 [06:40:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:40:24]execute_script... [06:40:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:40:24]POST & json_proto [06:40:24]process_json_proto [06:40:24]json parsed OK: [06:40:24]protocol is kg_v1.0 [06:40:24]action value=close_receipt [06:40:24]process_action close_receipt [06:40:24]cmd_close_receipt [06:40:24]MH_GetDate [06:40:24]Write to MH i2c: F0 00 00 9F 2E BC [06:40:24]Write i2c OK [06:40:24]MH_I2C_Read... [06:40:24]Read from MH i2c: F0 [06:40:24]MH_I2C_Read... [06:40:24]Read from MH i2c: F0 09 00 [06:40:24]MH_I2C_Read... [06:40:24]Read from MH i2c: F0 09 00 9F 2E 00 5C 39 A7 66 90 0F 3E 66 AA [06:40:24]GetLastDocTimeStamp 1722235159 [06:40:24]current date 1722235228 [06:40:24]FM_GetShiftState [06:40:24]SAM_PROTO_GetShiftState [06:40:24]wFMCommunicate request_size=4 [06:40:24]MH_SAM_APDU [06:40:24]CAPDU: 80 13 01 00 [06:40:24]Write to MH i2c: E2 08 00 A0 2E 80 13 01 00 00 00 00 00 4B [06:40:24]Write i2c OK [06:40:24]MH_I2C_Read... [06:40:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:40:24]Read from MH i2c: E2 [06:40:24]MH_I2C_Read... [06:40:24]Read from MH i2c: E2 0E 00 [06:40:24]MH_I2C_Read... [06:40:24]Read from MH i2c: E2 0E 00 A0 2E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 79 [06:40:24]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:40:24]wFMCommunicate OK [06:40:24]SAM_PROTO_GetShiftState done [06:40:24]FM_GetShiftState done [06:40:24]opened in 1722211641 [06:40:24]opened+sec_in_day 1722298041 [06:40:24]quantity*price = 200025 [06:40:24]sum+1 = 200026 [06:40:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 20 29.07.2024 06:40 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118644 ФПД: 232676107119162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T064028&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118644&fm=232676107119162&tin=02508201610067®Number=0000000000092660&sum=200000 [06:40:25]StoreToDocumentArchive [06:40:25]shift 434 fd 118644 [06:40:25]save to /storage/0434/doc_00118644 [06:40:25]save last doc name /storage/0434/doc_00118644 to /storage/kkm_last_doc_name [06:40:25]save OK [06:40:25]Clear old archive folders... [06:40:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:40:25]tlvbuf is 01F69FB0 [06:40:25]SAM_PROTO_ClearQueue [06:40:25]wFMCommunicate request_size=4 [06:40:25]MH_SAM_APDU [06:40:25]CAPDU: 80 09 00 00 [06:40:25]Write to MH i2c: E2 08 00 AD 2E 80 09 00 00 00 00 00 00 4D [06:40:25]Write i2c OK [06:40:25]MH_I2C_Read... [06:40:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:40:25]Read from MH i2c: E2 [06:40:25]MH_I2C_Read... [06:40:25]Read from MH i2c: E2 03 00 [06:40:25]MH_I2C_Read... [06:40:25]Read from MH i2c: E2 03 00 AD 2E 00 90 00 4F [06:40:25]RAPDU: 90 00 [06:40:25]wFMCommunicate OK [06:40:25]SAM_PROTO_ClearQueue done [06:40:25]KKMCreateOFDPacket [06:40:25]OFDProtocolAddRootSTLVToBuf [06:40:25]FM_MakeSignedData [06:40:25]FM_MakeSignedData [06:40:25]SAM_PROTO_SignData [06:40:25]wFMCommunicate request_size=4 [06:40:25]MH_SAM_APDU [06:40:25]CAPDU: 80 0D 01 02 [06:40:25]Write to MH i2c: E2 08 00 AE 2E 80 0D 01 02 00 00 00 00 55 [06:40:25]Write i2c OK [06:40:25]MH_I2C_Read... [06:40:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:40:25]Read from MH i2c: E2 [06:40:25]MH_I2C_Read... [06:40:25]Read from MH i2c: E2 03 00 [06:40:25]MH_I2C_Read... [06:40:25]Read from MH i2c: E2 03 00 AE 2E 00 90 00 50 [06:40:25]RAPDU: 90 00 [06:40:25]wFMCommunicate OK [06:40:25]wFMCommunicate request_size=255 [06:40:25]MH_SAM_APDU [06:40:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5C 39 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 CF 01 00 35 04 06 00 D3 9E 20 B6 [06:40:25]Write to MH i2c: E2 02 01 AF 2E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5C 39 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 CF 01 00 35 04 06 00 D3 9E 20 B6 00 00 C7 [06:40:25]Write i2c OK [06:40:25]MH_I2C_Read... [06:40:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:40:26]Read from MH i2c: E2 [06:40:26]MH_I2C_Read... [06:40:26]Read from MH i2c: E2 03 00 [06:40:26]MH_I2C_Read... [06:40:26]Read from MH i2c: E2 03 00 AF 2E 00 90 00 51 [06:40:26]RAPDU: 90 00 [06:40:26]wFMCommunicate OK [06:40:26]wFMCommunicate request_size=7 [06:40:26]MH_SAM_APDU [06:40:26]CAPDU: 80 0D 02 02 02 6A 3A [06:40:26]Write to MH i2c: E2 0A 00 B0 2E 80 0D 02 02 02 00 6A 3A 00 00 00 [06:40:26]Write i2c OK [06:40:26]MH_I2C_Read... [06:40:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:40:26]Read from MH i2c: E2 [06:40:26]MH_I2C_Read... [06:40:26]Read from MH i2c: E2 03 00 [06:40:26]MH_I2C_Read... [06:40:26]Read from MH i2c: E2 03 00 B0 2E 00 90 00 52 [06:40:26]RAPDU: 90 00 [06:40:26]wFMCommunicate OK [06:40:26]wFMCommunicate request_size=4 [06:40:26]MH_SAM_APDU [06:40:26]CAPDU: 80 0D 03 02 [06:40:26]Write to MH i2c: E2 08 00 B1 2E 80 0D 03 02 00 00 00 00 5A [06:40:26]Write i2c OK [06:40:26]MH_I2C_Read... [06:40:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:40:26]Read from MH i2c: E2 [06:40:26]MH_I2C_Read... [06:40:26]Read from MH i2c: E2 0B 00 [06:40:26]MH_I2C_Read... [06:40:26]Read from MH i2c: E2 0B 00 B1 2E 00 43 02 B7 5B 81 63 07 AA 90 00 47 [06:40:26]RAPDU: 43 02 B7 5B 81 63 07 AA 90 00 [06:40:26]wFMCommunicate OK [06:40:26]SAM_PROTO_SignData done [06:40:26]FM_MakeSignedData done [06:40:26]CreateOFDProtocolMessage [06:40:26]wFMCommunicate request_size=4 [06:40:26]MH_SAM_APDU [06:40:26]CAPDU: 80 11 00 00 [06:40:26]Write to MH i2c: E2 08 00 B2 2E 80 11 00 00 00 00 00 00 5A [06:40:26]Write i2c OK [06:40:26]MH_I2C_Read... [06:40:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:40:26]Read from MH i2c: E2 [06:40:26]MH_I2C_Read... [06:40:26]Read from MH i2c: E2 17 00 [06:40:26]MH_I2C_Read... [06:40:26]Read from MH i2c: E2 17 00 B2 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B5 [06:40:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:40:26]wFMCommunicate OK [06:40:26]CreateOFDProtocolMessage done [06:40:26]OFDSenderStorePacket 118644 [06:40:26]StoreOFDPacket docnum=118644 [06:40:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 7A E8 04 01 46 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5C 39 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 CF 01 00 35 04 06 00 D3 9E 20 B6 6A 3A 43 02 B7 5B 81 63 07 AA [06:40:26]CheckFolder [06:40:26]dirname=/storage/ofd_packets [06:40:26]CheckFolder done [06:40:26]ProducePacketName [06:40:26]name=ofd_packets/00118644 [06:40:26]NVStorageSaveData ofd_packets/00118644 [06:40:26]File name is /storage/ofd_packets/00118644 [06:40:26]Write 298 bytes [06:40:26]NVStorageSaveData done [06:40:26]OFDSenderStorePacket done [06:40:26]KKMCreateOFDPacket done [06:40:26]NVStorageSaveData kkm_last_timestamp [06:40:26]File name is /storage/kkm_last_timestamp [06:40:26]Write 4 bytes [06:40:26]NVStorageSaveData done [06:40:26]ExternCall_PrintAddStr [06:40:26]wPrintStart [06:40:26]Write to MH i2c: 01 00 00 B3 2E E1 [06:40:26]Write i2c OK [06:40:26]MH_I2C_Read... [06:40:26]Read from MH i2c: 01 [06:40:26]MH_I2C_Read... [06:40:26]Read from MH i2c: 01 07 00 [06:40:26]MH_I2C_Read... [06:40:26]Read from MH i2c: 01 07 00 B3 2E 00 00 00 00 00 FF 0F F6 [06:40:26]RasterBufferAndPrint [06:40:26]line Счет N : (1)949529 [06:40:26]line ИНН: 02508201610067 [06:40:26]line Контрольно-Кассовый Чек [06:40:26]line ПРОДАЖА [06:40:26]line ТРК (МРК, ГНК) : 21 [06:40:26]line Товар: 2710194800 [06:40:26]line ДТ-К-5 [06:40:26]line 26.250 * 76.20 [06:40:26]line = 2000.25 [06:40:26]line НДС 12% НСП 1% [06:40:26]line > о реализуемом товаре [06:40:26]line ОКРУГЛЕНИЕ: -0.25 [06:40:26]line ИТОГО: 2000.00 [06:40:26]line Внесено: 2000.00 [06:40:26]line СДАЧА: 0.00 [06:40:26]line НСП 1% : 17.70 [06:40:26]line НДС 12% : 212.42 [06:40:26]line Наличными: 2000.00 [06:40:26]line Безнал.: 0.00 [06:40:26]line Место: АЗС № 134 "Партнер Нефть" [06:40:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:40:26]line СНО: Общий режим [06:40:26]line Чек 20 29.07.2024 06:40 [06:40:26]line Смена: 434 ФФД: 1.0 [06:40:26]line ЗНМ: 0300000044 [06:40:26]line РНМ: 0000000000092660 [06:40:26]line Версия ККМ: 001 [06:40:26]line ФМ: 0000000000874939 [06:40:26]line ФД: 118644 [06:40:26]line ФПД: 232676107119162 [06:40:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T064028&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118644&fm=232676107119162&tin=02508201610067®Number=0000000000092660&sum=200000 [06:40:26]OFD Sender: Processing packet 118644 [packets to send 86, broken 85] [06:40:26]ProducePacketName [06:40:26]name=ofd_packets/00118644 [06:40:26]OFD Sender: To server: pG, [06:40:26]CommunicateWithHost lk.salyk.kg:30040 [06:40:26]ConnectInit lk.salyk.kg [06:40:26]written 0, free lines is 4095 [06:40:26]Connected sock=10 [06:40:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 7A E8 04 01 46 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5C 39 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 CF 01 00 35 04 06 00 D3 9E 20 B6 6A 3A 43 02 B7 5B 81 63 07 AA [06:40:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0E 8D 47 00 88 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 CF 01 00 F4 03 04 00 EB E6 A6 66 B6 04 01 00 00 AA 34 7D BD EB 0A B0 F4 [06:40:26]CommunicateWithHost err = 0 [06:40:26]CheckOFDResponse [06:40:26]1017 (14) - 77093643461234 [06:40:26]1041 (16) - 0000000000874939 [06:40:26]1040 (4) - 118644 [06:40:26]1012 (4) - 29.07.2024 00:48 [06:40:26]1206 (1) - 0 [06:40:26]OFD Sender: Remove packet 118644 [06:40:26]ProducePacketName [06:40:26]name=ofd_packets/00118644 [06:40:26]NVStorageDeleteData [06:40:26]Write to MH i2c: 01 00 00 DD 2E 0B [06:40:26]Write i2c OK [06:40:26]MH_I2C_Read... [06:40:26]Read from MH i2c: 01 [06:40:26]MH_I2C_Read... [06:40:26]Read from MH i2c: 01 07 00 [06:40:26]MH_I2C_Read... [06:40:26]Read from MH i2c: 01 07 00 DD 2E 00 00 00 00 00 DC 0C FA [06:40:26]RasterBufferAndPrint [06:40:26]line [06:40:26]line [06:40:26]line [06:40:26]line [06:40:26]line [06:40:26]written 0, free lines is 3298 [06:40:26]MH_Cut [06:40:26]Write to MH i2c: D1 01 00 E4 2E 01 E4 [06:40:26]Write i2c OK [06:40:26]MH_I2C_Read... [06:40:26]Read from MH i2c: D1 [06:40:26]MH_I2C_Read... [06:40:26]Read from MH i2c: D1 01 00 [06:40:26]MH_I2C_Read... [06:40:26]Read from MH i2c: D1 01 00 E4 2E 00 E3 [06:40:26]Write to MH i2c: 01 00 00 E5 2E 13 [06:40:26]Write i2c OK [06:40:26]MH_I2C_Read... [06:40:27]OFD Sender: No OFD packet to send [06:40:27]*** Cut start [06:40:27]*** Partial cut [06:40:27]*** CUTSNS_PIN = 1 [06:40:27]*** CUTSNS_PIN = 0 [06:40:27]*** Brake cut motor [06:40:28]Read from MH i2c: 01 [06:40:28]MH_I2C_Read... [06:40:28]*** Stop cut motor [06:40:28]*** Cut end [06:40:28]Read from MH i2c: 01 07 00 [06:40:28]MH_I2C_Read... [06:40:28]Read from MH i2c: 01 07 00 E5 2E 00 00 00 00 00 FF 0F 28 [06:40:28]process_action close_receipt done [06:40:28]requested_data is exist [06:40:28]produce_requested_data [06:40:28]requested_item fm.sn is exist - process it [06:40:28]wFMCommunicate request_size=4 [06:40:28]MH_SAM_APDU [06:40:28]CAPDU: 80 11 00 00 [06:40:28]Write to MH i2c: E2 08 00 E6 2E 80 11 00 00 00 00 00 00 8E [06:40:28]Write i2c OK [06:40:28]MH_I2C_Read... [06:40:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:40:28]Read from MH i2c: E2 [06:40:28]MH_I2C_Read... [06:40:28]Read from MH i2c: E2 17 00 [06:40:28]MH_I2C_Read... [06:40:28]Read from MH i2c: E2 17 00 E6 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E9 [06:40:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:40:28]wFMCommunicate OK [06:40:28]requested_item fd.num is exist - process it [06:40:28]SAM_PROTO_GetFieldsCounters [06:40:28]wFMCommunicate request_size=4 [06:40:28]MH_SAM_APDU [06:40:28]CAPDU: 80 13 00 00 [06:40:28]Write to MH i2c: E2 08 00 E7 2E 80 13 00 00 00 00 00 00 91 [06:40:28]Write i2c OK [06:40:28]MH_I2C_Read... [06:40:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:40:28]Read from MH i2c: E2 [06:40:28]MH_I2C_Read... [06:40:28]Read from MH i2c: E2 62 00 [06:40:28]MH_I2C_Read... [06:40:28]Read from MH i2c: E2 62 00 E7 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 74 CF 01 00 0E 04 04 00 B2 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 EB [06:40: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 74 CF 01 00 0E 04 04 00 B2 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:40:28]wFMCommunicate OK [06:40:28]SAM_PROTO_GetFieldsCounters done [06:40:28]requested_item shift.num is exist - process it [06:40:28]requested_item shift.opened is exist - process it [06:40:28]req_shift_opened [06:40:28]FM_GetShiftState [06:40:28]SAM_PROTO_GetShiftState [06:40:28]wFMCommunicate request_size=4 [06:40:28]MH_SAM_APDU [06:40:28]CAPDU: 80 13 01 00 [06:40:28]Write to MH i2c: E2 08 00 E8 2E 80 13 01 00 00 00 00 00 93 [06:40:28]Write i2c OK [06:40:28]MH_I2C_Read... [06:40:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:40:28]Read from MH i2c: E2 [06:40:28]MH_I2C_Read... [06:40:28]Read from MH i2c: E2 0E 00 [06:40:28]MH_I2C_Read... [06:40:28]Read from MH i2c: E2 0E 00 E8 2E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C1 [06:40:28]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:40:28]wFMCommunicate OK [06:40:28]SAM_PROTO_GetShiftState done [06:40:28]FM_GetShiftState done [06:40:28]req_shift_opened done [06:40:28]requested_item shift.open_date is exist - process it [06:40:28]req_shift_open_date [06:40:28]req_shift_open_date done [06:40:28]produce_requested_data done [06:40:28]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118644,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [06:40:28]process_action_free close_receipt [06:40:28]json_value_free [06:40:28]json_value_free done [06:40:28]process_json_proto returns [06:40:28]Send response to host [06:40:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118644,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [06:40:28]free response buf [06:40:28]execute_script done [06:40:28]execute_script returns [06:40:28]free content buf [06:40:28]Sock 7.Close socket [06:40:28]Sock 7.Thread stoped [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:41]accept exits with 9 [06:41:41]New connection [06:41:41]New thread 3067383140 created [06:41:41]Thread 3067239780 joined [06:41:41]Waiting for new connection... [06:41:41] Sock 9.Parse request [06:41:41]Sock 9.Check first char [06:41:41]Sock 9.First char is OK [06:41:41]request: POST /json_proto HTTP/1.0 [06:41:41]Method: POST [06:41:41]URL: /json_proto [06:41:41]Method is POST - this is cgi request [06:41:41]url: /json_proto [06:41:41]query_string will be loaded in cgi processing [06:41:41]execute_cgi json_proto POST (null) [06:41:41]execute_cgi path=json_proto method=POST [06:41:41]POST find Content-Length [06:41:41]Host: 172.17.45.7:8080 [06:41:41]Content-Length: 822 [06:41:41]Content-Type: application/json [06:41:41] [06:41:41]POST finish read [06:41:41]Found Content-Length = 822 [06:41:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:41:41]execute_script... [06:41:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:41:41]POST & json_proto [06:41:41]process_json_proto [06:41:41]json parsed OK: [06:41:41]protocol is kg_v1.0 [06:41:41]action value=close_receipt [06:41:41]process_action close_receipt [06:41:41]cmd_close_receipt [06:41:41]MH_GetDate [06:41:41]Write to MH i2c: F0 00 00 E9 2E 06 [06:41:41]Write i2c OK [06:41:41]MH_I2C_Read... [06:41:41]Read from MH i2c: F0 [06:41:41]MH_I2C_Read... [06:41:41]Read from MH i2c: F0 09 00 [06:41:41]MH_I2C_Read... [06:41:41]Read from MH i2c: F0 09 00 E9 2E 00 A9 39 A7 66 90 0F 3E 66 41 [06:41:41]GetLastDocTimeStamp 1722235228 [06:41:41]current date 1722235305 [06:41:41]FM_GetShiftState [06:41:41]SAM_PROTO_GetShiftState [06:41:41]wFMCommunicate request_size=4 [06:41:41]MH_SAM_APDU [06:41:41]CAPDU: 80 13 01 00 [06:41:41]Write to MH i2c: E2 08 00 EA 2E 80 13 01 00 00 00 00 00 95 [06:41:41]Write i2c OK [06:41:41]MH_I2C_Read... [06:41:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:41]Read from MH i2c: E2 [06:41:41]MH_I2C_Read... [06:41:41]Read from MH i2c: E2 0E 00 [06:41:41]MH_I2C_Read... [06:41:41]Read from MH i2c: E2 0E 00 EA 2E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C3 [06:41:41]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:41:41]wFMCommunicate OK [06:41:41]SAM_PROTO_GetShiftState done [06:41:41]FM_GetShiftState done [06:41:41]opened in 1722211641 [06:41:41]opened+sec_in_day 1722298041 [06:41:41]quantity*price = 100021 [06:41:41]sum+1 = 100023 [06:41:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 21 29.07.2024 06:41 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118645 ФПД: 269132753478497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T064145&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118645&fm=269132753478497&tin=02508201610067®Number=0000000000092660&sum=100000 [06:41:42]StoreToDocumentArchive [06:41:42]shift 434 fd 118645 [06:41:42]save to /storage/0434/doc_00118645 [06:41:42]save last doc name /storage/0434/doc_00118645 to /storage/kkm_last_doc_name [06:41:42]save OK [06:41:42]Clear old archive folders... [06:41:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:41:42]tlvbuf is 01E54450 [06:41:42]SAM_PROTO_ClearQueue [06:41:42]wFMCommunicate request_size=4 [06:41:42]MH_SAM_APDU [06:41:42]CAPDU: 80 09 00 00 [06:41:42]Write to MH i2c: E2 08 00 F7 2E 80 09 00 00 00 00 00 00 97 [06:41:42]Write i2c OK [06:41:42]MH_I2C_Read... [06:41:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:41:42]Read from MH i2c: E2 [06:41:42]MH_I2C_Read... [06:41:42]Read from MH i2c: E2 03 00 [06:41:42]MH_I2C_Read... [06:41:42]Read from MH i2c: E2 03 00 F7 2E 00 90 00 99 [06:41:42]RAPDU: 90 00 [06:41:42]wFMCommunicate OK [06:41:42]SAM_PROTO_ClearQueue done [06:41:42]KKMCreateOFDPacket [06:41:42]OFDProtocolAddRootSTLVToBuf [06:41:42]FM_MakeSignedData [06:41:42]FM_MakeSignedData [06:41:42]SAM_PROTO_SignData [06:41:42]wFMCommunicate request_size=4 [06:41:42]MH_SAM_APDU [06:41:42]CAPDU: 80 0D 01 02 [06:41:42]Write to MH i2c: E2 08 00 F8 2E 80 0D 01 02 00 00 00 00 9F [06:41:42]Write i2c OK [06:41:42]MH_I2C_Read... [06:41:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:41:42]Read from MH i2c: E2 [06:41:42]MH_I2C_Read... [06:41:42]Read from MH i2c: E2 03 00 [06:41:42]MH_I2C_Read... [06:41:42]Read from MH i2c: E2 03 00 F8 2E 00 90 00 9A [06:41:42]RAPDU: 90 00 [06:41:42]wFMCommunicate OK [06:41:42]wFMCommunicate request_size=255 [06:41:42]MH_SAM_APDU [06:41:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 A9 39 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 CF 01 00 35 04 06 00 F4 [06:41:42]Write to MH i2c: E2 02 01 F9 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 A9 39 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 CF 01 00 35 04 06 00 F4 00 00 3F [06:41:42]Write i2c OK [06:41:42]MH_I2C_Read... [06:41:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:43]Read from MH i2c: E2 [06:41:43]MH_I2C_Read... [06:41:43]Read from MH i2c: E2 03 00 [06:41:43]MH_I2C_Read... [06:41:43]Read from MH i2c: E2 03 00 F9 2E 00 90 00 9B [06:41:43]RAPDU: 90 00 [06:41:43]wFMCommunicate OK [06:41:43]wFMCommunicate request_size=10 [06:41:43]MH_SAM_APDU [06:41:43]CAPDU: 80 0D 02 02 05 C6 5A 2B 23 61 [06:41:43]Write to MH i2c: E2 0D 00 FA 2E 80 0D 02 02 05 00 C6 5A 2B 23 61 00 00 7B [06:41:43]Write i2c OK [06:41:43]MH_I2C_Read... [06:41:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:43]Read from MH i2c: E2 [06:41:43]MH_I2C_Read... [06:41:43]Read from MH i2c: E2 03 00 [06:41:43]MH_I2C_Read... [06:41:43]Read from MH i2c: E2 03 00 FA 2E 00 90 00 9C [06:41:43]RAPDU: 90 00 [06:41:43]wFMCommunicate OK [06:41:43]wFMCommunicate request_size=4 [06:41:43]MH_SAM_APDU [06:41:43]CAPDU: 80 0D 03 02 [06:41:43]Write to MH i2c: E2 08 00 FB 2E 80 0D 03 02 00 00 00 00 A4 [06:41:43]Write i2c OK [06:41:43]MH_I2C_Read... [06:41:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:41:43]Read from MH i2c: E2 [06:41:43]MH_I2C_Read... [06:41:43]Read from MH i2c: E2 0B 00 [06:41:43]MH_I2C_Read... [06:41:43]Read from MH i2c: E2 0B 00 FB 2E 00 1E 76 A4 B8 5D 9D 49 DC 90 00 B4 [06:41:43]RAPDU: 1E 76 A4 B8 5D 9D 49 DC 90 00 [06:41:43]wFMCommunicate OK [06:41:43]SAM_PROTO_SignData done [06:41:43]FM_MakeSignedData done [06:41:43]CreateOFDProtocolMessage [06:41:43]wFMCommunicate request_size=4 [06:41:43]MH_SAM_APDU [06:41:43]CAPDU: 80 11 00 00 [06:41:43]Write to MH i2c: E2 08 00 FC 2E 80 11 00 00 00 00 00 00 A4 [06:41:43]Write i2c OK [06:41:43]MH_I2C_Read... [06:41:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:43]Read from MH i2c: E2 [06:41:43]MH_I2C_Read... [06:41:43]Read from MH i2c: E2 17 00 [06:41:43]MH_I2C_Read... [06:41:43]Read from MH i2c: E2 17 00 FC 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FF [06:41:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:41:43]wFMCommunicate OK [06:41:43]CreateOFDProtocolMessage done [06:41:43]OFDSenderStorePacket 118645 [06:41:43]StoreOFDPacket docnum=118645 [06:41:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B0 0A 07 01 12 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 A9 39 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 CF 01 00 35 04 06 00 F4 C6 5A 2B 23 61 1E 76 A4 B8 5D 9D 49 DC [06:41:43]CheckFolder [06:41:43]dirname=/storage/ofd_packets [06:41:43]CheckFolder done [06:41:43]ProducePacketName [06:41:43]name=ofd_packets/00118645 [06:41:43]NVStorageSaveData ofd_packets/00118645 [06:41:43]File name is /storage/ofd_packets/00118645 [06:41:43]Write 301 bytes [06:41:43]NVStorageSaveData done [06:41:43]OFDSenderStorePacket done [06:41:43]KKMCreateOFDPacket done [06:41:43]NVStorageSaveData kkm_last_timestamp [06:41:43]File name is /storage/kkm_last_timestamp [06:41:43]Write 4 bytes [06:41:43]NVStorageSaveData done [06:41:43]ExternCall_PrintAddStr [06:41:43]wPrintStart [06:41:43]Write to MH i2c: 01 00 00 FD 2E 2B [06:41:43]Write i2c OK [06:41:43]MH_I2C_Read... [06:41:43]Read from MH i2c: 01 [06:41:43]MH_I2C_Read... [06:41:43]Read from MH i2c: 01 07 00 [06:41:43]MH_I2C_Read... [06:41:43]Read from MH i2c: 01 07 00 FD 2E 00 00 00 00 00 FF 0F 40 [06:41:43]RasterBufferAndPrint [06:41:43]line Счет N : (1)949525 [06:41:43]line ИНН: 02508201610067 [06:41:43]line Контрольно-Кассовый Чек [06:41:43]line ПРОДАЖА [06:41:43]line ТРК (МРК, ГНК) : 43 [06:41:43]line Товар: 2710124500 [06:41:43]line Аи-95-К-3 [06:41:43]line 13.480 * 74.20 [06:41:43]line = 1000.22 [06:41:43]line НДС 12% НСП 1% [06:41:43]line > о реализуемом товаре [06:41:43]line ОКРУГЛЕНИЕ: -0.22 [06:41:43]line ИТОГО: 1000.00 [06:41:43]line НСП 1% : 8.85 [06:41:43]line НДС 12% : 106.22 [06:41:43]line Наличными: 0.00 [06:41:43]line Безнал.: 1000.00 [06:41:43]line Место: АЗС № 134 "Партнер Нефть" [06:41:43]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:41:43]line СНО: Общий режим [06:41:43]line Чек 21 29.07.2024 06:41 [06:41:43]line Смена: 434 ФФД: 1.0 [06:41:43]line ЗНМ: 0300000044 [06:41:43]line РНМ: 0000000000092660 [06:41:43]line Версия ККМ: 001 [06:41:43]line Платежная система: O! деньги [06:41:43]line ФМ: 0000000000874939 [06:41:43]line ФД: 118645 [06:41:43]line ФПД: 269132753478497 [06:41:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T064145&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118645&fm=269132753478497&tin=02508201610067®Number=0000000000092660&sum=100000 [06:41:43]OFD Sender: Processing packet 118645 [packets to send 86, broken 85] [06:41:43]ProducePacketName [06:41:43]name=ofd_packets/00118645 [06:41:43]OFD Sender: To server: pG, [06:41:43]CommunicateWithHost lk.salyk.kg:30040 [06:41:43]ConnectInit lk.salyk.kg [06:41:43]written 0, free lines is 4095 [06:41:43]Connected sock=10 [06:41:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B0 0A 07 01 12 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 A9 39 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 CF 01 00 35 04 06 00 F4 C6 5A 2B 23 61 1E 76 A4 B8 5D 9D 49 DC [06:41:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FA 4A 47 00 4C 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 34 39 33 39 10 04 04 00 75 CF 01 00 F4 03 04 00 38 E7 A6 66 B6 04 01 00 00 73 8B CB 42 D6 17 54 D1 [06:41:43]CommunicateWithHost err = 0 [06:41:43]CheckOFDResponse [06:41:43]1017 (14) - 77093643461234 [06:41:43]1041 (16) - 0000000000874939 [06:41:43]1040 (4) - 118645 [06:41:43]1012 (4) - 29.07.2024 00:50 [06:41:43]1206 (1) - 0 [06:41:43]OFD Sender: Remove packet 118645 [06:41:43]ProducePacketName [06:41:43]name=ofd_packets/00118645 [06:41:43]NVStorageDeleteData [06:41:44]Write to MH i2c: 01 00 00 27 2F 56 [06:41:44]Write i2c OK [06:41:44]MH_I2C_Read... [06:41:44]Read from MH i2c: 01 [06:41:44]MH_I2C_Read... [06:41:44]Read from MH i2c: 01 07 00 [06:41:44]MH_I2C_Read... [06:41:44]Read from MH i2c: 01 07 00 27 2F 00 00 00 00 00 E4 0C 4D [06:41:44]RasterBufferAndPrint [06:41:44]line [06:41:44]line [06:41:44]line [06:41:44]line [06:41:44]line [06:41:44]written 0, free lines is 3307 [06:41:44]MH_Cut [06:41:44]Write to MH i2c: D1 01 00 2E 2F 01 2F [06:41:44]Write i2c OK [06:41:44]MH_I2C_Read... [06:41:44]Read from MH i2c: D1 [06:41:44]MH_I2C_Read... [06:41:44]Read from MH i2c: D1 01 00 [06:41:44]MH_I2C_Read... [06:41:44]Read from MH i2c: D1 01 00 2E 2F 00 2E [06:41:44]Write to MH i2c: 01 00 00 2F 2F 5E [06:41:44]Write i2c OK [06:41:44]MH_I2C_Read... [06:41:44]OFD Sender: No OFD packet to send [06:41:44]*** Cut start [06:41:44]*** Partial cut [06:41:44]*** CUTSNS_PIN = 1 [06:41:44]*** CUTSNS_PIN = 0 [06:41:45]*** Brake cut motor [06:41:45]Read from MH i2c: 01 [06:41:45]MH_I2C_Read... [06:41:45]*** Stop cut motor [06:41:45]*** Cut end [06:41:45]Read from MH i2c: 01 07 00 [06:41:45]MH_I2C_Read... [06:41:45]Read from MH i2c: 01 07 00 2F 2F 00 00 00 00 00 FF 0F 73 [06:41:45]process_action close_receipt done [06:41:45]requested_data is exist [06:41:45]produce_requested_data [06:41:45]requested_item fm.sn is exist - process it [06:41:45]wFMCommunicate request_size=4 [06:41:45]MH_SAM_APDU [06:41:45]CAPDU: 80 11 00 00 [06:41:45]Write to MH i2c: E2 08 00 30 2F 80 11 00 00 00 00 00 00 D9 [06:41:45]Write i2c OK [06:41:45]MH_I2C_Read... [06:41:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:45]Read from MH i2c: E2 [06:41:45]MH_I2C_Read... [06:41:45]Read from MH i2c: E2 17 00 [06:41:45]MH_I2C_Read... [06:41:45]Read from MH i2c: E2 17 00 30 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 34 [06:41:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:41:45]wFMCommunicate OK [06:41:45]requested_item fd.num is exist - process it [06:41:45]SAM_PROTO_GetFieldsCounters [06:41:45]wFMCommunicate request_size=4 [06:41:45]MH_SAM_APDU [06:41:45]CAPDU: 80 13 00 00 [06:41:45]Write to MH i2c: E2 08 00 31 2F 80 13 00 00 00 00 00 00 DC [06:41:45]Write i2c OK [06:41:45]MH_I2C_Read... [06:41:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:41:45]Read from MH i2c: E2 [06:41:45]MH_I2C_Read... [06:41:45]Read from MH i2c: E2 62 00 [06:41:45]MH_I2C_Read... [06:41:45]Read from MH i2c: E2 62 00 31 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 75 CF 01 00 0E 04 04 00 B2 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 3A [06:41: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 75 CF 01 00 0E 04 04 00 B2 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:41:45]wFMCommunicate OK [06:41:45]SAM_PROTO_GetFieldsCounters done [06:41:45]requested_item shift.num is exist - process it [06:41:45]requested_item shift.opened is exist - process it [06:41:45]req_shift_opened [06:41:45]FM_GetShiftState [06:41:45]SAM_PROTO_GetShiftState [06:41:45]wFMCommunicate request_size=4 [06:41:45]MH_SAM_APDU [06:41:45]CAPDU: 80 13 01 00 [06:41:45]Write to MH i2c: E2 08 00 32 2F 80 13 01 00 00 00 00 00 DE [06:41:45]Write i2c OK [06:41:45]MH_I2C_Read... [06:41:45]Read from MH i2c: E2 [06:41:45]MH_I2C_Read... [06:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:45]Read from MH i2c: E2 0E 00 [06:41:45]MH_I2C_Read... [06:41:45]Read from MH i2c: E2 0E 00 32 2F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 0C [06:41:45]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:41:45]wFMCommunicate OK [06:41:45]SAM_PROTO_GetShiftState done [06:41:45]FM_GetShiftState done [06:41:45]req_shift_opened done [06:41:45]requested_item shift.open_date is exist - process it [06:41:45]req_shift_open_date [06:41:45]req_shift_open_date done [06:41:45]produce_requested_data done [06:41:45]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118645,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [06:41:45]process_action_free close_receipt [06:41:45]json_value_free [06:41:45]json_value_free done [06:41:45]process_json_proto returns [06:41:45]Send response to host [06:41:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118645,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [06:41:45]free response buf [06:41:45]execute_script done [06:41:45]execute_script returns [06:41:45]free content buf [06:41:45]Sock 9.Close socket [06:41:45]Sock 9.Thread stoped [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:19]accept exits with 7 [06:44:19]New connection [06:44:19]New thread 3067239780 created [06:44:19]Thread 3067383140 joined [06:44:19]Waiting for new connection... [06:44:19] Sock 7.Parse request [06:44:19]Sock 7.Check first char [06:44:19]Sock 7.First char is OK [06:44:19]request: POST /json_proto HTTP/1.0 [06:44:19]Method: POST [06:44:19]URL: /json_proto [06:44:19]Method is POST - this is cgi request [06:44:19]url: /json_proto [06:44:19]query_string will be loaded in cgi processing [06:44:19]execute_cgi json_proto POST (null) [06:44:19]execute_cgi path=json_proto method=POST [06:44:19]POST find Content-Length [06:44:19]Host: 172.17.45.7:8080 [06:44:19]Content-Length: 818 [06:44:19]Content-Type: application/json [06:44:19] [06:44:19]POST finish read [06:44:19]Found Content-Length = 818 [06:44:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 100.00, "payments": [ { "type": 1, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:44:19]execute_script... [06:44:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 100.00, "payments": [ { "type": 1, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:44:19]POST & json_proto [06:44:19]process_json_proto [06:44:19]json parsed OK: [06:44:19]protocol is kg_v1.0 [06:44:19]action value=close_receipt [06:44:19]process_action close_receipt [06:44:19]cmd_close_receipt [06:44:19]MH_GetDate [06:44:19]Write to MH i2c: F0 00 00 33 2F 51 [06:44:19]Write i2c OK [06:44:19]MH_I2C_Read... [06:44:19]Read from MH i2c: F0 [06:44:19]MH_I2C_Read... [06:44:19]Read from MH i2c: F0 09 00 [06:44:19]MH_I2C_Read... [06:44:19]Read from MH i2c: F0 09 00 33 2F 00 48 3A A7 66 90 0F 3E 66 2C [06:44:19]GetLastDocTimeStamp 1722235305 [06:44:19]current date 1722235464 [06:44:19]FM_GetShiftState [06:44:19]SAM_PROTO_GetShiftState [06:44:19]wFMCommunicate request_size=4 [06:44:19]MH_SAM_APDU [06:44:19]CAPDU: 80 13 01 00 [06:44:19]Write to MH i2c: E2 08 00 34 2F 80 13 01 00 00 00 00 00 E0 [06:44:19]Write i2c OK [06:44:19]MH_I2C_Read... [06:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:19]Read from MH i2c: E2 [06:44:19]MH_I2C_Read... [06:44:19]Read from MH i2c: E2 0E 00 [06:44:19]MH_I2C_Read... [06:44:19]Read from MH i2c: E2 0E 00 34 2F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 0E [06:44:19]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:44:19]wFMCommunicate OK [06:44:19]SAM_PROTO_GetShiftState done [06:44:19]FM_GetShiftState done [06:44:19]opened in 1722211641 [06:44:19]opened+sec_in_day 1722298041 [06:44:19]quantity*price = 10034 [06:44:19]sum+1 = 10035 [06:44:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 100.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 0.00 Безнал.: 100.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 22 29.07.2024 06:44 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118646 ФПД: 35967917006233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T064424&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118646&fm=35967917006233&tin=02508201610067®Number=0000000000092660&sum=10000 [06:44:21]StoreToDocumentArchive [06:44:21]shift 434 fd 118646 [06:44:21]save to /storage/0434/doc_00118646 [06:44:21]save last doc name /storage/0434/doc_00118646 to /storage/kkm_last_doc_name [06:44:21]save OK [06:44:21]Clear old archive folders... [06:44:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:44:21]tlvbuf is B6F43640 [06:44:21]SAM_PROTO_ClearQueue [06:44:21]wFMCommunicate request_size=4 [06:44:21]MH_SAM_APDU [06:44:21]CAPDU: 80 09 00 00 [06:44:21]Write to MH i2c: E2 08 00 41 2F 80 09 00 00 00 00 00 00 E2 [06:44:21]Write i2c OK [06:44:21]MH_I2C_Read... [06:44:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:44:21]Read from MH i2c: E2 [06:44:21]MH_I2C_Read... [06:44:21]Read from MH i2c: E2 03 00 [06:44:21]MH_I2C_Read... [06:44:21]Read from MH i2c: E2 03 00 41 2F 00 90 00 E4 [06:44:21]RAPDU: 90 00 [06:44:21]wFMCommunicate OK [06:44:21]SAM_PROTO_ClearQueue done [06:44:21]KKMCreateOFDPacket [06:44:21]OFDProtocolAddRootSTLVToBuf [06:44:21]FM_MakeSignedData [06:44:21]FM_MakeSignedData [06:44:21]SAM_PROTO_SignData [06:44:21]wFMCommunicate request_size=4 [06:44:21]MH_SAM_APDU [06:44:21]CAPDU: 80 0D 01 02 [06:44:21]Write to MH i2c: E2 08 00 42 2F 80 0D 01 02 00 00 00 00 EA [06:44:21]Write i2c OK [06:44:21]MH_I2C_Read... [06:44:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:44:21]Read from MH i2c: E2 [06:44:21]MH_I2C_Read... [06:44:21]Read from MH i2c: E2 03 00 [06:44:21]MH_I2C_Read... [06:44:21]Read from MH i2c: E2 03 00 42 2F 00 90 00 E5 [06:44:21]RAPDU: 90 00 [06:44:21]wFMCommunicate OK [06:44:21]wFMCommunicate request_size=255 [06:44:21]MH_SAM_APDU [06:44:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 48 3A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 CF 01 00 35 04 06 00 20 [06:44:21]Write to MH i2c: E2 02 01 43 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 48 3A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 CF 01 00 35 04 06 00 20 00 00 68 [06:44:21]Write i2c OK [06:44:21]MH_I2C_Read... [06:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:21]Read from MH i2c: E2 [06:44:21]MH_I2C_Read... [06:44:21]Read from MH i2c: E2 03 00 [06:44:21]MH_I2C_Read... [06:44:21]Read from MH i2c: E2 03 00 43 2F 00 90 00 E6 [06:44:21]RAPDU: 90 00 [06:44:21]wFMCommunicate OK [06:44:21]wFMCommunicate request_size=10 [06:44:21]MH_SAM_APDU [06:44:21]CAPDU: 80 0D 02 02 05 B6 6E EA 9D 99 [06:44:21]Write to MH i2c: E2 0D 00 44 2F 80 0D 02 02 05 00 B6 6E EA 9D 99 00 00 3B [06:44:21]Write i2c OK [06:44:21]MH_I2C_Read... [06:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:21]Read from MH i2c: E2 [06:44:21]MH_I2C_Read... [06:44:21]Read from MH i2c: E2 03 00 [06:44:21]MH_I2C_Read... [06:44:21]Read from MH i2c: E2 03 00 44 2F 00 90 00 E7 [06:44:21]RAPDU: 90 00 [06:44:21]wFMCommunicate OK [06:44:21]wFMCommunicate request_size=4 [06:44:21]MH_SAM_APDU [06:44:21]CAPDU: 80 0D 03 02 [06:44:21]Write to MH i2c: E2 08 00 45 2F 80 0D 03 02 00 00 00 00 EF [06:44:21]Write i2c OK [06:44:21]MH_I2C_Read... [06:44:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:44:21]Read from MH i2c: E2 [06:44:21]MH_I2C_Read... [06:44:21]Read from MH i2c: E2 0B 00 [06:44:21]MH_I2C_Read... [06:44:21]Read from MH i2c: E2 0B 00 45 2F 00 99 00 AD 63 68 7D 2A BE 90 00 66 [06:44:21]RAPDU: 99 00 AD 63 68 7D 2A BE 90 00 [06:44:21]wFMCommunicate OK [06:44:21]SAM_PROTO_SignData done [06:44:21]FM_MakeSignedData done [06:44:21]CreateOFDProtocolMessage [06:44:21]wFMCommunicate request_size=4 [06:44:21]MH_SAM_APDU [06:44:21]CAPDU: 80 11 00 00 [06:44:21]Write to MH i2c: E2 08 00 46 2F 80 11 00 00 00 00 00 00 EF [06:44:21]Write i2c OK [06:44:21]MH_I2C_Read... [06:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:21]Read from MH i2c: E2 [06:44:21]MH_I2C_Read... [06:44:21]Read from MH i2c: E2 17 00 [06:44:21]MH_I2C_Read... [06:44:21]Read from MH i2c: E2 17 00 46 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4A [06:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:44:21]wFMCommunicate OK [06:44:21]CreateOFDProtocolMessage done [06:44:21]OFDSenderStorePacket 118646 [06:44:21]StoreOFDPacket docnum=118646 [06:44:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 36 EA 07 01 7C 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 48 3A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 CF 01 00 35 04 06 00 20 B6 6E EA 9D 99 99 00 AD 63 68 7D 2A BE [06:44:21]CheckFolder [06:44:21]dirname=/storage/ofd_packets [06:44:21]CheckFolder done [06:44:21]ProducePacketName [06:44:21]name=ofd_packets/00118646 [06:44:21]NVStorageSaveData ofd_packets/00118646 [06:44:21]File name is /storage/ofd_packets/00118646 [06:44:21]Write 301 bytes [06:44:21]NVStorageSaveData done [06:44:21]OFDSenderStorePacket done [06:44:21]KKMCreateOFDPacket done [06:44:21]NVStorageSaveData kkm_last_timestamp [06:44:21]File name is /storage/kkm_last_timestamp [06:44:21]Write 4 bytes [06:44:21]NVStorageSaveData done [06:44:21]OFD Sender: Processing packet 118646 [packets to send 86, broken 85] [06:44:21]ProducePacketName [06:44:21]name=ofd_packets/00118646 [06:44:21]OFD Sender: To server: pG, [06:44:21]CommunicateWithHost lk.salyk.kg:30040 [06:44:21]ConnectInit lk.salyk.kg [06:44:21]ExternCall_PrintAddStr [06:44:21]wPrintStart [06:44:21]Write to MH i2c: 01 00 00 47 2F 76 [06:44:21]Write i2c OK [06:44:21]MH_I2C_Read... [06:44:21]Read from MH i2c: 01 [06:44:21]MH_I2C_Read... [06:44:21]Read from MH i2c: 01 07 00 [06:44:21]MH_I2C_Read... [06:44:21]Read from MH i2c: 01 07 00 47 2F 00 00 00 00 00 FF 0F 8B [06:44:21]RasterBufferAndPrint [06:44:21]line Счет N : (1)949530 [06:44:21]line ИНН: 02508201610067 [06:44:21]line Контрольно-Кассовый Чек [06:44:21]line ПРОДАЖА [06:44:21]line ТРК (МРК, ГНК) : 41 [06:44:21]line Товар: 2710124130 [06:44:21]line Аи-92-К-4 [06:44:21]line 1.480 * 67.80 [06:44:21]line = 100.34 [06:44:21]line НДС 12% НСП 1% [06:44:21]line > о реализуемом товаре [06:44:21]line ОКРУГЛЕНИЕ: -0.34 [06:44:21]line ИТОГО: 100.00 [06:44:21]line НСП 1% : 0.89 [06:44:21]line НДС 12% : 10.66 [06:44:21]line Наличными: 0.00 [06:44:21]line Безнал.: 100.00 [06:44:21]line Место: АЗС № 134 "Партнер Нефть" [06:44:21]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:44:21]line СНО: Общий режим [06:44:21]line Чек 22 29.07.2024 06:44 [06:44:21]line Смена: 434 ФФД: 1.0 [06:44:21]line ЗНМ: 0300000044 [06:44:21]line РНМ: 0000000000092660 [06:44:21]line Версия ККМ: 001 [06:44:21]line Платежная система: O! деньги [06:44:21]line ФМ: 0000000000874939 [06:44:21]line ФД: 118646 [06:44:21]line ФПД: 35967917006233 [06:44:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T064424&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118646&fm=35967917006233&tin=02508201610067®Number=0000000000092660&sum=10000 [06:44:21]Connected sock=11 [06:44:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 36 EA 07 01 7C 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 48 3A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 CF 01 00 35 04 06 00 20 B6 6E EA 9D 99 99 00 AD 63 68 7D 2A BE [06:44:21]written 0, free lines is 4095 [06:44:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 36 13 47 00 15 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 CF 01 00 F4 03 04 00 D6 E7 A6 66 B6 04 01 00 00 7C 8E B5 48 9A 6A 2E 5F [06:44:22]CommunicateWithHost err = 0 [06:44:22]CheckOFDResponse [06:44:22]1017 (14) - 77093643461234 [06:44:22]1041 (16) - 0000000000874939 [06:44:22]1040 (4) - 118646 [06:44:22]1012 (4) - 29.07.2024 00:52 [06:44:22]1206 (1) - 0 [06:44:22]OFD Sender: Remove packet 118646 [06:44:22]ProducePacketName [06:44:22]name=ofd_packets/00118646 [06:44:22]NVStorageDeleteData [06:44:22]Write to MH i2c: 01 00 00 71 2F A0 [06:44:22]Write i2c OK [06:44:22]MH_I2C_Read... [06:44:22]Read from MH i2c: 01 [06:44:22]MH_I2C_Read... [06:44:22]Read from MH i2c: 01 07 00 [06:44:22]MH_I2C_Read... [06:44:22]Read from MH i2c: 01 07 00 71 2F 00 00 00 00 00 DF 0C 92 [06:44:22]RasterBufferAndPrint [06:44:22]line [06:44:22]line [06:44:22]line [06:44:22]line [06:44:22]line [06:44:22]written 0, free lines is 3302 [06:44:22]MH_Cut [06:44:22]Write to MH i2c: D1 01 00 78 2F 01 79 [06:44:22]Write i2c OK [06:44:22]MH_I2C_Read... [06:44:22]Read from MH i2c: D1 [06:44:22]MH_I2C_Read... [06:44:22]Read from MH i2c: D1 01 00 [06:44:22]MH_I2C_Read... [06:44:22]Read from MH i2c: D1 01 00 78 2F 00 78 [06:44:22]Write to MH i2c: 01 00 00 79 2F A8 [06:44:22]Write i2c OK [06:44:22]MH_I2C_Read... [06:44:22]OFD Sender: No OFD packet to send [06:44:23]*** Cut start [06:44:23]*** Partial cut [06:44:23]*** CUTSNS_PIN = 1 [06:44:23]*** CUTSNS_PIN = 0 [06:44:23]*** Brake cut motor [06:44:23]Read from MH i2c: 01 [06:44:23]MH_I2C_Read... [06:44:23]*** Stop cut motor [06:44:23]*** Cut end [06:44:23]Read from MH i2c: 01 07 00 [06:44:23]MH_I2C_Read... [06:44:23]Read from MH i2c: 01 07 00 79 2F 00 00 00 00 00 FF 0F BD [06:44:23]process_action close_receipt done [06:44:23]requested_data is exist [06:44:23]produce_requested_data [06:44:23]requested_item fm.sn is exist - process it [06:44:23]wFMCommunicate request_size=4 [06:44:23]MH_SAM_APDU [06:44:23]CAPDU: 80 11 00 00 [06:44:23]Write to MH i2c: E2 08 00 7A 2F 80 11 00 00 00 00 00 00 23 [06:44:23]Write i2c OK [06:44:23]MH_I2C_Read... [06:44:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:23]Read from MH i2c: E2 [06:44:23]MH_I2C_Read... [06:44:23]Read from MH i2c: E2 17 00 [06:44:23]MH_I2C_Read... [06:44:23]Read from MH i2c: E2 17 00 7A 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7E [06:44:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:44:23]wFMCommunicate OK [06:44:23]requested_item fd.num is exist - process it [06:44:23]SAM_PROTO_GetFieldsCounters [06:44:23]wFMCommunicate request_size=4 [06:44:23]MH_SAM_APDU [06:44:23]CAPDU: 80 13 00 00 [06:44:23]Write to MH i2c: E2 08 00 7B 2F 80 13 00 00 00 00 00 00 26 [06:44:23]Write i2c OK [06:44:23]MH_I2C_Read... [06:44:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:44:23]Read from MH i2c: E2 [06:44:23]MH_I2C_Read... [06:44:23]Read from MH i2c: E2 62 00 [06:44:23]MH_I2C_Read... [06:44:23]Read from MH i2c: E2 62 00 7B 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 76 CF 01 00 0E 04 04 00 B2 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 88 [06:44: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 76 CF 01 00 0E 04 04 00 B2 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:44:23]wFMCommunicate OK [06:44:23]SAM_PROTO_GetFieldsCounters done [06:44:23]requested_item shift.num is exist - process it [06:44:23]requested_item shift.opened is exist - process it [06:44:23]req_shift_opened [06:44:23]FM_GetShiftState [06:44:23]SAM_PROTO_GetShiftState [06:44:23]wFMCommunicate request_size=4 [06:44:23]MH_SAM_APDU [06:44:23]CAPDU: 80 13 01 00 [06:44:23]Write to MH i2c: E2 08 00 7C 2F 80 13 01 00 00 00 00 00 28 [06:44:23]Write i2c OK [06:44:23]MH_I2C_Read... [06:44:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:24]Read from MH i2c: E2 [06:44:24]MH_I2C_Read... [06:44:24]Read from MH i2c: E2 0E 00 [06:44:24]MH_I2C_Read... [06:44:24]Read from MH i2c: E2 0E 00 7C 2F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 56 [06:44:24]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:44:24]wFMCommunicate OK [06:44:24]SAM_PROTO_GetShiftState done [06:44:24]FM_GetShiftState done [06:44:24]req_shift_opened done [06:44:24]requested_item shift.open_date is exist - process it [06:44:24]req_shift_open_date [06:44:24]req_shift_open_date done [06:44:24]produce_requested_data done [06:44:24]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118646,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [06:44:24]process_action_free close_receipt [06:44:24]json_value_free [06:44:24]json_value_free done [06:44:24]process_json_proto returns [06:44:24]Send response to host [06:44:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118646,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [06:44:24]free response buf [06:44:24]execute_script done [06:44:24]execute_script returns [06:44:24]free content buf [06:44:24]Sock 7.Close socket [06:44:24]Sock 7.Thread stoped [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:11]accept exits with 9 [06:48:11]New connection [06:48:11]New thread 3067383140 created [06:48:11]Thread 3067239780 joined [06:48:11]Waiting for new connection... [06:48:11] Sock 9.Parse request [06:48:11]Sock 9.Check first char [06:48:11]Sock 9.First char is OK [06:48:11]request: POST /json_proto HTTP/1.0 [06:48:11]Method: POST [06:48:11]URL: /json_proto [06:48:11]Method is POST - this is cgi request [06:48:11]url: /json_proto [06:48:11]query_string will be loaded in cgi processing [06:48:11]execute_cgi json_proto POST (null) [06:48:11]execute_cgi path=json_proto method=POST [06:48:11]POST find Content-Length [06:48:11]Host: 172.17.45.7:8080 [06:48:11]Content-Length: 677 [06:48:11]Content-Type: application/json [06:48:11] [06:48:11]POST finish read [06:48:11]Found Content-Length = 677 [06:48:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:11]execute_script... [06:48:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:11]POST & json_proto [06:48:11]process_json_proto [06:48:11]json parsed OK: [06:48:11]protocol is kg_v1.0 [06:48:11]action value=close_receipt [06:48:11]process_action close_receipt [06:48:11]cmd_close_receipt [06:48:11]MH_GetDate [06:48:11]Write to MH i2c: F0 00 00 7D 2F 9B [06:48:11]Write i2c OK [06:48:11]MH_I2C_Read... [06:48:11]Read from MH i2c: F0 [06:48:11]MH_I2C_Read... [06:48:11]Read from MH i2c: F0 09 00 [06:48:11]MH_I2C_Read... [06:48:11]Read from MH i2c: F0 09 00 7D 2F 00 2F 3B A7 66 90 0F 3E 66 5E [06:48:11]GetLastDocTimeStamp 1722235464 [06:48:11]current date 1722235695 [06:48:11]FM_GetShiftState [06:48:11]SAM_PROTO_GetShiftState [06:48:11]wFMCommunicate request_size=4 [06:48:11]MH_SAM_APDU [06:48:11]CAPDU: 80 13 01 00 [06:48:11]Write to MH i2c: E2 08 00 7E 2F 80 13 01 00 00 00 00 00 2A [06:48:11]Write i2c OK [06:48:11]MH_I2C_Read... [06:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:11]Read from MH i2c: E2 [06:48:11]MH_I2C_Read... [06:48:11]Read from MH i2c: E2 0E 00 [06:48:11]MH_I2C_Read... [06:48:11]Read from MH i2c: E2 0E 00 7E 2F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 58 [06:48:11]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:48:11]wFMCommunicate OK [06:48:11]SAM_PROTO_GetShiftState done [06:48:11]FM_GetShiftState done [06:48:11]opened in 1722211641 [06:48:11]opened+sec_in_day 1722298041 [06:48:11]quantity*price = 50036 [06:48:11]sum+1 = 50037 [06:48:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 23 29.07.2024 06:48 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118647 ФПД: 222225046747457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T064815&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118647&fm=222225046747457&tin=02508201610067®Number=0000000000092660&sum=50000 [06:48:12]StoreToDocumentArchive [06:48:12]shift 434 fd 118647 [06:48:12]save to /storage/0434/doc_00118647 [06:48:12]save last doc name /storage/0434/doc_00118647 to /storage/kkm_last_doc_name [06:48:12]save OK [06:48:12]Clear old archive folders... [06:48:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:48:12]tlvbuf is 01E4D6B0 [06:48:12]SAM_PROTO_ClearQueue [06:48:12]wFMCommunicate request_size=4 [06:48:12]MH_SAM_APDU [06:48:12]CAPDU: 80 09 00 00 [06:48:12]Write to MH i2c: E2 08 00 8B 2F 80 09 00 00 00 00 00 00 2C [06:48:12]Write i2c OK [06:48:12]MH_I2C_Read... [06:48:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:48:12]Read from MH i2c: E2 [06:48:12]MH_I2C_Read... [06:48:12]Read from MH i2c: E2 03 00 [06:48:12]MH_I2C_Read... [06:48:12]Read from MH i2c: E2 03 00 8B 2F 00 90 00 2E [06:48:12]RAPDU: 90 00 [06:48:12]wFMCommunicate OK [06:48:12]SAM_PROTO_ClearQueue done [06:48:12]KKMCreateOFDPacket [06:48:12]OFDProtocolAddRootSTLVToBuf [06:48:12]FM_MakeSignedData [06:48:12]FM_MakeSignedData [06:48:12]SAM_PROTO_SignData [06:48:12]wFMCommunicate request_size=4 [06:48:12]MH_SAM_APDU [06:48:12]CAPDU: 80 0D 01 02 [06:48:12]Write to MH i2c: E2 08 00 8C 2F 80 0D 01 02 00 00 00 00 34 [06:48:12]Write i2c OK [06:48:12]MH_I2C_Read... [06:48:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:48:12]Read from MH i2c: E2 [06:48:12]MH_I2C_Read... [06:48:12]Read from MH i2c: E2 03 00 [06:48:12]MH_I2C_Read... [06:48:12]Read from MH i2c: E2 03 00 8C 2F 00 90 00 2F [06:48:12]RAPDU: 90 00 [06:48:12]wFMCommunicate OK [06:48:12]wFMCommunicate request_size=255 [06:48:12]MH_SAM_APDU [06:48:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 2F 3B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 77 CF 01 00 35 04 06 00 CA [06:48:12]Write to MH i2c: E2 02 01 8D 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 2F 3B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 77 CF 01 00 35 04 06 00 CA 00 00 0A [06:48:12]Write i2c OK [06:48:12]MH_I2C_Read... [06:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:12]Read from MH i2c: E2 [06:48:12]MH_I2C_Read... [06:48:12]Read from MH i2c: E2 03 00 [06:48:12]MH_I2C_Read... [06:48:12]Read from MH i2c: E2 03 00 8D 2F 00 90 00 30 [06:48:12]RAPDU: 90 00 [06:48:12]wFMCommunicate OK [06:48:12]wFMCommunicate request_size=10 [06:48:12]MH_SAM_APDU [06:48:12]CAPDU: 80 0D 02 02 05 1C CC F8 B9 41 [06:48:12]Write to MH i2c: E2 0D 00 8E 2F 80 0D 02 02 05 00 1C CC F8 B9 41 00 00 1B [06:48:12]Write i2c OK [06:48:12]MH_I2C_Read... [06:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:12]Read from MH i2c: E2 [06:48:12]MH_I2C_Read... [06:48:12]Read from MH i2c: E2 03 00 [06:48:12]MH_I2C_Read... [06:48:12]Read from MH i2c: E2 03 00 8E 2F 00 90 00 31 [06:48:12]RAPDU: 90 00 [06:48:12]wFMCommunicate OK [06:48:12]wFMCommunicate request_size=4 [06:48:12]MH_SAM_APDU [06:48:12]CAPDU: 80 0D 03 02 [06:48:12]Write to MH i2c: E2 08 00 8F 2F 80 0D 03 02 00 00 00 00 39 [06:48:12]Write i2c OK [06:48:12]MH_I2C_Read... [06:48:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:48:12]Read from MH i2c: E2 [06:48:12]MH_I2C_Read... [06:48:12]Read from MH i2c: E2 0B 00 [06:48:12]MH_I2C_Read... [06:48:12]Read from MH i2c: E2 0B 00 8F 2F 00 35 87 EF B1 E9 54 53 D3 90 00 F9 [06:48:12]RAPDU: 35 87 EF B1 E9 54 53 D3 90 00 [06:48:12]wFMCommunicate OK [06:48:12]SAM_PROTO_SignData done [06:48:12]FM_MakeSignedData done [06:48:12]CreateOFDProtocolMessage [06:48:12]wFMCommunicate request_size=4 [06:48:12]MH_SAM_APDU [06:48:12]CAPDU: 80 11 00 00 [06:48:12]Write to MH i2c: E2 08 00 90 2F 80 11 00 00 00 00 00 00 39 [06:48:12]Write i2c OK [06:48:12]MH_I2C_Read... [06:48:12]OFD Sender: No OFD packet to send [06:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:12]Read from MH i2c: E2 [06:48:12]MH_I2C_Read... [06:48:12]Read from MH i2c: E2 17 00 [06:48:12]MH_I2C_Read... [06:48:12]Read from MH i2c: E2 17 00 90 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 94 [06:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:48:12]wFMCommunicate OK [06:48:12]CreateOFDProtocolMessage done [06:48:12]OFDSenderStorePacket 118647 [06:48:12]StoreOFDPacket docnum=118647 [06:48:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 06 C8 07 01 8F 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 2F 3B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 77 CF 01 00 35 04 06 00 CA 1C CC F8 B9 41 35 87 EF B1 E9 54 53 D3 [06:48:12]CheckFolder [06:48:12]dirname=/storage/ofd_packets [06:48:12]CheckFolder done [06:48:12]ProducePacketName [06:48:12]name=ofd_packets/00118647 [06:48:12]NVStorageSaveData ofd_packets/00118647 [06:48:12]File name is /storage/ofd_packets/00118647 [06:48:12]Write 301 bytes [06:48:12]NVStorageSaveData done [06:48:12]OFDSenderStorePacket done [06:48:12]KKMCreateOFDPacket done [06:48:12]NVStorageSaveData kkm_last_timestamp [06:48:12]File name is /storage/kkm_last_timestamp [06:48:12]Write 4 bytes [06:48:12]NVStorageSaveData done [06:48:12]ExternCall_PrintAddStr [06:48:12]wPrintStart [06:48:12]Write to MH i2c: 01 00 00 91 2F C0 [06:48:12]Write i2c OK [06:48:12]MH_I2C_Read... [06:48:12]Read from MH i2c: 01 [06:48:12]MH_I2C_Read... [06:48:12]Read from MH i2c: 01 07 00 [06:48:12]MH_I2C_Read... [06:48:12]Read from MH i2c: 01 07 00 91 2F 00 00 00 00 00 FF 0F D5 [06:48:12]RasterBufferAndPrint [06:48:12]line Счет N : (1)949531 [06:48:12]line ИНН: 02508201610067 [06:48:12]line Контрольно-Кассовый Чек [06:48:12]line ПРОДАЖА [06:48:12]line ТРК (МРК, ГНК) : 51 [06:48:12]line Товар: 2710124130 [06:48:12]line Аи-92-К-4 [06:48:12]line 7.380 * 67.80 [06:48:12]line = 500.36 [06:48:12]line НДС 12% НСП 1% [06:48:12]line > о реализуемом товаре [06:48:12]line ОКРУГЛЕНИЕ: -0.36 [06:48:12]line ИТОГО: 500.00 [06:48:12]line Внесено: 500.00 [06:48:12]line СДАЧА: 0.00 [06:48:12]line НСП 1% : 4.43 [06:48:12]line НДС 12% : 53.14 [06:48:12]line Наличными: 500.00 [06:48:12]line Безнал.: 0.00 [06:48:12]line Место: АЗС № 134 "Партнер Нефть" [06:48:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:48:12]line СНО: Общий режим [06:48:12]line Чек 23 29.07.2024 06:48 [06:48:12]line Смена: 434 ФФД: 1.0 [06:48:12]line ЗНМ: 0300000044 [06:48:12]line РНМ: 0000000000092660 [06:48:12]line Версия ККМ: 001 [06:48:12]line ФМ: 0000000000874939 [06:48:13]line ФД: 118647 [06:48:13]line ФПД: 222225046747457 [06:48:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T064815&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118647&fm=222225046747457&tin=02508201610067®Number=0000000000092660&sum=50000 [06:48:13]OFD Sender: Processing packet 118647 [packets to send 86, broken 85] [06:48:13]ProducePacketName [06:48:13]name=ofd_packets/00118647 [06:48:13]OFD Sender: To server: pG, [06:48:13]CommunicateWithHost lk.salyk.kg:30040 [06:48:13]ConnectInit lk.salyk.kg [06:48:13]written 0, free lines is 4095 [06:48:13]Connected sock=10 [06:48:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 06 C8 07 01 8F 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 2F 3B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 77 CF 01 00 35 04 06 00 CA 1C CC F8 B9 41 35 87 EF B1 E9 54 53 D3 [06:48:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7C DB 47 00 7A 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 34 39 33 39 10 04 04 00 77 CF 01 00 F4 03 04 00 BE E8 A6 66 B6 04 01 00 00 6C 22 28 E0 B9 82 4F E4 [06:48:13]CommunicateWithHost err = 0 [06:48:13]CheckOFDResponse [06:48:13]1017 (14) - 77093643461234 [06:48:13]1041 (16) - 0000000000874939 [06:48:13]1040 (4) - 118647 [06:48:13]1012 (4) - 29.07.2024 00:56 [06:48:13]1206 (1) - 0 [06:48:13]OFD Sender: Remove packet 118647 [06:48:13]ProducePacketName [06:48:13]name=ofd_packets/00118647 [06:48:13]NVStorageDeleteData [06:48:13]Write to MH i2c: 01 00 00 BB 2F EA [06:48:13]Write i2c OK [06:48:13]MH_I2C_Read... [06:48:13]Read from MH i2c: 01 [06:48:13]MH_I2C_Read... [06:48:13]Read from MH i2c: 01 07 00 [06:48:13]MH_I2C_Read... [06:48:13]Read from MH i2c: 01 07 00 BB 2F 00 00 00 00 00 D8 0C D5 [06:48:13]RasterBufferAndPrint [06:48:13]line [06:48:13]line [06:48:13]line [06:48:13]line [06:48:13]line [06:48:13]written 0, free lines is 3295 [06:48:13]MH_Cut [06:48:13]Write to MH i2c: D1 01 00 C2 2F 01 C3 [06:48:13]Write i2c OK [06:48:13]MH_I2C_Read... [06:48:13]Read from MH i2c: D1 [06:48:13]MH_I2C_Read... [06:48:13]Read from MH i2c: D1 01 00 [06:48:13]MH_I2C_Read... [06:48:13]Read from MH i2c: D1 01 00 C2 2F 00 C2 [06:48:13]Write to MH i2c: 01 00 00 C3 2F F2 [06:48:13]Write i2c OK [06:48:13]MH_I2C_Read... [06:48:14]OFD Sender: No OFD packet to send [06:48:14]*** Cut start [06:48:14]*** Partial cut [06:48:14]*** CUTSNS_PIN = 1 [06:48:14]*** CUTSNS_PIN = 0 [06:48:14]*** Brake cut motor [06:48:15]Read from MH i2c: 01 [06:48:15]MH_I2C_Read... [06:48:15]*** Stop cut motor [06:48:15]*** Cut end [06:48:15]Read from MH i2c: 01 07 00 [06:48:15]MH_I2C_Read... [06:48:15]Read from MH i2c: 01 07 00 C3 2F 00 00 00 00 00 FF 0F 07 [06:48:15]process_action close_receipt done [06:48:15]requested_data is exist [06:48:15]produce_requested_data [06:48:15]requested_item fm.sn is exist - process it [06:48:15]wFMCommunicate request_size=4 [06:48:15]MH_SAM_APDU [06:48:15]CAPDU: 80 11 00 00 [06:48:15]Write to MH i2c: E2 08 00 C4 2F 80 11 00 00 00 00 00 00 6D [06:48:15]Write i2c OK [06:48:15]MH_I2C_Read... [06:48:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:15]Read from MH i2c: E2 [06:48:15]MH_I2C_Read... [06:48:15]Read from MH i2c: E2 17 00 [06:48:15]MH_I2C_Read... [06:48:15]Read from MH i2c: E2 17 00 C4 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C8 [06:48:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:48:15]wFMCommunicate OK [06:48:15]requested_item fd.num is exist - process it [06:48:15]SAM_PROTO_GetFieldsCounters [06:48:15]wFMCommunicate request_size=4 [06:48:15]MH_SAM_APDU [06:48:15]CAPDU: 80 13 00 00 [06:48:15]Write to MH i2c: E2 08 00 C5 2F 80 13 00 00 00 00 00 00 70 [06:48:15]Write i2c OK [06:48:15]MH_I2C_Read... [06:48:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:48:15]Read from MH i2c: E2 [06:48:15]MH_I2C_Read... [06:48:15]Read from MH i2c: E2 62 00 [06:48:15]MH_I2C_Read... [06:48:15]Read from MH i2c: E2 62 00 C5 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 77 CF 01 00 0E 04 04 00 B2 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 D6 [06:48: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 77 CF 01 00 0E 04 04 00 B2 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:48:15]wFMCommunicate OK [06:48:15]SAM_PROTO_GetFieldsCounters done [06:48:15]requested_item shift.num is exist - process it [06:48:15]requested_item shift.opened is exist - process it [06:48:15]req_shift_opened [06:48:15]FM_GetShiftState [06:48:15]SAM_PROTO_GetShiftState [06:48:15]wFMCommunicate request_size=4 [06:48:15]MH_SAM_APDU [06:48:15]CAPDU: 80 13 01 00 [06:48:15]Write to MH i2c: E2 08 00 C6 2F 80 13 01 00 00 00 00 00 72 [06:48:15]Write i2c OK [06:48:15]MH_I2C_Read... [06:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:15]Read from MH i2c: E2 [06:48:15]MH_I2C_Read... [06:48:15]Read from MH i2c: E2 0E 00 [06:48:15]MH_I2C_Read... [06:48:15]Read from MH i2c: E2 0E 00 C6 2F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A0 [06:48:15]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:48:15]wFMCommunicate OK [06:48:15]SAM_PROTO_GetShiftState done [06:48:15]FM_GetShiftState done [06:48:15]req_shift_opened done [06:48:15]requested_item shift.open_date is exist - process it [06:48:15]req_shift_open_date [06:48:15]req_shift_open_date done [06:48:15]produce_requested_data done [06:48:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118647,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [06:48:15]process_action_free close_receipt [06:48:15]json_value_free [06:48:15]json_value_free done [06:48:15]process_json_proto returns [06:48:15]Send response to host [06:48:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118647,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [06:48:15]free response buf [06:48:15]execute_script done [06:48:15]execute_script returns [06:48:15]free content buf [06:48:15]Sock 9.Close socket [06:48:15]Sock 9.Thread stoped [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:50]accept exits with 7 [06:48:50]New connection [06:48:50]New thread 3067239780 created [06:48:50]Thread 3067383140 joined [06:48:50]Waiting for new connection... [06:48:50] Sock 7.Parse request [06:48:50]Sock 7.Check first char [06:48:50]Sock 7.First char is OK [06:48:50]request: POST /json_proto HTTP/1.0 [06:48:50]Method: POST [06:48:50]URL: /json_proto [06:48:50]Method is POST - this is cgi request [06:48:50]url: /json_proto [06:48:50]query_string will be loaded in cgi processing [06:48:50]execute_cgi json_proto POST (null) [06:48:50]execute_cgi path=json_proto method=POST [06:48:50]POST find Content-Length [06:48:50]Host: 172.17.45.7:8080 [06:48:50]Content-Length: 678 [06:48:50]Content-Type: application/json [06:48:50] [06:48:50]POST finish read [06:48:50]Found Content-Length = 678 [06:48:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.070, "sum" : 750.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:50]execute_script... [06:48:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.070, "sum" : 750.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:50]POST & json_proto [06:48:50]process_json_proto [06:48:50]json parsed OK: [06:48:50]protocol is kg_v1.0 [06:48:50]action value=close_receipt [06:48:50]process_action close_receipt [06:48:50]cmd_close_receipt [06:48:50]MH_GetDate [06:48:50]Write to MH i2c: F0 00 00 C7 2F E5 [06:48:50]Write i2c OK [06:48:50]MH_I2C_Read... [06:48:50]Read from MH i2c: F0 [06:48:50]MH_I2C_Read... [06:48:50]Read from MH i2c: F0 09 00 [06:48:50]MH_I2C_Read... [06:48:50]Read from MH i2c: F0 09 00 C7 2F 00 57 3B A7 66 90 0F 3E 66 D0 [06:48:50]GetLastDocTimeStamp 1722235695 [06:48:50]current date 1722235735 [06:48:50]FM_GetShiftState [06:48:50]SAM_PROTO_GetShiftState [06:48:50]wFMCommunicate request_size=4 [06:48:50]MH_SAM_APDU [06:48:50]CAPDU: 80 13 01 00 [06:48:50]Write to MH i2c: E2 08 00 C8 2F 80 13 01 00 00 00 00 00 74 [06:48:50]Write i2c OK [06:48:50]MH_I2C_Read... [06:48:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:50]Read from MH i2c: E2 [06:48:50]MH_I2C_Read... [06:48:50]Read from MH i2c: E2 0E 00 [06:48:50]MH_I2C_Read... [06:48:50]Read from MH i2c: E2 0E 00 C8 2F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A2 [06:48:50]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:48:50]wFMCommunicate OK [06:48:50]SAM_PROTO_GetShiftState done [06:48:50]FM_GetShiftState done [06:48:50]opened in 1722211641 [06:48:50]opened+sec_in_day 1722298041 [06:48:50]quantity*price = 75054 [06:48:50]sum+1 = 75056 [06:48:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.70 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 24 29.07.2024 06:48 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118648 ФПД: 208663792791574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T064855&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118648&fm=208663792791574&tin=02508201610067®Number=0000000000092660&sum=75000 [06:48:52]StoreToDocumentArchive [06:48:52]shift 434 fd 118648 [06:48:52]save to /storage/0434/doc_00118648 [06:48:52]save last doc name /storage/0434/doc_00118648 to /storage/kkm_last_doc_name [06:48:52]save OK [06:48:52]Clear old archive folders... [06:48:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:48:52]tlvbuf is 01E53FB0 [06:48:52]SAM_PROTO_ClearQueue [06:48:52]wFMCommunicate request_size=4 [06:48:52]MH_SAM_APDU [06:48:52]CAPDU: 80 09 00 00 [06:48:52]Write to MH i2c: E2 08 00 D5 2F 80 09 00 00 00 00 00 00 76 [06:48:52]Write i2c OK [06:48:52]MH_I2C_Read... [06:48:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:48:52]Read from MH i2c: E2 [06:48:52]MH_I2C_Read... [06:48:52]Read from MH i2c: E2 03 00 [06:48:52]MH_I2C_Read... [06:48:52]Read from MH i2c: E2 03 00 D5 2F 00 90 00 78 [06:48:52]RAPDU: 90 00 [06:48:52]wFMCommunicate OK [06:48:52]SAM_PROTO_ClearQueue done [06:48:52]KKMCreateOFDPacket [06:48:52]OFDProtocolAddRootSTLVToBuf [06:48:52]FM_MakeSignedData [06:48:52]FM_MakeSignedData [06:48:52]SAM_PROTO_SignData [06:48:52]wFMCommunicate request_size=4 [06:48:52]MH_SAM_APDU [06:48:52]CAPDU: 80 0D 01 02 [06:48:52]Write to MH i2c: E2 08 00 D6 2F 80 0D 01 02 00 00 00 00 7E [06:48:52]Write i2c OK [06:48:52]MH_I2C_Read... [06:48:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:48:52]Read from MH i2c: E2 [06:48:52]MH_I2C_Read... [06:48:52]Read from MH i2c: E2 03 00 [06:48:52]MH_I2C_Read... [06:48:52]Read from MH i2c: E2 03 00 D6 2F 00 90 00 79 [06:48:52]RAPDU: 90 00 [06:48:52]wFMCommunicate OK [06:48:52]wFMCommunicate request_size=255 [06:48:52]MH_SAM_APDU [06:48: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 3E 2B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 2F 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 57 3B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 78 CF 01 00 35 04 06 00 BD [06:48:52]Write to MH i2c: E2 02 01 D7 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3E 2B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 2F 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 57 3B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 78 CF 01 00 35 04 06 00 BD 00 00 65 [06:48:52]Write i2c OK [06:48:52]MH_I2C_Read... [06:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:52]Read from MH i2c: E2 [06:48:52]MH_I2C_Read... [06:48:52]Read from MH i2c: E2 03 00 [06:48:52]MH_I2C_Read... [06:48:52]Read from MH i2c: E2 03 00 D7 2F 00 90 00 7A [06:48:52]RAPDU: 90 00 [06:48:52]wFMCommunicate OK [06:48:52]wFMCommunicate request_size=10 [06:48:52]MH_SAM_APDU [06:48:52]CAPDU: 80 0D 02 02 05 C7 53 3F 30 16 [06:48:52]Write to MH i2c: E2 0D 00 D8 2F 80 0D 02 02 05 00 C7 53 3F 30 16 00 00 2A [06:48:52]Write i2c OK [06:48:52]MH_I2C_Read... [06:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:52]Read from MH i2c: E2 [06:48:52]MH_I2C_Read... [06:48:52]Read from MH i2c: E2 03 00 [06:48:52]MH_I2C_Read... [06:48:52]Read from MH i2c: E2 03 00 D8 2F 00 90 00 7B [06:48:52]RAPDU: 90 00 [06:48:52]wFMCommunicate OK [06:48:52]wFMCommunicate request_size=4 [06:48:52]MH_SAM_APDU [06:48:52]CAPDU: 80 0D 03 02 [06:48:52]Write to MH i2c: E2 08 00 D9 2F 80 0D 03 02 00 00 00 00 83 [06:48:52]Write i2c OK [06:48:52]MH_I2C_Read... [06:48:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:48:52]Read from MH i2c: E2 [06:48:52]MH_I2C_Read... [06:48:52]Read from MH i2c: E2 0B 00 [06:48:52]MH_I2C_Read... [06:48:52]Read from MH i2c: E2 0B 00 D9 2F 00 AB A3 DB B4 C2 61 EF 09 90 00 7C [06:48:52]RAPDU: AB A3 DB B4 C2 61 EF 09 90 00 [06:48:52]wFMCommunicate OK [06:48:52]SAM_PROTO_SignData done [06:48:52]FM_MakeSignedData done [06:48:52]CreateOFDProtocolMessage [06:48:52]wFMCommunicate request_size=4 [06:48:52]MH_SAM_APDU [06:48:52]CAPDU: 80 11 00 00 [06:48:52]Write to MH i2c: E2 08 00 DA 2F 80 11 00 00 00 00 00 00 83 [06:48:52]Write i2c OK [06:48:52]MH_I2C_Read... [06:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:52]Read from MH i2c: E2 [06:48:52]MH_I2C_Read... [06:48:52]Read from MH i2c: E2 17 00 [06:48:52]MH_I2C_Read... [06:48:52]Read from MH i2c: E2 17 00 DA 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DE [06:48:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:48:52]wFMCommunicate OK [06:48:52]CreateOFDProtocolMessage done [06:48:52]OFDSenderStorePacket 118648 [06:48:52]StoreOFDPacket docnum=118648 [06:48:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E6 AF 07 01 DA 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3E 2B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 2F 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 57 3B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 78 CF 01 00 35 04 06 00 BD C7 53 3F 30 16 AB A3 DB B4 C2 61 EF 09 [06:48:52]CheckFolder [06:48:52]dirname=/storage/ofd_packets [06:48:52]CheckFolder done [06:48:52]ProducePacketName [06:48:52]name=ofd_packets/00118648 [06:48:52]NVStorageSaveData ofd_packets/00118648 [06:48:52]File name is /storage/ofd_packets/00118648 [06:48:52]Write 301 bytes [06:48:52]NVStorageSaveData done [06:48:52]OFDSenderStorePacket done [06:48:52]KKMCreateOFDPacket done [06:48:52]NVStorageSaveData kkm_last_timestamp [06:48:52]File name is /storage/kkm_last_timestamp [06:48:52]Write 4 bytes [06:48:52]NVStorageSaveData done [06:48:52]ExternCall_PrintAddStr [06:48:52]wPrintStart [06:48:52]Write to MH i2c: 01 00 00 DB 2F 0A [06:48:52]Write i2c OK [06:48:52]MH_I2C_Read... [06:48:52]Read from MH i2c: 01 [06:48:52]MH_I2C_Read... [06:48:52]Read from MH i2c: 01 07 00 [06:48:52]MH_I2C_Read... [06:48:52]Read from MH i2c: 01 07 00 DB 2F 00 00 00 00 00 FF 0F 1F [06:48:52]RasterBufferAndPrint [06:48:52]line Счет N : (1)949532 [06:48:52]line ИНН: 02508201610067 [06:48:52]line Контрольно-Кассовый Чек [06:48:52]line ПРОДАЖА [06:48:52]line ТРК (МРК, ГНК) : 41 [06:48:52]line Товар: 2710124130 [06:48:52]line Аи-92-К-4 [06:48:52]line 11.070 * 67.80 [06:48:52]line = 750.55 [06:48:52]line НДС 12% НСП 1% [06:48:52]line > о реализуемом товаре [06:48:52]line ОКРУГЛЕНИЕ: -0.55 [06:48:52]line ИТОГО: 750.00 [06:48:52]line Внесено: 750.00 [06:48:52]line СДАЧА: 0.00 [06:48:52]line НСП 1% : 6.64 [06:48:52]line НДС 12% : 79.70 [06:48:52]line Наличными: 750.00 [06:48:52]line Безнал.: 0.00 [06:48:52]line Место: АЗС № 134 "Партнер Нефть" [06:48:52]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:48:52]line СНО: Общий режим [06:48:52]line Чек 24 29.07.2024 06:48 [06:48:52]line Смена: 434 ФФД: 1.0 [06:48:52]line ЗНМ: 0300000044 [06:48:52]line РНМ: 0000000000092660 [06:48:52]line Версия ККМ: 001 [06:48:52]line ФМ: 0000000000874939 [06:48:52]line ФД: 118648 [06:48:52]line ФПД: 208663792791574 [06:48:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T064855&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118648&fm=208663792791574&tin=02508201610067®Number=0000000000092660&sum=75000 [06:48:52]written 0, free lines is 4095 [06:48:52]OFD Sender: Processing packet 118648 [packets to send 86, broken 85] [06:48:52]ProducePacketName [06:48:52]name=ofd_packets/00118648 [06:48:52]OFD Sender: To server: pG, [06:48:52]CommunicateWithHost lk.salyk.kg:30040 [06:48:52]ConnectInit lk.salyk.kg [06:48:53]Connected sock=10 [06: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 34 39 33 39 0F 01 00 00 E6 AF 07 01 DA 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3E 2B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 2F 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 57 3B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 78 CF 01 00 35 04 06 00 BD C7 53 3F 30 16 AB A3 DB B4 C2 61 EF 09 [06:48:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6F CE 47 00 32 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 34 39 33 39 10 04 04 00 78 CF 01 00 F4 03 04 00 E5 E8 A6 66 B6 04 01 00 00 B0 9F 93 B8 B6 12 5A 31 [06:48:53]CommunicateWithHost err = 0 [06:48:53]CheckOFDResponse [06:48:53]1017 (14) - 77093643461234 [06:48:53]1041 (16) - 0000000000874939 [06:48:53]1040 (4) - 118648 [06:48:53]1012 (4) - 29.07.2024 00:57 [06:48:53]1206 (1) - 0 [06:48:53]OFD Sender: Remove packet 118648 [06:48:53]ProducePacketName [06:48:53]name=ofd_packets/00118648 [06:48:53]NVStorageDeleteData [06:48:53]Write to MH i2c: 01 00 00 05 30 35 [06:48:53]Write i2c OK [06:48:53]MH_I2C_Read... [06:48:53]Read from MH i2c: 01 [06:48:53]MH_I2C_Read... [06:48:53]Read from MH i2c: 01 07 00 [06:48:53]MH_I2C_Read... [06:48:53]Read from MH i2c: 01 07 00 05 30 00 00 00 00 00 DA 0C 22 [06:48:53]RasterBufferAndPrint [06:48:53]line [06:48:53]line [06:48:53]line [06:48:53]line [06:48:53]line [06:48:53]written 0, free lines is 3301 [06:48:53]MH_Cut [06:48:53]Write to MH i2c: D1 01 00 0C 30 01 0E [06:48:53]Write i2c OK [06:48:53]MH_I2C_Read... [06:48:53]Read from MH i2c: D1 [06:48:53]MH_I2C_Read... [06:48:53]Read from MH i2c: D1 01 00 [06:48:53]MH_I2C_Read... [06:48:53]Read from MH i2c: D1 01 00 0C 30 00 0D [06:48:53]Write to MH i2c: 01 00 00 0D 30 3D [06:48:53]Write i2c OK [06:48:53]MH_I2C_Read... [06:48:53]OFD Sender: No OFD packet to send [06:48:54]*** Cut start [06:48:54]*** Partial cut [06:48:54]*** CUTSNS_PIN = 1 [06:48:54]*** CUTSNS_PIN = 0 [06:48:54]*** Brake cut motor [06:48:54]Read from MH i2c: 01 [06:48:54]MH_I2C_Read... [06:48:54]*** Stop cut motor [06:48:54]*** Cut end [06:48:54]Read from MH i2c: 01 07 00 [06:48:54]MH_I2C_Read... [06:48:54]Read from MH i2c: 01 07 00 0D 30 00 00 00 00 00 FF 0F 52 [06:48:54]process_action close_receipt done [06:48:54]requested_data is exist [06:48:54]produce_requested_data [06:48:54]requested_item fm.sn is exist - process it [06:48:54]wFMCommunicate request_size=4 [06:48:54]MH_SAM_APDU [06:48:54]CAPDU: 80 11 00 00 [06:48:54]Write to MH i2c: E2 08 00 0E 30 80 11 00 00 00 00 00 00 B8 [06:48:54]Write i2c OK [06:48:54]MH_I2C_Read... [06:48:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:54]Read from MH i2c: E2 [06:48:54]MH_I2C_Read... [06:48:54]Read from MH i2c: E2 17 00 [06:48:54]MH_I2C_Read... [06:48:54]Read from MH i2c: E2 17 00 0E 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 13 [06:48:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:48:54]wFMCommunicate OK [06:48:54]requested_item fd.num is exist - process it [06:48:54]SAM_PROTO_GetFieldsCounters [06:48:54]wFMCommunicate request_size=4 [06:48:54]MH_SAM_APDU [06:48:54]CAPDU: 80 13 00 00 [06:48:54]Write to MH i2c: E2 08 00 0F 30 80 13 00 00 00 00 00 00 BB [06:48:54]Write i2c OK [06:48:54]MH_I2C_Read... [06:48:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:48:54]Read from MH i2c: E2 [06:48:54]MH_I2C_Read... [06:48:54]Read from MH i2c: E2 62 00 [06:48:54]MH_I2C_Read... [06:48:54]Read from MH i2c: E2 62 00 0F 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 78 CF 01 00 0E 04 04 00 B2 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 25 [06:48: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 78 CF 01 00 0E 04 04 00 B2 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 [06:48:55]wFMCommunicate OK [06:48:55]SAM_PROTO_GetFieldsCounters done [06:48:55]requested_item shift.num is exist - process it [06:48:55]requested_item shift.opened is exist - process it [06:48:55]req_shift_opened [06:48:55]FM_GetShiftState [06:48:55]SAM_PROTO_GetShiftState [06:48:55]wFMCommunicate request_size=4 [06:48:55]MH_SAM_APDU [06:48:55]CAPDU: 80 13 01 00 [06:48:55]Write to MH i2c: E2 08 00 10 30 80 13 01 00 00 00 00 00 BD [06:48:55]Write i2c OK [06:48:55]MH_I2C_Read... [06:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:55]Read from MH i2c: E2 [06:48:55]MH_I2C_Read... [06:48:55]Read from MH i2c: E2 0E 00 [06:48:55]MH_I2C_Read... [06:48:55]Read from MH i2c: E2 0E 00 10 30 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 EB [06:48:55]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:48:55]wFMCommunicate OK [06:48:55]SAM_PROTO_GetShiftState done [06:48:55]FM_GetShiftState done [06:48:55]req_shift_opened done [06:48:55]requested_item shift.open_date is exist - process it [06:48:55]req_shift_open_date [06:48:55]req_shift_open_date done [06:48:55]produce_requested_data done [06:48:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118648,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [06:48:55]process_action_free close_receipt [06:48:55]json_value_free [06:48:55]json_value_free done [06:48:55]process_json_proto returns [06:48:55]Send response to host [06:48:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118648,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [06:48:55]free response buf [06:48:55]execute_script done [06:48:55]execute_script returns [06:48:55]free content buf [06:48:55]Sock 7.Close socket [06:48:55]Sock 7.Thread stoped [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:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:49]accept exits with 9 [06:52:49]New connection [06:52:49]New thread 3067383140 created [06:52:49]Thread 3067239780 joined [06:52:49]Waiting for new connection... [06:52:49] Sock 9.Parse request [06:52:49]Sock 9.Check first char [06:52:49]Sock 9.First char is OK [06:52:49]request: POST /json_proto HTTP/1.0 [06:52:49]Method: POST [06:52:49]URL: /json_proto [06:52:49]Method is POST - this is cgi request [06:52:49]url: /json_proto [06:52:49]query_string will be loaded in cgi processing [06:52:49]execute_cgi json_proto POST (null) [06:52:49]execute_cgi path=json_proto method=POST [06:52:49]POST find Content-Length [06:52:49]Host: 172.17.45.7:8080 [06:52:49]Content-Length: 682 [06:52:49]Content-Type: application/json [06:52:49] [06:52:49]POST finish read [06:52:49]Found Content-Length = 682 [06:52:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 19.180, "sum" : 1300.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:49]execute_script... [06:52:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 19.180, "sum" : 1300.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:49]POST & json_proto [06:52:49]process_json_proto [06:52:49]json parsed OK: [06:52:49]protocol is kg_v1.0 [06:52:49]action value=close_receipt [06:52:49]process_action close_receipt [06:52:49]cmd_close_receipt [06:52:49]MH_GetDate [06:52:49]Write to MH i2c: F0 00 00 11 30 30 [06:52:49]Write i2c OK [06:52:49]MH_I2C_Read... [06:52:49]Read from MH i2c: F0 [06:52:49]MH_I2C_Read... [06:52:49]Read from MH i2c: F0 09 00 [06:52:49]MH_I2C_Read... [06:52:49]Read from MH i2c: F0 09 00 11 30 00 46 3C A7 66 90 0F 3E 66 0B [06:52:49]GetLastDocTimeStamp 1722235735 [06:52:49]current date 1722235974 [06:52:49]FM_GetShiftState [06:52:49]SAM_PROTO_GetShiftState [06:52:49]wFMCommunicate request_size=4 [06:52:49]MH_SAM_APDU [06:52:49]CAPDU: 80 13 01 00 [06:52:49]Write to MH i2c: E2 08 00 12 30 80 13 01 00 00 00 00 00 BF [06:52:49]Write i2c OK [06:52:49]MH_I2C_Read... [06:52:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:49]Read from MH i2c: E2 [06:52:49]MH_I2C_Read... [06:52:49]Read from MH i2c: E2 0E 00 [06:52:49]MH_I2C_Read... [06:52:49]Read from MH i2c: E2 0E 00 12 30 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 ED [06:52:49]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:52:49]wFMCommunicate OK [06:52:49]SAM_PROTO_GetShiftState done [06:52:49]FM_GetShiftState done [06:52:49]opened in 1722211641 [06:52:49]opened+sec_in_day 1722298041 [06:52:49]quantity*price = 130040 [06:52:49]sum+1 = 130041 [06:52:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.10 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 25 29.07.2024 06:52 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118649 ФПД: 70111531879080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T065254&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118649&fm=70111531879080&tin=02508201610067®Number=0000000000092660&sum=130000 [06:52:50]StoreToDocumentArchive [06:52:50]shift 434 fd 118649 [06:52:50]save to /storage/0434/doc_00118649 [06:52:50]save last doc name /storage/0434/doc_00118649 to /storage/kkm_last_doc_name [06:52:50]save OK [06:52:50]Clear old archive folders... [06:52:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:52:50]tlvbuf is 01E82A20 [06:52:50]SAM_PROTO_ClearQueue [06:52:50]wFMCommunicate request_size=4 [06:52:50]MH_SAM_APDU [06:52:50]CAPDU: 80 09 00 00 [06:52:50]Write to MH i2c: E2 08 00 1F 30 80 09 00 00 00 00 00 00 C1 [06:52:50]Write i2c OK [06:52:50]MH_I2C_Read... [06:52:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:52:50]Read from MH i2c: E2 [06:52:50]MH_I2C_Read... [06:52:50]Read from MH i2c: E2 03 00 [06:52:50]MH_I2C_Read... [06:52:50]Read from MH i2c: E2 03 00 1F 30 00 90 00 C3 [06:52:50]RAPDU: 90 00 [06:52:50]wFMCommunicate OK [06:52:50]SAM_PROTO_ClearQueue done [06:52:50]KKMCreateOFDPacket [06:52:50]OFDProtocolAddRootSTLVToBuf [06:52:50]FM_MakeSignedData [06:52:50]FM_MakeSignedData [06:52:50]SAM_PROTO_SignData [06:52:50]wFMCommunicate request_size=4 [06:52:50]MH_SAM_APDU [06:52:50]CAPDU: 80 0D 01 02 [06:52:50]Write to MH i2c: E2 08 00 20 30 80 0D 01 02 00 00 00 00 C9 [06:52:50]Write i2c OK [06:52:50]MH_I2C_Read... [06:52:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:52:50]Read from MH i2c: E2 [06:52:50]MH_I2C_Read... [06:52:50]Read from MH i2c: E2 03 00 [06:52:50]MH_I2C_Read... [06:52:50]Read from MH i2c: E2 03 00 20 30 00 90 00 C4 [06:52:50]RAPDU: 90 00 [06:52:50]wFMCommunicate OK [06:52:50]wFMCommunicate request_size=255 [06:52:50]MH_SAM_APDU [06:52:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 46 3C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 79 CF 01 00 35 04 06 00 3F [06:52:50]Write to MH i2c: E2 02 01 21 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 46 3C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 79 CF 01 00 35 04 06 00 3F 00 00 BD [06:52:50]Write i2c OK [06:52:50]MH_I2C_Read... [06:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:51]Read from MH i2c: E2 [06:52:51]MH_I2C_Read... [06:52:51]Read from MH i2c: E2 03 00 [06:52:51]MH_I2C_Read... [06:52:51]Read from MH i2c: E2 03 00 21 30 00 90 00 C5 [06:52:51]RAPDU: 90 00 [06:52:51]wFMCommunicate OK [06:52:51]wFMCommunicate request_size=10 [06:52:51]MH_SAM_APDU [06:52:51]CAPDU: 80 0D 02 02 05 C4 1C F3 CA A8 [06:52:51]Write to MH i2c: E2 0D 00 22 30 80 0D 02 02 05 00 C4 1C F3 CA A8 00 00 1B [06:52:51]Write i2c OK [06:52:51]MH_I2C_Read... [06:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:51]Read from MH i2c: E2 [06:52:51]MH_I2C_Read... [06:52:51]Read from MH i2c: E2 03 00 [06:52:51]MH_I2C_Read... [06:52:51]Read from MH i2c: E2 03 00 22 30 00 90 00 C6 [06:52:51]RAPDU: 90 00 [06:52:51]wFMCommunicate OK [06:52:51]wFMCommunicate request_size=4 [06:52:51]MH_SAM_APDU [06:52:51]CAPDU: 80 0D 03 02 [06:52:51]Write to MH i2c: E2 08 00 23 30 80 0D 03 02 00 00 00 00 CE [06:52:51]Write i2c OK [06:52:51]MH_I2C_Read... [06:52:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:52:51]Read from MH i2c: E2 [06:52:51]MH_I2C_Read... [06:52:51]Read from MH i2c: E2 0B 00 [06:52:51]MH_I2C_Read... [06:52:51]Read from MH i2c: E2 0B 00 23 30 00 BA 1B 64 3C 80 AB DE 53 90 00 A0 [06:52:51]RAPDU: BA 1B 64 3C 80 AB DE 53 90 00 [06:52:51]wFMCommunicate OK [06:52:51]SAM_PROTO_SignData done [06:52:51]FM_MakeSignedData done [06:52:51]CreateOFDProtocolMessage [06:52:51]wFMCommunicate request_size=4 [06:52:51]MH_SAM_APDU [06:52:51]CAPDU: 80 11 00 00 [06:52:51]Write to MH i2c: E2 08 00 24 30 80 11 00 00 00 00 00 00 CE [06:52:51]Write i2c OK [06:52:51]MH_I2C_Read... [06:52:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:51]Read from MH i2c: E2 [06:52:51]MH_I2C_Read... [06:52:51]Read from MH i2c: E2 17 00 [06:52:51]MH_I2C_Read... [06:52:51]Read from MH i2c: E2 17 00 24 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 29 [06:52:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:52:51]wFMCommunicate OK [06:52:51]CreateOFDProtocolMessage done [06:52:51]OFDSenderStorePacket 118649 [06:52:51]StoreOFDPacket docnum=118649 [06:52:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4E F2 07 01 0F 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 46 3C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 79 CF 01 00 35 04 06 00 3F C4 1C F3 CA A8 BA 1B 64 3C 80 AB DE 53 [06:52:51]CheckFolder [06:52:51]dirname=/storage/ofd_packets [06:52:51]CheckFolder done [06:52:51]ProducePacketName [06:52:51]name=ofd_packets/00118649 [06:52:51]NVStorageSaveData ofd_packets/00118649 [06:52:51]File name is /storage/ofd_packets/00118649 [06:52:51]Write 301 bytes [06:52:51]NVStorageSaveData done [06:52:51]OFDSenderStorePacket done [06:52:51]KKMCreateOFDPacket done [06:52:51]NVStorageSaveData kkm_last_timestamp [06:52:51]File name is /storage/kkm_last_timestamp [06:52:51]Write 4 bytes [06:52:51]NVStorageSaveData done [06:52:51]ExternCall_PrintAddStr [06:52:51]wPrintStart [06:52:51]Write to MH i2c: 01 00 00 25 30 55 [06:52:51]Write i2c OK [06:52:51]MH_I2C_Read... [06:52:51]Read from MH i2c: 01 [06:52:51]MH_I2C_Read... [06:52:51]Read from MH i2c: 01 07 00 [06:52:51]MH_I2C_Read... [06:52:51]Read from MH i2c: 01 07 00 25 30 00 00 00 00 00 FF 0F 6A [06:52:51]RasterBufferAndPrint [06:52:51]line Счет N : (1)949533 [06:52:51]line ИНН: 02508201610067 [06:52:51]line Контрольно-Кассовый Чек [06:52:51]line ПРОДАЖА [06:52:51]line ТРК (МРК, ГНК) : 51 [06:52:51]line Товар: 2710124130 [06:52:51]line Аи-92-К-4 [06:52:51]line 19.180 * 67.80 [06:52:51]line = 1300.40 [06:52:51]line НДС 12% НСП 1% [06:52:51]line > о реализуемом товаре [06:52:51]line ОКРУГЛЕНИЕ: -0.40 [06:52:51]line ИТОГО: 1300.00 [06:52:51]line Внесено: 1300.00 [06:52:51]line СДАЧА: 0.00 [06:52:51]line НСП 1% : 11.51 [06:52:51]line НДС 12% : 138.10 [06:52:51]line Наличными: 1300.00 [06:52:51]line Безнал.: 0.00 [06:52:51]line Место: АЗС № 134 "Партнер Нефть" [06:52:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:52:51]line СНО: Общий режим [06:52:51]line Чек 25 29.07.2024 06:52 [06:52:51]line Смена: 434 ФФД: 1.0 [06:52:51]line ЗНМ: 0300000044 [06:52:51]line РНМ: 0000000000092660 [06:52:51]line Версия ККМ: 001 [06:52:51]line ФМ: 0000000000874939 [06:52:51]line ФД: 118649 [06:52:51]line ФПД: 70111531879080 [06:52:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T065254&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118649&fm=70111531879080&tin=02508201610067®Number=0000000000092660&sum=130000 [06:52:51]OFD Sender: Processing packet 118649 [packets to send 86, broken 85] [06:52:51]ProducePacketName [06:52:51]name=ofd_packets/00118649 [06:52:51]OFD Sender: To server: pG, [06:52:51]CommunicateWithHost lk.salyk.kg:30040 [06:52:51]ConnectInit lk.salyk.kg [06:52:51]written 0, free lines is 4095 [06:52:51]Connected sock=10 [06:52:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4E F2 07 01 0F 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 46 3C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 79 CF 01 00 35 04 06 00 3F C4 1C F3 CA A8 BA 1B 64 3C 80 AB DE 53 [06:52:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 14 3E 47 00 7B 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 34 39 33 39 10 04 04 00 79 CF 01 00 F4 03 04 00 D4 E9 A6 66 B6 04 01 00 00 81 D6 85 32 89 08 DA 21 [06:52:52]CommunicateWithHost err = 0 [06:52:52]CheckOFDResponse [06:52:52]1017 (14) - 77093643461234 [06:52:52]1041 (16) - 0000000000874939 [06:52:52]1040 (4) - 118649 [06:52:52]1012 (4) - 29.07.2024 01:01 [06:52:52]1206 (1) - 0 [06:52:52]OFD Sender: Remove packet 118649 [06:52:52]ProducePacketName [06:52:52]name=ofd_packets/00118649 [06:52:52]NVStorageDeleteData [06:52:52]Write to MH i2c: 01 00 00 4F 30 7F [06:52:52]Write i2c OK [06:52:52]MH_I2C_Read... [06:52:52]Read from MH i2c: 01 [06:52:52]MH_I2C_Read... [06:52:52]Read from MH i2c: 01 07 00 [06:52:52]MH_I2C_Read... [06:52:52]Read from MH i2c: 01 07 00 4F 30 00 00 00 00 00 DD 0C 6F [06:52:52]RasterBufferAndPrint [06:52:52]line [06:52:52]line [06:52:52]line [06:52:52]line [06:52:52]line [06:52:52]written 0, free lines is 3297 [06:52:52]MH_Cut [06:52:52]Write to MH i2c: D1 01 00 56 30 01 58 [06:52:52]Write i2c OK [06:52:52]MH_I2C_Read... [06:52:52]Read from MH i2c: D1 [06:52:52]MH_I2C_Read... [06:52:52]Read from MH i2c: D1 01 00 [06:52:52]MH_I2C_Read... [06:52:52]Read from MH i2c: D1 01 00 56 30 00 57 [06:52:52]Write to MH i2c: 01 00 00 57 30 87 [06:52:52]Write i2c OK [06:52:52]MH_I2C_Read... [06:52:52]OFD Sender: No OFD packet to send [06:52:52]*** Cut start [06:52:52]*** Partial cut [06:52:52]*** CUTSNS_PIN = 1 [06:52:52]*** CUTSNS_PIN = 0 [06:52:53]*** Brake cut motor [06:52:53]Read from MH i2c: 01 [06:52:53]MH_I2C_Read... [06:52:53]*** Stop cut motor [06:52:53]*** Cut end [06:52:53]Read from MH i2c: 01 07 00 [06:52:53]MH_I2C_Read... [06:52:53]Read from MH i2c: 01 07 00 57 30 00 00 00 00 00 FF 0F 9C [06:52:53]process_action close_receipt done [06:52:53]requested_data is exist [06:52:53]produce_requested_data [06:52:53]requested_item fm.sn is exist - process it [06:52:53]wFMCommunicate request_size=4 [06:52:53]MH_SAM_APDU [06:52:53]CAPDU: 80 11 00 00 [06:52:53]Write to MH i2c: E2 08 00 58 30 80 11 00 00 00 00 00 00 02 [06:52:53]Write i2c OK [06:52:53]MH_I2C_Read... [06:52:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:53]Read from MH i2c: E2 [06:52:53]MH_I2C_Read... [06:52:53]Read from MH i2c: E2 17 00 [06:52:53]MH_I2C_Read... [06:52:53]Read from MH i2c: E2 17 00 58 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5D [06:52:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:52:53]wFMCommunicate OK [06:52:53]requested_item fd.num is exist - process it [06:52:53]SAM_PROTO_GetFieldsCounters [06:52:53]wFMCommunicate request_size=4 [06:52:53]MH_SAM_APDU [06:52:53]CAPDU: 80 13 00 00 [06:52:53]Write to MH i2c: E2 08 00 59 30 80 13 00 00 00 00 00 00 05 [06:52:53]Write i2c OK [06:52:53]MH_I2C_Read... [06:52:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:52:53]Read from MH i2c: E2 [06:52:53]MH_I2C_Read... [06:52:53]Read from MH i2c: E2 62 00 [06:52:53]MH_I2C_Read... [06:52:53]Read from MH i2c: E2 62 00 59 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 79 CF 01 00 0E 04 04 00 B2 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 73 [06:52: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 79 CF 01 00 0E 04 04 00 B2 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 [06:52:53]wFMCommunicate OK [06:52:53]SAM_PROTO_GetFieldsCounters done [06:52:53]requested_item shift.num is exist - process it [06:52:53]requested_item shift.opened is exist - process it [06:52:53]req_shift_opened [06:52:53]FM_GetShiftState [06:52:53]SAM_PROTO_GetShiftState [06:52:53]wFMCommunicate request_size=4 [06:52:53]MH_SAM_APDU [06:52:53]CAPDU: 80 13 01 00 [06:52:53]Write to MH i2c: E2 08 00 5A 30 80 13 01 00 00 00 00 00 07 [06:52:53]Write i2c OK [06:52:53]MH_I2C_Read... [06:52:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:53]Read from MH i2c: E2 [06:52:53]MH_I2C_Read... [06:52:53]Read from MH i2c: E2 0E 00 [06:52:53]MH_I2C_Read... [06:52:53]Read from MH i2c: E2 0E 00 5A 30 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 35 [06:52:53]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:52:53]wFMCommunicate OK [06:52:53]SAM_PROTO_GetShiftState done [06:52:53]FM_GetShiftState done [06:52:53]req_shift_opened done [06:52:53]requested_item shift.open_date is exist - process it [06:52:53]req_shift_open_date [06:52:53]req_shift_open_date done [06:52:53]produce_requested_data done [06:52:53]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118649,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [06:52:53]process_action_free close_receipt [06:52:53]json_value_free [06:52:53]json_value_free done [06:52:53]process_json_proto returns [06:52:53]Send response to host [06:52:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118649,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [06:52:53]free response buf [06:52:53]execute_script done [06:52:53]execute_script returns [06:52:53]free content buf [06:52:53]Sock 9.Close socket [06:52:53]Sock 9.Thread stoped [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:51]accept exits with 7 [06:55:51]New connection [06:55:51]New thread 3067239780 created [06:55:51]Thread 3067383140 joined [06:55:51]Waiting for new connection... [06:55:51] Sock 7.Parse request [06:55:51]Sock 7.Check first char [06:55:51]Sock 7.First char is OK [06:55:51]request: POST /json_proto HTTP/1.0 [06:55:51]Method: POST [06:55:51]URL: /json_proto [06:55:51]Method is POST - this is cgi request [06:55:51]url: /json_proto [06:55:51]query_string will be loaded in cgi processing [06:55:51]execute_cgi json_proto POST (null) [06:55:51]execute_cgi path=json_proto method=POST [06:55:51]POST find Content-Length [06:55:51]Host: 172.17.45.7:8080 [06:55:51]Content-Length: 677 [06:55:51]Content-Type: application/json [06:55:51] [06:55:51]POST finish read [06:55:51]Found Content-Length = 677 [06:55:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:55:51]execute_script... [06:55: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)949534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:55:51]POST & json_proto [06:55:51]process_json_proto [06:55:51]json parsed OK: [06:55:51]protocol is kg_v1.0 [06:55:51]action value=close_receipt [06:55:51]process_action close_receipt [06:55:51]cmd_close_receipt [06:55:51]MH_GetDate [06:55:51]Write to MH i2c: F0 00 00 5B 30 7A [06:55:51]Write i2c OK [06:55:51]MH_I2C_Read... [06:55:51]Read from MH i2c: F0 [06:55:51]MH_I2C_Read... [06:55:51]Read from MH i2c: F0 09 00 [06:55:51]MH_I2C_Read... [06:55:51]Read from MH i2c: F0 09 00 5B 30 00 FB 3C A7 66 90 0F 3E 66 0A [06:55:51]GetLastDocTimeStamp 1722235974 [06:55:51]current date 1722236155 [06:55:51]FM_GetShiftState [06:55:51]SAM_PROTO_GetShiftState [06:55:51]wFMCommunicate request_size=4 [06:55:51]MH_SAM_APDU [06:55:51]CAPDU: 80 13 01 00 [06:55:51]Write to MH i2c: E2 08 00 5C 30 80 13 01 00 00 00 00 00 09 [06:55:51]Write i2c OK [06:55:51]MH_I2C_Read... [06:55:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:55:51]Read from MH i2c: E2 [06:55:51]MH_I2C_Read... [06:55:51]Read from MH i2c: E2 0E 00 [06:55:51]MH_I2C_Read... [06:55:51]Read from MH i2c: E2 0E 00 5C 30 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 37 [06:55:51]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:55:51]wFMCommunicate OK [06:55:51]SAM_PROTO_GetShiftState done [06:55:51]FM_GetShiftState done [06:55:51]opened in 1722211641 [06:55:51]opened+sec_in_day 1722298041 [06:55:51]quantity*price = 50036 [06:55:51]sum+1 = 50037 [06:55:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 26 29.07.2024 06:55 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118650 ФПД: 172493238830996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T065555&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118650&fm=172493238830996&tin=02508201610067®Number=0000000000092660&sum=50000 [06:55:52]StoreToDocumentArchive [06:55:52]shift 434 fd 118650 [06:55:52]save to /storage/0434/doc_00118650 [06:55:52]save last doc name /storage/0434/doc_00118650 to /storage/kkm_last_doc_name [06:55:52]save OK [06:55:52]Clear old archive folders... [06:55:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:55:52]tlvbuf is 01E4D0D0 [06:55:52]SAM_PROTO_ClearQueue [06:55:52]wFMCommunicate request_size=4 [06:55:52]MH_SAM_APDU [06:55:52]CAPDU: 80 09 00 00 [06:55:52]Write to MH i2c: E2 08 00 69 30 80 09 00 00 00 00 00 00 0B [06:55:52]Write i2c OK [06:55:52]MH_I2C_Read... [06:55:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:55:52]Read from MH i2c: E2 [06:55:52]MH_I2C_Read... [06:55:52]Read from MH i2c: E2 03 00 [06:55:52]MH_I2C_Read... [06:55:52]Read from MH i2c: E2 03 00 69 30 00 90 00 0D [06:55:52]RAPDU: 90 00 [06:55:52]wFMCommunicate OK [06:55:52]SAM_PROTO_ClearQueue done [06:55:52]KKMCreateOFDPacket [06:55:52]OFDProtocolAddRootSTLVToBuf [06:55:52]FM_MakeSignedData [06:55:52]FM_MakeSignedData [06:55:52]SAM_PROTO_SignData [06:55:52]wFMCommunicate request_size=4 [06:55:52]MH_SAM_APDU [06:55:52]CAPDU: 80 0D 01 02 [06:55:52]Write to MH i2c: E2 08 00 6A 30 80 0D 01 02 00 00 00 00 13 [06:55:52]Write i2c OK [06:55:52]MH_I2C_Read... [06:55:52]OFD Sender: No OFD packet to send [06:55:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:55:52]Read from MH i2c: E2 [06:55:52]MH_I2C_Read... [06:55:52]Read from MH i2c: E2 03 00 [06:55:52]MH_I2C_Read... [06:55:52]Read from MH i2c: E2 03 00 6A 30 00 90 00 0E [06:55:52]RAPDU: 90 00 [06:55:52]wFMCommunicate OK [06:55:52]wFMCommunicate request_size=255 [06:55:52]MH_SAM_APDU [06:55: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 FB 3C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A CF 01 00 35 04 06 00 9C [06:55:52]Write to MH i2c: E2 02 01 6B 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 FB 3C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A CF 01 00 35 04 06 00 9C 00 00 8E [06:55:52]Write i2c OK [06:55:52]MH_I2C_Read... [06:55:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:55:53]Read from MH i2c: E2 [06:55:53]MH_I2C_Read... [06:55:53]Read from MH i2c: E2 03 00 [06:55:53]MH_I2C_Read... [06:55:53]Read from MH i2c: E2 03 00 6B 30 00 90 00 0F [06:55:53]RAPDU: 90 00 [06:55:53]wFMCommunicate OK [06:55:53]wFMCommunicate request_size=10 [06:55:53]MH_SAM_APDU [06:55:53]CAPDU: 80 0D 02 02 05 E1 B6 3A 07 94 [06:55:53]Write to MH i2c: E2 0D 00 6C 30 80 0D 02 02 05 00 E1 B6 3A 07 94 00 00 8C [06:55:53]Write i2c OK [06:55:53]MH_I2C_Read... [06:55:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:55:53]Read from MH i2c: E2 [06:55:53]MH_I2C_Read... [06:55:53]Read from MH i2c: E2 03 00 [06:55:53]MH_I2C_Read... [06:55:53]Read from MH i2c: E2 03 00 6C 30 00 90 00 10 [06:55:53]RAPDU: 90 00 [06:55:53]wFMCommunicate OK [06:55:53]wFMCommunicate request_size=4 [06:55:53]MH_SAM_APDU [06:55:53]CAPDU: 80 0D 03 02 [06:55:53]Write to MH i2c: E2 08 00 6D 30 80 0D 03 02 00 00 00 00 18 [06:55:53]Write i2c OK [06:55:53]MH_I2C_Read... [06:55:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:55:53]Read from MH i2c: E2 [06:55:53]MH_I2C_Read... [06:55:53]Read from MH i2c: E2 0B 00 [06:55:53]MH_I2C_Read... [06:55:53]Read from MH i2c: E2 0B 00 6D 30 00 D5 E4 19 8C 3C 8B 12 56 90 00 A6 [06:55:53]RAPDU: D5 E4 19 8C 3C 8B 12 56 90 00 [06:55:53]wFMCommunicate OK [06:55:53]SAM_PROTO_SignData done [06:55:53]FM_MakeSignedData done [06:55:53]CreateOFDProtocolMessage [06:55:53]wFMCommunicate request_size=4 [06:55:53]MH_SAM_APDU [06:55:53]CAPDU: 80 11 00 00 [06:55:53]Write to MH i2c: E2 08 00 6E 30 80 11 00 00 00 00 00 00 18 [06:55:53]Write i2c OK [06:55:53]MH_I2C_Read... [06:55:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:55:53]Read from MH i2c: E2 [06:55:53]MH_I2C_Read... [06:55:53]Read from MH i2c: E2 17 00 [06:55:53]MH_I2C_Read... [06:55:53]Read from MH i2c: E2 17 00 6E 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 73 [06:55:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:55:53]wFMCommunicate OK [06:55:53]CreateOFDProtocolMessage done [06:55:53]OFDSenderStorePacket 118650 [06:55:53]StoreOFDPacket docnum=118650 [06:55:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 12 1C 07 01 CD 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 FB 3C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A CF 01 00 35 04 06 00 9C E1 B6 3A 07 94 D5 E4 19 8C 3C 8B 12 56 [06:55:53]CheckFolder [06:55:53]dirname=/storage/ofd_packets [06:55:53]CheckFolder done [06:55:53]ProducePacketName [06:55:53]name=ofd_packets/00118650 [06:55:53]NVStorageSaveData ofd_packets/00118650 [06:55:53]File name is /storage/ofd_packets/00118650 [06:55:53]Write 301 bytes [06:55:53]NVStorageSaveData done [06:55:53]OFDSenderStorePacket done [06:55:53]KKMCreateOFDPacket done [06:55:53]NVStorageSaveData kkm_last_timestamp [06:55:53]File name is /storage/kkm_last_timestamp [06:55:53]Write 4 bytes [06:55:53]NVStorageSaveData done [06:55:53]ExternCall_PrintAddStr [06:55:53]wPrintStart [06:55:53]Write to MH i2c: 01 00 00 6F 30 9F [06:55:53]Write i2c OK [06:55:53]MH_I2C_Read... [06:55:53]Read from MH i2c: 01 [06:55:53]MH_I2C_Read... [06:55:53]Read from MH i2c: 01 07 00 [06:55:53]MH_I2C_Read... [06:55:53]Read from MH i2c: 01 07 00 6F 30 00 00 00 00 00 FF 0F B4 [06:55:53]RasterBufferAndPrint [06:55:53]line Счет N : (1)949534 [06:55:53]line ИНН: 02508201610067 [06:55:53]line Контрольно-Кассовый Чек [06:55:53]line ПРОДАЖА [06:55:53]line ТРК (МРК, ГНК) : 51 [06:55:53]line Товар: 2710124130 [06:55:53]line Аи-92-К-4 [06:55:53]line 7.380 * 67.80 [06:55:53]line = 500.36 [06:55:53]line НДС 12% НСП 1% [06:55:53]line > о реализуемом товаре [06:55:53]line ОКРУГЛЕНИЕ: -0.36 [06:55:53]line ИТОГО: 500.00 [06:55:53]line Внесено: 500.00 [06:55:53]line СДАЧА: 0.00 [06:55:53]line НСП 1% : 4.43 [06:55:53]line НДС 12% : 53.14 [06:55:53]line Наличными: 500.00 [06:55:53]line Безнал.: 0.00 [06:55:53]line Место: АЗС № 134 "Партнер Нефть" [06:55:53]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:55:53]line СНО: Общий режим [06:55:53]line Чек 26 29.07.2024 06:55 [06:55:53]line Смена: 434 ФФД: 1.0 [06:55:53]line ЗНМ: 0300000044 [06:55:53]line РНМ: 0000000000092660 [06:55:53]line Версия ККМ: 001 [06:55:53]line ФМ: 0000000000874939 [06:55:53]line ФД: 118650 [06:55:53]line ФПД: 172493238830996 [06:55:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T065555&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118650&fm=172493238830996&tin=02508201610067®Number=0000000000092660&sum=50000 [06:55:53]OFD Sender: Processing packet 118650 [packets to send 86, broken 85] [06:55:53]ProducePacketName [06:55:53]name=ofd_packets/00118650 [06:55:53]OFD Sender: To server: pG, [06:55:53]CommunicateWithHost lk.salyk.kg:30040 [06:55:53]ConnectInit lk.salyk.kg [06:55:53]written 0, free lines is 4095 [06:55:53]Connected sock=10 [06:55:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 12 1C 07 01 CD 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 FB 3C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A CF 01 00 35 04 06 00 9C E1 B6 3A 07 94 D5 E4 19 8C 3C 8B 12 56 [06:55:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2C 84 47 00 84 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A CF 01 00 F4 03 04 00 8A EA A6 66 B6 04 01 00 00 55 A7 56 82 09 91 73 EE [06:55:53]CommunicateWithHost err = 0 [06:55:53]CheckOFDResponse [06:55:53]1017 (14) - 77093643461234 [06:55:53]1041 (16) - 0000000000874939 [06:55:53]1040 (4) - 118650 [06:55:53]1012 (4) - 29.07.2024 01:04 [06:55:53]1206 (1) - 0 [06:55:53]OFD Sender: Remove packet 118650 [06:55:53]ProducePacketName [06:55:53]name=ofd_packets/00118650 [06:55:53]NVStorageDeleteData [06:55:53]Write to MH i2c: 01 00 00 99 30 C9 [06:55:53]Write i2c OK [06:55:53]MH_I2C_Read... [06:55:53]Read from MH i2c: 01 [06:55:53]MH_I2C_Read... [06:55:53]Read from MH i2c: 01 07 00 [06:55:53]MH_I2C_Read... [06:55:53]Read from MH i2c: 01 07 00 99 30 00 00 00 00 00 D2 0C AE [06:55:53]RasterBufferAndPrint [06:55:53]line [06:55:53]line [06:55:53]line [06:55:53]line [06:55:53]line [06:55:53]written 0, free lines is 3288 [06:55:53]MH_Cut [06:55:53]Write to MH i2c: D1 01 00 A0 30 01 A2 [06:55:53]Write i2c OK [06:55:53]MH_I2C_Read... [06:55:53]Read from MH i2c: D1 [06:55:53]MH_I2C_Read... [06:55:53]Read from MH i2c: D1 01 00 [06:55:53]MH_I2C_Read... [06:55:53]Read from MH i2c: D1 01 00 A0 30 00 A1 [06:55:53]Write to MH i2c: 01 00 00 A1 30 D1 [06:55:53]Write i2c OK [06:55:53]MH_I2C_Read... [06:55:54]OFD Sender: No OFD packet to send [06:55:54]*** Cut start [06:55:54]*** Partial cut [06:55:54]*** CUTSNS_PIN = 1 [06:55:54]*** CUTSNS_PIN = 0 [06:55:55]*** Brake cut motor [06:55:55]Read from MH i2c: 01 [06:55:55]MH_I2C_Read... [06:55:55]*** Stop cut motor [06:55:55]*** Cut end [06:55:55]Read from MH i2c: 01 07 00 [06:55:55]MH_I2C_Read... [06:55:55]Read from MH i2c: 01 07 00 A1 30 00 00 00 00 00 FF 0F E6 [06:55:55]process_action close_receipt done [06:55:55]requested_data is exist [06:55:55]produce_requested_data [06:55:55]requested_item fm.sn is exist - process it [06:55:55]wFMCommunicate request_size=4 [06:55:55]MH_SAM_APDU [06:55:55]CAPDU: 80 11 00 00 [06:55:55]Write to MH i2c: E2 08 00 A2 30 80 11 00 00 00 00 00 00 4C [06:55:55]Write i2c OK [06:55:55]MH_I2C_Read... [06:55:55]Read from MH i2c: E2 [06:55:55]MH_I2C_Read... [06:55:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:55:55]Read from MH i2c: E2 17 00 [06:55:55]MH_I2C_Read... [06:55:55]Read from MH i2c: E2 17 00 A2 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A7 [06:55:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:55:55]wFMCommunicate OK [06:55:55]requested_item fd.num is exist - process it [06:55:55]SAM_PROTO_GetFieldsCounters [06:55:55]wFMCommunicate request_size=4 [06:55:55]MH_SAM_APDU [06:55:55]CAPDU: 80 13 00 00 [06:55:55]Write to MH i2c: E2 08 00 A3 30 80 13 00 00 00 00 00 00 4F [06:55:55]Write i2c OK [06:55:55]MH_I2C_Read... [06:55:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:55:55]Read from MH i2c: E2 [06:55:55]MH_I2C_Read... [06:55:55]Read from MH i2c: E2 62 00 [06:55:55]MH_I2C_Read... [06:55:55]Read from MH i2c: E2 62 00 A3 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7A CF 01 00 0E 04 04 00 B2 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 C1 [06:55: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7A CF 01 00 0E 04 04 00 B2 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 [06:55:55]wFMCommunicate OK [06:55:55]SAM_PROTO_GetFieldsCounters done [06:55:55]requested_item shift.num is exist - process it [06:55:55]requested_item shift.opened is exist - process it [06:55:55]req_shift_opened [06:55:55]FM_GetShiftState [06:55:55]SAM_PROTO_GetShiftState [06:55:55]wFMCommunicate request_size=4 [06:55:55]MH_SAM_APDU [06:55:55]CAPDU: 80 13 01 00 [06:55:55]Write to MH i2c: E2 08 00 A4 30 80 13 01 00 00 00 00 00 51 [06:55:55]Write i2c OK [06:55:55]MH_I2C_Read... [06:55:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:55:55]Read from MH i2c: E2 [06:55:55]MH_I2C_Read... [06:55:55]Read from MH i2c: E2 0E 00 [06:55:55]MH_I2C_Read... [06:55:55]Read from MH i2c: E2 0E 00 A4 30 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 7F [06:55:55]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:55:55]wFMCommunicate OK [06:55:55]SAM_PROTO_GetShiftState done [06:55:55]FM_GetShiftState done [06:55:55]req_shift_opened done [06:55:55]requested_item shift.open_date is exist - process it [06:55:55]req_shift_open_date [06:55:55]req_shift_open_date done [06:55:55]produce_requested_data done [06:55:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118650,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [06:55:55]process_action_free close_receipt [06:55:55]json_value_free [06:55:55]json_value_free done [06:55:55]process_json_proto returns [06:55:55]Send response to host [06:55:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118650,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [06:55:55]free response buf [06:55:55]execute_script done [06:55:55]execute_script returns [06:55:55]free content buf [06:55:55]Sock 7.Close socket [06:55:55]Sock 7.Thread stoped [06:55:55]accept exits with 9 [06:55:55]New connection [06:55:55]New thread 3067383140 created [06:55:55]Thread 3067239780 joined [06:55:55]Waiting for new connection... [06:55:55] Sock 9.Parse request [06:55:55]Sock 9.Check first char [06:55:55]Sock 9.First char is OK [06:55:55]request: POST /json_proto HTTP/1.0 [06:55:55]Method: POST [06:55:55]URL: /json_proto [06:55:55]Method is POST - this is cgi request [06:55:55]url: /json_proto [06:55:55]query_string will be loaded in cgi processing [06:55:55]execute_cgi json_proto POST (null) [06:55:55]execute_cgi path=json_proto method=POST [06:55:55]POST find Content-Length [06:55:55]Host: 172.17.45.7:8080 [06:55:55]Content-Length: 677 [06:55:55]Content-Type: application/json [06:55:55] [06:55:55]POST finish read [06:55:55]Found Content-Length = 677 [06:55:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:55:55]execute_script... [06:55:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:55:55]POST & json_proto [06:55:55]process_json_proto [06:55:55]json parsed OK: [06:55:55]protocol is kg_v1.0 [06:55:55]action value=close_receipt [06:55:55]process_action close_receipt [06:55:55]cmd_close_receipt [06:55:55]MH_GetDate [06:55:55]Write to MH i2c: F0 00 00 A5 30 C4 [06:55:55]Write i2c OK [06:55:55]MH_I2C_Read... [06:55:55]Read from MH i2c: F0 [06:55:55]MH_I2C_Read... [06:55:55]Read from MH i2c: F0 09 00 [06:55:55]MH_I2C_Read... [06:55:55]Read from MH i2c: F0 09 00 A5 30 00 00 3D A7 66 90 0F 3E 66 5A [06:55:55]GetLastDocTimeStamp 1722236155 [06:55:55]current date 1722236160 [06:55:55]FM_GetShiftState [06:55:55]SAM_PROTO_GetShiftState [06:55:55]wFMCommunicate request_size=4 [06:55:55]MH_SAM_APDU [06:55:55]CAPDU: 80 13 01 00 [06:55:55]Write to MH i2c: E2 08 00 A6 30 80 13 01 00 00 00 00 00 53 [06:55:55]Write i2c OK [06:55:55]MH_I2C_Read... [06:55:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:55:55]Read from MH i2c: E2 [06:55:55]MH_I2C_Read... [06:55:55]Read from MH i2c: E2 0E 00 [06:55:55]MH_I2C_Read... [06:55:55]Read from MH i2c: E2 0E 00 A6 30 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 81 [06:55:55]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:55:55]wFMCommunicate OK [06:55:55]SAM_PROTO_GetShiftState done [06:55:55]FM_GetShiftState done [06:55:55]opened in 1722211641 [06:55:55]opened+sec_in_day 1722298041 [06:55:55]quantity*price = 50036 [06:55:55]sum+1 = 50037 [06:55:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 27 29.07.2024 06:56 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118651 ФПД: 3127126022213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T065600&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118651&fm=3127126022213&tin=02508201610067®Number=0000000000092660&sum=50000 [06:55:57]StoreToDocumentArchive [06:55:57]shift 434 fd 118651 [06:55:57]save to /storage/0434/doc_00118651 [06:55:57]save last doc name /storage/0434/doc_00118651 to /storage/kkm_last_doc_name [06:55:57]save OK [06:55:57]Clear old archive folders... [06:55:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:55:57]tlvbuf is 01E54580 [06:55:57]SAM_PROTO_ClearQueue [06:55:57]wFMCommunicate request_size=4 [06:55:57]MH_SAM_APDU [06:55:57]CAPDU: 80 09 00 00 [06:55:57]Write to MH i2c: E2 08 00 B3 30 80 09 00 00 00 00 00 00 55 [06:55:57]Write i2c OK [06:55:57]MH_I2C_Read... [06:55:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:55:57]Read from MH i2c: E2 [06:55:57]MH_I2C_Read... [06:55:57]Read from MH i2c: E2 03 00 [06:55:57]MH_I2C_Read... [06:55:57]Read from MH i2c: E2 03 00 B3 30 00 90 00 57 [06:55:57]RAPDU: 90 00 [06:55:57]wFMCommunicate OK [06:55:57]SAM_PROTO_ClearQueue done [06:55:57]KKMCreateOFDPacket [06:55:57]OFDProtocolAddRootSTLVToBuf [06:55:57]FM_MakeSignedData [06:55:57]FM_MakeSignedData [06:55:57]SAM_PROTO_SignData [06:55:57]wFMCommunicate request_size=4 [06:55:57]MH_SAM_APDU [06:55:57]CAPDU: 80 0D 01 02 [06:55:57]Write to MH i2c: E2 08 00 B4 30 80 0D 01 02 00 00 00 00 5D [06:55:57]Write i2c OK [06:55:57]MH_I2C_Read... [06:55:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:55:57]Read from MH i2c: E2 [06:55:57]MH_I2C_Read... [06:55:57]Read from MH i2c: E2 03 00 [06:55:57]MH_I2C_Read... [06:55:57]Read from MH i2c: E2 03 00 B4 30 00 90 00 58 [06:55:57]RAPDU: 90 00 [06:55:57]wFMCommunicate OK [06:55:57]wFMCommunicate request_size=255 [06:55:57]MH_SAM_APDU [06:55:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 00 3D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7B CF 01 00 35 04 06 00 02 [06:55:57]Write to MH i2c: E2 02 01 B5 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 00 3D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7B CF 01 00 35 04 06 00 02 00 00 46 [06:55:57]Write i2c OK [06:55:57]MH_I2C_Read... [06:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:55:57]Read from MH i2c: E2 [06:55:57]MH_I2C_Read... [06:55:57]Read from MH i2c: E2 03 00 [06:55:57]MH_I2C_Read... [06:55:57]Read from MH i2c: E2 03 00 B5 30 00 90 00 59 [06:55:57]RAPDU: 90 00 [06:55:57]wFMCommunicate OK [06:55:57]wFMCommunicate request_size=10 [06:55:57]MH_SAM_APDU [06:55:57]CAPDU: 80 0D 02 02 05 D8 17 3C 58 45 [06:55:57]Write to MH i2c: E2 0D 00 B6 30 80 0D 02 02 05 00 D8 17 3C 58 45 00 00 32 [06:55:57]Write i2c OK [06:55:57]MH_I2C_Read... [06:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:55:57]Read from MH i2c: E2 [06:55:57]MH_I2C_Read... [06:55:57]Read from MH i2c: E2 03 00 [06:55:57]MH_I2C_Read... [06:55:57]Read from MH i2c: E2 03 00 B6 30 00 90 00 5A [06:55:57]RAPDU: 90 00 [06:55:57]wFMCommunicate OK [06:55:57]wFMCommunicate request_size=4 [06:55:57]MH_SAM_APDU [06:55:57]CAPDU: 80 0D 03 02 [06:55:57]Write to MH i2c: E2 08 00 B7 30 80 0D 03 02 00 00 00 00 62 [06:55:57]Write i2c OK [06:55:57]MH_I2C_Read... [06:55:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:55:57]Read from MH i2c: E2 [06:55:57]MH_I2C_Read... [06:55:57]Read from MH i2c: E2 0B 00 [06:55:57]MH_I2C_Read... [06:55:57]Read from MH i2c: E2 0B 00 B7 30 00 DA 75 DA 29 19 B3 18 85 90 00 1E [06:55:57]RAPDU: DA 75 DA 29 19 B3 18 85 90 00 [06:55:57]wFMCommunicate OK [06:55:57]SAM_PROTO_SignData done [06:55:57]FM_MakeSignedData done [06:55:57]CreateOFDProtocolMessage [06:55:57]wFMCommunicate request_size=4 [06:55:57]MH_SAM_APDU [06:55:57]CAPDU: 80 11 00 00 [06:55:57]Write to MH i2c: E2 08 00 B8 30 80 11 00 00 00 00 00 00 62 [06:55:57]Write i2c OK [06:55:57]MH_I2C_Read... [06:55:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:55:57]Read from MH i2c: E2 [06:55:57]MH_I2C_Read... [06:55:57]Read from MH i2c: E2 17 00 [06:55:57]MH_I2C_Read... [06:55:57]Read from MH i2c: E2 17 00 B8 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BD [06:55:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:55:57]wFMCommunicate OK [06:55:57]CreateOFDProtocolMessage done [06:55:57]OFDSenderStorePacket 118651 [06:55:57]StoreOFDPacket docnum=118651 [06:55:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 07 8E 07 01 6A 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 00 3D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7B CF 01 00 35 04 06 00 02 D8 17 3C 58 45 DA 75 DA 29 19 B3 18 85 [06:55:57]CheckFolder [06:55:57]dirname=/storage/ofd_packets [06:55:58]CheckFolder done [06:55:58]ProducePacketName [06:55:58]name=ofd_packets/00118651 [06:55:58]NVStorageSaveData ofd_packets/00118651 [06:55:58]File name is /storage/ofd_packets/00118651 [06:55:58]Write 301 bytes [06:55:58]NVStorageSaveData done [06:55:58]OFDSenderStorePacket done [06:55:58]KKMCreateOFDPacket done [06:55:58]NVStorageSaveData kkm_last_timestamp [06:55:58]File name is /storage/kkm_last_timestamp [06:55:58]Write 4 bytes [06:55:58]NVStorageSaveData done [06:55:58]ExternCall_PrintAddStr [06:55:58]wPrintStart [06:55:58]Write to MH i2c: 01 00 00 B9 30 E9 [06:55:58]Write i2c OK [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: 01 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: 01 07 00 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: 01 07 00 B9 30 00 00 00 00 00 FF 0F FE [06:55:58]RasterBufferAndPrint [06:55:58]line Счет N : (1)949535 [06:55:58]line ИНН: 02508201610067 [06:55:58]line Контрольно-Кассовый Чек [06:55:58]line ПРОДАЖА [06:55:58]line ТРК (МРК, ГНК) : 41 [06:55:58]line Товар: 2710124130 [06:55:58]line Аи-92-К-4 [06:55:58]line 7.380 * 67.80 [06:55:58]line = 500.36 [06:55:58]line НДС 12% НСП 1% [06:55:58]line > о реализуемом товаре [06:55:58]line ОКРУГЛЕНИЕ: -0.36 [06:55:58]line ИТОГО: 500.00 [06:55:58]line Внесено: 500.00 [06:55:58]line СДАЧА: 0.00 [06:55:58]line НСП 1% : 4.43 [06:55:58]line НДС 12% : 53.14 [06:55:58]line Наличными: 500.00 [06:55:58]line Безнал.: 0.00 [06:55:58]line Место: АЗС № 134 "Партнер Нефть" [06:55:58]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:55:58]line СНО: Общий режим [06:55:58]line Чек 27 29.07.2024 06:56 [06:55:58]line Смена: 434 ФФД: 1.0 [06:55:58]line ЗНМ: 0300000044 [06:55:58]line РНМ: 0000000000092660 [06:55:58]line Версия ККМ: 001 [06:55:58]line ФМ: 0000000000874939 [06:55:58]line ФД: 118651 [06:55:58]line ФПД: 3127126022213 [06:55:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T065600&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118651&fm=3127126022213&tin=02508201610067®Number=0000000000092660&sum=50000 [06:55:58]written 0, free lines is 4095 [06:55:58]OFD Sender: Processing packet 118651 [packets to send 86, broken 85] [06:55:58]ProducePacketName [06:55:58]name=ofd_packets/00118651 [06:55:58]OFD Sender: To server: pG, [06:55:58]CommunicateWithHost lk.salyk.kg:30040 [06:55:58]ConnectInit lk.salyk.kg [06:55:58]Connected sock=10 [06:55:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 07 8E 07 01 6A 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 00 3D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7B CF 01 00 35 04 06 00 02 D8 17 3C 58 45 DA 75 DA 29 19 B3 18 85 [06:55:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8E 3D 47 00 CE 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 34 39 33 39 10 04 04 00 7B CF 01 00 F4 03 04 00 8E EA A6 66 B6 04 01 00 00 46 D5 19 C3 C1 A7 CD 78 [06:55:58]CommunicateWithHost err = 0 [06:55:58]CheckOFDResponse [06:55:58]1017 (14) - 77093643461234 [06:55:58]1041 (16) - 0000000000874939 [06:55:58]1040 (4) - 118651 [06:55:58]1012 (4) - 29.07.2024 01:04 [06:55:58]1206 (1) - 0 [06:55:58]OFD Sender: Remove packet 118651 [06:55:58]ProducePacketName [06:55:58]name=ofd_packets/00118651 [06:55:58]NVStorageDeleteData [06:55:58]Write to MH i2c: 01 00 00 E3 30 13 [06:55:58]Write i2c OK [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: 01 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: 01 07 00 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: 01 07 00 E3 30 00 00 00 00 00 D2 0C F8 [06:55:58]RasterBufferAndPrint [06:55:58]line [06:55:58]line [06:55:58]line [06:55:58]line [06:55:58]line [06:55:58]written 0, free lines is 3298 [06:55:58]MH_Cut [06:55:58]Write to MH i2c: D1 01 00 EA 30 01 EC [06:55:58]Write i2c OK [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: D1 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: D1 01 00 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: D1 01 00 EA 30 00 EB [06:55:58]Write to MH i2c: 01 00 00 EB 30 1B [06:55:58]Write i2c OK [06:55:58]MH_I2C_Read... [06:55:58]OFD Sender: No OFD packet to send [06:55:59]*** Cut start [06:55:59]*** Partial cut [06:55:59]*** CUTSNS_PIN = 1 [06:55:59]*** CUTSNS_PIN = 0 [06:55:59]*** Brake cut motor [06:55:59]Read from MH i2c: 01 [06:55:59]MH_I2C_Read... [06:55:59]*** Stop cut motor [06:55:59]*** Cut end [06:55:59]Read from MH i2c: 01 07 00 [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: 01 07 00 EB 30 00 00 00 00 00 FF 0F 30 [06:55:59]process_action close_receipt done [06:55:59]requested_data is exist [06:55:59]produce_requested_data [06:55:59]requested_item fm.sn is exist - process it [06:55:59]wFMCommunicate request_size=4 [06:55:59]MH_SAM_APDU [06:55:59]CAPDU: 80 11 00 00 [06:55:59]Write to MH i2c: E2 08 00 EC 30 80 11 00 00 00 00 00 00 96 [06:55:59]Write i2c OK [06:55:59]MH_I2C_Read... [06:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:55:59]Read from MH i2c: E2 [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: E2 17 00 [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: E2 17 00 EC 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F1 [06:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:55:59]wFMCommunicate OK [06:55:59]requested_item fd.num is exist - process it [06:55:59]SAM_PROTO_GetFieldsCounters [06:55:59]wFMCommunicate request_size=4 [06:55:59]MH_SAM_APDU [06:55:59]CAPDU: 80 13 00 00 [06:55:59]Write to MH i2c: E2 08 00 ED 30 80 13 00 00 00 00 00 00 99 [06:55:59]Write i2c OK [06:55:59]MH_I2C_Read... [06:56:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:56:00]Read from MH i2c: E2 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: E2 62 00 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: E2 62 00 ED 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7B CF 01 00 0E 04 04 00 B2 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 0F [06:56: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7B CF 01 00 0E 04 04 00 B2 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 [06:56:00]wFMCommunicate OK [06:56:00]SAM_PROTO_GetFieldsCounters done [06:56:00]requested_item shift.num is exist - process it [06:56:00]requested_item shift.opened is exist - process it [06:56:00]req_shift_opened [06:56:00]FM_GetShiftState [06:56:00]SAM_PROTO_GetShiftState [06:56:00]wFMCommunicate request_size=4 [06:56:00]MH_SAM_APDU [06:56:00]CAPDU: 80 13 01 00 [06:56:00]Write to MH i2c: E2 08 00 EE 30 80 13 01 00 00 00 00 00 9B [06:56:00]Write i2c OK [06:56:00]MH_I2C_Read... [06:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:00]Read from MH i2c: E2 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: E2 0E 00 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: E2 0E 00 EE 30 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C9 [06:56:00]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:56:00]wFMCommunicate OK [06:56:00]SAM_PROTO_GetShiftState done [06:56:00]FM_GetShiftState done [06:56:00]req_shift_opened done [06:56:00]requested_item shift.open_date is exist - process it [06:56:00]req_shift_open_date [06:56:00]req_shift_open_date done [06:56:00]produce_requested_data done [06:56:00]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118651,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [06:56:00]process_action_free close_receipt [06:56:00]json_value_free [06:56:00]json_value_free done [06:56:00]process_json_proto returns [06:56:00]Send response to host [06:56:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118651,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [06:56:00]free response buf [06:56:00]execute_script done [06:56:00]execute_script returns [06:56:00]free content buf [06:56:00]Sock 9.Close socket [06:56:00]Sock 9.Thread stoped [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:42]accept exits with 7 [06:56:42]New connection [06:56:42]New thread 3067239780 created [06:56:42]Thread 3067383140 joined [06:56:42]Waiting for new connection... [06:56:42] Sock 7.Parse request [06:56:42]Sock 7.Check first char [06:56:42]Sock 7.First char is OK [06:56:42]request: POST /json_proto HTTP/1.0 [06:56:42]Method: POST [06:56:42]URL: /json_proto [06:56:42]Method is POST - this is cgi request [06:56:42]url: /json_proto [06:56:42]query_string will be loaded in cgi processing [06:56:42]execute_cgi json_proto POST (null) [06:56:42]execute_cgi path=json_proto method=POST [06:56:42]POST find Content-Length [06:56:42]Host: 172.17.45.7:8080 [06:56:42]Content-Length: 680 [06:56:42]Content-Type: application/json [06:56:42] [06:56:42]POST finish read [06:56:42]Found Content-Length = 680 [06:56:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 102.960, "sum" : 7845.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7845.00, "total" : 7845.00, "payments": [ { "type": 0, "sum" : 7845.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:42]execute_script... [06:56: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)949536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 102.960, "sum" : 7845.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7845.00, "total" : 7845.00, "payments": [ { "type": 0, "sum" : 7845.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:42]POST & json_proto [06:56:42]process_json_proto [06:56:42]json parsed OK: [06:56:42]protocol is kg_v1.0 [06:56:42]action value=close_receipt [06:56:42]process_action close_receipt [06:56:42]cmd_close_receipt [06:56:42]MH_GetDate [06:56:42]Write to MH i2c: F0 00 00 EF 30 0E [06:56:42]Write i2c OK [06:56:42]MH_I2C_Read... [06:56:42]Read from MH i2c: F0 [06:56:42]MH_I2C_Read... [06:56:42]Read from MH i2c: F0 09 00 [06:56:42]MH_I2C_Read... [06:56:42]Read from MH i2c: F0 09 00 EF 30 00 2E 3D A7 66 90 0F 3E 66 D2 [06:56:42]GetLastDocTimeStamp 1722236160 [06:56:42]current date 1722236206 [06:56:42]FM_GetShiftState [06:56:42]SAM_PROTO_GetShiftState [06:56:42]wFMCommunicate request_size=4 [06:56:42]MH_SAM_APDU [06:56:42]CAPDU: 80 13 01 00 [06:56:42]Write to MH i2c: E2 08 00 F0 30 80 13 01 00 00 00 00 00 9D [06:56:42]Write i2c OK [06:56:42]MH_I2C_Read... [06:56:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:42]Read from MH i2c: E2 [06:56:42]MH_I2C_Read... [06:56:42]Read from MH i2c: E2 0E 00 [06:56:42]MH_I2C_Read... [06:56:42]Read from MH i2c: E2 0E 00 F0 30 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 CB [06:56:42]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:56:42]wFMCommunicate OK [06:56:42]SAM_PROTO_GetShiftState done [06:56:42]FM_GetShiftState done [06:56:42]opened in 1722211641 [06:56:42]opened+sec_in_day 1722298041 [06:56:42]quantity*price = 784555 [06:56:42]sum+1 = 784556 [06:56:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 7845.00 Внесено: 7845.00 СДАЧА: 0.00 НСП 1% : 69.43 НДС 12% : 833.16 Наличными: 7845.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 28 29.07.2024 06:56 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118652 ФПД: 158707107896917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T065646&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118652&fm=158707107896917&tin=02508201610067®Number=0000000000092660&sum=784500 [06:56:43]StoreToDocumentArchive [06:56:43]shift 434 fd 118652 [06:56:43]save to /storage/0434/doc_00118652 [06:56:43]save last doc name /storage/0434/doc_00118652 to /storage/kkm_last_doc_name [06:56:43]save OK [06:56:43]Clear old archive folders... [06:56:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:56:43]tlvbuf is 01F69C30 [06:56:43]SAM_PROTO_ClearQueue [06:56:43]wFMCommunicate request_size=4 [06:56:43]MH_SAM_APDU [06:56:43]CAPDU: 80 09 00 00 [06:56:43]Write to MH i2c: E2 08 00 FD 30 80 09 00 00 00 00 00 00 9F [06:56:43]Write i2c OK [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: E2 [06:56:43]MH_I2C_Read... [06:56:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:56:43]Read from MH i2c: E2 03 00 [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: E2 03 00 FD 30 00 90 00 A1 [06:56:43]RAPDU: 90 00 [06:56:43]wFMCommunicate OK [06:56:43]SAM_PROTO_ClearQueue done [06:56:43]KKMCreateOFDPacket [06:56:43]OFDProtocolAddRootSTLVToBuf [06:56:43]FM_MakeSignedData [06:56:43]FM_MakeSignedData [06:56:43]SAM_PROTO_SignData [06:56:43]wFMCommunicate request_size=4 [06:56:43]MH_SAM_APDU [06:56:43]CAPDU: 80 0D 01 02 [06:56:43]Write to MH i2c: E2 08 00 FE 30 80 0D 01 02 00 00 00 00 A7 [06:56:43]Write i2c OK [06:56:43]MH_I2C_Read... [06:56:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:56:43]Read from MH i2c: E2 [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: E2 03 00 [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: E2 03 00 FE 30 00 90 00 A2 [06:56:43]RAPDU: 90 00 [06:56:43]wFMCommunicate OK [06:56:43]wFMCommunicate request_size=255 [06:56:43]MH_SAM_APDU [06:56:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 92 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 AB F8 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 F8 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 45 01 00 00 00 07 04 06 00 74 F8 0B 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 2E 3D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C CF 01 00 35 04 06 00 90 57 E0 CA [06:56:43]Write to MH i2c: E2 02 01 FF 30 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 92 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 AB F8 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 F8 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 45 01 00 00 00 07 04 06 00 74 F8 0B 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 2E 3D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C CF 01 00 35 04 06 00 90 57 E0 CA 00 00 67 [06:56:43]Write i2c OK [06:56:43]MH_I2C_Read... [06:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:56:43]Read from MH i2c: E2 [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: E2 03 00 [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: E2 03 00 FF 30 00 90 00 A3 [06:56:43]RAPDU: 90 00 [06:56:43]wFMCommunicate OK [06:56:43]wFMCommunicate request_size=7 [06:56:43]MH_SAM_APDU [06:56:43]CAPDU: 80 0D 02 02 02 1E 55 [06:56:43]Write to MH i2c: E2 0A 00 00 31 80 0D 02 02 02 00 1E 55 00 00 22 [06:56:43]Write i2c OK [06:56:43]MH_I2C_Read... [06:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:56:43]Read from MH i2c: E2 [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: E2 03 00 [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: E2 03 00 00 31 00 90 00 A5 [06:56:43]RAPDU: 90 00 [06:56:43]wFMCommunicate OK [06:56:43]wFMCommunicate request_size=4 [06:56:43]MH_SAM_APDU [06:56:43]CAPDU: 80 0D 03 02 [06:56:43]Write to MH i2c: E2 08 00 01 31 80 0D 03 02 00 00 00 00 AD [06:56:43]Write i2c OK [06:56:43]MH_I2C_Read... [06:56:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:56:43]Read from MH i2c: E2 [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: E2 0B 00 [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: E2 0B 00 01 31 00 82 DD 51 D8 30 0D 12 03 90 00 88 [06:56:43]RAPDU: 82 DD 51 D8 30 0D 12 03 90 00 [06:56:43]wFMCommunicate OK [06:56:43]SAM_PROTO_SignData done [06:56:43]FM_MakeSignedData done [06:56:43]CreateOFDProtocolMessage [06:56:43]wFMCommunicate request_size=4 [06:56:43]MH_SAM_APDU [06:56:43]CAPDU: 80 11 00 00 [06:56:43]Write to MH i2c: E2 08 00 02 31 80 11 00 00 00 00 00 00 AD [06:56:43]Write i2c OK [06:56:43]MH_I2C_Read... [06:56:43]OFD Sender: No OFD packet to send [06:56:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:43]Read from MH i2c: E2 [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: E2 17 00 [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: E2 17 00 02 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 08 [06:56:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:56:43]wFMCommunicate OK [06:56:43]CreateOFDProtocolMessage done [06:56:43]OFDSenderStorePacket 118652 [06:56:43]StoreOFDPacket docnum=118652 [06:56:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 81 4F 04 01 2A 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 92 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 AB F8 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 F8 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 45 01 00 00 00 07 04 06 00 74 F8 0B 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 2E 3D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C CF 01 00 35 04 06 00 90 57 E0 CA 1E 55 82 DD 51 D8 30 0D 12 03 [06:56:43]CheckFolder [06:56:43]dirname=/storage/ofd_packets [06:56:43]CheckFolder done [06:56:43]ProducePacketName [06:56:43]name=ofd_packets/00118652 [06:56:43]NVStorageSaveData ofd_packets/00118652 [06:56:43]File name is /storage/ofd_packets/00118652 [06:56:43]Write 298 bytes [06:56:43]NVStorageSaveData done [06:56:43]OFDSenderStorePacket done [06:56:43]KKMCreateOFDPacket done [06:56:43]NVStorageSaveData kkm_last_timestamp [06:56:43]File name is /storage/kkm_last_timestamp [06:56:43]Write 4 bytes [06:56:43]NVStorageSaveData done [06:56:43]ExternCall_PrintAddStr [06:56:43]wPrintStart [06:56:43]Write to MH i2c: 01 00 00 03 31 34 [06:56:43]Write i2c OK [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: 01 [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: 01 07 00 [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: 01 07 00 03 31 00 00 00 00 00 FF 0F 49 [06:56:43]RasterBufferAndPrint [06:56:43]line Счет N : (1)949536 [06:56:43]line ИНН: 02508201610067 [06:56:43]line Контрольно-Кассовый Чек [06:56:43]line ПРОДАЖА [06:56:43]line ТРК (МРК, ГНК) : 21 [06:56:43]line Товар: 2710194800 [06:56:43]line ДТ-К-5 [06:56:43]line 102.960 * 76.20 [06:56:43]line = 7845.55 [06:56:43]line НДС 12% НСП 1% [06:56:43]line > о реализуемом товаре [06:56:43]line ОКРУГЛЕНИЕ: -0.55 [06:56:43]line ИТОГО: 7845.00 [06:56:43]line Внесено: 7845.00 [06:56:43]line СДАЧА: 0.00 [06:56:43]line НСП 1% : 69.43 [06:56:43]line НДС 12% : 833.16 [06:56:43]line Наличными: 7845.00 [06:56:43]line Безнал.: 0.00 [06:56:43]line Место: АЗС № 134 "Партнер Нефть" [06:56:43]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:56:43]line СНО: Общий режим [06:56:43]line Чек 28 29.07.2024 06:56 [06:56:43]line Смена: 434 ФФД: 1.0 [06:56:43]line ЗНМ: 0300000044 [06:56:43]line РНМ: 0000000000092660 [06:56:43]line Версия ККМ: 001 [06:56:43]line ФМ: 0000000000874939 [06:56:43]line ФД: 118652 [06:56:44]line ФПД: 158707107896917 [06:56:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T065646&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118652&fm=158707107896917&tin=02508201610067®Number=0000000000092660&sum=784500 [06:56:44]OFD Sender: Processing packet 118652 [packets to send 86, broken 85] [06:56:44]ProducePacketName [06:56:44]name=ofd_packets/00118652 [06:56:44]OFD Sender: To server: pG, [06:56:44]CommunicateWithHost lk.salyk.kg:30040 [06:56:44]ConnectInit lk.salyk.kg [06:56:44]written 0, free lines is 4095 [06:56:44]Connected sock=10 [06:56:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 81 4F 04 01 2A 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 92 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 AB F8 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 F8 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 45 01 00 00 00 07 04 06 00 74 F8 0B 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 2E 3D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C CF 01 00 35 04 06 00 90 57 E0 CA 1E 55 82 DD 51 D8 30 0D 12 03 [06:56:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 94 3C 47 00 D6 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 34 39 33 39 10 04 04 00 7C CF 01 00 F4 03 04 00 BD EA A6 66 B6 04 01 00 00 66 4D 05 F4 CC 1C 39 19 [06:56:44]CommunicateWithHost err = 0 [06:56:44]CheckOFDResponse [06:56:44]1017 (14) - 77093643461234 [06:56:44]1041 (16) - 0000000000874939 [06:56:44]1040 (4) - 118652 [06:56:44]1012 (4) - 29.07.2024 01:05 [06:56:44]1206 (1) - 0 [06:56:44]OFD Sender: Remove packet 118652 [06:56:44]ProducePacketName [06:56:44]name=ofd_packets/00118652 [06:56:44]NVStorageDeleteData [06:56:44]Write to MH i2c: 01 00 00 2D 31 5E [06:56:44]Write i2c OK [06:56:44]MH_I2C_Read... [06:56:44]Read from MH i2c: 01 [06:56:44]MH_I2C_Read... [06:56:44]Read from MH i2c: 01 07 00 [06:56:44]MH_I2C_Read... [06:56:44]Read from MH i2c: 01 07 00 2D 31 00 00 00 00 00 D3 0C 44 [06:56:44]RasterBufferAndPrint [06:56:44]line [06:56:44]line [06:56:44]line [06:56:44]line [06:56:44]line [06:56:44]written 0, free lines is 3287 [06:56:44]MH_Cut [06:56:44]Write to MH i2c: D1 01 00 34 31 01 37 [06:56:44]Write i2c OK [06:56:44]MH_I2C_Read... [06:56:44]Read from MH i2c: D1 [06:56:44]MH_I2C_Read... [06:56:44]Read from MH i2c: D1 01 00 [06:56:44]MH_I2C_Read... [06:56:44]Read from MH i2c: D1 01 00 34 31 00 36 [06:56:44]Write to MH i2c: 01 00 00 35 31 66 [06:56:44]Write i2c OK [06:56:44]MH_I2C_Read... [06:56:45]OFD Sender: No OFD packet to send [06:56:45]*** Cut start [06:56:45]*** Partial cut [06:56:45]*** CUTSNS_PIN = 1 [06:56:45]*** CUTSNS_PIN = 0 [06:56:45]*** Brake cut motor [06:56:46]Read from MH i2c: 01 [06:56:46]MH_I2C_Read... [06:56:46]*** Stop cut motor [06:56:46]*** Cut end [06:56:46]Read from MH i2c: 01 07 00 [06:56:46]MH_I2C_Read... [06:56:46]Read from MH i2c: 01 07 00 35 31 00 00 00 00 00 FF 0F 7B [06:56:46]process_action close_receipt done [06:56:46]requested_data is exist [06:56:46]produce_requested_data [06:56:46]requested_item fm.sn is exist - process it [06:56:46]wFMCommunicate request_size=4 [06:56:46]MH_SAM_APDU [06:56:46]CAPDU: 80 11 00 00 [06:56:46]Write to MH i2c: E2 08 00 36 31 80 11 00 00 00 00 00 00 E1 [06:56:46]Write i2c OK [06:56:46]MH_I2C_Read... [06:56:46]Read from MH i2c: E2 [06:56:46]MH_I2C_Read... [06:56:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:46]Read from MH i2c: E2 17 00 [06:56:46]MH_I2C_Read... [06:56:46]Read from MH i2c: E2 17 00 36 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3C [06:56:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:56:46]wFMCommunicate OK [06:56:46]requested_item fd.num is exist - process it [06:56:46]SAM_PROTO_GetFieldsCounters [06:56:46]wFMCommunicate request_size=4 [06:56:46]MH_SAM_APDU [06:56:46]CAPDU: 80 13 00 00 [06:56:46]Write to MH i2c: E2 08 00 37 31 80 13 00 00 00 00 00 00 E4 [06:56:46]Write i2c OK [06:56:46]MH_I2C_Read... [06:56:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:56:46]Read from MH i2c: E2 [06:56:46]MH_I2C_Read... [06:56:46]Read from MH i2c: E2 62 00 [06:56:46]MH_I2C_Read... [06:56:46]Read from MH i2c: E2 62 00 37 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7C CF 01 00 0E 04 04 00 B2 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 5E [06:56: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7C CF 01 00 0E 04 04 00 B2 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 [06:56:46]wFMCommunicate OK [06:56:46]SAM_PROTO_GetFieldsCounters done [06:56:46]requested_item shift.num is exist - process it [06:56:46]requested_item shift.opened is exist - process it [06:56:46]req_shift_opened [06:56:46]FM_GetShiftState [06:56:46]SAM_PROTO_GetShiftState [06:56:46]wFMCommunicate request_size=4 [06:56:46]MH_SAM_APDU [06:56:46]CAPDU: 80 13 01 00 [06:56:46]Write to MH i2c: E2 08 00 38 31 80 13 01 00 00 00 00 00 E6 [06:56:46]Write i2c OK [06:56:46]MH_I2C_Read... [06:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:46]Read from MH i2c: E2 [06:56:46]MH_I2C_Read... [06:56:46]Read from MH i2c: E2 0E 00 [06:56:46]MH_I2C_Read... [06:56:46]Read from MH i2c: E2 0E 00 38 31 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 14 [06:56:46]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:56:46]wFMCommunicate OK [06:56:46]SAM_PROTO_GetShiftState done [06:56:46]FM_GetShiftState done [06:56:46]req_shift_opened done [06:56:46]requested_item shift.open_date is exist - process it [06:56:46]req_shift_open_date [06:56:46]req_shift_open_date done [06:56:46]produce_requested_data done [06:56:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118652,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [06:56:46]process_action_free close_receipt [06:56:46]json_value_free [06:56:46]json_value_free done [06:56:46]process_json_proto returns [06:56:46]Send response to host [06:56:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118652,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [06:56:46]free response buf [06:56:46]execute_script done [06:56:46]execute_script returns [06:56:46]free content buf [06:56:46]Sock 7.Close socket [06:56:46]Sock 7.Thread stoped [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:24]accept exits with 9 [06:57:24]New connection [06:57:24]New thread 3067383140 created [06:57:24]Thread 3067239780 joined [06:57:24]Waiting for new connection... [06:57:24] Sock 9.Parse request [06:57:24]Sock 9.Check first char [06:57:24]Sock 9.First char is OK [06:57:24]request: POST /json_proto HTTP/1.0 [06:57:24]Method: POST [06:57:24]URL: /json_proto [06:57:24]Method is POST - this is cgi request [06:57:24]url: /json_proto [06:57:24]query_string will be loaded in cgi processing [06:57:24]execute_cgi json_proto POST (null) [06:57:24]execute_cgi path=json_proto method=POST [06:57:24]POST find Content-Length [06:57:24]Host: 172.17.45.7:8080 [06:57:24]Content-Length: 679 [06:57:24]Content-Type: application/json [06:57:24] [06:57:24]POST finish read [06:57:24]Found Content-Length = 679 [06:57:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:57:24]execute_script... [06:57: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)949537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:57:24]POST & json_proto [06:57:24]process_json_proto [06:57:24]json parsed OK: [06:57:24]protocol is kg_v1.0 [06:57:24]action value=close_receipt [06:57:24]process_action close_receipt [06:57:24]cmd_close_receipt [06:57:24]MH_GetDate [06:57:24]Write to MH i2c: F0 00 00 39 31 59 [06:57:24]Write i2c OK [06:57:24]MH_I2C_Read... [06:57:24]Read from MH i2c: F0 [06:57:24]MH_I2C_Read... [06:57:24]Read from MH i2c: F0 09 00 [06:57:24]MH_I2C_Read... [06:57:24]Read from MH i2c: F0 09 00 39 31 00 58 3D A7 66 90 0F 3E 66 47 [06:57:24]GetLastDocTimeStamp 1722236206 [06:57:24]current date 1722236248 [06:57:24]FM_GetShiftState [06:57:24]SAM_PROTO_GetShiftState [06:57:24]wFMCommunicate request_size=4 [06:57:24]MH_SAM_APDU [06:57:24]CAPDU: 80 13 01 00 [06:57:24]Write to MH i2c: E2 08 00 3A 31 80 13 01 00 00 00 00 00 E8 [06:57:24]Write i2c OK [06:57:24]MH_I2C_Read... [06:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:24]Read from MH i2c: E2 [06:57:24]MH_I2C_Read... [06:57:24]Read from MH i2c: E2 0E 00 [06:57:24]MH_I2C_Read... [06:57:24]Read from MH i2c: E2 0E 00 3A 31 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 16 [06:57:24]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:57:24]wFMCommunicate OK [06:57:24]SAM_PROTO_GetShiftState done [06:57:24]FM_GetShiftState done [06:57:24]opened in 1722211641 [06:57:24]opened+sec_in_day 1722298041 [06:57:24]quantity*price = 400050 [06:57:24]sum+1 = 400051 [06:57:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 29 29.07.2024 06:57 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118653 ФПД: 122748871090711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T065728&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118653&fm=122748871090711&tin=02508201610067®Number=0000000000092660&sum=400000 [06:57:25]StoreToDocumentArchive [06:57:25]shift 434 fd 118653 [06:57:25]save to /storage/0434/doc_00118653 [06:57:25]save last doc name /storage/0434/doc_00118653 to /storage/kkm_last_doc_name [06:57:25]save OK [06:57:25]Clear old archive folders... [06:57:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:57:25]tlvbuf is 01E97B40 [06:57:25]SAM_PROTO_ClearQueue [06:57:25]wFMCommunicate request_size=4 [06:57:25]MH_SAM_APDU [06:57:25]CAPDU: 80 09 00 00 [06:57:25]Write to MH i2c: E2 08 00 47 31 80 09 00 00 00 00 00 00 EA [06:57:25]Write i2c OK [06:57:25]MH_I2C_Read... [06:57:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:57:25]Read from MH i2c: E2 [06:57:25]MH_I2C_Read... [06:57:25]Read from MH i2c: E2 03 00 [06:57:25]MH_I2C_Read... [06:57:25]Read from MH i2c: E2 03 00 47 31 00 90 00 EC [06:57:25]RAPDU: 90 00 [06:57:25]wFMCommunicate OK [06:57:25]SAM_PROTO_ClearQueue done [06:57:25]KKMCreateOFDPacket [06:57:25]OFDProtocolAddRootSTLVToBuf [06:57:25]FM_MakeSignedData [06:57:25]FM_MakeSignedData [06:57:25]SAM_PROTO_SignData [06:57:25]wFMCommunicate request_size=4 [06:57:25]MH_SAM_APDU [06:57:25]CAPDU: 80 0D 01 02 [06:57:25]Write to MH i2c: E2 08 00 48 31 80 0D 01 02 00 00 00 00 F2 [06:57:25]Write i2c OK [06:57:25]MH_I2C_Read... [06:57:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:57:25]Read from MH i2c: E2 [06:57:25]MH_I2C_Read... [06:57:25]Read from MH i2c: E2 03 00 [06:57:25]MH_I2C_Read... [06:57:25]Read from MH i2c: E2 03 00 48 31 00 90 00 ED [06:57:25]RAPDU: 90 00 [06:57:25]wFMCommunicate OK [06:57:25]wFMCommunicate request_size=255 [06:57:25]MH_SAM_APDU [06:57:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 58 3D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7D CF 01 00 35 04 06 00 6F A3 B2 DB [06:57:25]Write to MH i2c: E2 02 01 49 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 58 3D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7D CF 01 00 35 04 06 00 6F A3 B2 DB 00 00 05 [06:57:25]Write i2c OK [06:57:25]MH_I2C_Read... [06:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:25]Read from MH i2c: E2 [06:57:25]MH_I2C_Read... [06:57:25]Read from MH i2c: E2 03 00 [06:57:25]MH_I2C_Read... [06:57:25]Read from MH i2c: E2 03 00 49 31 00 90 00 EE [06:57:25]RAPDU: 90 00 [06:57:25]wFMCommunicate OK [06:57:25]wFMCommunicate request_size=7 [06:57:25]MH_SAM_APDU [06:57:25]CAPDU: 80 0D 02 02 02 A2 17 [06:57:25]Write to MH i2c: E2 0A 00 4A 31 80 0D 02 02 02 00 A2 17 00 00 B2 [06:57:25]Write i2c OK [06:57:25]MH_I2C_Read... [06:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:25]Read from MH i2c: E2 [06:57:25]MH_I2C_Read... [06:57:25]Read from MH i2c: E2 03 00 [06:57:25]MH_I2C_Read... [06:57:25]Read from MH i2c: E2 03 00 4A 31 00 90 00 EF [06:57:25]RAPDU: 90 00 [06:57:25]wFMCommunicate OK [06:57:25]wFMCommunicate request_size=4 [06:57:25]MH_SAM_APDU [06:57:25]CAPDU: 80 0D 03 02 [06:57:25]Write to MH i2c: E2 08 00 4B 31 80 0D 03 02 00 00 00 00 F7 [06:57:25]Write i2c OK [06:57:25]MH_I2C_Read... [06:57:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:57:25]Read from MH i2c: E2 [06:57:25]MH_I2C_Read... [06:57:25]Read from MH i2c: E2 0B 00 [06:57:25]MH_I2C_Read... [06:57:25]Read from MH i2c: E2 0B 00 4B 31 00 2A 7A 1C 10 B8 EB AE 8B 90 00 A4 [06:57:25]RAPDU: 2A 7A 1C 10 B8 EB AE 8B 90 00 [06:57:25]wFMCommunicate OK [06:57:25]SAM_PROTO_SignData done [06:57:25]FM_MakeSignedData done [06:57:25]CreateOFDProtocolMessage [06:57:25]wFMCommunicate request_size=4 [06:57:25]MH_SAM_APDU [06:57:25]CAPDU: 80 11 00 00 [06:57:25]Write to MH i2c: E2 08 00 4C 31 80 11 00 00 00 00 00 00 F7 [06:57:25]Write i2c OK [06:57:25]MH_I2C_Read... [06:57:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:25]Read from MH i2c: E2 [06:57:25]MH_I2C_Read... [06:57:25]Read from MH i2c: E2 17 00 [06:57:25]MH_I2C_Read... [06:57:25]Read from MH i2c: E2 17 00 4C 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 52 [06:57:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:57:25]wFMCommunicate OK [06:57:25]CreateOFDProtocolMessage done [06:57:25]OFDSenderStorePacket 118653 [06:57:25]StoreOFDPacket docnum=118653 [06:57:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B1 FD 04 01 2E 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 58 3D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7D CF 01 00 35 04 06 00 6F A3 B2 DB A2 17 2A 7A 1C 10 B8 EB AE 8B [06:57:25]CheckFolder [06:57:25]dirname=/storage/ofd_packets [06:57:25]CheckFolder done [06:57:25]ProducePacketName [06:57:25]name=ofd_packets/00118653 [06:57:25]NVStorageSaveData ofd_packets/00118653 [06:57:25]File name is /storage/ofd_packets/00118653 [06:57:25]Write 298 bytes [06:57:25]NVStorageSaveData done [06:57:25]OFDSenderStorePacket done [06:57:25]KKMCreateOFDPacket done [06:57:25]NVStorageSaveData kkm_last_timestamp [06:57:25]File name is /storage/kkm_last_timestamp [06:57:25]Write 4 bytes [06:57:25]NVStorageSaveData done [06:57:25]ExternCall_PrintAddStr [06:57:25]wPrintStart [06:57:25]Write to MH i2c: 01 00 00 4D 31 7E [06:57:25]Write i2c OK [06:57:25]MH_I2C_Read... [06:57:25]Read from MH i2c: 01 [06:57:25]MH_I2C_Read... [06:57:25]Read from MH i2c: 01 07 00 [06:57:25]MH_I2C_Read... [06:57:25]Read from MH i2c: 01 07 00 4D 31 00 00 00 00 00 FF 0F 93 [06:57:25]RasterBufferAndPrint [06:57:25]line Счет N : (1)949537 [06:57:25]line ИНН: 02508201610067 [06:57:25]line Контрольно-Кассовый Чек [06:57:25]line ПРОДАЖА [06:57:25]line ТРК (МРК, ГНК) : 11 [06:57:25]line Товар: 2710194800 [06:57:25]line ДТ-К-5 [06:57:25]line 52.500 * 76.20 [06:57:25]line = 4000.50 [06:57:25]line НДС 12% НСП 1% [06:57:25]line > о реализуемом товаре [06:57:25]line ОКРУГЛЕНИЕ: -0.50 [06:57:25]line ИТОГО: 4000.00 [06:57:25]line Внесено: 4000.00 [06:57:25]line СДАЧА: 0.00 [06:57:25]line НСП 1% : 35.40 [06:57:25]line НДС 12% : 424.83 [06:57:25]line Наличными: 4000.00 [06:57:25]line Безнал.: 0.00 [06:57:25]line Место: АЗС № 134 "Партнер Нефть" [06:57:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:57:25]line СНО: Общий режим [06:57:25]line Чек 29 29.07.2024 06:57 [06:57:25]line Смена: 434 ФФД: 1.0 [06:57:25]line ЗНМ: 0300000044 [06:57:25]line РНМ: 0000000000092660 [06:57:25]line Версия ККМ: 001 [06:57:25]line ФМ: 0000000000874939 [06:57:25]line ФД: 118653 [06:57:25]line ФПД: 122748871090711 [06:57:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T065728&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118653&fm=122748871090711&tin=02508201610067®Number=0000000000092660&sum=400000 [06:57:25]written 0, free lines is 4095 [06:57:25]OFD Sender: Processing packet 118653 [packets to send 86, broken 85] [06:57:25]ProducePacketName [06:57:25]name=ofd_packets/00118653 [06:57:25]OFD Sender: To server: pG, [06:57:25]CommunicateWithHost lk.salyk.kg:30040 [06:57:25]ConnectInit lk.salyk.kg [06:57:25]Connected sock=11 [06:57:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B1 FD 04 01 2E 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 58 3D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7D CF 01 00 35 04 06 00 6F A3 B2 DB A2 17 2A 7A 1C 10 B8 EB AE 8B [06:57:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D9 E7 47 00 04 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 34 39 33 39 10 04 04 00 7D CF 01 00 F4 03 04 00 E6 EA A6 66 B6 04 01 00 00 CE 10 7F B2 D6 7C 08 30 [06:57:26]CommunicateWithHost err = 0 [06:57:26]CheckOFDResponse [06:57:26]1017 (14) - 77093643461234 [06:57:26]1041 (16) - 0000000000874939 [06:57:26]1040 (4) - 118653 [06:57:26]1012 (4) - 29.07.2024 01:05 [06:57:26]1206 (1) - 0 [06:57:26]OFD Sender: Remove packet 118653 [06:57:26]ProducePacketName [06:57:26]name=ofd_packets/00118653 [06:57:26]NVStorageDeleteData [06:57:26]Write to MH i2c: 01 00 00 77 31 A8 [06:57:26]Write i2c OK [06:57:26]MH_I2C_Read... [06:57:26]Read from MH i2c: 01 [06:57:26]MH_I2C_Read... [06:57:26]Read from MH i2c: 01 07 00 [06:57:26]MH_I2C_Read... [06:57:26]Read from MH i2c: 01 07 00 77 31 00 00 00 00 00 DA 0C 95 [06:57:26]RasterBufferAndPrint [06:57:26]line [06:57:26]line [06:57:26]line [06:57:26]line [06:57:26]line [06:57:26]written 0, free lines is 3295 [06:57:26]MH_Cut [06:57:26]Write to MH i2c: D1 01 00 7E 31 01 81 [06:57:26]Write i2c OK [06:57:26]MH_I2C_Read... [06:57:26]Read from MH i2c: D1 [06:57:26]MH_I2C_Read... [06:57:26]Read from MH i2c: D1 01 00 [06:57:26]MH_I2C_Read... [06:57:26]Read from MH i2c: D1 01 00 7E 31 00 80 [06:57:26]Write to MH i2c: 01 00 00 7F 31 B0 [06:57:26]Write i2c OK [06:57:26]MH_I2C_Read... [06:57:26]OFD Sender: No OFD packet to send [06:57:27]*** Cut start [06:57:27]*** Partial cut [06:57:27]*** CUTSNS_PIN = 1 [06:57:27]*** CUTSNS_PIN = 0 [06:57:27]*** Brake cut motor [06:57:27]Read from MH i2c: 01 [06:57:27]MH_I2C_Read... [06:57:27]*** Stop cut motor [06:57:27]*** Cut end [06:57:27]Read from MH i2c: 01 07 00 [06:57:27]MH_I2C_Read... [06:57:27]Read from MH i2c: 01 07 00 7F 31 00 00 00 00 00 FF 0F C5 [06:57:27]process_action close_receipt done [06:57:27]requested_data is exist [06:57:27]produce_requested_data [06:57:27]requested_item fm.sn is exist - process it [06:57:27]wFMCommunicate request_size=4 [06:57:27]MH_SAM_APDU [06:57:27]CAPDU: 80 11 00 00 [06:57:27]Write to MH i2c: E2 08 00 80 31 80 11 00 00 00 00 00 00 2B [06:57:27]Write i2c OK [06:57:27]MH_I2C_Read... [06:57:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:27]Read from MH i2c: E2 [06:57:27]MH_I2C_Read... [06:57:27]Read from MH i2c: E2 17 00 [06:57:27]MH_I2C_Read... [06:57:27]Read from MH i2c: E2 17 00 80 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 86 [06:57:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:57:27]wFMCommunicate OK [06:57:27]requested_item fd.num is exist - process it [06:57:27]SAM_PROTO_GetFieldsCounters [06:57:27]wFMCommunicate request_size=4 [06:57:27]MH_SAM_APDU [06:57:27]CAPDU: 80 13 00 00 [06:57:27]Write to MH i2c: E2 08 00 81 31 80 13 00 00 00 00 00 00 2E [06:57:27]Write i2c OK [06:57:27]MH_I2C_Read... [06:57:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:57:27]Read from MH i2c: E2 [06:57:27]MH_I2C_Read... [06:57:27]Read from MH i2c: E2 62 00 [06:57:27]MH_I2C_Read... [06:57:27]Read from MH i2c: E2 62 00 81 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7D CF 01 00 0E 04 04 00 B2 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 AC [06:57: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7D CF 01 00 0E 04 04 00 B2 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 [06:57:27]wFMCommunicate OK [06:57:27]SAM_PROTO_GetFieldsCounters done [06:57:27]requested_item shift.num is exist - process it [06:57:27]requested_item shift.opened is exist - process it [06:57:27]req_shift_opened [06:57:27]FM_GetShiftState [06:57:27]SAM_PROTO_GetShiftState [06:57:27]wFMCommunicate request_size=4 [06:57:27]MH_SAM_APDU [06:57:27]CAPDU: 80 13 01 00 [06:57:27]Write to MH i2c: E2 08 00 82 31 80 13 01 00 00 00 00 00 30 [06:57:27]Write i2c OK [06:57:27]MH_I2C_Read... [06:57:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:27]Read from MH i2c: E2 [06:57:27]MH_I2C_Read... [06:57:27]Read from MH i2c: E2 0E 00 [06:57:27]MH_I2C_Read... [06:57:27]Read from MH i2c: E2 0E 00 82 31 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 5E [06:57:27]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:57:27]wFMCommunicate OK [06:57:27]SAM_PROTO_GetShiftState done [06:57:27]FM_GetShiftState done [06:57:27]req_shift_opened done [06:57:27]requested_item shift.open_date is exist - process it [06:57:27]req_shift_open_date [06:57:27]req_shift_open_date done [06:57:27]produce_requested_data done [06:57:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118653,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [06:57:27]process_action_free close_receipt [06:57:27]json_value_free [06:57:27]json_value_free done [06:57:27]process_json_proto returns [06:57:27]Send response to host [06:57:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118653,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [06:57:27]free response buf [06:57:27]execute_script done [06:57:27]execute_script returns [06:57:27]free content buf [06:57:27]Sock 9.Close socket [06:57:27]Sock 9.Thread stoped [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:43]accept exits with 7 [06:59:43]New connection [06:59:43]New thread 3067239780 created [06:59:43]Thread 3067383140 joined [06:59:43]Waiting for new connection... [06:59:43] Sock 7.Parse request [06:59:43]Sock 7.Check first char [06:59:43]Sock 7.First char is OK [06:59:43]request: POST /json_proto HTTP/1.0 [06:59:43]Method: POST [06:59:43]URL: /json_proto [06:59:43]Method is POST - this is cgi request [06:59:43]url: /json_proto [06:59:43]query_string will be loaded in cgi processing [06:59:43]execute_cgi json_proto POST (null) [06:59:43]execute_cgi path=json_proto method=POST [06:59:43]POST find Content-Length [06:59:43]Host: 172.17.45.7:8080 [06:59:43]Content-Length: 736 [06:59:43]Content-Type: application/json [06:59:43] [06:59:43]POST finish read [06:59:43]Found Content-Length = 736 [06:59:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118653, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:43]execute_script... [06:59:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118653, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:43]POST & json_proto [06:59:43]process_json_proto [06:59:43]json parsed OK: [06:59:43]protocol is kg_v1.0 [06:59:43]action value=close_receipt [06:59:43]process_action close_receipt [06:59:43]cmd_close_receipt [06:59:43]MH_GetDate [06:59:43]Write to MH i2c: F0 00 00 83 31 A3 [06:59:43]Write i2c OK [06:59:43]MH_I2C_Read... [06:59:43]Read from MH i2c: F0 [06:59:43]MH_I2C_Read... [06:59:43]Read from MH i2c: F0 09 00 [06:59:43]MH_I2C_Read... [06:59:43]Read from MH i2c: F0 09 00 83 31 00 E3 3D A7 66 90 0F 3E 66 1C [06:59:43]GetLastDocTimeStamp 1722236248 [06:59:43]current date 1722236387 [06:59:43]FM_GetShiftState [06:59:43]SAM_PROTO_GetShiftState [06:59:43]wFMCommunicate request_size=4 [06:59:43]MH_SAM_APDU [06:59:43]CAPDU: 80 13 01 00 [06:59:43]Write to MH i2c: E2 08 00 84 31 80 13 01 00 00 00 00 00 32 [06:59:43]Write i2c OK [06:59:43]MH_I2C_Read... [06:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:43]Read from MH i2c: E2 [06:59:43]MH_I2C_Read... [06:59:43]Read from MH i2c: E2 0E 00 [06:59:43]MH_I2C_Read... [06:59:43]Read from MH i2c: E2 0E 00 84 31 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 60 [06:59:43]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:59:43]wFMCommunicate OK [06:59:43]SAM_PROTO_GetShiftState done [06:59:43]FM_GetShiftState done [06:59:43]opened in 1722211641 [06:59:43]opened+sec_in_day 1722298041 [06:59:43]quantity*price = 400050 [06:59:43]sum+1 = 400051 [06:59:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 30 29.07.2024 06:59 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 118653 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 118654 ФПД: 228545879216283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T065947&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118654&fm=228545879216283&tin=02508201610067®Number=0000000000092660&sum=400000 [06:59:44]StoreToDocumentArchive [06:59:44]shift 434 fd 118654 [06:59:44]save to /storage/0434/doc_00118654 [06:59:44]save last doc name /storage/0434/doc_00118654 to /storage/kkm_last_doc_name [06:59:44]save OK [06:59:44]Clear old archive folders... [06:59:44]ProcessDocumentItem done err = 0, tmpTLVsize=276 [06:59:44]tlvbuf is 01EE7670 [06:59:44]SAM_PROTO_ClearQueue [06:59:44]wFMCommunicate request_size=4 [06:59:44]MH_SAM_APDU [06:59:44]CAPDU: 80 09 00 00 [06:59:44]Write to MH i2c: E2 08 00 93 31 80 09 00 00 00 00 00 00 36 [06:59:44]Write i2c OK [06:59:44]MH_I2C_Read... [06:59:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:59:44]Read from MH i2c: E2 [06:59:44]MH_I2C_Read... [06:59:44]Read from MH i2c: E2 03 00 [06:59:44]MH_I2C_Read... [06:59:44]Read from MH i2c: E2 03 00 93 31 00 90 00 38 [06:59:44]RAPDU: 90 00 [06:59:44]wFMCommunicate OK [06:59:44]SAM_PROTO_ClearQueue done [06:59:44]KKMCreateOFDPacket [06:59:44]OFDProtocolAddRootSTLVToBuf [06:59:44]FM_MakeSignedData [06:59:44]FM_MakeSignedData [06:59:44]SAM_PROTO_SignData [06:59:44]wFMCommunicate request_size=4 [06:59:44]MH_SAM_APDU [06:59:44]CAPDU: 80 0D 01 02 [06:59:44]Write to MH i2c: E2 08 00 94 31 80 0D 01 02 00 00 00 00 3E [06:59:44]Write i2c OK [06:59:44]MH_I2C_Read... [06:59:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:59:44]Read from MH i2c: E2 [06:59:44]MH_I2C_Read... [06:59:44]Read from MH i2c: E2 03 00 [06:59:44]MH_I2C_Read... [06:59:44]Read from MH i2c: E2 03 00 94 31 00 90 00 39 [06:59:44]RAPDU: 90 00 [06:59:44]wFMCommunicate OK [06:59:44]wFMCommunicate request_size=255 [06:59:44]MH_SAM_APDU [06:59:44]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E3 3D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 7D CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 [06:59:44]Write to MH i2c: E2 02 01 95 31 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E3 3D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 7D CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 00 00 30 [06:59:44]Write i2c OK [06:59:44]MH_I2C_Read... [06:59:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:44]Read from MH i2c: E2 [06:59:44]MH_I2C_Read... [06:59:44]Read from MH i2c: E2 03 00 [06:59:44]MH_I2C_Read... [06:59:44]Read from MH i2c: E2 03 00 95 31 00 90 00 3A [06:59:44]RAPDU: 90 00 [06:59:44]wFMCommunicate OK [06:59:44]wFMCommunicate request_size=35 [06:59:44]MH_SAM_APDU [06:59:44]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E CF 01 00 35 04 06 00 CF DC 7B F2 10 9B [06:59:44]Write to MH i2c: E2 26 00 96 31 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E CF 01 00 35 04 06 00 CF DC 7B F2 10 9B 00 00 4D [06:59:44]Write i2c OK [06:59:44]MH_I2C_Read... [06:59:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:44]Read from MH i2c: E2 [06:59:44]MH_I2C_Read... [06:59:44]Read from MH i2c: E2 03 00 [06:59:44]MH_I2C_Read... [06:59:44]Read from MH i2c: E2 03 00 96 31 00 90 00 3B [06:59:44]RAPDU: 90 00 [06:59:44]wFMCommunicate OK [06:59:44]wFMCommunicate request_size=4 [06:59:44]MH_SAM_APDU [06:59:44]CAPDU: 80 0D 03 02 [06:59:44]Write to MH i2c: E2 08 00 97 31 80 0D 03 02 00 00 00 00 43 [06:59:44]Write i2c OK [06:59:44]MH_I2C_Read... [06:59:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:59:44]Read from MH i2c: E2 [06:59:44]MH_I2C_Read... [06:59:44]Read from MH i2c: E2 0B 00 [06:59:44]MH_I2C_Read... [06:59:44]Read from MH i2c: E2 0B 00 97 31 00 C2 EB D0 93 9B D4 0A E0 90 00 AD [06:59:44]RAPDU: C2 EB D0 93 9B D4 0A E0 90 00 [06:59:44]wFMCommunicate OK [06:59:44]SAM_PROTO_SignData done [06:59:44]FM_MakeSignedData done [06:59:44]CreateOFDProtocolMessage [06:59:44]wFMCommunicate request_size=4 [06:59:44]MH_SAM_APDU [06:59:44]CAPDU: 80 11 00 00 [06:59:44]Write to MH i2c: E2 08 00 98 31 80 11 00 00 00 00 00 00 43 [06:59:44]Write i2c OK [06:59:44]MH_I2C_Read... [06:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:44]Read from MH i2c: E2 [06:59:44]MH_I2C_Read... [06:59:44]Read from MH i2c: E2 17 00 [06:59:44]MH_I2C_Read... [06:59:44]Read from MH i2c: E2 17 00 98 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9E [06:59:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:59:44]wFMCommunicate OK [06:59:44]CreateOFDProtocolMessage done [06:59:44]OFDSenderStorePacket 118654 [06:59:44]StoreOFDPacket docnum=118654 [06:59:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 42 97 20 01 CD 07 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E3 3D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 7D CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E CF 01 00 35 04 06 00 CF DC 7B F2 10 9B C2 EB D0 93 9B D4 0A E0 [06:59:44]CheckFolder [06:59:44]dirname=/storage/ofd_packets [06:59:44]CheckFolder done [06:59:44]ProducePacketName [06:59:44]name=ofd_packets/00118654 [06:59:44]NVStorageSaveData ofd_packets/00118654 [06:59:44]File name is /storage/ofd_packets/00118654 [06:59:44]Write 326 bytes [06:59:44]NVStorageSaveData done [06:59:44]OFDSenderStorePacket done [06:59:44]KKMCreateOFDPacket done [06:59:44]NVStorageSaveData kkm_last_timestamp [06:59:44]File name is /storage/kkm_last_timestamp [06:59:44]Write 4 bytes [06:59:44]NVStorageSaveData done [06:59:44]OFD Sender: Processing packet 118654 [packets to send 86, broken 85] [06:59:44]ProducePacketName [06:59:44]name=ofd_packets/00118654 [06:59:44]OFD Sender: To server: pG, [06:59:44]CommunicateWithHost lk.salyk.kg:30040 [06:59:44]ConnectInit lk.salyk.kg [06:59:44]ExternCall_PrintAddStr [06:59:44]wPrintStart [06:59:44]Write to MH i2c: 01 00 00 99 31 CA [06:59:44]Write i2c OK [06:59:44]MH_I2C_Read... [06:59:44]Read from MH i2c: 01 [06:59:44]MH_I2C_Read... [06:59:44]Read from MH i2c: 01 07 00 [06:59:44]MH_I2C_Read... [06:59:44]Read from MH i2c: 01 07 00 99 31 00 00 00 00 00 FF 0F DF [06:59:44]RasterBufferAndPrint [06:59:44]line Счет N : (1)949537 [06:59:44]line ИНН: 02508201610067 [06:59:44]line Контрольно-Кассовый Чек [06:59:44]line ВОЗВРАТ ПРОДАЖИ [06:59:44]line ТРК (МРК, ГНК) : 11 [06:59:44]line Товар: 2710194800 [06:59:44]line ДТ-К-5 [06:59:44]line 52.500 * 76.20 [06:59:44]line = 4000.50 [06:59:44]line НДС 12% НСП 1% [06:59:44]line > о реализуемом товаре [06:59:44]line ОКРУГЛЕНИЕ: -0.50 [06:59:44]line ИТОГО: 4000.00 [06:59:44]line НСП 1% : 35.40 [06:59:44]line НДС 12% : 424.83 [06:59:44]line Наличными: 4000.00 [06:59:44]line Безнал.: 0.00 [06:59:44]line Место: АЗС № 134 "Партнер Нефть" [06:59:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:59:44]line СНО: Общий режим [06:59:44]line Чек 30 29.07.2024 06:59 [06:59:44]line Смена: 434 ФФД: 1.0 [06:59:44]line ЗНМ: 0300000044 [06:59:44]line РНМ: 0000000000092660 [06:59:44]line Версия ККМ: 001 [06:59:44]line ФД осн.: 118653 [06:59:44]line ФМ осн.: 0000000000874939 [06:59:44]line ФМ: 0000000000874939 [06:59:44]line ФД: 118654 [06:59:44]line ФПД: 228545879216283 [06:59:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T065947&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118654&fm=228545879216283&tin=02508201610067®Number=0000000000092660&sum=400000 [06:59:45]Connected sock=11 [06:59:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 42 97 20 01 CD 07 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E3 3D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 7D CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E CF 01 00 35 04 06 00 CF DC 7B F2 10 9B C2 EB D0 93 9B D4 0A E0 [06:59:45]written 0, free lines is 4095 [06:59:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 08 7D 47 00 1C 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 34 39 33 39 10 04 04 00 7E CF 01 00 F4 03 04 00 71 EB A6 66 B6 04 01 00 00 9A F0 10 CA B6 DE DF DD [06:59:45]CommunicateWithHost err = 0 [06:59:45]CheckOFDResponse [06:59:45]1017 (14) - 77093643461234 [06:59:45]1041 (16) - 0000000000874939 [06:59:45]1040 (4) - 118654 [06:59:45]1012 (4) - 29.07.2024 01:08 [06:59:45]1206 (1) - 0 [06:59:45]OFD Sender: Remove packet 118654 [06:59:45]ProducePacketName [06:59:45]name=ofd_packets/00118654 [06:59:45]NVStorageDeleteData [06:59:45]Write to MH i2c: 01 00 00 C3 31 F4 [06:59:45]Write i2c OK [06:59:45]MH_I2C_Read... [06:59:45]Read from MH i2c: 01 [06:59:45]MH_I2C_Read... [06:59:45]Read from MH i2c: 01 07 00 [06:59:45]MH_I2C_Read... [06:59:45]Read from MH i2c: 01 07 00 C3 31 00 00 00 00 00 E3 0C EA [06:59:45]RasterBufferAndPrint [06:59:45]line [06:59:45]line [06:59:45]line [06:59:45]line [06:59:45]line [06:59:45]written 0, free lines is 3306 [06:59:45]MH_Cut [06:59:45]Write to MH i2c: D1 01 00 CA 31 01 CD [06:59:45]Write i2c OK [06:59:45]MH_I2C_Read... [06:59:45]Read from MH i2c: D1 [06:59:45]MH_I2C_Read... [06:59:45]Read from MH i2c: D1 01 00 [06:59:45]MH_I2C_Read... [06:59:45]Read from MH i2c: D1 01 00 CA 31 00 CC [06:59:45]Write to MH i2c: 01 00 00 CB 31 FC [06:59:45]Write i2c OK [06:59:45]MH_I2C_Read... [06:59:46]OFD Sender: No OFD packet to send [06:59:46]*** Cut start [06:59:46]*** Partial cut [06:59:46]*** CUTSNS_PIN = 1 [06:59:46]*** CUTSNS_PIN = 0 [06:59:46]*** Brake cut motor [06:59:47]Read from MH i2c: 01 [06:59:47]MH_I2C_Read... [06:59:47]*** Stop cut motor [06:59:47]*** Cut end [06:59:47]Read from MH i2c: 01 07 00 [06:59:47]MH_I2C_Read... [06:59:47]Read from MH i2c: 01 07 00 CB 31 00 00 00 00 00 FF 0F 11 [06:59:47]process_action close_receipt done [06:59:47]requested_data is exist [06:59:47]produce_requested_data [06:59:47]requested_item fm.sn is exist - process it [06:59:47]wFMCommunicate request_size=4 [06:59:47]MH_SAM_APDU [06:59:47]CAPDU: 80 11 00 00 [06:59:47]Write to MH i2c: E2 08 00 CC 31 80 11 00 00 00 00 00 00 77 [06:59:47]Write i2c OK [06:59:47]MH_I2C_Read... [06:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:47]Read from MH i2c: E2 [06:59:47]MH_I2C_Read... [06:59:47]Read from MH i2c: E2 17 00 [06:59:47]MH_I2C_Read... [06:59:47]Read from MH i2c: E2 17 00 CC 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D2 [06:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:59:47]wFMCommunicate OK [06:59:47]requested_item fd.num is exist - process it [06:59:47]SAM_PROTO_GetFieldsCounters [06:59:47]wFMCommunicate request_size=4 [06:59:47]MH_SAM_APDU [06:59:47]CAPDU: 80 13 00 00 [06:59:47]Write to MH i2c: E2 08 00 CD 31 80 13 00 00 00 00 00 00 7A [06:59:47]Write i2c OK [06:59:47]MH_I2C_Read... [06:59:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:59:47]Read from MH i2c: E2 [06:59:47]MH_I2C_Read... [06:59:47]Read from MH i2c: E2 62 00 [06:59:47]MH_I2C_Read... [06:59:47]Read from MH i2c: E2 62 00 CD 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7E CF 01 00 0E 04 04 00 B2 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 FC [06:59: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7E CF 01 00 0E 04 04 00 B2 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 [06:59:47]wFMCommunicate OK [06:59:47]SAM_PROTO_GetFieldsCounters done [06:59:47]requested_item shift.num is exist - process it [06:59:47]requested_item shift.opened is exist - process it [06:59:47]req_shift_opened [06:59:47]FM_GetShiftState [06:59:47]SAM_PROTO_GetShiftState [06:59:47]wFMCommunicate request_size=4 [06:59:47]MH_SAM_APDU [06:59:47]CAPDU: 80 13 01 00 [06:59:47]Write to MH i2c: E2 08 00 CE 31 80 13 01 00 00 00 00 00 7C [06:59:47]Write i2c OK [06:59:47]MH_I2C_Read... [06:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:47]Read from MH i2c: E2 [06:59:47]MH_I2C_Read... [06:59:47]Read from MH i2c: E2 0E 00 [06:59:47]MH_I2C_Read... [06:59:47]Read from MH i2c: E2 0E 00 CE 31 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 AA [06:59:47]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:59:47]wFMCommunicate OK [06:59:47]SAM_PROTO_GetShiftState done [06:59:47]FM_GetShiftState done [06:59:47]req_shift_opened done [06:59:47]requested_item shift.open_date is exist - process it [06:59:47]req_shift_open_date [06:59:47]req_shift_open_date done [06:59:47]produce_requested_data done [06:59:47]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118654,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [06:59:47]process_action_free close_receipt [06:59:47]json_value_free [06:59:47]json_value_free done [06:59:47]process_json_proto returns [06:59:47]Send response to host [06:59:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118654,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [06:59:47]free response buf [06:59:47]execute_script done [06:59:47]execute_script returns [06:59:47]free content buf [06:59:47]Sock 7.Close socket [06:59:47]Sock 7.Thread stoped [06:59:47]accept exits with 9 [06:59:47]New connection [06:59:47]New thread 3067383140 created [06:59:47]Thread 3067239780 joined [06:59:47]Waiting for new connection... [06:59:47] Sock 9.Parse request [06:59:47]Sock 9.Check first char [06:59:47]Sock 9.First char is OK [06:59:47]request: POST /json_proto HTTP/1.0 [06:59:47]Method: POST [06:59:47]URL: /json_proto [06:59:47]Method is POST - this is cgi request [06:59:47]url: /json_proto [06:59:47]query_string will be loaded in cgi processing [06:59:47]execute_cgi json_proto POST (null) [06:59:47]execute_cgi path=json_proto method=POST [06:59:47]POST find Content-Length [06:59:47]Host: 172.17.45.7:8080 [06:59:47]Content-Length: 679 [06:59:47]Content-Type: application/json [06:59:47] [06:59:47]POST finish read [06:59:47]Found Content-Length = 679 [06:59:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.310, "sum" : 3986.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3986.00, "payments": [ { "type": 0, "sum" : 3986.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:47]execute_script... [06:59: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)949537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.310, "sum" : 3986.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3986.00, "payments": [ { "type": 0, "sum" : 3986.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:47]POST & json_proto [06:59:47]process_json_proto [06:59:47]json parsed OK: [06:59:47]protocol is kg_v1.0 [06:59:47]action value=close_receipt [06:59:47]process_action close_receipt [06:59:47]cmd_close_receipt [06:59:47]MH_GetDate [06:59:47]Write to MH i2c: F0 00 00 CF 31 EF [06:59:47]Write i2c OK [06:59:47]MH_I2C_Read... [06:59:47]Read from MH i2c: F0 [06:59:47]MH_I2C_Read... [06:59:47]Read from MH i2c: F0 09 00 [06:59:47]MH_I2C_Read... [06:59:47]Read from MH i2c: F0 09 00 CF 31 00 E8 3D A7 66 90 0F 3E 66 6D [06:59:47]GetLastDocTimeStamp 1722236387 [06:59:47]current date 1722236392 [06:59:47]FM_GetShiftState [06:59:47]SAM_PROTO_GetShiftState [06:59:47]wFMCommunicate request_size=4 [06:59:47]MH_SAM_APDU [06:59:47]CAPDU: 80 13 01 00 [06:59:47]Write to MH i2c: E2 08 00 D0 31 80 13 01 00 00 00 00 00 7E [06:59:47]Write i2c OK [06:59:47]MH_I2C_Read... [06:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:47]Read from MH i2c: E2 [06:59:47]MH_I2C_Read... [06:59:47]Read from MH i2c: E2 0E 00 [06:59:47]MH_I2C_Read... [06:59:47]Read from MH i2c: E2 0E 00 D0 31 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 AC [06:59:47]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:59:47]wFMCommunicate OK [06:59:47]SAM_PROTO_GetShiftState done [06:59:47]FM_GetShiftState done [06:59:47]opened in 1722211641 [06:59:47]opened+sec_in_day 1722298041 [06:59:47]quantity*price = 398602 [06:59:47]sum+1 = 398603 [06:59:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 3986.00 Внесено: 4000.00 СДАЧА: 14.00 НСП 1% : 35.27 НДС 12% : 423.29 Наличными: 3986.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 31 29.07.2024 06:59 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118655 ФПД: 219976994961396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T065952&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118655&fm=219976994961396&tin=02508201610067®Number=0000000000092660&sum=398600 [06:59:48]StoreToDocumentArchive [06:59:48]shift 434 fd 118655 [06:59:48]save to /storage/0434/doc_00118655 [06:59:48]save last doc name /storage/0434/doc_00118655 to /storage/kkm_last_doc_name [06:59:48]save OK [06:59:48]Clear old archive folders... [06:59:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:59:48]tlvbuf is B6E111A0 [06:59:48]SAM_PROTO_ClearQueue [06:59:48]wFMCommunicate request_size=4 [06:59:48]MH_SAM_APDU [06:59:48]CAPDU: 80 09 00 00 [06:59:48]Write to MH i2c: E2 08 00 DD 31 80 09 00 00 00 00 00 00 80 [06:59:48]Write i2c OK [06:59:48]MH_I2C_Read... [06:59:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:59:48]Read from MH i2c: E2 [06:59:48]MH_I2C_Read... [06:59:48]Read from MH i2c: E2 03 00 [06:59:48]MH_I2C_Read... [06:59:48]Read from MH i2c: E2 03 00 DD 31 00 90 00 82 [06:59:48]RAPDU: 90 00 [06:59:48]wFMCommunicate OK [06:59:48]SAM_PROTO_ClearQueue done [06:59:48]KKMCreateOFDPacket [06:59:48]OFDProtocolAddRootSTLVToBuf [06:59:48]FM_MakeSignedData [06:59:48]FM_MakeSignedData [06:59:48]SAM_PROTO_SignData [06:59:48]wFMCommunicate request_size=4 [06:59:48]MH_SAM_APDU [06:59:48]CAPDU: 80 0D 01 02 [06:59:48]Write to MH i2c: E2 08 00 DE 31 80 0D 01 02 00 00 00 00 88 [06:59:48]Write i2c OK [06:59:48]MH_I2C_Read... [06:59:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:59:48]Read from MH i2c: E2 [06:59:48]MH_I2C_Read... [06:59:48]Read from MH i2c: E2 03 00 [06:59:48]MH_I2C_Read... [06:59:48]Read from MH i2c: E2 03 00 DE 31 00 90 00 83 [06:59:48]RAPDU: 90 00 [06:59:48]wFMCommunicate OK [06:59:48]wFMCommunicate request_size=255 [06:59:48]MH_SAM_APDU [06:59:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 CC 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0A 15 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 15 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 A5 00 00 00 00 07 04 06 00 08 15 06 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 E8 3D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7F CF 01 00 35 04 06 00 C8 11 62 A4 [06:59:48]Write to MH i2c: E2 02 01 DF 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 CC 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0A 15 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 15 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 A5 00 00 00 00 07 04 06 00 08 15 06 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 E8 3D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7F CF 01 00 35 04 06 00 C8 11 62 A4 00 00 62 [06:59:48]Write i2c OK [06:59:48]MH_I2C_Read... [06:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:49]Read from MH i2c: E2 [06:59:49]MH_I2C_Read... [06:59:49]Read from MH i2c: E2 03 00 [06:59:49]MH_I2C_Read... [06:59:49]Read from MH i2c: E2 03 00 DF 31 00 90 00 84 [06:59:49]RAPDU: 90 00 [06:59:49]wFMCommunicate OK [06:59:49]wFMCommunicate request_size=7 [06:59:49]MH_SAM_APDU [06:59:49]CAPDU: 80 0D 02 02 02 B7 F4 [06:59:49]Write to MH i2c: E2 0A 00 E0 31 80 0D 02 02 02 00 B7 F4 00 00 3A [06:59:49]Write i2c OK [06:59:49]MH_I2C_Read... [06:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:49]Read from MH i2c: E2 [06:59:49]MH_I2C_Read... [06:59:49]Read from MH i2c: E2 03 00 [06:59:49]MH_I2C_Read... [06:59:49]Read from MH i2c: E2 03 00 E0 31 00 90 00 85 [06:59:49]RAPDU: 90 00 [06:59:49]wFMCommunicate OK [06:59:49]wFMCommunicate request_size=4 [06:59:49]MH_SAM_APDU [06:59:49]CAPDU: 80 0D 03 02 [06:59:49]Write to MH i2c: E2 08 00 E1 31 80 0D 03 02 00 00 00 00 8D [06:59:49]Write i2c OK [06:59:49]MH_I2C_Read... [06:59:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:59:49]Read from MH i2c: E2 [06:59:49]MH_I2C_Read... [06:59:49]Read from MH i2c: E2 0B 00 [06:59:49]MH_I2C_Read... [06:59:49]Read from MH i2c: E2 0B 00 E1 31 00 D6 2A 65 0F DA 3F A4 5A 90 00 19 [06:59:49]RAPDU: D6 2A 65 0F DA 3F A4 5A 90 00 [06:59:49]wFMCommunicate OK [06:59:49]SAM_PROTO_SignData done [06:59:49]FM_MakeSignedData done [06:59:49]CreateOFDProtocolMessage [06:59:49]wFMCommunicate request_size=4 [06:59:49]MH_SAM_APDU [06:59:49]CAPDU: 80 11 00 00 [06:59:49]Write to MH i2c: E2 08 00 E2 31 80 11 00 00 00 00 00 00 8D [06:59:49]Write i2c OK [06:59:49]MH_I2C_Read... [06:59:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:49]Read from MH i2c: E2 [06:59:49]MH_I2C_Read... [06:59:49]Read from MH i2c: E2 17 00 [06:59:49]MH_I2C_Read... [06:59:49]Read from MH i2c: E2 17 00 E2 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E8 [06:59:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:59:49]wFMCommunicate OK [06:59:49]CreateOFDProtocolMessage done [06:59:49]OFDSenderStorePacket 118655 [06:59:49]StoreOFDPacket docnum=118655 [06:59:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5C D9 04 01 CF 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 CC 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0A 15 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 15 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 A5 00 00 00 00 07 04 06 00 08 15 06 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 E8 3D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7F CF 01 00 35 04 06 00 C8 11 62 A4 B7 F4 D6 2A 65 0F DA 3F A4 5A [06:59:49]CheckFolder [06:59:49]dirname=/storage/ofd_packets [06:59:49]CheckFolder done [06:59:49]ProducePacketName [06:59:49]name=ofd_packets/00118655 [06:59:49]NVStorageSaveData ofd_packets/00118655 [06:59:49]File name is /storage/ofd_packets/00118655 [06:59:49]Write 298 bytes [06:59:49]NVStorageSaveData done [06:59:49]OFDSenderStorePacket done [06:59:49]KKMCreateOFDPacket done [06:59:49]NVStorageSaveData kkm_last_timestamp [06:59:49]File name is /storage/kkm_last_timestamp [06:59:49]Write 4 bytes [06:59:49]NVStorageSaveData done [06:59:49]ExternCall_PrintAddStr [06:59:49]wPrintStart [06:59:49]Write to MH i2c: 01 00 00 E3 31 14 [06:59:49]OFD Sender: Processing packet 118655 [packets to send 86, broken 85] [06:59:49]ProducePacketName [06:59:49]name=ofd_packets/00118655 [06:59:49]OFD Sender: To server: pG, [06:59:49]CommunicateWithHost lk.salyk.kg:30040 [06:59:49]ConnectInit lk.salyk.kg [06:59:49]Write i2c OK [06:59:49]MH_I2C_Read... [06:59:49]Read from MH i2c: 01 [06:59:49]MH_I2C_Read... [06:59:49]Read from MH i2c: 01 07 00 [06:59:49]MH_I2C_Read... [06:59:49]Read from MH i2c: 01 07 00 E3 31 00 00 00 00 00 FF 0F 29 [06:59:49]RasterBufferAndPrint [06:59:49]line Счет N : (1)949537 [06:59:49]line ИНН: 02508201610067 [06:59:49]line Контрольно-Кассовый Чек [06:59:49]line ПРОДАЖА [06:59:49]line ТРК (МРК, ГНК) : 11 [06:59:49]line Товар: 2710194800 [06:59:49]line ДТ-К-5 [06:59:49]line 52.310 * 76.20 [06:59:49]line = 3986.02 [06:59:49]line НДС 12% НСП 1% [06:59:49]line > о реализуемом товаре [06:59:49]line ОКРУГЛЕНИЕ: -0.02 [06:59:49]line ИТОГО: 3986.00 [06:59:49]line Внесено: 4000.00 [06:59:49]line СДАЧА: 14.00 [06:59:49]line НСП 1% : 35.27 [06:59:49]line НДС 12% : 423.29 [06:59:49]line Наличными: 3986.00 [06:59:49]line Безнал.: 0.00 [06:59:49]line Место: АЗС № 134 "Партнер Нефть" [06:59:49]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:59:49]line СНО: Общий режим [06:59:49]line Чек 31 29.07.2024 06:59 [06:59:49]line Смена: 434 ФФД: 1.0 [06:59:49]line ЗНМ: 0300000044 [06:59:49]line РНМ: 0000000000092660 [06:59:49]line Версия ККМ: 001 [06:59:49]line ФМ: 0000000000874939 [06:59:49]line ФД: 118655 [06:59:49]line ФПД: 219976994961396 [06:59:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T065952&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118655&fm=219976994961396&tin=02508201610067®Number=0000000000092660&sum=398600 [06:59:49]Connected sock=10 [06:59:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5C D9 04 01 CF 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 CC 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0A 15 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 15 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 A5 00 00 00 00 07 04 06 00 08 15 06 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 E8 3D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7F CF 01 00 35 04 06 00 C8 11 62 A4 written 0, free lines is 4095 [06:59:49]B7 F4 D6 2A 65 0F DA 3F A4 5A [06:59:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1E B0 47 00 5B 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7F CF 01 00 F4 03 04 00 76 EB A6 66 B6 04 01 00 00 C1 A2 AB DA 0D 70 D6 0D [06:59:50]CommunicateWithHost err = 0 [06:59:50]CheckOFDResponse [06:59:50]1017 (14) - 77093643461234 [06:59:50]1041 (16) - 0000000000874939 [06:59:50]1040 (4) - 118655 [06:59:50]1012 (4) - 29.07.2024 01:08 [06:59:50]1206 (1) - 0 [06:59:50]OFD Sender: Remove packet 118655 [06:59:50]ProducePacketName [06:59:50]name=ofd_packets/00118655 [06:59:50]NVStorageDeleteData [06:59:50]Write to MH i2c: 01 00 00 0D 32 3F [06:59:50]Write i2c OK [06:59:50]MH_I2C_Read... [06:59:50]Read from MH i2c: 01 [06:59:50]MH_I2C_Read... [06:59:50]Read from MH i2c: 01 07 00 [06:59:50]MH_I2C_Read... [06:59:50]Read from MH i2c: 01 07 00 0D 32 00 00 00 00 00 E9 0C 3B [06:59:50]RasterBufferAndPrint [06:59:50]line [06:59:50]line [06:59:50]line [06:59:50]line [06:59:50]line [06:59:50]written 0, free lines is 3317 [06:59:50]MH_Cut [06:59:50]Write to MH i2c: D1 01 00 14 32 01 18 [06:59:50]Write i2c OK [06:59:50]MH_I2C_Read... [06:59:50]Read from MH i2c: D1 [06:59:50]MH_I2C_Read... [06:59:50]Read from MH i2c: D1 01 00 [06:59:50]MH_I2C_Read... [06:59:50]Read from MH i2c: D1 01 00 14 32 00 17 [06:59:50]Write to MH i2c: 01 00 00 15 32 47 [06:59:50]Write i2c OK [06:59:50]MH_I2C_Read... [06:59:50]OFD Sender: No OFD packet to send [06:59:51]*** Cut start [06:59:51]*** Partial cut [06:59:51]*** CUTSNS_PIN = 1 [06:59:51]*** CUTSNS_PIN = 0 [06:59:51]*** Brake cut motor [06:59:51]Read from MH i2c: 01 [06:59:51]MH_I2C_Read... [06:59:51]*** Stop cut motor [06:59:51]*** Cut end [06:59:51]Read from MH i2c: 01 07 00 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: 01 07 00 15 32 00 00 00 00 00 FF 0F 5C [06:59:51]process_action close_receipt done [06:59:51]requested_data is exist [06:59:51]produce_requested_data [06:59:51]requested_item fm.sn is exist - process it [06:59:51]wFMCommunicate request_size=4 [06:59:51]MH_SAM_APDU [06:59:51]CAPDU: 80 11 00 00 [06:59:51]Write to MH i2c: E2 08 00 16 32 80 11 00 00 00 00 00 00 C2 [06:59:51]Write i2c OK [06:59:51]MH_I2C_Read... [06:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:51]Read from MH i2c: E2 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: E2 17 00 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: E2 17 00 16 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1D [06:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:59:51]wFMCommunicate OK [06:59:51]requested_item fd.num is exist - process it [06:59:51]SAM_PROTO_GetFieldsCounters [06:59:51]wFMCommunicate request_size=4 [06:59:51]MH_SAM_APDU [06:59:51]CAPDU: 80 13 00 00 [06:59:51]Write to MH i2c: E2 08 00 17 32 80 13 00 00 00 00 00 00 C5 [06:59:51]Write i2c OK [06:59:51]MH_I2C_Read... [06:59:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:59:51]Read from MH i2c: E2 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: E2 62 00 [06:59:51]MH_I2C_Read... [06:59:52]Read from MH i2c: E2 62 00 17 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7F CF 01 00 0E 04 04 00 B2 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 4B [06:59: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7F CF 01 00 0E 04 04 00 B2 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 [06:59:52]wFMCommunicate OK [06:59:52]SAM_PROTO_GetFieldsCounters done [06:59:52]requested_item shift.num is exist - process it [06:59:52]requested_item shift.opened is exist - process it [06:59:52]req_shift_opened [06:59:52]FM_GetShiftState [06:59:52]SAM_PROTO_GetShiftState [06:59:52]wFMCommunicate request_size=4 [06:59:52]MH_SAM_APDU [06:59:52]CAPDU: 80 13 01 00 [06:59:52]Write to MH i2c: E2 08 00 18 32 80 13 01 00 00 00 00 00 C7 [06:59:52]Write i2c OK [06:59:52]MH_I2C_Read... [06:59:52]Read from MH i2c: E2 [06:59:52]MH_I2C_Read... [06:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:52]Read from MH i2c: E2 0E 00 [06:59:52]MH_I2C_Read... [06:59:52]Read from MH i2c: E2 0E 00 18 32 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F5 [06:59:52]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [06:59:52]wFMCommunicate OK [06:59:52]SAM_PROTO_GetShiftState done [06:59:52]FM_GetShiftState done [06:59:52]req_shift_opened done [06:59:52]requested_item shift.open_date is exist - process it [06:59:52]req_shift_open_date [06:59:52]req_shift_open_date done [06:59:52]produce_requested_data done [06:59:52]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118655,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [06:59:52]process_action_free close_receipt [06:59:52]json_value_free [06:59:52]json_value_free done [06:59:52]process_json_proto returns [06:59:52]Send response to host [06:59:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118655,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [06:59:52]free response buf [06:59:52]execute_script done [06:59:52]execute_script returns [06:59:52]free content buf [06:59:52]Sock 9.Close socket [06:59:52]Sock 9.Thread stoped [06:59:55]OFD Sender: No OFD packet to send [07:00:00]OFD Sender: No OFD packet to send [07:00:05]OFD Sender: No OFD packet to send [07:00:10]OFD Sender: No OFD packet to send [07:00:15]OFD Sender: No OFD packet to send [07:00:20]OFD Sender: No OFD packet to send [07:00:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:50]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:56]OFD Sender: No OFD packet to send [07:05:01]OFD Sender: No OFD packet to send [07:05:06]OFD Sender: No OFD packet to send [07:05:11]OFD Sender: No OFD packet to send [07:05:16]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:46]OFD Sender: No OFD packet to send [07:07:51]OFD Sender: No OFD packet to send [07:07:56]OFD Sender: No OFD packet to send [07:08:01]OFD Sender: No OFD packet to send [07:08:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:11]OFD Sender: No OFD packet to send [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:46]OFD Sender: No OFD packet to send [07:11:51]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]accept exits with 7 [07:17:11]New connection [07:17:11]New thread 3067239780 created [07:17:11]Thread 3067383140 joined [07:17:11]Waiting for new connection... [07:17:11] Sock 7.Parse request [07:17:11]Sock 7.Check first char [07:17:11]Sock 7.First char is OK [07:17:11]request: POST /json_proto HTTP/1.0 [07:17:11]Method: POST [07:17:11]URL: /json_proto [07:17:11]Method is POST - this is cgi request [07:17:11]url: /json_proto [07:17:11]query_string will be loaded in cgi processing [07:17:11]execute_cgi json_proto POST (null) [07:17:11]execute_cgi path=json_proto method=POST [07:17:11]POST find Content-Length [07:17:11]Host: 172.17.45.7:8080 [07:17:11]Content-Length: 677 [07:17:11]Content-Type: application/json [07:17:11] [07:17:11]POST finish read [07:17:11]Found Content-Length = 677 [07:17:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:11]execute_script... [07:17:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:11]POST & json_proto [07:17:11]process_json_proto [07:17:11]json parsed OK: [07:17:11]protocol is kg_v1.0 [07:17:11]action value=close_receipt [07:17:11]process_action close_receipt [07:17:11]cmd_close_receipt [07:17:11]MH_GetDate [07:17:11]Write to MH i2c: F0 00 00 19 32 3A [07:17:11]Write i2c OK [07:17:11]MH_I2C_Read... [07:17:11]Read from MH i2c: F0 [07:17:11]MH_I2C_Read... [07:17:11]Read from MH i2c: F0 09 00 [07:17:11]MH_I2C_Read... [07:17:11]Read from MH i2c: F0 09 00 19 32 00 FC 41 A7 66 90 0F 3E 66 D0 [07:17:11]GetLastDocTimeStamp 1722236392 [07:17:11]current date 1722237436 [07:17:11]FM_GetShiftState [07:17:11]SAM_PROTO_GetShiftState [07:17:11]wFMCommunicate request_size=4 [07:17:11]MH_SAM_APDU [07:17:11]CAPDU: 80 13 01 00 [07:17:11]Write to MH i2c: E2 08 00 1A 32 80 13 01 00 00 00 00 00 C9 [07:17:11]Write i2c OK [07:17:11]MH_I2C_Read... [07:17:11]OFD Sender: No OFD packet to send [07:17:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:11]Read from MH i2c: E2 [07:17:11]MH_I2C_Read... [07:17:11]Read from MH i2c: E2 0E 00 [07:17:11]MH_I2C_Read... [07:17:11]Read from MH i2c: E2 0E 00 1A 32 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F7 [07:17:11]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [07:17:11]wFMCommunicate OK [07:17:11]SAM_PROTO_GetShiftState done [07:17:11]FM_GetShiftState done [07:17:11]opened in 1722211641 [07:17:11]opened+sec_in_day 1722298041 [07:17:11]quantity*price = 30035 [07:17:11]sum+1 = 30036 [07:17:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 32 29.07.2024 07:17 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118656 ФПД: 260170067311267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T071716&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118656&fm=260170067311267&tin=02508201610067®Number=0000000000092660&sum=30000 [07:17:12]StoreToDocumentArchive [07:17:12]shift 434 fd 118656 [07:17:12]save to /storage/0434/doc_00118656 [07:17:12]save last doc name /storage/0434/doc_00118656 to /storage/kkm_last_doc_name [07:17:12]save OK [07:17:12]Clear old archive folders... [07:17:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:17:12]tlvbuf is 01F69F90 [07:17:12]SAM_PROTO_ClearQueue [07:17:12]wFMCommunicate request_size=4 [07:17:12]MH_SAM_APDU [07:17:12]CAPDU: 80 09 00 00 [07:17:12]Write to MH i2c: E2 08 00 27 32 80 09 00 00 00 00 00 00 CB [07:17:12]Write i2c OK [07:17:12]MH_I2C_Read... [07:17:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:17:12]Read from MH i2c: E2 [07:17:12]MH_I2C_Read... [07:17:12]Read from MH i2c: E2 03 00 [07:17:12]MH_I2C_Read... [07:17:12]Read from MH i2c: E2 03 00 27 32 00 90 00 CD [07:17:12]RAPDU: 90 00 [07:17:12]wFMCommunicate OK [07:17:12]SAM_PROTO_ClearQueue done [07:17:12]KKMCreateOFDPacket [07:17:12]OFDProtocolAddRootSTLVToBuf [07:17:12]FM_MakeSignedData [07:17:12]FM_MakeSignedData [07:17:12]SAM_PROTO_SignData [07:17:12]wFMCommunicate request_size=4 [07:17:12]MH_SAM_APDU [07:17:12]CAPDU: 80 0D 01 02 [07:17:12]Write to MH i2c: E2 08 00 28 32 80 0D 01 02 00 00 00 00 D3 [07:17:12]Write i2c OK [07:17:12]MH_I2C_Read... [07:17:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:17:12]Read from MH i2c: E2 [07:17:12]MH_I2C_Read... [07:17:12]Read from MH i2c: E2 03 00 [07:17:12]MH_I2C_Read... [07:17:12]Read from MH i2c: E2 03 00 28 32 00 90 00 CE [07:17:12]RAPDU: 90 00 [07:17:12]wFMCommunicate OK [07:17:12]wFMCommunicate request_size=255 [07:17:12]MH_SAM_APDU [07:17:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 FC 41 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 CF 01 00 35 04 06 00 EC [07:17:12]Write to MH i2c: E2 02 01 29 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 FC 41 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 CF 01 00 35 04 06 00 EC 00 00 CF [07:17:13]Write i2c OK [07:17:13]MH_I2C_Read... [07:17:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:13]Read from MH i2c: E2 [07:17:13]MH_I2C_Read... [07:17:13]Read from MH i2c: E2 03 00 [07:17:13]MH_I2C_Read... [07:17:13]Read from MH i2c: E2 03 00 29 32 00 90 00 CF [07:17:13]RAPDU: 90 00 [07:17:13]wFMCommunicate OK [07:17:13]wFMCommunicate request_size=10 [07:17:13]MH_SAM_APDU [07:17:13]CAPDU: 80 0D 02 02 05 9F 90 71 7A A3 [07:17:13]Write to MH i2c: E2 0D 00 2A 32 80 0D 02 02 05 00 9F 90 71 7A A3 00 00 9D [07:17:13]Write i2c OK [07:17:13]MH_I2C_Read... [07:17:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:13]Read from MH i2c: E2 [07:17:13]MH_I2C_Read... [07:17:13]Read from MH i2c: E2 03 00 [07:17:13]MH_I2C_Read... [07:17:13]Read from MH i2c: E2 03 00 2A 32 00 90 00 D0 [07:17:13]RAPDU: 90 00 [07:17:13]wFMCommunicate OK [07:17:13]wFMCommunicate request_size=4 [07:17:13]MH_SAM_APDU [07:17:13]CAPDU: 80 0D 03 02 [07:17:13]Write to MH i2c: E2 08 00 2B 32 80 0D 03 02 00 00 00 00 D8 [07:17:13]Write i2c OK [07:17:13]MH_I2C_Read... [07:17:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:17:13]Read from MH i2c: E2 [07:17:13]MH_I2C_Read... [07:17:13]Read from MH i2c: E2 0B 00 [07:17:13]MH_I2C_Read... [07:17:13]Read from MH i2c: E2 0B 00 2B 32 00 C5 6C 1A 2B 36 A5 AC D5 90 00 AB [07:17:13]RAPDU: C5 6C 1A 2B 36 A5 AC D5 90 00 [07:17:13]wFMCommunicate OK [07:17:13]SAM_PROTO_SignData done [07:17:13]FM_MakeSignedData done [07:17:13]CreateOFDProtocolMessage [07:17:13]wFMCommunicate request_size=4 [07:17:13]MH_SAM_APDU [07:17:13]CAPDU: 80 11 00 00 [07:17:13]Write to MH i2c: E2 08 00 2C 32 80 11 00 00 00 00 00 00 D8 [07:17:13]Write i2c OK [07:17:13]MH_I2C_Read... [07:17:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:13]Read from MH i2c: E2 [07:17:13]MH_I2C_Read... [07:17:13]Read from MH i2c: E2 17 00 [07:17:13]MH_I2C_Read... [07:17:13]Read from MH i2c: E2 17 00 2C 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 33 [07:17:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:17:13]wFMCommunicate OK [07:17:13]CreateOFDProtocolMessage done [07:17:13]OFDSenderStorePacket 118656 [07:17:13]StoreOFDPacket docnum=118656 [07:17:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B5 F9 07 01 CF 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 FC 41 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 CF 01 00 35 04 06 00 EC 9F 90 71 7A A3 C5 6C 1A 2B 36 A5 AC D5 [07:17:13]CheckFolder [07:17:13]dirname=/storage/ofd_packets [07:17:13]CheckFolder done [07:17:13]ProducePacketName [07:17:13]name=ofd_packets/00118656 [07:17:13]NVStorageSaveData ofd_packets/00118656 [07:17:13]File name is /storage/ofd_packets/00118656 [07:17:13]Write 301 bytes [07:17:13]NVStorageSaveData done [07:17:13]OFDSenderStorePacket done [07:17:13]KKMCreateOFDPacket done [07:17:13]NVStorageSaveData kkm_last_timestamp [07:17:13]File name is /storage/kkm_last_timestamp [07:17:13]Write 4 bytes [07:17:13]NVStorageSaveData done [07:17:13]ExternCall_PrintAddStr [07:17:13]wPrintStart [07:17:13]Write to MH i2c: 01 00 00 2D 32 5F [07:17:13]Write i2c OK [07:17:13]MH_I2C_Read... [07:17:13]Read from MH i2c: 01 [07:17:13]MH_I2C_Read... [07:17:13]Read from MH i2c: 01 07 00 [07:17:13]MH_I2C_Read... [07:17:13]Read from MH i2c: 01 07 00 2D 32 00 00 00 00 00 FF 0F 74 [07:17:13]RasterBufferAndPrint [07:17:13]line Счет N : (1)949538 [07:17:13]line ИНН: 02508201610067 [07:17:13]line Контрольно-Кассовый Чек [07:17:13]line ПРОДАЖА [07:17:13]line ТРК (МРК, ГНК) : 31 [07:17:13]line Товар: 2710124130 [07:17:13]line Аи-92-К-4 [07:17:13]line 4.430 * 67.80 [07:17:13]line = 300.35 [07:17:13]line НДС 12% НСП 1% [07:17:13]line > о реализуемом товаре [07:17:13]line ОКРУГЛЕНИЕ: -0.35 [07:17:13]line ИТОГО: 300.00 [07:17:13]line Внесено: 300.00 [07:17:13]line СДАЧА: 0.00 [07:17:13]line НСП 1% : 2.66 [07:17:13]line НДС 12% : 31.90 [07:17:13]line Наличными: 300.00 [07:17:13]line Безнал.: 0.00 [07:17:13]line Место: АЗС № 134 "Партнер Нефть" [07:17:13]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:17:13]line СНО: Общий режим [07:17:13]line Чек 32 29.07.2024 07:17 [07:17:13]line Смена: 434 ФФД: 1.0 [07:17:13]line ЗНМ: 0300000044 [07:17:13]line РНМ: 0000000000092660 [07:17:13]line Версия ККМ: 001 [07:17:13]line ФМ: 0000000000874939 [07:17:13]line ФД: 118656 [07:17:13]line ФПД: 260170067311267 [07:17:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T071716&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118656&fm=260170067311267&tin=02508201610067®Number=0000000000092660&sum=30000 [07:17:13]OFD Sender: Processing packet 118656 [packets to send 86, broken 85] [07:17:13]ProducePacketName [07:17:13]name=ofd_packets/00118656 [07:17:13]OFD Sender: To server: pG, [07:17:13]CommunicateWithHost lk.salyk.kg:30040 [07:17:13]ConnectInit lk.salyk.kg [07:17:13]written 0, free lines is 4095 [07:17:13]Connected sock=10 [07:17:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B5 F9 07 01 CF 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 FC 41 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 CF 01 00 35 04 06 00 EC 9F 90 71 7A A3 C5 6C 1A 2B 36 A5 AC D5 [07:17:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C8 FC 47 00 71 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 CF 01 00 F4 03 04 00 8A EF A6 66 B6 04 01 00 00 65 25 A2 7E B8 A1 70 22 [07:17:14]CommunicateWithHost err = 0 [07:17:14]CheckOFDResponse [07:17:14]1017 (14) - 77093643461234 [07:17:14]1041 (16) - 0000000000874939 [07:17:14]1040 (4) - 118656 [07:17:14]1012 (4) - 29.07.2024 01:25 [07:17:14]1206 (1) - 0 [07:17:14]OFD Sender: Remove packet 118656 [07:17:14]ProducePacketName [07:17:14]name=ofd_packets/00118656 [07:17:14]NVStorageDeleteData [07:17:14]Write to MH i2c: 01 00 00 57 32 89 [07:17:14]Write i2c OK [07:17:14]MH_I2C_Read... [07:17:14]Read from MH i2c: 01 [07:17:14]MH_I2C_Read... [07:17:14]Read from MH i2c: 01 07 00 [07:17:14]MH_I2C_Read... [07:17:14]Read from MH i2c: 01 07 00 57 32 00 00 00 00 00 C4 0C 60 [07:17:14]RasterBufferAndPrint [07:17:14]line [07:17:14]line [07:17:14]line [07:17:14]line [07:17:14]line [07:17:14]written 0, free lines is 3274 [07:17:14]MH_Cut [07:17:14]Write to MH i2c: D1 01 00 5E 32 01 62 [07:17:14]Write i2c OK [07:17:14]MH_I2C_Read... [07:17:14]Read from MH i2c: D1 [07:17:14]MH_I2C_Read... [07:17:14]Read from MH i2c: D1 01 00 [07:17:14]MH_I2C_Read... [07:17:14]Read from MH i2c: D1 01 00 5E 32 00 61 [07:17:14]Write to MH i2c: 01 00 00 5F 32 91 [07:17:14]Write i2c OK [07:17:14]MH_I2C_Read... [07:17:14]OFD Sender: No OFD packet to send [07:17:14]*** Cut start [07:17:14]*** Partial cut [07:17:14]*** CUTSNS_PIN = 1 [07:17:15]*** CUTSNS_PIN = 0 [07:17:15]*** Brake cut motor [07:17:15]Read from MH i2c: 01 [07:17:15]MH_I2C_Read... [07:17:15]*** Stop cut motor [07:17:15]*** Cut end [07:17:15]Read from MH i2c: 01 07 00 [07:17:15]MH_I2C_Read... [07:17:15]Read from MH i2c: 01 07 00 5F 32 00 00 00 00 00 FF 0F A6 [07:17:15]process_action close_receipt done [07:17:15]requested_data is exist [07:17:15]produce_requested_data [07:17:15]requested_item fm.sn is exist - process it [07:17:15]wFMCommunicate request_size=4 [07:17:15]MH_SAM_APDU [07:17:15]CAPDU: 80 11 00 00 [07:17:15]Write to MH i2c: E2 08 00 60 32 80 11 00 00 00 00 00 00 0C [07:17:15]Write i2c OK [07:17:15]MH_I2C_Read... [07:17:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:15]Read from MH i2c: E2 [07:17:15]MH_I2C_Read... [07:17:15]Read from MH i2c: E2 17 00 [07:17:15]MH_I2C_Read... [07:17:15]Read from MH i2c: E2 17 00 60 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 67 [07:17:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:17:15]wFMCommunicate OK [07:17:15]requested_item fd.num is exist - process it [07:17:15]SAM_PROTO_GetFieldsCounters [07:17:15]wFMCommunicate request_size=4 [07:17:15]MH_SAM_APDU [07:17:15]CAPDU: 80 13 00 00 [07:17:15]Write to MH i2c: E2 08 00 61 32 80 13 00 00 00 00 00 00 0F [07:17:15]Write i2c OK [07:17:15]MH_I2C_Read... [07:17:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:17:15]Read from MH i2c: E2 [07:17:15]MH_I2C_Read... [07:17:15]Read from MH i2c: E2 62 00 [07:17:15]MH_I2C_Read... [07:17:15]Read from MH i2c: E2 62 00 61 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 80 CF 01 00 0E 04 04 00 B2 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 99 [07:17: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 80 CF 01 00 0E 04 04 00 B2 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 [07:17:15]wFMCommunicate OK [07:17:15]SAM_PROTO_GetFieldsCounters done [07:17:15]requested_item shift.num is exist - process it [07:17:15]requested_item shift.opened is exist - process it [07:17:15]req_shift_opened [07:17:15]FM_GetShiftState [07:17:15]SAM_PROTO_GetShiftState [07:17:15]wFMCommunicate request_size=4 [07:17:15]MH_SAM_APDU [07:17:15]CAPDU: 80 13 01 00 [07:17:15]Write to MH i2c: E2 08 00 62 32 80 13 01 00 00 00 00 00 11 [07:17:15]Write i2c OK [07:17:15]MH_I2C_Read... [07:17:15]Read from MH i2c: E2 [07:17:15]MH_I2C_Read... [07:17:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:15]Read from MH i2c: E2 0E 00 [07:17:15]MH_I2C_Read... [07:17:15]Read from MH i2c: E2 0E 00 62 32 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 3F [07:17:15]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [07:17:15]wFMCommunicate OK [07:17:15]SAM_PROTO_GetShiftState done [07:17:15]FM_GetShiftState done [07:17:15]req_shift_opened done [07:17:15]requested_item shift.open_date is exist - process it [07:17:15]req_shift_open_date [07:17:15]req_shift_open_date done [07:17:15]produce_requested_data done [07:17:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118656,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [07:17:15]process_action_free close_receipt [07:17:15]json_value_free [07:17:15]json_value_free done [07:17:15]process_json_proto returns [07:17:15]Send response to host [07:17:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118656,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [07:17:15]free response buf [07:17:15]execute_script done [07:17:15]execute_script returns [07:17:15]free content buf [07:17:15]Sock 7.Close socket [07:17:15]Sock 7.Thread stoped [07:17:19]OFD Sender: No OFD packet to send [07:17:24]OFD Sender: No OFD packet to send [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [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:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:15]OFD Sender: No OFD packet to send [07:24:20]OFD Sender: No OFD packet to send [07:24:25]OFD Sender: No OFD packet to send [07:24:30]OFD Sender: No OFD packet to send [07:24:35]OFD Sender: No OFD packet to send [07:24:40]OFD Sender: No OFD packet to send [07:24:45]OFD Sender: No OFD packet to send [07:24:50]OFD Sender: No OFD packet to send [07:24:55]OFD Sender: No OFD packet to send [07:25:00]OFD Sender: No OFD packet to send [07:25:05]OFD Sender: No OFD packet to send [07:25:10]OFD Sender: No OFD packet to send [07:25:15]OFD Sender: No OFD packet to send [07:25:20]OFD Sender: No OFD packet to send [07:25:25]OFD Sender: No OFD packet to send [07:25:30]OFD Sender: No OFD packet to send [07:25:35]OFD Sender: No OFD packet to send [07:25:40]OFD Sender: No OFD packet to send [07:25:45]OFD Sender: No OFD packet to send [07:25:50]OFD Sender: No OFD packet to send [07:25:55]OFD Sender: No OFD packet to send [07:26:00]OFD Sender: No OFD packet to send [07:26:05]OFD Sender: No OFD packet to send [07:26:10]OFD Sender: No OFD packet to send [07:26:15]OFD Sender: No OFD packet to send [07:26:20]OFD Sender: No OFD packet to send [07:26:25]OFD Sender: No OFD packet to send [07:26:30]OFD Sender: No OFD packet to send [07:26:35]OFD Sender: No OFD packet to send [07:26:40]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:25]OFD Sender: No OFD packet to send [07:30:30]OFD Sender: No OFD packet to send [07:30:35]OFD Sender: No OFD packet to send [07:30:40]OFD Sender: No OFD packet to send [07:30:45]OFD Sender: No OFD packet to send [07:30:50]OFD Sender: No OFD packet to send [07:30:55]OFD Sender: No OFD packet to send [07:31:00]OFD Sender: No OFD packet to send [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:55]OFD Sender: No OFD packet to send [07:33:00]OFD Sender: No OFD packet to send [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:15]OFD Sender: No OFD packet to send [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:18]accept exits with 9 [07:38:18]New connection [07:38:18]New thread 3067383140 created [07:38:18]Thread 3067239780 joined [07:38:18]Waiting for new connection... [07:38:18] Sock 9.Parse request [07:38:18]Sock 9.Check first char [07:38:18]Sock 9.First char is OK [07:38:18]request: POST /json_proto HTTP/1.0 [07:38:18]Method: POST [07:38:18]URL: /json_proto [07:38:18]Method is POST - this is cgi request [07:38:18]url: /json_proto [07:38:18]query_string will be loaded in cgi processing [07:38:18]execute_cgi json_proto POST (null) [07:38:18]execute_cgi path=json_proto method=POST [07:38:18]POST find Content-Length [07:38:18]Host: 172.17.45.7:8080 [07:38:18]Content-Length: 677 [07:38:18]Content-Type: application/json [07:38:18] [07:38:18]POST finish read [07:38:18]Found Content-Length = 677 [07:38:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:38:18]execute_script... [07:38:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:38:18]POST & json_proto [07:38:18]process_json_proto [07:38:18]json parsed OK: [07:38:18]protocol is kg_v1.0 [07:38:18]action value=close_receipt [07:38:18]process_action close_receipt [07:38:18]cmd_close_receipt [07:38:18]MH_GetDate [07:38:18]Write to MH i2c: F0 00 00 63 32 84 [07:38:18]Write i2c OK [07:38:18]MH_I2C_Read... [07:38:18]Read from MH i2c: F0 [07:38:18]MH_I2C_Read... [07:38:18]Read from MH i2c: F0 09 00 [07:38:18]MH_I2C_Read... [07:38:18]Read from MH i2c: F0 09 00 63 32 00 EF 46 A7 66 90 0F 3E 66 12 [07:38:18]GetLastDocTimeStamp 1722237436 [07:38:18]current date 1722238703 [07:38:18]FM_GetShiftState [07:38:18]SAM_PROTO_GetShiftState [07:38:18]wFMCommunicate request_size=4 [07:38:18]MH_SAM_APDU [07:38:18]CAPDU: 80 13 01 00 [07:38:18]Write to MH i2c: E2 08 00 64 32 80 13 01 00 00 00 00 00 13 [07:38:18]Write i2c OK [07:38:18]MH_I2C_Read... [07:38:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:18]Read from MH i2c: E2 [07:38:18]MH_I2C_Read... [07:38:18]Read from MH i2c: E2 0E 00 [07:38:18]MH_I2C_Read... [07:38:18]Read from MH i2c: E2 0E 00 64 32 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 41 [07:38:18]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [07:38:18]wFMCommunicate OK [07:38:18]SAM_PROTO_GetShiftState done [07:38:18]FM_GetShiftState done [07:38:18]opened in 1722211641 [07:38:18]opened+sec_in_day 1722298041 [07:38:18]quantity*price = 20001 [07:38:18]sum+1 = 20002 [07:38:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 33 29.07.2024 07:38 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118657 ФПД: 130046084421492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T073823&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118657&fm=130046084421492&tin=02508201610067®Number=0000000000092660&sum=20000 [07:38:19]StoreToDocumentArchive [07:38:19]shift 434 fd 118657 [07:38:19]save to /storage/0434/doc_00118657 [07:38:19]save last doc name /storage/0434/doc_00118657 to /storage/kkm_last_doc_name [07:38:19]save OK [07:38:19]Clear old archive folders... [07:38:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:38:19]tlvbuf is B6E11010 [07:38:19]SAM_PROTO_ClearQueue [07:38:19]wFMCommunicate request_size=4 [07:38:19]MH_SAM_APDU [07:38:19]CAPDU: 80 09 00 00 [07:38:19]Write to MH i2c: E2 08 00 71 32 80 09 00 00 00 00 00 00 15 [07:38:19]Write i2c OK [07:38:19]MH_I2C_Read... [07:38:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:38:19]Read from MH i2c: E2 [07:38:19]MH_I2C_Read... [07:38:19]Read from MH i2c: E2 03 00 [07:38:19]MH_I2C_Read... [07:38:19]Read from MH i2c: E2 03 00 71 32 00 90 00 17 [07:38:19]RAPDU: 90 00 [07:38:19]wFMCommunicate OK [07:38:19]SAM_PROTO_ClearQueue done [07:38:19]KKMCreateOFDPacket [07:38:19]OFDProtocolAddRootSTLVToBuf [07:38:19]FM_MakeSignedData [07:38:19]FM_MakeSignedData [07:38:19]SAM_PROTO_SignData [07:38:19]wFMCommunicate request_size=4 [07:38:19]MH_SAM_APDU [07:38:19]CAPDU: 80 0D 01 02 [07:38:19]Write to MH i2c: E2 08 00 72 32 80 0D 01 02 00 00 00 00 1D [07:38:19]Write i2c OK [07:38:19]MH_I2C_Read... [07:38:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:38:20]Read from MH i2c: E2 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: E2 03 00 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: E2 03 00 72 32 00 90 00 18 [07:38:20]RAPDU: 90 00 [07:38:20]wFMCommunicate OK [07:38:20]wFMCommunicate request_size=255 [07:38:20]MH_SAM_APDU [07:38:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 EF 46 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 81 CF 01 00 35 04 06 00 76 [07:38:20]Write to MH i2c: E2 02 01 73 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 EF 46 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 81 CF 01 00 35 04 06 00 76 00 00 80 [07:38:20]Write i2c OK [07:38:20]MH_I2C_Read... [07:38:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:20]Read from MH i2c: E2 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: E2 03 00 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: E2 03 00 73 32 00 90 00 19 [07:38:20]RAPDU: 90 00 [07:38:20]wFMCommunicate OK [07:38:20]wFMCommunicate request_size=10 [07:38:20]MH_SAM_APDU [07:38:20]CAPDU: 80 0D 02 02 05 46 B6 AA 97 74 [07:38:20]Write to MH i2c: E2 0D 00 74 32 80 0D 02 02 05 00 46 B6 AA 97 74 00 00 DB [07:38:20]Write i2c OK [07:38:20]MH_I2C_Read... [07:38:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:20]Read from MH i2c: E2 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: E2 03 00 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: E2 03 00 74 32 00 90 00 1A [07:38:20]RAPDU: 90 00 [07:38:20]wFMCommunicate OK [07:38:20]wFMCommunicate request_size=4 [07:38:20]MH_SAM_APDU [07:38:20]CAPDU: 80 0D 03 02 [07:38:20]Write to MH i2c: E2 08 00 75 32 80 0D 03 02 00 00 00 00 22 [07:38:20]Write i2c OK [07:38:20]MH_I2C_Read... [07:38:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:38:20]Read from MH i2c: E2 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: E2 0B 00 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: E2 0B 00 75 32 00 96 C7 D0 13 DF EE 3B A4 90 00 0F [07:38:20]RAPDU: 96 C7 D0 13 DF EE 3B A4 90 00 [07:38:20]wFMCommunicate OK [07:38:20]SAM_PROTO_SignData done [07:38:20]FM_MakeSignedData done [07:38:20]CreateOFDProtocolMessage [07:38:20]wFMCommunicate request_size=4 [07:38:20]MH_SAM_APDU [07:38:20]CAPDU: 80 11 00 00 [07:38:20]Write to MH i2c: E2 08 00 76 32 80 11 00 00 00 00 00 00 22 [07:38:20]Write i2c OK [07:38:20]MH_I2C_Read... [07:38:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:20]Read from MH i2c: E2 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: E2 17 00 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: E2 17 00 76 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7D [07:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:38:20]wFMCommunicate OK [07:38:20]CreateOFDProtocolMessage done [07:38:20]OFDSenderStorePacket 118657 [07:38:20]StoreOFDPacket docnum=118657 [07:38:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 95 F4 07 01 68 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 EF 46 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 81 CF 01 00 35 04 06 00 76 46 B6 AA 97 74 96 C7 D0 13 DF EE 3B A4 [07:38:20]CheckFolder [07:38:20]dirname=/storage/ofd_packets [07:38:20]CheckFolder done [07:38:20]ProducePacketName [07:38:20]name=ofd_packets/00118657 [07:38:20]NVStorageSaveData ofd_packets/00118657 [07:38:20]File name is /storage/ofd_packets/00118657 [07:38:20]Write 301 bytes [07:38:20]NVStorageSaveData done [07:38:20]OFDSenderStorePacket done [07:38:20]KKMCreateOFDPacket done [07:38:20]NVStorageSaveData kkm_last_timestamp [07:38:20]File name is /storage/kkm_last_timestamp [07:38:20]Write 4 bytes [07:38:20]NVStorageSaveData done [07:38:20]ExternCall_PrintAddStr [07:38:20]wPrintStart [07:38:20]Write to MH i2c: 01 00 00 77 32 A9 [07:38:20]Write i2c OK [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: 01 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: 01 07 00 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: 01 07 00 77 32 00 00 00 00 00 FF 0F BE [07:38:20]RasterBufferAndPrint [07:38:20]line Счет N : (1)949539 [07:38:20]line ИНН: 02508201610067 [07:38:20]line Контрольно-Кассовый Чек [07:38:20]line ПРОДАЖА [07:38:20]line ТРК (МРК, ГНК) : 31 [07:38:20]line Товар: 2710124130 [07:38:20]line Аи-92-К-4 [07:38:20]line 2.950 * 67.80 [07:38:20]line = 200.01 [07:38:20]line НДС 12% НСП 1% [07:38:20]line > о реализуемом товаре [07:38:20]line ОКРУГЛЕНИЕ: -0.01 [07:38:20]line ИТОГО: 200.00 [07:38:20]line Внесено: 200.00 [07:38:20]line СДАЧА: 0.00 [07:38:20]line НСП 1% : 1.77 [07:38:20]line НДС 12% : 21.24 [07:38:20]line Наличными: 200.00 [07:38:20]line Безнал.: 0.00 [07:38:20]line Место: АЗС № 134 "Партнер Нефть" [07:38:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:38:20]line СНО: Общий режим [07:38:20]line Чек 33 29.07.2024 07:38 [07:38:20]line Смена: 434 ФФД: 1.0 [07:38:20]line ЗНМ: 0300000044 [07:38:20]line РНМ: 0000000000092660 [07:38:20]line Версия ККМ: 001 [07:38:20]line ФМ: 0000000000874939 [07:38:20]line ФД: 118657 [07:38:20]line ФПД: 130046084421492 [07:38:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T073823&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118657&fm=130046084421492&tin=02508201610067®Number=0000000000092660&sum=20000 [07:38:20]OFD Sender: Processing packet 118657 [packets to send 86, broken 85] [07:38:20]ProducePacketName [07:38:20]name=ofd_packets/00118657 [07:38:20]OFD Sender: To server: pG, [07:38:20]CommunicateWithHost lk.salyk.kg:30040 [07:38:20]ConnectInit lk.salyk.kg [07:38:20]written 0, free lines is 4095 [07:38:20]Connected sock=10 [07:38:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 95 F4 07 01 68 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 EF 46 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 81 CF 01 00 35 04 06 00 76 46 B6 AA 97 74 96 C7 D0 13 DF EE 3B A4 [07:38:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 39 D0 47 00 47 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 34 39 33 39 10 04 04 00 81 CF 01 00 F4 03 04 00 7D F4 A6 66 B6 04 01 00 00 F5 03 D7 1F 4D BD 7F 65 [07:38:21]CommunicateWithHost err = 0 [07:38:21]CheckOFDResponse [07:38:21]1017 (14) - 77093643461234 [07:38:21]1041 (16) - 0000000000874939 [07:38:21]1040 (4) - 118657 [07:38:21]1012 (4) - 29.07.2024 01:46 [07:38:21]1206 (1) - 0 [07:38:21]OFD Sender: Remove packet 118657 [07:38:21]ProducePacketName [07:38:21]name=ofd_packets/00118657 [07:38:21]NVStorageDeleteData [07:38:21]Write to MH i2c: 01 00 00 A1 32 D3 [07:38:21]Write i2c OK [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: 01 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: 01 07 00 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: 01 07 00 A1 32 00 00 00 00 00 CA 0C B0 [07:38:21]RasterBufferAndPrint [07:38:21]line [07:38:21]line [07:38:21]line [07:38:21]line [07:38:21]line [07:38:21]written 0, free lines is 3282 [07:38:21]MH_Cut [07:38:21]Write to MH i2c: D1 01 00 A8 32 01 AC [07:38:21]Write i2c OK [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: D1 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: D1 01 00 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: D1 01 00 A8 32 00 AB [07:38:21]Write to MH i2c: 01 00 00 A9 32 DB [07:38:21]Write i2c OK [07:38:21]MH_I2C_Read... [07:38:21]OFD Sender: No OFD packet to send [07:38:22]*** Cut start [07:38:22]*** Partial cut [07:38:22]*** CUTSNS_PIN = 1 [07:38:22]*** CUTSNS_PIN = 0 [07:38:22]*** Brake cut motor [07:38:22]Read from MH i2c: 01 [07:38:22]MH_I2C_Read... [07:38:22]*** Stop cut motor [07:38:22]*** Cut end [07:38:22]Read from MH i2c: 01 07 00 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: 01 07 00 A9 32 00 00 00 00 00 FF 0F F0 [07:38:22]process_action close_receipt done [07:38:22]requested_data is exist [07:38:22]produce_requested_data [07:38:22]requested_item fm.sn is exist - process it [07:38:22]wFMCommunicate request_size=4 [07:38:22]MH_SAM_APDU [07:38:22]CAPDU: 80 11 00 00 [07:38:22]Write to MH i2c: E2 08 00 AA 32 80 11 00 00 00 00 00 00 56 [07:38:22]Write i2c OK [07:38:22]MH_I2C_Read... [07:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:22]Read from MH i2c: E2 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 17 00 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 17 00 AA 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B1 [07:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:38:22]wFMCommunicate OK [07:38:22]requested_item fd.num is exist - process it [07:38:22]SAM_PROTO_GetFieldsCounters [07:38:22]wFMCommunicate request_size=4 [07:38:22]MH_SAM_APDU [07:38:22]CAPDU: 80 13 00 00 [07:38:22]Write to MH i2c: E2 08 00 AB 32 80 13 00 00 00 00 00 00 59 [07:38:22]Write i2c OK [07:38:22]MH_I2C_Read... [07:38:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:38:22]Read from MH i2c: E2 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 62 00 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 62 00 AB 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 81 CF 01 00 0E 04 04 00 B2 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 E7 [07:38: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 81 CF 01 00 0E 04 04 00 B2 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 [07:38:22]wFMCommunicate OK [07:38:22]SAM_PROTO_GetFieldsCounters done [07:38:22]requested_item shift.num is exist - process it [07:38:22]requested_item shift.opened is exist - process it [07:38:22]req_shift_opened [07:38:22]FM_GetShiftState [07:38:22]SAM_PROTO_GetShiftState [07:38:22]wFMCommunicate request_size=4 [07:38:22]MH_SAM_APDU [07:38:22]CAPDU: 80 13 01 00 [07:38:22]Write to MH i2c: E2 08 00 AC 32 80 13 01 00 00 00 00 00 5B [07:38:22]Write i2c OK [07:38:22]MH_I2C_Read... [07:38:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:22]Read from MH i2c: E2 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 0E 00 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 0E 00 AC 32 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 89 [07:38:22]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [07:38:22]wFMCommunicate OK [07:38:22]SAM_PROTO_GetShiftState done [07:38:22]FM_GetShiftState done [07:38:22]req_shift_opened done [07:38:22]requested_item shift.open_date is exist - process it [07:38:22]req_shift_open_date [07:38:22]req_shift_open_date done [07:38:22]produce_requested_data done [07:38:22]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118657,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [07:38:22]process_action_free close_receipt [07:38:22]json_value_free [07:38:22]json_value_free done [07:38:22]process_json_proto returns [07:38:22]Send response to host [07:38:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118657,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [07:38:22]free response buf [07:38:22]execute_script done [07:38:22]execute_script returns [07:38:22]free content buf [07:38:22]Sock 9.Close socket [07:38:22]Sock 9.Thread stoped [07:38:26]OFD Sender: No OFD packet to send [07:38:31]OFD Sender: No OFD packet to send [07:38:36]OFD Sender: No OFD packet to send [07:38:41]OFD Sender: No OFD packet to send [07:38:46]OFD Sender: No OFD packet to send [07:38:51]OFD Sender: No OFD packet to send [07:38:56]OFD Sender: No OFD packet to send [07:39:01]OFD Sender: No OFD packet to send [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:16]OFD Sender: No OFD packet to send [07:39:21]OFD Sender: No OFD packet to send [07:39:26]OFD Sender: No OFD packet to send [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]OFD Sender: No OFD packet to send [07:40:01]OFD Sender: No OFD packet to send [07:40:06]OFD Sender: No OFD packet to send [07:40:11]OFD Sender: No OFD packet to send [07:40:16]OFD Sender: No OFD packet to send [07:40:21]OFD Sender: No OFD packet to send [07:40:26]OFD Sender: No OFD packet to send [07:40:31]OFD Sender: No OFD packet to send [07:40:36]OFD Sender: No OFD packet to send [07:40:41]OFD Sender: No OFD packet to send [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:41:01]OFD Sender: No OFD packet to send [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:16]OFD Sender: No OFD packet to send [07:41:21]OFD Sender: No OFD packet to send [07:41:26]OFD Sender: No OFD packet to send [07:41:31]OFD Sender: No OFD packet to send [07:41:36]OFD Sender: No OFD packet to send [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:51]OFD Sender: No OFD packet to send [07:41: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:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]OFD Sender: No OFD packet to send [07:45:47]OFD Sender: No OFD packet to send [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:22]OFD Sender: No OFD packet to send [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:48:58]accept exits with 7 [07:48:58]New connection [07:48:58]New thread 3067239780 created [07:48:58]Thread 3067383140 joined [07:48:58]Waiting for new connection... [07:48:58] Sock 7.Parse request [07:48:58]Sock 7.Check first char [07:48:58]Sock 7.First char is OK [07:48:58]request: POST /json_proto HTTP/1.0 [07:48:58]Method: POST [07:48:58]URL: /json_proto [07:48:58]Method is POST - this is cgi request [07:48:58]url: /json_proto [07:48:58]query_string will be loaded in cgi processing [07:48:58]execute_cgi json_proto POST (null) [07:48:58]execute_cgi path=json_proto method=POST [07:48:58]POST find Content-Length [07:48:58]Host: 172.17.45.7:8080 [07:48:58]Content-Length: 818 [07:48:58]Content-Type: application/json [07:48:58] [07:48:58]POST finish read [07:48:58]Found Content-Length = 818 [07:48:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:58]execute_script... [07:48:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:58]POST & json_proto [07:48:58]process_json_proto [07:48:58]json parsed OK: [07:48:58]protocol is kg_v1.0 [07:48:58]action value=close_receipt [07:48:58]process_action close_receipt [07:48:58]cmd_close_receipt [07:48:58]MH_GetDate [07:48:58]Write to MH i2c: F0 00 00 AD 32 CE [07:48:58]Write i2c OK [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: F0 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: F0 09 00 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: F0 09 00 AD 32 00 6F 49 A7 66 90 0F 3E 66 DF [07:48:58]GetLastDocTimeStamp 1722238703 [07:48:58]current date 1722239343 [07:48:58]FM_GetShiftState [07:48:58]SAM_PROTO_GetShiftState [07:48:58]wFMCommunicate request_size=4 [07:48:58]MH_SAM_APDU [07:48:58]CAPDU: 80 13 01 00 [07:48:58]Write to MH i2c: E2 08 00 AE 32 80 13 01 00 00 00 00 00 5D [07:48:58]Write i2c OK [07:48:58]MH_I2C_Read... [07:48:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:58]Read from MH i2c: E2 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 0E 00 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 0E 00 AE 32 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 8B [07:48:58]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [07:48:58]wFMCommunicate OK [07:48:58]SAM_PROTO_GetShiftState done [07:48:58]FM_GetShiftState done [07:48:58]opened in 1722211641 [07:48:58]opened+sec_in_day 1722298041 [07:48:58]quantity*price = 50036 [07:48:58]sum+1 = 50037 [07:48:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 34 29.07.2024 07:49 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118658 ФПД: 229844588812830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T074903&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118658&fm=229844588812830&tin=02508201610067®Number=0000000000092660&sum=50000 [07:48:59]StoreToDocumentArchive [07:48:59]shift 434 fd 118658 [07:48:59]save to /storage/0434/doc_00118658 [07:48:59]save last doc name /storage/0434/doc_00118658 to /storage/kkm_last_doc_name [07:48:59]save OK [07:48:59]Clear old archive folders... [07:48:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:48:59]tlvbuf is 01E54580 [07:48:59]SAM_PROTO_ClearQueue [07:48:59]wFMCommunicate request_size=4 [07:48:59]MH_SAM_APDU [07:48:59]CAPDU: 80 09 00 00 [07:48:59]Write to MH i2c: E2 08 00 BB 32 80 09 00 00 00 00 00 00 5F [07:48:59]Write i2c OK [07:48:59]MH_I2C_Read... [07:48:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:59]Read from MH i2c: E2 [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: E2 03 00 [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: E2 03 00 BB 32 00 90 00 61 [07:48:59]RAPDU: 90 00 [07:48:59]wFMCommunicate OK [07:48:59]SAM_PROTO_ClearQueue done [07:48:59]KKMCreateOFDPacket [07:48:59]OFDProtocolAddRootSTLVToBuf [07:48:59]FM_MakeSignedData [07:48:59]FM_MakeSignedData [07:48:59]SAM_PROTO_SignData [07:48:59]wFMCommunicate request_size=4 [07:48:59]MH_SAM_APDU [07:48:59]CAPDU: 80 0D 01 02 [07:48:59]Write to MH i2c: E2 08 00 BC 32 80 0D 01 02 00 00 00 00 67 [07:48:59]Write i2c OK [07:48:59]MH_I2C_Read... [07:48:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:59]Read from MH i2c: E2 [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: E2 03 00 [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: E2 03 00 BC 32 00 90 00 62 [07:48:59]RAPDU: 90 00 [07:48:59]wFMCommunicate OK [07:48:59]wFMCommunicate request_size=255 [07:48:59]MH_SAM_APDU [07:48:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 6F 49 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 CF 01 00 35 04 06 00 D1 [07:48:59]Write to MH i2c: E2 02 01 BD 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 6F 49 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 CF 01 00 35 04 06 00 D1 00 00 A8 [07:48:59]Write i2c OK [07:48:59]MH_I2C_Read... [07:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:00]Read from MH i2c: E2 [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: E2 03 00 [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: E2 03 00 BD 32 00 90 00 63 [07:49:00]RAPDU: 90 00 [07:49:00]wFMCommunicate OK [07:49:00]wFMCommunicate request_size=10 [07:49:00]MH_SAM_APDU [07:49:00]CAPDU: 80 0D 02 02 05 0A DD 11 DA 1E [07:49:00]Write to MH i2c: E2 0D 00 BE 32 80 0D 02 02 05 00 0A DD 11 DA 1E 00 00 64 [07:49:00]Write i2c OK [07:49:00]MH_I2C_Read... [07:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:00]Read from MH i2c: E2 [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: E2 03 00 [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: E2 03 00 BE 32 00 90 00 64 [07:49:00]RAPDU: 90 00 [07:49:00]wFMCommunicate OK [07:49:00]wFMCommunicate request_size=4 [07:49:00]MH_SAM_APDU [07:49:00]CAPDU: 80 0D 03 02 [07:49:00]Write to MH i2c: E2 08 00 BF 32 80 0D 03 02 00 00 00 00 6C [07:49:00]Write i2c OK [07:49:00]MH_I2C_Read... [07:49:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:49:00]Read from MH i2c: E2 [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: E2 0B 00 [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: E2 0B 00 BF 32 00 64 D7 1C 9E 2A 6E 6C 3F 90 00 A5 [07:49:00]RAPDU: 64 D7 1C 9E 2A 6E 6C 3F 90 00 [07:49:00]wFMCommunicate OK [07:49:00]SAM_PROTO_SignData done [07:49:00]FM_MakeSignedData done [07:49:00]CreateOFDProtocolMessage [07:49:00]wFMCommunicate request_size=4 [07:49:00]MH_SAM_APDU [07:49:00]CAPDU: 80 11 00 00 [07:49:00]Write to MH i2c: E2 08 00 C0 32 80 11 00 00 00 00 00 00 6C [07:49:00]Write i2c OK [07:49:00]MH_I2C_Read... [07:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:00]Read from MH i2c: E2 [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: E2 17 00 [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: E2 17 00 C0 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C7 [07:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:49:00]wFMCommunicate OK [07:49:00]CreateOFDProtocolMessage done [07:49:00]OFDSenderStorePacket 118658 [07:49:00]StoreOFDPacket docnum=118658 [07:49:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 04 E8 07 01 E2 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 6F 49 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 CF 01 00 35 04 06 00 D1 0A DD 11 DA 1E 64 D7 1C 9E 2A 6E 6C 3F [07:49:00]CheckFolder [07:49:00]dirname=/storage/ofd_packets [07:49:00]CheckFolder done [07:49:00]ProducePacketName [07:49:00]name=ofd_packets/00118658 [07:49:00]NVStorageSaveData ofd_packets/00118658 [07:49:00]File name is /storage/ofd_packets/00118658 [07:49:00]Write 301 bytes [07:49:00]NVStorageSaveData done [07:49:00]OFDSenderStorePacket done [07:49:00]KKMCreateOFDPacket done [07:49:00]NVStorageSaveData kkm_last_timestamp [07:49:00]File name is /storage/kkm_last_timestamp [07:49:00]Write 4 bytes [07:49:00]NVStorageSaveData done [07:49:00]ExternCall_PrintAddStr [07:49:00]wPrintStart [07:49:00]Write to MH i2c: 01 00 00 C1 32 F3 [07:49:00]Write i2c OK [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: 01 [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: 01 07 00 [07:49:00]MH_I2C_Read... [07:49:00]Read from MH i2c: 01 07 00 C1 32 00 00 00 00 00 FF 0F 08 [07:49:00]RasterBufferAndPrint [07:49:00]line Счет N : (1)949540 [07:49:00]line ИНН: 02508201610067 [07:49:00]line Контрольно-Кассовый Чек [07:49:00]line ПРОДАЖА [07:49:00]line ТРК (МРК, ГНК) : 31 [07:49:00]line Товар: 2710124130 [07:49:00]line Аи-92-К-4 [07:49:00]line 7.380 * 67.80 [07:49:00]line = 500.36 [07:49:00]line НДС 12% НСП 1% [07:49:00]line > о реализуемом товаре [07:49:00]line ОКРУГЛЕНИЕ: -0.36 [07:49:00]line ИТОГО: 500.00 [07:49:00]line НСП 1% : 4.43 [07:49:00]line НДС 12% : 53.14 [07:49:00]line Наличными: 0.00 [07:49:00]line Безнал.: 500.00 [07:49:00]line Место: АЗС № 134 "Партнер Нефть" [07:49:00]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:49:00]line СНО: Общий режим [07:49:00]line Чек 34 29.07.2024 07:49 [07:49:00]line Смена: 434 ФФД: 1.0 [07:49:00]line ЗНМ: 0300000044 [07:49:00]line РНМ: 0000000000092660 [07:49:00]line Версия ККМ: 001 [07:49:00]line Платежная система: O! деньги [07:49:00]line ФМ: 0000000000874939 [07:49:00]line ФД: 118658 [07:49:00]line ФПД: 229844588812830 [07:49:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T074903&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118658&fm=229844588812830&tin=02508201610067®Number=0000000000092660&sum=50000 [07:49:00]written 0, free lines is 4095 [07:49:00]OFD Sender: Processing packet 118658 [packets to send 86, broken 85] [07:49:00]ProducePacketName [07:49:00]name=ofd_packets/00118658 [07:49:00]OFD Sender: To server: pG, [07:49:00]CommunicateWithHost lk.salyk.kg:30040 [07:49:00]ConnectInit lk.salyk.kg [07:49:00]Connected sock=10 [07:49:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 04 E8 07 01 E2 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 6F 49 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 CF 01 00 35 04 06 00 D1 0A DD 11 DA 1E 64 D7 1C 9E 2A 6E 6C 3F [07:49:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 30 C4 47 00 17 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 34 39 33 39 10 04 04 00 82 CF 01 00 F4 03 04 00 FD F6 A6 66 B6 04 01 00 00 39 60 0A AF 8E CB 25 58 [07:49:00]CommunicateWithHost err = 0 [07:49:00]CheckOFDResponse [07:49:00]1017 (14) - 77093643461234 [07:49:00]1041 (16) - 0000000000874939 [07:49:00]1040 (4) - 118658 [07:49:00]1012 (4) - 29.07.2024 01:57 [07:49:00]1206 (1) - 0 [07:49:00]OFD Sender: Remove packet 118658 [07:49:00]ProducePacketName [07:49:00]name=ofd_packets/00118658 [07:49:00]NVStorageDeleteData [07:49:01]Write to MH i2c: 01 00 00 EB 32 1D [07:49:01]Write i2c OK [07:49:01]MH_I2C_Read... [07:49:01]Read from MH i2c: 01 [07:49:01]MH_I2C_Read... [07:49:01]Read from MH i2c: 01 07 00 [07:49:01]MH_I2C_Read... [07:49:01]Read from MH i2c: 01 07 00 EB 32 00 00 00 00 00 D2 0C 02 [07:49:01]RasterBufferAndPrint [07:49:01]line [07:49:01]line [07:49:01]line [07:49:01]line [07:49:01]line [07:49:01]written 0, free lines is 3288 [07:49:01]MH_Cut [07:49:01]Write to MH i2c: D1 01 00 F2 32 01 F6 [07:49:01]Write i2c OK [07:49:01]MH_I2C_Read... [07:49:01]Read from MH i2c: D1 [07:49:01]MH_I2C_Read... [07:49:01]Read from MH i2c: D1 01 00 [07:49:01]MH_I2C_Read... [07:49:01]Read from MH i2c: D1 01 00 F2 32 00 F5 [07:49:01]Write to MH i2c: 01 00 00 F3 32 25 [07:49:01]Write i2c OK [07:49:01]MH_I2C_Read... [07:49:01]OFD Sender: No OFD packet to send [07:49:01]*** Cut start [07:49:01]*** Partial cut [07:49:01]*** CUTSNS_PIN = 1 [07:49:01]*** CUTSNS_PIN = 0 [07:49:02]*** Brake cut motor [07:49:02]Read from MH i2c: 01 [07:49:02]MH_I2C_Read... [07:49:02]*** Stop cut motor [07:49:02]Read from MH i2c: 01 07 00 [07:49:02]MH_I2C_Read... [07:49:02]*** Cut end [07:49:02]Read from MH i2c: 01 07 00 F3 32 00 00 00 00 00 FF 0F 3A [07:49:02]process_action close_receipt done [07:49:02]requested_data is exist [07:49:02]produce_requested_data [07:49:02]requested_item fm.sn is exist - process it [07:49:02]wFMCommunicate request_size=4 [07:49:02]MH_SAM_APDU [07:49:02]CAPDU: 80 11 00 00 [07:49:02]Write to MH i2c: E2 08 00 F4 32 80 11 00 00 00 00 00 00 A0 [07:49:02]Write i2c OK [07:49:02]MH_I2C_Read... [07:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:02]Read from MH i2c: E2 [07:49:02]MH_I2C_Read... [07:49:02]Read from MH i2c: E2 17 00 [07:49:02]MH_I2C_Read... [07:49:02]Read from MH i2c: E2 17 00 F4 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FB [07:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:49:02]wFMCommunicate OK [07:49:02]requested_item fd.num is exist - process it [07:49:02]SAM_PROTO_GetFieldsCounters [07:49:02]wFMCommunicate request_size=4 [07:49:02]MH_SAM_APDU [07:49:02]CAPDU: 80 13 00 00 [07:49:02]Write to MH i2c: E2 08 00 F5 32 80 13 00 00 00 00 00 00 A3 [07:49:02]Write i2c OK [07:49:02]MH_I2C_Read... [07:49:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:49:02]Read from MH i2c: E2 [07:49:02]MH_I2C_Read... [07:49:02]Read from MH i2c: E2 62 00 [07:49:02]MH_I2C_Read... [07:49:02]Read from MH i2c: E2 62 00 F5 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 82 CF 01 00 0E 04 04 00 B2 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 35 [07:49: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 82 CF 01 00 0E 04 04 00 B2 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 [07:49:02]wFMCommunicate OK [07:49:02]SAM_PROTO_GetFieldsCounters done [07:49:02]requested_item shift.num is exist - process it [07:49:02]requested_item shift.opened is exist - process it [07:49:02]req_shift_opened [07:49:02]FM_GetShiftState [07:49:02]SAM_PROTO_GetShiftState [07:49:02]wFMCommunicate request_size=4 [07:49:02]MH_SAM_APDU [07:49:02]CAPDU: 80 13 01 00 [07:49:02]Write to MH i2c: E2 08 00 F6 32 80 13 01 00 00 00 00 00 A5 [07:49:02]Write i2c OK [07:49:02]MH_I2C_Read... [07:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:02]Read from MH i2c: E2 [07:49:02]MH_I2C_Read... [07:49:02]Read from MH i2c: E2 0E 00 [07:49:02]MH_I2C_Read... [07:49:02]Read from MH i2c: E2 0E 00 F6 32 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D3 [07:49:02]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [07:49:02]wFMCommunicate OK [07:49:02]SAM_PROTO_GetShiftState done [07:49:02]FM_GetShiftState done [07:49:02]req_shift_opened done [07:49:02]requested_item shift.open_date is exist - process it [07:49:02]req_shift_open_date [07:49:02]req_shift_open_date done [07:49:02]produce_requested_data done [07:49:02]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118658,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [07:49:02]process_action_free close_receipt [07:49:02]json_value_free [07:49:02]json_value_free done [07:49:02]process_json_proto returns [07:49:02]Send response to host [07:49:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118658,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [07:49:02]free response buf [07:49:02]execute_script done [07:49:02]execute_script returns [07:49:02]free content buf [07:49:02]Sock 7.Close socket [07:49:02]Sock 7.Thread stoped [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:17]accept exits with 9 [07:54:17]New connection [07:54:17]New thread 3067383140 created [07:54:17]Thread 3067239780 joined [07:54:17]Waiting for new connection... [07:54:17] Sock 9.Parse request [07:54:17]Sock 9.Check first char [07:54:17]Sock 9.First char is OK [07:54:17]request: POST /json_proto HTTP/1.0 [07:54:17]Method: POST [07:54:17]URL: /json_proto [07:54:17]Method is POST - this is cgi request [07:54:17]url: /json_proto [07:54:17]query_string will be loaded in cgi processing [07:54:17]execute_cgi json_proto POST (null) [07:54:17]execute_cgi path=json_proto method=POST [07:54:17]POST find Content-Length [07:54:17]Host: 172.17.45.7:8080 [07:54:17]Content-Length: 674 [07:54:17]Content-Type: application/json [07:54:17] [07:54:17]POST finish read [07:54:17]Found Content-Length = 674 [07:54:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:17]execute_script... [07:54:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:17]POST & json_proto [07:54:17]process_json_proto [07:54:17]json parsed OK: [07:54:17]protocol is kg_v1.0 [07:54:17]action value=close_receipt [07:54:17]process_action close_receipt [07:54:17]cmd_close_receipt [07:54:17]MH_GetDate [07:54:17]Write to MH i2c: F0 00 00 F7 32 18 [07:54:17]Write i2c OK [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: F0 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: F0 09 00 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: F0 09 00 F7 32 00 AD 4A A7 66 90 0F 3E 66 68 [07:54:17]GetLastDocTimeStamp 1722239343 [07:54:17]current date 1722239661 [07:54:17]FM_GetShiftState [07:54:17]SAM_PROTO_GetShiftState [07:54:17]wFMCommunicate request_size=4 [07:54:17]MH_SAM_APDU [07:54:17]CAPDU: 80 13 01 00 [07:54:17]Write to MH i2c: E2 08 00 F8 32 80 13 01 00 00 00 00 00 A7 [07:54:17]Write i2c OK [07:54:17]MH_I2C_Read... [07:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:17]Read from MH i2c: E2 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: E2 0E 00 [07:54:17]MH_I2C_Read... [07:54:17]Read from MH i2c: E2 0E 00 F8 32 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D5 [07:54:17]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [07:54:17]wFMCommunicate OK [07:54:17]SAM_PROTO_GetShiftState done [07:54:17]FM_GetShiftState done [07:54:17]opened in 1722211641 [07:54:17]opened+sec_in_day 1722298041 [07:54:17]quantity*price = 50063 [07:54:17]sum+1 = 50064 [07:54:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 35 29.07.2024 07:54 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118659 ФПД: 216545338934111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T075421&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118659&fm=216545338934111&tin=02508201610067®Number=0000000000092660&sum=50000 [07:54:18]StoreToDocumentArchive [07:54:18]shift 434 fd 118659 [07:54:18]save to /storage/0434/doc_00118659 [07:54:18]save last doc name /storage/0434/doc_00118659 to /storage/kkm_last_doc_name [07:54:18]save OK [07:54:18]Clear old archive folders... [07:54:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:54:18]tlvbuf is 01E89D60 [07:54:18]SAM_PROTO_ClearQueue [07:54:18]wFMCommunicate request_size=4 [07:54:18]MH_SAM_APDU [07:54:18]CAPDU: 80 09 00 00 [07:54:18]Write to MH i2c: E2 08 00 05 33 80 09 00 00 00 00 00 00 AA [07:54:18]Write i2c OK [07:54:18]MH_I2C_Read... [07:54:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:18]Read from MH i2c: E2 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: E2 03 00 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: E2 03 00 05 33 00 90 00 AC [07:54:18]RAPDU: 90 00 [07:54:18]wFMCommunicate OK [07:54:18]SAM_PROTO_ClearQueue done [07:54:18]KKMCreateOFDPacket [07:54:18]OFDProtocolAddRootSTLVToBuf [07:54:18]FM_MakeSignedData [07:54:18]FM_MakeSignedData [07:54:18]SAM_PROTO_SignData [07:54:18]wFMCommunicate request_size=4 [07:54:18]MH_SAM_APDU [07:54:18]CAPDU: 80 0D 01 02 [07:54:18]Write to MH i2c: E2 08 00 06 33 80 0D 01 02 00 00 00 00 B2 [07:54:18]Write i2c OK [07:54:18]MH_I2C_Read... [07:54:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:18]Read from MH i2c: E2 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: E2 03 00 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: E2 03 00 06 33 00 90 00 AD [07:54:18]RAPDU: 90 00 [07:54:18]wFMCommunicate OK [07:54:18]wFMCommunicate request_size=255 [07:54:18]MH_SAM_APDU [07:54:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 AD 4A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 CF 01 00 35 04 06 00 C4 F2 64 01 [07:54:18]Write to MH i2c: E2 02 01 07 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 AD 4A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 CF 01 00 35 04 06 00 C4 F2 64 01 00 00 12 [07:54:18]Write i2c OK [07:54:18]MH_I2C_Read... [07:54:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:18]Read from MH i2c: E2 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: E2 03 00 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: E2 03 00 07 33 00 90 00 AE [07:54:18]RAPDU: 90 00 [07:54:18]wFMCommunicate OK [07:54:18]wFMCommunicate request_size=7 [07:54:18]MH_SAM_APDU [07:54:18]CAPDU: 80 0D 02 02 02 43 5F [07:54:18]Write to MH i2c: E2 0A 00 08 33 80 0D 02 02 02 00 43 5F 00 00 5B [07:54:18]Write i2c OK [07:54:18]MH_I2C_Read... [07:54:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:18]Read from MH i2c: E2 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: E2 03 00 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: E2 03 00 08 33 00 90 00 AF [07:54:18]RAPDU: 90 00 [07:54:18]wFMCommunicate OK [07:54:18]wFMCommunicate request_size=4 [07:54:18]MH_SAM_APDU [07:54:18]CAPDU: 80 0D 03 02 [07:54:18]Write to MH i2c: E2 08 00 09 33 80 0D 03 02 00 00 00 00 B7 [07:54:18]Write i2c OK [07:54:18]MH_I2C_Read... [07:54:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:18]Read from MH i2c: E2 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: E2 0B 00 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: E2 0B 00 09 33 00 CC 9D 15 22 0F CD A8 40 90 00 1C [07:54:18]RAPDU: CC 9D 15 22 0F CD A8 40 90 00 [07:54:18]wFMCommunicate OK [07:54:18]SAM_PROTO_SignData done [07:54:18]FM_MakeSignedData done [07:54:18]CreateOFDProtocolMessage [07:54:18]wFMCommunicate request_size=4 [07:54:18]MH_SAM_APDU [07:54:18]CAPDU: 80 11 00 00 [07:54:18]Write to MH i2c: E2 08 00 0A 33 80 11 00 00 00 00 00 00 B7 [07:54:18]Write i2c OK [07:54:18]MH_I2C_Read... [07:54:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:18]Read from MH i2c: E2 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: E2 17 00 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: E2 17 00 0A 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 12 [07:54:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:54:18]wFMCommunicate OK [07:54:18]CreateOFDProtocolMessage done [07:54:18]OFDSenderStorePacket 118659 [07:54:18]StoreOFDPacket docnum=118659 [07:54:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 03 EC 04 01 AA B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 AD 4A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 CF 01 00 35 04 06 00 C4 F2 64 01 43 5F CC 9D 15 22 0F CD A8 40 [07:54:18]CheckFolder [07:54:18]dirname=/storage/ofd_packets [07:54:18]CheckFolder done [07:54:18]ProducePacketName [07:54:18]name=ofd_packets/00118659 [07:54:18]NVStorageSaveData ofd_packets/00118659 [07:54:18]File name is /storage/ofd_packets/00118659 [07:54:18]Write 298 bytes [07:54:18]NVStorageSaveData done [07:54:18]OFDSenderStorePacket done [07:54:18]KKMCreateOFDPacket done [07:54:18]NVStorageSaveData kkm_last_timestamp [07:54:18]File name is /storage/kkm_last_timestamp [07:54:18]Write 4 bytes [07:54:18]NVStorageSaveData done [07:54:18]ExternCall_PrintAddStr [07:54:18]wPrintStart [07:54:18]Write to MH i2c: 01 00 00 0B 33 3E [07:54:18]Write i2c OK [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: 01 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: 01 07 00 [07:54:18]MH_I2C_Read... [07:54:18]Read from MH i2c: 01 07 00 0B 33 00 00 00 00 00 FF 0F 53 [07:54:18]RasterBufferAndPrint [07:54:18]line Счет N : (1)949541 [07:54:18]line ИНН: 02508201610067 [07:54:18]line Контрольно-Кассовый Чек [07:54:18]line ПРОДАЖА [07:54:18]line ТРК (МРК, ГНК) : 44 [07:54:18]line Товар: 2710194800 [07:54:18]line ДТ-К-5 [07:54:18]line 6.570 * 76.20 [07:54:18]line = 500.63 [07:54:18]line НДС 12% НСП 1% [07:54:18]line > о реализуемом товаре [07:54:18]line ОКРУГЛЕНИЕ: -0.63 [07:54:18]line ИТОГО: 500.00 [07:54:18]line Внесено: 500.00 [07:54:18]line СДАЧА: 0.00 [07:54:18]line НСП 1% : 4.43 [07:54:18]line НДС 12% : 53.16 [07:54:18]line Наличными: 500.00 [07:54:18]line Безнал.: 0.00 [07:54:18]line Место: АЗС № 134 "Партнер Нефть" [07:54:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:54:18]line СНО: Общий режим [07:54:18]line Чек 35 29.07.2024 07:54 [07:54:18]line Смена: 434 ФФД: 1.0 [07:54:18]line ЗНМ: 0300000044 [07:54:18]line РНМ: 0000000000092660 [07:54:18]line Версия ККМ: 001 [07:54:18]line ФМ: 0000000000874939 [07:54:18]line ФД: 118659 [07:54:18]line ФПД: 216545338934111 [07:54:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T075421&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118659&fm=216545338934111&tin=02508201610067®Number=0000000000092660&sum=50000 [07:54:19]OFD Sender: Processing packet 118659 [packets to send 86, broken 85] [07:54:19]ProducePacketName [07:54:19]name=ofd_packets/00118659 [07:54:19]OFD Sender: To server: pG, [07:54:19]CommunicateWithHost lk.salyk.kg:30040 [07:54:19]ConnectInit lk.salyk.kg [07:54:19]written 0, free lines is 4095 [07:54:19]Connected sock=10 [07:54:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 03 EC 04 01 AA B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 AD 4A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 CF 01 00 35 04 06 00 C4 F2 64 01 43 5F CC 9D 15 22 0F CD A8 40 [07:54:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 56 5D 47 00 C2 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 CF 01 00 F4 03 04 00 3B F8 A6 66 B6 04 01 00 00 00 59 48 08 70 22 85 B4 [07:54:19]CommunicateWithHost err = 0 [07:54:19]CheckOFDResponse [07:54:19]1017 (14) - 77093643461234 [07:54:19]1041 (16) - 0000000000874939 [07:54:19]1040 (4) - 118659 [07:54:19]1012 (4) - 29.07.2024 02:02 [07:54:19]1206 (1) - 0 [07:54:19]OFD Sender: Remove packet 118659 [07:54:19]ProducePacketName [07:54:19]name=ofd_packets/00118659 [07:54:19]NVStorageDeleteData [07:54:19]Write to MH i2c: 01 00 00 35 33 68 [07:54:19]Write i2c OK [07:54:19]MH_I2C_Read... [07:54:19]Read from MH i2c: 01 [07:54:19]MH_I2C_Read... [07:54:19]Read from MH i2c: 01 07 00 [07:54:19]MH_I2C_Read... [07:54:19]Read from MH i2c: 01 07 00 35 33 00 00 00 00 00 DC 0C 57 [07:54:19]RasterBufferAndPrint [07:54:19]line [07:54:19]line [07:54:19]line [07:54:19]line [07:54:19]line [07:54:19]written 0, free lines is 3298 [07:54:19]MH_Cut [07:54:19]Write to MH i2c: D1 01 00 3C 33 01 41 [07:54:19]Write i2c OK [07:54:19]MH_I2C_Read... [07:54:19]Read from MH i2c: D1 [07:54:19]MH_I2C_Read... [07:54:19]Read from MH i2c: D1 01 00 [07:54:19]MH_I2C_Read... [07:54:19]Read from MH i2c: D1 01 00 3C 33 00 40 [07:54:19]Write to MH i2c: 01 00 00 3D 33 70 [07:54:19]Write i2c OK [07:54:19]MH_I2C_Read... [07:54:19]OFD Sender: No OFD packet to send [07:54:20]*** Cut start [07:54:20]*** Partial cut [07:54:20]*** CUTSNS_PIN = 1 [07:54:20]*** CUTSNS_PIN = 0 [07:54:20]*** Brake cut motor [07:54:20]Read from MH i2c: 01 [07:54:20]MH_I2C_Read... [07:54:20]*** Stop cut motor [07:54:20]*** Cut end [07:54:20]Read from MH i2c: 01 07 00 [07:54:20]MH_I2C_Read... [07:54:20]Read from MH i2c: 01 07 00 3D 33 00 00 00 00 00 FF 0F 85 [07:54:20]process_action close_receipt done [07:54:20]requested_data is exist [07:54:20]produce_requested_data [07:54:20]requested_item fm.sn is exist - process it [07:54:20]wFMCommunicate request_size=4 [07:54:20]MH_SAM_APDU [07:54:20]CAPDU: 80 11 00 00 [07:54:20]Write to MH i2c: E2 08 00 3E 33 80 11 00 00 00 00 00 00 EB [07:54:20]Write i2c OK [07:54:20]MH_I2C_Read... [07:54:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:20]Read from MH i2c: E2 [07:54:20]MH_I2C_Read... [07:54:20]Read from MH i2c: E2 17 00 [07:54:20]MH_I2C_Read... [07:54:20]Read from MH i2c: E2 17 00 3E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 46 [07:54:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:54:20]wFMCommunicate OK [07:54:20]requested_item fd.num is exist - process it [07:54:20]SAM_PROTO_GetFieldsCounters [07:54:20]wFMCommunicate request_size=4 [07:54:20]MH_SAM_APDU [07:54:20]CAPDU: 80 13 00 00 [07:54:20]Write to MH i2c: E2 08 00 3F 33 80 13 00 00 00 00 00 00 EE [07:54:20]Write i2c OK [07:54:20]MH_I2C_Read... [07:54:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:21]Read from MH i2c: E2 [07:54:21]MH_I2C_Read... [07:54:21]Read from MH i2c: E2 62 00 [07:54:21]MH_I2C_Read... [07:54:21]Read from MH i2c: E2 62 00 3F 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 CF 01 00 0E 04 04 00 B2 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 84 [07:54: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 CF 01 00 0E 04 04 00 B2 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:54:21]wFMCommunicate OK [07:54:21]SAM_PROTO_GetFieldsCounters done [07:54:21]requested_item shift.num is exist - process it [07:54:21]requested_item shift.opened is exist - process it [07:54:21]req_shift_opened [07:54:21]FM_GetShiftState [07:54:21]SAM_PROTO_GetShiftState [07:54:21]wFMCommunicate request_size=4 [07:54:21]MH_SAM_APDU [07:54:21]CAPDU: 80 13 01 00 [07:54:21]Write to MH i2c: E2 08 00 40 33 80 13 01 00 00 00 00 00 F0 [07:54:21]Write i2c OK [07:54:21]MH_I2C_Read... [07:54:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:21]Read from MH i2c: E2 [07:54:21]MH_I2C_Read... [07:54:21]Read from MH i2c: E2 0E 00 [07:54:21]MH_I2C_Read... [07:54:21]Read from MH i2c: E2 0E 00 40 33 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 1E [07:54:21]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [07:54:21]wFMCommunicate OK [07:54:21]SAM_PROTO_GetShiftState done [07:54:21]FM_GetShiftState done [07:54:21]req_shift_opened done [07:54:21]requested_item shift.open_date is exist - process it [07:54:21]req_shift_open_date [07:54:21]req_shift_open_date done [07:54:21]produce_requested_data done [07:54:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118659,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [07:54:21]process_action_free close_receipt [07:54:21]json_value_free [07:54:21]json_value_free done [07:54:21]process_json_proto returns [07:54:21]Send response to host [07:54:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118659,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [07:54:21]free response buf [07:54:21]execute_script done [07:54:21]execute_script returns [07:54:21]free content buf [07:54:21]Sock 9.Close socket [07:54:21]Sock 9.Thread stoped [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:10]accept exits with 7 [07:59:10]New connection [07:59:10]New thread 3067239780 created [07:59:10]Thread 3067383140 joined [07:59:10]Waiting for new connection... [07:59:10] Sock 7.Parse request [07:59:10]Sock 7.Check first char [07:59:10]Sock 7.First char is OK [07:59:10]request: POST /json_proto HTTP/1.0 [07:59:10]Method: POST [07:59:10]URL: /json_proto [07:59:10]Method is POST - this is cgi request [07:59:10]url: /json_proto [07:59:10]query_string will be loaded in cgi processing [07:59:10]execute_cgi json_proto POST (null) [07:59:10]execute_cgi path=json_proto method=POST [07:59:10]POST find Content-Length [07:59:10]Host: 172.17.45.7:8080 [07:59:10]Content-Length: 1189 [07:59:10]Content-Type: application/json [07:59:10] [07:59:10]POST finish read [07:59:10]Found Content-Length = 1189 [07:59:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949542\u000A29.07.2024 07:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 19.180 x 67.80\u000A\u0418\u0422\u041E\u0413: 1300.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74593\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:10]execute_script... [07:59:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949542\u000A29.07.2024 07:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 19.180 x 67.80\u000A\u0418\u0422\u041E\u0413: 1300.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74593\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:10]POST & json_proto [07:59:10]process_json_proto [07:59:10]json parsed OK: [07:59:10]protocol is kg_v1.0 [07:59:10]action value=print_text [07:59:10]process_action print_text [07:59:10]cmd_print_text [07:59:10]ExternCall_PrintAddStr [07:59:10]wPrintStart [07:59:10]Write to MH i2c: 01 00 00 41 33 74 [07:59:10]Write i2c OK [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: 01 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: 01 07 00 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: 01 07 00 41 33 00 00 00 00 00 FF 0F 89 [07:59:10]RasterBufferAndPrint [07:59:10]line *****ТОВАРНЫЙ ЧЕК***** [07:59:10]line АЗС-134 [07:59:10]line Партнер нефть [07:59:10]line 02508201610067 [07:59:10]line Кассир : Казаков Ч. [07:59:10]line Счет N : (1)949542 [07:59:10]line 29.07.2024 07:56 [07:59:10]line ПРОДАЖА [07:59:10]line ТРК (МРК, ГНК): 31 [07:59:10]line Вид ГСМ : 2710124130 [07:59:10]line Аи-92-К-4 [07:59:10]line 19.180 x 67.80 [07:59:10]line ИТОГ: 1300.40 [07:59:10]line Тип оплаты: Талоны: Топливная Карта [07:59:10]line 74593 [07:59:10]line ______________________ [07:59:10]line (подпись) [07:59:10]written 0, free lines is 4095 [07:59:10]Write to MH i2c: 01 00 00 55 33 88 [07:59:10]Write i2c OK [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: 01 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: 01 07 00 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: 01 07 00 55 33 00 00 00 00 00 10 0E AD [07:59:10]RasterBufferAndPrint [07:59:10]line [07:59:10]line [07:59:10]line [07:59:10]line [07:59:10]line [07:59:10]written 0, free lines is 3601 [07:59:10]MH_Cut [07:59:10]Write to MH i2c: D1 01 00 5C 33 01 61 [07:59:10]Write i2c OK [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: D1 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: D1 01 00 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: D1 01 00 5C 33 00 60 [07:59:10]Write to MH i2c: 01 00 00 5D 33 90 [07:59:10]Write i2c OK [07:59:10]MH_I2C_Read... [07:59:11]*** Cut start [07:59:11]*** Partial cut [07:59:11]*** CUTSNS_PIN = 1 [07:59:11]*** CUTSNS_PIN = 0 [07:59:11]*** Brake cut motor [07:59:11]Read from MH i2c: 01 [07:59:11]MH_I2C_Read... [07:59:11]*** Stop cut motor [07:59:11]*** Cut end [07:59:11]Read from MH i2c: 01 07 00 [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: 01 07 00 5D 33 00 00 00 00 00 FF 0F A5 [07:59:11]process_action print_text done [07:59:11]requested_data is exist [07:59:11]produce_requested_data [07:59:11]requested_item fm.sn is exist - process it [07:59:11]wFMCommunicate request_size=4 [07:59:11]MH_SAM_APDU [07:59:11]CAPDU: 80 11 00 00 [07:59:11]Write to MH i2c: E2 08 00 5E 33 80 11 00 00 00 00 00 00 0B [07:59:11]Write i2c OK [07:59:11]MH_I2C_Read... [07:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:12]Read from MH i2c: E2 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 17 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 17 00 5E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 66 [07:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:59:12]wFMCommunicate OK [07:59:12]requested_item fd.num is exist - process it [07:59:12]SAM_PROTO_GetFieldsCounters [07:59:12]wFMCommunicate request_size=4 [07:59:12]MH_SAM_APDU [07:59:12]CAPDU: 80 13 00 00 [07:59:12]Write to MH i2c: E2 08 00 5F 33 80 13 00 00 00 00 00 00 0E [07:59:12]Write i2c OK [07:59:12]MH_I2C_Read... [07:59:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:12]Read from MH i2c: E2 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 62 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 62 00 5F 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 CF 01 00 0E 04 04 00 B2 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 A4 [07:59: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 CF 01 00 0E 04 04 00 B2 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:59:12]wFMCommunicate OK [07:59:12]SAM_PROTO_GetFieldsCounters done [07:59:12]requested_item shift.num is exist - process it [07:59:12]requested_item shift.opened is exist - process it [07:59:12]req_shift_opened [07:59:12]FM_GetShiftState [07:59:12]SAM_PROTO_GetShiftState [07:59:12]wFMCommunicate request_size=4 [07:59:12]MH_SAM_APDU [07:59:12]CAPDU: 80 13 01 00 [07:59:12]Write to MH i2c: E2 08 00 60 33 80 13 01 00 00 00 00 00 10 [07:59:12]Write i2c OK [07:59:12]MH_I2C_Read... [07:59:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:12]Read from MH i2c: E2 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 0E 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 0E 00 60 33 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 3E [07:59:12]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [07:59:12]wFMCommunicate OK [07:59:12]SAM_PROTO_GetShiftState done [07:59:12]FM_GetShiftState done [07:59:12]req_shift_opened done [07:59:12]requested_item shift.open_date is exist - process it [07:59:12]req_shift_open_date [07:59:12]req_shift_open_date done [07:59:12]produce_requested_data done [07:59:12]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118659,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [07:59:12]process_action_free print_text [07:59:12]json_value_free [07:59:12]json_value_free done [07:59:12]process_json_proto returns [07:59:12]Send response to host [07:59:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118659,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [07:59:12]free response buf [07:59:12]execute_script done [07:59:12]execute_script returns [07:59:12]free content buf [07:59:12]Sock 7.Close socket [07:59:12]Sock 7.Thread stoped [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:42]accept exits with 9 [08:04:42]New connection [08:04:42]New thread 3067383140 created [08:04:42]Thread 3067239780 joined [08:04:42]Waiting for new connection... [08:04:42] Sock 9.Parse request [08:04:42]Sock 9.Check first char [08:04:42]Sock 9.First char is OK [08:04:42]request: POST /json_proto HTTP/1.0 [08:04:42]Method: POST [08:04:42]URL: /json_proto [08:04:42]Method is POST - this is cgi request [08:04:42]url: /json_proto [08:04:42]query_string will be loaded in cgi processing [08:04:42]execute_cgi json_proto POST (null) [08:04:42]execute_cgi path=json_proto method=POST [08:04:42]POST find Content-Length [08:04:42]Host: 172.17.45.7:8080 [08:04:42]Content-Length: 819 [08:04:42]Content-Type: application/json [08:04:42] [08:04:42]POST finish read [08:04:42]Found Content-Length = 819 [08:04:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 38.060, "sum" : 2900.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2900.00, "payments": [ { "type": 1, "sum" : 2900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:42]execute_script... [08:04:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 38.060, "sum" : 2900.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2900.00, "payments": [ { "type": 1, "sum" : 2900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:42]POST & json_proto [08:04:42]process_json_proto [08:04:42]json parsed OK: [08:04:42]protocol is kg_v1.0 [08:04:42]action value=close_receipt [08:04:42]process_action close_receipt [08:04:42]cmd_close_receipt [08:04:42]MH_GetDate [08:04:42]Write to MH i2c: F0 00 00 61 33 83 [08:04:42]Write i2c OK [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: F0 [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: F0 09 00 [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: F0 09 00 61 33 00 1E 4D A7 66 90 0F 3E 66 47 [08:04:42]GetLastDocTimeStamp 1722239661 [08:04:42]current date 1722240286 [08:04:42]FM_GetShiftState [08:04:42]SAM_PROTO_GetShiftState [08:04:42]wFMCommunicate request_size=4 [08:04:42]MH_SAM_APDU [08:04:42]CAPDU: 80 13 01 00 [08:04:42]Write to MH i2c: E2 08 00 62 33 80 13 01 00 00 00 00 00 12 [08:04:42]Write i2c OK [08:04:42]MH_I2C_Read... [08:04:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:42]Read from MH i2c: E2 [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: E2 0E 00 [08:04:42]MH_I2C_Read... [08:04:42]Read from MH i2c: E2 0E 00 62 33 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 40 [08:04:42]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:04:42]wFMCommunicate OK [08:04:42]SAM_PROTO_GetShiftState done [08:04:42]FM_GetShiftState done [08:04:42]opened in 1722211641 [08:04:42]opened+sec_in_day 1722298041 [08:04:42]quantity*price = 290017 [08:04:42]sum+1 = 290018 [08:04:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 2900.00 НСП 1% : 25.66 НДС 12% : 307.98 Наличными: 0.00 Безнал.: 2900.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 36 29.07.2024 08:04 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118660 ФПД: 230803692401938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T080446&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118660&fm=230803692401938&tin=02508201610067®Number=0000000000092660&sum=290000 [08:04:43]StoreToDocumentArchive [08:04:43]shift 434 fd 118660 [08:04:43]save to /storage/0434/doc_00118660 [08:04:43]save last doc name /storage/0434/doc_00118660 to /storage/kkm_last_doc_name [08:04:43]save OK [08:04:43]Clear old archive folders... [08:04:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:04:43]tlvbuf is 01E70EB0 [08:04:43]SAM_PROTO_ClearQueue [08:04:43]wFMCommunicate request_size=4 [08:04:43]MH_SAM_APDU [08:04:43]CAPDU: 80 09 00 00 [08:04:43]Write to MH i2c: E2 08 00 6F 33 80 09 00 00 00 00 00 00 14 [08:04:43]Write i2c OK [08:04:43]MH_I2C_Read... [08:04:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:43]Read from MH i2c: E2 [08:04:43]MH_I2C_Read... [08:04:43]Read from MH i2c: E2 03 00 [08:04:43]MH_I2C_Read... [08:04:43]Read from MH i2c: E2 03 00 6F 33 00 90 00 16 [08:04:43]RAPDU: 90 00 [08:04:43]wFMCommunicate OK [08:04:43]SAM_PROTO_ClearQueue done [08:04:43]KKMCreateOFDPacket [08:04:43]OFDProtocolAddRootSTLVToBuf [08:04:43]FM_MakeSignedData [08:04:43]FM_MakeSignedData [08:04:43]SAM_PROTO_SignData [08:04:43]wFMCommunicate request_size=4 [08:04:43]MH_SAM_APDU [08:04:43]CAPDU: 80 0D 01 02 [08:04:43]Write to MH i2c: E2 08 00 70 33 80 0D 01 02 00 00 00 00 1C [08:04:43]Write i2c OK [08:04:43]MH_I2C_Read... [08:04:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:43]Read from MH i2c: E2 [08:04:43]MH_I2C_Read... [08:04:43]Read from MH i2c: E2 03 00 [08:04:43]MH_I2C_Read... [08:04:43]Read from MH i2c: E2 03 00 70 33 00 90 00 17 [08:04:43]RAPDU: 90 00 [08:04:43]wFMCommunicate OK [08:04:43]wFMCommunicate request_size=255 [08:04:43]MH_SAM_APDU [08:04:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 94 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E1 6C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 6C 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 1E 4D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 CF 01 00 35 04 06 00 D1 EA 2C 19 [08:04:43]Write to MH i2c: E2 02 01 71 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 94 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E1 6C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 6C 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 1E 4D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 CF 01 00 35 04 06 00 D1 EA 2C 19 00 00 EF [08:04:43]Write i2c OK [08:04:43]MH_I2C_Read... [08:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:43]Read from MH i2c: E2 [08:04:43]MH_I2C_Read... [08:04:43]Read from MH i2c: E2 03 00 [08:04:43]MH_I2C_Read... [08:04:43]Read from MH i2c: E2 03 00 71 33 00 90 00 18 [08:04:43]RAPDU: 90 00 [08:04:43]wFMCommunicate OK [08:04:43]wFMCommunicate request_size=7 [08:04:43]MH_SAM_APDU [08:04:43]CAPDU: 80 0D 02 02 02 35 12 [08:04:43]Write to MH i2c: E2 0A 00 72 33 80 0D 02 02 02 00 35 12 00 00 6A [08:04:43]Write i2c OK [08:04:43]MH_I2C_Read... [08:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:43]Read from MH i2c: E2 [08:04:43]MH_I2C_Read... [08:04:43]Read from MH i2c: E2 03 00 [08:04:43]MH_I2C_Read... [08:04:43]Read from MH i2c: E2 03 00 72 33 00 90 00 19 [08:04:43]RAPDU: 90 00 [08:04:43]wFMCommunicate OK [08:04:43]wFMCommunicate request_size=4 [08:04:43]MH_SAM_APDU [08:04:43]CAPDU: 80 0D 03 02 [08:04:43]Write to MH i2c: E2 08 00 73 33 80 0D 03 02 00 00 00 00 21 [08:04:43]Write i2c OK [08:04:43]MH_I2C_Read... [08:04:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:43]Read from MH i2c: E2 [08:04:43]MH_I2C_Read... [08:04:43]Read from MH i2c: E2 0B 00 [08:04:43]MH_I2C_Read... [08:04:43]Read from MH i2c: E2 0B 00 73 33 00 C0 00 A9 BB 56 79 41 5D 90 00 B3 [08:04:43]RAPDU: C0 00 A9 BB 56 79 41 5D 90 00 [08:04:43]wFMCommunicate OK [08:04:43]SAM_PROTO_SignData done [08:04:43]FM_MakeSignedData done [08:04:43]CreateOFDProtocolMessage [08:04:43]wFMCommunicate request_size=4 [08:04:43]MH_SAM_APDU [08:04:43]CAPDU: 80 11 00 00 [08:04:43]Write to MH i2c: E2 08 00 74 33 80 11 00 00 00 00 00 00 21 [08:04:43]Write i2c OK [08:04:43]MH_I2C_Read... [08:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:43]Read from MH i2c: E2 [08:04:43]MH_I2C_Read... [08:04:43]Read from MH i2c: E2 17 00 [08:04:43]MH_I2C_Read... [08:04:43]Read from MH i2c: E2 17 00 74 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7C [08:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:04:43]wFMCommunicate OK [08:04:43]CreateOFDProtocolMessage done [08:04:43]OFDSenderStorePacket 118660 [08:04:43]StoreOFDPacket docnum=118660 [08:04:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 84 6E 04 01 85 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 94 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E1 6C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 6C 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 1E 4D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 CF 01 00 35 04 06 00 D1 EA 2C 19 35 12 C0 00 A9 BB 56 79 41 5D [08:04:43]CheckFolder [08:04:43]dirname=/storage/ofd_packets [08:04:43]CheckFolder done [08:04:43]ProducePacketName [08:04:43]name=ofd_packets/00118660 [08:04:43]NVStorageSaveData ofd_packets/00118660 [08:04:43]File name is /storage/ofd_packets/00118660 [08:04:43]Write 298 bytes [08:04:43]NVStorageSaveData done [08:04:43]OFDSenderStorePacket done [08:04:43]KKMCreateOFDPacket done [08:04:43]NVStorageSaveData kkm_last_timestamp [08:04:43]File name is /storage/kkm_last_timestamp [08:04:43]Write 4 bytes [08:04:43]NVStorageSaveData done [08:04:43]ExternCall_PrintAddStr [08:04:43]wPrintStart [08:04:43]Write to MH i2c: 01 00 00 75 33 A8 [08:04:43]Write i2c OK [08:04:43]MH_I2C_Read... [08:04:43]Read from MH i2c: 01 [08:04:43]MH_I2C_Read... [08:04:43]Read from MH i2c: 01 07 00 [08:04:43]MH_I2C_Read... [08:04:43]Read from MH i2c: 01 07 00 75 33 00 00 00 00 00 FF 0F BD [08:04:43]RasterBufferAndPrint [08:04:43]line Счет N : (1)949543 [08:04:43]line ИНН: 02508201610067 [08:04:43]line Контрольно-Кассовый Чек [08:04:43]line ПРОДАЖА [08:04:43]line ТРК (МРК, ГНК) : 21 [08:04:43]line Товар: 2710194800 [08:04:43]line ДТ-К-5 [08:04:43]line 38.060 * 76.20 [08:04:43]line = 2900.17 [08:04:43]line НДС 12% НСП 1% [08:04:43]line > о реализуемом товаре [08:04:43]line ОКРУГЛЕНИЕ: -0.17 [08:04:43]line ИТОГО: 2900.00 [08:04:43]line НСП 1% : 25.66 [08:04:43]line НДС 12% : 307.98 [08:04:43]line Наличными: 0.00 [08:04:43]line Безнал.: 2900.00 [08:04:43]line Место: АЗС № 134 "Партнер Нефть" [08:04:43]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:04:43]line СНО: Общий режим [08:04:43]line Чек 36 29.07.2024 08:04 [08:04:43]line Смена: 434 ФФД: 1.0 [08:04:43]line ЗНМ: 0300000044 [08:04:43]line РНМ: 0000000000092660 [08:04:43]line Версия ККМ: 001 [08:04:43]line Платежная система: O! деньги [08:04:43]line ФМ: 0000000000874939 [08:04:43]line ФД: 118660 [08:04:43]line ФПД: 230803692401938 [08:04:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T080446&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118660&fm=230803692401938&tin=02508201610067®Number=0000000000092660&sum=290000 [08:04:44]OFD Sender: Processing packet 118660 [packets to send 86, broken 85] [08:04:44]ProducePacketName [08:04:44]name=ofd_packets/00118660 [08:04:44]OFD Sender: To server: pG, [08:04:44]CommunicateWithHost lk.salyk.kg:30040 [08:04:44]ConnectInit lk.salyk.kg [08:04:44]written 0, free lines is 4095 [08:04:44]Connected sock=10 [08:04:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 84 6E 04 01 85 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 94 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E1 6C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 6C 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 1E 4D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 CF 01 00 35 04 06 00 D1 EA 2C 19 35 12 C0 00 A9 BB 56 79 41 5D [08:04:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 18 34 47 00 7C F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 CF 01 00 F4 03 04 00 AD FA A6 66 B6 04 01 00 00 05 07 BD E7 A9 CF 3A E0 [08:04:44]CommunicateWithHost err = 0 [08:04:44]CheckOFDResponse [08:04:44]1017 (14) - 77093643461234 [08:04:44]1041 (16) - 0000000000874939 [08:04:44]1040 (4) - 118660 [08:04:44]1012 (4) - 29.07.2024 02:13 [08:04:44]1206 (1) - 0 [08:04:44]OFD Sender: Remove packet 118660 [08:04:44]ProducePacketName [08:04:44]name=ofd_packets/00118660 [08:04:44]NVStorageDeleteData [08:04:44]Write to MH i2c: 01 00 00 9F 33 D2 [08:04:44]Write i2c OK [08:04:44]MH_I2C_Read... [08:04:44]Read from MH i2c: 01 [08:04:44]MH_I2C_Read... [08:04:44]Read from MH i2c: 01 07 00 [08:04:44]MH_I2C_Read... [08:04:44]Read from MH i2c: 01 07 00 9F 33 00 00 00 00 00 E6 0C CB [08:04:44]RasterBufferAndPrint [08:04:44]line [08:04:44]line [08:04:44]line [08:04:44]line [08:04:44]line [08:04:44]written 0, free lines is 3309 [08:04:44]MH_Cut [08:04:44]Write to MH i2c: D1 01 00 A6 33 01 AB [08:04:44]Write i2c OK [08:04:44]MH_I2C_Read... [08:04:44]Read from MH i2c: D1 [08:04:44]MH_I2C_Read... [08:04:44]Read from MH i2c: D1 01 00 [08:04:44]MH_I2C_Read... [08:04:44]Read from MH i2c: D1 01 00 A6 33 00 AA [08:04:44]Write to MH i2c: 01 00 00 A7 33 DA [08:04:44]Write i2c OK [08:04:44]MH_I2C_Read... [08:04:45]OFD Sender: No OFD packet to send [08:04:45]*** Cut start [08:04:45]*** Partial cut [08:04:45]*** CUTSNS_PIN = 1 [08:04:45]*** CUTSNS_PIN = 0 [08:04:45]*** Brake cut motor [08:04:46]Read from MH i2c: 01 [08:04:46]MH_I2C_Read... [08:04:46]*** Stop cut motor [08:04:46]*** Cut end [08:04:46]Read from MH i2c: 01 07 00 [08:04:46]MH_I2C_Read... [08:04:46]Read from MH i2c: 01 07 00 A7 33 00 00 00 00 00 FF 0F EF [08:04:46]process_action close_receipt done [08:04:46]requested_data is exist [08:04:46]produce_requested_data [08:04:46]requested_item fm.sn is exist - process it [08:04:46]wFMCommunicate request_size=4 [08:04:46]MH_SAM_APDU [08:04:46]CAPDU: 80 11 00 00 [08:04:46]Write to MH i2c: E2 08 00 A8 33 80 11 00 00 00 00 00 00 55 [08:04:46]Write i2c OK [08:04:46]MH_I2C_Read... [08:04:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:46]Read from MH i2c: E2 [08:04:46]MH_I2C_Read... [08:04:46]Read from MH i2c: E2 17 00 [08:04:46]MH_I2C_Read... [08:04:46]Read from MH i2c: E2 17 00 A8 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B0 [08:04:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:04:46]wFMCommunicate OK [08:04:46]requested_item fd.num is exist - process it [08:04:46]SAM_PROTO_GetFieldsCounters [08:04:46]wFMCommunicate request_size=4 [08:04:46]MH_SAM_APDU [08:04:46]CAPDU: 80 13 00 00 [08:04:46]Write to MH i2c: E2 08 00 A9 33 80 13 00 00 00 00 00 00 58 [08:04:46]Write i2c OK [08:04:46]MH_I2C_Read... [08:04:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:46]Read from MH i2c: E2 [08:04:46]MH_I2C_Read... [08:04:46]Read from MH i2c: E2 62 00 [08:04:46]MH_I2C_Read... [08:04:46]Read from MH i2c: E2 62 00 A9 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 84 CF 01 00 0E 04 04 00 B2 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 F2 [08:04: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 84 CF 01 00 0E 04 04 00 B2 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:04:46]wFMCommunicate OK [08:04:46]SAM_PROTO_GetFieldsCounters done [08:04:46]requested_item shift.num is exist - process it [08:04:46]requested_item shift.opened is exist - process it [08:04:46]req_shift_opened [08:04:46]FM_GetShiftState [08:04:46]SAM_PROTO_GetShiftState [08:04:46]wFMCommunicate request_size=4 [08:04:46]MH_SAM_APDU [08:04:46]CAPDU: 80 13 01 00 [08:04:46]Write to MH i2c: E2 08 00 AA 33 80 13 01 00 00 00 00 00 5A [08:04:46]Write i2c OK [08:04:46]MH_I2C_Read... [08:04:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:46]Read from MH i2c: E2 [08:04:46]MH_I2C_Read... [08:04:46]Read from MH i2c: E2 0E 00 [08:04:46]MH_I2C_Read... [08:04:46]Read from MH i2c: E2 0E 00 AA 33 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 88 [08:04:46]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:04:46]wFMCommunicate OK [08:04:46]SAM_PROTO_GetShiftState done [08:04:46]FM_GetShiftState done [08:04:46]req_shift_opened done [08:04:46]requested_item shift.open_date is exist - process it [08:04:46]req_shift_open_date [08:04:46]req_shift_open_date done [08:04:46]produce_requested_data done [08:04:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118660,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:04:46]process_action_free close_receipt [08:04:46]json_value_free [08:04:46]json_value_free done [08:04:46]process_json_proto returns [08:04:46]Send response to host [08:04:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118660,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:04:46]free response buf [08:04:46]execute_script done [08:04:46]execute_script returns [08:04:46]free content buf [08:04:46]Sock 9.Close socket [08:04:46]Sock 9.Thread stoped [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:34]accept exits with 7 [08:06:34]New connection [08:06:34]New thread 3067239780 created [08:06:34]Thread 3067383140 joined [08:06:34]Waiting for new connection... [08:06:34] Sock 7.Parse request [08:06:34]Sock 7.Check first char [08:06:34]Sock 7.First char is OK [08:06:34]request: POST /json_proto HTTP/1.0 [08:06:34]Method: POST [08:06:34]URL: /json_proto [08:06:34]Method is POST - this is cgi request [08:06:34]url: /json_proto [08:06:34]query_string will be loaded in cgi processing [08:06:34]execute_cgi json_proto POST (null) [08:06:34]execute_cgi path=json_proto method=POST [08:06:34]POST find Content-Length [08:06:34]Host: 172.17.45.7:8080 [08:06:34]Content-Length: 819 [08:06:34]Content-Type: application/json [08:06:34] [08:06:34]POST finish read [08:06:34]Found Content-Length = 819 [08:06:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:34]execute_script... [08:06:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:34]POST & json_proto [08:06:34]process_json_proto [08:06:34]json parsed OK: [08:06:34]protocol is kg_v1.0 [08:06:34]action value=close_receipt [08:06:34]process_action close_receipt [08:06:34]cmd_close_receipt [08:06:34]MH_GetDate [08:06:34]Write to MH i2c: F0 00 00 AB 33 CD [08:06:34]Write i2c OK [08:06:34]MH_I2C_Read... [08:06:34]Read from MH i2c: F0 [08:06:34]MH_I2C_Read... [08:06:34]Read from MH i2c: F0 09 00 [08:06:34]MH_I2C_Read... [08:06:34]Read from MH i2c: F0 09 00 AB 33 00 8F 4D A7 66 90 0F 3E 66 02 [08:06:34]GetLastDocTimeStamp 1722240286 [08:06:34]current date 1722240399 [08:06:34]FM_GetShiftState [08:06:34]SAM_PROTO_GetShiftState [08:06:34]wFMCommunicate request_size=4 [08:06:34]MH_SAM_APDU [08:06:34]CAPDU: 80 13 01 00 [08:06:34]Write to MH i2c: E2 08 00 AC 33 80 13 01 00 00 00 00 00 5C [08:06:34]Write i2c OK [08:06:34]MH_I2C_Read... [08:06:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:34]Read from MH i2c: E2 [08:06:34]MH_I2C_Read... [08:06:34]Read from MH i2c: E2 0E 00 [08:06:34]MH_I2C_Read... [08:06:34]Read from MH i2c: E2 0E 00 AC 33 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 8A [08:06:34]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:06:34]wFMCommunicate OK [08:06:34]SAM_PROTO_GetShiftState done [08:06:34]FM_GetShiftState done [08:06:34]opened in 1722211641 [08:06:34]opened+sec_in_day 1722298041 [08:06:34]quantity*price = 300075 [08:06:34]sum+1 = 300077 [08:06:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 37 29.07.2024 08:06 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118661 ФПД: 81371973271250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T080639&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118661&fm=81371973271250&tin=02508201610067®Number=0000000000092660&sum=300000 [08:06:35]StoreToDocumentArchive [08:06:35]shift 434 fd 118661 [08:06:35]save to /storage/0434/doc_00118661 [08:06:35]save last doc name /storage/0434/doc_00118661 to /storage/kkm_last_doc_name [08:06:35]save OK [08:06:35]Clear old archive folders... [08:06:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:06:35]tlvbuf is 01E70B90 [08:06:35]SAM_PROTO_ClearQueue [08:06:35]wFMCommunicate request_size=4 [08:06:35]MH_SAM_APDU [08:06:35]CAPDU: 80 09 00 00 [08:06:35]Write to MH i2c: E2 08 00 B9 33 80 09 00 00 00 00 00 00 5E [08:06:35]Write i2c OK [08:06:35]MH_I2C_Read... [08:06:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:35]Read from MH i2c: E2 [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: E2 03 00 [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: E2 03 00 B9 33 00 90 00 60 [08:06:35]RAPDU: 90 00 [08:06:35]wFMCommunicate OK [08:06:35]SAM_PROTO_ClearQueue done [08:06:35]KKMCreateOFDPacket [08:06:35]OFDProtocolAddRootSTLVToBuf [08:06:35]FM_MakeSignedData [08:06:35]FM_MakeSignedData [08:06:35]SAM_PROTO_SignData [08:06:35]wFMCommunicate request_size=4 [08:06:35]MH_SAM_APDU [08:06:35]CAPDU: 80 0D 01 02 [08:06:35]Write to MH i2c: E2 08 00 BA 33 80 0D 01 02 00 00 00 00 66 [08:06:35]Write i2c OK [08:06:35]MH_I2C_Read... [08:06:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:35]Read from MH i2c: E2 [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: E2 03 00 [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: E2 03 00 BA 33 00 90 00 61 [08:06:35]RAPDU: 90 00 [08:06:35]wFMCommunicate OK [08:06:35]wFMCommunicate request_size=255 [08:06:35]MH_SAM_APDU [08:06:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 8F 4D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 CF 01 00 35 04 06 00 4A 01 E3 8F [08:06:35]Write to MH i2c: E2 02 01 BB 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 8F 4D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 CF 01 00 35 04 06 00 4A 01 E3 8F 00 00 00 [08:06:35]Write i2c OK [08:06:35]MH_I2C_Read... [08:06:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:36]Read from MH i2c: E2 [08:06:36]MH_I2C_Read... [08:06:36]Read from MH i2c: E2 03 00 [08:06:36]MH_I2C_Read... [08:06:36]Read from MH i2c: E2 03 00 BB 33 00 90 00 62 [08:06:36]RAPDU: 90 00 [08:06:36]wFMCommunicate OK [08:06:36]wFMCommunicate request_size=7 [08:06:36]MH_SAM_APDU [08:06:36]CAPDU: 80 0D 02 02 02 BE D2 [08:06:36]Write to MH i2c: E2 0A 00 BC 33 80 0D 02 02 02 00 BE D2 00 00 FD [08:06:36]Write i2c OK [08:06:36]MH_I2C_Read... [08:06:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:36]Read from MH i2c: E2 [08:06:36]MH_I2C_Read... [08:06:36]Read from MH i2c: E2 03 00 [08:06:36]MH_I2C_Read... [08:06:36]Read from MH i2c: E2 03 00 BC 33 00 90 00 63 [08:06:36]RAPDU: 90 00 [08:06:36]wFMCommunicate OK [08:06:36]wFMCommunicate request_size=4 [08:06:36]MH_SAM_APDU [08:06:36]CAPDU: 80 0D 03 02 [08:06:36]Write to MH i2c: E2 08 00 BD 33 80 0D 03 02 00 00 00 00 6B [08:06:36]Write i2c OK [08:06:36]MH_I2C_Read... [08:06:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:36]Read from MH i2c: E2 [08:06:36]MH_I2C_Read... [08:06:36]Read from MH i2c: E2 0B 00 [08:06:36]MH_I2C_Read... [08:06:36]Read from MH i2c: E2 0B 00 BD 33 00 D7 80 E8 52 84 AA 69 BB 90 00 4F [08:06:36]RAPDU: D7 80 E8 52 84 AA 69 BB 90 00 [08:06:36]wFMCommunicate OK [08:06:36]SAM_PROTO_SignData done [08:06:36]FM_MakeSignedData done [08:06:36]CreateOFDProtocolMessage [08:06:36]wFMCommunicate request_size=4 [08:06:36]MH_SAM_APDU [08:06:36]CAPDU: 80 11 00 00 [08:06:36]Write to MH i2c: E2 08 00 BE 33 80 11 00 00 00 00 00 00 6B [08:06:36]Write i2c OK [08:06:36]MH_I2C_Read... [08:06:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:36]Read from MH i2c: E2 [08:06:36]MH_I2C_Read... [08:06:36]Read from MH i2c: E2 17 00 [08:06:36]MH_I2C_Read... [08:06:36]Read from MH i2c: E2 17 00 BE 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C6 [08:06:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:06:36]wFMCommunicate OK [08:06:36]CreateOFDProtocolMessage done [08:06:36]OFDSenderStorePacket 118661 [08:06:36]StoreOFDPacket docnum=118661 [08:06:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B9 9C 04 01 61 C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 8F 4D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 CF 01 00 35 04 06 00 4A 01 E3 8F BE D2 D7 80 E8 52 84 AA 69 BB [08:06:36]CheckFolder [08:06:36]dirname=/storage/ofd_packets [08:06:36]CheckFolder done [08:06:36]ProducePacketName [08:06:36]name=ofd_packets/00118661 [08:06:36]NVStorageSaveData ofd_packets/00118661 [08:06:36]File name is /storage/ofd_packets/00118661 [08:06:36]Write 298 bytes [08:06:36]NVStorageSaveData done [08:06:36]OFDSenderStorePacket done [08:06:36]KKMCreateOFDPacket done [08:06:36]NVStorageSaveData kkm_last_timestamp [08:06:36]File name is /storage/kkm_last_timestamp [08:06:36]Write 4 bytes [08:06:36]NVStorageSaveData done [08:06:36]ExternCall_PrintAddStr [08:06:36]wPrintStart [08:06:36]Write to MH i2c: 01 00 00 BF 33 F2 [08:06:36]Write i2c OK [08:06:36]MH_I2C_Read... [08:06:36]Read from MH i2c: 01 [08:06:36]MH_I2C_Read... [08:06:36]Read from MH i2c: 01 07 00 [08:06:36]MH_I2C_Read... [08:06:36]Read from MH i2c: 01 07 00 BF 33 00 00 00 00 00 FF 0F 07 [08:06:36]RasterBufferAndPrint [08:06:36]line Счет N : (1)949544 [08:06:36]line ИНН: 02508201610067 [08:06:36]line Контрольно-Кассовый Чек [08:06:36]line ПРОДАЖА [08:06:36]line ТРК (МРК, ГНК) : 11 [08:06:36]line Товар: 2710194800 [08:06:36]line ДТ-К-5 [08:06:36]line 39.380 * 76.20 [08:06:36]line = 3000.76 [08:06:36]line НДС 12% НСП 1% [08:06:36]line > о реализуемом товаре [08:06:36]line ОКРУГЛЕНИЕ: -0.76 [08:06:36]line ИТОГО: 3000.00 [08:06:36]line НСП 1% : 26.55 [08:06:36]line НДС 12% : 318.66 [08:06:36]line Наличными: 0.00 [08:06:36]line Безнал.: 3000.00 [08:06:36]line Место: АЗС № 134 "Партнер Нефть" [08:06:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:06:36]line СНО: Общий режим [08:06:36]line Чек 37 29.07.2024 08:06 [08:06:36]line Смена: 434 ФФД: 1.0 [08:06:36]line ЗНМ: 0300000044 [08:06:36]line РНМ: 0000000000092660 [08:06:36]line Версия ККМ: 001 [08:06:36]line Платежная система: O! деньги [08:06:36]line ФМ: 0000000000874939 [08:06:36]line ФД: 118661 [08:06:36]line ФПД: 81371973271250 [08:06:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T080639&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118661&fm=81371973271250&tin=02508201610067®Number=0000000000092660&sum=300000 [08:06:36]OFD Sender: Processing packet 118661 [packets to send 86, broken 85] [08:06:36]ProducePacketName [08:06:36]name=ofd_packets/00118661 [08:06:36]OFD Sender: To server: pG, [08:06:36]CommunicateWithHost lk.salyk.kg:30040 [08:06:36]ConnectInit lk.salyk.kg [08:06:36]written 0, free lines is 4095 [08:06:36]Connected sock=10 [08:06:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B9 9C 04 01 61 C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 8F 4D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 CF 01 00 35 04 06 00 4A 01 E3 8F BE D2 D7 80 E8 52 84 AA 69 BB [08:06:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 11 7C 47 00 83 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 CF 01 00 F4 03 04 00 1D FB A6 66 B6 04 01 00 00 1E D4 07 E1 77 43 C0 3D [08:06:36]CommunicateWithHost err = 0 [08:06:36]CheckOFDResponse [08:06:36]1017 (14) - 77093643461234 [08:06:36]1041 (16) - 0000000000874939 [08:06:36]1040 (4) - 118661 [08:06:36]1012 (4) - 29.07.2024 02:14 [08:06:36]1206 (1) - 0 [08:06:36]OFD Sender: Remove packet 118661 [08:06:36]ProducePacketName [08:06:36]name=ofd_packets/00118661 [08:06:36]NVStorageDeleteData [08:06:36]Write to MH i2c: 01 00 00 E9 33 1C [08:06:36]Write i2c OK [08:06:36]MH_I2C_Read... [08:06:36]Read from MH i2c: 01 [08:06:36]MH_I2C_Read... [08:06:36]Read from MH i2c: 01 07 00 [08:06:36]MH_I2C_Read... [08:06:36]Read from MH i2c: 01 07 00 E9 33 00 00 00 00 00 DC 0C 0B [08:06:36]RasterBufferAndPrint [08:06:36]line [08:06:36]line [08:06:36]line [08:06:36]line [08:06:36]line [08:06:36]written 0, free lines is 3298 [08:06:36]MH_Cut [08:06:36]Write to MH i2c: D1 01 00 F0 33 01 F5 [08:06:36]Write i2c OK [08:06:36]MH_I2C_Read... [08:06:36]Read from MH i2c: D1 [08:06:36]MH_I2C_Read... [08:06:36]Read from MH i2c: D1 01 00 [08:06:36]MH_I2C_Read... [08:06:36]Read from MH i2c: D1 01 00 F0 33 00 F4 [08:06:36]Write to MH i2c: 01 00 00 F1 33 24 [08:06:36]Write i2c OK [08:06:36]MH_I2C_Read... [08:06:37]OFD Sender: No OFD packet to send [08:06:37]*** Cut start [08:06:37]*** Partial cut [08:06:37]*** CUTSNS_PIN = 1 [08:06:37]*** CUTSNS_PIN = 0 [08:06:37]*** Brake cut motor [08:06:38]Read from MH i2c: 01 [08:06:38]MH_I2C_Read... [08:06:38]*** Stop cut motor [08:06:38]*** Cut end [08:06:38]Read from MH i2c: 01 07 00 [08:06:38]MH_I2C_Read... [08:06:38]Read from MH i2c: 01 07 00 F1 33 00 00 00 00 00 FF 0F 39 [08:06:38]process_action close_receipt done [08:06:38]requested_data is exist [08:06:38]produce_requested_data [08:06:38]requested_item fm.sn is exist - process it [08:06:38]wFMCommunicate request_size=4 [08:06:38]MH_SAM_APDU [08:06:38]CAPDU: 80 11 00 00 [08:06:38]Write to MH i2c: E2 08 00 F2 33 80 11 00 00 00 00 00 00 9F [08:06:38]Write i2c OK [08:06:38]MH_I2C_Read... [08:06:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:38]Read from MH i2c: E2 [08:06:38]MH_I2C_Read... [08:06:38]Read from MH i2c: E2 17 00 [08:06:38]MH_I2C_Read... [08:06:38]Read from MH i2c: E2 17 00 F2 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FA [08:06:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:06:38]wFMCommunicate OK [08:06:38]requested_item fd.num is exist - process it [08:06:38]SAM_PROTO_GetFieldsCounters [08:06:38]wFMCommunicate request_size=4 [08:06:38]MH_SAM_APDU [08:06:38]CAPDU: 80 13 00 00 [08:06:38]Write to MH i2c: E2 08 00 F3 33 80 13 00 00 00 00 00 00 A2 [08:06:38]Write i2c OK [08:06:38]MH_I2C_Read... [08:06:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:38]Read from MH i2c: E2 [08:06:38]MH_I2C_Read... [08:06:38]Read from MH i2c: E2 62 00 [08:06:38]MH_I2C_Read... [08:06:38]Read from MH i2c: E2 62 00 F3 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 85 CF 01 00 0E 04 04 00 B2 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 40 [08:06: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 85 CF 01 00 0E 04 04 00 B2 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 [08:06:38]wFMCommunicate OK [08:06:38]SAM_PROTO_GetFieldsCounters done [08:06:38]requested_item shift.num is exist - process it [08:06:38]requested_item shift.opened is exist - process it [08:06:38]req_shift_opened [08:06:38]FM_GetShiftState [08:06:38]SAM_PROTO_GetShiftState [08:06:38]wFMCommunicate request_size=4 [08:06:38]MH_SAM_APDU [08:06:38]CAPDU: 80 13 01 00 [08:06:38]Write to MH i2c: E2 08 00 F4 33 80 13 01 00 00 00 00 00 A4 [08:06:38]Write i2c OK [08:06:38]MH_I2C_Read... [08:06:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:38]Read from MH i2c: E2 [08:06:38]MH_I2C_Read... [08:06:38]Read from MH i2c: E2 0E 00 [08:06:38]MH_I2C_Read... [08:06:38]Read from MH i2c: E2 0E 00 F4 33 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D2 [08:06:38]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:06:38]wFMCommunicate OK [08:06:38]SAM_PROTO_GetShiftState done [08:06:38]FM_GetShiftState done [08:06:38]req_shift_opened done [08:06:38]requested_item shift.open_date is exist - process it [08:06:38]req_shift_open_date [08:06:38]req_shift_open_date done [08:06:38]produce_requested_data done [08:06:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118661,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:06:38]process_action_free close_receipt [08:06:38]json_value_free [08:06:38]json_value_free done [08:06:38]process_json_proto returns [08:06:38]Send response to host [08:06:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118661,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:06:38]free response buf [08:06:38]execute_script done [08:06:38]execute_script returns [08:06:38]free content buf [08:06:38]Sock 7.Close socket [08:06:38]Sock 7.Thread stoped [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:28]accept exits with 9 [08:07:28]New connection [08:07:28]New thread 3067383140 created [08:07:28]Thread 3067239780 joined [08:07:28]Waiting for new connection... [08:07:28] Sock 9.Parse request [08:07:28]Sock 9.Check first char [08:07:28]Sock 9.First char is OK [08:07:28]request: POST /json_proto HTTP/1.0 [08:07:28]Method: POST [08:07:28]URL: /json_proto [08:07:28]Method is POST - this is cgi request [08:07:28]url: /json_proto [08:07:28]query_string will be loaded in cgi processing [08:07:28]execute_cgi json_proto POST (null) [08:07:28]execute_cgi path=json_proto method=POST [08:07:28]POST find Content-Length [08:07:28]Host: 172.17.45.7:8080 [08:07:28]Content-Length: 678 [08:07:28]Content-Type: application/json [08:07:28] [08:07:28]POST finish read [08:07:28]Found Content-Length = 678 [08:07:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:28]execute_script... [08:07:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:28]POST & json_proto [08:07:28]process_json_proto [08:07:28]json parsed OK: [08:07:28]protocol is kg_v1.0 [08:07:28]action value=close_receipt [08:07:28]process_action close_receipt [08:07:28]cmd_close_receipt [08:07:28]MH_GetDate [08:07:28]Write to MH i2c: F0 00 00 F5 33 17 [08:07:28]Write i2c OK [08:07:28]MH_I2C_Read... [08:07:28]Read from MH i2c: F0 [08:07:28]MH_I2C_Read... [08:07:28]Read from MH i2c: F0 09 00 [08:07:28]MH_I2C_Read... [08:07:28]Read from MH i2c: F0 09 00 F5 33 00 C4 4D A7 66 90 0F 3E 66 81 [08:07:28]GetLastDocTimeStamp 1722240399 [08:07:28]current date 1722240452 [08:07:28]FM_GetShiftState [08:07:28]SAM_PROTO_GetShiftState [08:07:28]wFMCommunicate request_size=4 [08:07:28]MH_SAM_APDU [08:07:28]CAPDU: 80 13 01 00 [08:07:28]Write to MH i2c: E2 08 00 F6 33 80 13 01 00 00 00 00 00 A6 [08:07:28]Write i2c OK [08:07:28]MH_I2C_Read... [08:07:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:28]Read from MH i2c: E2 [08:07:28]MH_I2C_Read... [08:07:28]Read from MH i2c: E2 0E 00 [08:07:28]MH_I2C_Read... [08:07:28]Read from MH i2c: E2 0E 00 F6 33 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D4 [08:07:28]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:07:28]wFMCommunicate OK [08:07:28]SAM_PROTO_GetShiftState done [08:07:28]FM_GetShiftState done [08:07:28]opened in 1722211641 [08:07:28]opened+sec_in_day 1722298041 [08:07:28]quantity*price = 70037 [08:07:28]sum+1 = 70038 [08:07:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 38 29.07.2024 08:07 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118662 ФПД: 109692807385535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T080732&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118662&fm=109692807385535&tin=02508201610067®Number=0000000000092660&sum=70000 [08:07:29]StoreToDocumentArchive [08:07:29]shift 434 fd 118662 [08:07:29]save to /storage/0434/doc_00118662 [08:07:29]save last doc name /storage/0434/doc_00118662 to /storage/kkm_last_doc_name [08:07:29]save OK [08:07:29]Clear old archive folders... [08:07:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:07:29]tlvbuf is 01E97D60 [08:07:29]SAM_PROTO_ClearQueue [08:07:29]wFMCommunicate request_size=4 [08:07:29]MH_SAM_APDU [08:07:29]CAPDU: 80 09 00 00 [08:07:29]Write to MH i2c: E2 08 00 03 34 80 09 00 00 00 00 00 00 A9 [08:07:29]Write i2c OK [08:07:29]MH_I2C_Read... [08:07:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:29]Read from MH i2c: E2 [08:07:29]MH_I2C_Read... [08:07:29]Read from MH i2c: E2 03 00 [08:07:29]MH_I2C_Read... [08:07:29]Read from MH i2c: E2 03 00 03 34 00 90 00 AB [08:07:29]RAPDU: 90 00 [08:07:29]wFMCommunicate OK [08:07:29]SAM_PROTO_ClearQueue done [08:07:29]KKMCreateOFDPacket [08:07:29]OFDProtocolAddRootSTLVToBuf [08:07:29]FM_MakeSignedData [08:07:29]FM_MakeSignedData [08:07:29]SAM_PROTO_SignData [08:07:29]wFMCommunicate request_size=4 [08:07:29]MH_SAM_APDU [08:07:29]CAPDU: 80 0D 01 02 [08:07:29]Write to MH i2c: E2 08 00 04 34 80 0D 01 02 00 00 00 00 B1 [08:07:29]Write i2c OK [08:07:29]MH_I2C_Read... [08:07:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:29]Read from MH i2c: E2 [08:07:29]MH_I2C_Read... [08:07:29]Read from MH i2c: E2 03 00 [08:07:29]MH_I2C_Read... [08:07:29]Read from MH i2c: E2 03 00 04 34 00 90 00 AC [08:07:29]RAPDU: 90 00 [08:07:29]wFMCommunicate OK [08:07:29]wFMCommunicate request_size=255 [08:07:29]MH_SAM_APDU [08:07: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C4 4D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 CF 01 00 35 04 06 00 63 [08:07:29]Write to MH i2c: E2 02 01 05 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C4 4D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 CF 01 00 35 04 06 00 63 00 00 CC [08:07:29]Write i2c OK [08:07:29]MH_I2C_Read... [08:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:29]Read from MH i2c: E2 [08:07:29]MH_I2C_Read... [08:07:29]Read from MH i2c: E2 03 00 [08:07:29]MH_I2C_Read... [08:07:29]Read from MH i2c: E2 03 00 05 34 00 90 00 AD [08:07:29]RAPDU: 90 00 [08:07:29]wFMCommunicate OK [08:07:29]wFMCommunicate request_size=10 [08:07:29]MH_SAM_APDU [08:07:29]CAPDU: 80 0D 02 02 05 C3 D8 D1 91 BF [08:07:29]Write to MH i2c: E2 0D 00 06 34 80 0D 02 02 05 00 C3 D8 D1 91 BF 00 00 7A [08:07:29]Write i2c OK [08:07:29]MH_I2C_Read... [08:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:29]Read from MH i2c: E2 [08:07:29]MH_I2C_Read... [08:07:29]Read from MH i2c: E2 03 00 [08:07:29]MH_I2C_Read... [08:07:29]Read from MH i2c: E2 03 00 06 34 00 90 00 AE [08:07:29]RAPDU: 90 00 [08:07:29]wFMCommunicate OK [08:07:29]wFMCommunicate request_size=4 [08:07:29]MH_SAM_APDU [08:07:29]CAPDU: 80 0D 03 02 [08:07:29]Write to MH i2c: E2 08 00 07 34 80 0D 03 02 00 00 00 00 B6 [08:07:29]Write i2c OK [08:07:29]MH_I2C_Read... [08:07:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:29]Read from MH i2c: E2 [08:07:29]MH_I2C_Read... [08:07:29]Read from MH i2c: E2 0B 00 [08:07:29]MH_I2C_Read... [08:07:29]Read from MH i2c: E2 0B 00 07 34 00 12 CD DF F9 48 F1 70 DF 90 00 F6 [08:07:29]RAPDU: 12 CD DF F9 48 F1 70 DF 90 00 [08:07:29]wFMCommunicate OK [08:07:29]SAM_PROTO_SignData done [08:07:29]FM_MakeSignedData done [08:07:29]CreateOFDProtocolMessage [08:07:29]wFMCommunicate request_size=4 [08:07:29]MH_SAM_APDU [08:07:29]CAPDU: 80 11 00 00 [08:07:29]Write to MH i2c: E2 08 00 08 34 80 11 00 00 00 00 00 00 B6 [08:07:29]Write i2c OK [08:07:29]MH_I2C_Read... [08:07:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:29]Read from MH i2c: E2 [08:07:29]MH_I2C_Read... [08:07:29]Read from MH i2c: E2 17 00 [08:07:29]MH_I2C_Read... [08:07:29]Read from MH i2c: E2 17 00 08 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 11 [08:07:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:07:29]wFMCommunicate OK [08:07:29]CreateOFDProtocolMessage done [08:07:29]OFDSenderStorePacket 118662 [08:07:29]StoreOFDPacket docnum=118662 [08:07:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B0 B8 07 01 2F 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C4 4D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 CF 01 00 35 04 06 00 63 C3 D8 D1 91 BF 12 CD DF F9 48 F1 70 DF [08:07:29]CheckFolder [08:07:29]dirname=/storage/ofd_packets [08:07:29]CheckFolder done [08:07:29]ProducePacketName [08:07:29]name=ofd_packets/00118662 [08:07:29]NVStorageSaveData ofd_packets/00118662 [08:07:29]File name is /storage/ofd_packets/00118662 [08:07:29]Write 301 bytes [08:07:29]NVStorageSaveData done [08:07:29]OFDSenderStorePacket done [08:07:29]KKMCreateOFDPacket done [08:07:29]NVStorageSaveData kkm_last_timestamp [08:07:29]File name is /storage/kkm_last_timestamp [08:07:29]Write 4 bytes [08:07:29]NVStorageSaveData done [08:07:29]ExternCall_PrintAddStr [08:07:29]wPrintStart [08:07:29]Write to MH i2c: 01 00 00 09 34 3D [08:07:29]Write i2c OK [08:07:29]MH_I2C_Read... [08:07:29]Read from MH i2c: 01 [08:07:29]MH_I2C_Read... [08:07:29]Read from MH i2c: 01 07 00 [08:07:29]MH_I2C_Read... [08:07:29]Read from MH i2c: 01 07 00 09 34 00 00 00 00 00 FF 0F 52 [08:07:29]RasterBufferAndPrint [08:07:29]line Счет N : (1)949545 [08:07:29]line ИНН: 02508201610067 [08:07:29]line Контрольно-Кассовый Чек [08:07:29]line ПРОДАЖА [08:07:29]line ТРК (МРК, ГНК) : 51 [08:07:29]line Товар: 2710124130 [08:07:29]line Аи-92-К-4 [08:07:29]line 10.330 * 67.80 [08:07:29]line = 700.37 [08:07:29]line НДС 12% НСП 1% [08:07:29]line > о реализуемом товаре [08:07:29]line ОКРУГЛЕНИЕ: -0.37 [08:07:29]line ИТОГО: 700.00 [08:07:29]line Внесено: 700.00 [08:07:29]line СДАЧА: 0.00 [08:07:29]line НСП 1% : 6.20 [08:07:29]line НДС 12% : 74.38 [08:07:29]line Наличными: 700.00 [08:07:29]line Безнал.: 0.00 [08:07:29]line Место: АЗС № 134 "Партнер Нефть" [08:07:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:07:29]line СНО: Общий режим [08:07:29]line Чек 38 29.07.2024 08:07 [08:07:29]line Смена: 434 ФФД: 1.0 [08:07:29]line ЗНМ: 0300000044 [08:07:29]line РНМ: 0000000000092660 [08:07:29]line Версия ККМ: 001 [08:07:29]line ФМ: 0000000000874939 [08:07:29]line ФД: 118662 [08:07:29]line ФПД: 109692807385535 [08:07:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T080732&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118662&fm=109692807385535&tin=02508201610067®Number=0000000000092660&sum=70000 [08:07:30]OFD Sender: Processing packet 118662 [packets to send 86, broken 85] [08:07:30]ProducePacketName [08:07:30]name=ofd_packets/00118662 [08:07:30]OFD Sender: To server: pG, [08:07:30]CommunicateWithHost lk.salyk.kg:30040 [08:07:30]ConnectInit lk.salyk.kg [08:07:30]written 0, free lines is 4095 [08:07:30]Connected sock=10 [08:07:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B0 B8 07 01 2F 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C4 4D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 CF 01 00 35 04 06 00 63 C3 D8 D1 91 BF 12 CD DF F9 48 F1 70 DF [08:07:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 DC 0C 47 00 93 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 34 39 33 39 10 04 04 00 86 CF 01 00 F4 03 04 00 53 FB A6 66 B6 04 01 00 00 B0 1C 91 BA 0F A2 85 A6 [08:07:30]CommunicateWithHost err = 0 [08:07:30]CheckOFDResponse [08:07:30]1017 (14) - 77093643461234 [08:07:30]1041 (16) - 0000000000874939 [08:07:30]1040 (4) - 118662 [08:07:30]1012 (4) - 29.07.2024 02:15 [08:07:30]1206 (1) - 0 [08:07:30]OFD Sender: Remove packet 118662 [08:07:30]ProducePacketName [08:07:30]name=ofd_packets/00118662 [08:07:30]NVStorageDeleteData [08:07:30]Write to MH i2c: 01 00 00 33 34 67 [08:07:30]Write i2c OK [08:07:30]MH_I2C_Read... [08:07:30]Read from MH i2c: 01 [08:07:30]MH_I2C_Read... [08:07:30]Read from MH i2c: 01 07 00 [08:07:30]MH_I2C_Read... [08:07:30]Read from MH i2c: 01 07 00 33 34 00 00 00 00 00 E4 0C 5E [08:07:30]RasterBufferAndPrint [08:07:30]line [08:07:30]line [08:07:30]line [08:07:30]line [08:07:30]line [08:07:30]written 0, free lines is 3306 [08:07:30]MH_Cut [08:07:30]Write to MH i2c: D1 01 00 3A 34 01 40 [08:07:30]Write i2c OK [08:07:30]MH_I2C_Read... [08:07:30]Read from MH i2c: D1 [08:07:30]MH_I2C_Read... [08:07:30]Read from MH i2c: D1 01 00 [08:07:30]MH_I2C_Read... [08:07:30]Read from MH i2c: D1 01 00 3A 34 00 3F [08:07:30]Write to MH i2c: 01 00 00 3B 34 6F [08:07:30]Write i2c OK [08:07:30]MH_I2C_Read... [08:07:31]OFD Sender: No OFD packet to send [08:07:31]*** Cut start [08:07:31]*** Partial cut [08:07:31]*** CUTSNS_PIN = 1 [08:07:31]*** CUTSNS_PIN = 0 [08:07:31]*** Brake cut motor [08:07:32]Read from MH i2c: 01 [08:07:32]MH_I2C_Read... [08:07:32]*** Stop cut motor [08:07:32]*** Cut end [08:07:32]Read from MH i2c: 01 07 00 [08:07:32]MH_I2C_Read... [08:07:32]Read from MH i2c: 01 07 00 3B 34 00 00 00 00 00 FF 0F 84 [08:07:32]process_action close_receipt done [08:07:32]requested_data is exist [08:07:32]produce_requested_data [08:07:32]requested_item fm.sn is exist - process it [08:07:32]wFMCommunicate request_size=4 [08:07:32]MH_SAM_APDU [08:07:32]CAPDU: 80 11 00 00 [08:07:32]Write to MH i2c: E2 08 00 3C 34 80 11 00 00 00 00 00 00 EA [08:07:32]Write i2c OK [08:07:32]MH_I2C_Read... [08:07:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:32]Read from MH i2c: E2 [08:07:32]MH_I2C_Read... [08:07:32]Read from MH i2c: E2 17 00 [08:07:32]MH_I2C_Read... [08:07:32]Read from MH i2c: E2 17 00 3C 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 45 [08:07:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:07:32]wFMCommunicate OK [08:07:32]requested_item fd.num is exist - process it [08:07:32]SAM_PROTO_GetFieldsCounters [08:07:32]wFMCommunicate request_size=4 [08:07:32]MH_SAM_APDU [08:07:32]CAPDU: 80 13 00 00 [08:07:32]Write to MH i2c: E2 08 00 3D 34 80 13 00 00 00 00 00 00 ED [08:07:32]Write i2c OK [08:07:32]MH_I2C_Read... [08:07:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:32]Read from MH i2c: E2 [08:07:32]MH_I2C_Read... [08:07:32]Read from MH i2c: E2 62 00 [08:07:32]MH_I2C_Read... [08:07:32]Read from MH i2c: E2 62 00 3D 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 CF 01 00 0E 04 04 00 B2 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 8F [08:07:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 CF 01 00 0E 04 04 00 B2 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 [08:07:32]wFMCommunicate OK [08:07:32]SAM_PROTO_GetFieldsCounters done [08:07:32]requested_item shift.num is exist - process it [08:07:32]requested_item shift.opened is exist - process it [08:07:32]req_shift_opened [08:07:32]FM_GetShiftState [08:07:32]SAM_PROTO_GetShiftState [08:07:32]wFMCommunicate request_size=4 [08:07:32]MH_SAM_APDU [08:07:32]CAPDU: 80 13 01 00 [08:07:32]Write to MH i2c: E2 08 00 3E 34 80 13 01 00 00 00 00 00 EF [08:07:32]Write i2c OK [08:07:32]MH_I2C_Read... [08:07:32]Read from MH i2c: E2 [08:07:32]MH_I2C_Read... [08:07:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:32]Read from MH i2c: E2 0E 00 [08:07:32]MH_I2C_Read... [08:07:32]Read from MH i2c: E2 0E 00 3E 34 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 1D [08:07:32]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:07:32]wFMCommunicate OK [08:07:32]SAM_PROTO_GetShiftState done [08:07:32]FM_GetShiftState done [08:07:32]req_shift_opened done [08:07:32]requested_item shift.open_date is exist - process it [08:07:32]req_shift_open_date [08:07:32]req_shift_open_date done [08:07:32]produce_requested_data done [08:07:32]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118662,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:07:32]process_action_free close_receipt [08:07:32]json_value_free [08:07:32]json_value_free done [08:07:32]process_json_proto returns [08:07:32]Send response to host [08:07:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118662,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:07:32]free response buf [08:07:32]execute_script done [08:07:32]execute_script returns [08:07:32]free content buf [08:07:32]Sock 9.Close socket [08:07:32]Sock 9.Thread stoped [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:08:01]OFD Sender: No OFD packet to send [08:08:06]OFD Sender: No OFD packet to send [08:08:11]OFD Sender: No OFD packet to send [08:08:16]OFD Sender: No OFD packet to send [08:08:21]OFD Sender: No OFD packet to send [08:08:26]OFD Sender: No OFD packet to send [08:08:31]OFD Sender: No OFD packet to send [08:08:36]OFD Sender: No OFD packet to send [08:08:41]OFD Sender: No OFD packet to send [08:08:46]OFD Sender: No OFD packet to send [08:08:51]OFD Sender: No OFD packet to send [08:08:56]OFD Sender: No OFD packet to send [08:09:01]OFD Sender: No OFD packet to send [08:09:06]OFD Sender: No OFD packet to send [08:09:11]OFD Sender: No OFD packet to send [08:09:16]OFD Sender: No OFD packet to send [08:09:21]OFD Sender: No OFD packet to send [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:46]OFD Sender: No OFD packet to send [08:09:51]OFD Sender: No OFD packet to send [08:09:52]accept exits with 7 [08:09:52]New connection [08:09:52]New thread 3067239780 created [08:09:52]Thread 3067383140 joined [08:09:52]Waiting for new connection... [08:09:52] Sock 7.Parse request [08:09:52]Sock 7.Check first char [08:09:52]Sock 7.First char is OK [08:09:52]request: POST /json_proto HTTP/1.0 [08:09:52]Method: POST [08:09:52]URL: /json_proto [08:09:52]Method is POST - this is cgi request [08:09:52]url: /json_proto [08:09:52]query_string will be loaded in cgi processing [08:09:52]execute_cgi json_proto POST (null) [08:09:52]execute_cgi path=json_proto method=POST [08:09:52]POST find Content-Length [08:09:52]Host: 172.17.45.7:8080 [08:09:52]Content-Length: 677 [08:09:52]Content-Type: application/json [08:09:52] [08:09:52]POST finish read [08:09:52]Found Content-Length = 677 [08:09:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:52]execute_script... [08:09: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)949546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:52]POST & json_proto [08:09:52]process_json_proto [08:09:52]json parsed OK: [08:09:52]protocol is kg_v1.0 [08:09:52]action value=close_receipt [08:09:52]process_action close_receipt [08:09:52]cmd_close_receipt [08:09:52]MH_GetDate [08:09:52]Write to MH i2c: F0 00 00 3F 34 62 [08:09:52]Write i2c OK [08:09:52]MH_I2C_Read... [08:09:52]Read from MH i2c: F0 [08:09:52]MH_I2C_Read... [08:09:52]Read from MH i2c: F0 09 00 [08:09:52]MH_I2C_Read... [08:09:52]Read from MH i2c: F0 09 00 3F 34 00 54 4E A7 66 90 0F 3E 66 5D [08:09:52]GetLastDocTimeStamp 1722240452 [08:09:52]current date 1722240596 [08:09:52]FM_GetShiftState [08:09:52]SAM_PROTO_GetShiftState [08:09:52]wFMCommunicate request_size=4 [08:09:52]MH_SAM_APDU [08:09:52]CAPDU: 80 13 01 00 [08:09:52]Write to MH i2c: E2 08 00 40 34 80 13 01 00 00 00 00 00 F1 [08:09:52]Write i2c OK [08:09:52]MH_I2C_Read... [08:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:52]Read from MH i2c: E2 [08:09:52]MH_I2C_Read... [08:09:52]Read from MH i2c: E2 0E 00 [08:09:52]MH_I2C_Read... [08:09:52]Read from MH i2c: E2 0E 00 40 34 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 1F [08:09:52]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:09:52]wFMCommunicate OK [08:09:52]SAM_PROTO_GetShiftState done [08:09:52]FM_GetShiftState done [08:09:52]opened in 1722211641 [08:09:52]opened+sec_in_day 1722298041 [08:09:52]quantity*price = 30035 [08:09:52]sum+1 = 30036 [08:09:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 39 29.07.2024 08:09 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118663 ФПД: 120014188337286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T080956&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118663&fm=120014188337286&tin=02508201610067®Number=0000000000092660&sum=30000 [08:09:53]StoreToDocumentArchive [08:09:53]shift 434 fd 118663 [08:09:53]save to /storage/0434/doc_00118663 [08:09:53]save last doc name /storage/0434/doc_00118663 to /storage/kkm_last_doc_name [08:09:53]save OK [08:09:53]Clear old archive folders... [08:09:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:09:53]tlvbuf is B6F43400 [08:09:53]SAM_PROTO_ClearQueue [08:09:53]wFMCommunicate request_size=4 [08:09:53]MH_SAM_APDU [08:09:53]CAPDU: 80 09 00 00 [08:09:53]Write to MH i2c: E2 08 00 4D 34 80 09 00 00 00 00 00 00 F3 [08:09:53]Write i2c OK [08:09:53]MH_I2C_Read... [08:09:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:53]Read from MH i2c: E2 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 03 00 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 03 00 4D 34 00 90 00 F5 [08:09:53]RAPDU: 90 00 [08:09:53]wFMCommunicate OK [08:09:53]SAM_PROTO_ClearQueue done [08:09:53]KKMCreateOFDPacket [08:09:53]OFDProtocolAddRootSTLVToBuf [08:09:53]FM_MakeSignedData [08:09:53]FM_MakeSignedData [08:09:53]SAM_PROTO_SignData [08:09:53]wFMCommunicate request_size=4 [08:09:53]MH_SAM_APDU [08:09:53]CAPDU: 80 0D 01 02 [08:09:53]Write to MH i2c: E2 08 00 4E 34 80 0D 01 02 00 00 00 00 FB [08:09:53]Write i2c OK [08:09:53]MH_I2C_Read... [08:09:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:53]Read from MH i2c: E2 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 03 00 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 03 00 4E 34 00 90 00 F6 [08:09:53]RAPDU: 90 00 [08:09:53]wFMCommunicate OK [08:09:53]wFMCommunicate request_size=255 [08:09:53]MH_SAM_APDU [08:09:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 54 4E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 87 CF 01 00 35 04 06 00 6D [08:09:53]Write to MH i2c: E2 02 01 4F 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 54 4E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 87 CF 01 00 35 04 06 00 6D 00 00 EB [08:09:53]Write i2c OK [08:09:53]MH_I2C_Read... [08:09:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:53]Read from MH i2c: E2 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 03 00 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 03 00 4F 34 00 90 00 F7 [08:09:53]RAPDU: 90 00 [08:09:53]wFMCommunicate OK [08:09:53]wFMCommunicate request_size=10 [08:09:53]MH_SAM_APDU [08:09:53]CAPDU: 80 0D 02 02 05 26 FB 10 58 86 [08:09:53]Write to MH i2c: E2 0D 00 50 34 80 0D 02 02 05 00 26 FB 10 58 86 00 00 17 [08:09:53]Write i2c OK [08:09:53]MH_I2C_Read... [08:09:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:53]Read from MH i2c: E2 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 03 00 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 03 00 50 34 00 90 00 F8 [08:09:53]RAPDU: 90 00 [08:09:53]wFMCommunicate OK [08:09:53]wFMCommunicate request_size=4 [08:09:53]MH_SAM_APDU [08:09:53]CAPDU: 80 0D 03 02 [08:09:53]Write to MH i2c: E2 08 00 51 34 80 0D 03 02 00 00 00 00 00 [08:09:53]Write i2c OK [08:09:53]MH_I2C_Read... [08:09:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:53]Read from MH i2c: E2 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 0B 00 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 0B 00 51 34 00 3B AA 9D 05 76 8E 15 CD 90 00 6E [08:09:53]RAPDU: 3B AA 9D 05 76 8E 15 CD 90 00 [08:09:53]wFMCommunicate OK [08:09:53]SAM_PROTO_SignData done [08:09:53]FM_MakeSignedData done [08:09:53]CreateOFDProtocolMessage [08:09:53]wFMCommunicate request_size=4 [08:09:53]MH_SAM_APDU [08:09:53]CAPDU: 80 11 00 00 [08:09:53]Write to MH i2c: E2 08 00 52 34 80 11 00 00 00 00 00 00 00 [08:09:53]Write i2c OK [08:09:53]MH_I2C_Read... [08:09:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:53]Read from MH i2c: E2 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 17 00 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 17 00 52 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5B [08:09:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:09:53]wFMCommunicate OK [08:09:53]CreateOFDProtocolMessage done [08:09:53]OFDSenderStorePacket 118663 [08:09:53]StoreOFDPacket docnum=118663 [08:09:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 86 1D 07 01 49 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 54 4E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 87 CF 01 00 35 04 06 00 6D 26 FB 10 58 86 3B AA 9D 05 76 8E 15 CD [08:09:53]CheckFolder [08:09:53]dirname=/storage/ofd_packets [08:09:53]CheckFolder done [08:09:53]ProducePacketName [08:09:53]name=ofd_packets/00118663 [08:09:53]NVStorageSaveData ofd_packets/00118663 [08:09:53]File name is /storage/ofd_packets/00118663 [08:09:53]Write 301 bytes [08:09:53]NVStorageSaveData done [08:09:53]OFDSenderStorePacket done [08:09:53]KKMCreateOFDPacket done [08:09:53]NVStorageSaveData kkm_last_timestamp [08:09:53]File name is /storage/kkm_last_timestamp [08:09:53]Write 4 bytes [08:09:53]NVStorageSaveData done [08:09:53]ExternCall_PrintAddStr [08:09:53]wPrintStart [08:09:53]Write to MH i2c: 01 00 00 53 34 87 [08:09:53]Write i2c OK [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: 01 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: 01 07 00 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: 01 07 00 53 34 00 00 00 00 00 FF 0F 9C [08:09:53]RasterBufferAndPrint [08:09:53]line Счет N : (1)949546 [08:09:53]line ИНН: 02508201610067 [08:09:53]line Контрольно-Кассовый Чек [08:09:53]line ПРОДАЖА [08:09:53]line ТРК (МРК, ГНК) : 31 [08:09:53]line Товар: 2710124130 [08:09:53]line Аи-92-К-4 [08:09:53]line 4.430 * 67.80 [08:09:53]line = 300.35 [08:09:53]line НДС 12% НСП 1% [08:09:53]line > о реализуемом товаре [08:09:53]line ОКРУГЛЕНИЕ: -0.35 [08:09:53]line ИТОГО: 300.00 [08:09:53]line Внесено: 300.00 [08:09:53]line СДАЧА: 0.00 [08:09:53]line НСП 1% : 2.66 [08:09:53]line НДС 12% : 31.90 [08:09:53]line Наличными: 300.00 [08:09:53]line Безнал.: 0.00 [08:09:53]line Место: АЗС № 134 "Партнер Нефть" [08:09:53]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:09:53]line СНО: Общий режим [08:09:53]line Чек 39 29.07.2024 08:09 [08:09:53]line Смена: 434 ФФД: 1.0 [08:09:53]line ЗНМ: 0300000044 [08:09:53]line РНМ: 0000000000092660 [08:09:53]line Версия ККМ: 001 [08:09:53]line ФМ: 0000000000874939 [08:09:53]line ФД: 118663 [08:09:53]line ФПД: 120014188337286 [08:09:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T080956&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118663&fm=120014188337286&tin=02508201610067®Number=0000000000092660&sum=30000 [08:09:53]written 0, free lines is 4095 [08:09:53]OFD Sender: Processing packet 118663 [packets to send 86, broken 85] [08:09:53]ProducePacketName [08:09:53]name=ofd_packets/00118663 [08:09:53]OFD Sender: To server: pG, [08:09:53]CommunicateWithHost lk.salyk.kg:30040 [08:09:53]ConnectInit lk.salyk.kg [08:09:53]Connected sock=10 [08:09:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 86 1D 07 01 49 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 54 4E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 87 CF 01 00 35 04 06 00 6D 26 FB 10 58 86 3B AA 9D 05 76 8E 15 CD [08:09:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B3 82 47 00 87 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 87 CF 01 00 F4 03 04 00 E2 FB A6 66 B6 04 01 00 00 E7 58 4A 41 7F 26 1A 71 [08:09:54]CommunicateWithHost err = 0 [08:09:54]CheckOFDResponse [08:09:54]1017 (14) - 77093643461234 [08:09:54]1041 (16) - 0000000000874939 [08:09:54]1040 (4) - 118663 [08:09:54]1012 (4) - 29.07.2024 02:18 [08:09:54]1206 (1) - 0 [08:09:54]OFD Sender: Remove packet 118663 [08:09:54]ProducePacketName [08:09:54]name=ofd_packets/00118663 [08:09:54]NVStorageDeleteData [08:09:54]Write to MH i2c: 01 00 00 7D 34 B1 [08:09:54]Write i2c OK [08:09:54]MH_I2C_Read... [08:09:54]Read from MH i2c: 01 [08:09:54]MH_I2C_Read... [08:09:54]Read from MH i2c: 01 07 00 [08:09:54]MH_I2C_Read... [08:09:54]Read from MH i2c: 01 07 00 7D 34 00 00 00 00 00 E4 0C A8 [08:09:54]RasterBufferAndPrint [08:09:54]line [08:09:54]line [08:09:54]line [08:09:54]line [08:09:54]line [08:09:54]written 0, free lines is 3306 [08:09:54]MH_Cut [08:09:54]Write to MH i2c: D1 01 00 84 34 01 8A [08:09:54]Write i2c OK [08:09:54]MH_I2C_Read... [08:09:54]Read from MH i2c: D1 [08:09:54]MH_I2C_Read... [08:09:54]Read from MH i2c: D1 01 00 [08:09:54]MH_I2C_Read... [08:09:54]Read from MH i2c: D1 01 00 84 34 00 89 [08:09:54]Write to MH i2c: 01 00 00 85 34 B9 [08:09:54]Write i2c OK [08:09:54]MH_I2C_Read... [08:09:54]OFD Sender: No OFD packet to send [08:09:55]*** Cut start [08:09:55]*** Partial cut [08:09:55]*** CUTSNS_PIN = 1 [08:09:55]*** CUTSNS_PIN = 0 [08:09:55]*** Brake cut motor [08:09:55]Read from MH i2c: 01 [08:09:55]MH_I2C_Read... [08:09:55]*** Stop cut motor [08:09:55]*** Cut end [08:09:55]Read from MH i2c: 01 07 00 [08:09:55]MH_I2C_Read... [08:09:55]Read from MH i2c: 01 07 00 85 34 00 00 00 00 00 FF 0F CE [08:09:55]process_action close_receipt done [08:09:55]requested_data is exist [08:09:55]produce_requested_data [08:09:55]requested_item fm.sn is exist - process it [08:09:55]wFMCommunicate request_size=4 [08:09:55]MH_SAM_APDU [08:09:55]CAPDU: 80 11 00 00 [08:09:55]Write to MH i2c: E2 08 00 86 34 80 11 00 00 00 00 00 00 34 [08:09:55]Write i2c OK [08:09:55]MH_I2C_Read... [08:09:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:55]Read from MH i2c: E2 [08:09:55]MH_I2C_Read... [08:09:55]Read from MH i2c: E2 17 00 [08:09:55]MH_I2C_Read... [08:09:55]Read from MH i2c: E2 17 00 86 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8F [08:09:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:09:55]wFMCommunicate OK [08:09:55]requested_item fd.num is exist - process it [08:09:55]SAM_PROTO_GetFieldsCounters [08:09:55]wFMCommunicate request_size=4 [08:09:55]MH_SAM_APDU [08:09:55]CAPDU: 80 13 00 00 [08:09:55]Write to MH i2c: E2 08 00 87 34 80 13 00 00 00 00 00 00 37 [08:09:55]Write i2c OK [08:09:55]MH_I2C_Read... [08:09:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:55]Read from MH i2c: E2 [08:09:55]MH_I2C_Read... [08:09:55]Read from MH i2c: E2 62 00 [08:09:55]MH_I2C_Read... [08:09:55]Read from MH i2c: E2 62 00 87 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 87 CF 01 00 0E 04 04 00 B2 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 DD [08:09: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 87 CF 01 00 0E 04 04 00 B2 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 [08:09:55]wFMCommunicate OK [08:09:55]SAM_PROTO_GetFieldsCounters done [08:09:55]requested_item shift.num is exist - process it [08:09:55]requested_item shift.opened is exist - process it [08:09:55]req_shift_opened [08:09:55]FM_GetShiftState [08:09:55]SAM_PROTO_GetShiftState [08:09:55]wFMCommunicate request_size=4 [08:09:55]MH_SAM_APDU [08:09:55]CAPDU: 80 13 01 00 [08:09:55]Write to MH i2c: E2 08 00 88 34 80 13 01 00 00 00 00 00 39 [08:09:55]Write i2c OK [08:09:55]MH_I2C_Read... [08:09:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:55]Read from MH i2c: E2 [08:09:55]MH_I2C_Read... [08:09:55]Read from MH i2c: E2 0E 00 [08:09:55]MH_I2C_Read... [08:09:55]Read from MH i2c: E2 0E 00 88 34 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 67 [08:09:55]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:09:55]wFMCommunicate OK [08:09:55]SAM_PROTO_GetShiftState done [08:09:55]FM_GetShiftState done [08:09:55]req_shift_opened done [08:09:55]requested_item shift.open_date is exist - process it [08:09:55]req_shift_open_date [08:09:55]req_shift_open_date done [08:09:55]produce_requested_data done [08:09:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118663,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:09:55]process_action_free close_receipt [08:09:55]json_value_free [08:09:55]json_value_free done [08:09:55]process_json_proto returns [08:09:55]Send response to host [08:09:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118663,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:09:55]free response buf [08:09:55]execute_script done [08:09:55]execute_script returns [08:09:55]free content buf [08:09:55]Sock 7.Close socket [08:09:55]Sock 7.Thread stoped [08:09:59]OFD Sender: No OFD packet to send [08:10:04]OFD Sender: No OFD packet to send [08:10:09]OFD Sender: No OFD packet to send [08:10:14]OFD Sender: No OFD packet to send [08:10:19]OFD Sender: No OFD packet to send [08:10:24]OFD Sender: No OFD packet to send [08:10:29]OFD Sender: No OFD packet to send [08:10:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:21]accept exits with 9 [08:13:21]New connection [08:13:21]New thread 3067383140 created [08:13:21]Thread 3067239780 joined [08:13:21]Waiting for new connection... [08:13:21] Sock 9.Parse request [08:13:21]Sock 9.Check first char [08:13:21]Sock 9.First char is OK [08:13:21]request: POST /json_proto HTTP/1.0 [08:13:21]Method: POST [08:13:21]URL: /json_proto [08:13:21]Method is POST - this is cgi request [08:13:21]url: /json_proto [08:13:21]query_string will be loaded in cgi processing [08:13:21]execute_cgi json_proto POST (null) [08:13:21]execute_cgi path=json_proto method=POST [08:13:21]POST find Content-Length [08:13:21]Host: 172.17.45.7:8080 [08:13:21]Content-Length: 677 [08:13:21]Content-Type: application/json [08:13:21] [08:13:21]POST finish read [08:13:21]Found Content-Length = 677 [08:13:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:21]execute_script... [08:13:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:21]POST & json_proto [08:13:21]process_json_proto [08:13:21]json parsed OK: [08:13:21]protocol is kg_v1.0 [08:13:21]action value=close_receipt [08:13:21]process_action close_receipt [08:13:21]cmd_close_receipt [08:13:21]MH_GetDate [08:13:21]Write to MH i2c: F0 00 00 89 34 AC [08:13:21]Write i2c OK [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: F0 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: F0 09 00 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: F0 09 00 89 34 00 25 4F A7 66 90 0F 3E 66 79 [08:13:21]GetLastDocTimeStamp 1722240596 [08:13:21]current date 1722240805 [08:13:21]FM_GetShiftState [08:13:21]SAM_PROTO_GetShiftState [08:13:21]wFMCommunicate request_size=4 [08:13:21]MH_SAM_APDU [08:13:21]CAPDU: 80 13 01 00 [08:13:21]Write to MH i2c: E2 08 00 8A 34 80 13 01 00 00 00 00 00 3B [08:13:21]Write i2c OK [08:13:21]MH_I2C_Read... [08:13:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:21]Read from MH i2c: E2 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: E2 0E 00 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: E2 0E 00 8A 34 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 69 [08:13:21]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:13:21]wFMCommunicate OK [08:13:21]SAM_PROTO_GetShiftState done [08:13:21]FM_GetShiftState done [08:13:21]opened in 1722211641 [08:13:21]opened+sec_in_day 1722298041 [08:13:21]quantity*price = 50036 [08:13:21]sum+1 = 50037 [08:13:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 40 29.07.2024 08:13 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118664 ФПД: 245829994902981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T081325&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118664&fm=245829994902981&tin=02508201610067®Number=0000000000092660&sum=50000 [08:13:22]StoreToDocumentArchive [08:13:22]shift 434 fd 118664 [08:13:22]save to /storage/0434/doc_00118664 [08:13:22]save last doc name /storage/0434/doc_00118664 to /storage/kkm_last_doc_name [08:13:22]save OK [08:13:22]Clear old archive folders... [08:13:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:13:22]tlvbuf is 01F06930 [08:13:22]SAM_PROTO_ClearQueue [08:13:22]wFMCommunicate request_size=4 [08:13:22]MH_SAM_APDU [08:13:22]CAPDU: 80 09 00 00 [08:13:22]Write to MH i2c: E2 08 00 97 34 80 09 00 00 00 00 00 00 3D [08:13:22]Write i2c OK [08:13:22]MH_I2C_Read... [08:13:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:22]Read from MH i2c: E2 [08:13:22]MH_I2C_Read... [08:13:22]Read from MH i2c: E2 03 00 [08:13:22]MH_I2C_Read... [08:13:22]Read from MH i2c: E2 03 00 97 34 00 90 00 3F [08:13:22]RAPDU: 90 00 [08:13:22]wFMCommunicate OK [08:13:22]SAM_PROTO_ClearQueue done [08:13:22]KKMCreateOFDPacket [08:13:22]OFDProtocolAddRootSTLVToBuf [08:13:22]FM_MakeSignedData [08:13:22]FM_MakeSignedData [08:13:22]SAM_PROTO_SignData [08:13:22]wFMCommunicate request_size=4 [08:13:22]MH_SAM_APDU [08:13:22]CAPDU: 80 0D 01 02 [08:13:22]Write to MH i2c: E2 08 00 98 34 80 0D 01 02 00 00 00 00 45 [08:13:22]Write i2c OK [08:13:22]MH_I2C_Read... [08:13:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:22]Read from MH i2c: E2 [08:13:22]MH_I2C_Read... [08:13:22]Read from MH i2c: E2 03 00 [08:13:22]MH_I2C_Read... [08:13:22]Read from MH i2c: E2 03 00 98 34 00 90 00 40 [08:13:22]RAPDU: 90 00 [08:13:22]wFMCommunicate OK [08:13:22]wFMCommunicate request_size=255 [08:13:22]MH_SAM_APDU [08:13:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 25 4F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 88 CF 01 00 35 04 06 00 DF [08:13:22]Write to MH i2c: E2 02 01 99 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 25 4F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 88 CF 01 00 35 04 06 00 DF 00 00 5C [08:13:22]Write i2c OK [08:13:22]MH_I2C_Read... [08:13:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:22]Read from MH i2c: E2 [08:13:22]MH_I2C_Read... [08:13:22]Read from MH i2c: E2 03 00 [08:13:22]MH_I2C_Read... [08:13:22]Read from MH i2c: E2 03 00 99 34 00 90 00 41 [08:13:22]RAPDU: 90 00 [08:13:22]wFMCommunicate OK [08:13:22]wFMCommunicate request_size=10 [08:13:22]MH_SAM_APDU [08:13:22]CAPDU: 80 0D 02 02 05 94 C1 85 75 C5 [08:13:22]Write to MH i2c: E2 0D 00 9A 34 80 0D 02 02 05 00 94 C1 85 75 C5 00 00 66 [08:13:22]Write i2c OK [08:13:22]MH_I2C_Read... [08:13:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:22]Read from MH i2c: E2 [08:13:22]MH_I2C_Read... [08:13:22]Read from MH i2c: E2 03 00 [08:13:22]MH_I2C_Read... [08:13:22]Read from MH i2c: E2 03 00 9A 34 00 90 00 42 [08:13:22]RAPDU: 90 00 [08:13:22]wFMCommunicate OK [08:13:22]wFMCommunicate request_size=4 [08:13:22]MH_SAM_APDU [08:13:22]CAPDU: 80 0D 03 02 [08:13:22]Write to MH i2c: E2 08 00 9B 34 80 0D 03 02 00 00 00 00 4A [08:13:22]Write i2c OK [08:13:22]MH_I2C_Read... [08:13:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:22]Read from MH i2c: E2 [08:13:22]MH_I2C_Read... [08:13:22]Read from MH i2c: E2 0B 00 [08:13:22]MH_I2C_Read... [08:13:22]Read from MH i2c: E2 0B 00 9B 34 00 95 CB 7B 10 99 41 A0 C8 90 00 78 [08:13:22]RAPDU: 95 CB 7B 10 99 41 A0 C8 90 00 [08:13:22]wFMCommunicate OK [08:13:22]SAM_PROTO_SignData done [08:13:22]FM_MakeSignedData done [08:13:22]CreateOFDProtocolMessage [08:13:22]wFMCommunicate request_size=4 [08:13:22]MH_SAM_APDU [08:13:22]CAPDU: 80 11 00 00 [08:13:22]Write to MH i2c: E2 08 00 9C 34 80 11 00 00 00 00 00 00 4A [08:13:22]Write i2c OK [08:13:22]MH_I2C_Read... [08:13:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:22]Read from MH i2c: E2 [08:13:22]MH_I2C_Read... [08:13:22]Read from MH i2c: E2 17 00 [08:13:22]MH_I2C_Read... [08:13:22]Read from MH i2c: E2 17 00 9C 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A5 [08:13:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:13:22]wFMCommunicate OK [08:13:22]CreateOFDProtocolMessage done [08:13:22]OFDSenderStorePacket 118664 [08:13:22]StoreOFDPacket docnum=118664 [08:13:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2B 1C 07 01 F6 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 25 4F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 88 CF 01 00 35 04 06 00 DF 94 C1 85 75 C5 95 CB 7B 10 99 41 A0 C8 [08:13:22]CheckFolder [08:13:22]dirname=/storage/ofd_packets [08:13:22]CheckFolder done [08:13:22]ProducePacketName [08:13:22]name=ofd_packets/00118664 [08:13:22]NVStorageSaveData ofd_packets/00118664 [08:13:22]File name is /storage/ofd_packets/00118664 [08:13:22]Write 301 bytes [08:13:22]NVStorageSaveData done [08:13:22]OFDSenderStorePacket done [08:13:22]KKMCreateOFDPacket done [08:13:22]NVStorageSaveData kkm_last_timestamp [08:13:22]File name is /storage/kkm_last_timestamp [08:13:22]Write 4 bytes [08:13:22]NVStorageSaveData done [08:13:22]ExternCall_PrintAddStr [08:13:22]wPrintStart [08:13:22]Write to MH i2c: 01 00 00 9D 34 D1 [08:13:22]Write i2c OK [08:13:22]MH_I2C_Read... [08:13:22]Read from MH i2c: 01 [08:13:22]MH_I2C_Read... [08:13:22]Read from MH i2c: 01 07 00 [08:13:22]MH_I2C_Read... [08:13:22]Read from MH i2c: 01 07 00 9D 34 00 00 00 00 00 FF 0F E6 [08:13:22]RasterBufferAndPrint [08:13:22]line Счет N : (1)949547 [08:13:22]line ИНН: 02508201610067 [08:13:22]line Контрольно-Кассовый Чек [08:13:22]line ПРОДАЖА [08:13:22]line ТРК (МРК, ГНК) : 41 [08:13:22]line Товар: 2710124130 [08:13:22]line Аи-92-К-4 [08:13:22]line 7.380 * 67.80 [08:13:22]line = 500.36 [08:13:22]line НДС 12% НСП 1% [08:13:22]line > о реализуемом товаре [08:13:22]line ОКРУГЛЕНИЕ: -0.36 [08:13:22]line ИТОГО: 500.00 [08:13:22]line Внесено: 500.00 [08:13:22]line СДАЧА: 0.00 [08:13:22]line НСП 1% : 4.43 [08:13:22]line НДС 12% : 53.14 [08:13:22]line Наличными: 500.00 [08:13:22]line Безнал.: 0.00 [08:13:22]line Место: АЗС № 134 "Партнер Нефть" [08:13:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:13:22]line СНО: Общий режим [08:13:22]line Чек 40 29.07.2024 08:13 [08:13:22]line Смена: 434 ФФД: 1.0 [08:13:22]line ЗНМ: 0300000044 [08:13:22]line РНМ: 0000000000092660 [08:13:22]line Версия ККМ: 001 [08:13:22]line ФМ: 0000000000874939 [08:13:22]line ФД: 118664 [08:13:22]line ФПД: 245829994902981 [08:13:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T081325&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118664&fm=245829994902981&tin=02508201610067®Number=0000000000092660&sum=50000 [08:13:23]OFD Sender: Processing packet 118664 [packets to send 86, broken 85] [08:13:23]ProducePacketName [08:13:23]name=ofd_packets/00118664 [08:13:23]OFD Sender: To server: pG, [08:13:23]CommunicateWithHost lk.salyk.kg:30040 [08:13:23]ConnectInit lk.salyk.kg [08:13:23]written 0, free lines is 4095 [08:13:23]Connected sock=10 [08:13:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2B 1C 07 01 F6 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 25 4F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 88 CF 01 00 35 04 06 00 DF 94 C1 85 75 C5 95 CB 7B 10 99 41 A0 C8 [08:13:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5D C6 47 00 FF 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 34 39 33 39 10 04 04 00 88 CF 01 00 F4 03 04 00 B3 FC A6 66 B6 04 01 00 00 12 86 63 E9 9C 67 CB FD [08:13:23]CommunicateWithHost err = 0 [08:13:23]CheckOFDResponse [08:13:23]1017 (14) - 77093643461234 [08:13:23]1041 (16) - 0000000000874939 [08:13:23]1040 (4) - 118664 [08:13:23]1012 (4) - 29.07.2024 02:21 [08:13:23]1206 (1) - 0 [08:13:23]OFD Sender: Remove packet 118664 [08:13:23]ProducePacketName [08:13:23]name=ofd_packets/00118664 [08:13:23]NVStorageDeleteData [08:13:23]Write to MH i2c: 01 00 00 C7 34 FB [08:13:23]Write i2c OK [08:13:23]MH_I2C_Read... [08:13:23]Read from MH i2c: 01 [08:13:23]MH_I2C_Read... [08:13:23]Read from MH i2c: 01 07 00 [08:13:23]MH_I2C_Read... [08:13:23]Read from MH i2c: 01 07 00 C7 34 00 00 00 00 00 D5 0C E3 [08:13:23]RasterBufferAndPrint [08:13:23]line [08:13:23]line [08:13:23]line [08:13:23]line [08:13:23]line [08:13:23]written 0, free lines is 3292 [08:13:23]MH_Cut [08:13:23]Write to MH i2c: D1 01 00 CE 34 01 D4 [08:13:23]Write i2c OK [08:13:23]MH_I2C_Read... [08:13:23]Read from MH i2c: D1 [08:13:23]MH_I2C_Read... [08:13:23]Read from MH i2c: D1 01 00 [08:13:23]MH_I2C_Read... [08:13:23]Read from MH i2c: D1 01 00 CE 34 00 D3 [08:13:23]Write to MH i2c: 01 00 00 CF 34 03 [08:13:23]Write i2c OK [08:13:23]MH_I2C_Read... [08:13:23]OFD Sender: No OFD packet to send [08:13:24]*** Cut start [08:13:24]*** Partial cut [08:13:24]*** CUTSNS_PIN = 1 [08:13:24]*** CUTSNS_PIN = 0 [08:13:24]*** Brake cut motor [08:13:24]Read from MH i2c: 01 [08:13:24]MH_I2C_Read... [08:13:24]*** Stop cut motor [08:13:24]*** Cut end [08:13:24]Read from MH i2c: 01 07 00 [08:13:24]MH_I2C_Read... [08:13:24]Read from MH i2c: 01 07 00 CF 34 00 00 00 00 00 FF 0F 18 [08:13:24]process_action close_receipt done [08:13:24]requested_data is exist [08:13:24]produce_requested_data [08:13:24]requested_item fm.sn is exist - process it [08:13:24]wFMCommunicate request_size=4 [08:13:24]MH_SAM_APDU [08:13:24]CAPDU: 80 11 00 00 [08:13:24]Write to MH i2c: E2 08 00 D0 34 80 11 00 00 00 00 00 00 7E [08:13:24]Write i2c OK [08:13:24]MH_I2C_Read... [08:13:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:24]Read from MH i2c: E2 [08:13:24]MH_I2C_Read... [08:13:24]Read from MH i2c: E2 17 00 [08:13:24]MH_I2C_Read... [08:13:24]Read from MH i2c: E2 17 00 D0 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D9 [08:13:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:13:24]wFMCommunicate OK [08:13:24]requested_item fd.num is exist - process it [08:13:24]SAM_PROTO_GetFieldsCounters [08:13:24]wFMCommunicate request_size=4 [08:13:24]MH_SAM_APDU [08:13:24]CAPDU: 80 13 00 00 [08:13:24]Write to MH i2c: E2 08 00 D1 34 80 13 00 00 00 00 00 00 81 [08:13:24]Write i2c OK [08:13:24]MH_I2C_Read... [08:13:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:25]Read from MH i2c: E2 [08:13:25]MH_I2C_Read... [08:13:25]Read from MH i2c: E2 62 00 [08:13:25]MH_I2C_Read... [08:13:25]Read from MH i2c: E2 62 00 D1 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 88 CF 01 00 0E 04 04 00 B2 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 2B [08:13: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 88 CF 01 00 0E 04 04 00 B2 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 [08:13:25]wFMCommunicate OK [08:13:25]SAM_PROTO_GetFieldsCounters done [08:13:25]requested_item shift.num is exist - process it [08:13:25]requested_item shift.opened is exist - process it [08:13:25]req_shift_opened [08:13:25]FM_GetShiftState [08:13:25]SAM_PROTO_GetShiftState [08:13:25]wFMCommunicate request_size=4 [08:13:25]MH_SAM_APDU [08:13:25]CAPDU: 80 13 01 00 [08:13:25]Write to MH i2c: E2 08 00 D2 34 80 13 01 00 00 00 00 00 83 [08:13:25]Write i2c OK [08:13:25]MH_I2C_Read... [08:13:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:25]Read from MH i2c: E2 [08:13:25]MH_I2C_Read... [08:13:25]Read from MH i2c: E2 0E 00 [08:13:25]MH_I2C_Read... [08:13:25]Read from MH i2c: E2 0E 00 D2 34 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B1 [08:13:25]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:13:25]wFMCommunicate OK [08:13:25]SAM_PROTO_GetShiftState done [08:13:25]FM_GetShiftState done [08:13:25]req_shift_opened done [08:13:25]requested_item shift.open_date is exist - process it [08:13:25]req_shift_open_date [08:13:25]req_shift_open_date done [08:13:25]produce_requested_data done [08:13:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118664,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:13:25]process_action_free close_receipt [08:13:25]json_value_free [08:13:25]json_value_free done [08:13:25]process_json_proto returns [08:13:25]Send response to host [08:13:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118664,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:13:25]free response buf [08:13:25]execute_script done [08:13:25]execute_script returns [08:13:25]free content buf [08:13:25]Sock 9.Close socket [08:13:25]Sock 9.Thread stoped [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:04]accept exits with 7 [08:15:04]New connection [08:15:04]New thread 3067239780 created [08:15:04]Thread 3067383140 joined [08:15:04]Waiting for new connection... [08:15:04] Sock 7.Parse request [08:15:04]Sock 7.Check first char [08:15:04]Sock 7.First char is OK [08:15:04]request: POST /json_proto HTTP/1.0 [08:15:04]Method: POST [08:15:04]URL: /json_proto [08:15:04]Method is POST - this is cgi request [08:15:04]url: /json_proto [08:15:04]query_string will be loaded in cgi processing [08:15:04]execute_cgi json_proto POST (null) [08:15:04]execute_cgi path=json_proto method=POST [08:15:04]POST find Content-Length [08:15:04]Host: 172.17.45.7:8080 [08:15:04]Content-Length: 677 [08:15:04]Content-Type: application/json [08:15:04] [08:15:04]POST finish read [08:15:04]Found Content-Length = 677 [08:15:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:04]execute_script... [08: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 : (1)949548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:04]POST & json_proto [08:15:04]process_json_proto [08:15:04]json parsed OK: [08:15:04]protocol is kg_v1.0 [08:15:04]action value=close_receipt [08:15:04]process_action close_receipt [08:15:04]cmd_close_receipt [08:15:04]MH_GetDate [08:15:04]Write to MH i2c: F0 00 00 D3 34 F6 [08:15:04]Write i2c OK [08:15:04]MH_I2C_Read... [08:15:04]Read from MH i2c: F0 [08:15:04]MH_I2C_Read... [08:15:04]Read from MH i2c: F0 09 00 [08:15:04]MH_I2C_Read... [08:15:04]Read from MH i2c: F0 09 00 D3 34 00 8C 4F A7 66 90 0F 3E 66 2A [08:15:04]GetLastDocTimeStamp 1722240805 [08:15:04]current date 1722240908 [08:15:04]FM_GetShiftState [08:15:04]SAM_PROTO_GetShiftState [08:15:04]wFMCommunicate request_size=4 [08:15:04]MH_SAM_APDU [08:15:04]CAPDU: 80 13 01 00 [08:15:04]Write to MH i2c: E2 08 00 D4 34 80 13 01 00 00 00 00 00 85 [08:15:04]Write i2c OK [08:15:04]MH_I2C_Read... [08:15:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:04]Read from MH i2c: E2 [08:15:04]MH_I2C_Read... [08:15:04]Read from MH i2c: E2 0E 00 [08:15:04]MH_I2C_Read... [08:15:04]Read from MH i2c: E2 0E 00 D4 34 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B3 [08:15:04]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:15:04]wFMCommunicate OK [08:15:04]SAM_PROTO_GetShiftState done [08:15:04]FM_GetShiftState done [08:15:04]opened in 1722211641 [08:15:04]opened+sec_in_day 1722298041 [08:15:04]quantity*price = 50036 [08:15:04]sum+1 = 50037 [08:15:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 41 29.07.2024 08:15 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118665 ФПД: 30473709416775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T081508&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118665&fm=30473709416775&tin=02508201610067®Number=0000000000092660&sum=50000 [08:15:05]StoreToDocumentArchive [08:15:05]shift 434 fd 118665 [08:15:05]save to /storage/0434/doc_00118665 [08:15:05]save last doc name /storage/0434/doc_00118665 to /storage/kkm_last_doc_name [08:15:05]save OK [08:15:05]Clear old archive folders... [08:15:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:15:05]tlvbuf is 01F06610 [08:15:05]SAM_PROTO_ClearQueue [08:15:05]wFMCommunicate request_size=4 [08:15:05]MH_SAM_APDU [08:15:05]CAPDU: 80 09 00 00 [08:15:05]Write to MH i2c: E2 08 00 E1 34 80 09 00 00 00 00 00 00 87 [08:15:05]Write i2c OK [08:15:05]MH_I2C_Read... [08:15:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:05]Read from MH i2c: E2 [08:15:05]MH_I2C_Read... [08:15:05]Read from MH i2c: E2 03 00 [08:15:05]MH_I2C_Read... [08:15:05]Read from MH i2c: E2 03 00 E1 34 00 90 00 89 [08:15:05]RAPDU: 90 00 [08:15:05]wFMCommunicate OK [08:15:05]SAM_PROTO_ClearQueue done [08:15:05]KKMCreateOFDPacket [08:15:05]OFDProtocolAddRootSTLVToBuf [08:15:05]FM_MakeSignedData [08:15:05]FM_MakeSignedData [08:15:05]SAM_PROTO_SignData [08:15:05]wFMCommunicate request_size=4 [08:15:05]MH_SAM_APDU [08:15:05]CAPDU: 80 0D 01 02 [08:15:05]Write to MH i2c: E2 08 00 E2 34 80 0D 01 02 00 00 00 00 8F [08:15:05]Write i2c OK [08:15:05]MH_I2C_Read... [08:15:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:05]Read from MH i2c: E2 [08:15:05]MH_I2C_Read... [08:15:05]Read from MH i2c: E2 03 00 [08:15:05]MH_I2C_Read... [08:15:05]Read from MH i2c: E2 03 00 E2 34 00 90 00 8A [08:15:05]RAPDU: 90 00 [08:15:05]wFMCommunicate OK [08:15:05]wFMCommunicate request_size=255 [08:15:05]MH_SAM_APDU [08:15:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 8C 4F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 89 CF 01 00 35 04 06 00 1B [08:15:05]Write to MH i2c: E2 02 01 E3 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 8C 4F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 89 CF 01 00 35 04 06 00 1B 00 00 4B [08:15:05]Write i2c OK [08:15:05]MH_I2C_Read... [08:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:05]Read from MH i2c: E2 [08:15:05]MH_I2C_Read... [08:15:05]Read from MH i2c: E2 03 00 [08:15:05]MH_I2C_Read... [08:15:05]Read from MH i2c: E2 03 00 E3 34 00 90 00 8B [08:15:05]RAPDU: 90 00 [08:15:05]wFMCommunicate OK [08:15:05]wFMCommunicate request_size=10 [08:15:05]MH_SAM_APDU [08:15:05]CAPDU: 80 0D 02 02 05 B7 36 9F F1 47 [08:15:05]Write to MH i2c: E2 0D 00 E4 34 80 0D 02 02 05 00 B7 36 9F F1 47 00 00 60 [08:15:05]Write i2c OK [08:15:05]MH_I2C_Read... [08:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:05]Read from MH i2c: E2 [08:15:05]MH_I2C_Read... [08:15:05]Read from MH i2c: E2 03 00 [08:15:05]MH_I2C_Read... [08:15:05]Read from MH i2c: E2 03 00 E4 34 00 90 00 8C [08:15:05]RAPDU: 90 00 [08:15:05]wFMCommunicate OK [08:15:05]wFMCommunicate request_size=4 [08:15:05]MH_SAM_APDU [08:15:05]CAPDU: 80 0D 03 02 [08:15:05]Write to MH i2c: E2 08 00 E5 34 80 0D 03 02 00 00 00 00 94 [08:15:05]Write i2c OK [08:15:05]MH_I2C_Read... [08:15:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:05]Read from MH i2c: E2 [08:15:05]MH_I2C_Read... [08:15:05]Read from MH i2c: E2 0B 00 [08:15:05]MH_I2C_Read... [08:15:05]Read from MH i2c: E2 0B 00 E5 34 00 12 B5 29 8A 0B 2A 56 1F 90 00 B9 [08:15:05]RAPDU: 12 B5 29 8A 0B 2A 56 1F 90 00 [08:15:05]wFMCommunicate OK [08:15:05]SAM_PROTO_SignData done [08:15:05]FM_MakeSignedData done [08:15:05]CreateOFDProtocolMessage [08:15:05]wFMCommunicate request_size=4 [08:15:05]MH_SAM_APDU [08:15:05]CAPDU: 80 11 00 00 [08:15:05]Write to MH i2c: E2 08 00 E6 34 80 11 00 00 00 00 00 00 94 [08:15:05]Write i2c OK [08:15:05]MH_I2C_Read... [08:15:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:05]Read from MH i2c: E2 [08:15:05]MH_I2C_Read... [08:15:05]Read from MH i2c: E2 17 00 [08:15:05]MH_I2C_Read... [08:15:05]Read from MH i2c: E2 17 00 E6 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EF [08:15:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:15:05]wFMCommunicate OK [08:15:05]CreateOFDProtocolMessage done [08:15:05]OFDSenderStorePacket 118665 [08:15:05]StoreOFDPacket docnum=118665 [08:15:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 56 68 07 01 9D 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 8C 4F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 89 CF 01 00 35 04 06 00 1B B7 36 9F F1 47 12 B5 29 8A 0B 2A 56 1F [08:15:05]CheckFolder [08:15:05]dirname=/storage/ofd_packets [08:15:05]CheckFolder done [08:15:05]ProducePacketName [08:15:05]name=ofd_packets/00118665 [08:15:05]NVStorageSaveData ofd_packets/00118665 [08:15:05]File name is /storage/ofd_packets/00118665 [08:15:05]Write 301 bytes [08:15:05]NVStorageSaveData done [08:15:05]OFDSenderStorePacket done [08:15:05]KKMCreateOFDPacket done [08:15:05]NVStorageSaveData kkm_last_timestamp [08:15:05]File name is /storage/kkm_last_timestamp [08:15:05]Write 4 bytes [08:15:05]NVStorageSaveData done [08:15:05]ExternCall_PrintAddStr [08:15:05]wPrintStart [08:15:05]Write to MH i2c: 01 00 00 E7 34 1B [08:15:05]Write i2c OK [08:15:05]MH_I2C_Read... [08:15:05]Read from MH i2c: 01 [08:15:05]MH_I2C_Read... [08:15:05]Read from MH i2c: 01 07 00 [08:15:05]MH_I2C_Read... [08:15:05]Read from MH i2c: 01 07 00 E7 34 00 00 00 00 00 FF 0F 30 [08:15:05]RasterBufferAndPrint [08:15:05]line Счет N : (1)949548 [08:15:05]line ИНН: 02508201610067 [08:15:05]line Контрольно-Кассовый Чек [08:15:05]line ПРОДАЖА [08:15:05]line ТРК (МРК, ГНК) : 61 [08:15:05]line Товар: 2710124130 [08:15:05]line Аи-92-К-4 [08:15:05]line 7.380 * 67.80 [08:15:05]line = 500.36 [08:15:05]line НДС 12% НСП 1% [08:15:05]line > о реализуемом товаре [08:15:05]line ОКРУГЛЕНИЕ: -0.36 [08:15:05]line ИТОГО: 500.00 [08:15:05]line Внесено: 500.00 [08:15:05]line СДАЧА: 0.00 [08:15:05]line НСП 1% : 4.43 [08:15:05]line НДС 12% : 53.14 [08:15:05]line Наличными: 500.00 [08:15:05]line Безнал.: 0.00 [08:15:05]line Место: АЗС № 134 "Партнер Нефть" [08:15:05]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:15:05]line СНО: Общий режим [08:15:05]line Чек 41 29.07.2024 08:15 [08:15:05]line Смена: 434 ФФД: 1.0 [08:15:05]line ЗНМ: 0300000044 [08:15:05]line РНМ: 0000000000092660 [08:15:05]line Версия ККМ: 001 [08:15:05]line ФМ: 0000000000874939 [08:15:05]line ФД: 118665 [08:15:05]line ФПД: 30473709416775 [08:15:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T081508&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118665&fm=30473709416775&tin=02508201610067®Number=0000000000092660&sum=50000 [08:15:06]OFD Sender: Processing packet 118665 [packets to send 86, broken 85] [08:15:06]ProducePacketName [08:15:06]name=ofd_packets/00118665 [08:15:06]OFD Sender: To server: pG, [08:15:06]CommunicateWithHost lk.salyk.kg:30040 [08:15:06]ConnectInit lk.salyk.kg [08:15:06]written 0, free lines is 4095 [08:15:06]Connected sock=10 [08: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 34 39 33 39 0F 01 00 00 56 68 07 01 9D 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 8C 4F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 89 CF 01 00 35 04 06 00 1B B7 36 9F F1 47 12 B5 29 8A 0B 2A 56 1F [08:15:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B6 FC 47 00 4E 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 89 CF 01 00 F4 03 04 00 1B FD A6 66 B6 04 01 00 00 E1 AD 9D CE 9D 36 02 76 [08:15:06]CommunicateWithHost err = 0 [08:15:06]CheckOFDResponse [08:15:06]1017 (14) - 77093643461234 [08:15:06]1041 (16) - 0000000000874939 [08:15:06]1040 (4) - 118665 [08:15:06]1012 (4) - 29.07.2024 02:23 [08:15:06]1206 (1) - 0 [08:15:06]OFD Sender: Remove packet 118665 [08:15:06]ProducePacketName [08:15:06]name=ofd_packets/00118665 [08:15:06]NVStorageDeleteData [08:15:06]Write to MH i2c: 01 00 00 11 35 46 [08:15:06]Write i2c OK [08:15:06]MH_I2C_Read... [08:15:06]Read from MH i2c: 01 [08:15:06]MH_I2C_Read... [08:15:06]Read from MH i2c: 01 07 00 [08:15:06]MH_I2C_Read... [08:15:06]Read from MH i2c: 01 07 00 11 35 00 00 00 00 00 EC 0C 45 [08:15:06]RasterBufferAndPrint [08:15:06]line [08:15:06]line [08:15:06]line [08:15:06]line [08:15:06]line [08:15:06]written 0, free lines is 3315 [08:15:06]MH_Cut [08:15:06]Write to MH i2c: D1 01 00 18 35 01 1F [08:15:06]Write i2c OK [08:15:06]MH_I2C_Read... [08:15:06]Read from MH i2c: D1 [08:15:06]MH_I2C_Read... [08:15:06]Read from MH i2c: D1 01 00 [08:15:06]MH_I2C_Read... [08:15:06]Read from MH i2c: D1 01 00 18 35 00 1E [08:15:06]Write to MH i2c: 01 00 00 19 35 4E [08:15:06]Write i2c OK [08:15:06]MH_I2C_Read... [08:15:06]OFD Sender: No OFD packet to send [08:15:07]*** Cut start [08:15:07]*** Partial cut [08:15:07]*** CUTSNS_PIN = 1 [08:15:07]*** CUTSNS_PIN = 0 [08:15:07]*** Brake cut motor [08:15:07]Read from MH i2c: 01 [08:15:07]MH_I2C_Read... [08:15:07]*** Stop cut motor [08:15:07]*** Cut end [08:15:07]Read from MH i2c: 01 07 00 [08:15:07]MH_I2C_Read... [08:15:07]Read from MH i2c: 01 07 00 19 35 00 00 00 00 00 FF 0F 63 [08:15:07]process_action close_receipt done [08:15:07]requested_data is exist [08:15:07]produce_requested_data [08:15:07]requested_item fm.sn is exist - process it [08:15:07]wFMCommunicate request_size=4 [08:15:07]MH_SAM_APDU [08:15:07]CAPDU: 80 11 00 00 [08:15:07]Write to MH i2c: E2 08 00 1A 35 80 11 00 00 00 00 00 00 C9 [08:15:07]Write i2c OK [08:15:07]MH_I2C_Read... [08:15:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:08]Read from MH i2c: E2 [08:15:08]MH_I2C_Read... [08:15:08]Read from MH i2c: E2 17 00 [08:15:08]MH_I2C_Read... [08:15:08]Read from MH i2c: E2 17 00 1A 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 24 [08:15:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:15:08]wFMCommunicate OK [08:15:08]requested_item fd.num is exist - process it [08:15:08]SAM_PROTO_GetFieldsCounters [08:15:08]wFMCommunicate request_size=4 [08:15:08]MH_SAM_APDU [08:15:08]CAPDU: 80 13 00 00 [08:15:08]Write to MH i2c: E2 08 00 1B 35 80 13 00 00 00 00 00 00 CC [08:15:08]Write i2c OK [08:15:08]MH_I2C_Read... [08:15:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:08]Read from MH i2c: E2 [08:15:08]MH_I2C_Read... [08:15:08]Read from MH i2c: E2 62 00 [08:15:08]MH_I2C_Read... [08:15:08]Read from MH i2c: E2 62 00 1B 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 89 CF 01 00 0E 04 04 00 B2 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 7A [08:15: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 89 CF 01 00 0E 04 04 00 B2 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 [08:15:08]wFMCommunicate OK [08:15:08]SAM_PROTO_GetFieldsCounters done [08:15:08]requested_item shift.num is exist - process it [08:15:08]requested_item shift.opened is exist - process it [08:15:08]req_shift_opened [08:15:08]FM_GetShiftState [08:15:08]SAM_PROTO_GetShiftState [08:15:08]wFMCommunicate request_size=4 [08:15:08]MH_SAM_APDU [08:15:08]CAPDU: 80 13 01 00 [08:15:08]Write to MH i2c: E2 08 00 1C 35 80 13 01 00 00 00 00 00 CE [08:15:08]Write i2c OK [08:15:08]MH_I2C_Read... [08:15:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:08]Read from MH i2c: E2 [08:15:08]MH_I2C_Read... [08:15:08]Read from MH i2c: E2 0E 00 [08:15:08]MH_I2C_Read... [08:15:08]Read from MH i2c: E2 0E 00 1C 35 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 FC [08:15:08]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:15:08]wFMCommunicate OK [08:15:08]SAM_PROTO_GetShiftState done [08:15:08]FM_GetShiftState done [08:15:08]req_shift_opened done [08:15:08]requested_item shift.open_date is exist - process it [08:15:08]req_shift_open_date [08:15:08]req_shift_open_date done [08:15:08]produce_requested_data done [08:15:08]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118665,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:15:08]process_action_free close_receipt [08:15:08]json_value_free [08:15:08]json_value_free done [08:15:08]process_json_proto returns [08:15:08]Send response to host [08:15:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118665,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:15:08]free response buf [08:15:08]execute_script done [08:15:08]execute_script returns [08:15:08]free content buf [08:15:08]Sock 7.Close socket [08:15:08]Sock 7.Thread stoped [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:52]accept exits with 9 [08:15:52]New connection [08:15:52]New thread 3067383140 created [08:15:52]Thread 3067239780 joined [08:15:52]Waiting for new connection... [08:15:52] Sock 9.Parse request [08:15:52]Sock 9.Check first char [08:15:52]Sock 9.First char is OK [08:15:52]request: POST /json_proto HTTP/1.0 [08:15:52]Method: POST [08:15:52]URL: /json_proto [08:15:52]Method is POST - this is cgi request [08:15:52]url: /json_proto [08:15:52]query_string will be loaded in cgi processing [08:15:52]execute_cgi json_proto POST (null) [08:15:52]execute_cgi path=json_proto method=POST [08:15:52]POST find Content-Length [08:15:52]Host: 172.17.45.7:8080 [08:15:52]Content-Length: 674 [08:15:52]Content-Type: application/json [08:15:52] [08:15:52]POST finish read [08:15:52]Found Content-Length = 674 [08:15:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 1.060, "sum" : 71.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 71.00, "payments": [ { "type": 0, "sum" : 71.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:52]execute_script... [08:15: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)949549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 1.060, "sum" : 71.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 71.00, "payments": [ { "type": 0, "sum" : 71.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:52]POST & json_proto [08:15:52]process_json_proto [08:15:52]json parsed OK: [08:15:52]protocol is kg_v1.0 [08:15:52]action value=close_receipt [08:15:52]process_action close_receipt [08:15:52]cmd_close_receipt [08:15:52]MH_GetDate [08:15:52]Write to MH i2c: F0 00 00 1D 35 41 [08:15:52]Write i2c OK [08:15:52]MH_I2C_Read... [08:15:52]Read from MH i2c: F0 [08:15:52]MH_I2C_Read... [08:15:52]Read from MH i2c: F0 09 00 [08:15:52]MH_I2C_Read... [08:15:52]Read from MH i2c: F0 09 00 1D 35 00 BC 4F A7 66 90 0F 3E 66 A5 [08:15:52]GetLastDocTimeStamp 1722240908 [08:15:52]current date 1722240956 [08:15:52]FM_GetShiftState [08:15:52]SAM_PROTO_GetShiftState [08:15:52]wFMCommunicate request_size=4 [08:15:52]MH_SAM_APDU [08:15:52]CAPDU: 80 13 01 00 [08:15:52]Write to MH i2c: E2 08 00 1E 35 80 13 01 00 00 00 00 00 D0 [08:15:52]Write i2c OK [08:15:52]MH_I2C_Read... [08:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:52]Read from MH i2c: E2 [08:15:52]MH_I2C_Read... [08:15:52]Read from MH i2c: E2 0E 00 [08:15:52]MH_I2C_Read... [08:15:52]Read from MH i2c: E2 0E 00 1E 35 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 FE [08:15:52]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:15:52]wFMCommunicate OK [08:15:52]SAM_PROTO_GetShiftState done [08:15:52]FM_GetShiftState done [08:15:52]opened in 1722211641 [08:15:52]opened+sec_in_day 1722298041 [08:15:52]quantity*price = 7186 [08:15:52]sum+1 = 7188 [08:15:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 71.00 Внесено: 100.00 СДАЧА: 29.00 НСП 1% : 0.64 НДС 12% : 7.63 Наличными: 71.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 42 29.07.2024 08:15 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118666 ФПД: 265031039147507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T081556&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118666&fm=265031039147507&tin=02508201610067®Number=0000000000092660&sum=7100 [08:15:53]StoreToDocumentArchive [08:15:53]shift 434 fd 118666 [08:15:53]save to /storage/0434/doc_00118666 [08:15:53]save last doc name /storage/0434/doc_00118666 to /storage/kkm_last_doc_name [08:15:53]save OK [08:15:53]Clear old archive folders... [08:15:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:15:53]tlvbuf is 01ED62E0 [08:15:53]SAM_PROTO_ClearQueue [08:15:53]wFMCommunicate request_size=4 [08:15:53]MH_SAM_APDU [08:15:53]CAPDU: 80 09 00 00 [08:15:53]Write to MH i2c: E2 08 00 2B 35 80 09 00 00 00 00 00 00 D2 [08:15:53]Write i2c OK [08:15:53]MH_I2C_Read... [08:15:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:53]Read from MH i2c: E2 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 03 00 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 03 00 2B 35 00 90 00 D4 [08:15:53]RAPDU: 90 00 [08:15:53]wFMCommunicate OK [08:15:53]SAM_PROTO_ClearQueue done [08:15:53]KKMCreateOFDPacket [08:15:53]OFDProtocolAddRootSTLVToBuf [08:15:53]FM_MakeSignedData [08:15:53]FM_MakeSignedData [08:15:53]SAM_PROTO_SignData [08:15:53]wFMCommunicate request_size=4 [08:15:53]MH_SAM_APDU [08:15:53]CAPDU: 80 0D 01 02 [08:15:53]Write to MH i2c: E2 08 00 2C 35 80 0D 01 02 00 00 00 00 DA [08:15:53]Write i2c OK [08:15:53]MH_I2C_Read... [08:15:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:53]Read from MH i2c: E2 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 03 00 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 03 00 2C 35 00 90 00 D5 [08:15:53]RAPDU: 90 00 [08:15:53]wFMCommunicate OK [08:15:53]wFMCommunicate request_size=255 [08:15:53]MH_SAM_APDU [08:15:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 24 04 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 02 00 00 00 00 07 04 06 00 BC 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 2A 00 00 00 F4 03 04 00 BC 4F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8A CF 01 00 35 04 06 00 F1 [08:15:53]Write to MH i2c: E2 02 01 2D 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 04 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 02 00 00 00 00 07 04 06 00 BC 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 2A 00 00 00 F4 03 04 00 BC 4F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8A CF 01 00 35 04 06 00 F1 00 00 01 [08:15:53]Write i2c OK [08:15:53]MH_I2C_Read... [08:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:53]Read from MH i2c: E2 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 03 00 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 03 00 2D 35 00 90 00 D6 [08:15:53]RAPDU: 90 00 [08:15:53]wFMCommunicate OK [08:15:53]wFMCommunicate request_size=10 [08:15:53]MH_SAM_APDU [08:15:53]CAPDU: 80 0D 02 02 05 0B 58 F1 5D F3 [08:15:53]Write to MH i2c: E2 0D 00 2E 35 80 0D 02 02 05 00 0B 58 F1 5D F3 00 00 8B [08:15:53]Write i2c OK [08:15:53]MH_I2C_Read... [08:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:53]Read from MH i2c: E2 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 03 00 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 03 00 2E 35 00 90 00 D7 [08:15:53]RAPDU: 90 00 [08:15:53]wFMCommunicate OK [08:15:53]wFMCommunicate request_size=4 [08:15:53]MH_SAM_APDU [08:15:53]CAPDU: 80 0D 03 02 [08:15:53]Write to MH i2c: E2 08 00 2F 35 80 0D 03 02 00 00 00 00 DF [08:15:53]Write i2c OK [08:15:53]MH_I2C_Read... [08:15:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:53]Read from MH i2c: E2 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 0B 00 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 0B 00 2F 35 00 40 2F 17 F5 D9 F5 B9 D5 90 00 B7 [08:15:53]RAPDU: 40 2F 17 F5 D9 F5 B9 D5 90 00 [08:15:53]wFMCommunicate OK [08:15:53]SAM_PROTO_SignData done [08:15:53]FM_MakeSignedData done [08:15:53]CreateOFDProtocolMessage [08:15:53]wFMCommunicate request_size=4 [08:15:53]MH_SAM_APDU [08:15:53]CAPDU: 80 11 00 00 [08:15:53]Write to MH i2c: E2 08 00 30 35 80 11 00 00 00 00 00 00 DF [08:15:53]Write i2c OK [08:15:53]MH_I2C_Read... [08:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:53]Read from MH i2c: E2 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 17 00 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: E2 17 00 30 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3A [08:15:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:15:53]wFMCommunicate OK [08:15:53]CreateOFDProtocolMessage done [08:15:53]OFDSenderStorePacket 118666 [08:15:53]StoreOFDPacket docnum=118666 [08:15:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BD 7A 07 01 C0 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 04 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 02 00 00 00 00 07 04 06 00 BC 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 2A 00 00 00 F4 03 04 00 BC 4F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8A CF 01 00 35 04 06 00 F1 0B 58 F1 5D F3 40 2F 17 F5 D9 F5 B9 D5 [08:15:53]CheckFolder [08:15:53]dirname=/storage/ofd_packets [08:15:53]CheckFolder done [08:15:53]ProducePacketName [08:15:53]name=ofd_packets/00118666 [08:15:53]NVStorageSaveData ofd_packets/00118666 [08:15:53]File name is /storage/ofd_packets/00118666 [08:15:53]Write 301 bytes [08:15:53]NVStorageSaveData done [08:15:53]OFDSenderStorePacket done [08:15:53]KKMCreateOFDPacket done [08:15:53]NVStorageSaveData kkm_last_timestamp [08:15:53]File name is /storage/kkm_last_timestamp [08:15:53]Write 4 bytes [08:15:53]NVStorageSaveData done [08:15:53]ExternCall_PrintAddStr [08:15:53]wPrintStart [08:15:53]Write to MH i2c: 01 00 00 31 35 66 [08:15:53]Write i2c OK [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: 01 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: 01 07 00 [08:15:53]MH_I2C_Read... [08:15:53]Read from MH i2c: 01 07 00 31 35 00 00 00 00 00 FF 0F 7B [08:15:53]RasterBufferAndPrint [08:15:53]line Счет N : (1)949549 [08:15:53]line ИНН: 02508201610067 [08:15:53]line Контрольно-Кассовый Чек [08:15:53]line ПРОДАЖА [08:15:53]line ТРК (МРК, ГНК) : 61 [08:15:53]line Товар: 2710124130 [08:15:53]line Аи-92-К-4 [08:15:53]line 1.060 * 67.80 [08:15:53]line = 71.87 [08:15:53]line НДС 12% НСП 1% [08:15:53]line > о реализуемом товаре [08:15:53]line ОКРУГЛЕНИЕ: -0.87 [08:15:53]line ИТОГО: 71.00 [08:15:53]line Внесено: 100.00 [08:15:53]line СДАЧА: 29.00 [08:15:53]line НСП 1% : 0.64 [08:15:53]line НДС 12% : 7.63 [08:15:53]line Наличными: 71.00 [08:15:53]line Безнал.: 0.00 [08:15:53]line Место: АЗС № 134 "Партнер Нефть" [08:15:53]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:15:53]line СНО: Общий режим [08:15:53]line Чек 42 29.07.2024 08:15 [08:15:53]line Смена: 434 ФФД: 1.0 [08:15:53]line ЗНМ: 0300000044 [08:15:53]line РНМ: 0000000000092660 [08:15:53]line Версия ККМ: 001 [08:15:53]line ФМ: 0000000000874939 [08:15:53]line ФД: 118666 [08:15:53]line ФПД: 265031039147507 [08:15:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T081556&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118666&fm=265031039147507&tin=02508201610067®Number=0000000000092660&sum=7100 [08:15:53]written 0, free lines is 4095 [08:15:53]OFD Sender: Processing packet 118666 [packets to send 86, broken 85] [08:15:53]ProducePacketName [08:15:53]name=ofd_packets/00118666 [08:15:53]OFD Sender: To server: pG, [08:15:53]CommunicateWithHost lk.salyk.kg:30040 [08:15:53]ConnectInit lk.salyk.kg [08:15:53]Connected sock=10 [08:15:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BD 7A 07 01 C0 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 04 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 02 00 00 00 00 07 04 06 00 BC 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 2A 00 00 00 F4 03 04 00 BC 4F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8A CF 01 00 35 04 06 00 F1 0B 58 F1 5D F3 40 2F 17 F5 D9 F5 B9 D5 [08:15:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E4 20 47 00 A3 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 34 39 33 39 10 04 04 00 8A CF 01 00 F4 03 04 00 4A FD A6 66 B6 04 01 00 00 0A 73 BC 11 8A E8 5D 93 [08:15:54]CommunicateWithHost err = 0 [08:15:54]CheckOFDResponse [08:15:54]1017 (14) - 77093643461234 [08:15:54]1041 (16) - 0000000000874939 [08:15:54]1040 (4) - 118666 [08:15:54]1012 (4) - 29.07.2024 02:24 [08:15:54]1206 (1) - 0 [08:15:54]OFD Sender: Remove packet 118666 [08:15:54]ProducePacketName [08:15:54]name=ofd_packets/00118666 [08:15:54]NVStorageDeleteData [08:15:54]Write to MH i2c: 01 00 00 5B 35 90 [08:15:54]Write i2c OK [08:15:54]MH_I2C_Read... [08:15:54]Read from MH i2c: 01 [08:15:54]MH_I2C_Read... [08:15:54]Read from MH i2c: 01 07 00 [08:15:54]MH_I2C_Read... [08:15:54]Read from MH i2c: 01 07 00 5B 35 00 00 00 00 00 DE 0C 81 [08:15:54]RasterBufferAndPrint [08:15:54]line [08:15:54]line [08:15:54]line [08:15:54]line [08:15:54]line [08:15:54]written 0, free lines is 3300 [08:15:54]MH_Cut [08:15:54]Write to MH i2c: D1 01 00 62 35 01 69 [08:15:54]Write i2c OK [08:15:54]MH_I2C_Read... [08:15:54]Read from MH i2c: D1 [08:15:54]MH_I2C_Read... [08:15:54]Read from MH i2c: D1 01 00 [08:15:54]MH_I2C_Read... [08:15:54]Read from MH i2c: D1 01 00 62 35 00 68 [08:15:54]Write to MH i2c: 01 00 00 63 35 98 [08:15:54]Write i2c OK [08:15:54]MH_I2C_Read... [08:15:54]OFD Sender: No OFD packet to send [08:15:55]*** Cut start [08:15:55]*** Partial cut [08:15:55]*** CUTSNS_PIN = 1 [08:15:55]*** CUTSNS_PIN = 0 [08:15:55]*** Brake cut motor [08:15:55]Read from MH i2c: 01 [08:15:55]MH_I2C_Read... [08:15:55]*** Stop cut motor [08:15:55]*** Cut end [08:15:55]Read from MH i2c: 01 07 00 [08:15:55]MH_I2C_Read... [08:15:55]Read from MH i2c: 01 07 00 63 35 00 00 00 00 00 FF 0F AD [08:15:55]process_action close_receipt done [08:15:55]requested_data is exist [08:15:55]produce_requested_data [08:15:55]requested_item fm.sn is exist - process it [08:15:55]wFMCommunicate request_size=4 [08:15:55]MH_SAM_APDU [08:15:55]CAPDU: 80 11 00 00 [08:15:55]Write to MH i2c: E2 08 00 64 35 80 11 00 00 00 00 00 00 13 [08:15:55]Write i2c OK [08:15:55]MH_I2C_Read... [08:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:55]Read from MH i2c: E2 [08:15:55]MH_I2C_Read... [08:15:55]Read from MH i2c: E2 17 00 [08:15:55]MH_I2C_Read... [08:15:55]Read from MH i2c: E2 17 00 64 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6E [08:15:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:15:55]wFMCommunicate OK [08:15:55]requested_item fd.num is exist - process it [08:15:55]SAM_PROTO_GetFieldsCounters [08:15:55]wFMCommunicate request_size=4 [08:15:55]MH_SAM_APDU [08:15:55]CAPDU: 80 13 00 00 [08:15:55]Write to MH i2c: E2 08 00 65 35 80 13 00 00 00 00 00 00 16 [08:15:55]Write i2c OK [08:15:55]MH_I2C_Read... [08:15:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:55]Read from MH i2c: E2 [08:15:55]MH_I2C_Read... [08:15:55]Read from MH i2c: E2 62 00 [08:15:55]MH_I2C_Read... [08:15:55]Read from MH i2c: E2 62 00 65 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8A CF 01 00 0E 04 04 00 B2 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 C8 [08:15:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8A CF 01 00 0E 04 04 00 B2 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 [08:15:55]wFMCommunicate OK [08:15:55]SAM_PROTO_GetFieldsCounters done [08:15:55]requested_item shift.num is exist - process it [08:15:55]requested_item shift.opened is exist - process it [08:15:55]req_shift_opened [08:15:55]FM_GetShiftState [08:15:55]SAM_PROTO_GetShiftState [08:15:55]wFMCommunicate request_size=4 [08:15:55]MH_SAM_APDU [08:15:55]CAPDU: 80 13 01 00 [08:15:55]Write to MH i2c: E2 08 00 66 35 80 13 01 00 00 00 00 00 18 [08:15:55]Write i2c OK [08:15:55]MH_I2C_Read... [08:15:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:55]Read from MH i2c: E2 [08:15:55]MH_I2C_Read... [08:15:55]Read from MH i2c: E2 0E 00 [08:15:55]MH_I2C_Read... [08:15:55]Read from MH i2c: E2 0E 00 66 35 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 46 [08:15:55]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:15:55]wFMCommunicate OK [08:15:55]SAM_PROTO_GetShiftState done [08:15:55]FM_GetShiftState done [08:15:55]req_shift_opened done [08:15:55]requested_item shift.open_date is exist - process it [08:15:55]req_shift_open_date [08:15:55]req_shift_open_date done [08:15:55]produce_requested_data done [08:15:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118666,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:15:55]process_action_free close_receipt [08:15:55]json_value_free [08:15:55]json_value_free done [08:15:55]process_json_proto returns [08:15:55]Send response to host [08:15:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118666,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:15:55]free response buf [08:15:55]execute_script done [08:15:55]execute_script returns [08:15:55]free content buf [08:15:55]Sock 9.Close socket [08:15:55]Sock 9.Thread stoped [08:15:59]OFD Sender: No OFD packet to send [08:16:04]OFD Sender: No OFD packet to send [08:16:09]OFD Sender: No OFD packet to send [08:16:14]OFD Sender: No OFD packet to send [08:16:19]OFD Sender: No OFD packet to send [08:16:24]OFD Sender: No OFD packet to send [08:16:29]OFD Sender: No OFD packet to send [08:16:34]OFD Sender: No OFD packet to send [08:16:39]OFD Sender: No OFD packet to send [08:16:44]OFD Sender: No OFD packet to send [08:16:48]accept exits with 7 [08:16:48]New connection [08:16:48]New thread 3067239780 created [08:16:48]Thread 3067383140 joined [08:16:48]Waiting for new connection... [08:16:48] Sock 7.Parse request [08:16:48]Sock 7.Check first char [08:16:48]Sock 7.First char is OK [08:16:48]request: POST /json_proto HTTP/1.0 [08:16:48]Method: POST [08:16:48]URL: /json_proto [08:16:48]Method is POST - this is cgi request [08:16:48]url: /json_proto [08:16:48]query_string will be loaded in cgi processing [08:16:48]execute_cgi json_proto POST (null) [08:16:48]execute_cgi path=json_proto method=POST [08:16:48]POST find Content-Length [08:16:48]Host: 172.17.45.7:8080 [08:16:48]Content-Length: 679 [08:16:48]Content-Type: application/json [08:16:48] [08:16:48]POST finish read [08:16:48]Found Content-Length = 679 [08:16:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 22.310, "sum" : 1700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:48]execute_script... [08:16: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)949550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 22.310, "sum" : 1700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:48]POST & json_proto [08:16:48]process_json_proto [08:16:48]json parsed OK: [08:16:48]protocol is kg_v1.0 [08:16:48]action value=close_receipt [08:16:48]process_action close_receipt [08:16:48]cmd_close_receipt [08:16:48]MH_GetDate [08:16:48]Write to MH i2c: F0 00 00 67 35 8B [08:16:48]Write i2c OK [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: F0 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: F0 09 00 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: F0 09 00 67 35 00 F5 4F A7 66 90 0F 3E 66 28 [08:16:48]GetLastDocTimeStamp 1722240956 [08:16:48]current date 1722241013 [08:16:48]FM_GetShiftState [08:16:48]SAM_PROTO_GetShiftState [08:16:48]wFMCommunicate request_size=4 [08:16:48]MH_SAM_APDU [08:16:48]CAPDU: 80 13 01 00 [08:16:48]Write to MH i2c: E2 08 00 68 35 80 13 01 00 00 00 00 00 1A [08:16:49]Write i2c OK [08:16:49]MH_I2C_Read... [08:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:49]Read from MH i2c: E2 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: E2 0E 00 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: E2 0E 00 68 35 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 48 [08:16:49]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:16:49]wFMCommunicate OK [08:16:49]SAM_PROTO_GetShiftState done [08:16:49]FM_GetShiftState done [08:16:49]opened in 1722211641 [08:16:49]opened+sec_in_day 1722298041 [08:16:49]quantity*price = 170002 [08:16:49]sum+1 = 170003 [08:16:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.04 НДС 12% : 180.53 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 43 29.07.2024 08:16 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118667 ФПД: 123134348116778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T081653&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118667&fm=123134348116778&tin=02508201610067®Number=0000000000092660&sum=170000 [08:16:50]StoreToDocumentArchive [08:16:50]shift 434 fd 118667 [08:16:50]save to /storage/0434/doc_00118667 [08:16:50]save last doc name /storage/0434/doc_00118667 to /storage/kkm_last_doc_name [08:16:50]save OK [08:16:50]Clear old archive folders... [08:16:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:16:50]tlvbuf is 01EC0120 [08:16:50]SAM_PROTO_ClearQueue [08:16:50]wFMCommunicate request_size=4 [08:16:50]MH_SAM_APDU [08:16:50]CAPDU: 80 09 00 00 [08:16:50]Write to MH i2c: E2 08 00 75 35 80 09 00 00 00 00 00 00 1C [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:50]Read from MH i2c: E2 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 03 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 03 00 75 35 00 90 00 1E [08:16:50]RAPDU: 90 00 [08:16:50]wFMCommunicate OK [08:16:50]SAM_PROTO_ClearQueue done [08:16:50]KKMCreateOFDPacket [08:16:50]OFDProtocolAddRootSTLVToBuf [08:16:50]FM_MakeSignedData [08:16:50]FM_MakeSignedData [08:16:50]SAM_PROTO_SignData [08:16:50]wFMCommunicate request_size=4 [08:16:50]MH_SAM_APDU [08:16:50]CAPDU: 80 0D 01 02 [08:16:50]Write to MH i2c: E2 08 00 76 35 80 0D 01 02 00 00 00 00 24 [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:50]Read from MH i2c: E2 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 03 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 03 00 76 35 00 90 00 1F [08:16:50]RAPDU: 90 00 [08:16:50]wFMCommunicate OK [08:16:50]wFMCommunicate request_size=255 [08:16:50]MH_SAM_APDU [08:16:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 F5 4F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8B CF 01 00 35 04 06 00 6F FD 73 14 [08:16:50]Write to MH i2c: E2 02 01 77 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 F5 4F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8B CF 01 00 35 04 06 00 6F FD 73 14 00 00 17 [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:50]Read from MH i2c: E2 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 03 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 03 00 77 35 00 90 00 20 [08:16:50]RAPDU: 90 00 [08:16:50]wFMCommunicate OK [08:16:50]wFMCommunicate request_size=7 [08:16:50]MH_SAM_APDU [08:16:50]CAPDU: 80 0D 02 02 02 43 2A [08:16:50]Write to MH i2c: E2 0A 00 78 35 80 0D 02 02 02 00 43 2A 00 00 98 [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:50]Read from MH i2c: E2 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 03 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 03 00 78 35 00 90 00 21 [08:16:50]RAPDU: 90 00 [08:16:50]wFMCommunicate OK [08:16:50]wFMCommunicate request_size=4 [08:16:50]MH_SAM_APDU [08:16:50]CAPDU: 80 0D 03 02 [08:16:50]Write to MH i2c: E2 08 00 79 35 80 0D 03 02 00 00 00 00 29 [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:50]Read from MH i2c: E2 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 0B 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 0B 00 79 35 00 D5 A0 B0 B2 F9 0A A6 9A 90 00 44 [08:16:50]RAPDU: D5 A0 B0 B2 F9 0A A6 9A 90 00 [08:16:50]wFMCommunicate OK [08:16:50]SAM_PROTO_SignData done [08:16:50]FM_MakeSignedData done [08:16:50]CreateOFDProtocolMessage [08:16:50]wFMCommunicate request_size=4 [08:16:50]MH_SAM_APDU [08:16:50]CAPDU: 80 11 00 00 [08:16:50]Write to MH i2c: E2 08 00 7A 35 80 11 00 00 00 00 00 00 29 [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:50]Read from MH i2c: E2 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 17 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 17 00 7A 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 84 [08:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:16:50]wFMCommunicate OK [08:16:50]CreateOFDProtocolMessage done [08:16:50]OFDSenderStorePacket 118667 [08:16:50]StoreOFDPacket docnum=118667 [08:16:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 40 5F 04 01 04 60 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 F5 4F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8B CF 01 00 35 04 06 00 6F FD 73 14 43 2A D5 A0 B0 B2 F9 0A A6 9A [08:16:50]CheckFolder [08:16:50]dirname=/storage/ofd_packets [08:16:50]CheckFolder done [08:16:50]ProducePacketName [08:16:50]name=ofd_packets/00118667 [08:16:50]NVStorageSaveData ofd_packets/00118667 [08:16:50]File name is /storage/ofd_packets/00118667 [08:16:50]Write 298 bytes [08:16:50]NVStorageSaveData done [08:16:50]OFDSenderStorePacket done [08:16:50]KKMCreateOFDPacket done [08:16:50]NVStorageSaveData kkm_last_timestamp [08:16:50]File name is /storage/kkm_last_timestamp [08:16:50]Write 4 bytes [08:16:50]NVStorageSaveData done [08:16:50]ExternCall_PrintAddStr [08:16:50]wPrintStart [08:16:50]Write to MH i2c: 01 00 00 7B 35 B0 [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: 01 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: 01 07 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: 01 07 00 7B 35 00 00 00 00 00 FF 0F C5 [08:16:50]RasterBufferAndPrint [08:16:50]line Счет N : (1)949550 [08:16:50]line ИНН: 02508201610067 [08:16:50]line Контрольно-Кассовый Чек [08:16:50]line ПРОДАЖА [08:16:50]line ТРК (МРК, ГНК) : 34 [08:16:50]line Товар: 2710194800 [08:16:50]line ДТ-К-5 [08:16:50]line 22.310 * 76.20 [08:16:50]line = 1700.02 [08:16:50]line НДС 12% НСП 1% [08:16:50]line > о реализуемом товаре [08:16:50]line ОКРУГЛЕНИЕ: -0.02 [08:16:50]line ИТОГО: 1700.00 [08:16:50]line Внесено: 1700.00 [08:16:50]line СДАЧА: 0.00 [08:16:50]line НСП 1% : 15.04 [08:16:50]line НДС 12% : 180.53 [08:16:50]line Наличными: 1700.00 [08:16:50]line Безнал.: 0.00 [08:16:50]line Место: АЗС № 134 "Партнер Нефть" [08:16:50]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:16:50]line СНО: Общий режим [08:16:50]line Чек 43 29.07.2024 08:16 [08:16:50]line Смена: 434 ФФД: 1.0 [08:16:50]line ЗНМ: 0300000044 [08:16:50]line РНМ: 0000000000092660 [08:16:50]line Версия ККМ: 001 [08:16:50]line ФМ: 0000000000874939 [08:16:50]line ФД: 118667 [08:16:50]line ФПД: 123134348116778 [08:16:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T081653&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118667&fm=123134348116778&tin=02508201610067®Number=0000000000092660&sum=170000 [08:16:51]OFD Sender: Processing packet 118667 [packets to send 86, broken 85] [08:16:51]ProducePacketName [08:16:51]name=ofd_packets/00118667 [08:16:51]OFD Sender: To server: pG, [08:16:51]CommunicateWithHost lk.salyk.kg:30040 [08:16:51]ConnectInit lk.salyk.kg [08:16:51]written 0, free lines is 4095 [08:16:51]Connected sock=10 [08:16:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 40 5F 04 01 04 60 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 F5 4F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8B CF 01 00 35 04 06 00 6F FD 73 14 43 2A D5 A0 B0 B2 F9 0A A6 9A [08:16:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 49 41 47 00 3F 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 34 39 33 39 10 04 04 00 8B CF 01 00 F4 03 04 00 83 FD A6 66 B6 04 01 00 00 3D 8E FB 40 43 C9 E8 14 [08:16:51]CommunicateWithHost err = 0 [08:16:51]CheckOFDResponse [08:16:51]1017 (14) - 77093643461234 [08:16:51]1041 (16) - 0000000000874939 [08:16:51]1040 (4) - 118667 [08:16:51]1012 (4) - 29.07.2024 02:25 [08:16:51]1206 (1) - 0 [08:16:51]OFD Sender: Remove packet 118667 [08:16:51]ProducePacketName [08:16:51]name=ofd_packets/00118667 [08:16:51]NVStorageDeleteData [08:16:51]Write to MH i2c: 01 00 00 A5 35 DA [08:16:51]Write i2c OK [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: 01 [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: 01 07 00 [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: 01 07 00 A5 35 00 00 00 00 00 DE 0C CB [08:16:51]RasterBufferAndPrint [08:16:51]line [08:16:51]line [08:16:51]line [08:16:51]line [08:16:51]line [08:16:51]written 0, free lines is 3301 [08:16:51]MH_Cut [08:16:51]Write to MH i2c: D1 01 00 AC 35 01 B3 [08:16:51]Write i2c OK [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: D1 [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: D1 01 00 [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: D1 01 00 AC 35 00 B2 [08:16:51]Write to MH i2c: 01 00 00 AD 35 E2 [08:16:51]Write i2c OK [08:16:51]MH_I2C_Read... [08:16:51]OFD Sender: No OFD packet to send [08:16:52]*** Cut start [08:16:52]*** Partial cut [08:16:52]*** CUTSNS_PIN = 1 [08:16:52]*** CUTSNS_PIN = 0 [08:16:52]*** Brake cut motor [08:16:52]Read from MH i2c: 01 [08:16:52]MH_I2C_Read... [08:16:52]*** Stop cut motor [08:16:52]*** Cut end [08:16:52]Read from MH i2c: 01 07 00 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: 01 07 00 AD 35 00 00 00 00 00 FF 0F F7 [08:16:52]process_action close_receipt done [08:16:52]requested_data is exist [08:16:52]produce_requested_data [08:16:52]requested_item fm.sn is exist - process it [08:16:52]wFMCommunicate request_size=4 [08:16:52]MH_SAM_APDU [08:16:52]CAPDU: 80 11 00 00 [08:16:52]Write to MH i2c: E2 08 00 AE 35 80 11 00 00 00 00 00 00 5D [08:16:52]Write i2c OK [08:16:52]MH_I2C_Read... [08:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:52]Read from MH i2c: E2 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: E2 17 00 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: E2 17 00 AE 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B8 [08:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:16:52]wFMCommunicate OK [08:16:52]requested_item fd.num is exist - process it [08:16:52]SAM_PROTO_GetFieldsCounters [08:16:52]wFMCommunicate request_size=4 [08:16:52]MH_SAM_APDU [08:16:52]CAPDU: 80 13 00 00 [08:16:52]Write to MH i2c: E2 08 00 AF 35 80 13 00 00 00 00 00 00 60 [08:16:52]Write i2c OK [08:16:52]MH_I2C_Read... [08:16:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:53]Read from MH i2c: E2 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: E2 62 00 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: E2 62 00 AF 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8B CF 01 00 0E 04 04 00 B2 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 16 [08:16: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8B CF 01 00 0E 04 04 00 B2 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 [08:16:53]wFMCommunicate OK [08:16:53]SAM_PROTO_GetFieldsCounters done [08:16:53]requested_item shift.num is exist - process it [08:16:53]requested_item shift.opened is exist - process it [08:16:53]req_shift_opened [08:16:53]FM_GetShiftState [08:16:53]SAM_PROTO_GetShiftState [08:16:53]wFMCommunicate request_size=4 [08:16:53]MH_SAM_APDU [08:16:53]CAPDU: 80 13 01 00 [08:16:53]Write to MH i2c: E2 08 00 B0 35 80 13 01 00 00 00 00 00 62 [08:16:53]Write i2c OK [08:16:53]MH_I2C_Read... [08:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:53]Read from MH i2c: E2 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: E2 0E 00 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: E2 0E 00 B0 35 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 90 [08:16:53]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:16:53]wFMCommunicate OK [08:16:53]SAM_PROTO_GetShiftState done [08:16:53]FM_GetShiftState done [08:16:53]req_shift_opened done [08:16:53]requested_item shift.open_date is exist - process it [08:16:53]req_shift_open_date [08:16:53]req_shift_open_date done [08:16:53]produce_requested_data done [08:16:53]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118667,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:16:53]process_action_free close_receipt [08:16:53]json_value_free [08:16:53]json_value_free done [08:16:53]process_json_proto returns [08:16:53]Send response to host [08:16:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118667,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:16:53]free response buf [08:16:53]execute_script done [08:16:53]execute_script returns [08:16:53]free content buf [08:16:53]Sock 7.Close socket [08:16:53]Sock 7.Thread stoped [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:29]accept exits with 9 [08:18:29]New connection [08:18:29]New thread 3067383140 created [08:18:29]Thread 3067239780 joined [08:18:29]Waiting for new connection... [08:18:29] Sock 9.Parse request [08:18:29]Sock 9.Check first char [08:18:29]Sock 9.First char is OK [08:18:29]request: POST /json_proto HTTP/1.0 [08:18:29]Method: POST [08:18:29]URL: /json_proto [08:18:29]Method is POST - this is cgi request [08:18:29]url: /json_proto [08:18:29]query_string will be loaded in cgi processing [08:18:29]execute_cgi json_proto POST (null) [08:18:29]execute_cgi path=json_proto method=POST [08:18:29]POST find Content-Length [08:18:29]Host: 172.17.45.7:8080 [08:18:29]Content-Length: 819 [08:18:29]Content-Type: application/json [08:18:29] [08:18:29]POST finish read [08:18:29]Found Content-Length = 819 [08:18:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2500.00, "payments": [ { "type": 1, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:29]execute_script... [08:18:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2500.00, "payments": [ { "type": 1, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:29]POST & json_proto [08:18:29]process_json_proto [08:18:29]json parsed OK: [08:18:29]protocol is kg_v1.0 [08:18:29]action value=close_receipt [08:18:29]process_action close_receipt [08:18:29]cmd_close_receipt [08:18:29]MH_GetDate [08:18:29]Write to MH i2c: F0 00 00 B1 35 D5 [08:18:29]Write i2c OK [08:18:29]MH_I2C_Read... [08:18:29]Read from MH i2c: F0 [08:18:29]MH_I2C_Read... [08:18:29]Read from MH i2c: F0 09 00 [08:18:29]MH_I2C_Read... [08:18:29]Read from MH i2c: F0 09 00 B1 35 00 59 50 A7 66 90 0F 3E 66 D7 [08:18:29]GetLastDocTimeStamp 1722241013 [08:18:29]current date 1722241113 [08:18:29]FM_GetShiftState [08:18:29]SAM_PROTO_GetShiftState [08:18:29]wFMCommunicate request_size=4 [08:18:29]MH_SAM_APDU [08:18:29]CAPDU: 80 13 01 00 [08:18:29]Write to MH i2c: E2 08 00 B2 35 80 13 01 00 00 00 00 00 64 [08:18:29]Write i2c OK [08:18:29]MH_I2C_Read... [08:18:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:29]Read from MH i2c: E2 [08:18:29]MH_I2C_Read... [08:18:29]Read from MH i2c: E2 0E 00 [08:18:29]MH_I2C_Read... [08:18:29]Read from MH i2c: E2 0E 00 B2 35 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 92 [08:18:29]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:18:29]wFMCommunicate OK [08:18:29]SAM_PROTO_GetShiftState done [08:18:29]FM_GetShiftState done [08:18:29]opened in 1722211641 [08:18:29]opened+sec_in_day 1722298041 [08:18:29]quantity*price = 250012 [08:18:29]sum+1 = 250013 [08:18:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 0.00 Безнал.: 2500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 44 29.07.2024 08:18 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118668 ФПД: 6815554499409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T081833&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118668&fm=6815554499409&tin=02508201610067®Number=0000000000092660&sum=250000 [08:18:30]StoreToDocumentArchive [08:18:30]shift 434 fd 118668 [08:18:30]save to /storage/0434/doc_00118668 [08:18:30]save last doc name /storage/0434/doc_00118668 to /storage/kkm_last_doc_name [08:18:30]save OK [08:18:30]Clear old archive folders... [08:18:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:18:30]tlvbuf is 01E709E0 [08:18:30]SAM_PROTO_ClearQueue [08:18:30]wFMCommunicate request_size=4 [08:18:30]MH_SAM_APDU [08:18:30]CAPDU: 80 09 00 00 [08:18:30]Write to MH i2c: E2 08 00 BF 35 80 09 00 00 00 00 00 00 66 [08:18:30]Write i2c OK [08:18:30]MH_I2C_Read... [08:18:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:30]Read from MH i2c: E2 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 03 00 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 03 00 BF 35 00 90 00 68 [08:18:30]RAPDU: 90 00 [08:18:30]wFMCommunicate OK [08:18:30]SAM_PROTO_ClearQueue done [08:18:30]KKMCreateOFDPacket [08:18:30]OFDProtocolAddRootSTLVToBuf [08:18:30]FM_MakeSignedData [08:18:30]FM_MakeSignedData [08:18:30]SAM_PROTO_SignData [08:18:30]wFMCommunicate request_size=4 [08:18:30]MH_SAM_APDU [08:18:30]CAPDU: 80 0D 01 02 [08:18:30]Write to MH i2c: E2 08 00 C0 35 80 0D 01 02 00 00 00 00 6E [08:18:30]Write i2c OK [08:18:30]MH_I2C_Read... [08:18:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:30]Read from MH i2c: E2 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 03 00 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 03 00 C0 35 00 90 00 69 [08:18:30]RAPDU: 90 00 [08:18:30]wFMCommunicate OK [08:18:30]wFMCommunicate request_size=255 [08:18:30]MH_SAM_APDU [08:18:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 59 50 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8C CF 01 00 35 04 06 00 06 32 DE B4 [08:18:30]Write to MH i2c: E2 02 01 C1 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 59 50 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8C CF 01 00 35 04 06 00 06 32 DE B4 00 00 1A [08:18:30]Write i2c OK [08:18:30]MH_I2C_Read... [08:18:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:30]Read from MH i2c: E2 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 03 00 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 03 00 C1 35 00 90 00 6A [08:18:30]RAPDU: 90 00 [08:18:30]wFMCommunicate OK [08:18:30]wFMCommunicate request_size=7 [08:18:30]MH_SAM_APDU [08:18:30]CAPDU: 80 0D 02 02 02 73 51 [08:18:30]Write to MH i2c: E2 0A 00 C2 35 80 0D 02 02 02 00 73 51 00 00 39 [08:18:30]Write i2c OK [08:18:30]MH_I2C_Read... [08:18:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:30]Read from MH i2c: E2 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 03 00 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 03 00 C2 35 00 90 00 6B [08:18:30]RAPDU: 90 00 [08:18:30]wFMCommunicate OK [08:18:30]wFMCommunicate request_size=4 [08:18:30]MH_SAM_APDU [08:18:30]CAPDU: 80 0D 03 02 [08:18:30]Write to MH i2c: E2 08 00 C3 35 80 0D 03 02 00 00 00 00 73 [08:18:30]Write i2c OK [08:18:30]MH_I2C_Read... [08:18:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:30]Read from MH i2c: E2 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 0B 00 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 0B 00 C3 35 00 D1 44 9E 67 45 97 4A E0 90 00 94 [08:18:30]RAPDU: D1 44 9E 67 45 97 4A E0 90 00 [08:18:30]wFMCommunicate OK [08:18:30]SAM_PROTO_SignData done [08:18:30]FM_MakeSignedData done [08:18:30]CreateOFDProtocolMessage [08:18:30]wFMCommunicate request_size=4 [08:18:30]MH_SAM_APDU [08:18:30]CAPDU: 80 11 00 00 [08:18:30]Write to MH i2c: E2 08 00 C4 35 80 11 00 00 00 00 00 00 73 [08:18:30]Write i2c OK [08:18:30]MH_I2C_Read... [08:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:30]Read from MH i2c: E2 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 17 00 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 17 00 C4 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CE [08:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:18:30]wFMCommunicate OK [08:18:30]CreateOFDProtocolMessage done [08:18:30]OFDSenderStorePacket 118668 [08:18:30]StoreOFDPacket docnum=118668 [08:18:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B6 05 04 01 4F 00 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 59 50 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8C CF 01 00 35 04 06 00 06 32 DE B4 73 51 D1 44 9E 67 45 97 4A E0 [08:18:30]CheckFolder [08:18:30]dirname=/storage/ofd_packets [08:18:30]CheckFolder done [08:18:30]ProducePacketName [08:18:30]name=ofd_packets/00118668 [08:18:30]NVStorageSaveData ofd_packets/00118668 [08:18:30]File name is /storage/ofd_packets/00118668 [08:18:30]Write 298 bytes [08:18:30]NVStorageSaveData done [08:18:30]OFDSenderStorePacket done [08:18:30]KKMCreateOFDPacket done [08:18:30]NVStorageSaveData kkm_last_timestamp [08:18:30]File name is /storage/kkm_last_timestamp [08:18:30]Write 4 bytes [08:18:30]NVStorageSaveData done [08:18:30]ExternCall_PrintAddStr [08:18:30]wPrintStart [08:18:30]Write to MH i2c: 01 00 00 C5 35 FA [08:18:30]Write i2c OK [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: 01 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: 01 07 00 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: 01 07 00 C5 35 00 00 00 00 00 FF 0F 0F [08:18:30]RasterBufferAndPrint [08:18:30]line Счет N : (1)949551 [08:18:30]line ИНН: 02508201610067 [08:18:30]line Контрольно-Кассовый Чек [08:18:30]line ПРОДАЖА [08:18:30]line ТРК (МРК, ГНК) : 54 [08:18:30]line Товар: 2710194800 [08:18:30]line ДТ-К-5 [08:18:30]line 32.810 * 76.20 [08:18:30]line = 2500.12 [08:18:30]line НДС 12% НСП 1% [08:18:30]line > о реализуемом товаре [08:18:30]line ОКРУГЛЕНИЕ: -0.12 [08:18:30]line ИТОГО: 2500.00 [08:18:30]line НСП 1% : 22.12 [08:18:30]line НДС 12% : 265.50 [08:18:30]line Наличными: 0.00 [08:18:30]line Безнал.: 2500.00 [08:18:30]line Место: АЗС № 134 "Партнер Нефть" [08:18:30]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:18:30]line СНО: Общий режим [08:18:30]line Чек 44 29.07.2024 08:18 [08:18:30]line Смена: 434 ФФД: 1.0 [08:18:30]line ЗНМ: 0300000044 [08:18:30]line РНМ: 0000000000092660 [08:18:30]line Версия ККМ: 001 [08:18:30]line Платежная система: O! деньги [08:18:30]line ФМ: 0000000000874939 [08:18:30]line ФД: 118668 [08:18:30]line ФПД: 6815554499409 [08:18:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T081833&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118668&fm=6815554499409&tin=02508201610067®Number=0000000000092660&sum=250000 [08:18:31]OFD Sender: Processing packet 118668 [packets to send 86, broken 85] [08:18:31]ProducePacketName [08:18:31]name=ofd_packets/00118668 [08:18:31]OFD Sender: To server: pG, [08:18:31]CommunicateWithHost lk.salyk.kg:30040 [08:18:31]ConnectInit lk.salyk.kg [08:18:31]written 0, free lines is 4095 [08:18:31]Connected sock=10 [08:18:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B6 05 04 01 4F 00 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 59 50 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8C CF 01 00 35 04 06 00 06 32 DE B4 73 51 D1 44 9E 67 45 97 4A E0 [08:18:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C2 0A 47 00 9C 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 34 39 33 39 10 04 04 00 8C CF 01 00 F4 03 04 00 E7 FD A6 66 B6 04 01 00 00 60 B3 4A AA F7 65 97 E8 [08:18:31]CommunicateWithHost err = 0 [08:18:31]CheckOFDResponse [08:18:31]1017 (14) - 77093643461234 [08:18:31]1041 (16) - 0000000000874939 [08:18:31]1040 (4) - 118668 [08:18:31]1012 (4) - 29.07.2024 02:26 [08:18:31]1206 (1) - 0 [08:18:31]OFD Sender: Remove packet 118668 [08:18:31]ProducePacketName [08:18:31]name=ofd_packets/00118668 [08:18:31]NVStorageDeleteData [08:18:31]Write to MH i2c: 01 00 00 EF 35 24 [08:18:31]Write i2c OK [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: 01 [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: 01 07 00 [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: 01 07 00 EF 35 00 00 00 00 00 F1 0C 28 [08:18:31]RasterBufferAndPrint [08:18:31]line [08:18:31]line [08:18:31]line [08:18:31]line [08:18:31]line [08:18:31]written 0, free lines is 3319 [08:18:31]MH_Cut [08:18:31]Write to MH i2c: D1 01 00 F6 35 01 FD [08:18:31]Write i2c OK [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: D1 [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: D1 01 00 [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: D1 01 00 F6 35 00 FC [08:18:31]Write to MH i2c: 01 00 00 F7 35 2C [08:18:31]Write i2c OK [08:18:31]MH_I2C_Read... [08:18:31]OFD Sender: No OFD packet to send [08:18:32]*** Cut start [08:18:32]*** Partial cut [08:18:32]*** CUTSNS_PIN = 1 [08:18:32]*** CUTSNS_PIN = 0 [08:18:32]*** Brake cut motor [08:18:32]Read from MH i2c: 01 [08:18:32]MH_I2C_Read... [08:18:32]*** Stop cut motor [08:18:32]*** Cut end [08:18:32]Read from MH i2c: 01 07 00 [08:18:32]MH_I2C_Read... [08:18:32]Read from MH i2c: 01 07 00 F7 35 00 00 00 00 00 FF 0F 41 [08:18:32]process_action close_receipt done [08:18:32]requested_data is exist [08:18:32]produce_requested_data [08:18:32]requested_item fm.sn is exist - process it [08:18:32]wFMCommunicate request_size=4 [08:18:32]MH_SAM_APDU [08:18:32]CAPDU: 80 11 00 00 [08:18:32]Write to MH i2c: E2 08 00 F8 35 80 11 00 00 00 00 00 00 A7 [08:18:32]Write i2c OK [08:18:32]MH_I2C_Read... [08:18:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:32]Read from MH i2c: E2 [08:18:32]MH_I2C_Read... [08:18:32]Read from MH i2c: E2 17 00 [08:18:32]MH_I2C_Read... [08:18:32]Read from MH i2c: E2 17 00 F8 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 02 [08:18:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:18:32]wFMCommunicate OK [08:18:32]requested_item fd.num is exist - process it [08:18:32]SAM_PROTO_GetFieldsCounters [08:18:32]wFMCommunicate request_size=4 [08:18:32]MH_SAM_APDU [08:18:32]CAPDU: 80 13 00 00 [08:18:32]Write to MH i2c: E2 08 00 F9 35 80 13 00 00 00 00 00 00 AA [08:18:32]Write i2c OK [08:18:32]MH_I2C_Read... [08:18:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:33]Read from MH i2c: E2 [08:18:33]MH_I2C_Read... [08:18:33]Read from MH i2c: E2 62 00 [08:18:33]MH_I2C_Read... [08:18:33]Read from MH i2c: E2 62 00 F9 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8C CF 01 00 0E 04 04 00 B2 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 64 [08:18:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8C CF 01 00 0E 04 04 00 B2 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 [08:18:33]wFMCommunicate OK [08:18:33]SAM_PROTO_GetFieldsCounters done [08:18:33]requested_item shift.num is exist - process it [08:18:33]requested_item shift.opened is exist - process it [08:18:33]req_shift_opened [08:18:33]FM_GetShiftState [08:18:33]SAM_PROTO_GetShiftState [08:18:33]wFMCommunicate request_size=4 [08:18:33]MH_SAM_APDU [08:18:33]CAPDU: 80 13 01 00 [08:18:33]Write to MH i2c: E2 08 00 FA 35 80 13 01 00 00 00 00 00 AC [08:18:33]Write i2c OK [08:18:33]MH_I2C_Read... [08:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:33]Read from MH i2c: E2 [08:18:33]MH_I2C_Read... [08:18:33]Read from MH i2c: E2 0E 00 [08:18:33]MH_I2C_Read... [08:18:33]Read from MH i2c: E2 0E 00 FA 35 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 DA [08:18:33]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:18:33]wFMCommunicate OK [08:18:33]SAM_PROTO_GetShiftState done [08:18:33]FM_GetShiftState done [08:18:33]req_shift_opened done [08:18:33]requested_item shift.open_date is exist - process it [08:18:33]req_shift_open_date [08:18:33]req_shift_open_date done [08:18:33]produce_requested_data done [08:18:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118668,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:18:33]process_action_free close_receipt [08:18:33]json_value_free [08:18:33]json_value_free done [08:18:33]process_json_proto returns [08:18:33]Send response to host [08:18:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118668,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:18:33]free response buf [08:18:33]execute_script done [08:18:33]execute_script returns [08:18:33]free content buf [08:18:33]Sock 9.Close socket [08:18:33]Sock 9.Thread stoped [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:06]OFD Sender: No OFD packet to send [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:21]OFD Sender: No OFD packet to send [08:19:24]accept exits with 7 [08:19:24]New connection [08:19:24]New thread 3067239780 created [08:19:24]Thread 3067383140 joined [08:19:24]Waiting for new connection... [08:19:24] Sock 7.Parse request [08:19:24]Sock 7.Check first char [08:19:24]Sock 7.First char is OK [08:19:24]request: POST /json_proto HTTP/1.0 [08:19:24]Method: POST [08:19:24]URL: /json_proto [08:19:24]Method is POST - this is cgi request [08:19:24]url: /json_proto [08:19:24]query_string will be loaded in cgi processing [08:19:24]execute_cgi json_proto POST (null) [08:19:24]execute_cgi path=json_proto method=POST [08:19:24]POST find Content-Length [08:19:24]Host: 172.17.45.7:8080 [08:19:24]Content-Length: 677 [08:19:24]Content-Type: application/json [08:19:24] [08:19:24]POST finish read [08:19:24]Found Content-Length = 677 [08:19:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:24]execute_script... [08:19:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:24]POST & json_proto [08:19:24]process_json_proto [08:19:24]json parsed OK: [08:19:24]protocol is kg_v1.0 [08:19:24]action value=close_receipt [08:19:24]process_action close_receipt [08:19:24]cmd_close_receipt [08:19:24]MH_GetDate [08:19:24]Write to MH i2c: F0 00 00 FB 35 1F [08:19:24]Write i2c OK [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: F0 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: F0 09 00 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: F0 09 00 FB 35 00 91 50 A7 66 90 0F 3E 66 59 [08:19:24]GetLastDocTimeStamp 1722241113 [08:19:24]current date 1722241169 [08:19:24]FM_GetShiftState [08:19:24]SAM_PROTO_GetShiftState [08:19:24]wFMCommunicate request_size=4 [08:19:24]MH_SAM_APDU [08:19:24]CAPDU: 80 13 01 00 [08:19:24]Write to MH i2c: E2 08 00 FC 35 80 13 01 00 00 00 00 00 AE [08:19:24]Write i2c OK [08:19:24]MH_I2C_Read... [08:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:24]Read from MH i2c: E2 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 0E 00 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 0E 00 FC 35 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 DC [08:19:24]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:19:24]wFMCommunicate OK [08:19:24]SAM_PROTO_GetShiftState done [08:19:24]FM_GetShiftState done [08:19:24]opened in 1722211641 [08:19:24]opened+sec_in_day 1722298041 [08:19:24]quantity*price = 50036 [08:19:24]sum+1 = 50037 [08:19:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 45 29.07.2024 08:19 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118669 ФПД: 7733807800828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T081929&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118669&fm=7733807800828&tin=02508201610067®Number=0000000000092660&sum=50000 [08:19:26]StoreToDocumentArchive [08:19:26]shift 434 fd 118669 [08:19:26]save to /storage/0434/doc_00118669 [08:19:26]save last doc name /storage/0434/doc_00118669 to /storage/kkm_last_doc_name [08:19:26]save OK [08:19:26]Clear old archive folders... [08:19:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:19:26]tlvbuf is B6FBE090 [08:19:26]SAM_PROTO_ClearQueue [08:19:26]wFMCommunicate request_size=4 [08:19:26]MH_SAM_APDU [08:19:26]CAPDU: 80 09 00 00 [08:19:26]Write to MH i2c: E2 08 00 09 36 80 09 00 00 00 00 00 00 B1 [08:19:26]Write i2c OK [08:19:26]MH_I2C_Read... [08:19:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:26]Read from MH i2c: E2 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 03 00 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 03 00 09 36 00 90 00 B3 [08:19:26]RAPDU: 90 00 [08:19:26]wFMCommunicate OK [08:19:26]SAM_PROTO_ClearQueue done [08:19:26]KKMCreateOFDPacket [08:19:26]OFDProtocolAddRootSTLVToBuf [08:19:26]FM_MakeSignedData [08:19:26]FM_MakeSignedData [08:19:26]SAM_PROTO_SignData [08:19:26]wFMCommunicate request_size=4 [08:19:26]MH_SAM_APDU [08:19:26]CAPDU: 80 0D 01 02 [08:19:26]Write to MH i2c: E2 08 00 0A 36 80 0D 01 02 00 00 00 00 B9 [08:19:26]Write i2c OK [08:19:26]MH_I2C_Read... [08:19:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:26]Read from MH i2c: E2 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 03 00 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 03 00 0A 36 00 90 00 B4 [08:19:26]RAPDU: 90 00 [08:19:26]wFMCommunicate OK [08:19:26]wFMCommunicate request_size=255 [08:19:26]MH_SAM_APDU [08:19:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 91 50 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8D CF 01 00 35 04 06 00 07 [08:19:26]Write to MH i2c: E2 02 01 0B 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 91 50 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8D CF 01 00 35 04 06 00 07 00 00 6F [08:19:26]Write i2c OK [08:19:26]MH_I2C_Read... [08:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:26]Read from MH i2c: E2 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 03 00 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 03 00 0B 36 00 90 00 B5 [08:19:26]RAPDU: 90 00 [08:19:26]wFMCommunicate OK [08:19:26]wFMCommunicate request_size=10 [08:19:26]MH_SAM_APDU [08:19:26]CAPDU: 80 0D 02 02 05 08 AA DD E1 FC [08:19:26]Write to MH i2c: E2 0D 00 0C 36 80 0D 02 02 05 00 08 AA DD E1 FC 00 00 32 [08:19:26]Write i2c OK [08:19:26]MH_I2C_Read... [08:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:26]Read from MH i2c: E2 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 03 00 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 03 00 0C 36 00 90 00 B6 [08:19:26]RAPDU: 90 00 [08:19:26]wFMCommunicate OK [08:19:26]wFMCommunicate request_size=4 [08:19:26]MH_SAM_APDU [08:19:26]CAPDU: 80 0D 03 02 [08:19:26]Write to MH i2c: E2 08 00 0D 36 80 0D 03 02 00 00 00 00 BE [08:19:26]Write i2c OK [08:19:26]MH_I2C_Read... [08:19:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:26]Read from MH i2c: E2 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 0B 00 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 0B 00 0D 36 00 9F 64 D4 D0 72 B3 73 77 90 00 75 [08:19:26]RAPDU: 9F 64 D4 D0 72 B3 73 77 90 00 [08:19:26]wFMCommunicate OK [08:19:26]SAM_PROTO_SignData done [08:19:26]FM_MakeSignedData done [08:19:26]CreateOFDProtocolMessage [08:19:26]wFMCommunicate request_size=4 [08:19:26]MH_SAM_APDU [08:19:26]CAPDU: 80 11 00 00 [08:19:26]Write to MH i2c: E2 08 00 0E 36 80 11 00 00 00 00 00 00 BE [08:19:26]Write i2c OK [08:19:26]MH_I2C_Read... [08:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:26]Read from MH i2c: E2 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 17 00 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 17 00 0E 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 19 [08:19:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:19:26]wFMCommunicate OK [08:19:26]CreateOFDProtocolMessage done [08:19:26]OFDSenderStorePacket 118669 [08:19:26]StoreOFDPacket docnum=118669 [08:19:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 23 69 07 01 05 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 91 50 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8D CF 01 00 35 04 06 00 07 08 AA DD E1 FC 9F 64 D4 D0 72 B3 73 77 [08:19:26]CheckFolder [08:19:26]dirname=/storage/ofd_packets [08:19:26]CheckFolder done [08:19:26]ProducePacketName [08:19:26]name=ofd_packets/00118669 [08:19:26]NVStorageSaveData ofd_packets/00118669 [08:19:26]File name is /storage/ofd_packets/00118669 [08:19:26]Write 301 bytes [08:19:26]NVStorageSaveData done [08:19:26]OFDSenderStorePacket done [08:19:26]KKMCreateOFDPacket done [08:19:26]NVStorageSaveData kkm_last_timestamp [08:19:26]File name is /storage/kkm_last_timestamp [08:19:26]Write 4 bytes [08:19:26]NVStorageSaveData done [08:19:26]ExternCall_PrintAddStr [08:19:26]wPrintStart [08:19:26]Write to MH i2c: 01 00 00 0F 36 45 [08:19:26]Write i2c OK [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: 01 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: 01 07 00 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: 01 07 00 0F 36 00 00 00 00 00 FF 0F 5A [08:19:26]RasterBufferAndPrint [08:19:26]line Счет N : (1)949553 [08:19:26]line ИНН: 02508201610067 [08:19:26]line Контрольно-Кассовый Чек [08:19:26]line ПРОДАЖА [08:19:26]line ТРК (МРК, ГНК) : 31 [08:19:26]line Товар: 2710124130 [08:19:26]line Аи-92-К-4 [08:19:26]line 7.380 * 67.80 [08:19:26]line = 500.36 [08:19:26]line НДС 12% НСП 1% [08:19:26]line > о реализуемом товаре [08:19:26]line ОКРУГЛЕНИЕ: -0.36 [08:19:26]line ИТОГО: 500.00 [08:19:26]line Внесено: 500.00 [08:19:26]line СДАЧА: 0.00 [08:19:26]line НСП 1% : 4.43 [08:19:26]line НДС 12% : 53.14 [08:19:26]line Наличными: 500.00 [08:19:26]line Безнал.: 0.00 [08:19:26]line Место: АЗС № 134 "Партнер Нефть" [08:19:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:19:26]line СНО: Общий режим [08:19:26]line Чек 45 29.07.2024 08:19 [08:19:26]line Смена: 434 ФФД: 1.0 [08:19:26]line ЗНМ: 0300000044 [08:19:26]line РНМ: 0000000000092660 [08:19:26]line Версия ККМ: 001 [08:19:26]line ФМ: 0000000000874939 [08:19:26]line ФД: 118669 [08:19:26]line ФПД: 7733807800828 [08:19:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T081929&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118669&fm=7733807800828&tin=02508201610067®Number=0000000000092660&sum=50000 [08:19:26]OFD Sender: Processing packet 118669 [packets to send 86, broken 85] [08:19:26]ProducePacketName [08:19:26]name=ofd_packets/00118669 [08:19:26]OFD Sender: To server: pG, [08:19:26]CommunicateWithHost lk.salyk.kg:30040 [08:19:26]ConnectInit lk.salyk.kg [08:19:26]written 0, free lines is 4095 [08:19:27]Connected sock=10 [08:19:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 23 69 07 01 05 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 91 50 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8D CF 01 00 35 04 06 00 07 08 AA DD E1 FC 9F 64 D4 D0 72 B3 73 77 [08:19:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9F 83 47 00 AA 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 34 39 33 39 10 04 04 00 8D CF 01 00 F4 03 04 00 1F FE A6 66 B6 04 01 00 00 E7 B6 48 67 D5 AE 4E 72 [08:19:27]CommunicateWithHost err = 0 [08:19:27]CheckOFDResponse [08:19:27]1017 (14) - 77093643461234 [08:19:27]1041 (16) - 0000000000874939 [08:19:27]1040 (4) - 118669 [08:19:27]1012 (4) - 29.07.2024 02:27 [08:19:27]1206 (1) - 0 [08:19:27]OFD Sender: Remove packet 118669 [08:19:27]ProducePacketName [08:19:27]name=ofd_packets/00118669 [08:19:27]NVStorageDeleteData [08:19:27]Write to MH i2c: 01 00 00 39 36 6F [08:19:27]Write i2c OK [08:19:27]MH_I2C_Read... [08:19:27]Read from MH i2c: 01 [08:19:27]MH_I2C_Read... [08:19:27]Read from MH i2c: 01 07 00 [08:19:27]MH_I2C_Read... [08:19:27]Read from MH i2c: 01 07 00 39 36 00 00 00 00 00 D8 0C 5A [08:19:27]RasterBufferAndPrint [08:19:27]line [08:19:27]line [08:19:27]line [08:19:27]line [08:19:27]line [08:19:27]written 0, free lines is 3295 [08:19:27]MH_Cut [08:19:27]Write to MH i2c: D1 01 00 40 36 01 48 [08:19:27]Write i2c OK [08:19:27]MH_I2C_Read... [08:19:27]Read from MH i2c: D1 [08:19:27]MH_I2C_Read... [08:19:27]Read from MH i2c: D1 01 00 [08:19:27]MH_I2C_Read... [08:19:27]Read from MH i2c: D1 01 00 40 36 00 47 [08:19:27]Write to MH i2c: 01 00 00 41 36 77 [08:19:27]Write i2c OK [08:19:27]MH_I2C_Read... [08:19:27]OFD Sender: No OFD packet to send [08:19:28]*** Cut start [08:19:28]*** Partial cut [08:19:28]*** CUTSNS_PIN = 1 [08:19:28]*** CUTSNS_PIN = 0 [08:19:28]*** Brake cut motor [08:19:28]Read from MH i2c: 01 [08:19:28]MH_I2C_Read... [08:19:28]*** Stop cut motor [08:19:28]*** Cut end [08:19:28]Read from MH i2c: 01 07 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: 01 07 00 41 36 00 00 00 00 00 FF 0F 8C [08:19:28]process_action close_receipt done [08:19:28]requested_data is exist [08:19:28]produce_requested_data [08:19:28]requested_item fm.sn is exist - process it [08:19:28]wFMCommunicate request_size=4 [08:19:28]MH_SAM_APDU [08:19:28]CAPDU: 80 11 00 00 [08:19:28]Write to MH i2c: E2 08 00 42 36 80 11 00 00 00 00 00 00 F2 [08:19:28]Write i2c OK [08:19:28]MH_I2C_Read... [08:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:28]Read from MH i2c: E2 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 17 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 17 00 42 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4D [08:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:19:28]wFMCommunicate OK [08:19:28]requested_item fd.num is exist - process it [08:19:28]SAM_PROTO_GetFieldsCounters [08:19:28]wFMCommunicate request_size=4 [08:19:28]MH_SAM_APDU [08:19:28]CAPDU: 80 13 00 00 [08:19:28]Write to MH i2c: E2 08 00 43 36 80 13 00 00 00 00 00 00 F5 [08:19:28]Write i2c OK [08:19:28]MH_I2C_Read... [08:19:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:28]Read from MH i2c: E2 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 62 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 62 00 43 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8D CF 01 00 0E 04 04 00 B2 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 B3 [08:19: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8D CF 01 00 0E 04 04 00 B2 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 [08:19:28]wFMCommunicate OK [08:19:28]SAM_PROTO_GetFieldsCounters done [08:19:28]requested_item shift.num is exist - process it [08:19:28]requested_item shift.opened is exist - process it [08:19:28]req_shift_opened [08:19:28]FM_GetShiftState [08:19:28]SAM_PROTO_GetShiftState [08:19:28]wFMCommunicate request_size=4 [08:19:28]MH_SAM_APDU [08:19:28]CAPDU: 80 13 01 00 [08:19:28]Write to MH i2c: E2 08 00 44 36 80 13 01 00 00 00 00 00 F7 [08:19:28]Write i2c OK [08:19:28]MH_I2C_Read... [08:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:28]Read from MH i2c: E2 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 0E 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 0E 00 44 36 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 25 [08:19:28]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:19:28]wFMCommunicate OK [08:19:28]SAM_PROTO_GetShiftState done [08:19:28]FM_GetShiftState done [08:19:28]req_shift_opened done [08:19:28]requested_item shift.open_date is exist - process it [08:19:28]req_shift_open_date [08:19:28]req_shift_open_date done [08:19:28]produce_requested_data done [08:19:28]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118669,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:19:28]process_action_free close_receipt [08:19:28]json_value_free [08:19:28]json_value_free done [08:19:28]process_json_proto returns [08:19:28]Send response to host [08:19:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118669,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:19:28]free response buf [08:19:28]execute_script done [08:19:28]execute_script returns [08:19:28]free content buf [08:19:28]Sock 7.Close socket [08:19:28]Sock 7.Thread stoped [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:06]accept exits with 9 [08:20:06]New connection [08:20:06]New thread 3067383140 created [08:20:06]Thread 3067239780 joined [08:20:06]Waiting for new connection... [08:20:06] Sock 9.Parse request [08:20:06]Sock 9.Check first char [08:20:06]Sock 9.First char is OK [08:20:06]request: POST /json_proto HTTP/1.0 [08:20:06]Method: POST [08:20:06]URL: /json_proto [08:20:06]Method is POST - this is cgi request [08:20:06]url: /json_proto [08:20:06]query_string will be loaded in cgi processing [08:20:06]execute_cgi json_proto POST (null) [08:20:06]execute_cgi path=json_proto method=POST [08:20:06]POST find Content-Length [08:20:06]Host: 172.17.45.7:8080 [08:20:06]Content-Length: 819 [08:20:06]Content-Type: application/json [08:20:06] [08:20:06]POST finish read [08:20:06]Found Content-Length = 819 [08:20:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 28.880, "sum" : 2200.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 2200.00, "payments": [ { "type": 1, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:06]execute_script... [08:20: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)949552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 28.880, "sum" : 2200.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 2200.00, "payments": [ { "type": 1, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:06]POST & json_proto [08:20:06]process_json_proto [08:20:06]json parsed OK: [08:20:06]protocol is kg_v1.0 [08:20:06]action value=close_receipt [08:20:06]process_action close_receipt [08:20:06]cmd_close_receipt [08:20:06]MH_GetDate [08:20:06]Write to MH i2c: F0 00 00 45 36 6A [08:20:06]Write i2c OK [08:20:06]MH_I2C_Read... [08:20:06]Read from MH i2c: F0 [08:20:06]MH_I2C_Read... [08:20:06]Read from MH i2c: F0 09 00 [08:20:06]MH_I2C_Read... [08:20:06]Read from MH i2c: F0 09 00 45 36 00 BB 50 A7 66 90 0F 3E 66 CE [08:20:06]GetLastDocTimeStamp 1722241169 [08:20:06]current date 1722241211 [08:20:06]FM_GetShiftState [08:20:06]SAM_PROTO_GetShiftState [08:20:06]wFMCommunicate request_size=4 [08:20:06]MH_SAM_APDU [08:20:06]CAPDU: 80 13 01 00 [08:20:06]Write to MH i2c: E2 08 00 46 36 80 13 01 00 00 00 00 00 F9 [08:20:06]Write i2c OK [08:20:06]MH_I2C_Read... [08:20:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:06]Read from MH i2c: E2 [08:20:06]MH_I2C_Read... [08:20:06]Read from MH i2c: E2 0E 00 [08:20:06]MH_I2C_Read... [08:20:06]Read from MH i2c: E2 0E 00 46 36 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 27 [08:20:06]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:20:06]wFMCommunicate OK [08:20:06]SAM_PROTO_GetShiftState done [08:20:06]FM_GetShiftState done [08:20:06]opened in 1722211641 [08:20:06]opened+sec_in_day 1722298041 [08:20:06]quantity*price = 220065 [08:20:06]sum+1 = 220067 [08:20:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 2200.00 НСП 1% : 19.47 НДС 12% : 233.70 Наличными: 0.00 Безнал.: 2200.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 46 29.07.2024 08:20 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118670 ФПД: 20735836665676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T082011&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118670&fm=20735836665676&tin=02508201610067®Number=0000000000092660&sum=220000 [08:20:07]StoreToDocumentArchive [08:20:07]shift 434 fd 118670 [08:20:07]save to /storage/0434/doc_00118670 [08:20:07]save last doc name /storage/0434/doc_00118670 to /storage/kkm_last_doc_name [08:20:07]save OK [08:20:07]Clear old archive folders... [08:20:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:20:07]tlvbuf is 01E94020 [08:20:07]SAM_PROTO_ClearQueue [08:20:07]wFMCommunicate request_size=4 [08:20:07]MH_SAM_APDU [08:20:07]CAPDU: 80 09 00 00 [08:20:07]Write to MH i2c: E2 08 00 53 36 80 09 00 00 00 00 00 00 FB [08:20:07]Write i2c OK [08:20:07]MH_I2C_Read... [08:20:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:07]Read from MH i2c: E2 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: E2 03 00 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: E2 03 00 53 36 00 90 00 FD [08:20:07]RAPDU: 90 00 [08:20:07]wFMCommunicate OK [08:20:07]SAM_PROTO_ClearQueue done [08:20:07]KKMCreateOFDPacket [08:20:07]OFDProtocolAddRootSTLVToBuf [08:20:07]FM_MakeSignedData [08:20:07]FM_MakeSignedData [08:20:07]SAM_PROTO_SignData [08:20:07]wFMCommunicate request_size=4 [08:20:07]MH_SAM_APDU [08:20:07]CAPDU: 80 0D 01 02 [08:20:07]Write to MH i2c: E2 08 00 54 36 80 0D 01 02 00 00 00 00 03 [08:20:07]Write i2c OK [08:20:07]MH_I2C_Read... [08:20:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:07]Read from MH i2c: E2 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: E2 03 00 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: E2 03 00 54 36 00 90 00 FE [08:20:07]RAPDU: 90 00 [08:20:07]wFMCommunicate OK [08:20:07]wFMCommunicate request_size=255 [08:20:07]MH_SAM_APDU [08:20: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 70 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A2 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 5B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 BB 50 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8E CF 01 00 35 04 06 00 12 DB F0 2D [08:20:07]Write to MH i2c: E2 02 01 55 36 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 70 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A2 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 5B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 BB 50 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8E CF 01 00 35 04 06 00 12 DB F0 2D 00 00 B0 [08:20:07]Write i2c OK [08:20:07]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 55 36 00 90 00 FF [08:20:08]RAPDU: 90 00 [08:20:08]wFMCommunicate OK [08:20:08]wFMCommunicate request_size=7 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 0D 02 02 02 B7 4C [08:20:08]Write to MH i2c: E2 0A 00 56 36 80 0D 02 02 02 00 B7 4C 00 00 0D [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 56 36 00 90 00 00 [08:20:08]RAPDU: 90 00 [08:20:08]wFMCommunicate OK [08:20:08]wFMCommunicate request_size=4 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 0D 03 02 [08:20:08]Write to MH i2c: E2 08 00 57 36 80 0D 03 02 00 00 00 00 08 [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 0B 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 0B 00 57 36 00 25 DB 08 62 27 F9 F4 00 90 00 87 [08:20:08]RAPDU: 25 DB 08 62 27 F9 F4 00 90 00 [08:20:08]wFMCommunicate OK [08:20:08]SAM_PROTO_SignData done [08:20:08]FM_MakeSignedData done [08:20:08]CreateOFDProtocolMessage [08:20:08]wFMCommunicate request_size=4 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 11 00 00 [08:20:08]Write to MH i2c: E2 08 00 58 36 80 11 00 00 00 00 00 00 08 [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 17 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 17 00 58 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 63 [08:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:20:08]wFMCommunicate OK [08:20:08]CreateOFDProtocolMessage done [08:20:08]OFDSenderStorePacket 118670 [08:20:08]StoreOFDPacket docnum=118670 [08:20:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EC 3F 04 01 3F AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 70 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A2 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 5B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 BB 50 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8E CF 01 00 35 04 06 00 12 DB F0 2D B7 4C 25 DB 08 62 27 F9 F4 00 [08:20:08]CheckFolder [08:20:08]dirname=/storage/ofd_packets [08:20:08]CheckFolder done [08:20:08]ProducePacketName [08:20:08]name=ofd_packets/00118670 [08:20:08]NVStorageSaveData ofd_packets/00118670 [08:20:08]File name is /storage/ofd_packets/00118670 [08:20:08]Write 298 bytes [08:20:08]NVStorageSaveData done [08:20:08]OFDSenderStorePacket done [08:20:08]KKMCreateOFDPacket done [08:20:08]NVStorageSaveData kkm_last_timestamp [08:20:08]File name is /storage/kkm_last_timestamp [08:20:08]Write 4 bytes [08:20:08]NVStorageSaveData done [08:20:08]ExternCall_PrintAddStr [08:20:08]wPrintStart [08:20:08]Write to MH i2c: 01 00 00 59 36 8F [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: 01 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: 01 07 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: 01 07 00 59 36 00 00 00 00 00 FF 0F A4 [08:20:08]RasterBufferAndPrint [08:20:08]line Счет N : (1)949552 [08:20:08]line ИНН: 02508201610067 [08:20:08]line Контрольно-Кассовый Чек [08:20:08]line ПРОДАЖА [08:20:08]line ТРК (МРК, ГНК) : 44 [08:20:08]line Товар: 2710194800 [08:20:08]line ДТ-К-5 [08:20:08]line 28.880 * 76.20 [08:20:08]line = 2200.66 [08:20:08]line НДС 12% НСП 1% [08:20:08]line > о реализуемом товаре [08:20:08]line ОКРУГЛЕНИЕ: -0.66 [08:20:08]line ИТОГО: 2200.00 [08:20:08]line НСП 1% : 19.47 [08:20:08]line НДС 12% : 233.70 [08:20:08]line Наличными: 0.00 [08:20:08]line Безнал.: 2200.00 [08:20:08]line Место: АЗС № 134 "Партнер Нефть" [08:20:08]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:20:08]line СНО: Общий режим [08:20:08]line Чек 46 29.07.2024 08:20 [08:20:08]line Смена: 434 ФФД: 1.0 [08:20:08]line ЗНМ: 0300000044 [08:20:08]line РНМ: 0000000000092660 [08:20:08]line Версия ККМ: 001 [08:20:08]line Платежная система: O! деньги [08:20:08]line ФМ: 0000000000874939 [08:20:08]line ФД: 118670 [08:20:08]line ФПД: 20735836665676 [08:20:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T082011&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118670&fm=20735836665676&tin=02508201610067®Number=0000000000092660&sum=220000 [08:20:08]OFD Sender: Processing packet 118670 [packets to send 86, broken 85] [08:20:08]ProducePacketName [08:20:08]name=ofd_packets/00118670 [08:20:08]OFD Sender: To server: pG, [08:20:08]CommunicateWithHost lk.salyk.kg:30040 [08:20:08]ConnectInit lk.salyk.kg [08:20:08]written 0, free lines is 4095 [08:20:08]Connected sock=10 [08:20:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EC 3F 04 01 3F AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 70 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A2 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 5B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 BB 50 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8E CF 01 00 35 04 06 00 12 DB F0 2D B7 4C 25 DB 08 62 27 F9 F4 00 [08:20:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2D A2 47 00 64 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8E CF 01 00 F4 03 04 00 49 FE A6 66 B6 04 01 00 00 9B C3 C0 15 60 08 40 56 [08:20:09]CommunicateWithHost err = 0 [08:20:09]CheckOFDResponse [08:20:09]1017 (14) - 77093643461234 [08:20:09]1041 (16) - 0000000000874939 [08:20:09]1040 (4) - 118670 [08:20:09]1012 (4) - 29.07.2024 02:28 [08:20:09]1206 (1) - 0 [08:20:09]OFD Sender: Remove packet 118670 [08:20:09]ProducePacketName [08:20:09]name=ofd_packets/00118670 [08:20:09]NVStorageDeleteData [08:20:09]Write to MH i2c: 01 00 00 83 36 B9 [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: 01 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: 01 07 00 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: 01 07 00 83 36 00 00 00 00 00 E3 0C AF [08:20:09]RasterBufferAndPrint [08:20:09]line [08:20:09]line [08:20:09]line [08:20:09]line [08:20:09]line [08:20:09]written 0, free lines is 3306 [08:20:09]MH_Cut [08:20:09]Write to MH i2c: D1 01 00 8A 36 01 92 [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: D1 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: D1 01 00 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: D1 01 00 8A 36 00 91 [08:20:09]Write to MH i2c: 01 00 00 8B 36 C1 [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:09]OFD Sender: No OFD packet to send [08:20:09]*** Cut start [08:20:09]*** Partial cut [08:20:09]*** CUTSNS_PIN = 1 [08:20:09]*** CUTSNS_PIN = 0 [08:20:10]*** Brake cut motor [08:20:10]Read from MH i2c: 01 [08:20:10]MH_I2C_Read... [08:20:10]*** Stop cut motor [08:20:10]*** Cut end [08:20:10]Read from MH i2c: 01 07 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: 01 07 00 8B 36 00 00 00 00 00 FF 0F D6 [08:20:10]process_action close_receipt done [08:20:10]requested_data is exist [08:20:10]produce_requested_data [08:20:10]requested_item fm.sn is exist - process it [08:20:10]wFMCommunicate request_size=4 [08:20:10]MH_SAM_APDU [08:20:10]CAPDU: 80 11 00 00 [08:20:10]Write to MH i2c: E2 08 00 8C 36 80 11 00 00 00 00 00 00 3C [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:10]Read from MH i2c: E2 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 17 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 17 00 8C 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 97 [08:20:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:20:10]wFMCommunicate OK [08:20:10]requested_item fd.num is exist - process it [08:20:10]SAM_PROTO_GetFieldsCounters [08:20:10]wFMCommunicate request_size=4 [08:20:10]MH_SAM_APDU [08:20:10]CAPDU: 80 13 00 00 [08:20:10]Write to MH i2c: E2 08 00 8D 36 80 13 00 00 00 00 00 00 3F [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:10]Read from MH i2c: E2 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 62 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 62 00 8D 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8E CF 01 00 0E 04 04 00 B2 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 01 [08:20:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8E CF 01 00 0E 04 04 00 B2 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 [08:20:10]wFMCommunicate OK [08:20:10]SAM_PROTO_GetFieldsCounters done [08:20:10]requested_item shift.num is exist - process it [08:20:10]requested_item shift.opened is exist - process it [08:20:10]req_shift_opened [08:20:10]FM_GetShiftState [08:20:10]SAM_PROTO_GetShiftState [08:20:10]wFMCommunicate request_size=4 [08:20:10]MH_SAM_APDU [08:20:10]CAPDU: 80 13 01 00 [08:20:10]Write to MH i2c: E2 08 00 8E 36 80 13 01 00 00 00 00 00 41 [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:10]Read from MH i2c: E2 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 0E 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 0E 00 8E 36 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 6F [08:20:10]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:20:10]wFMCommunicate OK [08:20:10]SAM_PROTO_GetShiftState done [08:20:10]FM_GetShiftState done [08:20:10]req_shift_opened done [08:20:10]requested_item shift.open_date is exist - process it [08:20:10]req_shift_open_date [08:20:10]req_shift_open_date done [08:20:10]produce_requested_data done [08:20:10]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118670,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:20:10]process_action_free close_receipt [08:20:10]json_value_free [08:20:10]json_value_free done [08:20:10]process_json_proto returns [08:20:10]Send response to host [08:20:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118670,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:20:10]free response buf [08:20:10]execute_script done [08:20:10]execute_script returns [08:20:10]free content buf [08:20:10]Sock 9.Close socket [08:20:10]Sock 9.Thread stoped [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]OFD Sender: No OFD packet to send [08:22:09]OFD Sender: No OFD packet to send [08:22:14]OFD Sender: No OFD packet to send [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:19]OFD Sender: No OFD packet to send [08:24:24]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:44]OFD Sender: No OFD packet to send [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:09]OFD Sender: No OFD packet to send [08:25:14]OFD Sender: No OFD packet to send [08:25:19]OFD Sender: No OFD packet to send [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:54]OFD Sender: No OFD packet to send [08:25:59]OFD Sender: No OFD packet to send [08:26:00]accept exits with 7 [08:26:00]New connection [08:26:00]New thread 3067239780 created [08:26:00]Thread 3067383140 joined [08:26:00]Waiting for new connection... [08:26:00] Sock 7.Parse request [08:26:00]Sock 7.Check first char [08:26:00]Sock 7.First char is OK [08:26:00]request: POST /json_proto HTTP/1.0 [08:26:00]Method: POST [08:26:00]URL: /json_proto [08:26:00]Method is POST - this is cgi request [08:26:00]url: /json_proto [08:26:00]query_string will be loaded in cgi processing [08:26:00]execute_cgi json_proto POST (null) [08:26:00]execute_cgi path=json_proto method=POST [08:26:00]POST find Content-Length [08:26:00]Host: 172.17.45.7:8080 [08:26:00]Content-Length: 822 [08:26:00]Content-Type: application/json [08:26:00] [08:26:00]POST finish read [08:26:00]Found Content-Length = 822 [08:26:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 16.230, "sum" : 1100.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1100.00, "payments": [ { "type": 1, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:00]execute_script... [08:26: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)949554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 16.230, "sum" : 1100.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1100.00, "payments": [ { "type": 1, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:00]POST & json_proto [08:26:00]process_json_proto [08:26:00]json parsed OK: [08:26:00]protocol is kg_v1.0 [08:26:00]action value=close_receipt [08:26:00]process_action close_receipt [08:26:00]cmd_close_receipt [08:26:00]MH_GetDate [08:26:00]Write to MH i2c: F0 00 00 8F 36 B4 [08:26:00]Write i2c OK [08:26:00]MH_I2C_Read... [08:26:00]Read from MH i2c: F0 [08:26:00]MH_I2C_Read... [08:26:00]Read from MH i2c: F0 09 00 [08:26:00]MH_I2C_Read... [08:26:00]Read from MH i2c: F0 09 00 8F 36 00 1C 52 A7 66 90 0F 3E 66 7B [08:26:00]GetLastDocTimeStamp 1722241211 [08:26:00]current date 1722241564 [08:26:00]FM_GetShiftState [08:26:00]SAM_PROTO_GetShiftState [08:26:00]wFMCommunicate request_size=4 [08:26:00]MH_SAM_APDU [08:26:00]CAPDU: 80 13 01 00 [08:26:00]Write to MH i2c: E2 08 00 90 36 80 13 01 00 00 00 00 00 43 [08:26:00]Write i2c OK [08:26:00]MH_I2C_Read... [08:26:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:00]Read from MH i2c: E2 [08:26:00]MH_I2C_Read... [08:26:00]Read from MH i2c: E2 0E 00 [08:26:00]MH_I2C_Read... [08:26:00]Read from MH i2c: E2 0E 00 90 36 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 71 [08:26:00]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:26:00]wFMCommunicate OK [08:26:00]SAM_PROTO_GetShiftState done [08:26:00]FM_GetShiftState done [08:26:00]opened in 1722211641 [08:26:00]opened+sec_in_day 1722298041 [08:26:00]quantity*price = 110039 [08:26:00]sum+1 = 110040 [08:26:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 1100.00 НСП 1% : 9.74 НДС 12% : 116.86 Наличными: 0.00 Безнал.: 1100.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 47 29.07.2024 08:26 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118671 ФПД: 55285175644116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T082604&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118671&fm=55285175644116&tin=02508201610067®Number=0000000000092660&sum=110000 [08:26:01]StoreToDocumentArchive [08:26:01]shift 434 fd 118671 [08:26:01]save to /storage/0434/doc_00118671 [08:26:01]save last doc name /storage/0434/doc_00118671 to /storage/kkm_last_doc_name [08:26:01]save OK [08:26:01]Clear old archive folders... [08:26:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:26:01]tlvbuf is 01E65300 [08:26:01]SAM_PROTO_ClearQueue [08:26:01]wFMCommunicate request_size=4 [08:26:01]MH_SAM_APDU [08:26:01]CAPDU: 80 09 00 00 [08:26:01]Write to MH i2c: E2 08 00 9D 36 80 09 00 00 00 00 00 00 45 [08:26:01]Write i2c OK [08:26:01]MH_I2C_Read... [08:26:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:01]Read from MH i2c: E2 [08:26:01]MH_I2C_Read... [08:26:01]Read from MH i2c: E2 03 00 [08:26:01]MH_I2C_Read... [08:26:01]Read from MH i2c: E2 03 00 9D 36 00 90 00 47 [08:26:01]RAPDU: 90 00 [08:26:01]wFMCommunicate OK [08:26:01]SAM_PROTO_ClearQueue done [08:26:01]KKMCreateOFDPacket [08:26:01]OFDProtocolAddRootSTLVToBuf [08:26:01]FM_MakeSignedData [08:26:01]FM_MakeSignedData [08:26:01]SAM_PROTO_SignData [08:26:01]wFMCommunicate request_size=4 [08:26:01]MH_SAM_APDU [08:26:01]CAPDU: 80 0D 01 02 [08:26:01]Write to MH i2c: E2 08 00 9E 36 80 0D 01 02 00 00 00 00 4D [08:26:01]Write i2c OK [08:26:01]MH_I2C_Read... [08:26:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:01]Read from MH i2c: E2 [08:26:01]MH_I2C_Read... [08:26:01]Read from MH i2c: E2 03 00 [08:26:01]MH_I2C_Read... [08:26:01]Read from MH i2c: E2 03 00 9E 36 00 90 00 48 [08:26:01]RAPDU: 90 00 [08:26:01]wFMCommunicate OK [08:26:01]wFMCommunicate request_size=255 [08:26:01]MH_SAM_APDU [08:26: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 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 1C 52 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8F CF 01 00 35 04 06 00 32 [08:26:01]Write to MH i2c: E2 02 01 9F 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 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 1C 52 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8F CF 01 00 35 04 06 00 32 00 00 6A [08:26:01]Write i2c OK [08:26:01]MH_I2C_Read... [08:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:01]Read from MH i2c: E2 [08:26:01]MH_I2C_Read... [08:26:01]Read from MH i2c: E2 03 00 [08:26:01]MH_I2C_Read... [08:26:01]Read from MH i2c: E2 03 00 9F 36 00 90 00 49 [08:26:01]RAPDU: 90 00 [08:26:01]wFMCommunicate OK [08:26:01]wFMCommunicate request_size=10 [08:26:01]MH_SAM_APDU [08:26:01]CAPDU: 80 0D 02 02 05 48 15 41 6F D4 [08:26:01]Write to MH i2c: E2 0D 00 A0 36 80 0D 02 02 05 00 48 15 41 6F D4 00 00 3B [08:26:01]Write i2c OK [08:26:01]MH_I2C_Read... [08:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:01]Read from MH i2c: E2 [08:26:01]MH_I2C_Read... [08:26:01]Read from MH i2c: E2 03 00 [08:26:01]MH_I2C_Read... [08:26:01]Read from MH i2c: E2 03 00 A0 36 00 90 00 4A [08:26:01]RAPDU: 90 00 [08:26:01]wFMCommunicate OK [08:26:01]wFMCommunicate request_size=4 [08:26:01]MH_SAM_APDU [08:26:01]CAPDU: 80 0D 03 02 [08:26:01]Write to MH i2c: E2 08 00 A1 36 80 0D 03 02 00 00 00 00 52 [08:26:01]Write i2c OK [08:26:01]MH_I2C_Read... [08:26:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:01]Read from MH i2c: E2 [08:26:01]MH_I2C_Read... [08:26:01]Read from MH i2c: E2 0B 00 [08:26:01]MH_I2C_Read... [08:26:01]Read from MH i2c: E2 0B 00 A1 36 00 F8 05 28 18 55 25 31 05 90 00 40 [08:26:01]RAPDU: F8 05 28 18 55 25 31 05 90 00 [08:26:01]wFMCommunicate OK [08:26:01]SAM_PROTO_SignData done [08:26:01]FM_MakeSignedData done [08:26:01]CreateOFDProtocolMessage [08:26:01]wFMCommunicate request_size=4 [08:26:01]MH_SAM_APDU [08:26:01]CAPDU: 80 11 00 00 [08:26:01]Write to MH i2c: E2 08 00 A2 36 80 11 00 00 00 00 00 00 52 [08:26:01]Write i2c OK [08:26:01]MH_I2C_Read... [08:26:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:01]Read from MH i2c: E2 [08:26:01]MH_I2C_Read... [08:26:01]Read from MH i2c: E2 17 00 [08:26:01]MH_I2C_Read... [08:26:01]Read from MH i2c: E2 17 00 A2 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AD [08:26:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:26:01]wFMCommunicate OK [08:26:01]CreateOFDProtocolMessage done [08:26:01]OFDSenderStorePacket 118671 [08:26:01]StoreOFDPacket docnum=118671 [08:26:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C0 E0 07 01 FF C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 1C 52 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8F CF 01 00 35 04 06 00 32 48 15 41 6F D4 F8 05 28 18 55 25 31 05 [08:26:01]CheckFolder [08:26:01]dirname=/storage/ofd_packets [08:26:01]CheckFolder done [08:26:01]ProducePacketName [08:26:01]name=ofd_packets/00118671 [08:26:01]NVStorageSaveData ofd_packets/00118671 [08:26:01]File name is /storage/ofd_packets/00118671 [08:26:01]Write 301 bytes [08:26:01]NVStorageSaveData done [08:26:01]OFDSenderStorePacket done [08:26:01]KKMCreateOFDPacket done [08:26:01]NVStorageSaveData kkm_last_timestamp [08:26:01]File name is /storage/kkm_last_timestamp [08:26:01]Write 4 bytes [08:26:01]NVStorageSaveData done [08:26:01]ExternCall_PrintAddStr [08:26:01]wPrintStart [08:26:01]Write to MH i2c: 01 00 00 A3 36 D9 [08:26:01]Write i2c OK [08:26:01]MH_I2C_Read... [08:26:01]Read from MH i2c: 01 [08:26:01]MH_I2C_Read... [08:26:01]Read from MH i2c: 01 07 00 [08:26:01]MH_I2C_Read... [08:26:01]Read from MH i2c: 01 07 00 A3 36 00 00 00 00 00 FF 0F EE [08:26:01]RasterBufferAndPrint [08:26:01]line Счет N : (1)949554 [08:26:01]line ИНН: 02508201610067 [08:26:01]line Контрольно-Кассовый Чек [08:26:01]line ПРОДАЖА [08:26:01]line ТРК (МРК, ГНК) : 41 [08:26:01]line Товар: 2710124130 [08:26:01]line Аи-92-К-4 [08:26:01]line 16.230 * 67.80 [08:26:01]line = 1100.39 [08:26:01]line НДС 12% НСП 1% [08:26:01]line > о реализуемом товаре [08:26:01]line ОКРУГЛЕНИЕ: -0.39 [08:26:01]line ИТОГО: 1100.00 [08:26:01]line НСП 1% : 9.74 [08:26:01]line НДС 12% : 116.86 [08:26:01]line Наличными: 0.00 [08:26:01]line Безнал.: 1100.00 [08:26:01]line Место: АЗС № 134 "Партнер Нефть" [08:26:01]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:26:01]line СНО: Общий режим [08:26:01]line Чек 47 29.07.2024 08:26 [08:26:01]line Смена: 434 ФФД: 1.0 [08:26:01]line ЗНМ: 0300000044 [08:26:01]line РНМ: 0000000000092660 [08:26:01]line Версия ККМ: 001 [08:26:01]line Платежная система: O! деньги [08:26:01]line ФМ: 0000000000874939 [08:26:01]line ФД: 118671 [08:26:01]line ФПД: 55285175644116 [08:26:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T082604&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118671&fm=55285175644116&tin=02508201610067®Number=0000000000092660&sum=110000 [08:26:02]OFD Sender: Processing packet 118671 [packets to send 86, broken 85] [08:26:02]ProducePacketName [08:26:02]name=ofd_packets/00118671 [08:26:02]OFD Sender: To server: pG, [08:26:02]CommunicateWithHost lk.salyk.kg:30040 [08:26:02]ConnectInit lk.salyk.kg [08:26:02]written 0, free lines is 4095 [08:26:02]Connected sock=10 [08:26:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C0 E0 07 01 FF C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 1C 52 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8F CF 01 00 35 04 06 00 32 48 15 41 6F D4 F8 05 28 18 55 25 31 05 [08:26:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 69 FB 47 00 6F AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8F CF 01 00 F4 03 04 00 AB FF A6 66 B6 04 01 00 00 CF F5 2E 60 30 DC 17 0E [08:26:02]CommunicateWithHost err = 0 [08:26:02]CheckOFDResponse [08:26:02]1017 (14) - 77093643461234 [08:26:02]1041 (16) - 0000000000874939 [08:26:02]1040 (4) - 118671 [08:26:02]1012 (4) - 29.07.2024 02:34 [08:26:02]1206 (1) - 0 [08:26:02]OFD Sender: Remove packet 118671 [08:26:02]ProducePacketName [08:26:02]name=ofd_packets/00118671 [08:26:02]NVStorageDeleteData [08:26:02]Write to MH i2c: 01 00 00 CD 36 03 [08:26:02]Write i2c OK [08:26:02]MH_I2C_Read... [08:26:02]Read from MH i2c: 01 [08:26:02]MH_I2C_Read... [08:26:02]Read from MH i2c: 01 07 00 [08:26:02]MH_I2C_Read... [08:26:02]Read from MH i2c: 01 07 00 CD 36 00 00 00 00 00 E1 0C F7 [08:26:02]RasterBufferAndPrint [08:26:02]line [08:26:02]line [08:26:02]line [08:26:02]line [08:26:02]line [08:26:02]written 0, free lines is 3303 [08:26:02]MH_Cut [08:26:02]Write to MH i2c: D1 01 00 D4 36 01 DC [08:26:02]Write i2c OK [08:26:02]MH_I2C_Read... [08:26:02]Read from MH i2c: D1 [08:26:02]MH_I2C_Read... [08:26:02]Read from MH i2c: D1 01 00 [08:26:02]MH_I2C_Read... [08:26:02]Read from MH i2c: D1 01 00 D4 36 00 DB [08:26:02]Write to MH i2c: 01 00 00 D5 36 0B [08:26:02]Write i2c OK [08:26:02]MH_I2C_Read... [08:26:02]OFD Sender: No OFD packet to send [08:26:03]*** Cut start [08:26:03]*** Partial cut [08:26:03]*** CUTSNS_PIN = 1 [08:26:03]*** CUTSNS_PIN = 0 [08:26:03]*** Brake cut motor [08:26:03]Read from MH i2c: 01 [08:26:03]MH_I2C_Read... [08:26:03]*** Stop cut motor [08:26:03]*** Cut end [08:26:03]Read from MH i2c: 01 07 00 [08:26:03]MH_I2C_Read... [08:26:03]Read from MH i2c: 01 07 00 D5 36 00 00 00 00 00 FF 0F 20 [08:26:03]process_action close_receipt done [08:26:03]requested_data is exist [08:26:03]produce_requested_data [08:26:03]requested_item fm.sn is exist - process it [08:26:03]wFMCommunicate request_size=4 [08:26:03]MH_SAM_APDU [08:26:03]CAPDU: 80 11 00 00 [08:26:03]Write to MH i2c: E2 08 00 D6 36 80 11 00 00 00 00 00 00 86 [08:26:03]Write i2c OK [08:26:03]MH_I2C_Read... [08:26:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:03]Read from MH i2c: E2 [08:26:03]MH_I2C_Read... [08:26:03]Read from MH i2c: E2 17 00 [08:26:03]MH_I2C_Read... [08:26:03]Read from MH i2c: E2 17 00 D6 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E1 [08:26:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:26:03]wFMCommunicate OK [08:26:03]requested_item fd.num is exist - process it [08:26:03]SAM_PROTO_GetFieldsCounters [08:26:03]wFMCommunicate request_size=4 [08:26:03]MH_SAM_APDU [08:26:03]CAPDU: 80 13 00 00 [08:26:03]Write to MH i2c: E2 08 00 D7 36 80 13 00 00 00 00 00 00 89 [08:26:03]Write i2c OK [08:26:03]MH_I2C_Read... [08:26:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:04]Read from MH i2c: E2 [08:26:04]MH_I2C_Read... [08:26:04]Read from MH i2c: E2 62 00 [08:26:04]MH_I2C_Read... [08:26:04]Read from MH i2c: E2 62 00 D7 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8F CF 01 00 0E 04 04 00 B2 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 4F [08:26: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8F CF 01 00 0E 04 04 00 B2 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 [08:26:04]wFMCommunicate OK [08:26:04]SAM_PROTO_GetFieldsCounters done [08:26:04]requested_item shift.num is exist - process it [08:26:04]requested_item shift.opened is exist - process it [08:26:04]req_shift_opened [08:26:04]FM_GetShiftState [08:26:04]SAM_PROTO_GetShiftState [08:26:04]wFMCommunicate request_size=4 [08:26:04]MH_SAM_APDU [08:26:04]CAPDU: 80 13 01 00 [08:26:04]Write to MH i2c: E2 08 00 D8 36 80 13 01 00 00 00 00 00 8B [08:26:04]Write i2c OK [08:26:04]MH_I2C_Read... [08:26:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:04]Read from MH i2c: E2 [08:26:04]MH_I2C_Read... [08:26:04]Read from MH i2c: E2 0E 00 [08:26:04]MH_I2C_Read... [08:26:04]Read from MH i2c: E2 0E 00 D8 36 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B9 [08:26:04]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:26:04]wFMCommunicate OK [08:26:04]SAM_PROTO_GetShiftState done [08:26:04]FM_GetShiftState done [08:26:04]req_shift_opened done [08:26:04]requested_item shift.open_date is exist - process it [08:26:04]req_shift_open_date [08:26:04]req_shift_open_date done [08:26:04]produce_requested_data done [08:26:04]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118671,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:26:04]process_action_free close_receipt [08:26:04]json_value_free [08:26:04]json_value_free done [08:26:04]process_json_proto returns [08:26:04]Send response to host [08:26:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118671,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:26:04]free response buf [08:26:04]execute_script done [08:26:04]execute_script returns [08:26:04]free content buf [08:26:04]Sock 7.Close socket [08:26:04]Sock 7.Thread stoped [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:42]OFD Sender: No OFD packet to send [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:13]OFD Sender: No OFD packet to send [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:34]accept exits with 9 [08:28:34]New connection [08:28:34]New thread 3067383140 created [08:28:34]Thread 3067239780 joined [08:28:34]Waiting for new connection... [08:28:34] Sock 9.Parse request [08:28:34]Sock 9.Check first char [08:28:34]Sock 9.First char is OK [08:28:34]request: POST /json_proto HTTP/1.0 [08:28:34]Method: POST [08:28:34]URL: /json_proto [08:28:34]Method is POST - this is cgi request [08:28:34]url: /json_proto [08:28:34]query_string will be loaded in cgi processing [08:28:34]execute_cgi json_proto POST (null) [08:28:34]execute_cgi path=json_proto method=POST [08:28:34]POST find Content-Length [08:28:34]Host: 172.17.45.7:8080 [08:28:34]Content-Length: 822 [08:28:34]Content-Type: application/json [08:28:34] [08:28:34]POST finish read [08:28:34]Found Content-Length = 822 [08:28:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:34]execute_script... [08:28:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:34]POST & json_proto [08:28:34]process_json_proto [08:28:34]json parsed OK: [08:28:34]protocol is kg_v1.0 [08:28:34]action value=close_receipt [08:28:34]process_action close_receipt [08:28:34]cmd_close_receipt [08:28:34]MH_GetDate [08:28:34]Write to MH i2c: F0 00 00 D9 36 FE [08:28:34]Write i2c OK [08:28:34]MH_I2C_Read... [08:28:34]Read from MH i2c: F0 [08:28:34]MH_I2C_Read... [08:28:34]Read from MH i2c: F0 09 00 [08:28:34]MH_I2C_Read... [08:28:34]Read from MH i2c: F0 09 00 D9 36 00 B7 52 A7 66 90 0F 3E 66 60 [08:28:34]GetLastDocTimeStamp 1722241564 [08:28:34]current date 1722241719 [08:28:34]FM_GetShiftState [08:28:34]SAM_PROTO_GetShiftState [08:28:34]wFMCommunicate request_size=4 [08:28:34]MH_SAM_APDU [08:28:34]CAPDU: 80 13 01 00 [08:28:34]Write to MH i2c: E2 08 00 DA 36 80 13 01 00 00 00 00 00 8D [08:28:34]Write i2c OK [08:28:34]MH_I2C_Read... [08:28:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:34]Read from MH i2c: E2 [08:28:34]MH_I2C_Read... [08:28:34]Read from MH i2c: E2 0E 00 [08:28:34]MH_I2C_Read... [08:28:34]Read from MH i2c: E2 0E 00 DA 36 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 BB [08:28:34]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:28:34]wFMCommunicate OK [08:28:34]SAM_PROTO_GetShiftState done [08:28:34]FM_GetShiftState done [08:28:34]opened in 1722211641 [08:28:34]opened+sec_in_day 1722298041 [08:28:34]quantity*price = 100005 [08:28:34]sum+1 = 100006 [08:28:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 48 29.07.2024 08:28 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118672 ФПД: 4218906407088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T082839&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118672&fm=4218906407088&tin=02508201610067®Number=0000000000092660&sum=100000 [08:28:35]StoreToDocumentArchive [08:28:35]shift 434 fd 118672 [08:28:35]save to /storage/0434/doc_00118672 [08:28:35]save last doc name /storage/0434/doc_00118672 to /storage/kkm_last_doc_name [08:28:35]save OK [08:28:35]Clear old archive folders... [08:28:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:28:35]tlvbuf is 01F34230 [08:28:35]SAM_PROTO_ClearQueue [08:28:35]wFMCommunicate request_size=4 [08:28:35]MH_SAM_APDU [08:28:35]CAPDU: 80 09 00 00 [08:28:35]Write to MH i2c: E2 08 00 E7 36 80 09 00 00 00 00 00 00 8F [08:28:35]Write i2c OK [08:28:35]MH_I2C_Read... [08:28:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:35]Read from MH i2c: E2 [08:28:35]MH_I2C_Read... [08:28:35]Read from MH i2c: E2 03 00 [08:28:35]MH_I2C_Read... [08:28:35]Read from MH i2c: E2 03 00 E7 36 00 90 00 91 [08:28:35]RAPDU: 90 00 [08:28:35]wFMCommunicate OK [08:28:35]SAM_PROTO_ClearQueue done [08:28:35]KKMCreateOFDPacket [08:28:35]OFDProtocolAddRootSTLVToBuf [08:28:35]FM_MakeSignedData [08:28:35]FM_MakeSignedData [08:28:35]SAM_PROTO_SignData [08:28:35]wFMCommunicate request_size=4 [08:28:35]MH_SAM_APDU [08:28:35]CAPDU: 80 0D 01 02 [08:28:35]Write to MH i2c: E2 08 00 E8 36 80 0D 01 02 00 00 00 00 97 [08:28:35]Write i2c OK [08:28:35]MH_I2C_Read... [08:28:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:35]Read from MH i2c: E2 [08:28:35]MH_I2C_Read... [08:28:35]Read from MH i2c: E2 03 00 [08:28:35]MH_I2C_Read... [08:28:35]Read from MH i2c: E2 03 00 E8 36 00 90 00 92 [08:28:35]RAPDU: 90 00 [08:28:35]wFMCommunicate OK [08:28:35]wFMCommunicate request_size=255 [08:28:35]MH_SAM_APDU [08:28:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 B7 52 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 90 CF 01 00 35 04 06 00 03 [08:28:35]Write to MH i2c: E2 02 01 E9 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 B7 52 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 90 CF 01 00 35 04 06 00 03 00 00 06 [08:28:35]Write i2c OK [08:28:35]MH_I2C_Read... [08:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:36]Read from MH i2c: E2 [08:28:36]MH_I2C_Read... [08:28:36]Read from MH i2c: E2 03 00 [08:28:36]MH_I2C_Read... [08:28:36]Read from MH i2c: E2 03 00 E9 36 00 90 00 93 [08:28:36]RAPDU: 90 00 [08:28:36]wFMCommunicate OK [08:28:36]wFMCommunicate request_size=10 [08:28:36]MH_SAM_APDU [08:28:36]CAPDU: 80 0D 02 02 05 D6 4A 6A F0 B0 [08:28:36]Write to MH i2c: E2 0D 00 EA 36 80 0D 02 02 05 00 D6 4A 6A F0 B0 00 00 CE [08:28:36]Write i2c OK [08:28:36]MH_I2C_Read... [08:28:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:36]Read from MH i2c: E2 [08:28:36]MH_I2C_Read... [08:28:36]Read from MH i2c: E2 03 00 [08:28:36]MH_I2C_Read... [08:28:36]Read from MH i2c: E2 03 00 EA 36 00 90 00 94 [08:28:36]RAPDU: 90 00 [08:28:36]wFMCommunicate OK [08:28:36]wFMCommunicate request_size=4 [08:28:36]MH_SAM_APDU [08:28:36]CAPDU: 80 0D 03 02 [08:28:36]Write to MH i2c: E2 08 00 EB 36 80 0D 03 02 00 00 00 00 9C [08:28:36]Write i2c OK [08:28:36]MH_I2C_Read... [08:28:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:36]Read from MH i2c: E2 [08:28:36]MH_I2C_Read... [08:28:36]Read from MH i2c: E2 0B 00 [08:28:36]MH_I2C_Read... [08:28:36]Read from MH i2c: E2 0B 00 EB 36 00 50 EB C4 60 C6 AA BA A0 90 00 C6 [08:28:36]RAPDU: 50 EB C4 60 C6 AA BA A0 90 00 [08:28:36]wFMCommunicate OK [08:28:36]SAM_PROTO_SignData done [08:28:36]FM_MakeSignedData done [08:28:36]CreateOFDProtocolMessage [08:28:36]wFMCommunicate request_size=4 [08:28:36]MH_SAM_APDU [08:28:36]CAPDU: 80 11 00 00 [08:28:36]Write to MH i2c: E2 08 00 EC 36 80 11 00 00 00 00 00 00 9C [08:28:36]Write i2c OK [08:28:36]MH_I2C_Read... [08:28:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:36]Read from MH i2c: E2 [08:28:36]MH_I2C_Read... [08:28:36]Read from MH i2c: E2 17 00 [08:28:36]MH_I2C_Read... [08:28:36]Read from MH i2c: E2 17 00 EC 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F7 [08:28:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:28:36]wFMCommunicate OK [08:28:36]CreateOFDProtocolMessage done [08:28:36]OFDSenderStorePacket 118672 [08:28:36]StoreOFDPacket docnum=118672 [08:28:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 66 10 07 01 BC 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 B7 52 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 90 CF 01 00 35 04 06 00 03 D6 4A 6A F0 B0 50 EB C4 60 C6 AA BA A0 [08:28:36]CheckFolder [08:28:36]dirname=/storage/ofd_packets [08:28:36]CheckFolder done [08:28:36]ProducePacketName [08:28:36]name=ofd_packets/00118672 [08:28:36]NVStorageSaveData ofd_packets/00118672 [08:28:36]File name is /storage/ofd_packets/00118672 [08:28:36]Write 301 bytes [08:28:36]NVStorageSaveData done [08:28:36]OFDSenderStorePacket done [08:28:36]KKMCreateOFDPacket done [08:28:36]NVStorageSaveData kkm_last_timestamp [08:28:36]File name is /storage/kkm_last_timestamp [08:28:36]Write 4 bytes [08:28:36]NVStorageSaveData done [08:28:36]ExternCall_PrintAddStr [08:28:36]wPrintStart [08:28:36]Write to MH i2c: 01 00 00 ED 36 23 [08:28:36]Write i2c OK [08:28:36]MH_I2C_Read... [08:28:36]Read from MH i2c: 01 [08:28:36]MH_I2C_Read... [08:28:36]Read from MH i2c: 01 07 00 [08:28:36]MH_I2C_Read... [08:28:36]Read from MH i2c: 01 07 00 ED 36 00 00 00 00 00 FF 0F 38 [08:28:36]RasterBufferAndPrint [08:28:36]line Счет N : (1)949556 [08:28:36]line ИНН: 02508201610067 [08:28:36]line Контрольно-Кассовый Чек [08:28:36]line ПРОДАЖА [08:28:36]line ТРК (МРК, ГНК) : 41 [08:28:36]line Товар: 2710124130 [08:28:36]line Аи-92-К-4 [08:28:36]line 14.750 * 67.80 [08:28:36]line = 1000.05 [08:28:36]line НДС 12% НСП 1% [08:28:36]line > о реализуемом товаре [08:28:36]line ОКРУГЛЕНИЕ: -0.05 [08:28:36]line ИТОГО: 1000.00 [08:28:36]line НСП 1% : 8.85 [08:28:36]line НДС 12% : 106.20 [08:28:36]line Наличными: 0.00 [08:28:36]line Безнал.: 1000.00 [08:28:36]line Место: АЗС № 134 "Партнер Нефть" [08:28:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:28:36]line СНО: Общий режим [08:28:36]line Чек 48 29.07.2024 08:28 [08:28:36]line Смена: 434 ФФД: 1.0 [08:28:36]line ЗНМ: 0300000044 [08:28:36]line РНМ: 0000000000092660 [08:28:36]line Версия ККМ: 001 [08:28:36]line Платежная система: O! деньги [08:28:36]line ФМ: 0000000000874939 [08:28:36]line ФД: 118672 [08:28:36]line ФПД: 4218906407088 [08:28:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T082839&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118672&fm=4218906407088&tin=02508201610067®Number=0000000000092660&sum=100000 [08:28:36]written 0, free lines is 4095 [08:28:36]OFD Sender: Processing packet 118672 [packets to send 86, broken 85] [08:28:36]ProducePacketName [08:28:36]name=ofd_packets/00118672 [08:28:36]OFD Sender: To server: pG, [08:28:36]CommunicateWithHost lk.salyk.kg:30040 [08:28:36]ConnectInit lk.salyk.kg [08:28:36]Connected sock=10 [08:28:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 66 10 07 01 BC 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 B7 52 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 90 CF 01 00 35 04 06 00 03 D6 4A 6A F0 B0 50 EB C4 60 C6 AA BA A0 [08:28:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9C A7 47 00 09 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 34 39 33 39 10 04 04 00 90 CF 01 00 F4 03 04 00 45 00 A7 66 B6 04 01 00 00 0A 5B 36 62 65 6C 02 39 [08:28:36]CommunicateWithHost err = 0 [08:28:36]CheckOFDResponse [08:28:36]1017 (14) - 77093643461234 [08:28:36]1041 (16) - 0000000000874939 [08:28:36]1040 (4) - 118672 [08:28:36]1012 (4) - 29.07.2024 02:36 [08:28:36]1206 (1) - 0 [08:28:36]OFD Sender: Remove packet 118672 [08:28:36]ProducePacketName [08:28:36]name=ofd_packets/00118672 [08:28:36]NVStorageDeleteData [08:28:36]Write to MH i2c: 01 00 00 17 37 4E [08:28:36]Write i2c OK [08:28:36]MH_I2C_Read... [08:28:36]Read from MH i2c: 01 [08:28:36]MH_I2C_Read... [08:28:36]Read from MH i2c: 01 07 00 [08:28:36]MH_I2C_Read... [08:28:36]Read from MH i2c: 01 07 00 17 37 00 00 00 00 00 DC 0C 3D [08:28:36]RasterBufferAndPrint [08:28:36]line [08:28:36]line [08:28:36]line [08:28:36]line [08:28:36]line [08:28:36]written 0, free lines is 3298 [08:28:36]MH_Cut [08:28:36]Write to MH i2c: D1 01 00 1E 37 01 27 [08:28:36]Write i2c OK [08:28:36]MH_I2C_Read... [08:28:36]Read from MH i2c: D1 [08:28:36]MH_I2C_Read... [08:28:36]Read from MH i2c: D1 01 00 [08:28:36]MH_I2C_Read... [08:28:36]Read from MH i2c: D1 01 00 1E 37 00 26 [08:28:36]Write to MH i2c: 01 00 00 1F 37 56 [08:28:36]Write i2c OK [08:28:36]MH_I2C_Read... [08:28:37]OFD Sender: No OFD packet to send [08:28:37]*** Cut start [08:28:37]*** Partial cut [08:28:37]*** CUTSNS_PIN = 1 [08:28:37]*** CUTSNS_PIN = 0 [08:28:37]*** Brake cut motor [08:28:38]Read from MH i2c: 01 [08:28:38]MH_I2C_Read... [08:28:38]*** Stop cut motor [08:28:38]*** Cut end [08:28:38]Read from MH i2c: 01 07 00 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: 01 07 00 1F 37 00 00 00 00 00 FF 0F 6B [08:28:38]process_action close_receipt done [08:28:38]requested_data is exist [08:28:38]produce_requested_data [08:28:38]requested_item fm.sn is exist - process it [08:28:38]wFMCommunicate request_size=4 [08:28:38]MH_SAM_APDU [08:28:38]CAPDU: 80 11 00 00 [08:28:38]Write to MH i2c: E2 08 00 20 37 80 11 00 00 00 00 00 00 D1 [08:28:38]Write i2c OK [08:28:38]MH_I2C_Read... [08:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:38]Read from MH i2c: E2 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 17 00 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 17 00 20 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2C [08:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:28:38]wFMCommunicate OK [08:28:38]requested_item fd.num is exist - process it [08:28:38]SAM_PROTO_GetFieldsCounters [08:28:38]wFMCommunicate request_size=4 [08:28:38]MH_SAM_APDU [08:28:38]CAPDU: 80 13 00 00 [08:28:38]Write to MH i2c: E2 08 00 21 37 80 13 00 00 00 00 00 00 D4 [08:28:38]Write i2c OK [08:28:38]MH_I2C_Read... [08:28:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:38]Read from MH i2c: E2 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 62 00 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 62 00 21 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 90 CF 01 00 0E 04 04 00 B2 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 9E [08:28: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 90 CF 01 00 0E 04 04 00 B2 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 [08:28:38]wFMCommunicate OK [08:28:38]SAM_PROTO_GetFieldsCounters done [08:28:38]requested_item shift.num is exist - process it [08:28:38]requested_item shift.opened is exist - process it [08:28:38]req_shift_opened [08:28:38]FM_GetShiftState [08:28:38]SAM_PROTO_GetShiftState [08:28:38]wFMCommunicate request_size=4 [08:28:38]MH_SAM_APDU [08:28:38]CAPDU: 80 13 01 00 [08:28:38]Write to MH i2c: E2 08 00 22 37 80 13 01 00 00 00 00 00 D6 [08:28:38]Write i2c OK [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 [08:28:38]MH_I2C_Read... [08:28:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:38]Read from MH i2c: E2 0E 00 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 0E 00 22 37 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 04 [08:28:38]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:28:38]wFMCommunicate OK [08:28:38]SAM_PROTO_GetShiftState done [08:28:38]FM_GetShiftState done [08:28:38]req_shift_opened done [08:28:38]requested_item shift.open_date is exist - process it [08:28:38]req_shift_open_date [08:28:38]req_shift_open_date done [08:28:38]produce_requested_data done [08:28:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118672,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:28:38]process_action_free close_receipt [08:28:38]json_value_free [08:28:38]json_value_free done [08:28:38]process_json_proto returns [08:28:38]Send response to host [08:28:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118672,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:28:38]free response buf [08:28:38]execute_script done [08:28:38]execute_script returns [08:28:38]free content buf [08:28:38]Sock 9.Close socket [08:28:38]Sock 9.Thread stoped [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:18]accept exits with 7 [08:29:18]New connection [08:29:18]New thread 3067239780 created [08:29:18]Thread 3067383140 joined [08:29:18]Waiting for new connection... [08:29:18] Sock 7.Parse request [08:29:18]Sock 7.Check first char [08:29:18]Sock 7.First char is OK [08:29:18]request: POST /json_proto HTTP/1.0 [08:29:18]Method: POST [08:29:18]URL: /json_proto [08:29:18]Method is POST - this is cgi request [08:29:18]url: /json_proto [08:29:18]query_string will be loaded in cgi processing [08:29:18]execute_cgi json_proto POST (null) [08:29:18]execute_cgi path=json_proto method=POST [08:29:18]POST find Content-Length [08:29:18]Host: 172.17.45.7:8080 [08:29:18]Content-Length: 677 [08:29:18]Content-Type: application/json [08:29:18] [08:29:18]POST finish read [08:29:18]Found Content-Length = 677 [08:29:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:18]execute_script... [08:29:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:18]POST & json_proto [08:29:18]process_json_proto [08:29:18]json parsed OK: [08:29:18]protocol is kg_v1.0 [08:29:18]action value=close_receipt [08:29:18]process_action close_receipt [08:29:18]cmd_close_receipt [08:29:18]MH_GetDate [08:29:18]Write to MH i2c: F0 00 00 23 37 49 [08:29:18]Write i2c OK [08:29:18]MH_I2C_Read... [08:29:18]Read from MH i2c: F0 [08:29:18]MH_I2C_Read... [08:29:18]Read from MH i2c: F0 09 00 [08:29:18]MH_I2C_Read... [08:29:18]Read from MH i2c: F0 09 00 23 37 00 E3 52 A7 66 90 0F 3E 66 D7 [08:29:18]GetLastDocTimeStamp 1722241719 [08:29:18]current date 1722241763 [08:29:18]FM_GetShiftState [08:29:18]SAM_PROTO_GetShiftState [08:29:18]wFMCommunicate request_size=4 [08:29:18]MH_SAM_APDU [08:29:18]CAPDU: 80 13 01 00 [08:29:18]Write to MH i2c: E2 08 00 24 37 80 13 01 00 00 00 00 00 D8 [08:29:18]Write i2c OK [08:29:18]MH_I2C_Read... [08:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:18]Read from MH i2c: E2 [08:29:18]MH_I2C_Read... [08:29:18]Read from MH i2c: E2 0E 00 [08:29:18]MH_I2C_Read... [08:29:18]Read from MH i2c: E2 0E 00 24 37 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 06 [08:29:18]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:29:18]wFMCommunicate OK [08:29:18]SAM_PROTO_GetShiftState done [08:29:18]FM_GetShiftState done [08:29:18]opened in 1722211641 [08:29:18]opened+sec_in_day 1722298041 [08:29:18]quantity*price = 50036 [08:29:18]sum+1 = 50037 [08:29:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 49 29.07.2024 08:29 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118673 ФПД: 36467462697714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T082923&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118673&fm=36467462697714&tin=02508201610067®Number=0000000000092660&sum=50000 [08:29:19]StoreToDocumentArchive [08:29:19]shift 434 fd 118673 [08:29:19]save to /storage/0434/doc_00118673 [08:29:19]save last doc name /storage/0434/doc_00118673 to /storage/kkm_last_doc_name [08:29:19]save OK [08:29:19]Clear old archive folders... [08:29:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:29:19]tlvbuf is 01E4D470 [08:29:19]SAM_PROTO_ClearQueue [08:29:19]wFMCommunicate request_size=4 [08:29:19]MH_SAM_APDU [08:29:19]CAPDU: 80 09 00 00 [08:29:19]Write to MH i2c: E2 08 00 31 37 80 09 00 00 00 00 00 00 DA [08:29:19]Write i2c OK [08:29:19]MH_I2C_Read... [08:29:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:19]Read from MH i2c: E2 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 03 00 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 03 00 31 37 00 90 00 DC [08:29:19]RAPDU: 90 00 [08:29:19]wFMCommunicate OK [08:29:19]SAM_PROTO_ClearQueue done [08:29:19]KKMCreateOFDPacket [08:29:19]OFDProtocolAddRootSTLVToBuf [08:29:19]FM_MakeSignedData [08:29:19]FM_MakeSignedData [08:29:19]SAM_PROTO_SignData [08:29:19]wFMCommunicate request_size=4 [08:29:19]MH_SAM_APDU [08:29:19]CAPDU: 80 0D 01 02 [08:29:19]Write to MH i2c: E2 08 00 32 37 80 0D 01 02 00 00 00 00 E2 [08:29:19]Write i2c OK [08:29:19]MH_I2C_Read... [08:29:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:19]Read from MH i2c: E2 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 03 00 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 03 00 32 37 00 90 00 DD [08:29:19]RAPDU: 90 00 [08:29:19]wFMCommunicate OK [08:29:19]wFMCommunicate request_size=255 [08:29:19]MH_SAM_APDU [08:29:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E3 52 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 91 CF 01 00 35 04 06 00 21 [08:29:19]Write to MH i2c: E2 02 01 33 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E3 52 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 91 CF 01 00 35 04 06 00 21 00 00 0E [08:29:19]Write i2c OK [08:29:19]MH_I2C_Read... [08:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:20]Read from MH i2c: E2 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 03 00 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 03 00 33 37 00 90 00 DE [08:29:20]RAPDU: 90 00 [08:29:20]wFMCommunicate OK [08:29:20]wFMCommunicate request_size=10 [08:29:20]MH_SAM_APDU [08:29:20]CAPDU: 80 0D 02 02 05 2A BE 28 F2 F2 [08:29:20]Write to MH i2c: E2 0D 00 34 37 80 0D 02 02 05 00 2A BE 28 F2 F2 00 00 E3 [08:29:20]Write i2c OK [08:29:20]MH_I2C_Read... [08:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:20]Read from MH i2c: E2 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 03 00 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 03 00 34 37 00 90 00 DF [08:29:20]RAPDU: 90 00 [08:29:20]wFMCommunicate OK [08:29:20]wFMCommunicate request_size=4 [08:29:20]MH_SAM_APDU [08:29:20]CAPDU: 80 0D 03 02 [08:29:20]Write to MH i2c: E2 08 00 35 37 80 0D 03 02 00 00 00 00 E7 [08:29:20]Write i2c OK [08:29:20]MH_I2C_Read... [08:29:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:20]Read from MH i2c: E2 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 0B 00 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 0B 00 35 37 00 4D 65 84 9A 81 A3 F1 0F 90 00 DC [08:29:20]RAPDU: 4D 65 84 9A 81 A3 F1 0F 90 00 [08:29:20]wFMCommunicate OK [08:29:20]SAM_PROTO_SignData done [08:29:20]FM_MakeSignedData done [08:29:20]CreateOFDProtocolMessage [08:29:20]wFMCommunicate request_size=4 [08:29:20]MH_SAM_APDU [08:29:20]CAPDU: 80 11 00 00 [08:29:20]Write to MH i2c: E2 08 00 36 37 80 11 00 00 00 00 00 00 E7 [08:29:20]Write i2c OK [08:29:20]MH_I2C_Read... [08:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:20]Read from MH i2c: E2 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 17 00 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 17 00 36 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 42 [08:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:29:20]wFMCommunicate OK [08:29:20]CreateOFDProtocolMessage done [08:29:20]OFDSenderStorePacket 118673 [08:29:20]StoreOFDPacket docnum=118673 [08:29:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2A FF 07 01 CC 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E3 52 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 91 CF 01 00 35 04 06 00 21 2A BE 28 F2 F2 4D 65 84 9A 81 A3 F1 0F [08:29:20]CheckFolder [08:29:20]dirname=/storage/ofd_packets [08:29:20]CheckFolder done [08:29:20]ProducePacketName [08:29:20]name=ofd_packets/00118673 [08:29:20]NVStorageSaveData ofd_packets/00118673 [08:29:20]File name is /storage/ofd_packets/00118673 [08:29:20]Write 301 bytes [08:29:20]NVStorageSaveData done [08:29:20]OFDSenderStorePacket done [08:29:20]KKMCreateOFDPacket done [08:29:20]NVStorageSaveData kkm_last_timestamp [08:29:20]File name is /storage/kkm_last_timestamp [08:29:20]Write 4 bytes [08:29:20]NVStorageSaveData done [08:29:20]ExternCall_PrintAddStr [08:29:20]wPrintStart [08:29:20]Write to MH i2c: 01 00 00 37 37 6E [08:29:20]Write i2c OK [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: 01 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: 01 07 00 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: 01 07 00 37 37 00 00 00 00 00 FF 0F 83 [08:29:20]RasterBufferAndPrint [08:29:20]line Счет N : (1)949555 [08:29:20]line ИНН: 02508201610067 [08:29:20]line Контрольно-Кассовый Чек [08:29:20]line ПРОДАЖА [08:29:20]line ТРК (МРК, ГНК) : 61 [08:29:20]line Товар: 2710124130 [08:29:20]line Аи-92-К-4 [08:29:20]line 7.380 * 67.80 [08:29:20]line = 500.36 [08:29:20]line НДС 12% НСП 1% [08:29:20]line > о реализуемом товаре [08:29:20]line ОКРУГЛЕНИЕ: -0.36 [08:29:20]line ИТОГО: 500.00 [08:29:20]line Внесено: 500.00 [08:29:20]line СДАЧА: 0.00 [08:29:20]line НСП 1% : 4.43 [08:29:20]line НДС 12% : 53.14 [08:29:20]line Наличными: 500.00 [08:29:20]line Безнал.: 0.00 [08:29:20]line Место: АЗС № 134 "Партнер Нефть" [08:29:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:29:20]line СНО: Общий режим [08:29:20]line Чек 49 29.07.2024 08:29 [08:29:20]line Смена: 434 ФФД: 1.0 [08:29:20]line ЗНМ: 0300000044 [08:29:20]line РНМ: 0000000000092660 [08:29:20]line Версия ККМ: 001 [08:29:20]line ФМ: 0000000000874939 [08:29:20]line ФД: 118673 [08:29:20]line ФПД: 36467462697714 [08:29:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T082923&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118673&fm=36467462697714&tin=02508201610067®Number=0000000000092660&sum=50000 [08:29:20]OFD Sender: Processing packet 118673 [packets to send 86, broken 85] [08:29:20]ProducePacketName [08:29:20]name=ofd_packets/00118673 [08:29:20]OFD Sender: To server: pG, [08:29:20]CommunicateWithHost lk.salyk.kg:30040 [08:29:20]written 0, free lines is 4095 [08:29:20]ConnectInit lk.salyk.kg [08:29:20]Connected sock=10 [08:29:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2A FF 07 01 CC 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E3 52 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 91 CF 01 00 35 04 06 00 21 2A BE 28 F2 F2 4D 65 84 9A 81 A3 F1 0F [08:29:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E1 D0 47 00 F6 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 91 CF 01 00 F4 03 04 00 71 00 A7 66 B6 04 01 00 00 41 42 7E 0C 58 1A E6 41 [08:29:20]CommunicateWithHost err = 0 [08:29:20]CheckOFDResponse [08:29:20]1017 (14) - 77093643461234 [08:29:20]1041 (16) - 0000000000874939 [08:29:20]1040 (4) - 118673 [08:29:20]1012 (4) - 29.07.2024 02:37 [08:29:20]1206 (1) - 0 [08:29:20]OFD Sender: Remove packet 118673 [08:29:20]ProducePacketName [08:29:20]name=ofd_packets/00118673 [08:29:20]NVStorageDeleteData [08:29:21]Write to MH i2c: 01 00 00 61 37 98 [08:29:21]Write i2c OK [08:29:21]MH_I2C_Read... [08:29:21]Read from MH i2c: 01 [08:29:21]MH_I2C_Read... [08:29:21]Read from MH i2c: 01 07 00 [08:29:21]MH_I2C_Read... [08:29:21]Read from MH i2c: 01 07 00 61 37 00 00 00 00 00 DC 0C 87 [08:29:21]RasterBufferAndPrint [08:29:21]line [08:29:21]line [08:29:21]line [08:29:21]line [08:29:21]line [08:29:21]written 0, free lines is 3298 [08:29:21]MH_Cut [08:29:21]Write to MH i2c: D1 01 00 68 37 01 71 [08:29:21]Write i2c OK [08:29:21]MH_I2C_Read... [08:29:21]Read from MH i2c: D1 [08:29:21]MH_I2C_Read... [08:29:21]Read from MH i2c: D1 01 00 [08:29:21]MH_I2C_Read... [08:29:21]Read from MH i2c: D1 01 00 68 37 00 70 [08:29:21]Write to MH i2c: 01 00 00 69 37 A0 [08:29:21]Write i2c OK [08:29:21]MH_I2C_Read... [08:29:21]OFD Sender: No OFD packet to send [08:29:21]*** Cut start [08:29:21]*** Partial cut [08:29:21]*** CUTSNS_PIN = 1 [08:29:21]*** CUTSNS_PIN = 0 [08:29:22]*** Brake cut motor [08:29:22]Read from MH i2c: 01 [08:29:22]MH_I2C_Read... [08:29:22]*** Stop cut motor [08:29:22]*** Cut end [08:29:22]Read from MH i2c: 01 07 00 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: 01 07 00 69 37 00 00 00 00 00 FF 0F B5 [08:29:22]process_action close_receipt done [08:29:22]requested_data is exist [08:29:22]produce_requested_data [08:29:22]requested_item fm.sn is exist - process it [08:29:22]wFMCommunicate request_size=4 [08:29:22]MH_SAM_APDU [08:29:22]CAPDU: 80 11 00 00 [08:29:22]Write to MH i2c: E2 08 00 6A 37 80 11 00 00 00 00 00 00 1B [08:29:22]Write i2c OK [08:29:22]MH_I2C_Read... [08:29:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:22]Read from MH i2c: E2 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 17 00 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 17 00 6A 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 76 [08:29:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:29:22]wFMCommunicate OK [08:29:22]requested_item fd.num is exist - process it [08:29:22]SAM_PROTO_GetFieldsCounters [08:29:22]wFMCommunicate request_size=4 [08:29:22]MH_SAM_APDU [08:29:22]CAPDU: 80 13 00 00 [08:29:22]Write to MH i2c: E2 08 00 6B 37 80 13 00 00 00 00 00 00 1E [08:29:22]Write i2c OK [08:29:22]MH_I2C_Read... [08:29:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:22]Read from MH i2c: E2 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 62 00 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 62 00 6B 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 91 CF 01 00 0E 04 04 00 B2 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 EC [08:29: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 91 CF 01 00 0E 04 04 00 B2 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 [08:29:22]wFMCommunicate OK [08:29:22]SAM_PROTO_GetFieldsCounters done [08:29:22]requested_item shift.num is exist - process it [08:29:22]requested_item shift.opened is exist - process it [08:29:22]req_shift_opened [08:29:22]FM_GetShiftState [08:29:22]SAM_PROTO_GetShiftState [08:29:22]wFMCommunicate request_size=4 [08:29:22]MH_SAM_APDU [08:29:22]CAPDU: 80 13 01 00 [08:29:22]Write to MH i2c: E2 08 00 6C 37 80 13 01 00 00 00 00 00 20 [08:29:22]Write i2c OK [08:29:22]MH_I2C_Read... [08:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:22]Read from MH i2c: E2 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 0E 00 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 0E 00 6C 37 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 4E [08:29:22]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:29:22]wFMCommunicate OK [08:29:22]SAM_PROTO_GetShiftState done [08:29:22]FM_GetShiftState done [08:29:22]req_shift_opened done [08:29:22]requested_item shift.open_date is exist - process it [08:29:22]req_shift_open_date [08:29:22]req_shift_open_date done [08:29:22]produce_requested_data done [08:29:22]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118673,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:29:22]process_action_free close_receipt [08:29:22]json_value_free [08:29:22]json_value_free done [08:29:22]process_json_proto returns [08:29:22]Send response to host [08:29:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118673,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:29:22]free response buf [08:29:22]execute_script done [08:29:22]execute_script returns [08:29:22]free content buf [08:29:22]Sock 7.Close socket [08:29:22]Sock 7.Thread stoped [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:08]accept exits with 9 [08:31:08]New connection [08:31:08]New thread 3067383140 created [08:31:08]Thread 3067239780 joined [08:31:08]Waiting for new connection... [08:31:08] Sock 9.Parse request [08:31:08]Sock 9.Check first char [08:31:08]Sock 9.First char is OK [08:31:08]request: POST /json_proto HTTP/1.0 [08:31:08]Method: POST [08:31:08]URL: /json_proto [08:31:08]Method is POST - this is cgi request [08:31:08]url: /json_proto [08:31:08]query_string will be loaded in cgi processing [08:31:08]execute_cgi json_proto POST (null) [08:31:08]execute_cgi path=json_proto method=POST [08:31:08]POST find Content-Length [08:31:08]Host: 172.17.45.7:8080 [08:31:08]Content-Length: 677 [08:31:08]Content-Type: application/json [08:31:08] [08:31:08]POST finish read [08:31:08]Found Content-Length = 677 [08:31:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:08]execute_script... [08:31: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)949557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:08]POST & json_proto [08:31:08]process_json_proto [08:31:08]json parsed OK: [08:31:08]protocol is kg_v1.0 [08:31:08]action value=close_receipt [08:31:08]process_action close_receipt [08:31:08]cmd_close_receipt [08:31:08]MH_GetDate [08:31:08]Write to MH i2c: F0 00 00 6D 37 93 [08:31:08]Write i2c OK [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: F0 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: F0 09 00 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: F0 09 00 6D 37 00 51 53 A7 66 90 0F 3E 66 90 [08:31:08]GetLastDocTimeStamp 1722241763 [08:31:08]current date 1722241873 [08:31:08]FM_GetShiftState [08:31:08]SAM_PROTO_GetShiftState [08:31:08]wFMCommunicate request_size=4 [08:31:08]MH_SAM_APDU [08:31:08]CAPDU: 80 13 01 00 [08:31:08]Write to MH i2c: E2 08 00 6E 37 80 13 01 00 00 00 00 00 22 [08:31:08]Write i2c OK [08:31:08]MH_I2C_Read... [08:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:08]Read from MH i2c: E2 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 0E 00 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 0E 00 6E 37 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 50 [08:31:08]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:31:08]wFMCommunicate OK [08:31:08]SAM_PROTO_GetShiftState done [08:31:08]FM_GetShiftState done [08:31:08]opened in 1722211641 [08:31:08]opened+sec_in_day 1722298041 [08:31:08]quantity*price = 50036 [08:31:08]sum+1 = 50037 [08:31:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 50 29.07.2024 08:31 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118674 ФПД: 15890219704542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T083113&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118674&fm=15890219704542&tin=02508201610067®Number=0000000000092660&sum=50000 [08:31:10]StoreToDocumentArchive [08:31:10]shift 434 fd 118674 [08:31:10]save to /storage/0434/doc_00118674 [08:31:10]save last doc name /storage/0434/doc_00118674 to /storage/kkm_last_doc_name [08:31:10]save OK [08:31:10]Clear old archive folders... [08:31:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:10]tlvbuf is 01E70660 [08:31:10]SAM_PROTO_ClearQueue [08:31:10]wFMCommunicate request_size=4 [08:31:10]MH_SAM_APDU [08:31:10]CAPDU: 80 09 00 00 [08:31:10]Write to MH i2c: E2 08 00 7B 37 80 09 00 00 00 00 00 00 24 [08:31:10]Write i2c OK [08:31:10]MH_I2C_Read... [08:31:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:10]Read from MH i2c: E2 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 03 00 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 03 00 7B 37 00 90 00 26 [08:31:10]RAPDU: 90 00 [08:31:10]wFMCommunicate OK [08:31:10]SAM_PROTO_ClearQueue done [08:31:10]KKMCreateOFDPacket [08:31:10]OFDProtocolAddRootSTLVToBuf [08:31:10]FM_MakeSignedData [08:31:10]FM_MakeSignedData [08:31:10]SAM_PROTO_SignData [08:31:10]wFMCommunicate request_size=4 [08:31:10]MH_SAM_APDU [08:31:10]CAPDU: 80 0D 01 02 [08:31:10]Write to MH i2c: E2 08 00 7C 37 80 0D 01 02 00 00 00 00 2C [08:31:10]Write i2c OK [08:31:10]MH_I2C_Read... [08:31:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:10]Read from MH i2c: E2 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 03 00 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 03 00 7C 37 00 90 00 27 [08:31:10]RAPDU: 90 00 [08:31:10]wFMCommunicate OK [08:31:10]wFMCommunicate request_size=255 [08:31:10]MH_SAM_APDU [08:31: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 51 53 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 92 CF 01 00 35 04 06 00 0E [08:31:10]Write to MH i2c: E2 02 01 7D 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 51 53 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 92 CF 01 00 35 04 06 00 0E 00 00 B6 [08:31:10]Write i2c OK [08:31:10]MH_I2C_Read... [08:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:10]Read from MH i2c: E2 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 03 00 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 03 00 7D 37 00 90 00 28 [08:31:10]RAPDU: 90 00 [08:31:10]wFMCommunicate OK [08:31:10]wFMCommunicate request_size=10 [08:31:10]MH_SAM_APDU [08:31:10]CAPDU: 80 0D 02 02 05 73 BA E6 A0 DE [08:31:10]Write to MH i2c: E2 0D 00 7E 37 80 0D 02 02 05 00 73 BA E6 A0 DE 00 00 CA [08:31:10]Write i2c OK [08:31:10]MH_I2C_Read... [08:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:10]Read from MH i2c: E2 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 03 00 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 03 00 7E 37 00 90 00 29 [08:31:10]RAPDU: 90 00 [08:31:10]wFMCommunicate OK [08:31:10]wFMCommunicate request_size=4 [08:31:10]MH_SAM_APDU [08:31:10]CAPDU: 80 0D 03 02 [08:31:10]Write to MH i2c: E2 08 00 7F 37 80 0D 03 02 00 00 00 00 31 [08:31:10]Write i2c OK [08:31:10]MH_I2C_Read... [08:31:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:10]Read from MH i2c: E2 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 0B 00 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 0B 00 7F 37 00 3B 14 DA 9B 2C 1D EE 61 90 00 8E [08:31:10]RAPDU: 3B 14 DA 9B 2C 1D EE 61 90 00 [08:31:10]wFMCommunicate OK [08:31:10]SAM_PROTO_SignData done [08:31:10]FM_MakeSignedData done [08:31:10]CreateOFDProtocolMessage [08:31:10]wFMCommunicate request_size=4 [08:31:10]MH_SAM_APDU [08:31:10]CAPDU: 80 11 00 00 [08:31:10]Write to MH i2c: E2 08 00 80 37 80 11 00 00 00 00 00 00 31 [08:31:10]Write i2c OK [08:31:10]MH_I2C_Read... [08:31:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:10]Read from MH i2c: E2 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 17 00 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 17 00 80 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8C [08:31:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:31:10]wFMCommunicate OK [08:31:10]CreateOFDProtocolMessage done [08:31:10]OFDSenderStorePacket 118674 [08:31:10]StoreOFDPacket docnum=118674 [08:31:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 13 17 07 01 18 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 51 53 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 92 CF 01 00 35 04 06 00 0E 73 BA E6 A0 DE 3B 14 DA 9B 2C 1D EE 61 [08:31:10]CheckFolder [08:31:10]dirname=/storage/ofd_packets [08:31:10]CheckFolder done [08:31:10]ProducePacketName [08:31:10]name=ofd_packets/00118674 [08:31:10]NVStorageSaveData ofd_packets/00118674 [08:31:10]File name is /storage/ofd_packets/00118674 [08:31:10]Write 301 bytes [08:31:10]NVStorageSaveData done [08:31:10]OFDSenderStorePacket done [08:31:10]KKMCreateOFDPacket done [08:31:10]NVStorageSaveData kkm_last_timestamp [08:31:10]File name is /storage/kkm_last_timestamp [08:31:10]Write 4 bytes [08:31:10]NVStorageSaveData done [08:31:10]ExternCall_PrintAddStr [08:31:10]wPrintStart [08:31:10]Write to MH i2c: 01 00 00 81 37 B8 [08:31:10]Write i2c OK [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: 01 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: 01 07 00 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: 01 07 00 81 37 00 00 00 00 00 FF 0F CD [08:31:10]RasterBufferAndPrint [08:31:10]line Счет N : (1)949557 [08:31:10]line ИНН: 02508201610067 [08:31:10]line Контрольно-Кассовый Чек [08:31:10]line ПРОДАЖА [08:31:10]line ТРК (МРК, ГНК) : 41 [08:31:10]line Товар: 2710124130 [08:31:10]line Аи-92-К-4 [08:31:10]line 7.380 * 67.80 [08:31:10]line = 500.36 [08:31:10]line НДС 12% НСП 1% [08:31:10]line > о реализуемом товаре [08:31:10]line ОКРУГЛЕНИЕ: -0.36 [08:31:10]line ИТОГО: 500.00 [08:31:10]line Внесено: 500.00 [08:31:10]line СДАЧА: 0.00 [08:31:10]line НСП 1% : 4.43 [08:31:10]line НДС 12% : 53.14 [08:31:10]line Наличными: 500.00 [08:31:10]line Безнал.: 0.00 [08:31:10]line Место: АЗС № 134 "Партнер Нефть" [08:31:10]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:31:10]line СНО: Общий режим [08:31:10]line Чек 50 29.07.2024 08:31 [08:31:10]line Смена: 434 ФФД: 1.0 [08:31:10]line ЗНМ: 0300000044 [08:31:10]line РНМ: 0000000000092660 [08:31:10]line Версия ККМ: 001 [08:31:10]line ФМ: 0000000000874939 [08:31:10]line ФД: 118674 [08:31:10]line ФПД: 15890219704542 [08:31:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T083113&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118674&fm=15890219704542&tin=02508201610067®Number=0000000000092660&sum=50000 [08:31:10]OFD Sender: Processing packet 118674 [packets to send 86, broken 85] [08:31:10]ProducePacketName [08:31:10]name=ofd_packets/00118674 [08:31:10]OFD Sender: To server: pG, [08:31:10]CommunicateWithHost lk.salyk.kg:30040 [08:31:10]ConnectInit lk.salyk.kg [08:31:10]written 0, free lines is 4095 [08:31:11]Connected sock=10 [08:31:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 13 17 07 01 18 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 51 53 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 92 CF 01 00 35 04 06 00 0E 73 BA E6 A0 DE 3B 14 DA 9B 2C 1D EE 61 [08:31:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 36 67 47 00 A6 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 92 CF 01 00 F4 03 04 00 DF 00 A7 66 B6 04 01 00 00 A6 E1 27 38 6B 55 E9 D7 [08:31:11]CommunicateWithHost err = 0 [08:31:11]CheckOFDResponse [08:31:11]1017 (14) - 77093643461234 [08:31:11]1041 (16) - 0000000000874939 [08:31:11]1040 (4) - 118674 [08:31:11]1012 (4) - 29.07.2024 02:39 [08:31:11]1206 (1) - 0 [08:31:11]OFD Sender: Remove packet 118674 [08:31:11]ProducePacketName [08:31:11]name=ofd_packets/00118674 [08:31:11]NVStorageDeleteData [08:31:11]Write to MH i2c: 01 00 00 AB 37 E2 [08:31:11]Write i2c OK [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: 01 [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: 01 07 00 [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: 01 07 00 AB 37 00 00 00 00 00 E4 0C D9 [08:31:11]RasterBufferAndPrint [08:31:11]line [08:31:11]line [08:31:11]line [08:31:11]line [08:31:11]line [08:31:11]written 0, free lines is 3306 [08:31:11]MH_Cut [08:31:11]Write to MH i2c: D1 01 00 B2 37 01 BB [08:31:11]Write i2c OK [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: D1 [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: D1 01 00 [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: D1 01 00 B2 37 00 BA [08:31:11]Write to MH i2c: 01 00 00 B3 37 EA [08:31:11]Write i2c OK [08:31:11]MH_I2C_Read... [08:31:11]OFD Sender: No OFD packet to send [08:31:12]*** Cut start [08:31:12]*** Partial cut [08:31:12]*** CUTSNS_PIN = 1 [08:31:12]*** CUTSNS_PIN = 0 [08:31:12]*** Brake cut motor [08:31:12]Read from MH i2c: 01 [08:31:12]MH_I2C_Read... [08:31:12]*** Stop cut motor [08:31:12]*** Cut end [08:31:12]Read from MH i2c: 01 07 00 [08:31:12]MH_I2C_Read... [08:31:12]Read from MH i2c: 01 07 00 B3 37 00 00 00 00 00 FF 0F FF [08:31:12]process_action close_receipt done [08:31:12]requested_data is exist [08:31:12]produce_requested_data [08:31:12]requested_item fm.sn is exist - process it [08:31:12]wFMCommunicate request_size=4 [08:31:12]MH_SAM_APDU [08:31:12]CAPDU: 80 11 00 00 [08:31:12]Write to MH i2c: E2 08 00 B4 37 80 11 00 00 00 00 00 00 65 [08:31:12]Write i2c OK [08:31:12]MH_I2C_Read... [08:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:12]Read from MH i2c: E2 [08:31:12]MH_I2C_Read... [08:31:12]Read from MH i2c: E2 17 00 [08:31:12]MH_I2C_Read... [08:31:12]Read from MH i2c: E2 17 00 B4 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C0 [08:31:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:31:12]wFMCommunicate OK [08:31:12]requested_item fd.num is exist - process it [08:31:12]SAM_PROTO_GetFieldsCounters [08:31:12]wFMCommunicate request_size=4 [08:31:12]MH_SAM_APDU [08:31:12]CAPDU: 80 13 00 00 [08:31:12]Write to MH i2c: E2 08 00 B5 37 80 13 00 00 00 00 00 00 68 [08:31:12]Write i2c OK [08:31:12]MH_I2C_Read... [08:31:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:12]Read from MH i2c: E2 [08:31:12]MH_I2C_Read... [08:31:12]Read from MH i2c: E2 62 00 [08:31:12]MH_I2C_Read... [08:31:12]Read from MH i2c: E2 62 00 B5 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 92 CF 01 00 0E 04 04 00 B2 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 3A [08:31: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 92 CF 01 00 0E 04 04 00 B2 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 [08:31:12]wFMCommunicate OK [08:31:12]SAM_PROTO_GetFieldsCounters done [08:31:12]requested_item shift.num is exist - process it [08:31:12]requested_item shift.opened is exist - process it [08:31:12]req_shift_opened [08:31:12]FM_GetShiftState [08:31:12]SAM_PROTO_GetShiftState [08:31:12]wFMCommunicate request_size=4 [08:31:12]MH_SAM_APDU [08:31:12]CAPDU: 80 13 01 00 [08:31:12]Write to MH i2c: E2 08 00 B6 37 80 13 01 00 00 00 00 00 6A [08:31:12]Write i2c OK [08:31:12]MH_I2C_Read... [08:31:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:12]Read from MH i2c: E2 [08:31:12]MH_I2C_Read... [08:31:12]Read from MH i2c: E2 0E 00 [08:31:12]MH_I2C_Read... [08:31:12]Read from MH i2c: E2 0E 00 B6 37 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 98 [08:31:12]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:31:12]wFMCommunicate OK [08:31:12]SAM_PROTO_GetShiftState done [08:31:12]FM_GetShiftState done [08:31:12]req_shift_opened done [08:31:12]requested_item shift.open_date is exist - process it [08:31:12]req_shift_open_date [08:31:12]req_shift_open_date done [08:31:12]produce_requested_data done [08:31:12]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118674,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:31:12]process_action_free close_receipt [08:31:12]json_value_free [08:31:12]json_value_free done [08:31:12]process_json_proto returns [08:31:12]Send response to host [08:31:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118674,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:31:12]free response buf [08:31:12]execute_script done [08:31:12]execute_script returns [08:31:12]free content buf [08:31:12]Sock 9.Close socket [08:31:12]Sock 9.Thread stoped [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:44]accept exits with 7 [08:32:44]New connection [08:32:44]New thread 3067239780 created [08:32:44]Thread 3067383140 joined [08:32:44]Waiting for new connection... [08:32:44] Sock 7.Parse request [08:32:44]Sock 7.Check first char [08:32:44]Sock 7.First char is OK [08:32:44]request: POST /json_proto HTTP/1.0 [08:32:44]Method: POST [08:32:44]URL: /json_proto [08:32:44]Method is POST - this is cgi request [08:32:44]url: /json_proto [08:32:44]query_string will be loaded in cgi processing [08:32:44]execute_cgi json_proto POST (null) [08:32:44]execute_cgi path=json_proto method=POST [08:32:44]POST find Content-Length [08:32:44]Host: 172.17.45.7:8080 [08:32:44]Content-Length: 679 [08:32:44]Content-Type: application/json [08:32:44] [08:32:44]POST finish read [08:32:44]Found Content-Length = 679 [08:32:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 22.310, "sum" : 1700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:44]execute_script... [08:32: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)949558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 22.310, "sum" : 1700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:44]POST & json_proto [08:32:44]process_json_proto [08:32:44]json parsed OK: [08:32:44]protocol is kg_v1.0 [08:32:44]action value=close_receipt [08:32:44]process_action close_receipt [08:32:44]cmd_close_receipt [08:32:44]MH_GetDate [08:32:44]Write to MH i2c: F0 00 00 B7 37 DD [08:32:44]Write i2c OK [08:32:44]MH_I2C_Read... [08:32:44]Read from MH i2c: F0 [08:32:44]MH_I2C_Read... [08:32:44]Read from MH i2c: F0 09 00 [08:32:44]MH_I2C_Read... [08:32:44]Read from MH i2c: F0 09 00 B7 37 00 B1 53 A7 66 90 0F 3E 66 3A [08:32:44]GetLastDocTimeStamp 1722241873 [08:32:44]current date 1722241969 [08:32:44]FM_GetShiftState [08:32:44]SAM_PROTO_GetShiftState [08:32:44]wFMCommunicate request_size=4 [08:32:44]MH_SAM_APDU [08:32:44]CAPDU: 80 13 01 00 [08:32:44]Write to MH i2c: E2 08 00 B8 37 80 13 01 00 00 00 00 00 6C [08:32:44]Write i2c OK [08:32:44]MH_I2C_Read... [08:32:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:44]Read from MH i2c: E2 [08:32:44]MH_I2C_Read... [08:32:44]Read from MH i2c: E2 0E 00 [08:32:44]MH_I2C_Read... [08:32:44]Read from MH i2c: E2 0E 00 B8 37 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 9A [08:32:44]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:32:44]wFMCommunicate OK [08:32:44]SAM_PROTO_GetShiftState done [08:32:44]FM_GetShiftState done [08:32:44]opened in 1722211641 [08:32:44]opened+sec_in_day 1722298041 [08:32:44]quantity*price = 170002 [08:32:44]sum+1 = 170003 [08:32:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.04 НДС 12% : 180.53 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 51 29.07.2024 08:32 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118675 ФПД: 227458727053099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T083249&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118675&fm=227458727053099&tin=02508201610067®Number=0000000000092660&sum=170000 [08:32:45]StoreToDocumentArchive [08:32:45]shift 434 fd 118675 [08:32:45]save to /storage/0434/doc_00118675 [08:32:45]save last doc name /storage/0434/doc_00118675 to /storage/kkm_last_doc_name [08:32:45]save OK [08:32:45]Clear old archive folders... [08:32:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:32:45]tlvbuf is 01F69A60 [08:32:45]SAM_PROTO_ClearQueue [08:32:45]wFMCommunicate request_size=4 [08:32:45]MH_SAM_APDU [08:32:45]CAPDU: 80 09 00 00 [08:32:45]Write to MH i2c: E2 08 00 C5 37 80 09 00 00 00 00 00 00 6E [08:32:45]Write i2c OK [08:32:45]MH_I2C_Read... [08:32:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:45]Read from MH i2c: E2 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: E2 03 00 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: E2 03 00 C5 37 00 90 00 70 [08:32:45]RAPDU: 90 00 [08:32:45]wFMCommunicate OK [08:32:45]SAM_PROTO_ClearQueue done [08:32:45]KKMCreateOFDPacket [08:32:45]OFDProtocolAddRootSTLVToBuf [08:32:45]FM_MakeSignedData [08:32:45]FM_MakeSignedData [08:32:45]SAM_PROTO_SignData [08:32:45]wFMCommunicate request_size=4 [08:32:45]MH_SAM_APDU [08:32:45]CAPDU: 80 0D 01 02 [08:32:45]Write to MH i2c: E2 08 00 C6 37 80 0D 01 02 00 00 00 00 76 [08:32:45]Write i2c OK [08:32:45]MH_I2C_Read... [08:32:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:45]Read from MH i2c: E2 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: E2 03 00 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: E2 03 00 C6 37 00 90 00 71 [08:32:45]RAPDU: 90 00 [08:32:45]wFMCommunicate OK [08:32:45]wFMCommunicate request_size=255 [08:32:45]MH_SAM_APDU [08:32:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 B1 53 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 93 CF 01 00 35 04 06 00 CE DF 5C A0 [08:32:45]Write to MH i2c: E2 02 01 C7 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 B1 53 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 93 CF 01 00 35 04 06 00 CE DF 5C A0 00 00 EF [08:32:45]Write i2c OK [08:32:45]MH_I2C_Read... [08:32:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:46]Read from MH i2c: E2 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: E2 03 00 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: E2 03 00 C7 37 00 90 00 72 [08:32:46]RAPDU: 90 00 [08:32:46]wFMCommunicate OK [08:32:46]wFMCommunicate request_size=7 [08:32:46]MH_SAM_APDU [08:32:46]CAPDU: 80 0D 02 02 02 87 2B [08:32:46]Write to MH i2c: E2 0A 00 C8 37 80 0D 02 02 02 00 87 2B 00 00 2F [08:32:46]Write i2c OK [08:32:46]MH_I2C_Read... [08:32:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:46]Read from MH i2c: E2 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: E2 03 00 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: E2 03 00 C8 37 00 90 00 73 [08:32:46]RAPDU: 90 00 [08:32:46]wFMCommunicate OK [08:32:46]wFMCommunicate request_size=4 [08:32:46]MH_SAM_APDU [08:32:46]CAPDU: 80 0D 03 02 [08:32:46]Write to MH i2c: E2 08 00 C9 37 80 0D 03 02 00 00 00 00 7B [08:32:46]Write i2c OK [08:32:46]MH_I2C_Read... [08:32:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:46]Read from MH i2c: E2 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: E2 0B 00 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: E2 0B 00 C9 37 00 6D 67 5C 74 D7 7C D3 89 90 00 CF [08:32:46]RAPDU: 6D 67 5C 74 D7 7C D3 89 90 00 [08:32:46]wFMCommunicate OK [08:32:46]SAM_PROTO_SignData done [08:32:46]FM_MakeSignedData done [08:32:46]CreateOFDProtocolMessage [08:32:46]wFMCommunicate request_size=4 [08:32:46]MH_SAM_APDU [08:32:46]CAPDU: 80 11 00 00 [08:32:46]Write to MH i2c: E2 08 00 CA 37 80 11 00 00 00 00 00 00 7B [08:32:46]Write i2c OK [08:32:46]MH_I2C_Read... [08:32:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:46]Read from MH i2c: E2 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: E2 17 00 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: E2 17 00 CA 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D6 [08:32:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:32:46]wFMCommunicate OK [08:32:46]CreateOFDProtocolMessage done [08:32:46]OFDSenderStorePacket 118675 [08:32:46]StoreOFDPacket docnum=118675 [08:32:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 4F C6 04 01 2A A6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 B1 53 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 93 CF 01 00 35 04 06 00 CE DF 5C A0 87 2B 6D 67 5C 74 D7 7C D3 89 [08:32:46]CheckFolder [08:32:46]dirname=/storage/ofd_packets [08:32:46]CheckFolder done [08:32:46]ProducePacketName [08:32:46]name=ofd_packets/00118675 [08:32:46]NVStorageSaveData ofd_packets/00118675 [08:32:46]File name is /storage/ofd_packets/00118675 [08:32:46]Write 298 bytes [08:32:46]NVStorageSaveData done [08:32:46]OFDSenderStorePacket done [08:32:46]KKMCreateOFDPacket done [08:32:46]NVStorageSaveData kkm_last_timestamp [08:32:46]File name is /storage/kkm_last_timestamp [08:32:46]Write 4 bytes [08:32:46]NVStorageSaveData done [08:32:46]ExternCall_PrintAddStr [08:32:46]wPrintStart [08:32:46]Write to MH i2c: 01 00 00 CB 37 02 [08:32:46]Write i2c OK [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: 01 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: 01 07 00 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: 01 07 00 CB 37 00 00 00 00 00 FF 0F 17 [08:32:46]RasterBufferAndPrint [08:32:46]line Счет N : (1)949558 [08:32:46]line ИНН: 02508201610067 [08:32:46]line Контрольно-Кассовый Чек [08:32:46]line ПРОДАЖА [08:32:46]line ТРК (МРК, ГНК) : 21 [08:32:46]line Товар: 2710194800 [08:32:46]line ДТ-К-5 [08:32:46]line 22.310 * 76.20 [08:32:46]line = 1700.02 [08:32:46]line НДС 12% НСП 1% [08:32:46]line > о реализуемом товаре [08:32:46]line ОКРУГЛЕНИЕ: -0.02 [08:32:46]line ИТОГО: 1700.00 [08:32:46]line Внесено: 1700.00 [08:32:46]line СДАЧА: 0.00 [08:32:46]line НСП 1% : 15.04 [08:32:46]line НДС 12% : 180.53 [08:32:46]line Наличными: 1700.00 [08:32:46]line Безнал.: 0.00 [08:32:46]line Место: АЗС № 134 "Партнер Нефть" [08:32:46]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:32:46]line СНО: Общий режим [08:32:46]line Чек 51 29.07.2024 08:32 [08:32:46]line Смена: 434 ФФД: 1.0 [08:32:46]line ЗНМ: 0300000044 [08:32:46]line РНМ: 0000000000092660 [08:32:46]line Версия ККМ: 001 [08:32:46]line ФМ: 0000000000874939 [08:32:46]line ФД: 118675 [08:32:46]line ФПД: 227458727053099 [08:32:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T083249&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118675&fm=227458727053099&tin=02508201610067®Number=0000000000092660&sum=170000 [08:32:46]written 0, free lines is 4095 [08:32:46]OFD Sender: Processing packet 118675 [packets to send 86, broken 85] [08:32:46]ProducePacketName [08:32:46]name=ofd_packets/00118675 [08:32:46]OFD Sender: To server: pG, [08:32:46]CommunicateWithHost lk.salyk.kg:30040 [08:32:46]ConnectInit lk.salyk.kg [08:32:46]Connected sock=10 [08:32:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 4F C6 04 01 2A A6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 B1 53 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 93 CF 01 00 35 04 06 00 CE DF 5C A0 87 2B 6D 67 5C 74 D7 7C D3 89 [08:32:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 15 C9 47 00 7F 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 93 CF 01 00 F4 03 04 00 3F 01 A7 66 B6 04 01 00 00 09 72 9D 70 B8 D1 D7 8A [08:32:46]CommunicateWithHost err = 0 [08:32:46]CheckOFDResponse [08:32:46]1017 (14) - 77093643461234 [08:32:46]1041 (16) - 0000000000874939 [08:32:46]1040 (4) - 118675 [08:32:46]1012 (4) - 29.07.2024 02:41 [08:32:46]1206 (1) - 0 [08:32:46]OFD Sender: Remove packet 118675 [08:32:46]ProducePacketName [08:32:46]name=ofd_packets/00118675 [08:32:46]NVStorageDeleteData [08:32:46]Write to MH i2c: 01 00 00 F5 37 2C [08:32:46]Write i2c OK [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: 01 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: 01 07 00 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: 01 07 00 F5 37 00 00 00 00 00 D9 0C 18 [08:32:46]RasterBufferAndPrint [08:32:46]line [08:32:46]line [08:32:46]line [08:32:46]line [08:32:46]line [08:32:46]written 0, free lines is 3296 [08:32:46]MH_Cut [08:32:46]Write to MH i2c: D1 01 00 FC 37 01 05 [08:32:46]Write i2c OK [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: D1 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: D1 01 00 [08:32:46]MH_I2C_Read... [08:32:46]Read from MH i2c: D1 01 00 FC 37 00 04 [08:32:46]Write to MH i2c: 01 00 00 FD 37 34 [08:32:46]Write i2c OK [08:32:46]MH_I2C_Read... [08:32:47]OFD Sender: No OFD packet to send [08:32:47]*** Cut start [08:32:47]*** Partial cut [08:32:47]*** CUTSNS_PIN = 1 [08:32:47]*** CUTSNS_PIN = 0 [08:32:47]*** Brake cut motor [08:32:48]Read from MH i2c: 01 [08:32:48]MH_I2C_Read... [08:32:48]*** Stop cut motor [08:32:48]*** Cut end [08:32:48]Read from MH i2c: 01 07 00 [08:32:48]MH_I2C_Read... [08:32:48]Read from MH i2c: 01 07 00 FD 37 00 00 00 00 00 FF 0F 49 [08:32:48]process_action close_receipt done [08:32:48]requested_data is exist [08:32:48]produce_requested_data [08:32:48]requested_item fm.sn is exist - process it [08:32:48]wFMCommunicate request_size=4 [08:32:48]MH_SAM_APDU [08:32:48]CAPDU: 80 11 00 00 [08:32:48]Write to MH i2c: E2 08 00 FE 37 80 11 00 00 00 00 00 00 AF [08:32:48]Write i2c OK [08:32:48]MH_I2C_Read... [08:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:48]Read from MH i2c: E2 [08:32:48]MH_I2C_Read... [08:32:48]Read from MH i2c: E2 17 00 [08:32:48]MH_I2C_Read... [08:32:48]Read from MH i2c: E2 17 00 FE 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0A [08:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:32:48]wFMCommunicate OK [08:32:48]requested_item fd.num is exist - process it [08:32:48]SAM_PROTO_GetFieldsCounters [08:32:48]wFMCommunicate request_size=4 [08:32:48]MH_SAM_APDU [08:32:48]CAPDU: 80 13 00 00 [08:32:48]Write to MH i2c: E2 08 00 FF 37 80 13 00 00 00 00 00 00 B2 [08:32:48]Write i2c OK [08:32:48]MH_I2C_Read... [08:32:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:48]Read from MH i2c: E2 [08:32:48]MH_I2C_Read... [08:32:48]Read from MH i2c: E2 62 00 [08:32:48]MH_I2C_Read... [08:32:48]Read from MH i2c: E2 62 00 FF 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 93 CF 01 00 0E 04 04 00 B2 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 88 [08:32: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 93 CF 01 00 0E 04 04 00 B2 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 [08:32:48]wFMCommunicate OK [08:32:48]SAM_PROTO_GetFieldsCounters done [08:32:48]requested_item shift.num is exist - process it [08:32:48]requested_item shift.opened is exist - process it [08:32:48]req_shift_opened [08:32:48]FM_GetShiftState [08:32:48]SAM_PROTO_GetShiftState [08:32:48]wFMCommunicate request_size=4 [08:32:48]MH_SAM_APDU [08:32:48]CAPDU: 80 13 01 00 [08:32:48]Write to MH i2c: E2 08 00 00 38 80 13 01 00 00 00 00 00 B5 [08:32:48]Write i2c OK [08:32:48]MH_I2C_Read... [08:32:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:48]Read from MH i2c: E2 [08:32:48]MH_I2C_Read... [08:32:48]Read from MH i2c: E2 0E 00 [08:32:48]MH_I2C_Read... [08:32:48]Read from MH i2c: E2 0E 00 00 38 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E3 [08:32:48]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:32:48]wFMCommunicate OK [08:32:48]SAM_PROTO_GetShiftState done [08:32:48]FM_GetShiftState done [08:32:48]req_shift_opened done [08:32:48]requested_item shift.open_date is exist - process it [08:32:48]req_shift_open_date [08:32:48]req_shift_open_date done [08:32:48]produce_requested_data done [08:32:48]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118675,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:32:48]process_action_free close_receipt [08:32:48]json_value_free [08:32:48]json_value_free done [08:32:48]process_json_proto returns [08:32:48]Send response to host [08:32:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118675,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:32:48]free response buf [08:32:48]execute_script done [08:32:48]execute_script returns [08:32:48]free content buf [08:32:48]Sock 7.Close socket [08:32:48]Sock 7.Thread stoped [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:14]accept exits with 9 [08:36:14]New connection [08:36:14]New thread 3067383140 created [08:36:14]Thread 3067239780 joined [08:36:14]Waiting for new connection... [08:36:14] Sock 9.Parse request [08:36:14]Sock 9.Check first char [08:36:14]Sock 9.First char is OK [08:36:14]request: POST /json_proto HTTP/1.0 [08:36:14]Method: POST [08:36:14]URL: /json_proto [08:36:14]Method is POST - this is cgi request [08:36:14]url: /json_proto [08:36:14]query_string will be loaded in cgi processing [08:36:14]execute_cgi json_proto POST (null) [08:36:14]execute_cgi path=json_proto method=POST [08:36:14]POST find Content-Length [08:36:14]Host: 172.17.45.7:8080 [08:36:14]Content-Length: 677 [08:36:14]Content-Type: application/json [08:36:14] [08:36:14]POST finish read [08:36:14]Found Content-Length = 677 [08:36:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:14]execute_script... [08:36:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:14]POST & json_proto [08:36:14]process_json_proto [08:36:14]json parsed OK: [08:36:14]protocol is kg_v1.0 [08:36:14]action value=close_receipt [08:36:14]process_action close_receipt [08:36:14]cmd_close_receipt [08:36:14]MH_GetDate [08:36:14]Write to MH i2c: F0 00 00 01 38 28 [08:36:14]Write i2c OK [08:36:14]MH_I2C_Read... [08:36:14]Read from MH i2c: F0 [08:36:14]MH_I2C_Read... [08:36:14]Read from MH i2c: F0 09 00 [08:36:14]MH_I2C_Read... [08:36:14]Read from MH i2c: F0 09 00 01 38 00 83 54 A7 66 90 0F 3E 66 58 [08:36:14]GetLastDocTimeStamp 1722241969 [08:36:14]current date 1722242179 [08:36:14]FM_GetShiftState [08:36:14]SAM_PROTO_GetShiftState [08:36:14]wFMCommunicate request_size=4 [08:36:14]MH_SAM_APDU [08:36:14]CAPDU: 80 13 01 00 [08:36:14]Write to MH i2c: E2 08 00 02 38 80 13 01 00 00 00 00 00 B7 [08:36:14]Write i2c OK [08:36:14]MH_I2C_Read... [08:36:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:15]Read from MH i2c: E2 [08:36:15]MH_I2C_Read... [08:36:15]Read from MH i2c: E2 0E 00 [08:36:15]MH_I2C_Read... [08:36:15]Read from MH i2c: E2 0E 00 02 38 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E5 [08:36:15]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:36:15]wFMCommunicate OK [08:36:15]SAM_PROTO_GetShiftState done [08:36:15]FM_GetShiftState done [08:36:15]opened in 1722211641 [08:36:15]opened+sec_in_day 1722298041 [08:36:15]quantity*price = 50036 [08:36:15]sum+1 = 50037 [08:36:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 52 29.07.2024 08:36 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118676 ФПД: 147351783873569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T083619&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118676&fm=147351783873569&tin=02508201610067®Number=0000000000092660&sum=50000 [08:36:16]StoreToDocumentArchive [08:36:16]shift 434 fd 118676 [08:36:16]save to /storage/0434/doc_00118676 [08:36:16]save last doc name /storage/0434/doc_00118676 to /storage/kkm_last_doc_name [08:36:16]save OK [08:36:16]Clear old archive folders... [08:36:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:36:16]tlvbuf is B6E11630 [08:36:16]SAM_PROTO_ClearQueue [08:36:16]wFMCommunicate request_size=4 [08:36:16]MH_SAM_APDU [08:36:16]CAPDU: 80 09 00 00 [08:36:16]Write to MH i2c: E2 08 00 0F 38 80 09 00 00 00 00 00 00 B9 [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 0F 38 00 90 00 BB [08:36:16]RAPDU: 90 00 [08:36:16]wFMCommunicate OK [08:36:16]SAM_PROTO_ClearQueue done [08:36:16]KKMCreateOFDPacket [08:36:16]OFDProtocolAddRootSTLVToBuf [08:36:16]FM_MakeSignedData [08:36:16]FM_MakeSignedData [08:36:16]SAM_PROTO_SignData [08:36:16]wFMCommunicate request_size=4 [08:36:16]MH_SAM_APDU [08:36:16]CAPDU: 80 0D 01 02 [08:36:16]Write to MH i2c: E2 08 00 10 38 80 0D 01 02 00 00 00 00 C1 [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 10 38 00 90 00 BC [08:36:16]RAPDU: 90 00 [08:36:16]wFMCommunicate OK [08:36:16]wFMCommunicate request_size=255 [08:36:16]MH_SAM_APDU [08:36:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 83 54 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 94 CF 01 00 35 04 06 00 86 [08:36:16]Write to MH i2c: E2 02 01 11 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 83 54 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 94 CF 01 00 35 04 06 00 86 00 00 FA [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 11 38 00 90 00 BD [08:36:16]RAPDU: 90 00 [08:36:16]wFMCommunicate OK [08:36:16]wFMCommunicate request_size=10 [08:36:16]MH_SAM_APDU [08:36:16]CAPDU: 80 0D 02 02 05 04 02 BC 1C 21 [08:36:16]Write to MH i2c: E2 0D 00 12 38 80 0D 02 02 05 00 04 02 BC 1C 21 00 00 CD [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 12 38 00 90 00 BE [08:36:16]RAPDU: 90 00 [08:36:16]wFMCommunicate OK [08:36:16]wFMCommunicate request_size=4 [08:36:16]MH_SAM_APDU [08:36:16]CAPDU: 80 0D 03 02 [08:36:16]Write to MH i2c: E2 08 00 13 38 80 0D 03 02 00 00 00 00 C6 [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 0B 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 0B 00 13 38 00 C4 98 27 4A 51 3D 21 6C 90 00 AF [08:36:16]RAPDU: C4 98 27 4A 51 3D 21 6C 90 00 [08:36:16]wFMCommunicate OK [08:36:16]SAM_PROTO_SignData done [08:36:16]FM_MakeSignedData done [08:36:16]CreateOFDProtocolMessage [08:36:16]wFMCommunicate request_size=4 [08:36:16]MH_SAM_APDU [08:36:16]CAPDU: 80 11 00 00 [08:36:16]Write to MH i2c: E2 08 00 14 38 80 11 00 00 00 00 00 00 C6 [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 17 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 17 00 14 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 21 [08:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:36:16]wFMCommunicate OK [08:36:16]CreateOFDProtocolMessage done [08:36:16]OFDSenderStorePacket 118676 [08:36:16]StoreOFDPacket docnum=118676 [08:36:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AA 5D 07 01 20 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 83 54 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 94 CF 01 00 35 04 06 00 86 04 02 BC 1C 21 C4 98 27 4A 51 3D 21 6C [08:36:16]CheckFolder [08:36:16]dirname=/storage/ofd_packets [08:36:16]CheckFolder done [08:36:16]ProducePacketName [08:36:16]name=ofd_packets/00118676 [08:36:16]NVStorageSaveData ofd_packets/00118676 [08:36:16]File name is /storage/ofd_packets/00118676 [08:36:16]Write 301 bytes [08:36:16]NVStorageSaveData done [08:36:16]OFDSenderStorePacket done [08:36:16]KKMCreateOFDPacket done [08:36:16]NVStorageSaveData kkm_last_timestamp [08:36:16]File name is /storage/kkm_last_timestamp [08:36:16]Write 4 bytes [08:36:16]NVStorageSaveData done [08:36:16]ExternCall_PrintAddStr [08:36:16]wPrintStart [08:36:16]Write to MH i2c: 01 00 00 15 38 4D [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: 01 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: 01 07 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: 01 07 00 15 38 00 00 00 00 00 FF 0F 62 [08:36:16]RasterBufferAndPrint [08:36:16]line Счет N : (1)949559 [08:36:16]line ИНН: 02508201610067 [08:36:16]line Контрольно-Кассовый Чек [08:36:16]line ПРОДАЖА [08:36:16]line ТРК (МРК, ГНК) : 31 [08:36:16]line Товар: 2710124130 [08:36:16]line Аи-92-К-4 [08:36:16]line 7.380 * 67.80 [08:36:16]line = 500.36 [08:36:16]line НДС 12% НСП 1% [08:36:16]line > о реализуемом товаре [08:36:16]line ОКРУГЛЕНИЕ: -0.36 [08:36:16]line ИТОГО: 500.00 [08:36:16]line Внесено: 500.00 [08:36:16]line СДАЧА: 0.00 [08:36:16]line НСП 1% : 4.43 [08:36:16]line НДС 12% : 53.14 [08:36:16]line Наличными: 500.00 [08:36:16]line Безнал.: 0.00 [08:36:16]line Место: АЗС № 134 "Партнер Нефть" [08:36:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:36:16]line СНО: Общий режим [08:36:16]line Чек 52 29.07.2024 08:36 [08:36:16]line Смена: 434 ФФД: 1.0 [08:36:16]line ЗНМ: 0300000044 [08:36:16]line РНМ: 0000000000092660 [08:36:16]line Версия ККМ: 001 [08:36:16]line ФМ: 0000000000874939 [08:36:16]line ФД: 118676 [08:36:16]line ФПД: 147351783873569 [08:36:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T083619&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118676&fm=147351783873569&tin=02508201610067®Number=0000000000092660&sum=50000 [08:36:16]written 0, free lines is 4095 [08:36:16]OFD Sender: Processing packet 118676 [packets to send 86, broken 85] [08:36:16]ProducePacketName [08:36:16]name=ofd_packets/00118676 [08:36:17]OFD Sender: To server: pG, [08:36:17]CommunicateWithHost lk.salyk.kg:30040 [08:36:17]ConnectInit lk.salyk.kg [08:36:17]Connected sock=10 [08:36:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AA 5D 07 01 20 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 83 54 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 94 CF 01 00 35 04 06 00 86 04 02 BC 1C 21 C4 98 27 4A 51 3D 21 6C [08:36:17]Write to MH i2c: 01 00 00 3F 38 77 [08:36:17]Write i2c OK [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: 01 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: 01 07 00 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: 01 07 00 3F 38 00 00 00 00 00 DD 0C 67 [08:36:17]RasterBufferAndPrint [08:36:17]line [08:36:17]line [08:36:17]line [08:36:17]line [08:36:17]line [08:36:17]written 0, free lines is 3299 [08:36:17]MH_Cut [08:36:17]Write to MH i2c: D1 01 00 46 38 01 50 [08:36:17]Write i2c OK [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: D1 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: D1 01 00 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: D1 01 00 46 38 00 4F [08:36:17]Write to MH i2c: 01 00 00 47 38 7F [08:36:17]Write i2c OK [08:36:17]MH_I2C_Read... [08:36:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 97 A5 47 00 14 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 34 39 33 39 10 04 04 00 94 CF 01 00 F4 03 04 00 12 02 A7 66 B6 04 01 00 00 D9 35 29 EA 9E 84 16 7E [08:36:17]CommunicateWithHost err = 0 [08:36:17]CheckOFDResponse [08:36:17]1017 (14) - 77093643461234 [08:36:17]1041 (16) - 0000000000874939 [08:36:17]1040 (4) - 118676 [08:36:17]1012 (4) - 29.07.2024 02:44 [08:36:17]1206 (1) - 0 [08:36:17]OFD Sender: Remove packet 118676 [08:36:17]ProducePacketName [08:36:17]name=ofd_packets/00118676 [08:36:17]NVStorageDeleteData [08:36:17]OFD Sender: No OFD packet to send [08:36:17]*** Cut start [08:36:17]*** Partial cut [08:36:17]*** CUTSNS_PIN = 1 [08:36:17]*** CUTSNS_PIN = 0 [08:36:18]*** Brake cut motor [08:36:18]Read from MH i2c: 01 [08:36:18]MH_I2C_Read... [08:36:18]*** Stop cut motor [08:36:18]*** Cut end [08:36:18]Read from MH i2c: 01 07 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: 01 07 00 47 38 00 00 00 00 00 FF 0F 94 [08:36:18]process_action close_receipt done [08:36:18]requested_data is exist [08:36:18]produce_requested_data [08:36:18]requested_item fm.sn is exist - process it [08:36:18]wFMCommunicate request_size=4 [08:36:18]MH_SAM_APDU [08:36:18]CAPDU: 80 11 00 00 [08:36:18]Write to MH i2c: E2 08 00 48 38 80 11 00 00 00 00 00 00 FA [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:18]Read from MH i2c: E2 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 17 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 17 00 48 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 55 [08:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:36:18]wFMCommunicate OK [08:36:18]requested_item fd.num is exist - process it [08:36:18]SAM_PROTO_GetFieldsCounters [08:36:18]wFMCommunicate request_size=4 [08:36:18]MH_SAM_APDU [08:36:18]CAPDU: 80 13 00 00 [08:36:18]Write to MH i2c: E2 08 00 49 38 80 13 00 00 00 00 00 00 FD [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:18]Read from MH i2c: E2 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 62 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 62 00 49 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 94 CF 01 00 0E 04 04 00 B2 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 D7 [08:36: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 94 CF 01 00 0E 04 04 00 B2 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 [08:36:18]wFMCommunicate OK [08:36:18]SAM_PROTO_GetFieldsCounters done [08:36:18]requested_item shift.num is exist - process it [08:36:18]requested_item shift.opened is exist - process it [08:36:18]req_shift_opened [08:36:18]FM_GetShiftState [08:36:18]SAM_PROTO_GetShiftState [08:36:18]wFMCommunicate request_size=4 [08:36:18]MH_SAM_APDU [08:36:18]CAPDU: 80 13 01 00 [08:36:18]Write to MH i2c: E2 08 00 4A 38 80 13 01 00 00 00 00 00 FF [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:18]Read from MH i2c: E2 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 0E 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 0E 00 4A 38 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 2D [08:36:18]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:36:18]wFMCommunicate OK [08:36:18]SAM_PROTO_GetShiftState done [08:36:18]FM_GetShiftState done [08:36:18]req_shift_opened done [08:36:18]requested_item shift.open_date is exist - process it [08:36:18]req_shift_open_date [08:36:18]req_shift_open_date done [08:36:18]produce_requested_data done [08:36:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118676,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:36:18]process_action_free close_receipt [08:36:18]json_value_free [08:36:18]json_value_free done [08:36:18]process_json_proto returns [08:36:18]Send response to host [08:36:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118676,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:36:18]free response buf [08:36:18]execute_script done [08:36:18]execute_script returns [08:36:18]free content buf [08:36:18]Sock 9.Close socket [08:36:18]Sock 9.Thread stoped [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:36]accept exits with 7 [08:37:36]New connection [08:37:36]New thread 3067239780 created [08:37:36]Thread 3067383140 joined [08:37:36]Waiting for new connection... [08:37:36] Sock 7.Parse request [08:37:36]Sock 7.Check first char [08:37:36]Sock 7.First char is OK [08:37:36]request: POST /json_proto HTTP/1.0 [08:37:36]Method: POST [08:37:36]URL: /json_proto [08:37:36]Method is POST - this is cgi request [08:37:36]url: /json_proto [08:37:36]query_string will be loaded in cgi processing [08:37:36]execute_cgi json_proto POST (null) [08:37:36]execute_cgi path=json_proto method=POST [08:37:36]POST find Content-Length [08:37:36]Host: 172.17.45.7:8080 [08:37:36]Content-Length: 677 [08:37:36]Content-Type: application/json [08:37:36] [08:37:36]POST finish read [08:37:36]Found Content-Length = 677 [08:37:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:36]execute_script... [08:37: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)949560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:36]POST & json_proto [08:37:36]process_json_proto [08:37:36]json parsed OK: [08:37:36]protocol is kg_v1.0 [08:37:36]action value=close_receipt [08:37:36]process_action close_receipt [08:37:36]cmd_close_receipt [08:37:36]MH_GetDate [08:37:36]Write to MH i2c: F0 00 00 4B 38 72 [08:37:36]Write i2c OK [08:37:36]MH_I2C_Read... [08:37:36]Read from MH i2c: F0 [08:37:36]MH_I2C_Read... [08:37:36]Read from MH i2c: F0 09 00 [08:37:36]MH_I2C_Read... [08:37:36]Read from MH i2c: F0 09 00 4B 38 00 D5 54 A7 66 90 0F 3E 66 F4 [08:37:36]GetLastDocTimeStamp 1722242179 [08:37:36]current date 1722242261 [08:37:36]FM_GetShiftState [08:37:36]SAM_PROTO_GetShiftState [08:37:36]wFMCommunicate request_size=4 [08:37:36]MH_SAM_APDU [08:37:36]CAPDU: 80 13 01 00 [08:37:36]Write to MH i2c: E2 08 00 4C 38 80 13 01 00 00 00 00 00 01 [08:37:36]Write i2c OK [08:37:36]MH_I2C_Read... [08:37:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:36]Read from MH i2c: E2 [08:37:36]MH_I2C_Read... [08:37:36]Read from MH i2c: E2 0E 00 [08:37:36]MH_I2C_Read... [08:37:36]Read from MH i2c: E2 0E 00 4C 38 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 2F [08:37:36]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:37:36]wFMCommunicate OK [08:37:36]SAM_PROTO_GetShiftState done [08:37:36]FM_GetShiftState done [08:37:36]opened in 1722211641 [08:37:36]opened+sec_in_day 1722298041 [08:37:36]quantity*price = 40002 [08:37:36]sum+1 = 40003 [08:37:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 53 29.07.2024 08:37 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118677 ФПД: 180949245530625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T083741&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118677&fm=180949245530625&tin=02508201610067®Number=0000000000092660&sum=40000 [08:37:37]StoreToDocumentArchive [08:37:37]shift 434 fd 118677 [08:37:37]save to /storage/0434/doc_00118677 [08:37:37]save last doc name /storage/0434/doc_00118677 to /storage/kkm_last_doc_name [08:37:37]save OK [08:37:37]Clear old archive folders... [08:37:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:37:37]tlvbuf is 01EC0470 [08:37:37]SAM_PROTO_ClearQueue [08:37:37]wFMCommunicate request_size=4 [08:37:37]MH_SAM_APDU [08:37:37]CAPDU: 80 09 00 00 [08:37:37]Write to MH i2c: E2 08 00 59 38 80 09 00 00 00 00 00 00 03 [08:37:37]Write i2c OK [08:37:37]MH_I2C_Read... [08:37:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:37]Read from MH i2c: E2 [08:37:37]MH_I2C_Read... [08:37:37]Read from MH i2c: E2 03 00 [08:37:37]MH_I2C_Read... [08:37:37]Read from MH i2c: E2 03 00 59 38 00 90 00 05 [08:37:37]RAPDU: 90 00 [08:37:37]wFMCommunicate OK [08:37:37]SAM_PROTO_ClearQueue done [08:37:37]KKMCreateOFDPacket [08:37:37]OFDProtocolAddRootSTLVToBuf [08:37:37]FM_MakeSignedData [08:37:37]FM_MakeSignedData [08:37:37]SAM_PROTO_SignData [08:37:37]wFMCommunicate request_size=4 [08:37:37]MH_SAM_APDU [08:37:37]CAPDU: 80 0D 01 02 [08:37:37]Write to MH i2c: E2 08 00 5A 38 80 0D 01 02 00 00 00 00 0B [08:37:37]Write i2c OK [08:37:37]MH_I2C_Read... [08:37:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:37]Read from MH i2c: E2 [08:37:37]MH_I2C_Read... [08:37:37]Read from MH i2c: E2 03 00 [08:37:37]MH_I2C_Read... [08:37:37]Read from MH i2c: E2 03 00 5A 38 00 90 00 06 [08:37:37]RAPDU: 90 00 [08:37:37]wFMCommunicate OK [08:37:37]wFMCommunicate request_size=255 [08:37:37]MH_SAM_APDU [08:37:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 D5 54 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 95 CF 01 00 35 04 06 00 A4 [08:37:37]Write to MH i2c: E2 02 01 5B 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 D5 54 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 95 CF 01 00 35 04 06 00 A4 00 00 9B [08:37:37]Write i2c OK [08:37:37]MH_I2C_Read... [08:37:38]OFD Sender: No OFD packet to send [08:37:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:38]Read from MH i2c: E2 [08:37:38]MH_I2C_Read... [08:37:38]Read from MH i2c: E2 03 00 [08:37:38]MH_I2C_Read... [08:37:38]Read from MH i2c: E2 03 00 5B 38 00 90 00 07 [08:37:38]RAPDU: 90 00 [08:37:38]wFMCommunicate OK [08:37:38]wFMCommunicate request_size=10 [08:37:38]MH_SAM_APDU [08:37:38]CAPDU: 80 0D 02 02 05 92 87 80 92 01 [08:37:38]Write to MH i2c: E2 0D 00 5C 38 80 0D 02 02 05 00 92 87 80 92 01 00 00 44 [08:37:38]Write i2c OK [08:37:38]MH_I2C_Read... [08:37:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:38]Read from MH i2c: E2 [08:37:38]MH_I2C_Read... [08:37:38]Read from MH i2c: E2 03 00 [08:37:38]MH_I2C_Read... [08:37:38]Read from MH i2c: E2 03 00 5C 38 00 90 00 08 [08:37:38]RAPDU: 90 00 [08:37:38]wFMCommunicate OK [08:37:38]wFMCommunicate request_size=4 [08:37:38]MH_SAM_APDU [08:37:38]CAPDU: 80 0D 03 02 [08:37:38]Write to MH i2c: E2 08 00 5D 38 80 0D 03 02 00 00 00 00 10 [08:37:38]Write i2c OK [08:37:38]MH_I2C_Read... [08:37:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:38]Read from MH i2c: E2 [08:37:38]MH_I2C_Read... [08:37:38]Read from MH i2c: E2 0B 00 [08:37:38]MH_I2C_Read... [08:37:38]Read from MH i2c: E2 0B 00 5D 38 00 FE FD 64 E9 EC 60 F1 EB 90 00 81 [08:37:38]RAPDU: FE FD 64 E9 EC 60 F1 EB 90 00 [08:37:38]wFMCommunicate OK [08:37:38]SAM_PROTO_SignData done [08:37:38]FM_MakeSignedData done [08:37:38]CreateOFDProtocolMessage [08:37:38]wFMCommunicate request_size=4 [08:37:38]MH_SAM_APDU [08:37:38]CAPDU: 80 11 00 00 [08:37:38]Write to MH i2c: E2 08 00 5E 38 80 11 00 00 00 00 00 00 10 [08:37:38]Write i2c OK [08:37:38]MH_I2C_Read... [08:37:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:38]Read from MH i2c: E2 [08:37:38]MH_I2C_Read... [08:37:38]Read from MH i2c: E2 17 00 [08:37:38]MH_I2C_Read... [08:37:38]Read from MH i2c: E2 17 00 5E 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6B [08:37:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:37:38]wFMCommunicate OK [08:37:38]CreateOFDProtocolMessage done [08:37:38]OFDSenderStorePacket 118677 [08:37:38]StoreOFDPacket docnum=118677 [08:37:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 19 3A 07 01 E6 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 D5 54 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 95 CF 01 00 35 04 06 00 A4 92 87 80 92 01 FE FD 64 E9 EC 60 F1 EB [08:37:38]CheckFolder [08:37:38]dirname=/storage/ofd_packets [08:37:38]CheckFolder done [08:37:38]ProducePacketName [08:37:38]name=ofd_packets/00118677 [08:37:38]NVStorageSaveData ofd_packets/00118677 [08:37:38]File name is /storage/ofd_packets/00118677 [08:37:38]Write 301 bytes [08:37:38]NVStorageSaveData done [08:37:38]OFDSenderStorePacket done [08:37:38]KKMCreateOFDPacket done [08:37:38]NVStorageSaveData kkm_last_timestamp [08:37:38]File name is /storage/kkm_last_timestamp [08:37:38]Write 4 bytes [08:37:38]NVStorageSaveData done [08:37:38]ExternCall_PrintAddStr [08:37:38]wPrintStart [08:37:38]Write to MH i2c: 01 00 00 5F 38 97 [08:37:38]Write i2c OK [08:37:38]MH_I2C_Read... [08:37:38]Read from MH i2c: 01 [08:37:38]MH_I2C_Read... [08:37:38]Read from MH i2c: 01 07 00 [08:37:38]MH_I2C_Read... [08:37:38]Read from MH i2c: 01 07 00 5F 38 00 00 00 00 00 FF 0F AC [08:37:38]RasterBufferAndPrint [08:37:38]line Счет N : (1)949560 [08:37:38]line ИНН: 02508201610067 [08:37:38]line Контрольно-Кассовый Чек [08:37:38]line ПРОДАЖА [08:37:38]line ТРК (МРК, ГНК) : 41 [08:37:38]line Товар: 2710124130 [08:37:38]line Аи-92-К-4 [08:37:38]line 5.900 * 67.80 [08:37:38]line = 400.02 [08:37:38]line НДС 12% НСП 1% [08:37:38]line > о реализуемом товаре [08:37:38]line ОКРУГЛЕНИЕ: -0.02 [08:37:38]line ИТОГО: 400.00 [08:37:38]line Внесено: 400.00 [08:37:38]line СДАЧА: 0.00 [08:37:38]line НСП 1% : 3.54 [08:37:38]line НДС 12% : 42.48 [08:37:38]line Наличными: 400.00 [08:37:38]line Безнал.: 0.00 [08:37:38]line Место: АЗС № 134 "Партнер Нефть" [08:37:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:37:38]line СНО: Общий режим [08:37:38]line Чек 53 29.07.2024 08:37 [08:37:38]line Смена: 434 ФФД: 1.0 [08:37:38]line ЗНМ: 0300000044 [08:37:38]line РНМ: 0000000000092660 [08:37:38]line Версия ККМ: 001 [08:37:38]line ФМ: 0000000000874939 [08:37:38]line ФД: 118677 [08:37:38]line ФПД: 180949245530625 [08:37:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T083741&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118677&fm=180949245530625&tin=02508201610067®Number=0000000000092660&sum=40000 [08:37:38]OFD Sender: Processing packet 118677 [packets to send 86, broken 85] [08:37:38]ProducePacketName [08:37:38]name=ofd_packets/00118677 [08:37:38]OFD Sender: To server: pG, [08:37:38]CommunicateWithHost lk.salyk.kg:30040 [08:37:38]ConnectInit lk.salyk.kg [08:37:38]written 0, free lines is 4095 [08:37:38]Connected sock=10 [08:37:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 19 3A 07 01 E6 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 D5 54 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 95 CF 01 00 35 04 06 00 A4 92 87 80 92 01 FE FD 64 E9 EC 60 F1 EB [08:37:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 47 29 47 00 C6 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 95 CF 01 00 F4 03 04 00 63 02 A7 66 B6 04 01 00 00 ED 70 75 63 2B 6F B9 0F [08:37:38]CommunicateWithHost err = 0 [08:37:38]CheckOFDResponse [08:37:38]1017 (14) - 77093643461234 [08:37:38]1041 (16) - 0000000000874939 [08:37:38]1040 (4) - 118677 [08:37:38]1012 (4) - 29.07.2024 02:45 [08:37:38]1206 (1) - 0 [08:37:38]OFD Sender: Remove packet 118677 [08:37:38]ProducePacketName [08:37:38]name=ofd_packets/00118677 [08:37:38]NVStorageDeleteData [08:37:38]Write to MH i2c: 01 00 00 89 38 C1 [08:37:38]Write i2c OK [08:37:38]MH_I2C_Read... [08:37:38]Read from MH i2c: 01 [08:37:38]MH_I2C_Read... [08:37:38]Read from MH i2c: 01 07 00 [08:37:38]MH_I2C_Read... [08:37:38]Read from MH i2c: 01 07 00 89 38 00 00 00 00 00 E6 0C BA [08:37:38]RasterBufferAndPrint [08:37:38]line [08:37:38]line [08:37:38]line [08:37:38]line [08:37:38]line [08:37:38]written 0, free lines is 3308 [08:37:39]MH_Cut [08:37:39]Write to MH i2c: D1 01 00 90 38 01 9A [08:37:39]Write i2c OK [08:37:39]MH_I2C_Read... [08:37:39]Read from MH i2c: D1 [08:37:39]MH_I2C_Read... [08:37:39]Read from MH i2c: D1 01 00 [08:37:39]MH_I2C_Read... [08:37:39]Read from MH i2c: D1 01 00 90 38 00 99 [08:37:39]Write to MH i2c: 01 00 00 91 38 C9 [08:37:39]Write i2c OK [08:37:39]MH_I2C_Read... [08:37:39]OFD Sender: No OFD packet to send [08:37:39]*** Cut start [08:37:39]*** Partial cut [08:37:39]*** CUTSNS_PIN = 1 [08:37:39]*** CUTSNS_PIN = 0 [08:37:39]*** Brake cut motor [08:37:40]Read from MH i2c: 01 [08:37:40]MH_I2C_Read... [08:37:40]*** Stop cut motor [08:37:40]*** Cut end [08:37:40]Read from MH i2c: 01 07 00 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: 01 07 00 91 38 00 00 00 00 00 FF 0F DE [08:37:40]process_action close_receipt done [08:37:40]requested_data is exist [08:37:40]produce_requested_data [08:37:40]requested_item fm.sn is exist - process it [08:37:40]wFMCommunicate request_size=4 [08:37:40]MH_SAM_APDU [08:37:40]CAPDU: 80 11 00 00 [08:37:40]Write to MH i2c: E2 08 00 92 38 80 11 00 00 00 00 00 00 44 [08:37:40]Write i2c OK [08:37:40]MH_I2C_Read... [08:37:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:40]Read from MH i2c: E2 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 17 00 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 17 00 92 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9F [08:37:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:37:40]wFMCommunicate OK [08:37:40]requested_item fd.num is exist - process it [08:37:40]SAM_PROTO_GetFieldsCounters [08:37:40]wFMCommunicate request_size=4 [08:37:40]MH_SAM_APDU [08:37:40]CAPDU: 80 13 00 00 [08:37:40]Write to MH i2c: E2 08 00 93 38 80 13 00 00 00 00 00 00 47 [08:37:40]Write i2c OK [08:37:40]MH_I2C_Read... [08:37:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:40]Read from MH i2c: E2 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 62 00 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 62 00 93 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 95 CF 01 00 0E 04 04 00 B2 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 25 [08:37: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 95 CF 01 00 0E 04 04 00 B2 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 [08:37:40]wFMCommunicate OK [08:37:40]SAM_PROTO_GetFieldsCounters done [08:37:40]requested_item shift.num is exist - process it [08:37:40]requested_item shift.opened is exist - process it [08:37:40]req_shift_opened [08:37:40]FM_GetShiftState [08:37:40]SAM_PROTO_GetShiftState [08:37:40]wFMCommunicate request_size=4 [08:37:40]MH_SAM_APDU [08:37:40]CAPDU: 80 13 01 00 [08:37:40]Write to MH i2c: E2 08 00 94 38 80 13 01 00 00 00 00 00 49 [08:37:40]Write i2c OK [08:37:40]MH_I2C_Read... [08:37:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:40]Read from MH i2c: E2 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 0E 00 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 0E 00 94 38 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 77 [08:37:40]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:37:40]wFMCommunicate OK [08:37:40]SAM_PROTO_GetShiftState done [08:37:40]FM_GetShiftState done [08:37:40]req_shift_opened done [08:37:40]requested_item shift.open_date is exist - process it [08:37:40]req_shift_open_date [08:37:40]req_shift_open_date done [08:37:40]produce_requested_data done [08:37:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118677,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:37:40]process_action_free close_receipt [08:37:40]json_value_free [08:37:40]json_value_free done [08:37:40]process_json_proto returns [08:37:40]Send response to host [08:37:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118677,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:37:40]free response buf [08:37:40]execute_script done [08:37:40]execute_script returns [08:37:40]free content buf [08:37:40]Sock 7.Close socket [08:37:40]Sock 7.Thread stoped [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]accept exits with 9 [08:40:19]New connection [08:40:19]New thread 3067383140 created [08:40:19]Thread 3067239780 joined [08:40:19]Waiting for new connection... [08:40:19] Sock 9.Parse request [08:40:19]Sock 9.Check first char [08:40:19]Sock 9.First char is OK [08:40:19]request: POST /json_proto HTTP/1.0 [08:40:19]Method: POST [08:40:19]URL: /json_proto [08:40:19]Method is POST - this is cgi request [08:40:19]url: /json_proto [08:40:19]query_string will be loaded in cgi processing [08:40:19]execute_cgi json_proto POST (null) [08:40:19]execute_cgi path=json_proto method=POST [08:40:19]POST find Content-Length [08:40:19]Host: 172.17.45.7:8080 [08:40:19]Content-Length: 822 [08:40:19]Content-Type: application/json [08:40:19] [08:40:19]POST finish read [08:40:19]Found Content-Length = 822 [08:40:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:19]execute_script... [08:40:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:19]POST & json_proto [08:40:19]process_json_proto [08:40:19]json parsed OK: [08:40:19]protocol is kg_v1.0 [08:40:19]action value=close_receipt [08:40:19]process_action close_receipt [08:40:19]cmd_close_receipt [08:40:19]MH_GetDate [08:40:19]Write to MH i2c: F0 00 00 95 38 BC [08:40:19]Write i2c OK [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: F0 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: F0 09 00 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: F0 09 00 95 38 00 77 55 A7 66 90 0F 3E 66 E1 [08:40:19]GetLastDocTimeStamp 1722242261 [08:40:19]current date 1722242423 [08:40:19]FM_GetShiftState [08:40:19]SAM_PROTO_GetShiftState [08:40:19]wFMCommunicate request_size=4 [08:40:19]MH_SAM_APDU [08:40:19]CAPDU: 80 13 01 00 [08:40:19]Write to MH i2c: E2 08 00 96 38 80 13 01 00 00 00 00 00 4B [08:40:19]Write i2c OK [08:40:19]MH_I2C_Read... [08:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:19]Read from MH i2c: E2 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: E2 0E 00 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: E2 0E 00 96 38 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 79 [08:40:19]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:40:19]wFMCommunicate OK [08:40:19]SAM_PROTO_GetShiftState done [08:40:19]FM_GetShiftState done [08:40:19]opened in 1722211641 [08:40:19]opened+sec_in_day 1722298041 [08:40:19]quantity*price = 100005 [08:40:19]sum+1 = 100006 [08:40:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 54 29.07.2024 08:40 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118678 ФПД: 205689296021232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T084024&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118678&fm=205689296021232&tin=02508201610067®Number=0000000000092660&sum=100000 [08:40:20]StoreToDocumentArchive [08:40:20]shift 434 fd 118678 [08:40:20]save to /storage/0434/doc_00118678 [08:40:20]save last doc name /storage/0434/doc_00118678 to /storage/kkm_last_doc_name [08:40:20]save OK [08:40:20]Clear old archive folders... [08:40:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:40:20]tlvbuf is 01E564A0 [08:40:20]SAM_PROTO_ClearQueue [08:40:20]wFMCommunicate request_size=4 [08:40:20]MH_SAM_APDU [08:40:20]CAPDU: 80 09 00 00 [08:40:20]Write to MH i2c: E2 08 00 A3 38 80 09 00 00 00 00 00 00 4D [08:40:20]Write i2c OK [08:40:20]MH_I2C_Read... [08:40:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:20]Read from MH i2c: E2 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 03 00 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 03 00 A3 38 00 90 00 4F [08:40:20]RAPDU: 90 00 [08:40:20]wFMCommunicate OK [08:40:20]SAM_PROTO_ClearQueue done [08:40:20]KKMCreateOFDPacket [08:40:20]OFDProtocolAddRootSTLVToBuf [08:40:20]FM_MakeSignedData [08:40:20]FM_MakeSignedData [08:40:20]SAM_PROTO_SignData [08:40:20]wFMCommunicate request_size=4 [08:40:20]MH_SAM_APDU [08:40:20]CAPDU: 80 0D 01 02 [08:40:20]Write to MH i2c: E2 08 00 A4 38 80 0D 01 02 00 00 00 00 55 [08:40:20]Write i2c OK [08:40:20]MH_I2C_Read... [08:40:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:20]Read from MH i2c: E2 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 03 00 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 03 00 A4 38 00 90 00 50 [08:40:20]RAPDU: 90 00 [08:40:20]wFMCommunicate OK [08:40:20]wFMCommunicate request_size=255 [08:40:20]MH_SAM_APDU [08:40:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 78 55 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 96 CF 01 00 35 04 06 00 BB [08:40:20]Write to MH i2c: E2 02 01 A5 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 78 55 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 96 CF 01 00 35 04 06 00 BB 00 00 4C [08:40:20]Write i2c OK [08:40:20]MH_I2C_Read... [08:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:20]Read from MH i2c: E2 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 03 00 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 03 00 A5 38 00 90 00 51 [08:40:20]RAPDU: 90 00 [08:40:20]wFMCommunicate OK [08:40:20]wFMCommunicate request_size=10 [08:40:20]MH_SAM_APDU [08:40:20]CAPDU: 80 0D 02 02 05 12 C5 6C 66 F0 [08:40:20]Write to MH i2c: E2 0D 00 A6 38 80 0D 02 02 05 00 12 C5 6C 66 F0 00 00 FB [08:40:20]Write i2c OK [08:40:20]MH_I2C_Read... [08:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:20]Read from MH i2c: E2 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 03 00 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 03 00 A6 38 00 90 00 52 [08:40:20]RAPDU: 90 00 [08:40:20]wFMCommunicate OK [08:40:20]wFMCommunicate request_size=4 [08:40:20]MH_SAM_APDU [08:40:20]CAPDU: 80 0D 03 02 [08:40:20]Write to MH i2c: E2 08 00 A7 38 80 0D 03 02 00 00 00 00 5A [08:40:20]Write i2c OK [08:40:20]MH_I2C_Read... [08:40:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:20]Read from MH i2c: E2 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 0B 00 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 0B 00 A7 38 00 DB 30 5C 90 93 4E 6B 04 90 00 A2 [08:40:20]RAPDU: DB 30 5C 90 93 4E 6B 04 90 00 [08:40:20]wFMCommunicate OK [08:40:20]SAM_PROTO_SignData done [08:40:20]FM_MakeSignedData done [08:40:20]CreateOFDProtocolMessage [08:40:20]wFMCommunicate request_size=4 [08:40:20]MH_SAM_APDU [08:40:20]CAPDU: 80 11 00 00 [08:40:20]Write to MH i2c: E2 08 00 A8 38 80 11 00 00 00 00 00 00 5A [08:40:20]Write i2c OK [08:40:20]MH_I2C_Read... [08:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:20]Read from MH i2c: E2 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 17 00 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 17 00 A8 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B5 [08:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:40:20]wFMCommunicate OK [08:40:20]CreateOFDProtocolMessage done [08:40:20]OFDSenderStorePacket 118678 [08:40:20]StoreOFDPacket docnum=118678 [08:40:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A2 BE 07 01 E7 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 78 55 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 96 CF 01 00 35 04 06 00 BB 12 C5 6C 66 F0 DB 30 5C 90 93 4E 6B 04 [08:40:20]CheckFolder [08:40:20]dirname=/storage/ofd_packets [08:40:20]CheckFolder done [08:40:20]ProducePacketName [08:40:20]name=ofd_packets/00118678 [08:40:20]NVStorageSaveData ofd_packets/00118678 [08:40:20]File name is /storage/ofd_packets/00118678 [08:40:20]Write 301 bytes [08:40:20]NVStorageSaveData done [08:40:20]OFDSenderStorePacket done [08:40:20]KKMCreateOFDPacket done [08:40:20]NVStorageSaveData kkm_last_timestamp [08:40:20]File name is /storage/kkm_last_timestamp [08:40:20]Write 4 bytes [08:40:20]NVStorageSaveData done [08:40:20]ExternCall_PrintAddStr [08:40:20]wPrintStart [08:40:20]Write to MH i2c: 01 00 00 A9 38 E1 [08:40:20]Write i2c OK [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: 01 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: 01 07 00 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: 01 07 00 A9 38 00 00 00 00 00 FF 0F F6 [08:40:20]RasterBufferAndPrint [08:40:20]line Счет N : (1)949561 [08:40:20]line ИНН: 02508201610067 [08:40:20]line Контрольно-Кассовый Чек [08:40:20]line ПРОДАЖА [08:40:20]line ТРК (МРК, ГНК) : 41 [08:40:20]line Товар: 2710124130 [08:40:20]line Аи-92-К-4 [08:40:20]line 14.750 * 67.80 [08:40:20]line = 1000.05 [08:40:20]line НДС 12% НСП 1% [08:40:20]line > о реализуемом товаре [08:40:20]line ОКРУГЛЕНИЕ: -0.05 [08:40:20]line ИТОГО: 1000.00 [08:40:20]line НСП 1% : 8.85 [08:40:20]line НДС 12% : 106.20 [08:40:20]line Наличными: 0.00 [08:40:20]line Безнал.: 1000.00 [08:40:20]line Место: АЗС № 134 "Партнер Нефть" [08:40:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:40:20]line СНО: Общий режим [08:40:20]line Чек 54 29.07.2024 08:40 [08:40:20]line Смена: 434 ФФД: 1.0 [08:40:20]line ЗНМ: 0300000044 [08:40:20]line РНМ: 0000000000092660 [08:40:20]line Версия ККМ: 001 [08:40:20]line Платежная система: O! деньги [08:40:20]line ФМ: 0000000000874939 [08:40:20]line ФД: 118678 [08:40:20]line ФПД: 205689296021232 [08:40:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T084024&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118678&fm=205689296021232&tin=02508201610067®Number=0000000000092660&sum=100000 [08:40:21]written 0, free lines is 4095 [08:40:21]OFD Sender: Processing packet 118678 [packets to send 86, broken 85] [08:40:21]ProducePacketName [08:40:21]name=ofd_packets/00118678 [08:40:21]OFD Sender: To server: pG, [08:40:21]CommunicateWithHost lk.salyk.kg:30040 [08:40:21]ConnectInit lk.salyk.kg [08:40:21]Connected sock=10 [08:40:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A2 BE 07 01 E7 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 78 55 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 96 CF 01 00 35 04 06 00 BB 12 C5 6C 66 F0 DB 30 5C 90 93 4E 6B 04 [08:40:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 03 CD 47 00 8F 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 96 CF 01 00 F4 03 04 00 06 03 A7 66 B6 04 01 00 00 37 8C D2 99 52 3A F8 08 [08:40:21]CommunicateWithHost err = 0 [08:40:21]CheckOFDResponse [08:40:21]1017 (14) - 77093643461234 [08:40:21]1041 (16) - 0000000000874939 [08:40:21]1040 (4) - 118678 [08:40:21]1012 (4) - 29.07.2024 02:48 [08:40:21]1206 (1) - 0 [08:40:21]OFD Sender: Remove packet 118678 [08:40:21]ProducePacketName [08:40:21]name=ofd_packets/00118678 [08:40:21]NVStorageDeleteData [08:40:21]Write to MH i2c: 01 00 00 D3 38 0B [08:40:21]Write i2c OK [08:40:21]MH_I2C_Read... [08:40:21]Read from MH i2c: 01 [08:40:21]MH_I2C_Read... [08:40:21]Read from MH i2c: 01 07 00 [08:40:21]MH_I2C_Read... [08:40:21]Read from MH i2c: 01 07 00 D3 38 00 00 00 00 00 E0 0C FE [08:40:21]RasterBufferAndPrint [08:40:21]line [08:40:21]line [08:40:21]line [08:40:21]line [08:40:21]line [08:40:21]written 0, free lines is 3301 [08:40:21]MH_Cut [08:40:21]Write to MH i2c: D1 01 00 DA 38 01 E4 [08:40:21]Write i2c OK [08:40:21]MH_I2C_Read... [08:40:21]Read from MH i2c: D1 [08:40:21]MH_I2C_Read... [08:40:21]Read from MH i2c: D1 01 00 [08:40:21]MH_I2C_Read... [08:40:21]Read from MH i2c: D1 01 00 DA 38 00 E3 [08:40:21]Write to MH i2c: 01 00 00 DB 38 13 [08:40:21]Write i2c OK [08:40:21]MH_I2C_Read... [08:40:22]OFD Sender: No OFD packet to send [08:40:22]*** Cut start [08:40:22]*** Partial cut [08:40:22]*** CUTSNS_PIN = 1 [08:40:22]*** CUTSNS_PIN = 0 [08:40:22]*** Brake cut motor [08:40:23]Read from MH i2c: 01 [08:40:23]MH_I2C_Read... [08:40:23]*** Stop cut motor [08:40:23]*** Cut end [08:40:23]Read from MH i2c: 01 07 00 [08:40:23]MH_I2C_Read... [08:40:23]Read from MH i2c: 01 07 00 DB 38 00 00 00 00 00 FF 0F 28 [08:40:23]process_action close_receipt done [08:40:23]requested_data is exist [08:40:23]produce_requested_data [08:40:23]requested_item fm.sn is exist - process it [08:40:23]wFMCommunicate request_size=4 [08:40:23]MH_SAM_APDU [08:40:23]CAPDU: 80 11 00 00 [08:40:23]Write to MH i2c: E2 08 00 DC 38 80 11 00 00 00 00 00 00 8E [08:40:23]Write i2c OK [08:40:23]MH_I2C_Read... [08:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:23]Read from MH i2c: E2 [08:40:23]MH_I2C_Read... [08:40:23]Read from MH i2c: E2 17 00 [08:40:23]MH_I2C_Read... [08:40:23]Read from MH i2c: E2 17 00 DC 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E9 [08:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:40:23]wFMCommunicate OK [08:40:23]requested_item fd.num is exist - process it [08:40:23]SAM_PROTO_GetFieldsCounters [08:40:23]wFMCommunicate request_size=4 [08:40:23]MH_SAM_APDU [08:40:23]CAPDU: 80 13 00 00 [08:40:23]Write to MH i2c: E2 08 00 DD 38 80 13 00 00 00 00 00 00 91 [08:40:23]Write i2c OK [08:40:23]MH_I2C_Read... [08:40:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:23]Read from MH i2c: E2 [08:40:23]MH_I2C_Read... [08:40:23]Read from MH i2c: E2 62 00 [08:40:23]MH_I2C_Read... [08:40:23]Read from MH i2c: E2 62 00 DD 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 96 CF 01 00 0E 04 04 00 B2 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 73 [08:40: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 96 CF 01 00 0E 04 04 00 B2 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 [08:40:23]wFMCommunicate OK [08:40:23]SAM_PROTO_GetFieldsCounters done [08:40:23]requested_item shift.num is exist - process it [08:40:23]requested_item shift.opened is exist - process it [08:40:23]req_shift_opened [08:40:23]FM_GetShiftState [08:40:23]SAM_PROTO_GetShiftState [08:40:23]wFMCommunicate request_size=4 [08:40:23]MH_SAM_APDU [08:40:23]CAPDU: 80 13 01 00 [08:40:23]Write to MH i2c: E2 08 00 DE 38 80 13 01 00 00 00 00 00 93 [08:40:23]Write i2c OK [08:40:23]MH_I2C_Read... [08:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:23]Read from MH i2c: E2 [08:40:23]MH_I2C_Read... [08:40:23]Read from MH i2c: E2 0E 00 [08:40:23]MH_I2C_Read... [08:40:23]Read from MH i2c: E2 0E 00 DE 38 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C1 [08:40:23]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:40:23]wFMCommunicate OK [08:40:23]SAM_PROTO_GetShiftState done [08:40:23]FM_GetShiftState done [08:40:23]req_shift_opened done [08:40:23]requested_item shift.open_date is exist - process it [08:40:23]req_shift_open_date [08:40:23]req_shift_open_date done [08:40:23]produce_requested_data done [08:40:23]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118678,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:40:23]process_action_free close_receipt [08:40:23]json_value_free [08:40:23]json_value_free done [08:40:23]process_json_proto returns [08:40:23]Send response to host [08:40:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118678,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:40:23]free response buf [08:40:23]execute_script done [08:40:23]execute_script returns [08:40:23]free content buf [08:40:23]Sock 9.Close socket [08:40:23]Sock 9.Thread stoped [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:24]accept exits with 7 [08:41:24]New connection [08:41:24]New thread 3067239780 created [08:41:24]Thread 3067383140 joined [08:41:24]Waiting for new connection... [08:41:24] Sock 7.Parse request [08:41:24]Sock 7.Check first char [08:41:24]Sock 7.First char is OK [08:41:24]request: POST /json_proto HTTP/1.0 [08:41:24]Method: POST [08:41:24]URL: /json_proto [08:41:24]Method is POST - this is cgi request [08:41:24]url: /json_proto [08:41:24]query_string will be loaded in cgi processing [08:41:24]execute_cgi json_proto POST (null) [08:41:24]execute_cgi path=json_proto method=POST [08:41:24]POST find Content-Length [08:41:24]Host: 172.17.45.7:8080 [08:41:24]Content-Length: 679 [08:41:24]Content-Type: application/json [08:41:24] [08:41:24]POST finish read [08:41:24]Found Content-Length = 679 [08:41:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:24]execute_script... [08:41:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:24]POST & json_proto [08:41:24]process_json_proto [08:41:24]json parsed OK: [08:41:24]protocol is kg_v1.0 [08:41:24]action value=close_receipt [08:41:24]process_action close_receipt [08:41:24]cmd_close_receipt [08:41:24]MH_GetDate [08:41:24]Write to MH i2c: F0 00 00 DF 38 06 [08:41:24]Write i2c OK [08:41:24]MH_I2C_Read... [08:41:24]Read from MH i2c: F0 [08:41:24]MH_I2C_Read... [08:41:24]Read from MH i2c: F0 09 00 [08:41:24]MH_I2C_Read... [08:41:24]Read from MH i2c: F0 09 00 DF 38 00 B9 55 A7 66 90 0F 3E 66 6D [08:41:24]GetLastDocTimeStamp 1722242424 [08:41:24]current date 1722242489 [08:41:24]FM_GetShiftState [08:41:24]SAM_PROTO_GetShiftState [08:41:24]wFMCommunicate request_size=4 [08:41:24]MH_SAM_APDU [08:41:24]CAPDU: 80 13 01 00 [08:41:24]Write to MH i2c: E2 08 00 E0 38 80 13 01 00 00 00 00 00 95 [08:41:24]Write i2c OK [08:41:24]MH_I2C_Read... [08:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:24]Read from MH i2c: E2 [08:41:24]MH_I2C_Read... [08:41:24]Read from MH i2c: E2 0E 00 [08:41:24]MH_I2C_Read... [08:41:24]Read from MH i2c: E2 0E 00 E0 38 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C3 [08:41:24]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:41:24]wFMCommunicate OK [08:41:24]SAM_PROTO_GetShiftState done [08:41:24]FM_GetShiftState done [08:41:24]opened in 1722211641 [08:41:24]opened+sec_in_day 1722298041 [08:41:24]quantity*price = 140055 [08:41:24]sum+1 = 140057 [08:41:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.73 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 55 29.07.2024 08:41 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118679 ФПД: 106119627936442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T084129&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118679&fm=106119627936442&tin=02508201610067®Number=0000000000092660&sum=140000 [08:41:26]StoreToDocumentArchive [08:41:26]shift 434 fd 118679 [08:41:26]save to /storage/0434/doc_00118679 [08:41:26]save last doc name /storage/0434/doc_00118679 to /storage/kkm_last_doc_name [08:41:26]save OK [08:41:26]Clear old archive folders... [08:41:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:41:26]tlvbuf is 01EC00D0 [08:41:26]SAM_PROTO_ClearQueue [08:41:26]wFMCommunicate request_size=4 [08:41:26]MH_SAM_APDU [08:41:26]CAPDU: 80 09 00 00 [08:41:26]Write to MH i2c: E2 08 00 ED 38 80 09 00 00 00 00 00 00 97 [08:41:26]Write i2c OK [08:41:26]MH_I2C_Read... [08:41:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:26]Read from MH i2c: E2 [08:41:26]MH_I2C_Read... [08:41:26]Read from MH i2c: E2 03 00 [08:41:26]MH_I2C_Read... [08:41:26]Read from MH i2c: E2 03 00 ED 38 00 90 00 99 [08:41:26]RAPDU: 90 00 [08:41:26]wFMCommunicate OK [08:41:26]SAM_PROTO_ClearQueue done [08:41:26]KKMCreateOFDPacket [08:41:26]OFDProtocolAddRootSTLVToBuf [08:41:26]FM_MakeSignedData [08:41:26]FM_MakeSignedData [08:41:26]SAM_PROTO_SignData [08:41:26]wFMCommunicate request_size=4 [08:41:26]MH_SAM_APDU [08:41:26]CAPDU: 80 0D 01 02 [08:41:26]Write to MH i2c: E2 08 00 EE 38 80 0D 01 02 00 00 00 00 9F [08:41:26]Write i2c OK [08:41:26]MH_I2C_Read... [08:41:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:26]Read from MH i2c: E2 [08:41:26]MH_I2C_Read... [08:41:26]Read from MH i2c: E2 03 00 [08:41:26]MH_I2C_Read... [08:41:26]Read from MH i2c: E2 03 00 EE 38 00 90 00 9A [08:41:26]RAPDU: 90 00 [08:41:26]wFMCommunicate OK [08:41:26]wFMCommunicate request_size=255 [08:41:26]MH_SAM_APDU [08:41:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 B9 55 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 97 CF 01 00 35 04 06 00 60 83 E6 BA [08:41:26]Write to MH i2c: E2 02 01 EF 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 B9 55 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 97 CF 01 00 35 04 06 00 60 83 E6 BA 00 00 5D [08:41:26]Write i2c OK [08:41:26]MH_I2C_Read... [08:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:26]Read from MH i2c: E2 [08:41:26]MH_I2C_Read... [08:41:26]Read from MH i2c: E2 03 00 [08:41:26]MH_I2C_Read... [08:41:26]Read from MH i2c: E2 03 00 EF 38 00 90 00 9B [08:41:26]RAPDU: 90 00 [08:41:26]wFMCommunicate OK [08:41:26]wFMCommunicate request_size=7 [08:41:26]MH_SAM_APDU [08:41:26]CAPDU: 80 0D 02 02 02 12 BA [08:41:26]Write to MH i2c: E2 0A 00 F0 38 80 0D 02 02 02 00 12 BA 00 00 72 [08:41:26]Write i2c OK [08:41:26]MH_I2C_Read... [08:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:26]Read from MH i2c: E2 [08:41:26]MH_I2C_Read... [08:41:26]Read from MH i2c: E2 03 00 [08:41:26]MH_I2C_Read... [08:41:26]Read from MH i2c: E2 03 00 F0 38 00 90 00 9C [08:41:26]RAPDU: 90 00 [08:41:26]wFMCommunicate OK [08:41:26]wFMCommunicate request_size=4 [08:41:26]MH_SAM_APDU [08:41:26]CAPDU: 80 0D 03 02 [08:41:26]Write to MH i2c: E2 08 00 F1 38 80 0D 03 02 00 00 00 00 A4 [08:41:26]Write i2c OK [08:41:26]MH_I2C_Read... [08:41:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:26]Read from MH i2c: E2 [08:41:26]MH_I2C_Read... [08:41:26]Read from MH i2c: E2 0B 00 [08:41:26]MH_I2C_Read... [08:41:26]Read from MH i2c: E2 0B 00 F1 38 00 21 2D B7 2A DB 43 FD F5 90 00 E4 [08:41:26]RAPDU: 21 2D B7 2A DB 43 FD F5 90 00 [08:41:26]wFMCommunicate OK [08:41:26]SAM_PROTO_SignData done [08:41:26]FM_MakeSignedData done [08:41:26]CreateOFDProtocolMessage [08:41:26]wFMCommunicate request_size=4 [08:41:26]MH_SAM_APDU [08:41:26]CAPDU: 80 11 00 00 [08:41:26]Write to MH i2c: E2 08 00 F2 38 80 11 00 00 00 00 00 00 A4 [08:41:26]Write i2c OK [08:41:26]MH_I2C_Read... [08:41:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:26]Read from MH i2c: E2 [08:41:26]MH_I2C_Read... [08:41:26]Read from MH i2c: E2 17 00 [08:41:26]MH_I2C_Read... [08:41:26]Read from MH i2c: E2 17 00 F2 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FF [08:41:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:41:26]wFMCommunicate OK [08:41:26]CreateOFDProtocolMessage done [08:41:26]OFDSenderStorePacket 118679 [08:41:26]StoreOFDPacket docnum=118679 [08:41:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2A 41 04 01 8F 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 B9 55 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 97 CF 01 00 35 04 06 00 60 83 E6 BA 12 BA 21 2D B7 2A DB 43 FD F5 [08:41:26]CheckFolder [08:41:26]dirname=/storage/ofd_packets [08:41:26]CheckFolder done [08:41:26]ProducePacketName [08:41:26]name=ofd_packets/00118679 [08:41:26]NVStorageSaveData ofd_packets/00118679 [08:41:26]File name is /storage/ofd_packets/00118679 [08:41:26]Write 298 bytes [08:41:26]NVStorageSaveData done [08:41:26]OFDSenderStorePacket done [08:41:26]KKMCreateOFDPacket done [08:41:26]NVStorageSaveData kkm_last_timestamp [08:41:26]File name is /storage/kkm_last_timestamp [08:41:26]Write 4 bytes [08:41:26]NVStorageSaveData done [08:41:26]ExternCall_PrintAddStr [08:41:26]wPrintStart [08:41:26]Write to MH i2c: 01 00 00 F3 38 2B [08:41:26]Write i2c OK [08:41:26]MH_I2C_Read... [08:41:26]Read from MH i2c: 01 [08:41:26]MH_I2C_Read... [08:41:26]Read from MH i2c: 01 07 00 [08:41:26]MH_I2C_Read... [08:41:26]Read from MH i2c: 01 07 00 F3 38 00 00 00 00 00 FF 0F 40 [08:41:26]RasterBufferAndPrint [08:41:26]line Счет N : (1)949562 [08:41:26]line ИНН: 02508201610067 [08:41:26]line Контрольно-Кассовый Чек [08:41:26]line ПРОДАЖА [08:41:26]line ТРК (МРК, ГНК) : 11 [08:41:26]line Товар: 2710194800 [08:41:26]line ДТ-К-5 [08:41:26]line 18.380 * 76.20 [08:41:26]line = 1400.56 [08:41:26]line НДС 12% НСП 1% [08:41:26]line > о реализуемом товаре [08:41:26]line ОКРУГЛЕНИЕ: -0.56 [08:41:26]line ИТОГО: 1400.00 [08:41:26]line Внесено: 1400.00 [08:41:26]line СДАЧА: 0.00 [08:41:26]line НСП 1% : 12.39 [08:41:26]line НДС 12% : 148.73 [08:41:26]line Наличными: 1400.00 [08:41:26]line Безнал.: 0.00 [08:41:26]line Место: АЗС № 134 "Партнер Нефть" [08:41:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:41:26]line СНО: Общий режим [08:41:26]line Чек 55 29.07.2024 08:41 [08:41:26]line Смена: 434 ФФД: 1.0 [08:41:26]line ЗНМ: 0300000044 [08:41:26]line РНМ: 0000000000092660 [08:41:26]line Версия ККМ: 001 [08:41:26]line ФМ: 0000000000874939 [08:41:26]line ФД: 118679 [08:41:26]line ФПД: 106119627936442 [08:41:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T084129&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118679&fm=106119627936442&tin=02508201610067®Number=0000000000092660&sum=140000 [08:41:26]OFD Sender: Processing packet 118679 [packets to send 86, broken 85] [08:41:26]ProducePacketName [08:41:26]name=ofd_packets/00118679 [08:41:26]OFD Sender: To server: pG, [08:41:26]CommunicateWithHost lk.salyk.kg:30040 [08:41:26]ConnectInit lk.salyk.kg [08:41:26]written 0, free lines is 4095 [08:41:27]Connected sock=10 [08:41:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2A 41 04 01 8F 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 B9 55 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 97 CF 01 00 35 04 06 00 60 83 E6 BA 12 BA 21 2D B7 2A DB 43 FD F5 [08:41:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 70 C9 47 00 2E 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 97 CF 01 00 F4 03 04 00 47 03 A7 66 B6 04 01 00 00 BB B9 CA 8A 8E 4A 91 64 [08:41:27]CommunicateWithHost err = 0 [08:41:27]CheckOFDResponse [08:41:27]1017 (14) - 77093643461234 [08:41:27]1041 (16) - 0000000000874939 [08:41:27]1040 (4) - 118679 [08:41:27]1012 (4) - 29.07.2024 02:49 [08:41:27]1206 (1) - 0 [08:41:27]OFD Sender: Remove packet 118679 [08:41:27]ProducePacketName [08:41:27]name=ofd_packets/00118679 [08:41:27]NVStorageDeleteData [08:41:27]Write to MH i2c: 01 00 00 1D 39 56 [08:41:27]Write i2c OK [08:41:27]MH_I2C_Read... [08:41:27]Read from MH i2c: 01 [08:41:27]MH_I2C_Read... [08:41:27]Read from MH i2c: 01 07 00 [08:41:27]MH_I2C_Read... [08:41:27]Read from MH i2c: 01 07 00 1D 39 00 00 00 00 00 E9 0C 52 [08:41:27]RasterBufferAndPrint [08:41:27]line [08:41:27]line [08:41:27]line [08:41:27]line [08:41:27]line [08:41:27]written 0, free lines is 3311 [08:41:27]MH_Cut [08:41:27]Write to MH i2c: D1 01 00 24 39 01 2F [08:41:27]Write i2c OK [08:41:27]MH_I2C_Read... [08:41:27]Read from MH i2c: D1 [08:41:27]MH_I2C_Read... [08:41:27]Read from MH i2c: D1 01 00 [08:41:27]MH_I2C_Read... [08:41:27]Read from MH i2c: D1 01 00 24 39 00 2E [08:41:27]Write to MH i2c: 01 00 00 25 39 5E [08:41:27]Write i2c OK [08:41:27]MH_I2C_Read... [08:41:27]OFD Sender: No OFD packet to send [08:41:28]*** Cut start [08:41:28]*** Partial cut [08:41:28]*** CUTSNS_PIN = 1 [08:41:28]*** CUTSNS_PIN = 0 [08:41:28]*** Brake cut motor [08:41:28]Read from MH i2c: 01 [08:41:28]MH_I2C_Read... [08:41:28]*** Stop cut motor [08:41:28]*** Cut end [08:41:28]Read from MH i2c: 01 07 00 [08:41:28]MH_I2C_Read... [08:41:28]Read from MH i2c: 01 07 00 25 39 00 00 00 00 00 FF 0F 73 [08:41:28]process_action close_receipt done [08:41:28]requested_data is exist [08:41:28]produce_requested_data [08:41:28]requested_item fm.sn is exist - process it [08:41:28]wFMCommunicate request_size=4 [08:41:28]MH_SAM_APDU [08:41:28]CAPDU: 80 11 00 00 [08:41:28]Write to MH i2c: E2 08 00 26 39 80 11 00 00 00 00 00 00 D9 [08:41:28]Write i2c OK [08:41:28]MH_I2C_Read... [08:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:28]Read from MH i2c: E2 [08:41:28]MH_I2C_Read... [08:41:28]Read from MH i2c: E2 17 00 [08:41:28]MH_I2C_Read... [08:41:28]Read from MH i2c: E2 17 00 26 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 34 [08:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:41:28]wFMCommunicate OK [08:41:28]requested_item fd.num is exist - process it [08:41:28]SAM_PROTO_GetFieldsCounters [08:41:28]wFMCommunicate request_size=4 [08:41:28]MH_SAM_APDU [08:41:28]CAPDU: 80 13 00 00 [08:41:28]Write to MH i2c: E2 08 00 27 39 80 13 00 00 00 00 00 00 DC [08:41:28]Write i2c OK [08:41:28]MH_I2C_Read... [08:41:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:28]Read from MH i2c: E2 [08:41:28]MH_I2C_Read... [08:41:28]Read from MH i2c: E2 62 00 [08:41:28]MH_I2C_Read... [08:41:28]Read from MH i2c: E2 62 00 27 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 97 CF 01 00 0E 04 04 00 B2 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 C2 [08:41: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 97 CF 01 00 0E 04 04 00 B2 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 [08:41:28]wFMCommunicate OK [08:41:28]SAM_PROTO_GetFieldsCounters done [08:41:28]requested_item shift.num is exist - process it [08:41:28]requested_item shift.opened is exist - process it [08:41:28]req_shift_opened [08:41:28]FM_GetShiftState [08:41:28]SAM_PROTO_GetShiftState [08:41:28]wFMCommunicate request_size=4 [08:41:28]MH_SAM_APDU [08:41:28]CAPDU: 80 13 01 00 [08:41:28]Write to MH i2c: E2 08 00 28 39 80 13 01 00 00 00 00 00 DE [08:41:28]Write i2c OK [08:41:28]MH_I2C_Read... [08:41:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:29]Read from MH i2c: E2 [08:41:29]MH_I2C_Read... [08:41:29]Read from MH i2c: E2 0E 00 [08:41:29]MH_I2C_Read... [08:41:29]Read from MH i2c: E2 0E 00 28 39 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 0C [08:41:29]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:41:29]wFMCommunicate OK [08:41:29]SAM_PROTO_GetShiftState done [08:41:29]FM_GetShiftState done [08:41:29]req_shift_opened done [08:41:29]requested_item shift.open_date is exist - process it [08:41:29]req_shift_open_date [08:41:29]req_shift_open_date done [08:41:29]produce_requested_data done [08:41:29]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118679,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:41:29]process_action_free close_receipt [08:41:29]json_value_free [08:41:29]json_value_free done [08:41:29]process_json_proto returns [08:41:29]Send response to host [08:41:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118679,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:41:29]free response buf [08:41:29]execute_script done [08:41:29]execute_script returns [08:41:29]free content buf [08:41:29]Sock 7.Close socket [08:41:29]Sock 7.Thread stoped [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:32]OFD Sender: No OFD packet to send [08:42:37]OFD Sender: No OFD packet to send [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:58]OFD Sender: No OFD packet to send [08:45:03]OFD Sender: No OFD packet to send [08:45:08]OFD Sender: No OFD packet to send [08:45:13]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:23]OFD Sender: No OFD packet to send [08:45:28]OFD Sender: No OFD packet to send [08:45:33]OFD Sender: No OFD packet to send [08:45:38]OFD Sender: No OFD packet to send [08:45:43]OFD Sender: No OFD packet to send [08:45:48]OFD Sender: No OFD packet to send [08:45:53]OFD Sender: No OFD packet to send [08:45:58]OFD Sender: No OFD packet to send [08:46:03]OFD Sender: No OFD packet to send [08:46:08]OFD Sender: No OFD packet to send [08:46:13]OFD Sender: No OFD packet to send [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:28]OFD Sender: No OFD packet to send [08:46:33]OFD Sender: No OFD packet to send [08:46:38]OFD Sender: No OFD packet to send [08:46:43]OFD Sender: No OFD packet to send [08:46:48]OFD Sender: No OFD packet to send [08:46:53]OFD Sender: No OFD packet to send [08:46:58]OFD Sender: No OFD packet to send [08:47:03]OFD Sender: No OFD packet to send [08:47:08]OFD Sender: No OFD packet to send [08:47:13]OFD Sender: No OFD packet to send [08:47:18]OFD Sender: No OFD packet to send [08:47:23]OFD Sender: No OFD packet to send [08:47:28]OFD Sender: No OFD packet to send [08:47:33]OFD Sender: No OFD packet to send [08:47:38]OFD Sender: No OFD packet to send [08:47:43]OFD Sender: No OFD packet to send [08:47:48]OFD Sender: No OFD packet to send [08:47:53]OFD Sender: No OFD packet to send [08:47:58]OFD Sender: No OFD packet to send [08:48:03]OFD Sender: No OFD packet to send [08:48:08]OFD Sender: No OFD packet to send [08:48:13]OFD Sender: No OFD packet to send [08:48:18]OFD Sender: No OFD packet to send [08:48:23]OFD Sender: No OFD packet to send [08:48:28]OFD Sender: No OFD packet to send [08:48:33]OFD Sender: No OFD packet to send [08:48:38]OFD Sender: No OFD packet to send [08:48:43]OFD Sender: No OFD packet to send [08:48:48]OFD Sender: No OFD packet to send [08:48:53]OFD Sender: No OFD packet to send [08:48:58]OFD Sender: No OFD packet to send [08:49:03]OFD Sender: No OFD packet to send [08:49:04]accept exits with 9 [08:49:04]New connection [08:49:04]New thread 3067383140 created [08:49:04]Thread 3067239780 joined [08:49:04]Waiting for new connection... [08:49:04] Sock 9.Parse request [08:49:04]Sock 9.Check first char [08:49:04]Sock 9.First char is OK [08:49:04]request: POST /json_proto HTTP/1.0 [08:49:04]Method: POST [08:49:04]URL: /json_proto [08:49:04]Method is POST - this is cgi request [08:49:04]url: /json_proto [08:49:04]query_string will be loaded in cgi processing [08:49:04]execute_cgi json_proto POST (null) [08:49:04]execute_cgi path=json_proto method=POST [08:49:04]POST find Content-Length [08:49:04]Host: 172.17.45.7:8080 [08:49:04]Content-Length: 815 [08:49:04]Content-Type: application/json [08:49:04] [08:49:04]POST finish read [08:49:04]Found Content-Length = 815 [08:49:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 200.00, "payments": [ { "type": 1, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:04]execute_script... [08:49:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 200.00, "payments": [ { "type": 1, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:04]POST & json_proto [08:49:04]process_json_proto [08:49:04]json parsed OK: [08:49:04]protocol is kg_v1.0 [08:49:04]action value=close_receipt [08:49:04]process_action close_receipt [08:49:04]cmd_close_receipt [08:49:04]MH_GetDate [08:49:04]Write to MH i2c: F0 00 00 29 39 51 [08:49:04]Write i2c OK [08:49:04]MH_I2C_Read... [08:49:04]Read from MH i2c: F0 [08:49:04]MH_I2C_Read... [08:49:04]Read from MH i2c: F0 09 00 [08:49:04]MH_I2C_Read... [08:49:04]Read from MH i2c: F0 09 00 29 39 00 85 57 A7 66 90 0F 3E 66 86 [08:49:04]GetLastDocTimeStamp 1722242489 [08:49:04]current date 1722242949 [08:49:04]FM_GetShiftState [08:49:04]SAM_PROTO_GetShiftState [08:49:04]wFMCommunicate request_size=4 [08:49:04]MH_SAM_APDU [08:49:04]CAPDU: 80 13 01 00 [08:49:04]Write to MH i2c: E2 08 00 2A 39 80 13 01 00 00 00 00 00 E0 [08:49:04]Write i2c OK [08:49:04]MH_I2C_Read... [08:49:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:04]Read from MH i2c: E2 [08:49:04]MH_I2C_Read... [08:49:04]Read from MH i2c: E2 0E 00 [08:49:04]MH_I2C_Read... [08:49:04]Read from MH i2c: E2 0E 00 2A 39 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 0E [08:49:04]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:49:04]wFMCommunicate OK [08:49:04]SAM_PROTO_GetShiftState done [08:49:04]FM_GetShiftState done [08:49:04]opened in 1722211641 [08:49:04]opened+sec_in_day 1722298041 [08:49:04]quantity*price = 20040 [08:49:04]sum+1 = 20042 [08:49:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 0.00 Безнал.: 200.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 56 29.07.2024 08:49 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118680 ФПД: 8728353233501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T084909&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118680&fm=8728353233501&tin=02508201610067®Number=0000000000092660&sum=20000 [08:49:05]StoreToDocumentArchive [08:49:05]shift 434 fd 118680 [08:49:05]save to /storage/0434/doc_00118680 [08:49:05]save last doc name /storage/0434/doc_00118680 to /storage/kkm_last_doc_name [08:49:05]save OK [08:49:05]Clear old archive folders... [08:49:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:49:05]tlvbuf is 01ED64A0 [08:49:05]SAM_PROTO_ClearQueue [08:49:05]wFMCommunicate request_size=4 [08:49:05]MH_SAM_APDU [08:49:05]CAPDU: 80 09 00 00 [08:49:05]Write to MH i2c: E2 08 00 37 39 80 09 00 00 00 00 00 00 E2 [08:49:05]Write i2c OK [08:49:05]MH_I2C_Read... [08:49:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:06]Read from MH i2c: E2 [08:49:06]MH_I2C_Read... [08:49:06]Read from MH i2c: E2 03 00 [08:49:06]MH_I2C_Read... [08:49:06]Read from MH i2c: E2 03 00 37 39 00 90 00 E4 [08:49:06]RAPDU: 90 00 [08:49:06]wFMCommunicate OK [08:49:06]SAM_PROTO_ClearQueue done [08:49:06]KKMCreateOFDPacket [08:49:06]OFDProtocolAddRootSTLVToBuf [08:49:06]FM_MakeSignedData [08:49:06]FM_MakeSignedData [08:49:06]SAM_PROTO_SignData [08:49:06]wFMCommunicate request_size=4 [08:49:06]MH_SAM_APDU [08:49:06]CAPDU: 80 0D 01 02 [08:49:06]Write to MH i2c: E2 08 00 38 39 80 0D 01 02 00 00 00 00 EA [08:49:06]Write i2c OK [08:49:06]MH_I2C_Read... [08:49:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:06]Read from MH i2c: E2 [08:49:06]MH_I2C_Read... [08:49:06]Read from MH i2c: E2 03 00 [08:49:06]MH_I2C_Read... [08:49:06]Read from MH i2c: E2 03 00 38 39 00 90 00 E5 [08:49:06]RAPDU: 90 00 [08:49:06]wFMCommunicate OK [08:49:06]wFMCommunicate request_size=255 [08:49:06]MH_SAM_APDU [08:49:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 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 38 00 00 00 F4 03 04 00 85 57 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 98 CF 01 00 35 04 06 00 07 F0 3A 64 [08:49:06]Write to MH i2c: E2 02 01 39 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 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 38 00 00 00 F4 03 04 00 85 57 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 98 CF 01 00 35 04 06 00 07 F0 3A 64 00 00 D0 [08:49:06]Write i2c OK [08:49:06]MH_I2C_Read... [08:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:06]Read from MH i2c: E2 [08:49:06]MH_I2C_Read... [08:49:06]Read from MH i2c: E2 03 00 [08:49:06]MH_I2C_Read... [08:49:06]Read from MH i2c: E2 03 00 39 39 00 90 00 E6 [08:49:06]RAPDU: 90 00 [08:49:06]wFMCommunicate OK [08:49:06]wFMCommunicate request_size=7 [08:49:06]MH_SAM_APDU [08:49:06]CAPDU: 80 0D 02 02 02 DA 5D [08:49:06]Write to MH i2c: E2 0A 00 3A 39 80 0D 02 02 02 00 DA 5D 00 00 28 [08:49:06]Write i2c OK [08:49:06]MH_I2C_Read... [08:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:06]Read from MH i2c: E2 [08:49:06]MH_I2C_Read... [08:49:06]Read from MH i2c: E2 03 00 [08:49:06]MH_I2C_Read... [08:49:06]Read from MH i2c: E2 03 00 3A 39 00 90 00 E7 [08:49:06]RAPDU: 90 00 [08:49:06]wFMCommunicate OK [08:49:06]wFMCommunicate request_size=4 [08:49:06]MH_SAM_APDU [08:49:06]CAPDU: 80 0D 03 02 [08:49:06]Write to MH i2c: E2 08 00 3B 39 80 0D 03 02 00 00 00 00 EF [08:49:06]Write i2c OK [08:49:06]MH_I2C_Read... [08:49:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:06]Read from MH i2c: E2 [08:49:06]MH_I2C_Read... [08:49:06]Read from MH i2c: E2 0B 00 [08:49:06]MH_I2C_Read... [08:49:06]Read from MH i2c: E2 0B 00 3B 39 00 EB D9 27 EC 39 E4 0A 7D 90 00 6B [08:49:06]RAPDU: EB D9 27 EC 39 E4 0A 7D 90 00 [08:49:06]wFMCommunicate OK [08:49:06]SAM_PROTO_SignData done [08:49:06]FM_MakeSignedData done [08:49:06]CreateOFDProtocolMessage [08:49:06]wFMCommunicate request_size=4 [08:49:06]MH_SAM_APDU [08:49:06]CAPDU: 80 11 00 00 [08:49:06]Write to MH i2c: E2 08 00 3C 39 80 11 00 00 00 00 00 00 EF [08:49:06]Write i2c OK [08:49:06]MH_I2C_Read... [08:49:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:06]Read from MH i2c: E2 [08:49:06]MH_I2C_Read... [08:49:06]Read from MH i2c: E2 17 00 [08:49:06]MH_I2C_Read... [08:49:06]Read from MH i2c: E2 17 00 3C 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4A [08:49:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:49:06]wFMCommunicate OK [08:49:06]CreateOFDProtocolMessage done [08:49:06]OFDSenderStorePacket 118680 [08:49:06]StoreOFDPacket docnum=118680 [08:49:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C5 2C 04 01 66 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 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 38 00 00 00 F4 03 04 00 85 57 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 98 CF 01 00 35 04 06 00 07 F0 3A 64 DA 5D EB D9 27 EC 39 E4 0A 7D [08:49:06]CheckFolder [08:49:06]dirname=/storage/ofd_packets [08:49:06]CheckFolder done [08:49:06]ProducePacketName [08:49:06]name=ofd_packets/00118680 [08:49:06]NVStorageSaveData ofd_packets/00118680 [08:49:06]File name is /storage/ofd_packets/00118680 [08:49:06]Write 298 bytes [08:49:06]NVStorageSaveData done [08:49:06]OFDSenderStorePacket done [08:49:06]KKMCreateOFDPacket done [08:49:06]NVStorageSaveData kkm_last_timestamp [08:49:06]File name is /storage/kkm_last_timestamp [08:49:06]Write 4 bytes [08:49:06]NVStorageSaveData done [08:49:06]ExternCall_PrintAddStr [08:49:06]wPrintStart [08:49:06]Write to MH i2c: 01 00 00 3D 39 76 [08:49:06]Write i2c OK [08:49:06]MH_I2C_Read... [08:49:06]Read from MH i2c: 01 [08:49:06]MH_I2C_Read... [08:49:06]Read from MH i2c: 01 07 00 [08:49:06]MH_I2C_Read... [08:49:06]Read from MH i2c: 01 07 00 3D 39 00 00 00 00 00 FF 0F 8B [08:49:06]RasterBufferAndPrint [08:49:06]line Счет N : (1)949563 [08:49:06]line ИНН: 02508201610067 [08:49:06]line Контрольно-Кассовый Чек [08:49:06]line ПРОДАЖА [08:49:06]line ТРК (МРК, ГНК) : 34 [08:49:06]line Товар: 2710194800 [08:49:06]line ДТ-К-5 [08:49:06]line 2.630 * 76.20 [08:49:06]line = 200.41 [08:49:06]line НДС 12% НСП 1% [08:49:06]line > о реализуемом товаре [08:49:06]line ОКРУГЛЕНИЕ: -0.41 [08:49:06]line ИТОГО: 200.00 [08:49:06]line НСП 1% : 1.77 [08:49:06]line НДС 12% : 21.28 [08:49:06]line Наличными: 0.00 [08:49:06]line Безнал.: 200.00 [08:49:06]line Место: АЗС № 134 "Партнер Нефть" [08:49:06]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:49:06]line СНО: Общий режим [08:49:06]line Чек 56 29.07.2024 08:49 [08:49:06]line Смена: 434 ФФД: 1.0 [08:49:06]line ЗНМ: 0300000044 [08:49:06]line РНМ: 0000000000092660 [08:49:06]line Версия ККМ: 001 [08:49:06]line Платежная система: O! деньги [08:49:06]line ФМ: 0000000000874939 [08:49:06]line ФД: 118680 [08:49:06]line ФПД: 8728353233501 [08:49:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T084909&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118680&fm=8728353233501&tin=02508201610067®Number=0000000000092660&sum=20000 [08:49:06]OFD Sender: Processing packet 118680 [packets to send 86, broken 85] [08:49:06]ProducePacketName [08:49:06]name=ofd_packets/00118680 [08:49:06]OFD Sender: To server: pG, [08:49:06]CommunicateWithHost lk.salyk.kg:30040 [08:49:06]ConnectInit lk.salyk.kg [08:49:06]written 0, free lines is 4095 [08:49:06]Connected sock=10 [08:49:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C5 2C 04 01 66 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 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 38 00 00 00 F4 03 04 00 85 57 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 98 CF 01 00 35 04 06 00 07 F0 3A 64 DA 5D EB D9 27 EC 39 E4 0A 7D [08:49:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D0 35 47 00 69 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 34 39 33 39 10 04 04 00 98 CF 01 00 F4 03 04 00 13 05 A7 66 B6 04 01 00 00 E2 BF 30 E8 27 5A E1 C2 [08:49:07]CommunicateWithHost err = 0 [08:49:07]CheckOFDResponse [08:49:07]1017 (14) - 77093643461234 [08:49:07]1041 (16) - 0000000000874939 [08:49:07]1040 (4) - 118680 [08:49:07]1012 (4) - 29.07.2024 02:57 [08:49:07]1206 (1) - 0 [08:49:07]OFD Sender: Remove packet 118680 [08:49:07]ProducePacketName [08:49:07]name=ofd_packets/00118680 [08:49:07]NVStorageDeleteData [08:49:07]Write to MH i2c: 01 00 00 67 39 A0 [08:49:07]Write i2c OK [08:49:07]MH_I2C_Read... [08:49:07]Read from MH i2c: 01 [08:49:07]MH_I2C_Read... [08:49:07]Read from MH i2c: 01 07 00 [08:49:07]MH_I2C_Read... [08:49:07]Read from MH i2c: 01 07 00 67 39 00 00 00 00 00 DD 0C 90 [08:49:07]RasterBufferAndPrint [08:49:07]line [08:49:07]line [08:49:07]line [08:49:07]line [08:49:07]line [08:49:07]written 0, free lines is 3299 [08:49:07]MH_Cut [08:49:07]Write to MH i2c: D1 01 00 6E 39 01 79 [08:49:07]Write i2c OK [08:49:07]MH_I2C_Read... [08:49:07]Read from MH i2c: D1 [08:49:07]MH_I2C_Read... [08:49:07]Read from MH i2c: D1 01 00 [08:49:07]MH_I2C_Read... [08:49:07]Read from MH i2c: D1 01 00 6E 39 00 78 [08:49:07]Write to MH i2c: 01 00 00 6F 39 A8 [08:49:07]Write i2c OK [08:49:07]MH_I2C_Read... [08:49:07]OFD Sender: No OFD packet to send [08:49:08]*** Cut start [08:49:08]*** Partial cut [08:49:08]*** CUTSNS_PIN = 1 [08:49:08]*** CUTSNS_PIN = 0 [08:49:08]*** Brake cut motor [08:49:08]Read from MH i2c: 01 [08:49:08]MH_I2C_Read... [08:49:08]*** Stop cut motor [08:49:08]*** Cut end [08:49:08]Read from MH i2c: 01 07 00 [08:49:08]MH_I2C_Read... [08:49:08]Read from MH i2c: 01 07 00 6F 39 00 00 00 00 00 FF 0F BD [08:49:08]process_action close_receipt done [08:49:08]requested_data is exist [08:49:08]produce_requested_data [08:49:08]requested_item fm.sn is exist - process it [08:49:08]wFMCommunicate request_size=4 [08:49:08]MH_SAM_APDU [08:49:08]CAPDU: 80 11 00 00 [08:49:08]Write to MH i2c: E2 08 00 70 39 80 11 00 00 00 00 00 00 23 [08:49:08]Write i2c OK [08:49:08]MH_I2C_Read... [08:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:08]Read from MH i2c: E2 [08:49:08]MH_I2C_Read... [08:49:08]Read from MH i2c: E2 17 00 [08:49:08]MH_I2C_Read... [08:49:08]Read from MH i2c: E2 17 00 70 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7E [08:49:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:49:08]wFMCommunicate OK [08:49:08]requested_item fd.num is exist - process it [08:49:08]SAM_PROTO_GetFieldsCounters [08:49:08]wFMCommunicate request_size=4 [08:49:08]MH_SAM_APDU [08:49:08]CAPDU: 80 13 00 00 [08:49:08]Write to MH i2c: E2 08 00 71 39 80 13 00 00 00 00 00 00 26 [08:49:08]Write i2c OK [08:49:08]MH_I2C_Read... [08:49:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:08]Read from MH i2c: E2 [08:49:08]MH_I2C_Read... [08:49:08]Read from MH i2c: E2 62 00 [08:49:08]MH_I2C_Read... [08:49:08]Read from MH i2c: E2 62 00 71 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 98 CF 01 00 0E 04 04 00 B2 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 [08:49: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 98 CF 01 00 0E 04 04 00 B2 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 [08:49:08]wFMCommunicate OK [08:49:08]SAM_PROTO_GetFieldsCounters done [08:49:08]requested_item shift.num is exist - process it [08:49:08]requested_item shift.opened is exist - process it [08:49:08]req_shift_opened [08:49:08]FM_GetShiftState [08:49:08]SAM_PROTO_GetShiftState [08:49:08]wFMCommunicate request_size=4 [08:49:08]MH_SAM_APDU [08:49:08]CAPDU: 80 13 01 00 [08:49:08]Write to MH i2c: E2 08 00 72 39 80 13 01 00 00 00 00 00 28 [08:49:08]Write i2c OK [08:49:08]MH_I2C_Read... [08:49:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:08]Read from MH i2c: E2 [08:49:08]MH_I2C_Read... [08:49:08]Read from MH i2c: E2 0E 00 [08:49:08]MH_I2C_Read... [08:49:08]Read from MH i2c: E2 0E 00 72 39 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 56 [08:49:08]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:49:08]wFMCommunicate OK [08:49:08]SAM_PROTO_GetShiftState done [08:49:08]FM_GetShiftState done [08:49:08]req_shift_opened done [08:49:08]requested_item shift.open_date is exist - process it [08:49:08]req_shift_open_date [08:49:08]req_shift_open_date done [08:49:08]produce_requested_data done [08:49:08]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118680,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:49:08]process_action_free close_receipt [08:49:08]json_value_free [08:49:08]json_value_free done [08:49:08]process_json_proto returns [08:49:08]Send response to host [08:49:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118680,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:49:08]free response buf [08:49:08]execute_script done [08:49:08]execute_script returns [08:49:08]free content buf [08:49:08]Sock 9.Close socket [08:49:08]Sock 9.Thread stoped [08:49:12]OFD Sender: No OFD packet to send [08:49:17]OFD Sender: No OFD packet to send [08:49:22]OFD Sender: No OFD packet to send [08:49:27]OFD Sender: No OFD packet to send [08:49:32]OFD Sender: No OFD packet to send [08:49:37]OFD Sender: No OFD packet to send [08:49:42]OFD Sender: No OFD packet to send [08:49:47]OFD Sender: No OFD packet to send [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:14]accept exits with 7 [08:59:14]New connection [08:59:14]New thread 3067239780 created [08:59:14]Thread 3067383140 joined [08:59:14]Waiting for new connection... [08:59:14] Sock 7.Parse request [08:59:14]Sock 7.Check first char [08:59:14]Sock 7.First char is OK [08:59:14]request: POST /json_proto HTTP/1.0 [08:59:14]Method: POST [08:59:14]URL: /json_proto [08:59:14]Method is POST - this is cgi request [08:59:14]url: /json_proto [08:59:14]query_string will be loaded in cgi processing [08:59:14]execute_cgi json_proto POST (null) [08:59:14]execute_cgi path=json_proto method=POST [08:59:14]POST find Content-Length [08:59:14]Host: 172.17.45.7:8080 [08:59:14]Content-Length: 678 [08:59:14]Content-Type: application/json [08:59:14] [08:59:14]POST finish read [08:59:14]Found Content-Length = 678 [08:59:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.450, "sum" : 572.91, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 572.00, "payments": [ { "type": 0, "sum" : 572.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:14]execute_script... [08:59:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.450, "sum" : 572.91, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 572.00, "payments": [ { "type": 0, "sum" : 572.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:14]POST & json_proto [08:59:14]process_json_proto [08:59:14]json parsed OK: [08:59:14]protocol is kg_v1.0 [08:59:14]action value=close_receipt [08:59:14]process_action close_receipt [08:59:14]cmd_close_receipt [08:59:14]MH_GetDate [08:59:14]Write to MH i2c: F0 00 00 73 39 9B [08:59:14]Write i2c OK [08:59:14]MH_I2C_Read... [08:59:14]Read from MH i2c: F0 [08:59:14]MH_I2C_Read... [08:59:14]Read from MH i2c: F0 09 00 [08:59:14]MH_I2C_Read... [08:59:14]Read from MH i2c: F0 09 00 73 39 00 E7 59 A7 66 90 0F 3E 66 34 [08:59:14]GetLastDocTimeStamp 1722242949 [08:59:14]current date 1722243559 [08:59:14]FM_GetShiftState [08:59:14]SAM_PROTO_GetShiftState [08:59:14]wFMCommunicate request_size=4 [08:59:14]MH_SAM_APDU [08:59:14]CAPDU: 80 13 01 00 [08:59:14]Write to MH i2c: E2 08 00 74 39 80 13 01 00 00 00 00 00 2A [08:59:14]Write i2c OK [08:59:14]MH_I2C_Read... [08:59:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:14]Read from MH i2c: E2 [08:59:14]MH_I2C_Read... [08:59:14]Read from MH i2c: E2 0E 00 [08:59:14]MH_I2C_Read... [08:59:14]Read from MH i2c: E2 0E 00 74 39 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 58 [08:59:14]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:59:14]wFMCommunicate OK [08:59:14]SAM_PROTO_GetShiftState done [08:59:14]FM_GetShiftState done [08:59:14]opened in 1722211641 [08:59:14]opened+sec_in_day 1722298041 [08:59:14]quantity*price = 57291 [08:59:14]sum+1 = 57292 [08:59:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.91 ИТОГО: 572.00 Внесено: 2000.00 СДАЧА: 1428.00 НСП 1% : 5.07 НДС 12% : 60.84 Наличными: 572.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 57 29.07.2024 08:59 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118681 ФПД: 119439846539419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T085919&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118681&fm=119439846539419&tin=02508201610067®Number=0000000000092660&sum=57200 [08:59:15]StoreToDocumentArchive [08:59:15]shift 434 fd 118681 [08:59:15]save to /storage/0434/doc_00118681 [08:59:15]save last doc name /storage/0434/doc_00118681 to /storage/kkm_last_doc_name [08:59:15]save OK [08:59:15]Clear old archive folders... [08:59:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:15]tlvbuf is 01E68FD0 [08:59:15]SAM_PROTO_ClearQueue [08:59:15]wFMCommunicate request_size=4 [08:59:15]MH_SAM_APDU [08:59:15]CAPDU: 80 09 00 00 [08:59:15]Write to MH i2c: E2 08 00 81 39 80 09 00 00 00 00 00 00 2C [08:59:15]Write i2c OK [08:59:15]MH_I2C_Read... [08:59:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:15]Read from MH i2c: E2 [08:59:15]MH_I2C_Read... [08:59:15]Read from MH i2c: E2 03 00 [08:59:15]MH_I2C_Read... [08:59:15]Read from MH i2c: E2 03 00 81 39 00 90 00 2E [08:59:15]RAPDU: 90 00 [08:59:15]wFMCommunicate OK [08:59:15]SAM_PROTO_ClearQueue done [08:59:15]KKMCreateOFDPacket [08:59:15]OFDProtocolAddRootSTLVToBuf [08:59:15]FM_MakeSignedData [08:59:15]FM_MakeSignedData [08:59:15]SAM_PROTO_SignData [08:59:15]wFMCommunicate request_size=4 [08:59:15]MH_SAM_APDU [08:59:15]CAPDU: 80 0D 01 02 [08:59:15]Write to MH i2c: E2 08 00 82 39 80 0D 01 02 00 00 00 00 34 [08:59:15]Write i2c OK [08:59:15]MH_I2C_Read... [08:59:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:16]Read from MH i2c: E2 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 03 00 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 03 00 82 39 00 90 00 2F [08:59:16]RAPDU: 90 00 [08:59:16]wFMCommunicate OK [08:59:16]wFMCommunicate request_size=255 [08:59:16]MH_SAM_APDU [08:59:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 02 21 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CB DF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 DF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 17 00 00 00 00 07 04 06 00 70 DF 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 E7 59 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 99 CF 01 00 35 04 06 00 6C [08:59:16]Write to MH i2c: E2 02 01 83 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 02 21 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CB DF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 DF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 17 00 00 00 00 07 04 06 00 70 DF 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 E7 59 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 99 CF 01 00 35 04 06 00 6C 00 00 29 [08:59:16]Write i2c OK [08:59:16]MH_I2C_Read... [08:59:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:16]Read from MH i2c: E2 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 03 00 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 03 00 83 39 00 90 00 30 [08:59:16]RAPDU: 90 00 [08:59:16]wFMCommunicate OK [08:59:16]wFMCommunicate request_size=10 [08:59:16]MH_SAM_APDU [08:59:16]CAPDU: 80 0D 02 02 05 A1 41 A0 00 9B [08:59:16]Write to MH i2c: E2 0D 00 84 39 80 0D 02 02 05 00 A1 41 A0 00 9B 00 00 5E [08:59:16]Write i2c OK [08:59:16]MH_I2C_Read... [08:59:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:16]Read from MH i2c: E2 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 03 00 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 03 00 84 39 00 90 00 31 [08:59:16]RAPDU: 90 00 [08:59:16]wFMCommunicate OK [08:59:16]wFMCommunicate request_size=4 [08:59:16]MH_SAM_APDU [08:59:16]CAPDU: 80 0D 03 02 [08:59:16]Write to MH i2c: E2 08 00 85 39 80 0D 03 02 00 00 00 00 39 [08:59:16]Write i2c OK [08:59:16]MH_I2C_Read... [08:59:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:16]Read from MH i2c: E2 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 0B 00 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 0B 00 85 39 00 9B B3 FF FD 5F 38 67 8B 90 00 0D [08:59:16]RAPDU: 9B B3 FF FD 5F 38 67 8B 90 00 [08:59:16]wFMCommunicate OK [08:59:16]SAM_PROTO_SignData done [08:59:16]FM_MakeSignedData done [08:59:16]CreateOFDProtocolMessage [08:59:16]wFMCommunicate request_size=4 [08:59:16]MH_SAM_APDU [08:59:16]CAPDU: 80 11 00 00 [08:59:16]Write to MH i2c: E2 08 00 86 39 80 11 00 00 00 00 00 00 39 [08:59:16]Write i2c OK [08:59:16]MH_I2C_Read... [08:59:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:16]Read from MH i2c: E2 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 17 00 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 17 00 86 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 94 [08:59:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:59:16]wFMCommunicate OK [08:59:16]CreateOFDProtocolMessage done [08:59:16]OFDSenderStorePacket 118681 [08:59:16]StoreOFDPacket docnum=118681 [08:59:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7C 36 07 01 98 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 02 21 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CB DF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 DF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 17 00 00 00 00 07 04 06 00 70 DF 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 E7 59 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 99 CF 01 00 35 04 06 00 6C A1 41 A0 00 9B 9B B3 FF FD 5F 38 67 8B [08:59:16]CheckFolder [08:59:16]dirname=/storage/ofd_packets [08:59:16]CheckFolder done [08:59:16]ProducePacketName [08:59:16]name=ofd_packets/00118681 [08:59:16]NVStorageSaveData ofd_packets/00118681 [08:59:16]File name is /storage/ofd_packets/00118681 [08:59:16]Write 301 bytes [08:59:16]NVStorageSaveData done [08:59:16]OFDSenderStorePacket done [08:59:16]KKMCreateOFDPacket done [08:59:16]NVStorageSaveData kkm_last_timestamp [08:59:16]File name is /storage/kkm_last_timestamp [08:59:16]Write 4 bytes [08:59:16]NVStorageSaveData done [08:59:16]ExternCall_PrintAddStr [08:59:16]wPrintStart [08:59:16]Write to MH i2c: 01 00 00 87 39 C0 [08:59:16]Write i2c OK [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: 01 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: 01 07 00 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: 01 07 00 87 39 00 00 00 00 00 FF 0F D5 [08:59:16]RasterBufferAndPrint [08:59:16]line Счет N : (1)949565 [08:59:16]line ИНН: 02508201610067 [08:59:16]line Контрольно-Кассовый Чек [08:59:16]line ПРОДАЖА [08:59:16]line ТРК (МРК, ГНК) : 51 [08:59:16]line Товар: 2710124130 [08:59:16]line Аи-92-К-4 [08:59:16]line 8.450 * 67.80 [08:59:16]line = 572.91 [08:59:16]line НДС 12% НСП 1% [08:59:16]line > о реализуемом товаре [08:59:16]line ОКРУГЛЕНИЕ: -0.91 [08:59:16]line ИТОГО: 572.00 [08:59:16]line Внесено: 2000.00 [08:59:16]line СДАЧА: 1428.00 [08:59:16]line НСП 1% : 5.07 [08:59:16]line НДС 12% : 60.84 [08:59:16]line Наличными: 572.00 [08:59:16]line Безнал.: 0.00 [08:59:16]line Место: АЗС № 134 "Партнер Нефть" [08:59:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:59:16]line СНО: Общий режим [08:59:16]line Чек 57 29.07.2024 08:59 [08:59:16]line Смена: 434 ФФД: 1.0 [08:59:16]line ЗНМ: 0300000044 [08:59:16]line РНМ: 0000000000092660 [08:59:16]line Версия ККМ: 001 [08:59:16]line ФМ: 0000000000874939 [08:59:16]line ФД: 118681 [08:59:16]line ФПД: 119439846539419 [08:59:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T085919&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118681&fm=119439846539419&tin=02508201610067®Number=0000000000092660&sum=57200 [08:59:16]OFD Sender: Processing packet 118681 [packets to send 86, broken 85] [08:59:16]ProducePacketName [08:59:16]name=ofd_packets/00118681 [08:59:16]OFD Sender: To server: pG, [08:59:16]CommunicateWithHost lk.salyk.kg:30040 [08:59:16]ConnectInit lk.salyk.kg [08:59:16]written 0, free lines is 4095 [08:59:16]Connected sock=10 [08:59:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7C 36 07 01 98 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 02 21 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CB DF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 DF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 17 00 00 00 00 07 04 06 00 70 DF 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 E7 59 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 99 CF 01 00 35 04 06 00 6C A1 41 A0 00 9B 9B B3 FF FD 5F 38 67 8B [08:59:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F0 83 47 00 01 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 34 39 33 39 10 04 04 00 99 CF 01 00 F4 03 04 00 75 07 A7 66 B6 04 01 00 00 ED 7F 88 4E 5F C3 FC 19 [08:59:17]CommunicateWithHost err = 0 [08:59:17]CheckOFDResponse [08:59:17]1017 (14) - 77093643461234 [08:59:17]1041 (16) - 0000000000874939 [08:59:17]1040 (4) - 118681 [08:59:17]1012 (4) - 29.07.2024 03:07 [08:59:17]1206 (1) - 0 [08:59:17]OFD Sender: Remove packet 118681 [08:59:17]ProducePacketName [08:59:17]name=ofd_packets/00118681 [08:59:17]NVStorageDeleteData [08:59:17]Write to MH i2c: 01 00 00 B1 39 EA [08:59:17]Write i2c OK [08:59:17]MH_I2C_Read... [08:59:17]Read from MH i2c: 01 [08:59:17]MH_I2C_Read... [08:59:17]Read from MH i2c: 01 07 00 [08:59:17]MH_I2C_Read... [08:59:17]Read from MH i2c: 01 07 00 B1 39 00 00 00 00 00 DC 0C D9 [08:59:17]RasterBufferAndPrint [08:59:17]line [08:59:17]line [08:59:17]line [08:59:17]line [08:59:17]line [08:59:17]written 0, free lines is 3297 [08:59:17]MH_Cut [08:59:17]Write to MH i2c: D1 01 00 B8 39 01 C3 [08:59:17]Write i2c OK [08:59:17]MH_I2C_Read... [08:59:17]Read from MH i2c: D1 [08:59:17]MH_I2C_Read... [08:59:17]Read from MH i2c: D1 01 00 [08:59:17]MH_I2C_Read... [08:59:17]Read from MH i2c: D1 01 00 B8 39 00 C2 [08:59:17]Write to MH i2c: 01 00 00 B9 39 F2 [08:59:17]Write i2c OK [08:59:17]MH_I2C_Read... [08:59:17]OFD Sender: No OFD packet to send [08:59:17]*** Cut start [08:59:17]*** Partial cut [08:59:17]*** CUTSNS_PIN = 1 [08:59:18]*** CUTSNS_PIN = 0 [08:59:18]*** Brake cut motor [08:59:18]Read from MH i2c: 01 [08:59:18]MH_I2C_Read... [08:59:18]*** Stop cut motor [08:59:18]*** Cut end [08:59:18]Read from MH i2c: 01 07 00 [08:59:18]MH_I2C_Read... [08:59:18]Read from MH i2c: 01 07 00 B9 39 00 00 00 00 00 FF 0F 07 [08:59:18]process_action close_receipt done [08:59:18]requested_data is exist [08:59:18]produce_requested_data [08:59:18]requested_item fm.sn is exist - process it [08:59:18]wFMCommunicate request_size=4 [08:59:18]MH_SAM_APDU [08:59:18]CAPDU: 80 11 00 00 [08:59:18]Write to MH i2c: E2 08 00 BA 39 80 11 00 00 00 00 00 00 6D [08:59:18]Write i2c OK [08:59:18]MH_I2C_Read... [08:59:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:18]Read from MH i2c: E2 [08:59:18]MH_I2C_Read... [08:59:18]Read from MH i2c: E2 17 00 [08:59:18]MH_I2C_Read... [08:59:18]Read from MH i2c: E2 17 00 BA 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C8 [08:59:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:59:18]wFMCommunicate OK [08:59:18]requested_item fd.num is exist - process it [08:59:18]SAM_PROTO_GetFieldsCounters [08:59:18]wFMCommunicate request_size=4 [08:59:18]MH_SAM_APDU [08:59:18]CAPDU: 80 13 00 00 [08:59:18]Write to MH i2c: E2 08 00 BB 39 80 13 00 00 00 00 00 00 70 [08:59:18]Write i2c OK [08:59:18]MH_I2C_Read... [08:59:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:18]Read from MH i2c: E2 [08:59:18]MH_I2C_Read... [08:59:18]Read from MH i2c: E2 62 00 [08:59:18]MH_I2C_Read... [08:59:18]Read from MH i2c: E2 62 00 BB 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 99 CF 01 00 0E 04 04 00 B2 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 5E [08:59: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 99 CF 01 00 0E 04 04 00 B2 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 [08:59:18]wFMCommunicate OK [08:59:18]SAM_PROTO_GetFieldsCounters done [08:59:18]requested_item shift.num is exist - process it [08:59:18]requested_item shift.opened is exist - process it [08:59:18]req_shift_opened [08:59:18]FM_GetShiftState [08:59:18]SAM_PROTO_GetShiftState [08:59:18]wFMCommunicate request_size=4 [08:59:18]MH_SAM_APDU [08:59:18]CAPDU: 80 13 01 00 [08:59:18]Write to MH i2c: E2 08 00 BC 39 80 13 01 00 00 00 00 00 72 [08:59:18]Write i2c OK [08:59:18]MH_I2C_Read... [08:59:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:18]Read from MH i2c: E2 [08:59:18]MH_I2C_Read... [08:59:18]Read from MH i2c: E2 0E 00 [08:59:18]MH_I2C_Read... [08:59:18]Read from MH i2c: E2 0E 00 BC 39 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A0 [08:59:18]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:59:18]wFMCommunicate OK [08:59:18]SAM_PROTO_GetShiftState done [08:59:18]FM_GetShiftState done [08:59:18]req_shift_opened done [08:59:18]requested_item shift.open_date is exist - process it [08:59:18]req_shift_open_date [08:59:18]req_shift_open_date done [08:59:18]produce_requested_data done [08:59:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118681,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:59:18]process_action_free close_receipt [08:59:18]json_value_free [08:59:18]json_value_free done [08:59:18]process_json_proto returns [08:59:18]Send response to host [08:59:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118681,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:59:18]free response buf [08:59:18]execute_script done [08:59:18]execute_script returns [08:59:18]free content buf [08:59:18]Sock 7.Close socket [08:59:18]Sock 7.Thread stoped [08:59:22]OFD Sender: No OFD packet to send [08:59:26]accept exits with 9 [08:59:26]New connection [08:59:26]New thread 3067383140 created [08:59:26]Thread 3067239780 joined [08:59:26]Waiting for new connection... [08:59:26] Sock 9.Parse request [08:59:26]Sock 9.Check first char [08:59:26]Sock 9.First char is OK [08:59:26]request: POST /json_proto HTTP/1.0 [08:59:26]Method: POST [08:59:26]URL: /json_proto [08:59:26]Method is POST - this is cgi request [08:59:26]url: /json_proto [08:59:26]query_string will be loaded in cgi processing [08:59:26]execute_cgi json_proto POST (null) [08:59:26]execute_cgi path=json_proto method=POST [08:59:26]POST find Content-Length [08:59:26]Host: 172.17.45.7:8080 [08:59:26]Content-Length: 679 [08:59:26]Content-Type: application/json [08:59:26] [08:59:26]POST finish read [08:59:26]Found Content-Length = 679 [08:59:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:26]execute_script... [08:59:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:26]POST & json_proto [08:59:26]process_json_proto [08:59:26]json parsed OK: [08:59:26]protocol is kg_v1.0 [08:59:26]action value=close_receipt [08:59:26]process_action close_receipt [08:59:26]cmd_close_receipt [08:59:26]MH_GetDate [08:59:26]Write to MH i2c: F0 00 00 BD 39 E5 [08:59:26]Write i2c OK [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: F0 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: F0 09 00 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: F0 09 00 BD 39 00 F3 59 A7 66 90 0F 3E 66 8A [08:59:26]GetLastDocTimeStamp 1722243559 [08:59:26]current date 1722243571 [08:59:26]FM_GetShiftState [08:59:26]SAM_PROTO_GetShiftState [08:59:26]wFMCommunicate request_size=4 [08:59:26]MH_SAM_APDU [08:59:26]CAPDU: 80 13 01 00 [08:59:26]Write to MH i2c: E2 08 00 BE 39 80 13 01 00 00 00 00 00 74 [08:59:26]Write i2c OK [08:59:26]MH_I2C_Read... [08:59:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:26]Read from MH i2c: E2 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: E2 0E 00 [08:59:26]MH_I2C_Read... [08:59:26]Read from MH i2c: E2 0E 00 BE 39 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A2 [08:59:26]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:59:26]wFMCommunicate OK [08:59:26]SAM_PROTO_GetShiftState done [08:59:26]FM_GetShiftState done [08:59:26]opened in 1722211641 [08:59:26]opened+sec_in_day 1722298041 [08:59:26]quantity*price = 100050 [08:59:26]sum+1 = 100052 [08:59:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 58 29.07.2024 08:59 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118682 ФПД: 212704620902890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T085931&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118682&fm=212704620902890&tin=02508201610067®Number=0000000000092660&sum=100000 [08:59:27]StoreToDocumentArchive [08:59:27]shift 434 fd 118682 [08:59:27]save to /storage/0434/doc_00118682 [08:59:27]save last doc name /storage/0434/doc_00118682 to /storage/kkm_last_doc_name [08:59:27]save OK [08:59:27]Clear old archive folders... [08:59:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:59:27]tlvbuf is 01E58B10 [08:59:27]SAM_PROTO_ClearQueue [08:59:27]wFMCommunicate request_size=4 [08:59:27]MH_SAM_APDU [08:59:27]CAPDU: 80 09 00 00 [08:59:27]Write to MH i2c: E2 08 00 CB 39 80 09 00 00 00 00 00 00 76 [08:59:27]Write i2c OK [08:59:27]MH_I2C_Read... [08:59:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:27]Read from MH i2c: E2 [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: E2 03 00 [08:59:27]MH_I2C_Read... [08:59:27]Read from MH i2c: E2 03 00 CB 39 00 90 00 78 [08:59:27]RAPDU: 90 00 [08:59:27]wFMCommunicate OK [08:59:27]SAM_PROTO_ClearQueue done [08:59:27]KKMCreateOFDPacket [08:59:27]OFDProtocolAddRootSTLVToBuf [08:59:27]FM_MakeSignedData [08:59:27]FM_MakeSignedData [08:59:27]SAM_PROTO_SignData [08:59:27]wFMCommunicate request_size=4 [08:59:27]MH_SAM_APDU [08:59:27]CAPDU: 80 0D 01 02 [08:59:27]Write to MH i2c: E2 08 00 CC 39 80 0D 01 02 00 00 00 00 7E [08:59:27]Write i2c OK [08:59:27]MH_I2C_Read... [08:59:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:28]Read from MH i2c: E2 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 03 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 03 00 CC 39 00 90 00 79 [08:59:28]RAPDU: 90 00 [08:59:28]wFMCommunicate OK [08:59:28]wFMCommunicate request_size=255 [08:59:28]MH_SAM_APDU [08:59:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 F3 59 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9A CF 01 00 35 04 06 00 C1 74 27 5E [08:59:28]Write to MH i2c: E2 02 01 CD 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 F3 59 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9A CF 01 00 35 04 06 00 C1 74 27 5E 00 00 78 [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:28]Read from MH i2c: E2 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 03 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 03 00 CD 39 00 90 00 7A [08:59:28]RAPDU: 90 00 [08:59:28]wFMCommunicate OK [08:59:28]wFMCommunicate request_size=7 [08:59:28]MH_SAM_APDU [08:59:28]CAPDU: 80 0D 02 02 02 F9 EA [08:59:28]Write to MH i2c: E2 0A 00 CE 39 80 0D 02 02 02 00 F9 EA 00 00 68 [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:28]Read from MH i2c: E2 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 03 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 03 00 CE 39 00 90 00 7B [08:59:28]RAPDU: 90 00 [08:59:28]wFMCommunicate OK [08:59:28]wFMCommunicate request_size=4 [08:59:28]MH_SAM_APDU [08:59:28]CAPDU: 80 0D 03 02 [08:59:28]Write to MH i2c: E2 08 00 CF 39 80 0D 03 02 00 00 00 00 83 [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:28]Read from MH i2c: E2 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 0B 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 0B 00 CF 39 00 7F E3 02 08 77 BE 46 83 90 00 EE [08:59:28]RAPDU: 7F E3 02 08 77 BE 46 83 90 00 [08:59:28]wFMCommunicate OK [08:59:28]SAM_PROTO_SignData done [08:59:28]FM_MakeSignedData done [08:59:28]CreateOFDProtocolMessage [08:59:28]wFMCommunicate request_size=4 [08:59:28]MH_SAM_APDU [08:59:28]CAPDU: 80 11 00 00 [08:59:28]Write to MH i2c: E2 08 00 D0 39 80 11 00 00 00 00 00 00 83 [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:28]Read from MH i2c: E2 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 17 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: E2 17 00 D0 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DE [08:59:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:59:28]wFMCommunicate OK [08:59:28]CreateOFDProtocolMessage done [08:59:28]OFDSenderStorePacket 118682 [08:59:28]StoreOFDPacket docnum=118682 [08:59:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 1D 70 04 01 5E 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 F3 59 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9A CF 01 00 35 04 06 00 C1 74 27 5E F9 EA 7F E3 02 08 77 BE 46 83 [08:59:28]CheckFolder [08:59:28]dirname=/storage/ofd_packets [08:59:28]CheckFolder done [08:59:28]ProducePacketName [08:59:28]name=ofd_packets/00118682 [08:59:28]NVStorageSaveData ofd_packets/00118682 [08:59:28]File name is /storage/ofd_packets/00118682 [08:59:28]Write 298 bytes [08:59:28]NVStorageSaveData done [08:59:28]OFDSenderStorePacket done [08:59:28]KKMCreateOFDPacket done [08:59:28]NVStorageSaveData kkm_last_timestamp [08:59:28]File name is /storage/kkm_last_timestamp [08:59:28]Write 4 bytes [08:59:28]NVStorageSaveData done [08:59:28]ExternCall_PrintAddStr [08:59:28]wPrintStart [08:59:28]Write to MH i2c: 01 00 00 D1 39 0A [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: 01 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: 01 07 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: 01 07 00 D1 39 00 00 00 00 00 FF 0F 1F [08:59:28]RasterBufferAndPrint [08:59:28]line Счет N : (1)949564 [08:59:28]line ИНН: 02508201610067 [08:59:28]line Контрольно-Кассовый Чек [08:59:28]line ПРОДАЖА [08:59:28]line ТРК (МРК, ГНК) : 44 [08:59:28]line Товар: 2710194800 [08:59:28]line ДТ-К-5 [08:59:28]line 13.130 * 76.20 [08:59:28]line = 1000.51 [08:59:28]line НДС 12% НСП 1% [08:59:28]line > о реализуемом товаре [08:59:28]line ОКРУГЛЕНИЕ: -0.51 [08:59:28]line ИТОГО: 1000.00 [08:59:28]line Внесено: 1000.00 [08:59:28]line СДАЧА: 0.00 [08:59:28]line НСП 1% : 8.85 [08:59:28]line НДС 12% : 106.25 [08:59:28]line Наличными: 1000.00 [08:59:28]line Безнал.: 0.00 [08:59:28]line Место: АЗС № 134 "Партнер Нефть" [08:59:28]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:59:28]line СНО: Общий режим [08:59:28]line Чек 58 29.07.2024 08:59 [08:59:28]line Смена: 434 ФФД: 1.0 [08:59:28]line ЗНМ: 0300000044 [08:59:28]line РНМ: 0000000000092660 [08:59:28]line Версия ККМ: 001 [08:59:28]line ФМ: 0000000000874939 [08:59:28]line ФД: 118682 [08:59:28]line ФПД: 212704620902890 [08:59:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T085931&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118682&fm=212704620902890&tin=02508201610067®Number=0000000000092660&sum=100000 [08:59:28]OFD Sender: Processing packet 118682 [packets to send 86, broken 85] [08:59:28]ProducePacketName [08:59:28]name=ofd_packets/00118682 [08:59:28]OFD Sender: To server: pG, [08:59:28]CommunicateWithHost lk.salyk.kg:30040 [08:59:28]ConnectInit lk.salyk.kg [08:59:28]written 0, free lines is 4095 [08:59:28]Connected sock=10 [08:59:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 1D 70 04 01 5E 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 F3 59 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9A CF 01 00 35 04 06 00 C1 74 27 5E F9 EA 7F E3 02 08 77 BE 46 83 [08:59:29]Write to MH i2c: 01 00 00 FB 39 34 [08:59:29]Write i2c OK [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: 01 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: 01 07 00 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: 01 07 00 FB 39 00 00 00 00 00 DE 0C 25 [08:59:29]RasterBufferAndPrint [08:59:29]line [08:59:29]line [08:59:29]line [08:59:29]line [08:59:29]line [08:59:29]written 0, free lines is 3299 [08:59:29]MH_Cut [08:59:29]Write to MH i2c: D1 01 00 02 3A 01 0E [08:59:29]Write i2c OK [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: D1 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: D1 01 00 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: D1 01 00 02 3A 00 0D [08:59:29]Write to MH i2c: 01 00 00 03 3A 3D [08:59:29]Write i2c OK [08:59:29]MH_I2C_Read... [08:59:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E3 03 47 00 34 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9A CF 01 00 F4 03 04 00 82 07 A7 66 B6 04 01 00 00 0D 2A 72 2B 92 5E C1 0F [08:59:29]CommunicateWithHost err = 0 [08:59:29]CheckOFDResponse [08:59:29]1017 (14) - 77093643461234 [08:59:29]1041 (16) - 0000000000874939 [08:59:29]1040 (4) - 118682 [08:59:29]1012 (4) - 29.07.2024 03:07 [08:59:29]1206 (1) - 0 [08:59:29]OFD Sender: Remove packet 118682 [08:59:29]ProducePacketName [08:59:29]name=ofd_packets/00118682 [08:59:29]NVStorageDeleteData [08:59:29]OFD Sender: No OFD packet to send [08:59:29]*** Cut start [08:59:29]*** Partial cut [08:59:29]*** CUTSNS_PIN = 1 [08:59:30]*** CUTSNS_PIN = 0 [08:59:30]*** Brake cut motor [08:59:30]Read from MH i2c: 01 [08:59:30]MH_I2C_Read... [08:59:30]*** Stop cut motor [08:59:30]*** Cut end [08:59:30]Read from MH i2c: 01 07 00 [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: 01 07 00 03 3A 00 00 00 00 00 FF 0F 52 [08:59:30]process_action close_receipt done [08:59:30]requested_data is exist [08:59:30]produce_requested_data [08:59:30]requested_item fm.sn is exist - process it [08:59:30]wFMCommunicate request_size=4 [08:59:30]MH_SAM_APDU [08:59:30]CAPDU: 80 11 00 00 [08:59:30]Write to MH i2c: E2 08 00 04 3A 80 11 00 00 00 00 00 00 B8 [08:59:30]Write i2c OK [08:59:30]MH_I2C_Read... [08:59:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:30]Read from MH i2c: E2 [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: E2 17 00 [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: E2 17 00 04 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 13 [08:59:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:59:30]wFMCommunicate OK [08:59:30]requested_item fd.num is exist - process it [08:59:30]SAM_PROTO_GetFieldsCounters [08:59:30]wFMCommunicate request_size=4 [08:59:30]MH_SAM_APDU [08:59:30]CAPDU: 80 13 00 00 [08:59:30]Write to MH i2c: E2 08 00 05 3A 80 13 00 00 00 00 00 00 BB [08:59:30]Write i2c OK [08:59:30]MH_I2C_Read... [08:59:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:30]Read from MH i2c: E2 [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: E2 62 00 [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: E2 62 00 05 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9A CF 01 00 0E 04 04 00 B2 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 AD [08:59: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9A CF 01 00 0E 04 04 00 B2 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 [08:59:30]wFMCommunicate OK [08:59:30]SAM_PROTO_GetFieldsCounters done [08:59:30]requested_item shift.num is exist - process it [08:59:30]requested_item shift.opened is exist - process it [08:59:30]req_shift_opened [08:59:30]FM_GetShiftState [08:59:30]SAM_PROTO_GetShiftState [08:59:30]wFMCommunicate request_size=4 [08:59:30]MH_SAM_APDU [08:59:30]CAPDU: 80 13 01 00 [08:59:30]Write to MH i2c: E2 08 00 06 3A 80 13 01 00 00 00 00 00 BD [08:59:30]Write i2c OK [08:59:30]MH_I2C_Read... [08:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:30]Read from MH i2c: E2 [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: E2 0E 00 [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: E2 0E 00 06 3A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 EB [08:59:30]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [08:59:30]wFMCommunicate OK [08:59:30]SAM_PROTO_GetShiftState done [08:59:30]FM_GetShiftState done [08:59:30]req_shift_opened done [08:59:30]requested_item shift.open_date is exist - process it [08:59:30]req_shift_open_date [08:59:30]req_shift_open_date done [08:59:30]produce_requested_data done [08:59:30]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118682,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [08:59:30]process_action_free close_receipt [08:59:30]json_value_free [08:59:30]json_value_free done [08:59:30]process_json_proto returns [08:59:30]Send response to host [08:59:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118682,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [08:59:30]free response buf [08:59:30]execute_script done [08:59:30]execute_script returns [08:59:30]free content buf [08:59:30]Sock 9.Close socket [08:59:30]Sock 9.Thread stoped [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:49]OFD Sender: No OFD packet to send [08:59:54]OFD Sender: No OFD packet to send [08:59:59]OFD Sender: No OFD packet to send [09:00:04]OFD Sender: No OFD packet to send [09:00:09]OFD Sender: No OFD packet to send [09:00:14]OFD Sender: No OFD packet to send [09:00:19]OFD Sender: No OFD packet to send [09:00:24]OFD Sender: No OFD packet to send [09:00:29]OFD Sender: No OFD packet to send [09:00:34]OFD Sender: No OFD packet to send [09:00:39]OFD Sender: No OFD packet to send [09:00:44]OFD Sender: No OFD packet to send [09:00:49]OFD Sender: No OFD packet to send [09:00:54]OFD Sender: No OFD packet to send [09:00:59]OFD Sender: No OFD packet to send [09:01:04]OFD Sender: No OFD packet to send [09:01:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:57]accept exits with 7 [09:01:57]New connection [09:01:57]New thread 3067239780 created [09:01:57]Thread 3067383140 joined [09:01:57]Waiting for new connection... [09:01:57] Sock 7.Parse request [09:01:57]Sock 7.Check first char [09:01:57]Sock 7.First char is OK [09:01:57]request: POST /json_proto HTTP/1.0 [09:01:57]Method: POST [09:01:57]URL: /json_proto [09:01:57]Method is POST - this is cgi request [09:01:57]url: /json_proto [09:01:57]query_string will be loaded in cgi processing [09:01:57]execute_cgi json_proto POST (null) [09:01:57]execute_cgi path=json_proto method=POST [09:01:57]POST find Content-Length [09:01:57]Host: 172.17.45.7:8080 [09:01:57]Content-Length: 819 [09:01:57]Content-Type: application/json [09:01:57] [09:01:57]POST finish read [09:01:57]Found Content-Length = 819 [09:01:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:57]execute_script... [09:01:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:57]POST & json_proto [09:01:57]process_json_proto [09:01:57]json parsed OK: [09:01:57]protocol is kg_v1.0 [09:01:57]action value=close_receipt [09:01:57]process_action close_receipt [09:01:57]cmd_close_receipt [09:01:57]MH_GetDate [09:01:57]Write to MH i2c: F0 00 00 07 3A 30 [09:01:57]Write i2c OK [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: F0 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: F0 09 00 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: F0 09 00 07 3A 00 8A 5A A7 66 90 0F 3E 66 6D [09:01:57]GetLastDocTimeStamp 1722243571 [09:01:57]current date 1722243722 [09:01:57]FM_GetShiftState [09:01:57]SAM_PROTO_GetShiftState [09:01:57]wFMCommunicate request_size=4 [09:01:57]MH_SAM_APDU [09:01:57]CAPDU: 80 13 01 00 [09:01:57]Write to MH i2c: E2 08 00 08 3A 80 13 01 00 00 00 00 00 BF [09:01:57]Write i2c OK [09:01:57]MH_I2C_Read... [09:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:57]Read from MH i2c: E2 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: E2 0E 00 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: E2 0E 00 08 3A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 ED [09:01:57]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:01:57]wFMCommunicate OK [09:01:57]SAM_PROTO_GetShiftState done [09:01:57]FM_GetShiftState done [09:01:57]opened in 1722211641 [09:01:57]opened+sec_in_day 1722298041 [09:01:57]quantity*price = 200025 [09:01:57]sum+1 = 200026 [09:01:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 59 29.07.2024 09:02 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118683 ФПД: 184464464173644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T090202&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118683&fm=184464464173644&tin=02508201610067®Number=0000000000092660&sum=200000 [09:01:58]StoreToDocumentArchive [09:01:58]shift 434 fd 118683 [09:01:58]save to /storage/0434/doc_00118683 [09:01:58]save last doc name /storage/0434/doc_00118683 to /storage/kkm_last_doc_name [09:01:58]save OK [09:01:58]Clear old archive folders... [09:01:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:01:58]tlvbuf is 01E4D5A0 [09:01:58]SAM_PROTO_ClearQueue [09:01:58]wFMCommunicate request_size=4 [09:01:58]MH_SAM_APDU [09:01:58]CAPDU: 80 09 00 00 [09:01:58]Write to MH i2c: E2 08 00 15 3A 80 09 00 00 00 00 00 00 C1 [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:58]Read from MH i2c: E2 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 03 00 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 03 00 15 3A 00 90 00 C3 [09:01:58]RAPDU: 90 00 [09:01:58]wFMCommunicate OK [09:01:58]SAM_PROTO_ClearQueue done [09:01:58]KKMCreateOFDPacket [09:01:58]OFDProtocolAddRootSTLVToBuf [09:01:58]FM_MakeSignedData [09:01:58]FM_MakeSignedData [09:01:58]SAM_PROTO_SignData [09:01:58]wFMCommunicate request_size=4 [09:01:58]MH_SAM_APDU [09:01:58]CAPDU: 80 0D 01 02 [09:01:58]Write to MH i2c: E2 08 00 16 3A 80 0D 01 02 00 00 00 00 C9 [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:58]Read from MH i2c: E2 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 03 00 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 03 00 16 3A 00 90 00 C4 [09:01:58]RAPDU: 90 00 [09:01:58]wFMCommunicate OK [09:01:58]wFMCommunicate request_size=255 [09:01:58]MH_SAM_APDU [09:01:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 8A 5A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9B CF 01 00 35 04 06 00 A7 C4 FA DC [09:01:58]Write to MH i2c: E2 02 01 17 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 8A 5A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9B CF 01 00 35 04 06 00 A7 C4 FA DC 00 00 D2 [09:01:59]Write i2c OK [09:01:59]MH_I2C_Read... [09:01:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:59]Read from MH i2c: E2 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: E2 03 00 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: E2 03 00 17 3A 00 90 00 C5 [09:01:59]RAPDU: 90 00 [09:01:59]wFMCommunicate OK [09:01:59]wFMCommunicate request_size=7 [09:01:59]MH_SAM_APDU [09:01:59]CAPDU: 80 0D 02 02 02 5A 4C [09:01:59]Write to MH i2c: E2 0A 00 18 3A 80 0D 02 02 02 00 5A 4C 00 00 76 [09:01:59]Write i2c OK [09:01:59]MH_I2C_Read... [09:01:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:59]Read from MH i2c: E2 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: E2 03 00 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: E2 03 00 18 3A 00 90 00 C6 [09:01:59]RAPDU: 90 00 [09:01:59]wFMCommunicate OK [09:01:59]wFMCommunicate request_size=4 [09:01:59]MH_SAM_APDU [09:01:59]CAPDU: 80 0D 03 02 [09:01:59]Write to MH i2c: E2 08 00 19 3A 80 0D 03 02 00 00 00 00 CE [09:01:59]Write i2c OK [09:01:59]MH_I2C_Read... [09:01:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:59]Read from MH i2c: E2 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: E2 0B 00 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: E2 0B 00 19 3A 00 29 C4 43 32 68 92 4B 12 90 00 88 [09:01:59]RAPDU: 29 C4 43 32 68 92 4B 12 90 00 [09:01:59]wFMCommunicate OK [09:01:59]SAM_PROTO_SignData done [09:01:59]FM_MakeSignedData done [09:01:59]CreateOFDProtocolMessage [09:01:59]wFMCommunicate request_size=4 [09:01:59]MH_SAM_APDU [09:01:59]CAPDU: 80 11 00 00 [09:01:59]Write to MH i2c: E2 08 00 1A 3A 80 11 00 00 00 00 00 00 CE [09:01:59]Write i2c OK [09:01:59]MH_I2C_Read... [09:01:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:59]Read from MH i2c: E2 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: E2 17 00 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: E2 17 00 1A 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 29 [09:01:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:01:59]wFMCommunicate OK [09:01:59]CreateOFDProtocolMessage done [09:01:59]OFDSenderStorePacket 118683 [09:01:59]StoreOFDPacket docnum=118683 [09:01:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 6E F0 04 01 56 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 8A 5A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9B CF 01 00 35 04 06 00 A7 C4 FA DC 5A 4C 29 C4 43 32 68 92 4B 12 [09:01:59]CheckFolder [09:01:59]dirname=/storage/ofd_packets [09:01:59]CheckFolder done [09:01:59]ProducePacketName [09:01:59]name=ofd_packets/00118683 [09:01:59]NVStorageSaveData ofd_packets/00118683 [09:01:59]File name is /storage/ofd_packets/00118683 [09:01:59]Write 298 bytes [09:01:59]NVStorageSaveData done [09:01:59]OFDSenderStorePacket done [09:01:59]KKMCreateOFDPacket done [09:01:59]NVStorageSaveData kkm_last_timestamp [09:01:59]File name is /storage/kkm_last_timestamp [09:01:59]Write 4 bytes [09:01:59]NVStorageSaveData done [09:01:59]ExternCall_PrintAddStr [09:01:59]wPrintStart [09:01:59]Write to MH i2c: 01 00 00 1B 3A 55 [09:01:59]Write i2c OK [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: 01 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: 01 07 00 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: 01 07 00 1B 3A 00 00 00 00 00 FF 0F 6A [09:01:59]RasterBufferAndPrint [09:01:59]line Счет N : (1)949566 [09:01:59]line ИНН: 02508201610067 [09:01:59]line Контрольно-Кассовый Чек [09:01:59]line ПРОДАЖА [09:01:59]line ТРК (МРК, ГНК) : 21 [09:01:59]line Товар: 2710194800 [09:01:59]line ДТ-К-5 [09:01:59]line 26.250 * 76.20 [09:01:59]line = 2000.25 [09:01:59]line НДС 12% НСП 1% [09:01:59]line > о реализуемом товаре [09:01:59]line ОКРУГЛЕНИЕ: -0.25 [09:01:59]line ИТОГО: 2000.00 [09:01:59]line НСП 1% : 17.70 [09:01:59]line НДС 12% : 212.42 [09:01:59]line Наличными: 0.00 [09:01:59]line Безнал.: 2000.00 [09:01:59]line Место: АЗС № 134 "Партнер Нефть" [09:01:59]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:01:59]line СНО: Общий режим [09:01:59]line Чек 59 29.07.2024 09:02 [09:01:59]line Смена: 434 ФФД: 1.0 [09:01:59]line ЗНМ: 0300000044 [09:01:59]line РНМ: 0000000000092660 [09:01:59]line Версия ККМ: 001 [09:01:59]line Платежная система: O! деньги [09:01:59]line ФМ: 0000000000874939 [09:01:59]line ФД: 118683 [09:01:59]line ФПД: 184464464173644 [09:01:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T090202&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118683&fm=184464464173644&tin=02508201610067®Number=0000000000092660&sum=200000 [09:01:59]written 0, free lines is 4095 [09:01:59]OFD Sender: Processing packet 118683 [packets to send 86, broken 85] [09:01:59]ProducePacketName [09:01:59]name=ofd_packets/00118683 [09:01:59]OFD Sender: To server: pG, [09:01:59]CommunicateWithHost lk.salyk.kg:30040 [09:01:59]ConnectInit lk.salyk.kg [09:01:59]Connected sock=10 [09:01:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 6E F0 04 01 56 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 8A 5A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9B CF 01 00 35 04 06 00 A7 C4 FA DC 5A 4C 29 C4 43 32 68 92 4B 12 [09:01:59]Write to MH i2c: 01 00 00 45 3A 7F [09:01:59]Write i2c OK [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: 01 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: 01 07 00 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: 01 07 00 45 3A 00 00 00 00 00 DE 0C 70 [09:01:59]RasterBufferAndPrint [09:01:59]line [09:01:59]line [09:01:59]line [09:01:59]line [09:01:59]line [09:01:59]written 0, free lines is 3300 [09:01:59]MH_Cut [09:01:59]Write to MH i2c: D1 01 00 4C 3A 01 58 [09:01:59]Write i2c OK [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: D1 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: D1 01 00 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: D1 01 00 4C 3A 00 57 [09:01:59]Write to MH i2c: 01 00 00 4D 3A 87 [09:01:59]Write i2c OK [09:01:59]MH_I2C_Read... [09:02:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 49 39 47 00 F2 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9B CF 01 00 F4 03 04 00 18 08 A7 66 B6 04 01 00 00 D5 78 BF D5 18 2A BE AA [09:02:00]CommunicateWithHost err = 0 [09:02:00]CheckOFDResponse [09:02:00]1017 (14) - 77093643461234 [09:02:00]1041 (16) - 0000000000874939 [09:02:00]1040 (4) - 118683 [09:02:00]1012 (4) - 29.07.2024 03:10 [09:02:00]1206 (1) - 0 [09:02:00]OFD Sender: Remove packet 118683 [09:02:00]ProducePacketName [09:02:00]name=ofd_packets/00118683 [09:02:00]NVStorageDeleteData [09:02:00]OFD Sender: No OFD packet to send [09:02:00]*** Cut start [09:02:00]*** Partial cut [09:02:00]*** CUTSNS_PIN = 1 [09:02:00]*** CUTSNS_PIN = 0 [09:02:00]*** Brake cut motor [09:02:01]Read from MH i2c: 01 [09:02:01]MH_I2C_Read... [09:02:01]*** Stop cut motor [09:02:01]*** Cut end [09:02:01]Read from MH i2c: 01 07 00 [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: 01 07 00 4D 3A 00 00 00 00 00 FF 0F 9C [09:02:01]process_action close_receipt done [09:02:01]requested_data is exist [09:02:01]produce_requested_data [09:02:01]requested_item fm.sn is exist - process it [09:02:01]wFMCommunicate request_size=4 [09:02:01]MH_SAM_APDU [09:02:01]CAPDU: 80 11 00 00 [09:02:01]Write to MH i2c: E2 08 00 4E 3A 80 11 00 00 00 00 00 00 02 [09:02:01]Write i2c OK [09:02:01]MH_I2C_Read... [09:02:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:01]Read from MH i2c: E2 [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: E2 17 00 [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: E2 17 00 4E 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5D [09:02:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:02:01]wFMCommunicate OK [09:02:01]requested_item fd.num is exist - process it [09:02:01]SAM_PROTO_GetFieldsCounters [09:02:01]wFMCommunicate request_size=4 [09:02:01]MH_SAM_APDU [09:02:01]CAPDU: 80 13 00 00 [09:02:01]Write to MH i2c: E2 08 00 4F 3A 80 13 00 00 00 00 00 00 05 [09:02:01]Write i2c OK [09:02:01]MH_I2C_Read... [09:02:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:01]Read from MH i2c: E2 [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: E2 62 00 [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: E2 62 00 4F 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9B CF 01 00 0E 04 04 00 B2 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 FB [09:02: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9B CF 01 00 0E 04 04 00 B2 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 [09:02:01]wFMCommunicate OK [09:02:01]SAM_PROTO_GetFieldsCounters done [09:02:01]requested_item shift.num is exist - process it [09:02:01]requested_item shift.opened is exist - process it [09:02:01]req_shift_opened [09:02:01]FM_GetShiftState [09:02:01]SAM_PROTO_GetShiftState [09:02:01]wFMCommunicate request_size=4 [09:02:01]MH_SAM_APDU [09:02:01]CAPDU: 80 13 01 00 [09:02:01]Write to MH i2c: E2 08 00 50 3A 80 13 01 00 00 00 00 00 07 [09:02:01]Write i2c OK [09:02:01]MH_I2C_Read... [09:02:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:01]Read from MH i2c: E2 [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: E2 0E 00 [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: E2 0E 00 50 3A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 35 [09:02:01]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:02:01]wFMCommunicate OK [09:02:01]SAM_PROTO_GetShiftState done [09:02:01]FM_GetShiftState done [09:02:01]req_shift_opened done [09:02:01]requested_item shift.open_date is exist - process it [09:02:01]req_shift_open_date [09:02:01]req_shift_open_date done [09:02:01]produce_requested_data done [09:02:01]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118683,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:02:01]process_action_free close_receipt [09:02:01]json_value_free [09:02:01]json_value_free done [09:02:01]process_json_proto returns [09:02:01]Send response to host [09:02:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118683,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:02:01]free response buf [09:02:01]execute_script done [09:02:01]execute_script returns [09:02:01]free content buf [09:02:01]Sock 7.Close socket [09:02:01]Sock 7.Thread stoped [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:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [09:04:45]OFD Sender: No OFD packet to send [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:25]accept exits with 9 [09:05:25]New connection [09:05:25]New thread 3067383140 created [09:05:25]Thread 3067239780 joined [09:05:25]Waiting for new connection... [09:05:25] Sock 9.Parse request [09:05:25]Sock 9.Check first char [09:05:25]Sock 9.First char is OK [09:05:25]request: POST /json_proto HTTP/1.0 [09:05:25]Method: POST [09:05:25]URL: /json_proto [09:05:25]Method is POST - this is cgi request [09:05:25]url: /json_proto [09:05:25]query_string will be loaded in cgi processing [09:05:25]execute_cgi json_proto POST (null) [09:05:25]execute_cgi path=json_proto method=POST [09:05:25]POST find Content-Length [09:05:25]Host: 172.17.45.7:8080 [09:05:25]Content-Length: 835 [09:05:25]Content-Type: application/json [09:05:25] [09:05:25]POST finish read [09:05:25]Found Content-Length = 835 [09:05:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 39.720, "sum" : 3000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:25]execute_script... [09:05:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 39.720, "sum" : 3000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:25]POST & json_proto [09:05:25]process_json_proto [09:05:25]json parsed OK: [09:05:25]protocol is kg_v1.0 [09:05:25]action value=close_receipt [09:05:25]process_action close_receipt [09:05:25]cmd_close_receipt [09:05:25]MH_GetDate [09:05:25]Write to MH i2c: F0 00 00 51 3A 7A [09:05:25]Write i2c OK [09:05:25]MH_I2C_Read... [09:05:25]Read from MH i2c: F0 [09:05:25]MH_I2C_Read... [09:05:25]Read from MH i2c: F0 09 00 [09:05:25]MH_I2C_Read... [09:05:25]Read from MH i2c: F0 09 00 51 3A 00 5A 5B A7 66 90 0F 3E 66 88 [09:05:25]GetLastDocTimeStamp 1722243722 [09:05:25]current date 1722243930 [09:05:25]FM_GetShiftState [09:05:25]SAM_PROTO_GetShiftState [09:05:25]wFMCommunicate request_size=4 [09:05:25]MH_SAM_APDU [09:05:25]CAPDU: 80 13 01 00 [09:05:25]Write to MH i2c: E2 08 00 52 3A 80 13 01 00 00 00 00 00 09 [09:05:25]Write i2c OK [09:05:25]MH_I2C_Read... [09:05:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:26]Read from MH i2c: E2 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 0E 00 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 0E 00 52 3A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 37 [09:05:26]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:05:26]wFMCommunicate OK [09:05:26]SAM_PROTO_GetShiftState done [09:05:26]FM_GetShiftState done [09:05:26]opened in 1722211641 [09:05:26]opened+sec_in_day 1722298041 [09:05:26]quantity*price = 300005 [09:05:26]sum+1 = 300006 [09:05:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.59 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 60 29.07.2024 09:05 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 118684 ФПД: 74621310887573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T090530&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118684&fm=74621310887573&tin=02508201610067®Number=0000000000092660&sum=300000 [09:05:27]StoreToDocumentArchive [09:05:27]shift 434 fd 118684 [09:05:27]save to /storage/0434/doc_00118684 [09:05:27]save last doc name /storage/0434/doc_00118684 to /storage/kkm_last_doc_name [09:05:27]save OK [09:05:27]Clear old archive folders... [09:05:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:05:27]tlvbuf is 01E8A130 [09:05:27]SAM_PROTO_ClearQueue [09:05:27]wFMCommunicate request_size=4 [09:05:27]MH_SAM_APDU [09:05:27]CAPDU: 80 09 00 00 [09:05:27]Write to MH i2c: E2 08 00 5F 3A 80 09 00 00 00 00 00 00 0B [09:05:27]Write i2c OK [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: E2 [09:05:27]MH_I2C_Read... [09:05:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:27]Read from MH i2c: E2 03 00 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: E2 03 00 5F 3A 00 90 00 0D [09:05:27]RAPDU: 90 00 [09:05:27]wFMCommunicate OK [09:05:27]SAM_PROTO_ClearQueue done [09:05:27]KKMCreateOFDPacket [09:05:27]OFDProtocolAddRootSTLVToBuf [09:05:27]FM_MakeSignedData [09:05:27]FM_MakeSignedData [09:05:27]SAM_PROTO_SignData [09:05:27]wFMCommunicate request_size=4 [09:05:27]MH_SAM_APDU [09:05:27]CAPDU: 80 0D 01 02 [09:05:27]Write to MH i2c: E2 08 00 60 3A 80 0D 01 02 00 00 00 00 13 [09:05:27]Write i2c OK [09:05:27]MH_I2C_Read... [09:05:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:27]Read from MH i2c: E2 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: E2 03 00 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: E2 03 00 60 3A 00 90 00 0E [09:05:27]RAPDU: 90 00 [09:05:27]wFMCommunicate OK [09:05:27]wFMCommunicate request_size=255 [09:05:27]MH_SAM_APDU [09:05:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 9B 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 E5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 5A 5B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9C CF 01 00 35 04 06 00 43 DE 20 BA [09:05:27]Write to MH i2c: E2 02 01 61 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 9B 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 E5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 5A 5B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9C CF 01 00 35 04 06 00 43 DE 20 BA 00 00 B6 [09:05:27]Write i2c OK [09:05:27]MH_I2C_Read... [09:05:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:27]Read from MH i2c: E2 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: E2 03 00 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: E2 03 00 61 3A 00 90 00 0F [09:05:27]RAPDU: 90 00 [09:05:27]wFMCommunicate OK [09:05:27]wFMCommunicate request_size=7 [09:05:27]MH_SAM_APDU [09:05:27]CAPDU: 80 0D 02 02 02 66 95 [09:05:27]Write to MH i2c: E2 0A 00 62 3A 80 0D 02 02 02 00 66 95 00 00 15 [09:05:27]Write i2c OK [09:05:27]MH_I2C_Read... [09:05:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:27]Read from MH i2c: E2 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: E2 03 00 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: E2 03 00 62 3A 00 90 00 10 [09:05:27]RAPDU: 90 00 [09:05:27]wFMCommunicate OK [09:05:27]wFMCommunicate request_size=4 [09:05:27]MH_SAM_APDU [09:05:27]CAPDU: 80 0D 03 02 [09:05:27]Write to MH i2c: E2 08 00 63 3A 80 0D 03 02 00 00 00 00 18 [09:05:27]Write i2c OK [09:05:27]MH_I2C_Read... [09:05:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:27]Read from MH i2c: E2 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: E2 0B 00 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: E2 0B 00 63 3A 00 E7 91 1D 94 21 E4 F9 5B 90 00 9B [09:05:27]RAPDU: E7 91 1D 94 21 E4 F9 5B 90 00 [09:05:27]wFMCommunicate OK [09:05:27]SAM_PROTO_SignData done [09:05:27]FM_MakeSignedData done [09:05:27]CreateOFDProtocolMessage [09:05:27]wFMCommunicate request_size=4 [09:05:27]MH_SAM_APDU [09:05:27]CAPDU: 80 11 00 00 [09:05:27]Write to MH i2c: E2 08 00 64 3A 80 11 00 00 00 00 00 00 18 [09:05:27]Write i2c OK [09:05:27]MH_I2C_Read... [09:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:27]Read from MH i2c: E2 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: E2 17 00 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: E2 17 00 64 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 73 [09:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:05:27]wFMCommunicate OK [09:05:27]CreateOFDProtocolMessage done [09:05:27]OFDSenderStorePacket 118684 [09:05:27]StoreOFDPacket docnum=118684 [09:05:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 51 1E 04 01 32 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 9B 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 E5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 5A 5B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9C CF 01 00 35 04 06 00 43 DE 20 BA 66 95 E7 91 1D 94 21 E4 F9 5B [09:05:27]CheckFolder [09:05:27]dirname=/storage/ofd_packets [09:05:27]CheckFolder done [09:05:27]ProducePacketName [09:05:27]name=ofd_packets/00118684 [09:05:27]NVStorageSaveData ofd_packets/00118684 [09:05:27]File name is /storage/ofd_packets/00118684 [09:05:27]Write 298 bytes [09:05:27]NVStorageSaveData done [09:05:27]OFDSenderStorePacket done [09:05:27]KKMCreateOFDPacket done [09:05:27]NVStorageSaveData kkm_last_timestamp [09:05:27]File name is /storage/kkm_last_timestamp [09:05:27]Write 4 bytes [09:05:27]NVStorageSaveData done [09:05:27]ExternCall_PrintAddStr [09:05:27]wPrintStart [09:05:27]Write to MH i2c: 01 00 00 65 3A 9F [09:05:27]Write i2c OK [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: 01 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: 01 07 00 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: 01 07 00 65 3A 00 00 00 00 00 FF 0F B4 [09:05:27]RasterBufferAndPrint [09:05:27]line Счет N : (1)949567 [09:05:27]line ИНН: 02508201610067 [09:05:27]line Контрольно-Кассовый Чек [09:05:27]line ПРОДАЖА [09:05:27]line ТРК (МРК, ГНК) : 44 [09:05:27]line Товар: 2710194800 [09:05:27]line ДТ-К-5 [09:05:27]line 39.720 * 75.53 [09:05:27]line = 3000.05 [09:05:27]line НДС 12% НСП 1% [09:05:27]line > о реализуемом товаре [09:05:27]line ОКРУГЛЕНИЕ: -0.05 [09:05:27]line ИТОГО: 3000.00 [09:05:27]line НСП 1% : 26.55 [09:05:27]line НДС 12% : 318.59 [09:05:27]line Наличными: 0.00 [09:05:27]line Безнал.: 3000.00 [09:05:27]line Место: АЗС № 134 "Партнер Нефть" [09:05:27]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:05:27]line СНО: Общий режим [09:05:27]line Чек 60 29.07.2024 09:05 [09:05:27]line Смена: 434 ФФД: 1.0 [09:05:27]line ЗНМ: 0300000044 [09:05:27]line РНМ: 0000000000092660 [09:05:27]line Версия ККМ: 001 [09:05:27]line Платежная система: Бакай Банк [09:05:27]line ФМ: 0000000000874939 [09:05:27]line ФД: 118684 [09:05:27]line ФПД: 74621310887573 [09:05:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T090530&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118684&fm=74621310887573&tin=02508201610067®Number=0000000000092660&sum=300000 [09:05:28]OFD Sender: Processing packet 118684 [packets to send 86, broken 85] [09:05:28]ProducePacketName [09:05:28]name=ofd_packets/00118684 [09:05:28]OFD Sender: To server: pG, [09:05:28]CommunicateWithHost lk.salyk.kg:30040 [09:05:28]ConnectInit lk.salyk.kg [09:05:28]written 0, free lines is 4095 [09:05:28]Connected sock=10 [09:05:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 51 1E 04 01 32 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 9B 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 E5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 5A 5B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9C CF 01 00 35 04 06 00 43 DE 20 BA 66 95 E7 91 1D 94 21 E4 F9 5B [09:05:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FD 9F 47 00 8A 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 34 39 33 39 10 04 04 00 9C CF 01 00 F4 03 04 00 E9 08 A7 66 B6 04 01 00 00 0D 5C 70 DB F5 67 18 40 [09:05:28]CommunicateWithHost err = 0 [09:05:28]CheckOFDResponse [09:05:28]1017 (14) - 77093643461234 [09:05:28]1041 (16) - 0000000000874939 [09:05:28]1040 (4) - 118684 [09:05:28]1012 (4) - 29.07.2024 03:13 [09:05:28]1206 (1) - 0 [09:05:28]OFD Sender: Remove packet 118684 [09:05:28]ProducePacketName [09:05:28]name=ofd_packets/00118684 [09:05:28]NVStorageDeleteData [09:05:28]Write to MH i2c: 01 00 00 8F 3A C9 [09:05:28]Write i2c OK [09:05:28]MH_I2C_Read... [09:05:28]Read from MH i2c: 01 [09:05:28]MH_I2C_Read... [09:05:28]Read from MH i2c: 01 07 00 [09:05:28]MH_I2C_Read... [09:05:28]Read from MH i2c: 01 07 00 8F 3A 00 00 00 00 00 E4 0C C0 [09:05:28]RasterBufferAndPrint [09:05:28]line [09:05:28]line [09:05:28]line [09:05:28]line [09:05:28]line [09:05:28]written 0, free lines is 3307 [09:05:28]MH_Cut [09:05:28]Write to MH i2c: D1 01 00 96 3A 01 A2 [09:05:28]Write i2c OK [09:05:28]MH_I2C_Read... [09:05:28]Read from MH i2c: D1 [09:05:28]MH_I2C_Read... [09:05:28]Read from MH i2c: D1 01 00 [09:05:28]MH_I2C_Read... [09:05:28]Read from MH i2c: D1 01 00 96 3A 00 A1 [09:05:28]Write to MH i2c: 01 00 00 97 3A D1 [09:05:28]Write i2c OK [09:05:28]MH_I2C_Read... [09:05:28]OFD Sender: No OFD packet to send [09:05:29]*** Cut start [09:05:29]*** Partial cut [09:05:29]*** CUTSNS_PIN = 1 [09:05:29]*** CUTSNS_PIN = 0 [09:05:29]*** Brake cut motor [09:05:29]Read from MH i2c: 01 [09:05:29]MH_I2C_Read... [09:05:29]*** Stop cut motor [09:05:29]*** Cut end [09:05:29]Read from MH i2c: 01 07 00 [09:05:29]MH_I2C_Read... [09:05:29]Read from MH i2c: 01 07 00 97 3A 00 00 00 00 00 FF 0F E6 [09:05:29]process_action close_receipt done [09:05:29]requested_data is exist [09:05:29]produce_requested_data [09:05:29]requested_item fm.sn is exist - process it [09:05:29]wFMCommunicate request_size=4 [09:05:29]MH_SAM_APDU [09:05:29]CAPDU: 80 11 00 00 [09:05:29]Write to MH i2c: E2 08 00 98 3A 80 11 00 00 00 00 00 00 4C [09:05:29]Write i2c OK [09:05:29]MH_I2C_Read... [09:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:29]Read from MH i2c: E2 [09:05:29]MH_I2C_Read... [09:05:29]Read from MH i2c: E2 17 00 [09:05:29]MH_I2C_Read... [09:05:29]Read from MH i2c: E2 17 00 98 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A7 [09:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:05:29]wFMCommunicate OK [09:05:29]requested_item fd.num is exist - process it [09:05:29]SAM_PROTO_GetFieldsCounters [09:05:29]wFMCommunicate request_size=4 [09:05:29]MH_SAM_APDU [09:05:29]CAPDU: 80 13 00 00 [09:05:29]Write to MH i2c: E2 08 00 99 3A 80 13 00 00 00 00 00 00 4F [09:05:29]Write i2c OK [09:05:29]MH_I2C_Read... [09:05:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:30]Read from MH i2c: E2 [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: E2 62 00 [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: E2 62 00 99 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9C CF 01 00 0E 04 04 00 B2 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 49 [09:05: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9C CF 01 00 0E 04 04 00 B2 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 [09:05:30]wFMCommunicate OK [09:05:30]SAM_PROTO_GetFieldsCounters done [09:05:30]requested_item shift.num is exist - process it [09:05:30]requested_item shift.opened is exist - process it [09:05:30]req_shift_opened [09:05:30]FM_GetShiftState [09:05:30]SAM_PROTO_GetShiftState [09:05:30]wFMCommunicate request_size=4 [09:05:30]MH_SAM_APDU [09:05:30]CAPDU: 80 13 01 00 [09:05:30]Write to MH i2c: E2 08 00 9A 3A 80 13 01 00 00 00 00 00 51 [09:05:30]Write i2c OK [09:05:30]MH_I2C_Read... [09:05:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:30]Read from MH i2c: E2 [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: E2 0E 00 [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: E2 0E 00 9A 3A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 7F [09:05:30]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:05:30]wFMCommunicate OK [09:05:30]SAM_PROTO_GetShiftState done [09:05:30]FM_GetShiftState done [09:05:30]req_shift_opened done [09:05:30]requested_item shift.open_date is exist - process it [09:05:30]req_shift_open_date [09:05:30]req_shift_open_date done [09:05:30]produce_requested_data done [09:05:30]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118684,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:05:30]process_action_free close_receipt [09:05:30]json_value_free [09:05:30]json_value_free done [09:05:30]process_json_proto returns [09:05:30]Send response to host [09:05:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118684,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:05:30]free response buf [09:05:30]execute_script done [09:05:30]execute_script returns [09:05:30]free content buf [09:05:30]Sock 9.Close socket [09:05:30]Sock 9.Thread stoped [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:29]OFD Sender: No OFD packet to send [09:08:34]OFD Sender: No OFD packet to send [09:08:39]OFD Sender: No OFD packet to send [09:08:44]OFD Sender: No OFD packet to send [09:08:49]OFD Sender: No OFD packet to send [09:08:54]OFD Sender: No OFD packet to send [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:34]OFD Sender: No OFD packet to send [09:09:39]OFD Sender: No OFD packet to send [09:09:44]OFD Sender: No OFD packet to send [09:09:49]OFD Sender: No OFD packet to send [09:09:54]OFD Sender: No OFD packet to send [09:09:59]OFD Sender: No OFD packet to send [09:10:04]OFD Sender: No OFD packet to send [09:10:09]OFD Sender: No OFD packet to send [09:10:14]OFD Sender: No OFD packet to send [09:10:19]OFD Sender: No OFD packet to send [09:10:24]OFD Sender: No OFD packet to send [09:10:29]OFD Sender: No OFD packet to send [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:37]accept exits with 7 [09:13:37]New connection [09:13:37]New thread 3067239780 created [09:13:37]Thread 3067383140 joined [09:13:37]Waiting for new connection... [09:13:37] Sock 7.Parse request [09:13:37]Sock 7.Check first char [09:13:37]Sock 7.First char is OK [09:13:37]request: POST /json_proto HTTP/1.0 [09:13:37]Method: POST [09:13:37]URL: /json_proto [09:13:37]Method is POST - this is cgi request [09:13:37]url: /json_proto [09:13:37]query_string will be loaded in cgi processing [09:13:37]execute_cgi json_proto POST (null) [09:13:37]execute_cgi path=json_proto method=POST [09:13:37]POST find Content-Length [09:13:37]Host: 172.17.45.7:8080 [09:13:37]Content-Length: 677 [09:13:37]Content-Type: application/json [09:13:37] [09:13:37]POST finish read [09:13:37]Found Content-Length = 677 [09:13:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:37]execute_script... [09:13: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)949568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:37]POST & json_proto [09:13:37]process_json_proto [09:13:37]json parsed OK: [09:13:37]protocol is kg_v1.0 [09:13:37]action value=close_receipt [09:13:37]process_action close_receipt [09:13:37]cmd_close_receipt [09:13:37]MH_GetDate [09:13:37]Write to MH i2c: F0 00 00 9B 3A C4 [09:13:37]Write i2c OK [09:13:37]MH_I2C_Read... [09:13:37]Read from MH i2c: F0 [09:13:37]MH_I2C_Read... [09:13:37]Read from MH i2c: F0 09 00 [09:13:37]MH_I2C_Read... [09:13:37]Read from MH i2c: F0 09 00 9B 3A 00 46 5D A7 66 90 0F 3E 66 C0 [09:13:37]GetLastDocTimeStamp 1722243930 [09:13:37]current date 1722244422 [09:13:37]FM_GetShiftState [09:13:37]SAM_PROTO_GetShiftState [09:13:37]wFMCommunicate request_size=4 [09:13:37]MH_SAM_APDU [09:13:37]CAPDU: 80 13 01 00 [09:13:37]Write to MH i2c: E2 08 00 9C 3A 80 13 01 00 00 00 00 00 53 [09:13:37]Write i2c OK [09:13:37]MH_I2C_Read... [09:13:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:37]Read from MH i2c: E2 [09:13:37]MH_I2C_Read... [09:13:37]Read from MH i2c: E2 0E 00 [09:13:37]MH_I2C_Read... [09:13:37]Read from MH i2c: E2 0E 00 9C 3A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 81 [09:13:37]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:13:37]wFMCommunicate OK [09:13:37]SAM_PROTO_GetShiftState done [09:13:37]FM_GetShiftState done [09:13:37]opened in 1722211641 [09:13:37]opened+sec_in_day 1722298041 [09:13:37]quantity*price = 40002 [09:13:37]sum+1 = 40003 [09:13:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 61 29.07.2024 09:13 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118685 ФПД: 96932699909421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T091342&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118685&fm=96932699909421&tin=02508201610067®Number=0000000000092660&sum=40000 [09:13:38]StoreToDocumentArchive [09:13:38]shift 434 fd 118685 [09:13:38]save to /storage/0434/doc_00118685 [09:13:38]save last doc name /storage/0434/doc_00118685 to /storage/kkm_last_doc_name [09:13:38]save OK [09:13:38]Clear old archive folders... [09:13:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:38]tlvbuf is 01F342F0 [09:13:38]SAM_PROTO_ClearQueue [09:13:38]wFMCommunicate request_size=4 [09:13:38]MH_SAM_APDU [09:13:38]CAPDU: 80 09 00 00 [09:13:38]Write to MH i2c: E2 08 00 A9 3A 80 09 00 00 00 00 00 00 55 [09:13:38]Write i2c OK [09:13:38]MH_I2C_Read... [09:13:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:38]Read from MH i2c: E2 [09:13:38]MH_I2C_Read... [09:13:38]Read from MH i2c: E2 03 00 [09:13:38]MH_I2C_Read... [09:13:38]Read from MH i2c: E2 03 00 A9 3A 00 90 00 57 [09:13:38]RAPDU: 90 00 [09:13:38]wFMCommunicate OK [09:13:38]SAM_PROTO_ClearQueue done [09:13:38]KKMCreateOFDPacket [09:13:38]OFDProtocolAddRootSTLVToBuf [09:13:38]FM_MakeSignedData [09:13:38]FM_MakeSignedData [09:13:38]SAM_PROTO_SignData [09:13:38]wFMCommunicate request_size=4 [09:13:38]MH_SAM_APDU [09:13:38]CAPDU: 80 0D 01 02 [09:13:38]Write to MH i2c: E2 08 00 AA 3A 80 0D 01 02 00 00 00 00 5D [09:13:38]Write i2c OK [09:13:38]MH_I2C_Read... [09:13:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:38]Read from MH i2c: E2 [09:13:38]MH_I2C_Read... [09:13:38]Read from MH i2c: E2 03 00 [09:13:38]MH_I2C_Read... [09:13:38]Read from MH i2c: E2 03 00 AA 3A 00 90 00 58 [09:13:38]RAPDU: 90 00 [09:13:38]wFMCommunicate OK [09:13:38]wFMCommunicate request_size=255 [09:13:38]MH_SAM_APDU [09:13: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 46 5D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9D CF 01 00 35 04 06 00 58 [09:13:38]Write to MH i2c: E2 02 01 AB 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 46 5D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9D CF 01 00 35 04 06 00 58 00 00 2B [09:13:38]Write i2c OK [09:13:38]MH_I2C_Read... [09:13:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:38]Read from MH i2c: E2 [09:13:38]MH_I2C_Read... [09:13:38]Read from MH i2c: E2 03 00 [09:13:38]MH_I2C_Read... [09:13:38]Read from MH i2c: E2 03 00 AB 3A 00 90 00 59 [09:13:38]RAPDU: 90 00 [09:13:38]wFMCommunicate OK [09:13:38]wFMCommunicate request_size=10 [09:13:38]MH_SAM_APDU [09:13:38]CAPDU: 80 0D 02 02 05 28 E7 25 2D 2D [09:13:38]Write to MH i2c: E2 0D 00 AC 3A 80 0D 02 02 05 00 28 E7 25 2D 2D 00 00 F8 [09:13:38]Write i2c OK [09:13:38]MH_I2C_Read... [09:13:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:38]Read from MH i2c: E2 [09:13:38]MH_I2C_Read... [09:13:38]Read from MH i2c: E2 03 00 [09:13:38]MH_I2C_Read... [09:13:38]Read from MH i2c: E2 03 00 AC 3A 00 90 00 5A [09:13:38]RAPDU: 90 00 [09:13:38]wFMCommunicate OK [09:13:38]wFMCommunicate request_size=4 [09:13:38]MH_SAM_APDU [09:13:38]CAPDU: 80 0D 03 02 [09:13:38]Write to MH i2c: E2 08 00 AD 3A 80 0D 03 02 00 00 00 00 62 [09:13:38]Write i2c OK [09:13:38]MH_I2C_Read... [09:13:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:38]Read from MH i2c: E2 [09:13:38]MH_I2C_Read... [09:13:38]Read from MH i2c: E2 0B 00 [09:13:38]MH_I2C_Read... [09:13:38]Read from MH i2c: E2 0B 00 AD 3A 00 4E 2D 16 D8 22 0E 22 B4 90 00 D2 [09:13:38]RAPDU: 4E 2D 16 D8 22 0E 22 B4 90 00 [09:13:38]wFMCommunicate OK [09:13:38]SAM_PROTO_SignData done [09:13:38]FM_MakeSignedData done [09:13:38]CreateOFDProtocolMessage [09:13:38]wFMCommunicate request_size=4 [09:13:38]MH_SAM_APDU [09:13:38]CAPDU: 80 11 00 00 [09:13:38]Write to MH i2c: E2 08 00 AE 3A 80 11 00 00 00 00 00 00 62 [09:13:38]Write i2c OK [09:13:38]MH_I2C_Read... [09:13:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:39]Read from MH i2c: E2 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: E2 17 00 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: E2 17 00 AE 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BD [09:13:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:13:39]wFMCommunicate OK [09:13:39]CreateOFDProtocolMessage done [09:13:39]OFDSenderStorePacket 118685 [09:13:39]StoreOFDPacket docnum=118685 [09:13:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 87 D0 07 01 12 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 46 5D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9D CF 01 00 35 04 06 00 58 28 E7 25 2D 2D 4E 2D 16 D8 22 0E 22 B4 [09:13:39]CheckFolder [09:13:39]dirname=/storage/ofd_packets [09:13:39]CheckFolder done [09:13:39]ProducePacketName [09:13:39]name=ofd_packets/00118685 [09:13:39]NVStorageSaveData ofd_packets/00118685 [09:13:39]File name is /storage/ofd_packets/00118685 [09:13:39]Write 301 bytes [09:13:39]NVStorageSaveData done [09:13:39]OFDSenderStorePacket done [09:13:39]KKMCreateOFDPacket done [09:13:39]NVStorageSaveData kkm_last_timestamp [09:13:39]File name is /storage/kkm_last_timestamp [09:13:39]Write 4 bytes [09:13:39]NVStorageSaveData done [09:13:39]ExternCall_PrintAddStr [09:13:39]wPrintStart [09:13:39]Write to MH i2c: 01 00 00 AF 3A E9 [09:13:39]Write i2c OK [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: 01 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: 01 07 00 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: 01 07 00 AF 3A 00 00 00 00 00 FF 0F FE [09:13:39]RasterBufferAndPrint [09:13:39]line Счет N : (1)949568 [09:13:39]line ИНН: 02508201610067 [09:13:39]line Контрольно-Кассовый Чек [09:13:39]line ПРОДАЖА [09:13:39]line ТРК (МРК, ГНК) : 41 [09:13:39]line Товар: 2710124130 [09:13:39]line Аи-92-К-4 [09:13:39]line 5.900 * 67.80 [09:13:39]line = 400.02 [09:13:39]line НДС 12% НСП 1% [09:13:39]line > о реализуемом товаре [09:13:39]line ОКРУГЛЕНИЕ: -0.02 [09:13:39]line ИТОГО: 400.00 [09:13:39]line Внесено: 400.00 [09:13:39]line СДАЧА: 0.00 [09:13:39]line НСП 1% : 3.54 [09:13:39]line НДС 12% : 42.48 [09:13:39]line Наличными: 400.00 [09:13:39]line Безнал.: 0.00 [09:13:39]line Место: АЗС № 134 "Партнер Нефть" [09:13:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:13:39]line СНО: Общий режим [09:13:39]line Чек 61 29.07.2024 09:13 [09:13:39]line Смена: 434 ФФД: 1.0 [09:13:39]line ЗНМ: 0300000044 [09:13:39]line РНМ: 0000000000092660 [09:13:39]line Версия ККМ: 001 [09:13:39]line ФМ: 0000000000874939 [09:13:39]line ФД: 118685 [09:13:39]line ФПД: 96932699909421 [09:13:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T091342&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118685&fm=96932699909421&tin=02508201610067®Number=0000000000092660&sum=40000 [09:13:39]OFD Sender: Processing packet 118685 [packets to send 86, broken 85] [09:13:39]ProducePacketName [09:13:39]name=ofd_packets/00118685 [09:13:39]OFD Sender: To server: pG, [09:13:39]CommunicateWithHost lk.salyk.kg:30040 [09:13:39]ConnectInit lk.salyk.kg [09:13:39]written 0, free lines is 4095 [09:13:39]Connected sock=10 [09:13:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 87 D0 07 01 12 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 46 5D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9D CF 01 00 35 04 06 00 58 28 E7 25 2D 2D 4E 2D 16 D8 22 0E 22 B4 [09:13:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E6 FC 47 00 EB 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 34 39 33 39 10 04 04 00 9D CF 01 00 F4 03 04 00 D4 0A A7 66 B6 04 01 00 00 B0 1B A4 28 0C EE EE 70 [09:13:39]CommunicateWithHost err = 0 [09:13:39]CheckOFDResponse [09:13:39]1017 (14) - 77093643461234 [09:13:39]1041 (16) - 0000000000874939 [09:13:39]1040 (4) - 118685 [09:13:39]1012 (4) - 29.07.2024 03:21 [09:13:39]1206 (1) - 0 [09:13:39]OFD Sender: Remove packet 118685 [09:13:39]ProducePacketName [09:13:39]name=ofd_packets/00118685 [09:13:39]NVStorageDeleteData [09:13:39]Write to MH i2c: 01 00 00 D9 3A 13 [09:13:39]Write i2c OK [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: 01 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: 01 07 00 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: 01 07 00 D9 3A 00 00 00 00 00 F7 0C 1D [09:13:39]RasterBufferAndPrint [09:13:39]line [09:13:39]line [09:13:39]line [09:13:39]line [09:13:39]line [09:13:39]written 0, free lines is 3327 [09:13:39]MH_Cut [09:13:39]Write to MH i2c: D1 01 00 E0 3A 01 EC [09:13:39]Write i2c OK [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: D1 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: D1 01 00 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: D1 01 00 E0 3A 00 EB [09:13:39]Write to MH i2c: 01 00 00 E1 3A 1B [09:13:39]Write i2c OK [09:13:39]MH_I2C_Read... [09:13:40]OFD Sender: No OFD packet to send [09:13:40]*** Cut start [09:13:40]*** Partial cut [09:13:40]*** CUTSNS_PIN = 1 [09:13:40]*** CUTSNS_PIN = 0 [09:13:40]*** Brake cut motor [09:13:41]Read from MH i2c: 01 [09:13:41]MH_I2C_Read... [09:13:41]*** Stop cut motor [09:13:41]*** Cut end [09:13:41]Read from MH i2c: 01 07 00 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: 01 07 00 E1 3A 00 00 00 00 00 FF 0F 30 [09:13:41]process_action close_receipt done [09:13:41]requested_data is exist [09:13:41]produce_requested_data [09:13:41]requested_item fm.sn is exist - process it [09:13:41]wFMCommunicate request_size=4 [09:13:41]MH_SAM_APDU [09:13:41]CAPDU: 80 11 00 00 [09:13:41]Write to MH i2c: E2 08 00 E2 3A 80 11 00 00 00 00 00 00 96 [09:13:41]Write i2c OK [09:13:41]MH_I2C_Read... [09:13:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:41]Read from MH i2c: E2 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: E2 17 00 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: E2 17 00 E2 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F1 [09:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:13:41]wFMCommunicate OK [09:13:41]requested_item fd.num is exist - process it [09:13:41]SAM_PROTO_GetFieldsCounters [09:13:41]wFMCommunicate request_size=4 [09:13:41]MH_SAM_APDU [09:13:41]CAPDU: 80 13 00 00 [09:13:41]Write to MH i2c: E2 08 00 E3 3A 80 13 00 00 00 00 00 00 99 [09:13:41]Write i2c OK [09:13:41]MH_I2C_Read... [09:13:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:41]Read from MH i2c: E2 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: E2 62 00 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: E2 62 00 E3 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9D CF 01 00 0E 04 04 00 B2 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 97 [09:13: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9D CF 01 00 0E 04 04 00 B2 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 [09:13:41]wFMCommunicate OK [09:13:41]SAM_PROTO_GetFieldsCounters done [09:13:41]requested_item shift.num is exist - process it [09:13:41]requested_item shift.opened is exist - process it [09:13:41]req_shift_opened [09:13:41]FM_GetShiftState [09:13:41]SAM_PROTO_GetShiftState [09:13:41]wFMCommunicate request_size=4 [09:13:41]MH_SAM_APDU [09:13:41]CAPDU: 80 13 01 00 [09:13:41]Write to MH i2c: E2 08 00 E4 3A 80 13 01 00 00 00 00 00 9B [09:13:41]Write i2c OK [09:13:41]MH_I2C_Read... [09:13:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:41]Read from MH i2c: E2 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: E2 0E 00 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: E2 0E 00 E4 3A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C9 [09:13:41]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:13:41]wFMCommunicate OK [09:13:41]SAM_PROTO_GetShiftState done [09:13:41]FM_GetShiftState done [09:13:41]req_shift_opened done [09:13:41]requested_item shift.open_date is exist - process it [09:13:41]req_shift_open_date [09:13:41]req_shift_open_date done [09:13:41]produce_requested_data done [09:13:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118685,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:13:41]process_action_free close_receipt [09:13:41]json_value_free [09:13:41]json_value_free done [09:13:41]process_json_proto returns [09:13:41]Send response to host [09:13:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118685,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:13:41]free response buf [09:13:41]execute_script done [09:13:41]execute_script returns [09:13:41]free content buf [09:13:41]Sock 7.Close socket [09:13:41]Sock 7.Thread stoped [09:13:45]OFD Sender: No OFD packet to send [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]OFD Sender: No OFD packet to send [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:32]accept exits with 9 [09:14:32]New connection [09:14:32]New thread 3067383140 created [09:14:32]Thread 3067239780 joined [09:14:32]Waiting for new connection... [09:14:32] Sock 9.Parse request [09:14:32]Sock 9.Check first char [09:14:32]Sock 9.First char is OK [09:14:32]request: POST /json_proto HTTP/1.0 [09:14:32]Method: POST [09:14:32]URL: /json_proto [09:14:32]Method is POST - this is cgi request [09:14:32]url: /json_proto [09:14:32]query_string will be loaded in cgi processing [09:14:32]execute_cgi json_proto POST (null) [09:14:32]execute_cgi path=json_proto method=POST [09:14:32]POST find Content-Length [09:14:32]Host: 172.17.45.7:8080 [09:14:32]Content-Length: 677 [09:14:32]Content-Type: application/json [09:14:32] [09:14:32]POST finish read [09:14:32]Found Content-Length = 677 [09:14:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:32]execute_script... [09:14:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:32]POST & json_proto [09:14:32]process_json_proto [09:14:32]json parsed OK: [09:14:32]protocol is kg_v1.0 [09:14:32]action value=close_receipt [09:14:32]process_action close_receipt [09:14:32]cmd_close_receipt [09:14:32]MH_GetDate [09:14:32]Write to MH i2c: F0 00 00 E5 3A 0E [09:14:32]Write i2c OK [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: F0 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: F0 09 00 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: F0 09 00 E5 3A 00 7D 5D A7 66 90 0F 3E 66 41 [09:14:32]GetLastDocTimeStamp 1722244422 [09:14:32]current date 1722244477 [09:14:32]FM_GetShiftState [09:14:32]SAM_PROTO_GetShiftState [09:14:32]wFMCommunicate request_size=4 [09:14:32]MH_SAM_APDU [09:14:32]CAPDU: 80 13 01 00 [09:14:32]Write to MH i2c: E2 08 00 E6 3A 80 13 01 00 00 00 00 00 9D [09:14:32]Write i2c OK [09:14:32]MH_I2C_Read... [09:14:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:33]Read from MH i2c: E2 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 0E 00 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 0E 00 E6 3A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 CB [09:14:33]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:14:33]wFMCommunicate OK [09:14:33]SAM_PROTO_GetShiftState done [09:14:33]FM_GetShiftState done [09:14:33]opened in 1722211641 [09:14:33]opened+sec_in_day 1722298041 [09:14:33]quantity*price = 20001 [09:14:33]sum+1 = 20002 [09:14:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 62 29.07.2024 09:14 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118686 ФПД: 162902397286405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T091437&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118686&fm=162902397286405&tin=02508201610067®Number=0000000000092660&sum=20000 [09:14:34]StoreToDocumentArchive [09:14:34]shift 434 fd 118686 [09:14:34]save to /storage/0434/doc_00118686 [09:14:34]save last doc name /storage/0434/doc_00118686 to /storage/kkm_last_doc_name [09:14:34]save OK [09:14:34]Clear old archive folders... [09:14:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:14:34]tlvbuf is 01E89B40 [09:14:34]SAM_PROTO_ClearQueue [09:14:34]wFMCommunicate request_size=4 [09:14:34]MH_SAM_APDU [09:14:34]CAPDU: 80 09 00 00 [09:14:34]Write to MH i2c: E2 08 00 F3 3A 80 09 00 00 00 00 00 00 9F [09:14:34]Write i2c OK [09:14:34]MH_I2C_Read... [09:14:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:34]Read from MH i2c: E2 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: E2 03 00 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: E2 03 00 F3 3A 00 90 00 A1 [09:14:34]RAPDU: 90 00 [09:14:34]wFMCommunicate OK [09:14:34]SAM_PROTO_ClearQueue done [09:14:34]KKMCreateOFDPacket [09:14:34]OFDProtocolAddRootSTLVToBuf [09:14:34]FM_MakeSignedData [09:14:34]FM_MakeSignedData [09:14:34]SAM_PROTO_SignData [09:14:34]wFMCommunicate request_size=4 [09:14:34]MH_SAM_APDU [09:14:34]CAPDU: 80 0D 01 02 [09:14:34]Write to MH i2c: E2 08 00 F4 3A 80 0D 01 02 00 00 00 00 A7 [09:14:34]Write i2c OK [09:14:34]MH_I2C_Read... [09:14:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:34]Read from MH i2c: E2 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: E2 03 00 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: E2 03 00 F4 3A 00 90 00 A2 [09:14:34]RAPDU: 90 00 [09:14:34]wFMCommunicate OK [09:14:34]wFMCommunicate request_size=255 [09:14:34]MH_SAM_APDU [09: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 7D 5D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9E CF 01 00 35 04 06 00 94 [09:14:34]Write to MH i2c: E2 02 01 F5 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 7D 5D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9E CF 01 00 35 04 06 00 94 00 00 07 [09:14:34]Write i2c OK [09:14:34]MH_I2C_Read... [09:14:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:34]Read from MH i2c: E2 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: E2 03 00 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: E2 03 00 F5 3A 00 90 00 A3 [09:14:34]RAPDU: 90 00 [09:14:34]wFMCommunicate OK [09:14:34]wFMCommunicate request_size=10 [09:14:34]MH_SAM_APDU [09:14:34]CAPDU: 80 0D 02 02 05 28 AB 85 F8 05 [09:14:34]Write to MH i2c: E2 0D 00 F6 3A 80 0D 02 02 05 00 28 AB 85 F8 05 00 00 09 [09:14:34]Write i2c OK [09:14:34]MH_I2C_Read... [09:14:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:34]Read from MH i2c: E2 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: E2 03 00 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: E2 03 00 F6 3A 00 90 00 A4 [09:14:34]RAPDU: 90 00 [09:14:34]wFMCommunicate OK [09:14:34]wFMCommunicate request_size=4 [09:14:34]MH_SAM_APDU [09:14:34]CAPDU: 80 0D 03 02 [09:14:34]Write to MH i2c: E2 08 00 F7 3A 80 0D 03 02 00 00 00 00 AC [09:14:34]Write i2c OK [09:14:34]MH_I2C_Read... [09:14:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:34]Read from MH i2c: E2 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: E2 0B 00 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: E2 0B 00 F7 3A 00 E9 02 51 05 B8 48 B7 CC 90 00 71 [09:14:34]RAPDU: E9 02 51 05 B8 48 B7 CC 90 00 [09:14:34]wFMCommunicate OK [09:14:34]SAM_PROTO_SignData done [09:14:34]FM_MakeSignedData done [09:14:34]CreateOFDProtocolMessage [09:14:34]wFMCommunicate request_size=4 [09:14:34]MH_SAM_APDU [09:14:34]CAPDU: 80 11 00 00 [09:14:34]Write to MH i2c: E2 08 00 F8 3A 80 11 00 00 00 00 00 00 AC [09:14:34]Write i2c OK [09:14:34]MH_I2C_Read... [09:14:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:34]Read from MH i2c: E2 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: E2 17 00 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: E2 17 00 F8 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 07 [09:14:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:14:34]wFMCommunicate OK [09:14:34]CreateOFDProtocolMessage done [09:14:34]OFDSenderStorePacket 118686 [09:14:34]StoreOFDPacket docnum=118686 [09:14:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9C 52 07 01 54 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 7D 5D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9E CF 01 00 35 04 06 00 94 28 AB 85 F8 05 E9 02 51 05 B8 48 B7 CC [09:14:34]CheckFolder [09:14:34]dirname=/storage/ofd_packets [09:14:34]CheckFolder done [09:14:34]ProducePacketName [09:14:34]name=ofd_packets/00118686 [09:14:34]NVStorageSaveData ofd_packets/00118686 [09:14:34]File name is /storage/ofd_packets/00118686 [09:14:34]Write 301 bytes [09:14:34]NVStorageSaveData done [09:14:34]OFDSenderStorePacket done [09:14:34]KKMCreateOFDPacket done [09:14:34]NVStorageSaveData kkm_last_timestamp [09:14:34]File name is /storage/kkm_last_timestamp [09:14:34]Write 4 bytes [09:14:34]NVStorageSaveData done [09:14:34]ExternCall_PrintAddStr [09:14:34]wPrintStart [09:14:34]Write to MH i2c: 01 00 00 F9 3A 33 [09:14:34]Write i2c OK [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: 01 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: 01 07 00 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: 01 07 00 F9 3A 00 00 00 00 00 FF 0F 48 [09:14:34]RasterBufferAndPrint [09:14:34]line Счет N : (1)949569 [09:14:34]line ИНН: 02508201610067 [09:14:34]line Контрольно-Кассовый Чек [09:14:34]line ПРОДАЖА [09:14:34]line ТРК (МРК, ГНК) : 61 [09:14:34]line Товар: 2710124130 [09:14:34]line Аи-92-К-4 [09:14:34]line 2.950 * 67.80 [09:14:34]line = 200.01 [09:14:34]line НДС 12% НСП 1% [09:14:34]line > о реализуемом товаре [09:14:34]line ОКРУГЛЕНИЕ: -0.01 [09:14:34]line ИТОГО: 200.00 [09:14:34]line Внесено: 200.00 [09:14:34]line СДАЧА: 0.00 [09:14:34]line НСП 1% : 1.77 [09:14:34]line НДС 12% : 21.24 [09:14:34]line Наличными: 200.00 [09:14:34]line Безнал.: 0.00 [09:14:34]line Место: АЗС № 134 "Партнер Нефть" [09:14:34]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:14:34]line СНО: Общий режим [09:14:34]line Чек 62 29.07.2024 09:14 [09:14:34]line Смена: 434 ФФД: 1.0 [09:14:34]line ЗНМ: 0300000044 [09:14:34]line РНМ: 0000000000092660 [09:14:34]line Версия ККМ: 001 [09:14:34]line ФМ: 0000000000874939 [09:14:34]line ФД: 118686 [09:14:34]line ФПД: 162902397286405 [09:14:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T091437&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118686&fm=162902397286405&tin=02508201610067®Number=0000000000092660&sum=20000 [09:14:34]written 0, free lines is 4095 [09:14:34]OFD Sender: Processing packet 118686 [packets to send 86, broken 85] [09:14:34]ProducePacketName [09:14:34]name=ofd_packets/00118686 [09:14:34]OFD Sender: To server: pG, [09:14:34]CommunicateWithHost lk.salyk.kg:30040 [09:14:34]ConnectInit lk.salyk.kg [09:14:34]Connected sock=10 [09:14:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9C 52 07 01 54 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 7D 5D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9E CF 01 00 35 04 06 00 94 28 AB 85 F8 05 E9 02 51 05 B8 48 B7 CC [09:14:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C7 A6 47 00 45 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 34 39 33 39 10 04 04 00 9E CF 01 00 F4 03 04 00 0B 0B A7 66 B6 04 01 00 00 7F 75 5D 87 49 7C 60 43 [09:14:35]CommunicateWithHost err = 0 [09:14:35]CheckOFDResponse [09:14:35]1017 (14) - 77093643461234 [09:14:35]1041 (16) - 0000000000874939 [09:14:35]1040 (4) - 118686 [09:14:35]1012 (4) - 29.07.2024 03:22 [09:14:35]1206 (1) - 0 [09:14:35]OFD Sender: Remove packet 118686 [09:14:35]ProducePacketName [09:14:35]name=ofd_packets/00118686 [09:14:35]NVStorageDeleteData [09:14:35]Write to MH i2c: 01 00 00 23 3B 5E [09:14:35]Write i2c OK [09:14:35]MH_I2C_Read... [09:14:35]Read from MH i2c: 01 [09:14:35]MH_I2C_Read... [09:14:35]Read from MH i2c: 01 07 00 [09:14:35]MH_I2C_Read... [09:14:35]Read from MH i2c: 01 07 00 23 3B 00 00 00 00 00 EB 0C 5C [09:14:35]RasterBufferAndPrint [09:14:35]line [09:14:35]line [09:14:35]line [09:14:35]line [09:14:35]line [09:14:35]written 0, free lines is 3317 [09:14:35]MH_Cut [09:14:35]Write to MH i2c: D1 01 00 2A 3B 01 37 [09:14:35]Write i2c OK [09:14:35]MH_I2C_Read... [09:14:35]Read from MH i2c: D1 [09:14:35]MH_I2C_Read... [09:14:35]Read from MH i2c: D1 01 00 [09:14:35]MH_I2C_Read... [09:14:35]Read from MH i2c: D1 01 00 2A 3B 00 36 [09:14:35]Write to MH i2c: 01 00 00 2B 3B 66 [09:14:35]Write i2c OK [09:14:35]MH_I2C_Read... [09:14:35]OFD Sender: No OFD packet to send [09:14:35]*** Cut start [09:14:35]*** Partial cut [09:14:35]*** CUTSNS_PIN = 1 [09:14:35]*** CUTSNS_PIN = 0 [09:14:36]*** Brake cut motor [09:14:36]Read from MH i2c: 01 [09:14:36]MH_I2C_Read... [09:14:36]*** Stop cut motor [09:14:36]*** Cut end [09:14:36]Read from MH i2c: 01 07 00 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: 01 07 00 2B 3B 00 00 00 00 00 FF 0F 7B [09:14:36]process_action close_receipt done [09:14:36]requested_data is exist [09:14:36]produce_requested_data [09:14:36]requested_item fm.sn is exist - process it [09:14:36]wFMCommunicate request_size=4 [09:14:36]MH_SAM_APDU [09:14:36]CAPDU: 80 11 00 00 [09:14:36]Write to MH i2c: E2 08 00 2C 3B 80 11 00 00 00 00 00 00 E1 [09:14:36]Write i2c OK [09:14:36]MH_I2C_Read... [09:14:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:36]Read from MH i2c: E2 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: E2 17 00 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: E2 17 00 2C 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3C [09:14:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:14:36]wFMCommunicate OK [09:14:36]requested_item fd.num is exist - process it [09:14:36]SAM_PROTO_GetFieldsCounters [09:14:36]wFMCommunicate request_size=4 [09:14:36]MH_SAM_APDU [09:14:36]CAPDU: 80 13 00 00 [09:14:36]Write to MH i2c: E2 08 00 2D 3B 80 13 00 00 00 00 00 00 E4 [09:14:36]Write i2c OK [09:14:36]MH_I2C_Read... [09:14:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:36]Read from MH i2c: E2 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: E2 62 00 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: E2 62 00 2D 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9E CF 01 00 0E 04 04 00 B2 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 E6 [09:14: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9E CF 01 00 0E 04 04 00 B2 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 [09:14:36]wFMCommunicate OK [09:14:36]SAM_PROTO_GetFieldsCounters done [09:14:36]requested_item shift.num is exist - process it [09:14:36]requested_item shift.opened is exist - process it [09:14:36]req_shift_opened [09:14:36]FM_GetShiftState [09:14:36]SAM_PROTO_GetShiftState [09:14:36]wFMCommunicate request_size=4 [09:14:36]MH_SAM_APDU [09:14:36]CAPDU: 80 13 01 00 [09:14:36]Write to MH i2c: E2 08 00 2E 3B 80 13 01 00 00 00 00 00 E6 [09:14:36]Write i2c OK [09:14:36]MH_I2C_Read... [09:14:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:36]Read from MH i2c: E2 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: E2 0E 00 [09:14:36]MH_I2C_Read... [09:14:36]Read from MH i2c: E2 0E 00 2E 3B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 14 [09:14:36]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:14:36]wFMCommunicate OK [09:14:36]SAM_PROTO_GetShiftState done [09:14:36]FM_GetShiftState done [09:14:36]req_shift_opened done [09:14:36]requested_item shift.open_date is exist - process it [09:14:36]req_shift_open_date [09:14:36]req_shift_open_date done [09:14:36]produce_requested_data done [09:14:36]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118686,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:14:36]process_action_free close_receipt [09:14:36]json_value_free [09:14:36]json_value_free done [09:14:36]process_json_proto returns [09:14:36]Send response to host [09:14:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118686,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:14:36]free response buf [09:14:36]execute_script done [09:14:36]execute_script returns [09:14:36]free content buf [09:14:36]Sock 9.Close socket [09:14:36]Sock 9.Thread stoped [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:05]OFD Sender: No OFD packet to send [09:15:10]OFD Sender: No OFD packet to send [09:15:15]OFD Sender: No OFD packet to send [09:15:20]OFD Sender: No OFD packet to send [09:15:25]OFD Sender: No OFD packet to send [09:15:30]OFD Sender: No OFD packet to send [09:15:35]OFD Sender: No OFD packet to send [09:15:40]OFD Sender: No OFD packet to send [09:15:45]OFD Sender: No OFD packet to send [09:15:50]OFD Sender: No OFD packet to send [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:55]OFD Sender: No OFD packet to send [09:17:00]OFD Sender: No OFD packet to send [09:17:05]OFD Sender: No OFD packet to send [09:17:10]OFD Sender: No OFD packet to send [09:17:15]OFD Sender: No OFD packet to send [09:17:20]OFD Sender: No OFD packet to send [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:35]OFD Sender: No OFD packet to send [09:17:40]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:15]OFD Sender: No OFD packet to send [09:18:20]OFD Sender: No OFD packet to send [09:18:25]OFD Sender: No OFD packet to send [09:18:30]OFD Sender: No OFD packet to send [09:18:35]OFD Sender: No OFD packet to send [09:18:40]OFD Sender: No OFD packet to send [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:13]accept exits with 7 [09:19:13]New connection [09:19:13]New thread 3067239780 created [09:19:13]Thread 3067383140 joined [09:19:13]Waiting for new connection... [09:19:13] Sock 7.Parse request [09:19:13]Sock 7.Check first char [09:19:13]Sock 7.First char is OK [09:19:13]request: POST /json_proto HTTP/1.0 [09:19:13]Method: POST [09:19:13]URL: /json_proto [09:19:13]Method is POST - this is cgi request [09:19:13]url: /json_proto [09:19:13]query_string will be loaded in cgi processing [09:19:13]execute_cgi json_proto POST (null) [09:19:13]execute_cgi path=json_proto method=POST [09:19:13]POST find Content-Length [09:19:13]Host: 172.17.45.7:8080 [09:19:13]Content-Length: 677 [09:19:13]Content-Type: application/json [09:19:13] [09:19:13]POST finish read [09:19:13]Found Content-Length = 677 [09:19:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:13]execute_script... [09:19: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)949570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:13]POST & json_proto [09:19:13]process_json_proto [09:19:13]json parsed OK: [09:19:13]protocol is kg_v1.0 [09:19:13]action value=close_receipt [09:19:13]process_action close_receipt [09:19:13]cmd_close_receipt [09:19:13]MH_GetDate [09:19:13]Write to MH i2c: F0 00 00 2F 3B 59 [09:19:13]Write i2c OK [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: F0 [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: F0 09 00 [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: F0 09 00 2F 3B 00 96 5E A7 66 90 0F 3E 66 A6 [09:19:13]GetLastDocTimeStamp 1722244477 [09:19:13]current date 1722244758 [09:19:13]FM_GetShiftState [09:19:13]SAM_PROTO_GetShiftState [09:19:13]wFMCommunicate request_size=4 [09:19:13]MH_SAM_APDU [09:19:13]CAPDU: 80 13 01 00 [09:19:13]Write to MH i2c: E2 08 00 30 3B 80 13 01 00 00 00 00 00 E8 [09:19:13]Write i2c OK [09:19:13]MH_I2C_Read... [09:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:13]Read from MH i2c: E2 [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: E2 0E 00 [09:19:13]MH_I2C_Read... [09:19:13]Read from MH i2c: E2 0E 00 30 3B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 16 [09:19:13]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:19:13]wFMCommunicate OK [09:19:13]SAM_PROTO_GetShiftState done [09:19:13]FM_GetShiftState done [09:19:13]opened in 1722211641 [09:19:13]opened+sec_in_day 1722298041 [09:19:13]quantity*price = 30035 [09:19:13]sum+1 = 30036 [09:19:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 63 29.07.2024 09:19 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118687 ФПД: 156612406985171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T091918&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118687&fm=156612406985171&tin=02508201610067®Number=0000000000092660&sum=30000 [09:19:15]StoreToDocumentArchive [09:19:15]shift 434 fd 118687 [09:19:15]save to /storage/0434/doc_00118687 [09:19:15]save last doc name /storage/0434/doc_00118687 to /storage/kkm_last_doc_name [09:19:15]save OK [09:19:15]Clear old archive folders... [09:19:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:19:15]tlvbuf is 01F69A40 [09:19:15]SAM_PROTO_ClearQueue [09:19:15]wFMCommunicate request_size=4 [09:19:15]MH_SAM_APDU [09:19:15]CAPDU: 80 09 00 00 [09:19:15]Write to MH i2c: E2 08 00 3D 3B 80 09 00 00 00 00 00 00 EA [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:15]Read from MH i2c: E2 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 03 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 03 00 3D 3B 00 90 00 EC [09:19:15]RAPDU: 90 00 [09:19:15]wFMCommunicate OK [09:19:15]SAM_PROTO_ClearQueue done [09:19:15]KKMCreateOFDPacket [09:19:15]OFDProtocolAddRootSTLVToBuf [09:19:15]FM_MakeSignedData [09:19:15]FM_MakeSignedData [09:19:15]SAM_PROTO_SignData [09:19:15]wFMCommunicate request_size=4 [09:19:15]MH_SAM_APDU [09:19:15]CAPDU: 80 0D 01 02 [09:19:15]Write to MH i2c: E2 08 00 3E 3B 80 0D 01 02 00 00 00 00 F2 [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:15]Read from MH i2c: E2 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 03 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 03 00 3E 3B 00 90 00 ED [09:19:15]RAPDU: 90 00 [09:19:15]wFMCommunicate OK [09:19:15]wFMCommunicate request_size=255 [09:19:15]MH_SAM_APDU [09:19:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 96 5E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9F CF 01 00 35 04 06 00 8E [09:19:15]Write to MH i2c: E2 02 01 3F 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 96 5E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9F CF 01 00 35 04 06 00 8E 00 00 85 [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:15]Read from MH i2c: E2 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 03 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 03 00 3F 3B 00 90 00 EE [09:19:15]RAPDU: 90 00 [09:19:15]wFMCommunicate OK [09:19:15]wFMCommunicate request_size=10 [09:19:15]MH_SAM_APDU [09:19:15]CAPDU: 80 0D 02 02 05 70 2A E2 C1 D3 [09:19:15]Write to MH i2c: E2 0D 00 40 3B 80 0D 02 02 05 00 70 2A E2 C1 D3 00 00 0F [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:15]Read from MH i2c: E2 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 03 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 03 00 40 3B 00 90 00 EF [09:19:15]RAPDU: 90 00 [09:19:15]wFMCommunicate OK [09:19:15]wFMCommunicate request_size=4 [09:19:15]MH_SAM_APDU [09:19:15]CAPDU: 80 0D 03 02 [09:19:15]Write to MH i2c: E2 08 00 41 3B 80 0D 03 02 00 00 00 00 F7 [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:15]Read from MH i2c: E2 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 0B 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 0B 00 41 3B 00 C4 E9 B7 73 22 B1 08 0C 90 00 B6 [09:19:15]RAPDU: C4 E9 B7 73 22 B1 08 0C 90 00 [09:19:15]wFMCommunicate OK [09:19:15]SAM_PROTO_SignData done [09:19:15]FM_MakeSignedData done [09:19:15]CreateOFDProtocolMessage [09:19:15]wFMCommunicate request_size=4 [09:19:15]MH_SAM_APDU [09:19:15]CAPDU: 80 11 00 00 [09:19:15]Write to MH i2c: E2 08 00 42 3B 80 11 00 00 00 00 00 00 F7 [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:15]Read from MH i2c: E2 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 17 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 17 00 42 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 52 [09:19:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:19:15]wFMCommunicate OK [09:19:15]CreateOFDProtocolMessage done [09:19:15]OFDSenderStorePacket 118687 [09:19:15]StoreOFDPacket docnum=118687 [09:19:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 23 E4 07 01 87 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 96 5E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9F CF 01 00 35 04 06 00 8E 70 2A E2 C1 D3 C4 E9 B7 73 22 B1 08 0C [09:19:15]CheckFolder [09:19:15]dirname=/storage/ofd_packets [09:19:15]CheckFolder done [09:19:15]ProducePacketName [09:19:15]name=ofd_packets/00118687 [09:19:15]NVStorageSaveData ofd_packets/00118687 [09:19:15]File name is /storage/ofd_packets/00118687 [09:19:15]Write 301 bytes [09:19:15]NVStorageSaveData done [09:19:15]OFDSenderStorePacket done [09:19:15]KKMCreateOFDPacket done [09:19:15]NVStorageSaveData kkm_last_timestamp [09:19:15]File name is /storage/kkm_last_timestamp [09:19:15]Write 4 bytes [09:19:15]NVStorageSaveData done [09:19:15]ExternCall_PrintAddStr [09:19:15]wPrintStart [09:19:15]Write to MH i2c: 01 00 00 43 3B 7E [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: 01 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: 01 07 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: 01 07 00 43 3B 00 00 00 00 00 FF 0F 93 [09:19:15]RasterBufferAndPrint [09:19:15]line Счет N : (1)949570 [09:19:15]line ИНН: 02508201610067 [09:19:15]line Контрольно-Кассовый Чек [09:19:15]line ПРОДАЖА [09:19:15]line ТРК (МРК, ГНК) : 41 [09:19:15]line Товар: 2710124130 [09:19:15]line Аи-92-К-4 [09:19:15]line 4.430 * 67.80 [09:19:15]line = 300.35 [09:19:15]line НДС 12% НСП 1% [09:19:15]line > о реализуемом товаре [09:19:15]line ОКРУГЛЕНИЕ: -0.35 [09:19:15]line ИТОГО: 300.00 [09:19:15]line Внесено: 300.00 [09:19:15]line СДАЧА: 0.00 [09:19:15]line НСП 1% : 2.66 [09:19:15]line НДС 12% : 31.90 [09:19:15]line Наличными: 300.00 [09:19:15]line Безнал.: 0.00 [09:19:15]line Место: АЗС № 134 "Партнер Нефть" [09:19:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:19:15]line СНО: Общий режим [09:19:15]line Чек 63 29.07.2024 09:19 [09:19:15]line Смена: 434 ФФД: 1.0 [09:19:15]line ЗНМ: 0300000044 [09:19:15]line РНМ: 0000000000092660 [09:19:15]line Версия ККМ: 001 [09:19:15]line ФМ: 0000000000874939 [09:19:15]line ФД: 118687 [09:19:15]line ФПД: 156612406985171 [09:19:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T091918&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118687&fm=156612406985171&tin=02508201610067®Number=0000000000092660&sum=30000 [09:19:15]OFD Sender: Processing packet 118687 [packets to send 86, broken 85] [09:19:15]ProducePacketName [09:19:15]name=ofd_packets/00118687 [09:19:15]OFD Sender: To server: pG, [09:19:15]CommunicateWithHost lk.salyk.kg:30040 [09:19:15]ConnectInit lk.salyk.kg [09:19:15]written 0, free lines is 4095 [09:19:16]Connected sock=10 [09:19:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 23 E4 07 01 87 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 96 5E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9F CF 01 00 35 04 06 00 8E 70 2A E2 C1 D3 C4 E9 B7 73 22 B1 08 0C [09:19:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EA 9A 47 00 4A BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9F CF 01 00 F4 03 04 00 25 0C A7 66 B6 04 01 00 00 4E D0 AE 4B A3 4D 3D CE [09:19:16]CommunicateWithHost err = 0 [09:19:16]CheckOFDResponse [09:19:16]1017 (14) - 77093643461234 [09:19:16]1041 (16) - 0000000000874939 [09:19:16]1040 (4) - 118687 [09:19:16]1012 (4) - 29.07.2024 03:27 [09:19:16]1206 (1) - 0 [09:19:16]OFD Sender: Remove packet 118687 [09:19:16]ProducePacketName [09:19:16]name=ofd_packets/00118687 [09:19:16]NVStorageDeleteData [09:19:16]Write to MH i2c: 01 00 00 6D 3B A8 [09:19:16]Write i2c OK [09:19:16]MH_I2C_Read... [09:19:16]Read from MH i2c: 01 [09:19:16]MH_I2C_Read... [09:19:16]Read from MH i2c: 01 07 00 [09:19:16]MH_I2C_Read... [09:19:16]Read from MH i2c: 01 07 00 6D 3B 00 00 00 00 00 FB 0C B6 [09:19:16]RasterBufferAndPrint [09:19:16]line [09:19:16]line [09:19:16]line [09:19:16]line [09:19:16]line [09:19:16]written 0, free lines is 3329 [09:19:16]MH_Cut [09:19:16]Write to MH i2c: D1 01 00 74 3B 01 81 [09:19:16]Write i2c OK [09:19:16]MH_I2C_Read... [09:19:16]Read from MH i2c: D1 [09:19:16]MH_I2C_Read... [09:19:16]Read from MH i2c: D1 01 00 [09:19:16]MH_I2C_Read... [09:19:16]Read from MH i2c: D1 01 00 74 3B 00 80 [09:19:16]Write to MH i2c: 01 00 00 75 3B B0 [09:19:16]Write i2c OK [09:19:16]MH_I2C_Read... [09:19:16]OFD Sender: No OFD packet to send [09:19:17]*** Cut start [09:19:17]*** Partial cut [09:19:17]*** CUTSNS_PIN = 1 [09:19:17]*** CUTSNS_PIN = 0 [09:19:17]*** Brake cut motor [09:19:17]Read from MH i2c: 01 [09:19:17]MH_I2C_Read... [09:19:17]*** Stop cut motor [09:19:17]*** Cut end [09:19:17]Read from MH i2c: 01 07 00 [09:19:17]MH_I2C_Read... [09:19:17]Read from MH i2c: 01 07 00 75 3B 00 00 00 00 00 FF 0F C5 [09:19:17]process_action close_receipt done [09:19:17]requested_data is exist [09:19:17]produce_requested_data [09:19:17]requested_item fm.sn is exist - process it [09:19:17]wFMCommunicate request_size=4 [09:19:17]MH_SAM_APDU [09:19:17]CAPDU: 80 11 00 00 [09:19:17]Write to MH i2c: E2 08 00 76 3B 80 11 00 00 00 00 00 00 2B [09:19:17]Write i2c OK [09:19:17]MH_I2C_Read... [09:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:17]Read from MH i2c: E2 [09:19:17]MH_I2C_Read... [09:19:17]Read from MH i2c: E2 17 00 [09:19:17]MH_I2C_Read... [09:19:17]Read from MH i2c: E2 17 00 76 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 86 [09:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:19:17]wFMCommunicate OK [09:19:17]requested_item fd.num is exist - process it [09:19:17]SAM_PROTO_GetFieldsCounters [09:19:17]wFMCommunicate request_size=4 [09:19:17]MH_SAM_APDU [09:19:17]CAPDU: 80 13 00 00 [09:19:17]Write to MH i2c: E2 08 00 77 3B 80 13 00 00 00 00 00 00 2E [09:19:17]Write i2c OK [09:19:17]MH_I2C_Read... [09:19:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:17]Read from MH i2c: E2 [09:19:17]MH_I2C_Read... [09:19:17]Read from MH i2c: E2 62 00 [09:19:17]MH_I2C_Read... [09:19:17]Read from MH i2c: E2 62 00 77 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9F CF 01 00 0E 04 04 00 B2 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 34 [09:19: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9F CF 01 00 0E 04 04 00 B2 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 [09:19:17]wFMCommunicate OK [09:19:17]SAM_PROTO_GetFieldsCounters done [09:19:17]requested_item shift.num is exist - process it [09:19:17]requested_item shift.opened is exist - process it [09:19:17]req_shift_opened [09:19:17]FM_GetShiftState [09:19:17]SAM_PROTO_GetShiftState [09:19:17]wFMCommunicate request_size=4 [09:19:17]MH_SAM_APDU [09:19:17]CAPDU: 80 13 01 00 [09:19:17]Write to MH i2c: E2 08 00 78 3B 80 13 01 00 00 00 00 00 30 [09:19:17]Write i2c OK [09:19:17]MH_I2C_Read... [09:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:17]Read from MH i2c: E2 [09:19:17]MH_I2C_Read... [09:19:17]Read from MH i2c: E2 0E 00 [09:19:17]MH_I2C_Read... [09:19:17]Read from MH i2c: E2 0E 00 78 3B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 5E [09:19:17]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:19:17]wFMCommunicate OK [09:19:17]SAM_PROTO_GetShiftState done [09:19:17]FM_GetShiftState done [09:19:17]req_shift_opened done [09:19:17]requested_item shift.open_date is exist - process it [09:19:17]req_shift_open_date [09:19:17]req_shift_open_date done [09:19:17]produce_requested_data done [09:19:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118687,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:19:17]process_action_free close_receipt [09:19:17]json_value_free [09:19:17]json_value_free done [09:19:17]process_json_proto returns [09:19:17]Send response to host [09:19:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118687,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:19:17]free response buf [09:19:17]execute_script done [09:19:17]execute_script returns [09:19:17]free content buf [09:19:17]Sock 7.Close socket [09:19:17]Sock 7.Thread stoped [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:36]OFD Sender: No OFD packet to send [09:19:41]OFD Sender: No OFD packet to send [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:20:01]OFD Sender: No OFD packet to send [09:20:06]OFD Sender: No OFD packet to send [09:20:11]OFD Sender: No OFD packet to send [09:20:16]OFD Sender: No OFD packet to send [09:20:21]OFD Sender: No OFD packet to send [09:20:26]OFD Sender: No OFD packet to send [09:20:31]OFD Sender: No OFD packet to send [09:20:36]OFD Sender: No OFD packet to send [09:20:41]OFD Sender: No OFD packet to send [09:20:46]OFD Sender: No OFD packet to send [09:20:49]accept exits with 9 [09:20:49]New connection [09:20:49]New thread 3067383140 created [09:20:49]Thread 3067239780 joined [09:20:49]Waiting for new connection... [09:20:49] Sock 9.Parse request [09:20:49]Sock 9.Check first char [09:20:49]Sock 9.First char is OK [09:20:49]request: POST /json_proto HTTP/1.0 [09:20:49]Method: POST [09:20:49]URL: /json_proto [09:20:49]Method is POST - this is cgi request [09:20:49]url: /json_proto [09:20:49]query_string will be loaded in cgi processing [09:20:49]execute_cgi json_proto POST (null) [09:20:49]execute_cgi path=json_proto method=POST [09:20:49]POST find Content-Length [09:20:49]Host: 172.17.45.7:8080 [09:20:49]Content-Length: 679 [09:20:49]Content-Type: application/json [09:20:49] [09:20:49]POST finish read [09:20:49]Found Content-Length = 679 [09:20:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:49]execute_script... [09:20:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:49]POST & json_proto [09:20:49]process_json_proto [09:20:49]json parsed OK: [09:20:49]protocol is kg_v1.0 [09:20:49]action value=close_receipt [09:20:49]process_action close_receipt [09:20:49]cmd_close_receipt [09:20:49]MH_GetDate [09:20:49]Write to MH i2c: F0 00 00 79 3B A3 [09:20:49]Write i2c OK [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: F0 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: F0 09 00 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: F0 09 00 79 3B 00 F5 5E A7 66 90 0F 3E 66 4F [09:20:49]GetLastDocTimeStamp 1722244758 [09:20:49]current date 1722244853 [09:20:49]FM_GetShiftState [09:20:49]SAM_PROTO_GetShiftState [09:20:49]wFMCommunicate request_size=4 [09:20:49]MH_SAM_APDU [09:20:49]CAPDU: 80 13 01 00 [09:20:49]Write to MH i2c: E2 08 00 7A 3B 80 13 01 00 00 00 00 00 32 [09:20:49]Write i2c OK [09:20:49]MH_I2C_Read... [09:20:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:49]Read from MH i2c: E2 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: E2 0E 00 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: E2 0E 00 7A 3B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 60 [09:20:49]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:20:49]wFMCommunicate OK [09:20:49]SAM_PROTO_GetShiftState done [09:20:49]FM_GetShiftState done [09:20:49]opened in 1722211641 [09:20:49]opened+sec_in_day 1722298041 [09:20:49]quantity*price = 100050 [09:20:49]sum+1 = 100052 [09:20:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 64 29.07.2024 09:20 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118688 ФПД: 165841760810348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T092053&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118688&fm=165841760810348&tin=02508201610067®Number=0000000000092660&sum=100000 [09:20:50]StoreToDocumentArchive [09:20:50]shift 434 fd 118688 [09:20:50]save to /storage/0434/doc_00118688 [09:20:50]save last doc name /storage/0434/doc_00118688 to /storage/kkm_last_doc_name [09:20:50]save OK [09:20:50]Clear old archive folders... [09:20:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:20:50]tlvbuf is 01F699C0 [09:20:50]SAM_PROTO_ClearQueue [09:20:50]wFMCommunicate request_size=4 [09:20:50]MH_SAM_APDU [09:20:50]CAPDU: 80 09 00 00 [09:20:50]Write to MH i2c: E2 08 00 87 3B 80 09 00 00 00 00 00 00 34 [09:20:50]Write i2c OK [09:20:50]MH_I2C_Read... [09:20:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:50]Read from MH i2c: E2 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 03 00 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 03 00 87 3B 00 90 00 36 [09:20:50]RAPDU: 90 00 [09:20:50]wFMCommunicate OK [09:20:50]SAM_PROTO_ClearQueue done [09:20:50]KKMCreateOFDPacket [09:20:50]OFDProtocolAddRootSTLVToBuf [09:20:50]FM_MakeSignedData [09:20:50]FM_MakeSignedData [09:20:50]SAM_PROTO_SignData [09:20:50]wFMCommunicate request_size=4 [09:20:50]MH_SAM_APDU [09:20:50]CAPDU: 80 0D 01 02 [09:20:50]Write to MH i2c: E2 08 00 88 3B 80 0D 01 02 00 00 00 00 3C [09:20:50]Write i2c OK [09:20:50]MH_I2C_Read... [09:20:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:50]Read from MH i2c: E2 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 03 00 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 03 00 88 3B 00 90 00 37 [09:20:50]RAPDU: 90 00 [09:20:50]wFMCommunicate OK [09:20:50]wFMCommunicate request_size=255 [09:20:50]MH_SAM_APDU [09:20:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F5 5E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A0 CF 01 00 35 04 06 00 96 D5 0B 3D [09:20:50]Write to MH i2c: E2 02 01 89 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F5 5E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A0 CF 01 00 35 04 06 00 96 D5 0B 3D 00 00 42 [09:20:50]Write i2c OK [09:20:50]MH_I2C_Read... [09:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:50]Read from MH i2c: E2 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 03 00 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 03 00 89 3B 00 90 00 38 [09:20:50]RAPDU: 90 00 [09:20:50]wFMCommunicate OK [09:20:50]wFMCommunicate request_size=7 [09:20:50]MH_SAM_APDU [09:20:50]CAPDU: 80 0D 02 02 02 F5 6C [09:20:50]Write to MH i2c: E2 0A 00 8A 3B 80 0D 02 02 02 00 F5 6C 00 00 A4 [09:20:50]Write i2c OK [09:20:50]MH_I2C_Read... [09:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:50]Read from MH i2c: E2 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 03 00 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 03 00 8A 3B 00 90 00 39 [09:20:50]RAPDU: 90 00 [09:20:50]wFMCommunicate OK [09:20:50]wFMCommunicate request_size=4 [09:20:50]MH_SAM_APDU [09:20:50]CAPDU: 80 0D 03 02 [09:20:50]Write to MH i2c: E2 08 00 8B 3B 80 0D 03 02 00 00 00 00 41 [09:20:50]Write i2c OK [09:20:50]MH_I2C_Read... [09:20:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:50]Read from MH i2c: E2 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 0B 00 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 0B 00 8B 3B 00 4C 1B 47 AE 05 08 42 1E 90 00 0B [09:20:50]RAPDU: 4C 1B 47 AE 05 08 42 1E 90 00 [09:20:50]wFMCommunicate OK [09:20:50]SAM_PROTO_SignData done [09:20:50]FM_MakeSignedData done [09:20:50]CreateOFDProtocolMessage [09:20:50]wFMCommunicate request_size=4 [09:20:50]MH_SAM_APDU [09:20:50]CAPDU: 80 11 00 00 [09:20:50]Write to MH i2c: E2 08 00 8C 3B 80 11 00 00 00 00 00 00 41 [09:20:50]Write i2c OK [09:20:50]MH_I2C_Read... [09:20:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:50]Read from MH i2c: E2 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 17 00 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 17 00 8C 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9C [09:20:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:20:50]wFMCommunicate OK [09:20:50]CreateOFDProtocolMessage done [09:20:50]OFDSenderStorePacket 118688 [09:20:50]StoreOFDPacket docnum=118688 [09:20:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C5 BF 04 01 DE 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F5 5E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A0 CF 01 00 35 04 06 00 96 D5 0B 3D F5 6C 4C 1B 47 AE 05 08 42 1E [09:20:50]CheckFolder [09:20:50]dirname=/storage/ofd_packets [09:20:50]CheckFolder done [09:20:50]ProducePacketName [09:20:50]name=ofd_packets/00118688 [09:20:50]NVStorageSaveData ofd_packets/00118688 [09:20:50]File name is /storage/ofd_packets/00118688 [09:20:50]Write 298 bytes [09:20:50]NVStorageSaveData done [09:20:50]OFDSenderStorePacket done [09:20:50]KKMCreateOFDPacket done [09:20:50]NVStorageSaveData kkm_last_timestamp [09:20:50]File name is /storage/kkm_last_timestamp [09:20:50]Write 4 bytes [09:20:50]NVStorageSaveData done [09:20:50]ExternCall_PrintAddStr [09:20:50]wPrintStart [09:20:50]Write to MH i2c: 01 00 00 8D 3B C8 [09:20:50]Write i2c OK [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: 01 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: 01 07 00 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: 01 07 00 8D 3B 00 00 00 00 00 FF 0F DD [09:20:50]RasterBufferAndPrint [09:20:50]line Счет N : (1)949571 [09:20:50]line ИНН: 02508201610067 [09:20:50]line Контрольно-Кассовый Чек [09:20:50]line ПРОДАЖА [09:20:50]line ТРК (МРК, ГНК) : 34 [09:20:50]line Товар: 2710194800 [09:20:50]line ДТ-К-5 [09:20:50]line 13.130 * 76.20 [09:20:50]line = 1000.51 [09:20:50]line НДС 12% НСП 1% [09:20:50]line > о реализуемом товаре [09:20:50]line ОКРУГЛЕНИЕ: -0.51 [09:20:50]line ИТОГО: 1000.00 [09:20:50]line Внесено: 1000.00 [09:20:50]line СДАЧА: 0.00 [09:20:50]line НСП 1% : 8.85 [09:20:50]line НДС 12% : 106.25 [09:20:50]line Наличными: 1000.00 [09:20:50]line Безнал.: 0.00 [09:20:50]line Место: АЗС № 134 "Партнер Нефть" [09:20:50]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:20:50]line СНО: Общий режим [09:20:50]line Чек 64 29.07.2024 09:20 [09:20:50]line Смена: 434 ФФД: 1.0 [09:20:50]line ЗНМ: 0300000044 [09:20:50]line РНМ: 0000000000092660 [09:20:50]line Версия ККМ: 001 [09:20:50]line ФМ: 0000000000874939 [09:20:50]line ФД: 118688 [09:20:50]line ФПД: 165841760810348 [09:20:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T092053&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118688&fm=165841760810348&tin=02508201610067®Number=0000000000092660&sum=100000 [09:20:51]OFD Sender: Processing packet 118688 [packets to send 86, broken 85] [09:20:51]ProducePacketName [09:20:51]name=ofd_packets/00118688 [09:20:51]OFD Sender: To server: pG, [09:20:51]CommunicateWithHost lk.salyk.kg:30040 [09:20:51]ConnectInit lk.salyk.kg [09:20:51]written 0, free lines is 4095 [09:20:51]Connected sock=10 [09:20:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C5 BF 04 01 DE 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F5 5E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A0 CF 01 00 35 04 06 00 96 D5 0B 3D F5 6C 4C 1B 47 AE 05 08 42 1E [09:20:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5D 6F 47 00 B3 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A0 CF 01 00 F4 03 04 00 84 0C A7 66 B6 04 01 00 00 78 3A EF 43 3C 34 C8 83 [09:20:51]CommunicateWithHost err = 0 [09:20:51]CheckOFDResponse [09:20:51]1017 (14) - 77093643461234 [09:20:51]1041 (16) - 0000000000874939 [09:20:51]1040 (4) - 118688 [09:20:51]1012 (4) - 29.07.2024 03:29 [09:20:51]1206 (1) - 0 [09:20:51]OFD Sender: Remove packet 118688 [09:20:51]ProducePacketName [09:20:51]name=ofd_packets/00118688 [09:20:51]NVStorageDeleteData [09:20:51]Write to MH i2c: 01 00 00 B7 3B F2 [09:20:51]Write i2c OK [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: 01 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: 01 07 00 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: 01 07 00 B7 3B 00 00 00 00 00 F8 0C FD [09:20:51]RasterBufferAndPrint [09:20:51]line [09:20:51]line [09:20:51]line [09:20:51]line [09:20:51]line [09:20:51]written 0, free lines is 3328 [09:20:51]MH_Cut [09:20:51]Write to MH i2c: D1 01 00 BE 3B 01 CB [09:20:51]Write i2c OK [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: D1 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: D1 01 00 [09:20:51]MH_I2C_Read... [09:20:51]Read from MH i2c: D1 01 00 BE 3B 00 CA [09:20:51]Write to MH i2c: 01 00 00 BF 3B FA [09:20:51]Write i2c OK [09:20:51]MH_I2C_Read... [09:20:51]OFD Sender: No OFD packet to send [09:20:52]*** Cut start [09:20:52]*** Partial cut [09:20:52]*** CUTSNS_PIN = 1 [09:20:52]*** CUTSNS_PIN = 0 [09:20:52]*** Brake cut motor [09:20:52]Read from MH i2c: 01 [09:20:52]MH_I2C_Read... [09:20:52]*** Stop cut motor [09:20:52]*** Cut end [09:20:52]Read from MH i2c: 01 07 00 [09:20:52]MH_I2C_Read... [09:20:52]Read from MH i2c: 01 07 00 BF 3B 00 00 00 00 00 FF 0F 0F [09:20:52]process_action close_receipt done [09:20:52]requested_data is exist [09:20:52]produce_requested_data [09:20:52]requested_item fm.sn is exist - process it [09:20:52]wFMCommunicate request_size=4 [09:20:52]MH_SAM_APDU [09:20:52]CAPDU: 80 11 00 00 [09:20:52]Write to MH i2c: E2 08 00 C0 3B 80 11 00 00 00 00 00 00 75 [09:20:52]Write i2c OK [09:20:52]MH_I2C_Read... [09:20:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:52]Read from MH i2c: E2 [09:20:52]MH_I2C_Read... [09:20:52]Read from MH i2c: E2 17 00 [09:20:52]MH_I2C_Read... [09:20:52]Read from MH i2c: E2 17 00 C0 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D0 [09:20:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:20:52]wFMCommunicate OK [09:20:52]requested_item fd.num is exist - process it [09:20:52]SAM_PROTO_GetFieldsCounters [09:20:52]wFMCommunicate request_size=4 [09:20:52]MH_SAM_APDU [09:20:52]CAPDU: 80 13 00 00 [09:20:52]Write to MH i2c: E2 08 00 C1 3B 80 13 00 00 00 00 00 00 78 [09:20:52]Write i2c OK [09:20:52]MH_I2C_Read... [09:20:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:53]Read from MH i2c: E2 [09:20:53]MH_I2C_Read... [09:20:53]Read from MH i2c: E2 62 00 [09:20:53]MH_I2C_Read... [09:20:53]Read from MH i2c: E2 62 00 C1 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A0 CF 01 00 0E 04 04 00 B2 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 82 [09:20: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A0 CF 01 00 0E 04 04 00 B2 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 [09:20:53]wFMCommunicate OK [09:20:53]SAM_PROTO_GetFieldsCounters done [09:20:53]requested_item shift.num is exist - process it [09:20:53]requested_item shift.opened is exist - process it [09:20:53]req_shift_opened [09:20:53]FM_GetShiftState [09:20:53]SAM_PROTO_GetShiftState [09:20:53]wFMCommunicate request_size=4 [09:20:53]MH_SAM_APDU [09:20:53]CAPDU: 80 13 01 00 [09:20:53]Write to MH i2c: E2 08 00 C2 3B 80 13 01 00 00 00 00 00 7A [09:20:53]Write i2c OK [09:20:53]MH_I2C_Read... [09:20:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:53]Read from MH i2c: E2 [09:20:53]MH_I2C_Read... [09:20:53]Read from MH i2c: E2 0E 00 [09:20:53]MH_I2C_Read... [09:20:53]Read from MH i2c: E2 0E 00 C2 3B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A8 [09:20:53]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:20:53]wFMCommunicate OK [09:20:53]SAM_PROTO_GetShiftState done [09:20:53]FM_GetShiftState done [09:20:53]req_shift_opened done [09:20:53]requested_item shift.open_date is exist - process it [09:20:53]req_shift_open_date [09:20:53]req_shift_open_date done [09:20:53]produce_requested_data done [09:20:53]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118688,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:20:53]process_action_free close_receipt [09:20:53]json_value_free [09:20:53]json_value_free done [09:20:53]process_json_proto returns [09:20:53]Send response to host [09:20:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118688,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:20:53]free response buf [09:20:53]execute_script done [09:20:53]execute_script returns [09:20:53]free content buf [09:20:53]Sock 9.Close socket [09:20:53]Sock 9.Thread stoped [09:20:56]OFD Sender: No OFD packet to send [09:21:01]OFD Sender: No OFD packet to send [09:21:06]OFD Sender: No OFD packet to send [09:21:11]OFD Sender: No OFD packet to send [09:21:16]OFD Sender: No OFD packet to send [09:21:21]OFD Sender: No OFD packet to send [09:21:26]OFD Sender: No OFD packet to send [09:21:31]OFD Sender: No OFD packet to send [09:21:36]OFD Sender: No OFD packet to send [09:21:41]OFD Sender: No OFD packet to send [09:21:46]OFD Sender: No OFD packet to send [09:21:51]OFD Sender: No OFD packet to send [09:21:54]accept exits with 7 [09:21:54]New connection [09:21:54]New thread 3067239780 created [09:21:54]Thread 3067383140 joined [09:21:54]Waiting for new connection... [09:21:54] Sock 7.Parse request [09:21:54]Sock 7.Check first char [09:21:54]Sock 7.First char is OK [09:21:54]request: POST /json_proto HTTP/1.0 [09:21:54]Method: POST [09:21:54]URL: /json_proto [09:21:54]Method is POST - this is cgi request [09:21:54]url: /json_proto [09:21:54]query_string will be loaded in cgi processing [09:21:54]execute_cgi json_proto POST (null) [09:21:54]execute_cgi path=json_proto method=POST [09:21:54]POST find Content-Length [09:21:54]Host: 172.17.45.7:8080 [09:21:54]Content-Length: 677 [09:21:54]Content-Type: application/json [09:21:54] [09:21:54]POST finish read [09:21:54]Found Content-Length = 677 [09:21:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:54]execute_script... [09:21:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:54]POST & json_proto [09:21:54]process_json_proto [09:21:54]json parsed OK: [09:21:54]protocol is kg_v1.0 [09:21:54]action value=close_receipt [09:21:54]process_action close_receipt [09:21:54]cmd_close_receipt [09:21:54]MH_GetDate [09:21:54]Write to MH i2c: F0 00 00 C3 3B ED [09:21:54]Write i2c OK [09:21:54]MH_I2C_Read... [09:21:54]Read from MH i2c: F0 [09:21:54]MH_I2C_Read... [09:21:54]Read from MH i2c: F0 09 00 [09:21:54]MH_I2C_Read... [09:21:54]Read from MH i2c: F0 09 00 C3 3B 00 37 5F A7 66 90 0F 3E 66 DC [09:21:54]GetLastDocTimeStamp 1722244853 [09:21:54]current date 1722244919 [09:21:54]FM_GetShiftState [09:21:54]SAM_PROTO_GetShiftState [09:21:54]wFMCommunicate request_size=4 [09:21:54]MH_SAM_APDU [09:21:54]CAPDU: 80 13 01 00 [09:21:54]Write to MH i2c: E2 08 00 C4 3B 80 13 01 00 00 00 00 00 7C [09:21:54]Write i2c OK [09:21:54]MH_I2C_Read... [09:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:54]Read from MH i2c: E2 [09:21:54]MH_I2C_Read... [09:21:54]Read from MH i2c: E2 0E 00 [09:21:54]MH_I2C_Read... [09:21:54]Read from MH i2c: E2 0E 00 C4 3B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 AA [09:21:54]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:21:54]wFMCommunicate OK [09:21:54]SAM_PROTO_GetShiftState done [09:21:54]FM_GetShiftState done [09:21:54]opened in 1722211641 [09:21:54]opened+sec_in_day 1722298041 [09:21:54]quantity*price = 30035 [09:21:54]sum+1 = 30036 [09:21:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 65 29.07.2024 09:21 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118689 ФПД: 10210832624867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T092159&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118689&fm=10210832624867&tin=02508201610067®Number=0000000000092660&sum=30000 [09:21:55]StoreToDocumentArchive [09:21:55]shift 434 fd 118689 [09:21:55]save to /storage/0434/doc_00118689 [09:21:55]save last doc name /storage/0434/doc_00118689 to /storage/kkm_last_doc_name [09:21:55]save OK [09:21:55]Clear old archive folders... [09:21:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:55]tlvbuf is B6F43A60 [09:21:55]SAM_PROTO_ClearQueue [09:21:55]wFMCommunicate request_size=4 [09:21:55]MH_SAM_APDU [09:21:55]CAPDU: 80 09 00 00 [09:21:55]Write to MH i2c: E2 08 00 D1 3B 80 09 00 00 00 00 00 00 7E [09:21:55]Write i2c OK [09:21:55]MH_I2C_Read... [09:21:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:55]Read from MH i2c: E2 [09:21:55]MH_I2C_Read... [09:21:55]Read from MH i2c: E2 03 00 [09:21:55]MH_I2C_Read... [09:21:55]Read from MH i2c: E2 03 00 D1 3B 00 90 00 80 [09:21:55]RAPDU: 90 00 [09:21:55]wFMCommunicate OK [09:21:55]SAM_PROTO_ClearQueue done [09:21:55]KKMCreateOFDPacket [09:21:55]OFDProtocolAddRootSTLVToBuf [09:21:55]FM_MakeSignedData [09:21:55]FM_MakeSignedData [09:21:55]SAM_PROTO_SignData [09:21:55]wFMCommunicate request_size=4 [09:21:55]MH_SAM_APDU [09:21:55]CAPDU: 80 0D 01 02 [09:21:55]Write to MH i2c: E2 08 00 D2 3B 80 0D 01 02 00 00 00 00 86 [09:21:55]Write i2c OK [09:21:55]MH_I2C_Read... [09:21:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:55]Read from MH i2c: E2 [09:21:55]MH_I2C_Read... [09:21:55]Read from MH i2c: E2 03 00 [09:21:55]MH_I2C_Read... [09:21:55]Read from MH i2c: E2 03 00 D2 3B 00 90 00 81 [09:21:55]RAPDU: 90 00 [09:21:55]wFMCommunicate OK [09:21:55]wFMCommunicate request_size=255 [09:21:55]MH_SAM_APDU [09:21:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 37 5F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A1 CF 01 00 35 04 06 00 09 [09:21:55]Write to MH i2c: E2 02 01 D3 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 37 5F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A1 CF 01 00 35 04 06 00 09 00 00 3A [09:21:55]Write i2c OK [09:21:55]MH_I2C_Read... [09:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:55]Read from MH i2c: E2 [09:21:55]MH_I2C_Read... [09:21:55]Read from MH i2c: E2 03 00 [09:21:55]MH_I2C_Read... [09:21:55]Read from MH i2c: E2 03 00 D3 3B 00 90 00 82 [09:21:55]RAPDU: 90 00 [09:21:55]wFMCommunicate OK [09:21:55]wFMCommunicate request_size=10 [09:21:55]MH_SAM_APDU [09:21:55]CAPDU: 80 0D 02 02 05 49 65 0D 2C E3 [09:21:55]Write to MH i2c: E2 0D 00 D4 3B 80 0D 02 02 05 00 49 65 0D 2C E3 00 00 5D [09:21:55]Write i2c OK [09:21:55]MH_I2C_Read... [09:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:55]Read from MH i2c: E2 [09:21:55]MH_I2C_Read... [09:21:55]Read from MH i2c: E2 03 00 [09:21:55]MH_I2C_Read... [09:21:55]Read from MH i2c: E2 03 00 D4 3B 00 90 00 83 [09:21:55]RAPDU: 90 00 [09:21:55]wFMCommunicate OK [09:21:55]wFMCommunicate request_size=4 [09:21:55]MH_SAM_APDU [09:21:55]CAPDU: 80 0D 03 02 [09:21:55]Write to MH i2c: E2 08 00 D5 3B 80 0D 03 02 00 00 00 00 8B [09:21:55]Write i2c OK [09:21:55]MH_I2C_Read... [09:21:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:55]Read from MH i2c: E2 [09:21:55]MH_I2C_Read... [09:21:55]Read from MH i2c: E2 0B 00 [09:21:55]MH_I2C_Read... [09:21:55]Read from MH i2c: E2 0B 00 D5 3B 00 E0 E0 4A B6 37 E9 E7 61 90 00 B4 [09:21:55]RAPDU: E0 E0 4A B6 37 E9 E7 61 90 00 [09:21:55]wFMCommunicate OK [09:21:55]SAM_PROTO_SignData done [09:21:55]FM_MakeSignedData done [09:21:55]CreateOFDProtocolMessage [09:21:55]wFMCommunicate request_size=4 [09:21:55]MH_SAM_APDU [09:21:55]CAPDU: 80 11 00 00 [09:21:55]Write to MH i2c: E2 08 00 D6 3B 80 11 00 00 00 00 00 00 8B [09:21:55]Write i2c OK [09:21:55]MH_I2C_Read... [09:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:56]Read from MH i2c: E2 [09:21:56]MH_I2C_Read... [09:21:56]Read from MH i2c: E2 17 00 [09:21:56]MH_I2C_Read... [09:21:56]Read from MH i2c: E2 17 00 D6 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E6 [09:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:21:56]wFMCommunicate OK [09:21:56]CreateOFDProtocolMessage done [09:21:56]OFDSenderStorePacket 118689 [09:21:56]StoreOFDPacket docnum=118689 [09:21:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 24 E6 07 01 5B AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 37 5F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A1 CF 01 00 35 04 06 00 09 49 65 0D 2C E3 E0 E0 4A B6 37 E9 E7 61 [09:21:56]CheckFolder [09:21:56]dirname=/storage/ofd_packets [09:21:56]CheckFolder done [09:21:56]ProducePacketName [09:21:56]name=ofd_packets/00118689 [09:21:56]NVStorageSaveData ofd_packets/00118689 [09:21:56]File name is /storage/ofd_packets/00118689 [09:21:56]Write 301 bytes [09:21:56]NVStorageSaveData done [09:21:56]OFDSenderStorePacket done [09:21:56]KKMCreateOFDPacket done [09:21:56]NVStorageSaveData kkm_last_timestamp [09:21:56]File name is /storage/kkm_last_timestamp [09:21:56]Write 4 bytes [09:21:56]NVStorageSaveData done [09:21:56]ExternCall_PrintAddStr [09:21:56]wPrintStart [09:21:56]Write to MH i2c: 01 00 00 D7 3B 12 [09:21:56]Write i2c OK [09:21:56]MH_I2C_Read... [09:21:56]Read from MH i2c: 01 [09:21:56]MH_I2C_Read... [09:21:56]Read from MH i2c: 01 07 00 [09:21:56]MH_I2C_Read... [09:21:56]Read from MH i2c: 01 07 00 D7 3B 00 00 00 00 00 FF 0F 27 [09:21:56]RasterBufferAndPrint [09:21:56]line Счет N : (1)949572 [09:21:56]line ИНН: 02508201610067 [09:21:56]line Контрольно-Кассовый Чек [09:21:56]line ПРОДАЖА [09:21:56]line ТРК (МРК, ГНК) : 31 [09:21:56]line Товар: 2710124130 [09:21:56]line Аи-92-К-4 [09:21:56]line 4.430 * 67.80 [09:21:56]line = 300.35 [09:21:56]line НДС 12% НСП 1% [09:21:56]line > о реализуемом товаре [09:21:56]line ОКРУГЛЕНИЕ: -0.35 [09:21:56]line ИТОГО: 300.00 [09:21:56]line Внесено: 300.00 [09:21:56]line СДАЧА: 0.00 [09:21:56]line НСП 1% : 2.66 [09:21:56]line НДС 12% : 31.90 [09:21:56]line Наличными: 300.00 [09:21:56]line Безнал.: 0.00 [09:21:56]line Место: АЗС № 134 "Партнер Нефть" [09:21:56]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:21:56]line СНО: Общий режим [09:21:56]line Чек 65 29.07.2024 09:21 [09:21:56]line Смена: 434 ФФД: 1.0 [09:21:56]line ЗНМ: 0300000044 [09:21:56]line РНМ: 0000000000092660 [09:21:56]line Версия ККМ: 001 [09:21:56]line ФМ: 0000000000874939 [09:21:56]line ФД: 118689 [09:21:56]line ФПД: 10210832624867 [09:21:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T092159&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118689&fm=10210832624867&tin=02508201610067®Number=0000000000092660&sum=30000 [09:21:56]OFD Sender: Processing packet 118689 [packets to send 86, broken 85] [09:21:56]ProducePacketName [09:21:56]name=ofd_packets/00118689 [09:21:56]OFD Sender: To server: pG, [09:21:56]CommunicateWithHost lk.salyk.kg:30040 [09:21:56]ConnectInit lk.salyk.kg [09:21:56]written 0, free lines is 4095 [09:21:56]Connected sock=10 [09:21:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 24 E6 07 01 5B AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 37 5F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A1 CF 01 00 35 04 06 00 09 49 65 0D 2C E3 E0 E0 4A B6 37 E9 E7 61 [09:21:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 07 95 47 00 E0 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A1 CF 01 00 F4 03 04 00 C5 0C A7 66 B6 04 01 00 00 67 6E 91 81 E9 BF 28 53 [09:21:56]CommunicateWithHost err = 0 [09:21:56]CheckOFDResponse [09:21:56]1017 (14) - 77093643461234 [09:21:56]1041 (16) - 0000000000874939 [09:21:56]1040 (4) - 118689 [09:21:56]1012 (4) - 29.07.2024 03:30 [09:21:56]1206 (1) - 0 [09:21:56]OFD Sender: Remove packet 118689 [09:21:56]ProducePacketName [09:21:56]name=ofd_packets/00118689 [09:21:56]NVStorageDeleteData [09:21:56]Write to MH i2c: 01 00 00 01 3C 3D [09:21:56]Write i2c OK [09:21:56]MH_I2C_Read... [09:21:56]Read from MH i2c: 01 [09:21:56]MH_I2C_Read... [09:21:56]Read from MH i2c: 01 07 00 [09:21:56]MH_I2C_Read... [09:21:56]Read from MH i2c: 01 07 00 01 3C 00 00 00 00 00 F7 0C 47 [09:21:56]RasterBufferAndPrint [09:21:56]line [09:21:56]line [09:21:56]line [09:21:56]line [09:21:56]line [09:21:56]written 0, free lines is 3326 [09:21:56]MH_Cut [09:21:56]Write to MH i2c: D1 01 00 08 3C 01 16 [09:21:56]Write i2c OK [09:21:56]MH_I2C_Read... [09:21:56]Read from MH i2c: D1 [09:21:56]MH_I2C_Read... [09:21:56]Read from MH i2c: D1 01 00 [09:21:56]MH_I2C_Read... [09:21:56]Read from MH i2c: D1 01 00 08 3C 00 15 [09:21:56]Write to MH i2c: 01 00 00 09 3C 45 [09:21:56]Write i2c OK [09:21:56]MH_I2C_Read... [09:21:57]OFD Sender: No OFD packet to send [09:21:57]*** Cut start [09:21:57]*** Partial cut [09:21:57]*** CUTSNS_PIN = 1 [09:21:57]*** CUTSNS_PIN = 0 [09:21:57]*** Brake cut motor [09:21:58]Read from MH i2c: 01 [09:21:58]MH_I2C_Read... [09:21:58]*** Stop cut motor [09:21:58]*** Cut end [09:21:58]Read from MH i2c: 01 07 00 [09:21:58]MH_I2C_Read... [09:21:58]Read from MH i2c: 01 07 00 09 3C 00 00 00 00 00 FF 0F 5A [09:21:58]process_action close_receipt done [09:21:58]requested_data is exist [09:21:58]produce_requested_data [09:21:58]requested_item fm.sn is exist - process it [09:21:58]wFMCommunicate request_size=4 [09:21:58]MH_SAM_APDU [09:21:58]CAPDU: 80 11 00 00 [09:21:58]Write to MH i2c: E2 08 00 0A 3C 80 11 00 00 00 00 00 00 C0 [09:21:58]Write i2c OK [09:21:58]MH_I2C_Read... [09:21:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:58]Read from MH i2c: E2 [09:21:58]MH_I2C_Read... [09:21:58]Read from MH i2c: E2 17 00 [09:21:58]MH_I2C_Read... [09:21:58]Read from MH i2c: E2 17 00 0A 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1B [09:21:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:21:58]wFMCommunicate OK [09:21:58]requested_item fd.num is exist - process it [09:21:58]SAM_PROTO_GetFieldsCounters [09:21:58]wFMCommunicate request_size=4 [09:21:58]MH_SAM_APDU [09:21:58]CAPDU: 80 13 00 00 [09:21:58]Write to MH i2c: E2 08 00 0B 3C 80 13 00 00 00 00 00 00 C3 [09:21:58]Write i2c OK [09:21:58]MH_I2C_Read... [09:21:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:58]Read from MH i2c: E2 [09:21:58]MH_I2C_Read... [09:21:58]Read from MH i2c: E2 62 00 [09:21:58]MH_I2C_Read... [09:21:58]Read from MH i2c: E2 62 00 0B 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A1 CF 01 00 0E 04 04 00 B2 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 D1 [09:21: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A1 CF 01 00 0E 04 04 00 B2 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 [09:21:58]wFMCommunicate OK [09:21:58]SAM_PROTO_GetFieldsCounters done [09:21:58]requested_item shift.num is exist - process it [09:21:58]requested_item shift.opened is exist - process it [09:21:58]req_shift_opened [09:21:58]FM_GetShiftState [09:21:58]SAM_PROTO_GetShiftState [09:21:58]wFMCommunicate request_size=4 [09:21:58]MH_SAM_APDU [09:21:58]CAPDU: 80 13 01 00 [09:21:58]Write to MH i2c: E2 08 00 0C 3C 80 13 01 00 00 00 00 00 C5 [09:21:58]Write i2c OK [09:21:58]MH_I2C_Read... [09:21:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:58]Read from MH i2c: E2 [09:21:58]MH_I2C_Read... [09:21:58]Read from MH i2c: E2 0E 00 [09:21:58]MH_I2C_Read... [09:21:58]Read from MH i2c: E2 0E 00 0C 3C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F3 [09:21:58]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:21:58]wFMCommunicate OK [09:21:58]SAM_PROTO_GetShiftState done [09:21:58]FM_GetShiftState done [09:21:58]req_shift_opened done [09:21:58]requested_item shift.open_date is exist - process it [09:21:58]req_shift_open_date [09:21:58]req_shift_open_date done [09:21:58]produce_requested_data done [09:21:58]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118689,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:21:58]process_action_free close_receipt [09:21:58]json_value_free [09:21:58]json_value_free done [09:21:58]process_json_proto returns [09:21:58]Send response to host [09:21:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118689,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:21:58]free response buf [09:21:58]execute_script done [09:21:58]execute_script returns [09:21:58]free content buf [09:21:58]Sock 7.Close socket [09:21:58]Sock 7.Thread stoped [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:27]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:37]OFD Sender: No OFD packet to send [09:22:42]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:52]OFD Sender: No OFD packet to send [09:22:57]OFD Sender: No OFD packet to send [09:23:02]OFD Sender: No OFD packet to send [09:23:07]OFD Sender: No OFD packet to send [09:23:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:42]OFD Sender: No OFD packet to send [09:23:47]OFD Sender: No OFD packet to send [09:23:52]OFD Sender: No OFD packet to send [09:23:57]OFD Sender: No OFD packet to send [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:27]OFD Sender: No OFD packet to send [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [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:01]accept exits with 9 [09:25:01]New connection [09:25:01]New thread 3067383140 created [09:25:01]Thread 3067239780 joined [09:25:01]Waiting for new connection... [09:25:01] Sock 9.Parse request [09:25:01]Sock 9.Check first char [09:25:01]Sock 9.First char is OK [09:25:01]request: POST /json_proto HTTP/1.0 [09:25:01]Method: POST [09:25:01]URL: /json_proto [09:25:01]Method is POST - this is cgi request [09:25:01]url: /json_proto [09:25:01]query_string will be loaded in cgi processing [09:25:01]execute_cgi json_proto POST (null) [09:25:01]execute_cgi path=json_proto method=POST [09:25:01]POST find Content-Length [09:25:01]Host: 172.17.45.7:8080 [09:25:01]Content-Length: 678 [09:25:01]Content-Type: application/json [09:25:01] [09:25:01]POST finish read [09:25:01]Found Content-Length = 678 [09:25:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:01]execute_script... [09:25:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:01]POST & json_proto [09:25:01]process_json_proto [09:25:01]json parsed OK: [09:25:01]protocol is kg_v1.0 [09:25:01]action value=close_receipt [09:25:01]process_action close_receipt [09:25:01]cmd_close_receipt [09:25:01]MH_GetDate [09:25:01]Write to MH i2c: F0 00 00 0D 3C 38 [09:25:01]Write i2c OK [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: F0 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: F0 09 00 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: F0 09 00 0D 3C 00 F2 5F A7 66 90 0F 3E 66 E2 [09:25:01]GetLastDocTimeStamp 1722244919 [09:25:01]current date 1722245106 [09:25:01]FM_GetShiftState [09:25:01]SAM_PROTO_GetShiftState [09:25:01]wFMCommunicate request_size=4 [09:25:01]MH_SAM_APDU [09:25:01]CAPDU: 80 13 01 00 [09:25:01]Write to MH i2c: E2 08 00 0E 3C 80 13 01 00 00 00 00 00 C7 [09:25:01]Write i2c OK [09:25:01]MH_I2C_Read... [09:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:01]Read from MH i2c: E2 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: E2 0E 00 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: E2 0E 00 0E 3C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F5 [09:25:01]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:25:01]wFMCommunicate OK [09:25:01]SAM_PROTO_GetShiftState done [09:25:01]FM_GetShiftState done [09:25:01]opened in 1722211641 [09:25:01]opened+sec_in_day 1722298041 [09:25:01]quantity*price = 70037 [09:25:01]sum+1 = 70038 [09:25:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 66 29.07.2024 09:25 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118690 ФПД: 56850341022805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T092506&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118690&fm=56850341022805&tin=02508201610067®Number=0000000000092660&sum=70000 [09:25:02]StoreToDocumentArchive [09:25:02]shift 434 fd 118690 [09:25:02]save to /storage/0434/doc_00118690 [09:25:02]save last doc name /storage/0434/doc_00118690 to /storage/kkm_last_doc_name [09:25:02]save OK [09:25:02]Clear old archive folders... [09:25:02]OFD Sender: No OFD packet to send [09:25:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:02]tlvbuf is 01F33D50 [09:25:02]SAM_PROTO_ClearQueue [09:25:02]wFMCommunicate request_size=4 [09:25:02]MH_SAM_APDU [09:25:02]CAPDU: 80 09 00 00 [09:25:02]Write to MH i2c: E2 08 00 1B 3C 80 09 00 00 00 00 00 00 C9 [09:25:02]Write i2c OK [09:25:02]MH_I2C_Read... [09:25:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:02]Read from MH i2c: E2 [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: E2 03 00 [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: E2 03 00 1B 3C 00 90 00 CB [09:25:02]RAPDU: 90 00 [09:25:02]wFMCommunicate OK [09:25:02]SAM_PROTO_ClearQueue done [09:25:02]KKMCreateOFDPacket [09:25:02]OFDProtocolAddRootSTLVToBuf [09:25:02]FM_MakeSignedData [09:25:02]FM_MakeSignedData [09:25:02]SAM_PROTO_SignData [09:25:02]wFMCommunicate request_size=4 [09:25:02]MH_SAM_APDU [09:25:02]CAPDU: 80 0D 01 02 [09:25:02]Write to MH i2c: E2 08 00 1C 3C 80 0D 01 02 00 00 00 00 D1 [09:25:02]Write i2c OK [09:25:02]MH_I2C_Read... [09:25:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:02]Read from MH i2c: E2 [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: E2 03 00 [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: E2 03 00 1C 3C 00 90 00 CC [09:25:02]RAPDU: 90 00 [09:25:02]wFMCommunicate OK [09:25:02]wFMCommunicate request_size=255 [09:25:02]MH_SAM_APDU [09:25:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F2 5F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A2 CF 01 00 35 04 06 00 33 [09:25:02]Write to MH i2c: E2 02 01 1D 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F2 5F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A2 CF 01 00 35 04 06 00 33 00 00 34 [09:25:02]Write i2c OK [09:25:02]MH_I2C_Read... [09:25:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:02]Read from MH i2c: E2 [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: E2 03 00 [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: E2 03 00 1D 3C 00 90 00 CD [09:25:02]RAPDU: 90 00 [09:25:02]wFMCommunicate OK [09:25:02]wFMCommunicate request_size=10 [09:25:02]MH_SAM_APDU [09:25:02]CAPDU: 80 0D 02 02 05 B4 80 61 CC 55 [09:25:02]Write to MH i2c: E2 0D 00 1E 3C 80 0D 02 02 05 00 B4 80 61 CC 55 00 00 94 [09:25:02]Write i2c OK [09:25:02]MH_I2C_Read... [09:25:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:02]Read from MH i2c: E2 [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: E2 03 00 [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: E2 03 00 1E 3C 00 90 00 CE [09:25:02]RAPDU: 90 00 [09:25:02]wFMCommunicate OK [09:25:02]wFMCommunicate request_size=4 [09:25:02]MH_SAM_APDU [09:25:02]CAPDU: 80 0D 03 02 [09:25:02]Write to MH i2c: E2 08 00 1F 3C 80 0D 03 02 00 00 00 00 D6 [09:25:02]Write i2c OK [09:25:02]MH_I2C_Read... [09:25:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:02]Read from MH i2c: E2 [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: E2 0B 00 [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: E2 0B 00 1F 3C 00 67 6E 56 19 A0 45 76 7A 90 00 F0 [09:25:02]RAPDU: 67 6E 56 19 A0 45 76 7A 90 00 [09:25:02]wFMCommunicate OK [09:25:02]SAM_PROTO_SignData done [09:25:02]FM_MakeSignedData done [09:25:02]CreateOFDProtocolMessage [09:25:02]wFMCommunicate request_size=4 [09:25:02]MH_SAM_APDU [09:25:02]CAPDU: 80 11 00 00 [09:25:02]Write to MH i2c: E2 08 00 20 3C 80 11 00 00 00 00 00 00 D6 [09:25:02]Write i2c OK [09:25:02]MH_I2C_Read... [09:25:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:02]Read from MH i2c: E2 [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: E2 17 00 [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: E2 17 00 20 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 31 [09:25:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:25:02]wFMCommunicate OK [09:25:02]CreateOFDProtocolMessage done [09:25:02]OFDSenderStorePacket 118690 [09:25:02]StoreOFDPacket docnum=118690 [09:25:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 30 19 07 01 5A 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F2 5F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A2 CF 01 00 35 04 06 00 33 B4 80 61 CC 55 67 6E 56 19 A0 45 76 7A [09:25:02]CheckFolder [09:25:02]dirname=/storage/ofd_packets [09:25:02]CheckFolder done [09:25:02]ProducePacketName [09:25:02]name=ofd_packets/00118690 [09:25:02]NVStorageSaveData ofd_packets/00118690 [09:25:02]File name is /storage/ofd_packets/00118690 [09:25:02]Write 301 bytes [09:25:02]NVStorageSaveData done [09:25:02]OFDSenderStorePacket done [09:25:02]KKMCreateOFDPacket done [09:25:02]NVStorageSaveData kkm_last_timestamp [09:25:02]File name is /storage/kkm_last_timestamp [09:25:02]Write 4 bytes [09:25:02]NVStorageSaveData done [09:25:02]ExternCall_PrintAddStr [09:25:02]wPrintStart [09:25:02]Write to MH i2c: 01 00 00 21 3C 5D [09:25:02]Write i2c OK [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: 01 [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: 01 07 00 [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: 01 07 00 21 3C 00 00 00 00 00 FF 0F 72 [09:25:02]RasterBufferAndPrint [09:25:02]line Счет N : (1)949573 [09:25:02]line ИНН: 02508201610067 [09:25:02]line Контрольно-Кассовый Чек [09:25:02]line ПРОДАЖА [09:25:02]line ТРК (МРК, ГНК) : 61 [09:25:02]line Товар: 2710124130 [09:25:02]line Аи-92-К-4 [09:25:02]line 10.330 * 67.80 [09:25:02]line = 700.37 [09:25:02]line НДС 12% НСП 1% [09:25:02]line > о реализуемом товаре [09:25:02]line ОКРУГЛЕНИЕ: -0.37 [09:25:02]line ИТОГО: 700.00 [09:25:02]line Внесено: 700.00 [09:25:02]line СДАЧА: 0.00 [09:25:02]line НСП 1% : 6.20 [09:25:02]line НДС 12% : 74.38 [09:25:02]line Наличными: 700.00 [09:25:02]line Безнал.: 0.00 [09:25:02]line Место: АЗС № 134 "Партнер Нефть" [09:25:02]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:25:02]line СНО: Общий режим [09:25:02]line Чек 66 29.07.2024 09:25 [09:25:02]line Смена: 434 ФФД: 1.0 [09:25:02]line ЗНМ: 0300000044 [09:25:02]line РНМ: 0000000000092660 [09:25:02]line Версия ККМ: 001 [09:25:02]line ФМ: 0000000000874939 [09:25:02]line ФД: 118690 [09:25:02]line ФПД: 56850341022805 [09:25:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T092506&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118690&fm=56850341022805&tin=02508201610067®Number=0000000000092660&sum=70000 [09:25:02]written 0, free lines is 4095 [09:25:03]OFD Sender: Processing packet 118690 [packets to send 86, broken 85] [09:25:03]ProducePacketName [09:25:03]name=ofd_packets/00118690 [09:25:03]OFD Sender: To server: pG, [09:25:03]CommunicateWithHost lk.salyk.kg:30040 [09:25:03]ConnectInit lk.salyk.kg [09:25:03]Connected sock=10 [09:25:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 30 19 07 01 5A 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F2 5F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A2 CF 01 00 35 04 06 00 33 B4 80 61 CC 55 67 6E 56 19 A0 45 76 7A [09:25:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AC F2 47 00 B9 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A2 CF 01 00 F4 03 04 00 80 0D A7 66 B6 04 01 00 00 25 27 40 94 39 42 BF 28 [09:25:03]CommunicateWithHost err = 0 [09:25:03]CheckOFDResponse [09:25:03]1017 (14) - 77093643461234 [09:25:03]1041 (16) - 0000000000874939 [09:25:03]1040 (4) - 118690 [09:25:03]1012 (4) - 29.07.2024 03:33 [09:25:03]1206 (1) - 0 [09:25:03]OFD Sender: Remove packet 118690 [09:25:03]ProducePacketName [09:25:03]name=ofd_packets/00118690 [09:25:03]NVStorageDeleteData [09:25:03]Write to MH i2c: 01 00 00 4B 3C 87 [09:25:03]Write i2c OK [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: 01 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: 01 07 00 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: 01 07 00 4B 3C 00 00 00 00 00 F2 0C 8C [09:25:03]RasterBufferAndPrint [09:25:03]line [09:25:03]line [09:25:03]line [09:25:03]line [09:25:03]line [09:25:03]written 0, free lines is 3322 [09:25:03]MH_Cut [09:25:03]Write to MH i2c: D1 01 00 52 3C 01 60 [09:25:03]Write i2c OK [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: D1 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: D1 01 00 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: D1 01 00 52 3C 00 5F [09:25:03]Write to MH i2c: 01 00 00 53 3C 8F [09:25:03]Write i2c OK [09:25:03]MH_I2C_Read... [09:25:03]OFD Sender: No OFD packet to send [09:25:04]*** Cut start [09:25:04]*** Partial cut [09:25:04]*** CUTSNS_PIN = 1 [09:25:04]*** CUTSNS_PIN = 0 [09:25:04]*** Brake cut motor [09:25:04]Read from MH i2c: 01 [09:25:04]MH_I2C_Read... [09:25:04]*** Stop cut motor [09:25:04]*** Cut end [09:25:04]Read from MH i2c: 01 07 00 [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: 01 07 00 53 3C 00 00 00 00 00 FF 0F A4 [09:25:04]process_action close_receipt done [09:25:04]requested_data is exist [09:25:04]produce_requested_data [09:25:04]requested_item fm.sn is exist - process it [09:25:04]wFMCommunicate request_size=4 [09:25:04]MH_SAM_APDU [09:25:04]CAPDU: 80 11 00 00 [09:25:04]Write to MH i2c: E2 08 00 54 3C 80 11 00 00 00 00 00 00 0A [09:25:04]Write i2c OK [09:25:04]MH_I2C_Read... [09:25:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:04]Read from MH i2c: E2 [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: E2 17 00 [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: E2 17 00 54 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 65 [09:25:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:25:04]wFMCommunicate OK [09:25:04]requested_item fd.num is exist - process it [09:25:04]SAM_PROTO_GetFieldsCounters [09:25:04]wFMCommunicate request_size=4 [09:25:04]MH_SAM_APDU [09:25:04]CAPDU: 80 13 00 00 [09:25:04]Write to MH i2c: E2 08 00 55 3C 80 13 00 00 00 00 00 00 0D [09:25:04]Write i2c OK [09:25:04]MH_I2C_Read... [09:25:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:04]Read from MH i2c: E2 [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: E2 62 00 [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: E2 62 00 55 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A2 CF 01 00 0E 04 04 00 B2 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 1F [09:25: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A2 CF 01 00 0E 04 04 00 B2 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 [09:25:04]wFMCommunicate OK [09:25:04]SAM_PROTO_GetFieldsCounters done [09:25:04]requested_item shift.num is exist - process it [09:25:04]requested_item shift.opened is exist - process it [09:25:04]req_shift_opened [09:25:04]FM_GetShiftState [09:25:04]SAM_PROTO_GetShiftState [09:25:04]wFMCommunicate request_size=4 [09:25:04]MH_SAM_APDU [09:25:04]CAPDU: 80 13 01 00 [09:25:04]Write to MH i2c: E2 08 00 56 3C 80 13 01 00 00 00 00 00 0F [09:25:04]Write i2c OK [09:25:04]MH_I2C_Read... [09:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:04]Read from MH i2c: E2 [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: E2 0E 00 [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: E2 0E 00 56 3C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 3D [09:25:04]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:25:04]wFMCommunicate OK [09:25:04]SAM_PROTO_GetShiftState done [09:25:04]FM_GetShiftState done [09:25:04]req_shift_opened done [09:25:04]requested_item shift.open_date is exist - process it [09:25:04]req_shift_open_date [09:25:04]req_shift_open_date done [09:25:04]produce_requested_data done [09:25:04]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118690,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:25:04]process_action_free close_receipt [09:25:04]json_value_free [09:25:04]json_value_free done [09:25:04]process_json_proto returns [09:25:04]Send response to host [09:25:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118690,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:25:04]free response buf [09:25:04]execute_script done [09:25:04]execute_script returns [09:25:04]free content buf [09:25:04]Sock 9.Close socket [09:25:04]Sock 9.Thread stoped [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:24]accept exits with 7 [09:26:24]New connection [09:26:24]New thread 3067239780 created [09:26:24]Thread 3067383140 joined [09:26:24]Waiting for new connection... [09:26:24] Sock 7.Parse request [09:26:24]Sock 7.Check first char [09:26:24]Sock 7.First char is OK [09:26:24]request: POST /json_proto HTTP/1.0 [09:26:24]Method: POST [09:26:24]URL: /json_proto [09:26:24]Method is POST - this is cgi request [09:26:24]url: /json_proto [09:26:24]query_string will be loaded in cgi processing [09:26:24]execute_cgi json_proto POST (null) [09:26:24]execute_cgi path=json_proto method=POST [09:26:24]POST find Content-Length [09:26:24]Host: 172.17.45.7:8080 [09:26:24]Content-Length: 677 [09:26:24]Content-Type: application/json [09:26:24] [09:26:24]POST finish read [09:26:24]Found Content-Length = 677 [09:26:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:24]execute_script... [09:26: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)949574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:24]POST & json_proto [09:26:24]process_json_proto [09:26:24]json parsed OK: [09:26:24]protocol is kg_v1.0 [09:26:24]action value=close_receipt [09:26:24]process_action close_receipt [09:26:24]cmd_close_receipt [09:26:24]MH_GetDate [09:26:24]Write to MH i2c: F0 00 00 57 3C 82 [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: F0 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: F0 09 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: F0 09 00 57 3C 00 45 60 A7 66 90 0F 3E 66 80 [09:26:24]GetLastDocTimeStamp 1722245106 [09:26:24]current date 1722245189 [09:26:24]FM_GetShiftState [09:26:24]SAM_PROTO_GetShiftState [09:26:24]wFMCommunicate request_size=4 [09:26:24]MH_SAM_APDU [09:26:24]CAPDU: 80 13 01 00 [09:26:24]Write to MH i2c: E2 08 00 58 3C 80 13 01 00 00 00 00 00 11 [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:24]Read from MH i2c: E2 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 0E 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 0E 00 58 3C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 3F [09:26:24]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:26:24]wFMCommunicate OK [09:26:24]SAM_PROTO_GetShiftState done [09:26:24]FM_GetShiftState done [09:26:24]opened in 1722211641 [09:26:24]opened+sec_in_day 1722298041 [09:26:24]quantity*price = 50036 [09:26:24]sum+1 = 50037 [09:26:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 67 29.07.2024 09:26 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118691 ФПД: 216252601533864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T092629&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118691&fm=216252601533864&tin=02508201610067®Number=0000000000092660&sum=50000 [09:26:25]StoreToDocumentArchive [09:26:25]shift 434 fd 118691 [09:26:25]save to /storage/0434/doc_00118691 [09:26:25]save last doc name /storage/0434/doc_00118691 to /storage/kkm_last_doc_name [09:26:25]save OK [09:26:25]Clear old archive folders... [09:26:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:25]tlvbuf is B6FC1BE0 [09:26:25]SAM_PROTO_ClearQueue [09:26:25]wFMCommunicate request_size=4 [09:26:25]MH_SAM_APDU [09:26:25]CAPDU: 80 09 00 00 [09:26:25]Write to MH i2c: E2 08 00 65 3C 80 09 00 00 00 00 00 00 13 [09:26:25]Write i2c OK [09:26:25]MH_I2C_Read... [09:26:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:25]Read from MH i2c: E2 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: E2 03 00 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: E2 03 00 65 3C 00 90 00 15 [09:26:25]RAPDU: 90 00 [09:26:25]wFMCommunicate OK [09:26:25]SAM_PROTO_ClearQueue done [09:26:25]KKMCreateOFDPacket [09:26:25]OFDProtocolAddRootSTLVToBuf [09:26:25]FM_MakeSignedData [09:26:25]FM_MakeSignedData [09:26:25]SAM_PROTO_SignData [09:26:25]wFMCommunicate request_size=4 [09:26:25]MH_SAM_APDU [09:26:25]CAPDU: 80 0D 01 02 [09:26:25]Write to MH i2c: E2 08 00 66 3C 80 0D 01 02 00 00 00 00 1B [09:26:25]Write i2c OK [09:26:25]MH_I2C_Read... [09:26:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:25]Read from MH i2c: E2 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: E2 03 00 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: E2 03 00 66 3C 00 90 00 16 [09:26:25]RAPDU: 90 00 [09:26:25]wFMCommunicate OK [09:26:25]wFMCommunicate request_size=255 [09:26:25]MH_SAM_APDU [09:26: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 45 60 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A3 CF 01 00 35 04 06 00 C4 [09:26:25]Write to MH i2c: E2 02 01 67 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 45 60 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A3 CF 01 00 35 04 06 00 C4 00 00 7E [09:26:25]Write i2c OK [09:26:25]MH_I2C_Read... [09:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:26]Read from MH i2c: E2 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 03 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 03 00 67 3C 00 90 00 17 [09:26:26]RAPDU: 90 00 [09:26:26]wFMCommunicate OK [09:26:26]wFMCommunicate request_size=10 [09:26:26]MH_SAM_APDU [09:26:26]CAPDU: 80 0D 02 02 05 AE 3B 7F 05 A8 [09:26:26]Write to MH i2c: E2 0D 00 68 3C 80 0D 02 02 05 00 AE 3B 7F 05 A8 00 00 3D [09:26:26]Write i2c OK [09:26:26]MH_I2C_Read... [09:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:26]Read from MH i2c: E2 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 03 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 03 00 68 3C 00 90 00 18 [09:26:26]RAPDU: 90 00 [09:26:26]wFMCommunicate OK [09:26:26]wFMCommunicate request_size=4 [09:26:26]MH_SAM_APDU [09:26:26]CAPDU: 80 0D 03 02 [09:26:26]Write to MH i2c: E2 08 00 69 3C 80 0D 03 02 00 00 00 00 20 [09:26:26]Write i2c OK [09:26:26]MH_I2C_Read... [09:26:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:26]Read from MH i2c: E2 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 0B 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 0B 00 69 3C 00 07 89 BC EB 75 A0 8B 29 90 00 21 [09:26:26]RAPDU: 07 89 BC EB 75 A0 8B 29 90 00 [09:26:26]wFMCommunicate OK [09:26:26]SAM_PROTO_SignData done [09:26:26]FM_MakeSignedData done [09:26:26]CreateOFDProtocolMessage [09:26:26]wFMCommunicate request_size=4 [09:26:26]MH_SAM_APDU [09:26:26]CAPDU: 80 11 00 00 [09:26:26]Write to MH i2c: E2 08 00 6A 3C 80 11 00 00 00 00 00 00 20 [09:26:26]Write i2c OK [09:26:26]MH_I2C_Read... [09:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:26]Read from MH i2c: E2 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 17 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 17 00 6A 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7B [09:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:26:26]wFMCommunicate OK [09:26:26]CreateOFDProtocolMessage done [09:26:26]OFDSenderStorePacket 118691 [09:26:26]StoreOFDPacket docnum=118691 [09:26:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BB 8A 07 01 7F 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 45 60 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A3 CF 01 00 35 04 06 00 C4 AE 3B 7F 05 A8 07 89 BC EB 75 A0 8B 29 [09:26:26]CheckFolder [09:26:26]dirname=/storage/ofd_packets [09:26:26]CheckFolder done [09:26:26]ProducePacketName [09:26:26]name=ofd_packets/00118691 [09:26:26]NVStorageSaveData ofd_packets/00118691 [09:26:26]File name is /storage/ofd_packets/00118691 [09:26:26]Write 301 bytes [09:26:26]NVStorageSaveData done [09:26:26]OFDSenderStorePacket done [09:26:26]KKMCreateOFDPacket done [09:26:26]NVStorageSaveData kkm_last_timestamp [09:26:26]File name is /storage/kkm_last_timestamp [09:26:26]Write 4 bytes [09:26:26]NVStorageSaveData done [09:26:26]ExternCall_PrintAddStr [09:26:26]wPrintStart [09:26:26]Write to MH i2c: 01 00 00 6B 3C A7 [09:26:26]Write i2c OK [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: 01 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: 01 07 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: 01 07 00 6B 3C 00 00 00 00 00 FF 0F BC [09:26:26]RasterBufferAndPrint [09:26:26]line Счет N : (1)949574 [09:26:26]line ИНН: 02508201610067 [09:26:26]line Контрольно-Кассовый Чек [09:26:26]line ПРОДАЖА [09:26:26]line ТРК (МРК, ГНК) : 61 [09:26:26]line Товар: 2710124130 [09:26:26]line Аи-92-К-4 [09:26:26]line 7.380 * 67.80 [09:26:26]line = 500.36 [09:26:26]line НДС 12% НСП 1% [09:26:26]line > о реализуемом товаре [09:26:26]line ОКРУГЛЕНИЕ: -0.36 [09:26:26]line ИТОГО: 500.00 [09:26:26]line Внесено: 500.00 [09:26:26]line СДАЧА: 0.00 [09:26:26]line НСП 1% : 4.43 [09:26:26]line НДС 12% : 53.14 [09:26:26]line Наличными: 500.00 [09:26:26]line Безнал.: 0.00 [09:26:26]line Место: АЗС № 134 "Партнер Нефть" [09:26:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:26:26]line СНО: Общий режим [09:26:26]line Чек 67 29.07.2024 09:26 [09:26:26]line Смена: 434 ФФД: 1.0 [09:26:26]line ЗНМ: 0300000044 [09:26:26]line РНМ: 0000000000092660 [09:26:26]line Версия ККМ: 001 [09:26:26]line ФМ: 0000000000874939 [09:26:26]line ФД: 118691 [09:26:26]line ФПД: 216252601533864 [09:26:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T092629&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118691&fm=216252601533864&tin=02508201610067®Number=0000000000092660&sum=50000 [09:26:26]OFD Sender: Processing packet 118691 [packets to send 86, broken 85] [09:26:26]ProducePacketName [09:26:26]name=ofd_packets/00118691 [09:26:26]OFD Sender: To server: pG, [09:26:26]CommunicateWithHost lk.salyk.kg:30040 [09:26:26]ConnectInit lk.salyk.kg [09:26:26]written 0, free lines is 4095 [09:26:26]Connected sock=10 [09:26:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BB 8A 07 01 7F 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 45 60 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A3 CF 01 00 35 04 06 00 C4 AE 3B 7F 05 A8 07 89 BC EB 75 A0 8B 29 [09:26:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0A 23 47 00 D3 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A3 CF 01 00 F4 03 04 00 D3 0D A7 66 B6 04 01 00 00 AF 2D 79 0E A8 34 E3 D2 [09:26:26]CommunicateWithHost err = 0 [09:26:26]CheckOFDResponse [09:26:26]1017 (14) - 77093643461234 [09:26:26]1041 (16) - 0000000000874939 [09:26:26]1040 (4) - 118691 [09:26:26]1012 (4) - 29.07.2024 03:34 [09:26:26]1206 (1) - 0 [09:26:26]OFD Sender: Remove packet 118691 [09:26:26]ProducePacketName [09:26:26]name=ofd_packets/00118691 [09:26:26]NVStorageDeleteData [09:26:27]Write to MH i2c: 01 00 00 95 3C D1 [09:26:27]Write i2c OK [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: 01 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: 01 07 00 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: 01 07 00 95 3C 00 00 00 00 00 E3 0C C7 [09:26:27]RasterBufferAndPrint [09:26:27]line [09:26:27]line [09:26:27]line [09:26:27]line [09:26:27]line [09:26:27]written 0, free lines is 3305 [09:26:27]MH_Cut [09:26:27]Write to MH i2c: D1 01 00 9C 3C 01 AA [09:26:27]Write i2c OK [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: D1 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: D1 01 00 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: D1 01 00 9C 3C 00 A9 [09:26:27]Write to MH i2c: 01 00 00 9D 3C D9 [09:26:27]Write i2c OK [09:26:27]MH_I2C_Read... [09:26:27]OFD Sender: No OFD packet to send [09:26:27]*** Cut start [09:26:27]*** Partial cut [09:26:27]*** CUTSNS_PIN = 1 [09:26:27]*** CUTSNS_PIN = 0 [09:26:28]*** Brake cut motor [09:26:28]Read from MH i2c: 01 [09:26:28]MH_I2C_Read... [09:26:28]*** Stop cut motor [09:26:28]*** Cut end [09:26:28]Read from MH i2c: 01 07 00 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: 01 07 00 9D 3C 00 00 00 00 00 FF 0F EE [09:26:28]process_action close_receipt done [09:26:28]requested_data is exist [09:26:28]produce_requested_data [09:26:28]requested_item fm.sn is exist - process it [09:26:28]wFMCommunicate request_size=4 [09:26:28]MH_SAM_APDU [09:26:28]CAPDU: 80 11 00 00 [09:26:28]Write to MH i2c: E2 08 00 9E 3C 80 11 00 00 00 00 00 00 54 [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 [09:26:28]MH_I2C_Read... [09:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:28]Read from MH i2c: E2 17 00 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 17 00 9E 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AF [09:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:26:28]wFMCommunicate OK [09:26:28]requested_item fd.num is exist - process it [09:26:28]SAM_PROTO_GetFieldsCounters [09:26:28]wFMCommunicate request_size=4 [09:26:28]MH_SAM_APDU [09:26:28]CAPDU: 80 13 00 00 [09:26:28]Write to MH i2c: E2 08 00 9F 3C 80 13 00 00 00 00 00 00 57 [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:28]Read from MH i2c: E2 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 62 00 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 62 00 9F 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A3 CF 01 00 0E 04 04 00 B2 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 6D [09:26: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A3 CF 01 00 0E 04 04 00 B2 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 [09:26:28]wFMCommunicate OK [09:26:28]SAM_PROTO_GetFieldsCounters done [09:26:28]requested_item shift.num is exist - process it [09:26:28]requested_item shift.opened is exist - process it [09:26:28]req_shift_opened [09:26:28]FM_GetShiftState [09:26:28]SAM_PROTO_GetShiftState [09:26:28]wFMCommunicate request_size=4 [09:26:28]MH_SAM_APDU [09:26:28]CAPDU: 80 13 01 00 [09:26:28]Write to MH i2c: E2 08 00 A0 3C 80 13 01 00 00 00 00 00 59 [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:28]Read from MH i2c: E2 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 0E 00 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 0E 00 A0 3C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 87 [09:26:28]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:26:28]wFMCommunicate OK [09:26:28]SAM_PROTO_GetShiftState done [09:26:28]FM_GetShiftState done [09:26:28]req_shift_opened done [09:26:28]requested_item shift.open_date is exist - process it [09:26:28]req_shift_open_date [09:26:28]req_shift_open_date done [09:26:28]produce_requested_data done [09:26:28]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118691,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:26:28]process_action_free close_receipt [09:26:28]json_value_free [09:26:28]json_value_free done [09:26:28]process_json_proto returns [09:26:28]Send response to host [09:26:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118691,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:26:28]free response buf [09:26:28]execute_script done [09:26:28]execute_script returns [09:26:28]free content buf [09:26:28]Sock 7.Close socket [09:26:28]Sock 7.Thread stoped [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:52]OFD Sender: No OFD packet to send [09:27:57]OFD Sender: No OFD packet to send [09:28:02]OFD Sender: No OFD packet to send [09:28:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:17]OFD Sender: No OFD packet to send [09:28:21]accept exits with 9 [09:28:21]New connection [09:28:21]New thread 3067383140 created [09:28:21]Thread 3067239780 joined [09:28:21]Waiting for new connection... [09:28:21] Sock 9.Parse request [09:28:21]Sock 9.Check first char [09:28:21]Sock 9.First char is OK [09:28:21]request: POST /json_proto HTTP/1.0 [09:28:21]Method: POST [09:28:21]URL: /json_proto [09:28:21]Method is POST - this is cgi request [09:28:21]url: /json_proto [09:28:21]query_string will be loaded in cgi processing [09:28:21]execute_cgi json_proto POST (null) [09:28:21]execute_cgi path=json_proto method=POST [09:28:21]POST find Content-Length [09:28:21]Host: 172.17.45.7:8080 [09:28:21]Content-Length: 682 [09:28:21]Content-Type: application/json [09:28:21] [09:28:21]POST finish read [09:28:21]Found Content-Length = 682 [09:28:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:21]execute_script... [09:28:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:21]POST & json_proto [09:28:21]process_json_proto [09:28:21]json parsed OK: [09:28:21]protocol is kg_v1.0 [09:28:21]action value=close_receipt [09:28:21]process_action close_receipt [09:28:21]cmd_close_receipt [09:28:21]MH_GetDate [09:28:21]Write to MH i2c: F0 00 00 A1 3C CC [09:28:21]Write i2c OK [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: F0 [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: F0 09 00 [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: F0 09 00 A1 3C 00 BA 60 A7 66 90 0F 3E 66 3F [09:28:21]GetLastDocTimeStamp 1722245189 [09:28:21]current date 1722245306 [09:28:21]FM_GetShiftState [09:28:21]SAM_PROTO_GetShiftState [09:28:21]wFMCommunicate request_size=4 [09:28:21]MH_SAM_APDU [09:28:21]CAPDU: 80 13 01 00 [09:28:21]Write to MH i2c: E2 08 00 A2 3C 80 13 01 00 00 00 00 00 5B [09:28:21]Write i2c OK [09:28:21]MH_I2C_Read... [09:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:21]Read from MH i2c: E2 [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: E2 0E 00 [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: E2 0E 00 A2 3C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 89 [09:28:21]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:28:21]wFMCommunicate OK [09:28:21]SAM_PROTO_GetShiftState done [09:28:21]FM_GetShiftState done [09:28:21]opened in 1722211641 [09:28:21]opened+sec_in_day 1722298041 [09:28:21]quantity*price = 100005 [09:28:21]sum+1 = 100006 [09:28:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 68 29.07.2024 09:28 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118692 ФПД: 181141963633697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T092826&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118692&fm=181141963633697&tin=02508201610067®Number=0000000000092660&sum=100000 [09:28:22]StoreToDocumentArchive [09:28:22]shift 434 fd 118692 [09:28:22]save to /storage/0434/doc_00118692 [09:28:22]save last doc name /storage/0434/doc_00118692 to /storage/kkm_last_doc_name [09:28:22]save OK [09:28:22]Clear old archive folders... [09:28:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:22]tlvbuf is 01EBD9D0 [09:28:22]SAM_PROTO_ClearQueue [09:28:22]wFMCommunicate request_size=4 [09:28:22]MH_SAM_APDU [09:28:22]CAPDU: 80 09 00 00 [09:28:22]Write to MH i2c: E2 08 00 AF 3C 80 09 00 00 00 00 00 00 5D [09:28:22]Write i2c OK [09:28:22]MH_I2C_Read... [09:28:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:22]Read from MH i2c: E2 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: E2 03 00 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: E2 03 00 AF 3C 00 90 00 5F [09:28:22]RAPDU: 90 00 [09:28:22]wFMCommunicate OK [09:28:22]SAM_PROTO_ClearQueue done [09:28:22]KKMCreateOFDPacket [09:28:22]OFDProtocolAddRootSTLVToBuf [09:28:22]FM_MakeSignedData [09:28:22]FM_MakeSignedData [09:28:22]SAM_PROTO_SignData [09:28:22]wFMCommunicate request_size=4 [09:28:22]MH_SAM_APDU [09:28:22]CAPDU: 80 0D 01 02 [09:28:22]Write to MH i2c: E2 08 00 B0 3C 80 0D 01 02 00 00 00 00 65 [09:28:22]Write i2c OK [09:28:22]MH_I2C_Read... [09:28:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:22]Read from MH i2c: E2 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: E2 03 00 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: E2 03 00 B0 3C 00 90 00 60 [09:28:22]RAPDU: 90 00 [09:28:22]wFMCommunicate OK [09:28:22]wFMCommunicate request_size=255 [09:28:22]MH_SAM_APDU [09:28:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 BA 60 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A4 CF 01 00 35 04 06 00 A4 [09:28:22]Write to MH i2c: E2 02 01 B1 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 BA 60 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A4 CF 01 00 35 04 06 00 A4 00 00 AE [09:28:22]Write i2c OK [09:28:22]MH_I2C_Read... [09:28:22]OFD Sender: No OFD packet to send [09:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:22]Read from MH i2c: E2 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: E2 03 00 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: E2 03 00 B1 3C 00 90 00 61 [09:28:22]RAPDU: 90 00 [09:28:22]wFMCommunicate OK [09:28:22]wFMCommunicate request_size=10 [09:28:22]MH_SAM_APDU [09:28:22]CAPDU: 80 0D 02 02 05 BF 66 65 74 21 [09:28:22]Write to MH i2c: E2 0D 00 B2 3C 80 0D 02 02 05 00 BF 66 65 74 21 00 00 91 [09:28:22]Write i2c OK [09:28:22]MH_I2C_Read... [09:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:22]Read from MH i2c: E2 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: E2 03 00 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: E2 03 00 B2 3C 00 90 00 62 [09:28:22]RAPDU: 90 00 [09:28:22]wFMCommunicate OK [09:28:22]wFMCommunicate request_size=4 [09:28:22]MH_SAM_APDU [09:28:22]CAPDU: 80 0D 03 02 [09:28:22]Write to MH i2c: E2 08 00 B3 3C 80 0D 03 02 00 00 00 00 6A [09:28:22]Write i2c OK [09:28:22]MH_I2C_Read... [09:28:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:22]Read from MH i2c: E2 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: E2 0B 00 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: E2 0B 00 B3 3C 00 0B 66 DF 24 2C DF A2 30 90 00 BC [09:28:22]RAPDU: 0B 66 DF 24 2C DF A2 30 90 00 [09:28:22]wFMCommunicate OK [09:28:22]SAM_PROTO_SignData done [09:28:22]FM_MakeSignedData done [09:28:22]CreateOFDProtocolMessage [09:28:22]wFMCommunicate request_size=4 [09:28:22]MH_SAM_APDU [09:28:22]CAPDU: 80 11 00 00 [09:28:22]Write to MH i2c: E2 08 00 B4 3C 80 11 00 00 00 00 00 00 6A [09:28:22]Write i2c OK [09:28:22]MH_I2C_Read... [09:28:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:22]Read from MH i2c: E2 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: E2 17 00 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: E2 17 00 B4 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C5 [09:28:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:28:22]wFMCommunicate OK [09:28:22]CreateOFDProtocolMessage done [09:28:22]OFDSenderStorePacket 118692 [09:28:22]StoreOFDPacket docnum=118692 [09:28:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FB 41 07 01 F8 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 BA 60 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A4 CF 01 00 35 04 06 00 A4 BF 66 65 74 21 0B 66 DF 24 2C DF A2 30 [09:28:22]CheckFolder [09:28:22]dirname=/storage/ofd_packets [09:28:22]CheckFolder done [09:28:22]ProducePacketName [09:28:22]name=ofd_packets/00118692 [09:28:22]NVStorageSaveData ofd_packets/00118692 [09:28:22]File name is /storage/ofd_packets/00118692 [09:28:22]Write 301 bytes [09:28:22]NVStorageSaveData done [09:28:22]OFDSenderStorePacket done [09:28:22]KKMCreateOFDPacket done [09:28:22]NVStorageSaveData kkm_last_timestamp [09:28:22]File name is /storage/kkm_last_timestamp [09:28:22]Write 4 bytes [09:28:22]NVStorageSaveData done [09:28:22]ExternCall_PrintAddStr [09:28:22]wPrintStart [09:28:22]Write to MH i2c: 01 00 00 B5 3C F1 [09:28:22]Write i2c OK [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: 01 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: 01 07 00 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: 01 07 00 B5 3C 00 00 00 00 00 FF 0F 06 [09:28:22]RasterBufferAndPrint [09:28:22]line Счет N : (1)949575 [09:28:22]line ИНН: 02508201610067 [09:28:22]line Контрольно-Кассовый Чек [09:28:22]line ПРОДАЖА [09:28:22]line ТРК (МРК, ГНК) : 41 [09:28:22]line Товар: 2710124130 [09:28:22]line Аи-92-К-4 [09:28:22]line 14.750 * 67.80 [09:28:22]line = 1000.05 [09:28:22]line НДС 12% НСП 1% [09:28:22]line > о реализуемом товаре [09:28:22]line ОКРУГЛЕНИЕ: -0.05 [09:28:22]line ИТОГО: 1000.00 [09:28:22]line Внесено: 1000.00 [09:28:22]line СДАЧА: 0.00 [09:28:22]line НСП 1% : 8.85 [09:28:22]line НДС 12% : 106.20 [09:28:22]line Наличными: 1000.00 [09:28:22]line Безнал.: 0.00 [09:28:22]line Место: АЗС № 134 "Партнер Нефть" [09:28:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:28:22]line СНО: Общий режим [09:28:22]line Чек 68 29.07.2024 09:28 [09:28:22]line Смена: 434 ФФД: 1.0 [09:28:22]line ЗНМ: 0300000044 [09:28:22]line РНМ: 0000000000092660 [09:28:22]line Версия ККМ: 001 [09:28:22]line ФМ: 0000000000874939 [09:28:22]line ФД: 118692 [09:28:22]line ФПД: 181141963633697 [09:28:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T092826&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118692&fm=181141963633697&tin=02508201610067®Number=0000000000092660&sum=100000 [09:28:22]written 0, free lines is 4095 [09:28:22]OFD Sender: Processing packet 118692 [packets to send 86, broken 85] [09:28:22]ProducePacketName [09:28:22]name=ofd_packets/00118692 [09:28:22]OFD Sender: To server: pG, [09:28:22]CommunicateWithHost lk.salyk.kg:30040 [09:28:22]ConnectInit lk.salyk.kg [09:28:22]Connected sock=10 [09:28:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FB 41 07 01 F8 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 BA 60 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A4 CF 01 00 35 04 06 00 A4 BF 66 65 74 21 0B 66 DF 24 2C DF A2 30 [09:28:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 DE 52 47 00 7F 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 34 39 33 39 10 04 04 00 A4 CF 01 00 F4 03 04 00 47 0E A7 66 B6 04 01 00 00 66 B3 1D A2 D0 32 B7 D6 [09:28:23]CommunicateWithHost err = 0 [09:28:23]CheckOFDResponse [09:28:23]1017 (14) - 77093643461234 [09:28:23]1041 (16) - 0000000000874939 [09:28:23]1040 (4) - 118692 [09:28:23]1012 (4) - 29.07.2024 03:36 [09:28:23]1206 (1) - 0 [09:28:23]OFD Sender: Remove packet 118692 [09:28:23]ProducePacketName [09:28:23]name=ofd_packets/00118692 [09:28:23]NVStorageDeleteData [09:28:23]Write to MH i2c: 01 00 00 DF 3C 1B [09:28:23]Write i2c OK [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: 01 [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: 01 07 00 [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: 01 07 00 DF 3C 00 00 00 00 00 FF 0C 2D [09:28:23]RasterBufferAndPrint [09:28:23]line [09:28:23]line [09:28:23]line [09:28:23]line [09:28:23]line [09:28:23]written 0, free lines is 3336 [09:28:23]MH_Cut [09:28:23]Write to MH i2c: D1 01 00 E6 3C 01 F4 [09:28:23]Write i2c OK [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: D1 [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: D1 01 00 [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: D1 01 00 E6 3C 00 F3 [09:28:23]Write to MH i2c: 01 00 00 E7 3C 23 [09:28:23]Write i2c OK [09:28:23]MH_I2C_Read... [09:28:23]OFD Sender: No OFD packet to send [09:28:23]*** Cut start [09:28:23]*** Partial cut [09:28:23]*** CUTSNS_PIN = 1 [09:28:24]*** CUTSNS_PIN = 0 [09:28:24]*** Brake cut motor [09:28:24]Read from MH i2c: 01 [09:28:24]MH_I2C_Read... [09:28:24]*** Stop cut motor [09:28:24]*** Cut end [09:28:24]Read from MH i2c: 01 07 00 [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: 01 07 00 E7 3C 00 00 00 00 00 FF 0F 38 [09:28:24]process_action close_receipt done [09:28:24]requested_data is exist [09:28:24]produce_requested_data [09:28:24]requested_item fm.sn is exist - process it [09:28:24]wFMCommunicate request_size=4 [09:28:24]MH_SAM_APDU [09:28:24]CAPDU: 80 11 00 00 [09:28:24]Write to MH i2c: E2 08 00 E8 3C 80 11 00 00 00 00 00 00 9E [09:28:24]Write i2c OK [09:28:24]MH_I2C_Read... [09:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:24]Read from MH i2c: E2 [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: E2 17 00 [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: E2 17 00 E8 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F9 [09:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:28:24]wFMCommunicate OK [09:28:24]requested_item fd.num is exist - process it [09:28:24]SAM_PROTO_GetFieldsCounters [09:28:24]wFMCommunicate request_size=4 [09:28:24]MH_SAM_APDU [09:28:24]CAPDU: 80 13 00 00 [09:28:24]Write to MH i2c: E2 08 00 E9 3C 80 13 00 00 00 00 00 00 A1 [09:28:24]Write i2c OK [09:28:24]MH_I2C_Read... [09:28:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:24]Read from MH i2c: E2 [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: E2 62 00 [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: E2 62 00 E9 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A4 CF 01 00 0E 04 04 00 B2 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 BB [09:28: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A4 CF 01 00 0E 04 04 00 B2 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 [09:28:24]wFMCommunicate OK [09:28:24]SAM_PROTO_GetFieldsCounters done [09:28:24]requested_item shift.num is exist - process it [09:28:24]requested_item shift.opened is exist - process it [09:28:24]req_shift_opened [09:28:24]FM_GetShiftState [09:28:24]SAM_PROTO_GetShiftState [09:28:24]wFMCommunicate request_size=4 [09:28:24]MH_SAM_APDU [09:28:24]CAPDU: 80 13 01 00 [09:28:24]Write to MH i2c: E2 08 00 EA 3C 80 13 01 00 00 00 00 00 A3 [09:28:24]Write i2c OK [09:28:24]MH_I2C_Read... [09:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:24]Read from MH i2c: E2 [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: E2 0E 00 [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: E2 0E 00 EA 3C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D1 [09:28:24]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:28:24]wFMCommunicate OK [09:28:24]SAM_PROTO_GetShiftState done [09:28:24]FM_GetShiftState done [09:28:24]req_shift_opened done [09:28:24]requested_item shift.open_date is exist - process it [09:28:24]req_shift_open_date [09:28:24]req_shift_open_date done [09:28:24]produce_requested_data done [09:28:24]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118692,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:28:24]process_action_free close_receipt [09:28:24]json_value_free [09:28:24]json_value_free done [09:28:24]process_json_proto returns [09:28:24]Send response to host [09:28:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118692,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:28:24]free response buf [09:28:24]execute_script done [09:28:24]execute_script returns [09:28:24]free content buf [09:28:24]Sock 9.Close socket [09:28:24]Sock 9.Thread stoped [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]accept exits with 7 [09:29:58]New connection [09:29:58]New thread 3067239780 created [09:29:58]Thread 3067383140 joined [09:29:58]Waiting for new connection... [09:29:58] Sock 7.Parse request [09:29:58]Sock 7.Check first char [09:29:58]Sock 7.First char is OK [09:29:58]request: POST /json_proto HTTP/1.0 [09:29:58]Method: POST [09:29:58]URL: /json_proto [09:29:58]Method is POST - this is cgi request [09:29:58]url: /json_proto [09:29:58]query_string will be loaded in cgi processing [09:29:58]execute_cgi json_proto POST (null) [09:29:58]execute_cgi path=json_proto method=POST [09:29:58]POST find Content-Length [09:29:58]Host: 172.17.45.7:8080 [09:29:58]Content-Length: 819 [09:29:58]Content-Type: application/json [09:29:58] [09:29:58]POST finish read [09:29:58]Found Content-Length = 819 [09:29:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 59.060, "sum" : 4500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 4500.00, "payments": [ { "type": 1, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:58]execute_script... [09:29: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)949576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 59.060, "sum" : 4500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 4500.00, "payments": [ { "type": 1, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:58]POST & json_proto [09:29:58]process_json_proto [09:29:58]json parsed OK: [09:29:58]protocol is kg_v1.0 [09:29:58]action value=close_receipt [09:29:58]process_action close_receipt [09:29:58]cmd_close_receipt [09:29:58]MH_GetDate [09:29:58]Write to MH i2c: F0 00 00 EB 3C 16 [09:29:58]Write i2c OK [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: F0 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: F0 09 00 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: F0 09 00 EB 3C 00 1B 61 A7 66 90 0F 3E 66 EB [09:29:58]GetLastDocTimeStamp 1722245306 [09:29:58]current date 1722245403 [09:29:58]FM_GetShiftState [09:29:58]SAM_PROTO_GetShiftState [09:29:58]wFMCommunicate request_size=4 [09:29:58]MH_SAM_APDU [09:29:58]CAPDU: 80 13 01 00 [09:29:58]Write to MH i2c: E2 08 00 EC 3C 80 13 01 00 00 00 00 00 A5 [09:29:58]Write i2c OK [09:29:58]MH_I2C_Read... [09:29:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:58]Read from MH i2c: E2 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: E2 0E 00 [09:29:58]MH_I2C_Read... [09:29:58]Read from MH i2c: E2 0E 00 EC 3C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D3 [09:29:58]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:29:58]wFMCommunicate OK [09:29:58]SAM_PROTO_GetShiftState done [09:29:58]FM_GetShiftState done [09:29:58]opened in 1722211641 [09:29:58]opened+sec_in_day 1722298041 [09:29:58]quantity*price = 450037 [09:29:58]sum+1 = 450038 [09:29:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 4500.00 НСП 1% : 39.83 НДС 12% : 477.91 Наличными: 0.00 Безнал.: 4500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 69 29.07.2024 09:30 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118693 ФПД: 239286203211330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T093003&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118693&fm=239286203211330&tin=02508201610067®Number=0000000000092660&sum=450000 [09:29:59]StoreToDocumentArchive [09:29:59]shift 434 fd 118693 [09:29:59]save to /storage/0434/doc_00118693 [09:29:59]save last doc name /storage/0434/doc_00118693 to /storage/kkm_last_doc_name [09:29:59]save OK [09:29:59]Clear old archive folders... [09:29:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:29:59]tlvbuf is 01E4DC70 [09:29:59]SAM_PROTO_ClearQueue [09:29:59]wFMCommunicate request_size=4 [09:29:59]MH_SAM_APDU [09:29:59]CAPDU: 80 09 00 00 [09:29:59]Write to MH i2c: E2 08 00 F9 3C 80 09 00 00 00 00 00 00 A7 [09:29:59]Write i2c OK [09:29:59]MH_I2C_Read... [09:29:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:59]Read from MH i2c: E2 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: E2 03 00 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: E2 03 00 F9 3C 00 90 00 A9 [09:29:59]RAPDU: 90 00 [09:29:59]wFMCommunicate OK [09:29:59]SAM_PROTO_ClearQueue done [09:29:59]KKMCreateOFDPacket [09:29:59]OFDProtocolAddRootSTLVToBuf [09:29:59]FM_MakeSignedData [09:29:59]FM_MakeSignedData [09:29:59]SAM_PROTO_SignData [09:29:59]wFMCommunicate request_size=4 [09:29:59]MH_SAM_APDU [09:29:59]CAPDU: 80 0D 01 02 [09:29:59]Write to MH i2c: E2 08 00 FA 3C 80 0D 01 02 00 00 00 00 AF [09:29:59]Write i2c OK [09:29:59]MH_I2C_Read... [09:29:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:59]Read from MH i2c: E2 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: E2 03 00 [09:29:59]MH_I2C_Read... [09:29:59]Read from MH i2c: E2 03 00 FA 3C 00 90 00 AA [09:29:59]RAPDU: 90 00 [09:29:59]wFMCommunicate OK [09:29:59]wFMCommunicate request_size=255 [09:29:59]MH_SAM_APDU [09:29:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 1B 61 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A5 CF 01 00 35 04 06 00 D9 A1 29 24 [09:29:59]Write to MH i2c: E2 02 01 FB 3C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 1B 61 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A5 CF 01 00 35 04 06 00 D9 A1 29 24 00 00 94 [09:29:59]Write i2c OK [09:29:59]MH_I2C_Read... [09:30:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:00]Read from MH i2c: E2 [09:30:00]MH_I2C_Read... [09:30:00]Read from MH i2c: E2 03 00 [09:30:00]MH_I2C_Read... [09:30:00]Read from MH i2c: E2 03 00 FB 3C 00 90 00 AB [09:30:00]RAPDU: 90 00 [09:30:00]wFMCommunicate OK [09:30:00]wFMCommunicate request_size=7 [09:30:00]MH_SAM_APDU [09:30:00]CAPDU: 80 0D 02 02 02 5E 42 [09:30:00]Write to MH i2c: E2 0A 00 FC 3C 80 0D 02 02 02 00 5E 42 00 00 56 [09:30:00]Write i2c OK [09:30:00]MH_I2C_Read... [09:30:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:00]Read from MH i2c: E2 [09:30:00]MH_I2C_Read... [09:30:00]Read from MH i2c: E2 03 00 [09:30:00]MH_I2C_Read... [09:30:00]Read from MH i2c: E2 03 00 FC 3C 00 90 00 AC [09:30:00]RAPDU: 90 00 [09:30:00]wFMCommunicate OK [09:30:00]wFMCommunicate request_size=4 [09:30:00]MH_SAM_APDU [09:30:00]CAPDU: 80 0D 03 02 [09:30:00]Write to MH i2c: E2 08 00 FD 3C 80 0D 03 02 00 00 00 00 B4 [09:30:00]Write i2c OK [09:30:00]MH_I2C_Read... [09:30:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:00]Read from MH i2c: E2 [09:30:00]MH_I2C_Read... [09:30:00]Read from MH i2c: E2 0B 00 [09:30:00]MH_I2C_Read... [09:30:00]Read from MH i2c: E2 0B 00 FD 3C 00 12 45 F0 12 47 B9 BC F2 90 00 BC [09:30:00]RAPDU: 12 45 F0 12 47 B9 BC F2 90 00 [09:30:00]wFMCommunicate OK [09:30:00]SAM_PROTO_SignData done [09:30:00]FM_MakeSignedData done [09:30:00]CreateOFDProtocolMessage [09:30:00]wFMCommunicate request_size=4 [09:30:00]MH_SAM_APDU [09:30:00]CAPDU: 80 11 00 00 [09:30:00]Write to MH i2c: E2 08 00 FE 3C 80 11 00 00 00 00 00 00 B4 [09:30:00]Write i2c OK [09:30:00]MH_I2C_Read... [09:30:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:00]Read from MH i2c: E2 [09:30:00]MH_I2C_Read... [09:30:00]Read from MH i2c: E2 17 00 [09:30:00]MH_I2C_Read... [09:30:00]Read from MH i2c: E2 17 00 FE 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0F [09:30:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:30:00]wFMCommunicate OK [09:30:00]CreateOFDProtocolMessage done [09:30:00]OFDSenderStorePacket 118693 [09:30:00]StoreOFDPacket docnum=118693 [09:30:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 53 6E 04 01 5B 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 1B 61 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A5 CF 01 00 35 04 06 00 D9 A1 29 24 5E 42 12 45 F0 12 47 B9 BC F2 [09:30:00]CheckFolder [09:30:00]dirname=/storage/ofd_packets [09:30:00]CheckFolder done [09:30:00]ProducePacketName [09:30:00]name=ofd_packets/00118693 [09:30:00]NVStorageSaveData ofd_packets/00118693 [09:30:00]File name is /storage/ofd_packets/00118693 [09:30:00]Write 298 bytes [09:30:00]NVStorageSaveData done [09:30:00]OFDSenderStorePacket done [09:30:00]KKMCreateOFDPacket done [09:30:00]NVStorageSaveData kkm_last_timestamp [09:30:00]File name is /storage/kkm_last_timestamp [09:30:00]Write 4 bytes [09:30:00]NVStorageSaveData done [09:30:00]ExternCall_PrintAddStr [09:30:00]wPrintStart [09:30:00]Write to MH i2c: 01 00 00 FF 3C 3B [09:30:00]Write i2c OK [09:30:00]MH_I2C_Read... [09:30:00]Read from MH i2c: 01 [09:30:00]MH_I2C_Read... [09:30:00]Read from MH i2c: 01 07 00 [09:30:00]MH_I2C_Read... [09:30:00]Read from MH i2c: 01 07 00 FF 3C 00 00 00 00 00 FF 0F 50 [09:30:00]RasterBufferAndPrint [09:30:00]line Счет N : (1)949576 [09:30:00]line ИНН: 02508201610067 [09:30:00]line Контрольно-Кассовый Чек [09:30:00]line ПРОДАЖА [09:30:00]line ТРК (МРК, ГНК) : 64 [09:30:00]line Товар: 2710194800 [09:30:00]line ДТ-К-5 [09:30:00]line 59.060 * 76.20 [09:30:00]line = 4500.37 [09:30:00]line НДС 12% НСП 1% [09:30:00]line > о реализуемом товаре [09:30:00]line ОКРУГЛЕНИЕ: -0.37 [09:30:00]line ИТОГО: 4500.00 [09:30:00]line НСП 1% : 39.83 [09:30:00]line НДС 12% : 477.91 [09:30:00]line Наличными: 0.00 [09:30:00]line Безнал.: 4500.00 [09:30:00]line Место: АЗС № 134 "Партнер Нефть" [09:30:00]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:30:00]line СНО: Общий режим [09:30:00]line Чек 69 29.07.2024 09:30 [09:30:00]line Смена: 434 ФФД: 1.0 [09:30:00]line ЗНМ: 0300000044 [09:30:00]line РНМ: 0000000000092660 [09:30:00]line Версия ККМ: 001 [09:30:00]line Платежная система: O! деньги [09:30:00]line ФМ: 0000000000874939 [09:30:00]line ФД: 118693 [09:30:00]line ФПД: 239286203211330 [09:30:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T093003&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118693&fm=239286203211330&tin=02508201610067®Number=0000000000092660&sum=450000 [09:30:00]OFD Sender: Processing packet 118693 [packets to send 86, broken 85] [09:30:00]ProducePacketName [09:30:00]name=ofd_packets/00118693 [09:30:00]OFD Sender: To server: pG, [09:30:00]CommunicateWithHost lk.salyk.kg:30040 [09:30:00]ConnectInit lk.salyk.kg [09:30:00]written 0, free lines is 4095 [09:30:00]Connected sock=10 [09:30:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 53 6E 04 01 5B 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 1B 61 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A5 CF 01 00 35 04 06 00 D9 A1 29 24 5E 42 12 45 F0 12 47 B9 BC F2 [09:30:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 15 1B 47 00 6F AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A5 CF 01 00 F4 03 04 00 A9 0E A7 66 B6 04 01 00 00 83 AF B0 71 32 DA F6 A4 [09:30:00]CommunicateWithHost err = 0 [09:30:00]CheckOFDResponse [09:30:00]1017 (14) - 77093643461234 [09:30:00]1041 (16) - 0000000000874939 [09:30:00]1040 (4) - 118693 [09:30:00]1012 (4) - 29.07.2024 03:38 [09:30:00]1206 (1) - 0 [09:30:00]OFD Sender: Remove packet 118693 [09:30:00]ProducePacketName [09:30:00]name=ofd_packets/00118693 [09:30:00]NVStorageDeleteData [09:30:01]Write to MH i2c: 01 00 00 29 3D 66 [09:30:01]Write i2c OK [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: 01 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: 01 07 00 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: 01 07 00 29 3D 00 00 00 00 00 F2 0C 6B [09:30:01]RasterBufferAndPrint [09:30:01]line [09:30:01]line [09:30:01]line [09:30:01]line [09:30:01]line [09:30:01]written 0, free lines is 3320 [09:30:01]MH_Cut [09:30:01]Write to MH i2c: D1 01 00 30 3D 01 3F [09:30:01]Write i2c OK [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: D1 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: D1 01 00 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: D1 01 00 30 3D 00 3E [09:30:01]Write to MH i2c: 01 00 00 31 3D 6E [09:30:01]Write i2c OK [09:30:01]MH_I2C_Read... [09:30:01]OFD Sender: No OFD packet to send [09:30:01]*** Cut start [09:30:01]*** Partial cut [09:30:01]*** CUTSNS_PIN = 1 [09:30:01]*** CUTSNS_PIN = 0 [09:30:01]*** Brake cut motor [09:30:02]Read from MH i2c: 01 [09:30:02]MH_I2C_Read... [09:30:02]*** Stop cut motor [09:30:02]*** Cut end [09:30:02]Read from MH i2c: 01 07 00 [09:30:02]MH_I2C_Read... [09:30:02]Read from MH i2c: 01 07 00 31 3D 00 00 00 00 00 FF 0F 83 [09:30:02]process_action close_receipt done [09:30:02]requested_data is exist [09:30:02]produce_requested_data [09:30:02]requested_item fm.sn is exist - process it [09:30:02]wFMCommunicate request_size=4 [09:30:02]MH_SAM_APDU [09:30:02]CAPDU: 80 11 00 00 [09:30:02]Write to MH i2c: E2 08 00 32 3D 80 11 00 00 00 00 00 00 E9 [09:30:02]Write i2c OK [09:30:02]MH_I2C_Read... [09:30:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:02]Read from MH i2c: E2 [09:30:02]MH_I2C_Read... [09:30:02]Read from MH i2c: E2 17 00 [09:30:02]MH_I2C_Read... [09:30:02]Read from MH i2c: E2 17 00 32 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 44 [09:30:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:30:02]wFMCommunicate OK [09:30:02]requested_item fd.num is exist - process it [09:30:02]SAM_PROTO_GetFieldsCounters [09:30:02]wFMCommunicate request_size=4 [09:30:02]MH_SAM_APDU [09:30:02]CAPDU: 80 13 00 00 [09:30:02]Write to MH i2c: E2 08 00 33 3D 80 13 00 00 00 00 00 00 EC [09:30:02]Write i2c OK [09:30:02]MH_I2C_Read... [09:30:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:02]Read from MH i2c: E2 [09:30:02]MH_I2C_Read... [09:30:02]Read from MH i2c: E2 62 00 [09:30:02]MH_I2C_Read... [09:30:02]Read from MH i2c: E2 62 00 33 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A5 CF 01 00 0E 04 04 00 B2 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 0A [09:30: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A5 CF 01 00 0E 04 04 00 B2 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 [09:30:02]wFMCommunicate OK [09:30:02]SAM_PROTO_GetFieldsCounters done [09:30:02]requested_item shift.num is exist - process it [09:30:02]requested_item shift.opened is exist - process it [09:30:02]req_shift_opened [09:30:02]FM_GetShiftState [09:30:02]SAM_PROTO_GetShiftState [09:30:02]wFMCommunicate request_size=4 [09:30:02]MH_SAM_APDU [09:30:02]CAPDU: 80 13 01 00 [09:30:02]Write to MH i2c: E2 08 00 34 3D 80 13 01 00 00 00 00 00 EE [09:30:02]Write i2c OK [09:30:02]MH_I2C_Read... [09:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:02]Read from MH i2c: E2 [09:30:02]MH_I2C_Read... [09:30:02]Read from MH i2c: E2 0E 00 [09:30:02]MH_I2C_Read... [09:30:02]Read from MH i2c: E2 0E 00 34 3D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 1C [09:30:02]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:30:02]wFMCommunicate OK [09:30:02]SAM_PROTO_GetShiftState done [09:30:02]FM_GetShiftState done [09:30:02]req_shift_opened done [09:30:02]requested_item shift.open_date is exist - process it [09:30:02]req_shift_open_date [09:30:02]req_shift_open_date done [09:30:02]produce_requested_data done [09:30:02]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118693,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:30:02]process_action_free close_receipt [09:30:02]json_value_free [09:30:02]json_value_free done [09:30:02]process_json_proto returns [09:30:02]Send response to host [09:30:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118693,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:30:02]free response buf [09:30:02]execute_script done [09:30:02]execute_script returns [09:30:02]free content buf [09:30:02]Sock 7.Close socket [09:30:02]Sock 7.Thread stoped [09:30:06]OFD Sender: No OFD packet to send [09:30:11]OFD Sender: No OFD packet to send [09:30:16]OFD Sender: No OFD packet to send [09:30:21]OFD Sender: No OFD packet to send [09:30:26]OFD Sender: No OFD packet to send [09:30:31]OFD Sender: No OFD packet to send [09:30:36]OFD Sender: No OFD packet to send [09:30:41]OFD Sender: No OFD packet to send [09:30:46]OFD Sender: No OFD packet to send [09:30:51]OFD Sender: No OFD packet to send [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:06]OFD Sender: No OFD packet to send [09:31:11]OFD Sender: No OFD packet to send [09:31:16]OFD Sender: No OFD packet to send [09:31:21]OFD Sender: No OFD packet to send [09:31:26]OFD Sender: No OFD packet to send [09:31:31]OFD Sender: No OFD packet to send [09:31:36]OFD Sender: No OFD packet to send [09:31:41]OFD Sender: No OFD packet to send [09:31:46]OFD Sender: No OFD packet to send [09:31:51]OFD Sender: No OFD packet to send [09:31:56]OFD Sender: No OFD packet to send [09:32:01]OFD Sender: No OFD packet to send [09:32:06]OFD Sender: No OFD packet to send [09:32:11]OFD Sender: No OFD packet to send [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:41]OFD Sender: No OFD packet to send [09:32:46]OFD Sender: No OFD packet to send [09:32:51]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:33:01]OFD Sender: No OFD packet to send [09:33:06]OFD Sender: No OFD packet to send [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]accept exits with 9 [09:34:56]New connection [09:34:56]New thread 3067383140 created [09:34:56]Thread 3067239780 joined [09:34:56]Waiting for new connection... [09:34:56] Sock 9.Parse request [09:34:56]Sock 9.Check first char [09:34:56]Sock 9.First char is OK [09:34:56]request: POST /json_proto HTTP/1.0 [09:34:56]Method: POST [09:34:56]URL: /json_proto [09:34:56]Method is POST - this is cgi request [09:34:56]url: /json_proto [09:34:56]query_string will be loaded in cgi processing [09:34:56]execute_cgi json_proto POST (null) [09:34:56]execute_cgi path=json_proto method=POST [09:34:56]POST find Content-Length [09:34:56]Host: 172.17.45.7:8080 [09:34:56]Content-Length: 819 [09:34:56]Content-Type: application/json [09:34:56] [09:34:56]POST finish read [09:34:56]Found Content-Length = 819 [09:34:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2500.00, "payments": [ { "type": 1, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:56]execute_script... [09:34:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2500.00, "payments": [ { "type": 1, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:56]POST & json_proto [09:34:56]process_json_proto [09:34:56]json parsed OK: [09:34:56]protocol is kg_v1.0 [09:34:56]action value=close_receipt [09:34:56]process_action close_receipt [09:34:56]cmd_close_receipt [09:34:56]MH_GetDate [09:34:56]Write to MH i2c: F0 00 00 35 3D 61 [09:34:56]Write i2c OK [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: F0 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: F0 09 00 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: F0 09 00 35 3D 00 45 62 A7 66 90 0F 3E 66 61 [09:34:56]GetLastDocTimeStamp 1722245403 [09:34:56]current date 1722245701 [09:34:56]FM_GetShiftState [09:34:56]SAM_PROTO_GetShiftState [09:34:56]wFMCommunicate request_size=4 [09:34:56]MH_SAM_APDU [09:34:56]CAPDU: 80 13 01 00 [09:34:56]Write to MH i2c: E2 08 00 36 3D 80 13 01 00 00 00 00 00 F0 [09:34:56]Write i2c OK [09:34:56]MH_I2C_Read... [09:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:56]Read from MH i2c: E2 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: E2 0E 00 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: E2 0E 00 36 3D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 1E [09:34:56]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:34:56]wFMCommunicate OK [09:34:56]SAM_PROTO_GetShiftState done [09:34:56]FM_GetShiftState done [09:34:56]opened in 1722211641 [09:34:56]opened+sec_in_day 1722298041 [09:34:56]quantity*price = 250012 [09:34:56]sum+1 = 250013 [09:34:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 0.00 Безнал.: 2500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 70 29.07.2024 09:35 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118694 ФПД: 126467986428413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T093501&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118694&fm=126467986428413&tin=02508201610067®Number=0000000000092660&sum=250000 [09:34:57]StoreToDocumentArchive [09:34:57]shift 434 fd 118694 [09:34:57]save to /storage/0434/doc_00118694 [09:34:57]save last doc name /storage/0434/doc_00118694 to /storage/kkm_last_doc_name [09:34:57]save OK [09:34:57]Clear old archive folders... [09:34:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:34:57]tlvbuf is 01EE7300 [09:34:57]SAM_PROTO_ClearQueue [09:34:57]wFMCommunicate request_size=4 [09:34:57]MH_SAM_APDU [09:34:57]CAPDU: 80 09 00 00 [09:34:57]Write to MH i2c: E2 08 00 43 3D 80 09 00 00 00 00 00 00 F2 [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:57]Read from MH i2c: E2 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 03 00 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 03 00 43 3D 00 90 00 F4 [09:34:57]RAPDU: 90 00 [09:34:57]wFMCommunicate OK [09:34:57]SAM_PROTO_ClearQueue done [09:34:57]KKMCreateOFDPacket [09:34:57]OFDProtocolAddRootSTLVToBuf [09:34:57]FM_MakeSignedData [09:34:57]FM_MakeSignedData [09:34:57]SAM_PROTO_SignData [09:34:57]wFMCommunicate request_size=4 [09:34:57]MH_SAM_APDU [09:34:57]CAPDU: 80 0D 01 02 [09:34:57]Write to MH i2c: E2 08 00 44 3D 80 0D 01 02 00 00 00 00 FA [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:57]Read from MH i2c: E2 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 03 00 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 03 00 44 3D 00 90 00 F5 [09:34:57]RAPDU: 90 00 [09:34:57]wFMCommunicate OK [09:34:57]wFMCommunicate request_size=255 [09:34:57]MH_SAM_APDU [09:34:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 45 62 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A6 CF 01 00 35 04 06 00 73 05 9F 68 [09:34:57]Write to MH i2c: E2 02 01 45 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 45 62 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A6 CF 01 00 35 04 06 00 73 05 9F 68 00 00 8D [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:57]Read from MH i2c: E2 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 03 00 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 03 00 45 3D 00 90 00 F6 [09:34:57]RAPDU: 90 00 [09:34:57]wFMCommunicate OK [09:34:57]wFMCommunicate request_size=7 [09:34:57]MH_SAM_APDU [09:34:57]CAPDU: 80 0D 02 02 02 11 FD [09:34:57]Write to MH i2c: E2 0A 00 46 3D 80 0D 02 02 02 00 11 FD 00 00 0F [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:57]Read from MH i2c: E2 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 03 00 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 03 00 46 3D 00 90 00 F7 [09:34:57]RAPDU: 90 00 [09:34:57]wFMCommunicate OK [09:34:57]wFMCommunicate request_size=4 [09:34:57]MH_SAM_APDU [09:34:57]CAPDU: 80 0D 03 02 [09:34:57]Write to MH i2c: E2 08 00 47 3D 80 0D 03 02 00 00 00 00 FF [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:57]Read from MH i2c: E2 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 0B 00 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 0B 00 47 3D 00 52 64 12 20 3F 66 98 6F 90 00 94 [09:34:57]RAPDU: 52 64 12 20 3F 66 98 6F 90 00 [09:34:57]wFMCommunicate OK [09:34:57]SAM_PROTO_SignData done [09:34:57]FM_MakeSignedData done [09:34:57]CreateOFDProtocolMessage [09:34:57]wFMCommunicate request_size=4 [09:34:57]MH_SAM_APDU [09:34:57]CAPDU: 80 11 00 00 [09:34:57]Write to MH i2c: E2 08 00 48 3D 80 11 00 00 00 00 00 00 FF [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:57]Read from MH i2c: E2 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 17 00 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 17 00 48 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5A [09:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:34:57]wFMCommunicate OK [09:34:57]CreateOFDProtocolMessage done [09:34:57]OFDSenderStorePacket 118694 [09:34:57]StoreOFDPacket docnum=118694 [09:34:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 7A 78 04 01 80 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 45 62 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A6 CF 01 00 35 04 06 00 73 05 9F 68 11 FD 52 64 12 20 3F 66 98 6F [09:34:57]CheckFolder [09:34:57]dirname=/storage/ofd_packets [09:34:57]CheckFolder done [09:34:57]ProducePacketName [09:34:57]name=ofd_packets/00118694 [09:34:57]NVStorageSaveData ofd_packets/00118694 [09:34:57]File name is /storage/ofd_packets/00118694 [09:34:57]Write 298 bytes [09:34:57]NVStorageSaveData done [09:34:57]OFDSenderStorePacket done [09:34:57]KKMCreateOFDPacket done [09:34:57]NVStorageSaveData kkm_last_timestamp [09:34:57]File name is /storage/kkm_last_timestamp [09:34:57]Write 4 bytes [09:34:57]NVStorageSaveData done [09:34:57]ExternCall_PrintAddStr [09:34:57]wPrintStart [09:34:57]Write to MH i2c: 01 00 00 49 3D 86 [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: 01 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: 01 07 00 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: 01 07 00 49 3D 00 00 00 00 00 FF 0F 9B [09:34:57]RasterBufferAndPrint [09:34:57]line Счет N : (1)949577 [09:34:57]line ИНН: 02508201610067 [09:34:57]line Контрольно-Кассовый Чек [09:34:57]line ПРОДАЖА [09:34:57]line ТРК (МРК, ГНК) : 11 [09:34:57]line Товар: 2710194800 [09:34:57]line ДТ-К-5 [09:34:57]line 32.810 * 76.20 [09:34:57]line = 2500.12 [09:34:57]line НДС 12% НСП 1% [09:34:57]line > о реализуемом товаре [09:34:57]line ОКРУГЛЕНИЕ: -0.12 [09:34:57]line ИТОГО: 2500.00 [09:34:57]line НСП 1% : 22.12 [09:34:57]line НДС 12% : 265.50 [09:34:57]line Наличными: 0.00 [09:34:57]line Безнал.: 2500.00 [09:34:57]line Место: АЗС № 134 "Партнер Нефть" [09:34:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:34:57]line СНО: Общий режим [09:34:57]line Чек 70 29.07.2024 09:35 [09:34:57]line Смена: 434 ФФД: 1.0 [09:34:57]line ЗНМ: 0300000044 [09:34:57]line РНМ: 0000000000092660 [09:34:57]line Версия ККМ: 001 [09:34:57]line Платежная система: O! деньги [09:34:57]line ФМ: 0000000000874939 [09:34:57]line ФД: 118694 [09:34:57]line ФПД: 126467986428413 [09:34:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T093501&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118694&fm=126467986428413&tin=02508201610067®Number=0000000000092660&sum=250000 [09:34:58]OFD Sender: Processing packet 118694 [packets to send 86, broken 85] [09:34:58]ProducePacketName [09:34:58]name=ofd_packets/00118694 [09:34:58]OFD Sender: To server: pG, [09:34:58]CommunicateWithHost lk.salyk.kg:30040 [09:34:58]ConnectInit lk.salyk.kg [09:34:58]written 0, free lines is 4095 [09:34:58]Connected sock=10 [09:34:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 7A 78 04 01 80 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 45 62 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A6 CF 01 00 35 04 06 00 73 05 9F 68 11 FD 52 64 12 20 3F 66 98 6F [09:34:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A7 09 47 00 5C 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 34 39 33 39 10 04 04 00 A6 CF 01 00 F4 03 04 00 D3 0F A7 66 B6 04 01 00 00 3B A4 4A 48 F5 01 74 62 [09:34:58]CommunicateWithHost err = 0 [09:34:58]CheckOFDResponse [09:34:58]1017 (14) - 77093643461234 [09:34:58]1041 (16) - 0000000000874939 [09:34:58]1040 (4) - 118694 [09:34:58]1012 (4) - 29.07.2024 03:43 [09:34:58]1206 (1) - 0 [09:34:58]OFD Sender: Remove packet 118694 [09:34:58]ProducePacketName [09:34:58]name=ofd_packets/00118694 [09:34:58]NVStorageDeleteData [09:34:58]Write to MH i2c: 01 00 00 73 3D B0 [09:34:58]Write i2c OK [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: 01 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: 01 07 00 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: 01 07 00 73 3D 00 00 00 00 00 E5 0C A8 [09:34:58]RasterBufferAndPrint [09:34:58]line [09:34:58]line [09:34:58]line [09:34:58]line [09:34:58]line [09:34:58]written 0, free lines is 3307 [09:34:58]MH_Cut [09:34:58]Write to MH i2c: D1 01 00 7A 3D 01 89 [09:34:58]Write i2c OK [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: D1 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: D1 01 00 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: D1 01 00 7A 3D 00 88 [09:34:58]Write to MH i2c: 01 00 00 7B 3D B8 [09:34:58]Write i2c OK [09:34:58]MH_I2C_Read... [09:34:59]OFD Sender: No OFD packet to send [09:34:59]*** Cut start [09:34:59]*** Partial cut [09:34:59]*** CUTSNS_PIN = 1 [09:34:59]*** CUTSNS_PIN = 0 [09:34:59]*** Brake cut motor [09:35:00]Read from MH i2c: 01 [09:35:00]MH_I2C_Read... [09:35:00]*** Stop cut motor [09:35:00]*** Cut end [09:35:00]Read from MH i2c: 01 07 00 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: 01 07 00 7B 3D 00 00 00 00 00 FF 0F CD [09:35:00]process_action close_receipt done [09:35:00]requested_data is exist [09:35:00]produce_requested_data [09:35:00]requested_item fm.sn is exist - process it [09:35:00]wFMCommunicate request_size=4 [09:35:00]MH_SAM_APDU [09:35:00]CAPDU: 80 11 00 00 [09:35:00]Write to MH i2c: E2 08 00 7C 3D 80 11 00 00 00 00 00 00 33 [09:35:00]Write i2c OK [09:35:00]MH_I2C_Read... [09:35:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:00]Read from MH i2c: E2 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 17 00 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 17 00 7C 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8E [09:35:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:35:00]wFMCommunicate OK [09:35:00]requested_item fd.num is exist - process it [09:35:00]SAM_PROTO_GetFieldsCounters [09:35:00]wFMCommunicate request_size=4 [09:35:00]MH_SAM_APDU [09:35:00]CAPDU: 80 13 00 00 [09:35:00]Write to MH i2c: E2 08 00 7D 3D 80 13 00 00 00 00 00 00 36 [09:35:00]Write i2c OK [09:35:00]MH_I2C_Read... [09:35:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:00]Read from MH i2c: E2 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 62 00 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 62 00 7D 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A6 CF 01 00 0E 04 04 00 B2 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 58 [09:35: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A6 CF 01 00 0E 04 04 00 B2 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 [09:35:00]wFMCommunicate OK [09:35:00]SAM_PROTO_GetFieldsCounters done [09:35:00]requested_item shift.num is exist - process it [09:35:00]requested_item shift.opened is exist - process it [09:35:00]req_shift_opened [09:35:00]FM_GetShiftState [09:35:00]SAM_PROTO_GetShiftState [09:35:00]wFMCommunicate request_size=4 [09:35:00]MH_SAM_APDU [09:35:00]CAPDU: 80 13 01 00 [09:35:00]Write to MH i2c: E2 08 00 7E 3D 80 13 01 00 00 00 00 00 38 [09:35:00]Write i2c OK [09:35:00]MH_I2C_Read... [09:35:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:00]Read from MH i2c: E2 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 0E 00 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 0E 00 7E 3D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 66 [09:35:00]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:35:00]wFMCommunicate OK [09:35:00]SAM_PROTO_GetShiftState done [09:35:00]FM_GetShiftState done [09:35:00]req_shift_opened done [09:35:00]requested_item shift.open_date is exist - process it [09:35:00]req_shift_open_date [09:35:00]req_shift_open_date done [09:35:00]produce_requested_data done [09:35:00]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118694,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:35:00]process_action_free close_receipt [09:35:00]json_value_free [09:35:00]json_value_free done [09:35:00]process_json_proto returns [09:35:00]Send response to host [09:35:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118694,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:35:00]free response buf [09:35:00]execute_script done [09:35:00]execute_script returns [09:35:00]free content buf [09:35:00]Sock 9.Close socket [09:35:00]Sock 9.Thread stoped [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:32]accept exits with 7 [09:36:32]New connection [09:36:32]New thread 3067239780 created [09:36:32]Thread 3067383140 joined [09:36:32]Waiting for new connection... [09:36:32] Sock 7.Parse request [09:36:32]Sock 7.Check first char [09:36:32]Sock 7.First char is OK [09:36:32]request: POST /json_proto HTTP/1.0 [09:36:32]Method: POST [09:36:32]URL: /json_proto [09:36:32]Method is POST - this is cgi request [09:36:32]url: /json_proto [09:36:32]query_string will be loaded in cgi processing [09:36:32]execute_cgi json_proto POST (null) [09:36:32]execute_cgi path=json_proto method=POST [09:36:32]POST find Content-Length [09:36:32]Host: 172.17.45.7:8080 [09:36:32]Content-Length: 677 [09:36:32]Content-Type: application/json [09:36:32] [09:36:32]POST finish read [09:36:32]Found Content-Length = 677 [09:36:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:32]execute_script... [09:36:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:32]POST & json_proto [09:36:32]process_json_proto [09:36:32]json parsed OK: [09:36:32]protocol is kg_v1.0 [09:36:32]action value=close_receipt [09:36:32]process_action close_receipt [09:36:32]cmd_close_receipt [09:36:32]MH_GetDate [09:36:32]Write to MH i2c: F0 00 00 7F 3D AB [09:36:32]Write i2c OK [09:36:32]MH_I2C_Read... [09:36:32]Read from MH i2c: F0 [09:36:32]MH_I2C_Read... [09:36:32]Read from MH i2c: F0 09 00 [09:36:32]MH_I2C_Read... [09:36:32]Read from MH i2c: F0 09 00 7F 3D 00 A5 62 A7 66 90 0F 3E 66 0B [09:36:32]GetLastDocTimeStamp 1722245701 [09:36:32]current date 1722245797 [09:36:32]FM_GetShiftState [09:36:32]SAM_PROTO_GetShiftState [09:36:32]wFMCommunicate request_size=4 [09:36:32]MH_SAM_APDU [09:36:32]CAPDU: 80 13 01 00 [09:36:32]Write to MH i2c: E2 08 00 80 3D 80 13 01 00 00 00 00 00 3A [09:36:32]Write i2c OK [09:36:32]MH_I2C_Read... [09:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:32]Read from MH i2c: E2 [09:36:32]MH_I2C_Read... [09:36:32]Read from MH i2c: E2 0E 00 [09:36:32]MH_I2C_Read... [09:36:32]Read from MH i2c: E2 0E 00 80 3D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 68 [09:36:32]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:36:32]wFMCommunicate OK [09:36:32]SAM_PROTO_GetShiftState done [09:36:32]FM_GetShiftState done [09:36:32]opened in 1722211641 [09:36:32]opened+sec_in_day 1722298041 [09:36:32]quantity*price = 40002 [09:36:32]sum+1 = 40003 [09:36:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 71 29.07.2024 09:36 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118695 ФПД: 78306921788785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T093637&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118695&fm=78306921788785&tin=02508201610067®Number=0000000000092660&sum=40000 [09:36:34]StoreToDocumentArchive [09:36:34]shift 434 fd 118695 [09:36:34]save to /storage/0434/doc_00118695 [09:36:34]save last doc name /storage/0434/doc_00118695 to /storage/kkm_last_doc_name [09:36:34]save OK [09:36:34]Clear old archive folders... [09:36:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:36:34]tlvbuf is B6F43780 [09:36:34]SAM_PROTO_ClearQueue [09:36:34]wFMCommunicate request_size=4 [09:36:34]MH_SAM_APDU [09:36:34]CAPDU: 80 09 00 00 [09:36:34]Write to MH i2c: E2 08 00 8D 3D 80 09 00 00 00 00 00 00 3C [09:36:34]Write i2c OK [09:36:34]MH_I2C_Read... [09:36:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:34]Read from MH i2c: E2 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: E2 03 00 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: E2 03 00 8D 3D 00 90 00 3E [09:36:34]RAPDU: 90 00 [09:36:34]wFMCommunicate OK [09:36:34]SAM_PROTO_ClearQueue done [09:36:34]KKMCreateOFDPacket [09:36:34]OFDProtocolAddRootSTLVToBuf [09:36:34]FM_MakeSignedData [09:36:34]FM_MakeSignedData [09:36:34]SAM_PROTO_SignData [09:36:34]wFMCommunicate request_size=4 [09:36:34]MH_SAM_APDU [09:36:34]CAPDU: 80 0D 01 02 [09:36:34]Write to MH i2c: E2 08 00 8E 3D 80 0D 01 02 00 00 00 00 44 [09:36:34]Write i2c OK [09:36:34]MH_I2C_Read... [09:36:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:34]Read from MH i2c: E2 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: E2 03 00 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: E2 03 00 8E 3D 00 90 00 3F [09:36:34]RAPDU: 90 00 [09:36:34]wFMCommunicate OK [09:36:34]wFMCommunicate request_size=255 [09:36:34]MH_SAM_APDU [09:36: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 A5 62 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A7 CF 01 00 35 04 06 00 47 [09:36:34]Write to MH i2c: E2 02 01 8F 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 A5 62 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A7 CF 01 00 35 04 06 00 47 00 00 79 [09:36:34]Write i2c OK [09:36:34]MH_I2C_Read... [09:36:34]OFD Sender: No OFD packet to send [09:36:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:34]Read from MH i2c: E2 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: E2 03 00 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: E2 03 00 8F 3D 00 90 00 40 [09:36:34]RAPDU: 90 00 [09:36:34]wFMCommunicate OK [09:36:34]wFMCommunicate request_size=10 [09:36:34]MH_SAM_APDU [09:36:34]CAPDU: 80 0D 02 02 05 38 40 41 B5 71 [09:36:34]Write to MH i2c: E2 0D 00 90 3D 80 0D 02 02 05 00 38 40 41 B5 71 00 00 30 [09:36:34]Write i2c OK [09:36:34]MH_I2C_Read... [09:36:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:34]Read from MH i2c: E2 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: E2 03 00 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: E2 03 00 90 3D 00 90 00 41 [09:36:34]RAPDU: 90 00 [09:36:34]wFMCommunicate OK [09:36:34]wFMCommunicate request_size=4 [09:36:34]MH_SAM_APDU [09:36:34]CAPDU: 80 0D 03 02 [09:36:34]Write to MH i2c: E2 08 00 91 3D 80 0D 03 02 00 00 00 00 49 [09:36:34]Write i2c OK [09:36:34]MH_I2C_Read... [09:36:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:34]Read from MH i2c: E2 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: E2 0B 00 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: E2 0B 00 91 3D 00 EA 15 7C E5 55 6A C0 14 90 00 3D [09:36:34]RAPDU: EA 15 7C E5 55 6A C0 14 90 00 [09:36:34]wFMCommunicate OK [09:36:34]SAM_PROTO_SignData done [09:36:34]FM_MakeSignedData done [09:36:34]CreateOFDProtocolMessage [09:36:34]wFMCommunicate request_size=4 [09:36:34]MH_SAM_APDU [09:36:34]CAPDU: 80 11 00 00 [09:36:34]Write to MH i2c: E2 08 00 92 3D 80 11 00 00 00 00 00 00 49 [09:36:34]Write i2c OK [09:36:34]MH_I2C_Read... [09:36:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:34]Read from MH i2c: E2 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: E2 17 00 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: E2 17 00 92 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A4 [09:36:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:36:34]wFMCommunicate OK [09:36:34]CreateOFDProtocolMessage done [09:36:34]OFDSenderStorePacket 118695 [09:36:34]StoreOFDPacket docnum=118695 [09:36:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 6D 3C 07 01 FF 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 A5 62 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A7 CF 01 00 35 04 06 00 47 38 40 41 B5 71 EA 15 7C E5 55 6A C0 14 [09:36:34]CheckFolder [09:36:34]dirname=/storage/ofd_packets [09:36:34]CheckFolder done [09:36:34]ProducePacketName [09:36:34]name=ofd_packets/00118695 [09:36:34]NVStorageSaveData ofd_packets/00118695 [09:36:34]File name is /storage/ofd_packets/00118695 [09:36:34]Write 301 bytes [09:36:34]NVStorageSaveData done [09:36:34]OFDSenderStorePacket done [09:36:34]KKMCreateOFDPacket done [09:36:34]NVStorageSaveData kkm_last_timestamp [09:36:34]File name is /storage/kkm_last_timestamp [09:36:34]Write 4 bytes [09:36:34]NVStorageSaveData done [09:36:34]ExternCall_PrintAddStr [09:36:34]wPrintStart [09:36:34]Write to MH i2c: 01 00 00 93 3D D0 [09:36:34]Write i2c OK [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: 01 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: 01 07 00 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: 01 07 00 93 3D 00 00 00 00 00 FF 0F E5 [09:36:34]RasterBufferAndPrint [09:36:34]line Счет N : (1)949579 [09:36:34]line ИНН: 02508201610067 [09:36:34]line Контрольно-Кассовый Чек [09:36:34]line ПРОДАЖА [09:36:34]line ТРК (МРК, ГНК) : 41 [09:36:34]line Товар: 2710124130 [09:36:34]line Аи-92-К-4 [09:36:34]line 5.900 * 67.80 [09:36:34]line = 400.02 [09:36:34]line НДС 12% НСП 1% [09:36:34]line > о реализуемом товаре [09:36:34]line ОКРУГЛЕНИЕ: -0.02 [09:36:34]line ИТОГО: 400.00 [09:36:34]line Внесено: 400.00 [09:36:34]line СДАЧА: 0.00 [09:36:34]line НСП 1% : 3.54 [09:36:34]line НДС 12% : 42.48 [09:36:34]line Наличными: 400.00 [09:36:34]line Безнал.: 0.00 [09:36:34]line Место: АЗС № 134 "Партнер Нефть" [09:36:34]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:36:34]line СНО: Общий режим [09:36:34]line Чек 71 29.07.2024 09:36 [09:36:34]line Смена: 434 ФФД: 1.0 [09:36:34]line ЗНМ: 0300000044 [09:36:34]line РНМ: 0000000000092660 [09:36:34]line Версия ККМ: 001 [09:36:34]line ФМ: 0000000000874939 [09:36:34]line ФД: 118695 [09:36:34]line ФПД: 78306921788785 [09:36:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T093637&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118695&fm=78306921788785&tin=02508201610067®Number=0000000000092660&sum=40000 [09:36:34]OFD Sender: Processing packet 118695 [packets to send 86, broken 85] [09:36:34]ProducePacketName [09:36:34]name=ofd_packets/00118695 [09:36:34]written 0, free lines is 4095 [09:36:34]OFD Sender: To server: pG, [09:36:34]CommunicateWithHost lk.salyk.kg:30040 [09:36:34]ConnectInit lk.salyk.kg [09:36:35]Connected sock=10 [09:36:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 6D 3C 07 01 FF 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 A5 62 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A7 CF 01 00 35 04 06 00 47 38 40 41 B5 71 EA 15 7C E5 55 6A C0 14 [09:36:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 50 A1 47 00 4D 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 34 39 33 39 10 04 04 00 A7 CF 01 00 F4 03 04 00 34 10 A7 66 B6 04 01 00 00 35 98 E3 20 F7 48 A0 C6 [09:36:35]CommunicateWithHost err = 0 [09:36:35]CheckOFDResponse [09:36:35]1017 (14) - 77093643461234 [09:36:35]1041 (16) - 0000000000874939 [09:36:35]1040 (4) - 118695 [09:36:35]1012 (4) - 29.07.2024 03:44 [09:36:35]1206 (1) - 0 [09:36:35]OFD Sender: Remove packet 118695 [09:36:35]ProducePacketName [09:36:35]name=ofd_packets/00118695 [09:36:35]NVStorageDeleteData [09:36:35]Write to MH i2c: 01 00 00 BD 3D FA [09:36:35]Write i2c OK [09:36:35]MH_I2C_Read... [09:36:35]Read from MH i2c: 01 [09:36:35]MH_I2C_Read... [09:36:35]Read from MH i2c: 01 07 00 [09:36:35]MH_I2C_Read... [09:36:35]Read from MH i2c: 01 07 00 BD 3D 00 00 00 00 00 E9 0C F6 [09:36:35]RasterBufferAndPrint [09:36:35]line [09:36:35]line [09:36:35]line [09:36:35]line [09:36:35]line [09:36:35]written 0, free lines is 3311 [09:36:35]MH_Cut [09:36:35]Write to MH i2c: D1 01 00 C4 3D 01 D3 [09:36:35]Write i2c OK [09:36:35]MH_I2C_Read... [09:36:35]Read from MH i2c: D1 [09:36:35]MH_I2C_Read... [09:36:35]Read from MH i2c: D1 01 00 [09:36:35]MH_I2C_Read... [09:36:35]Read from MH i2c: D1 01 00 C4 3D 00 D2 [09:36:35]Write to MH i2c: 01 00 00 C5 3D 02 [09:36:35]Write i2c OK [09:36:35]MH_I2C_Read... [09:36:35]OFD Sender: No OFD packet to send [09:36:36]*** Cut start [09:36:36]*** Partial cut [09:36:36]*** CUTSNS_PIN = 1 [09:36:36]*** CUTSNS_PIN = 0 [09:36:36]*** Brake cut motor [09:36:36]Read from MH i2c: 01 [09:36:36]MH_I2C_Read... [09:36:36]*** Stop cut motor [09:36:36]*** Cut end [09:36:36]Read from MH i2c: 01 07 00 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: 01 07 00 C5 3D 00 00 00 00 00 FF 0F 17 [09:36:36]process_action close_receipt done [09:36:36]requested_data is exist [09:36:36]produce_requested_data [09:36:36]requested_item fm.sn is exist - process it [09:36:36]wFMCommunicate request_size=4 [09:36:36]MH_SAM_APDU [09:36:36]CAPDU: 80 11 00 00 [09:36:36]Write to MH i2c: E2 08 00 C6 3D 80 11 00 00 00 00 00 00 7D [09:36:36]Write i2c OK [09:36:36]MH_I2C_Read... [09:36:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:36]Read from MH i2c: E2 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 17 00 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 17 00 C6 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D8 [09:36:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:36:36]wFMCommunicate OK [09:36:36]requested_item fd.num is exist - process it [09:36:36]SAM_PROTO_GetFieldsCounters [09:36:36]wFMCommunicate request_size=4 [09:36:36]MH_SAM_APDU [09:36:36]CAPDU: 80 13 00 00 [09:36:36]Write to MH i2c: E2 08 00 C7 3D 80 13 00 00 00 00 00 00 80 [09:36:36]Write i2c OK [09:36:36]MH_I2C_Read... [09:36:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:36]Read from MH i2c: E2 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 62 00 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 62 00 C7 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A7 CF 01 00 0E 04 04 00 B2 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 A6 [09:36: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A7 CF 01 00 0E 04 04 00 B2 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 [09:36:36]wFMCommunicate OK [09:36:36]SAM_PROTO_GetFieldsCounters done [09:36:36]requested_item shift.num is exist - process it [09:36:36]requested_item shift.opened is exist - process it [09:36:36]req_shift_opened [09:36:36]FM_GetShiftState [09:36:36]SAM_PROTO_GetShiftState [09:36:36]wFMCommunicate request_size=4 [09:36:36]MH_SAM_APDU [09:36:36]CAPDU: 80 13 01 00 [09:36:36]Write to MH i2c: E2 08 00 C8 3D 80 13 01 00 00 00 00 00 82 [09:36:36]Write i2c OK [09:36:36]MH_I2C_Read... [09:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:36]Read from MH i2c: E2 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 0E 00 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 0E 00 C8 3D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B0 [09:36:36]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:36:36]wFMCommunicate OK [09:36:36]SAM_PROTO_GetShiftState done [09:36:36]FM_GetShiftState done [09:36:36]req_shift_opened done [09:36:36]requested_item shift.open_date is exist - process it [09:36:36]req_shift_open_date [09:36:36]req_shift_open_date done [09:36:36]produce_requested_data done [09:36:36]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118695,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:36:36]process_action_free close_receipt [09:36:36]json_value_free [09:36:36]json_value_free done [09:36:36]process_json_proto returns [09:36:36]Send response to host [09:36:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118695,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:36:36]free response buf [09:36:36]execute_script done [09:36:36]execute_script returns [09:36:36]free content buf [09:36:36]Sock 7.Close socket [09:36:36]Sock 7.Thread stoped [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:39]accept exits with 9 [09:38:39]New connection [09:38:39]New thread 3067383140 created [09:38:39]Thread 3067239780 joined [09:38:39]Waiting for new connection... [09:38:39] Sock 9.Parse request [09:38:39]Sock 9.Check first char [09:38:39]Sock 9.First char is OK [09:38:39]request: POST /json_proto HTTP/1.0 [09:38:39]Method: POST [09:38:39]URL: /json_proto [09:38:39]Method is POST - this is cgi request [09:38:39]url: /json_proto [09:38:39]query_string will be loaded in cgi processing [09:38:39]execute_cgi json_proto POST (null) [09:38:39]execute_cgi path=json_proto method=POST [09:38:39]POST find Content-Length [09:38:39]Host: 172.17.45.7:8080 [09:38:39]Content-Length: 820 [09:38:39]Content-Type: application/json [09:38:39] [09:38:39]POST finish read [09:38:39]Found Content-Length = 820 [09:38:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 124.680, "sum" : 9500.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9500.00, "payments": [ { "type": 1, "sum" : 9500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:39]execute_script... [09:38:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 124.680, "sum" : 9500.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9500.00, "payments": [ { "type": 1, "sum" : 9500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:39]POST & json_proto [09:38:39]process_json_proto [09:38:39]json parsed OK: [09:38:39]protocol is kg_v1.0 [09:38:39]action value=close_receipt [09:38:39]process_action close_receipt [09:38:39]cmd_close_receipt [09:38:39]MH_GetDate [09:38:39]Write to MH i2c: F0 00 00 C9 3D F5 [09:38:39]Write i2c OK [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: F0 [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: F0 09 00 [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: F0 09 00 C9 3D 00 24 63 A7 66 90 0F 3E 66 D5 [09:38:39]GetLastDocTimeStamp 1722245797 [09:38:39]current date 1722245924 [09:38:39]FM_GetShiftState [09:38:39]SAM_PROTO_GetShiftState [09:38:39]wFMCommunicate request_size=4 [09:38:39]MH_SAM_APDU [09:38:39]CAPDU: 80 13 01 00 [09:38:39]Write to MH i2c: E2 08 00 CA 3D 80 13 01 00 00 00 00 00 84 [09:38:39]Write i2c OK [09:38:39]MH_I2C_Read... [09:38:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:39]Read from MH i2c: E2 [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: E2 0E 00 [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: E2 0E 00 CA 3D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B2 [09:38:39]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:38:39]wFMCommunicate OK [09:38:39]SAM_PROTO_GetShiftState done [09:38:39]FM_GetShiftState done [09:38:39]opened in 1722211641 [09:38:39]opened+sec_in_day 1722298041 [09:38:39]quantity*price = 950061 [09:38:39]sum+1 = 950063 [09:38:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 9500.00 НСП 1% : 84.08 НДС 12% : 1008.91 Наличными: 0.00 Безнал.: 9500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 72 29.07.2024 09:38 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118696 ФПД: 89700305662495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T093844&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118696&fm=89700305662495&tin=02508201610067®Number=0000000000092660&sum=950000 [09:38:40]StoreToDocumentArchive [09:38:40]shift 434 fd 118696 [09:38:40]save to /storage/0434/doc_00118696 [09:38:40]save last doc name /storage/0434/doc_00118696 to /storage/kkm_last_doc_name [09:38:40]save OK [09:38:40]Clear old archive folders... [09:38:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:38:40]tlvbuf is 01E70710 [09:38:40]SAM_PROTO_ClearQueue [09:38:40]wFMCommunicate request_size=4 [09:38:40]MH_SAM_APDU [09:38:40]CAPDU: 80 09 00 00 [09:38:40]Write to MH i2c: E2 08 00 D7 3D 80 09 00 00 00 00 00 00 86 [09:38:40]Write i2c OK [09:38:40]MH_I2C_Read... [09:38:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:40]Read from MH i2c: E2 [09:38:40]MH_I2C_Read... [09:38:40]Read from MH i2c: E2 03 00 [09:38:40]MH_I2C_Read... [09:38:40]Read from MH i2c: E2 03 00 D7 3D 00 90 00 88 [09:38:40]RAPDU: 90 00 [09:38:40]wFMCommunicate OK [09:38:40]SAM_PROTO_ClearQueue done [09:38:40]KKMCreateOFDPacket [09:38:40]OFDProtocolAddRootSTLVToBuf [09:38:40]FM_MakeSignedData [09:38:40]FM_MakeSignedData [09:38:40]SAM_PROTO_SignData [09:38:40]wFMCommunicate request_size=4 [09:38:40]MH_SAM_APDU [09:38:40]CAPDU: 80 0D 01 02 [09:38:40]Write to MH i2c: E2 08 00 D8 3D 80 0D 01 02 00 00 00 00 8E [09:38:40]Write i2c OK [09:38:40]MH_I2C_Read... [09:38:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:40]Read from MH i2c: E2 [09:38:40]MH_I2C_Read... [09:38:40]Read from MH i2c: E2 03 00 [09:38:40]MH_I2C_Read... [09:38:40]Read from MH i2c: E2 03 00 D8 3D 00 90 00 89 [09:38:40]RAPDU: 90 00 [09:38:40]wFMCommunicate OK [09:38:40]wFMCommunicate request_size=255 [09:38:40]MH_SAM_APDU [09:38:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 E7 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2E 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 7E 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 24 63 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A8 CF 01 00 35 04 06 00 51 94 FA DA [09:38:40]Write to MH i2c: E2 02 01 D9 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 E7 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2E 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 7E 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 24 63 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A8 CF 01 00 35 04 06 00 51 94 FA DA 00 00 D8 [09:38:40]Write i2c OK [09:38:40]MH_I2C_Read... [09:38:40]OFD Sender: No OFD packet to send [09:38:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:41]Read from MH i2c: E2 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 03 00 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 03 00 D9 3D 00 90 00 8A [09:38:41]RAPDU: 90 00 [09:38:41]wFMCommunicate OK [09:38:41]wFMCommunicate request_size=7 [09:38:41]MH_SAM_APDU [09:38:41]CAPDU: 80 0D 02 02 02 F2 1F [09:38:41]Write to MH i2c: E2 0A 00 DA 3D 80 0D 02 02 02 00 F2 1F 00 00 A6 [09:38:41]Write i2c OK [09:38:41]MH_I2C_Read... [09:38:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:41]Read from MH i2c: E2 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 03 00 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 03 00 DA 3D 00 90 00 8B [09:38:41]RAPDU: 90 00 [09:38:41]wFMCommunicate OK [09:38:41]wFMCommunicate request_size=4 [09:38:41]MH_SAM_APDU [09:38:41]CAPDU: 80 0D 03 02 [09:38:41]Write to MH i2c: E2 08 00 DB 3D 80 0D 03 02 00 00 00 00 93 [09:38:41]Write i2c OK [09:38:41]MH_I2C_Read... [09:38:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:41]Read from MH i2c: E2 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 0B 00 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 0B 00 DB 3D 00 97 01 49 9E 8F 4C 2B 9E 90 00 B7 [09:38:41]RAPDU: 97 01 49 9E 8F 4C 2B 9E 90 00 [09:38:41]wFMCommunicate OK [09:38:41]SAM_PROTO_SignData done [09:38:41]FM_MakeSignedData done [09:38:41]CreateOFDProtocolMessage [09:38:41]wFMCommunicate request_size=4 [09:38:41]MH_SAM_APDU [09:38:41]CAPDU: 80 11 00 00 [09:38:41]Write to MH i2c: E2 08 00 DC 3D 80 11 00 00 00 00 00 00 93 [09:38:41]Write i2c OK [09:38:41]MH_I2C_Read... [09:38:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:41]Read from MH i2c: E2 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 17 00 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 17 00 DC 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EE [09:38:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:38:41]wFMCommunicate OK [09:38:41]CreateOFDProtocolMessage done [09:38:41]OFDSenderStorePacket 118696 [09:38:41]StoreOFDPacket docnum=118696 [09:38:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 95 91 04 01 49 D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 E7 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2E 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 7E 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 24 63 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A8 CF 01 00 35 04 06 00 51 94 FA DA F2 1F 97 01 49 9E 8F 4C 2B 9E [09:38:41]CheckFolder [09:38:41]dirname=/storage/ofd_packets [09:38:41]CheckFolder done [09:38:41]ProducePacketName [09:38:41]name=ofd_packets/00118696 [09:38:41]NVStorageSaveData ofd_packets/00118696 [09:38:41]File name is /storage/ofd_packets/00118696 [09:38:41]Write 298 bytes [09:38:41]NVStorageSaveData done [09:38:41]OFDSenderStorePacket done [09:38:41]KKMCreateOFDPacket done [09:38:41]NVStorageSaveData kkm_last_timestamp [09:38:41]File name is /storage/kkm_last_timestamp [09:38:41]Write 4 bytes [09:38:41]NVStorageSaveData done [09:38:41]ExternCall_PrintAddStr [09:38:41]wPrintStart [09:38:41]Write to MH i2c: 01 00 00 DD 3D 1A [09:38:41]Write i2c OK [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: 01 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: 01 07 00 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: 01 07 00 DD 3D 00 00 00 00 00 FF 0F 2F [09:38:41]RasterBufferAndPrint [09:38:41]line Счет N : (1)949578 [09:38:41]line ИНН: 02508201610067 [09:38:41]line Контрольно-Кассовый Чек [09:38:41]line ПРОДАЖА [09:38:41]line ТРК (МРК, ГНК) : 21 [09:38:41]line Товар: 2710194800 [09:38:41]line ДТ-К-5 [09:38:41]line 124.680 * 76.20 [09:38:41]line = 9500.62 [09:38:41]line НДС 12% НСП 1% [09:38:41]line > о реализуемом товаре [09:38:41]line ОКРУГЛЕНИЕ: -0.62 [09:38:41]line ИТОГО: 9500.00 [09:38:41]line НСП 1% : 84.08 [09:38:41]line НДС 12% : 1008.91 [09:38:41]line Наличными: 0.00 [09:38:41]line Безнал.: 9500.00 [09:38:41]line Место: АЗС № 134 "Партнер Нефть" [09:38:41]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:38:41]line СНО: Общий режим [09:38:41]line Чек 72 29.07.2024 09:38 [09:38:41]line Смена: 434 ФФД: 1.0 [09:38:41]line ЗНМ: 0300000044 [09:38:41]line РНМ: 0000000000092660 [09:38:41]line Версия ККМ: 001 [09:38:41]line Платежная система: O! деньги [09:38:41]line ФМ: 0000000000874939 [09:38:41]line ФД: 118696 [09:38:41]line ФПД: 89700305662495 [09:38:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T093844&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118696&fm=89700305662495&tin=02508201610067®Number=0000000000092660&sum=950000 [09:38:41]OFD Sender: Processing packet 118696 [packets to send 86, broken 85] [09:38:41]ProducePacketName [09:38:41]name=ofd_packets/00118696 [09:38:41]OFD Sender: To server: pG, [09:38:41]CommunicateWithHost lk.salyk.kg:30040 [09:38:41]ConnectInit lk.salyk.kg [09:38:41]written 0, free lines is 4095 [09:38:41]Connected sock=10 [09:38:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 95 91 04 01 49 D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 E7 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2E 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 7E 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 24 63 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A8 CF 01 00 35 04 06 00 51 94 FA DA F2 1F 97 01 49 9E 8F 4C 2B 9E [09:38:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3E D8 47 00 38 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 34 39 33 39 10 04 04 00 A8 CF 01 00 F4 03 04 00 B2 10 A7 66 B6 04 01 00 00 23 3F D2 40 75 70 1C 04 [09:38:41]CommunicateWithHost err = 0 [09:38:41]CheckOFDResponse [09:38:41]1017 (14) - 77093643461234 [09:38:41]1041 (16) - 0000000000874939 [09:38:41]1040 (4) - 118696 [09:38:41]1012 (4) - 29.07.2024 03:46 [09:38:41]1206 (1) - 0 [09:38:41]OFD Sender: Remove packet 118696 [09:38:41]ProducePacketName [09:38:41]name=ofd_packets/00118696 [09:38:41]NVStorageDeleteData [09:38:41]Write to MH i2c: 01 00 00 07 3E 45 [09:38:41]Write i2c OK [09:38:41]MH_I2C_Read... [09:38:42]Read from MH i2c: 01 [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: 01 07 00 [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: 01 07 00 07 3E 00 00 00 00 00 FB 0C 53 [09:38:42]RasterBufferAndPrint [09:38:42]line [09:38:42]line [09:38:42]line [09:38:42]line [09:38:42]line [09:38:42]written 0, free lines is 3329 [09:38:42]MH_Cut [09:38:42]Write to MH i2c: D1 01 00 0E 3E 01 1E [09:38:42]Write i2c OK [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: D1 [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: D1 01 00 [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: D1 01 00 0E 3E 00 1D [09:38:42]Write to MH i2c: 01 00 00 0F 3E 4D [09:38:42]Write i2c OK [09:38:42]MH_I2C_Read... [09:38:42]OFD Sender: No OFD packet to send [09:38:42]*** Cut start [09:38:42]*** Partial cut [09:38:42]*** CUTSNS_PIN = 1 [09:38:42]*** CUTSNS_PIN = 0 [09:38:42]*** Brake cut motor [09:38:43]Read from MH i2c: 01 [09:38:43]MH_I2C_Read... [09:38:43]*** Stop cut motor [09:38:43]*** Cut end [09:38:43]Read from MH i2c: 01 07 00 [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: 01 07 00 0F 3E 00 00 00 00 00 FF 0F 62 [09:38:43]process_action close_receipt done [09:38:43]requested_data is exist [09:38:43]produce_requested_data [09:38:43]requested_item fm.sn is exist - process it [09:38:43]wFMCommunicate request_size=4 [09:38:43]MH_SAM_APDU [09:38:43]CAPDU: 80 11 00 00 [09:38:43]Write to MH i2c: E2 08 00 10 3E 80 11 00 00 00 00 00 00 C8 [09:38:43]Write i2c OK [09:38:43]MH_I2C_Read... [09:38:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:43]Read from MH i2c: E2 [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: E2 17 00 [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: E2 17 00 10 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 23 [09:38:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:38:43]wFMCommunicate OK [09:38:43]requested_item fd.num is exist - process it [09:38:43]SAM_PROTO_GetFieldsCounters [09:38:43]wFMCommunicate request_size=4 [09:38:43]MH_SAM_APDU [09:38:43]CAPDU: 80 13 00 00 [09:38:43]Write to MH i2c: E2 08 00 11 3E 80 13 00 00 00 00 00 00 CB [09:38:43]Write i2c OK [09:38:43]MH_I2C_Read... [09:38:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:43]Read from MH i2c: E2 [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: E2 62 00 [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: E2 62 00 11 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A8 CF 01 00 0E 04 04 00 B2 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 F5 [09:38: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A8 CF 01 00 0E 04 04 00 B2 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 [09:38:43]wFMCommunicate OK [09:38:43]SAM_PROTO_GetFieldsCounters done [09:38:43]requested_item shift.num is exist - process it [09:38:43]requested_item shift.opened is exist - process it [09:38:43]req_shift_opened [09:38:43]FM_GetShiftState [09:38:43]SAM_PROTO_GetShiftState [09:38:43]wFMCommunicate request_size=4 [09:38:43]MH_SAM_APDU [09:38:43]CAPDU: 80 13 01 00 [09:38:43]Write to MH i2c: E2 08 00 12 3E 80 13 01 00 00 00 00 00 CD [09:38:43]Write i2c OK [09:38:43]MH_I2C_Read... [09:38:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:43]Read from MH i2c: E2 [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: E2 0E 00 [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: E2 0E 00 12 3E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 FB [09:38:43]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:38:43]wFMCommunicate OK [09:38:43]SAM_PROTO_GetShiftState done [09:38:43]FM_GetShiftState done [09:38:43]req_shift_opened done [09:38:43]requested_item shift.open_date is exist - process it [09:38:43]req_shift_open_date [09:38:43]req_shift_open_date done [09:38:43]produce_requested_data done [09:38:43]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118696,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:38:43]process_action_free close_receipt [09:38:43]json_value_free [09:38:43]json_value_free done [09:38:43]process_json_proto returns [09:38:43]Send response to host [09:38:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118696,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:38:43]free response buf [09:38:43]execute_script done [09:38:43]execute_script returns [09:38:43]free content buf [09:38:43]Sock 9.Close socket [09:38:43]Sock 9.Thread stoped [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:54]accept exits with 7 [09:40:54]New connection [09:40:54]New thread 3067239780 created [09:40:54]Thread 3067383140 joined [09:40:54]Waiting for new connection... [09:40:54] Sock 7.Parse request [09:40:54]Sock 7.Check first char [09:40:54]Sock 7.First char is OK [09:40:54]request: POST /json_proto HTTP/1.0 [09:40:54]Method: POST [09:40:54]URL: /json_proto [09:40:54]Method is POST - this is cgi request [09:40:54]url: /json_proto [09:40:54]query_string will be loaded in cgi processing [09:40:54]execute_cgi json_proto POST (null) [09:40:54]execute_cgi path=json_proto method=POST [09:40:54]POST find Content-Length [09:40:54]Host: 172.17.45.7:8080 [09:40:54]Content-Length: 679 [09:40:54]Content-Type: application/json [09:40:54] [09:40:54]POST finish read [09:40:54]Found Content-Length = 679 [09:40:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:54]execute_script... [09:40:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:54]POST & json_proto [09:40:54]process_json_proto [09:40:54]json parsed OK: [09:40:54]protocol is kg_v1.0 [09:40:54]action value=close_receipt [09:40:54]process_action close_receipt [09:40:54]cmd_close_receipt [09:40:54]MH_GetDate [09:40:54]Write to MH i2c: F0 00 00 13 3E 40 [09:40:54]Write i2c OK [09:40:54]MH_I2C_Read... [09:40:54]Read from MH i2c: F0 [09:40:54]MH_I2C_Read... [09:40:54]Read from MH i2c: F0 09 00 [09:40:54]MH_I2C_Read... [09:40:54]Read from MH i2c: F0 09 00 13 3E 00 AB 63 A7 66 90 0F 3E 66 A7 [09:40:54]GetLastDocTimeStamp 1722245924 [09:40:54]current date 1722246059 [09:40:54]FM_GetShiftState [09:40:54]SAM_PROTO_GetShiftState [09:40:54]wFMCommunicate request_size=4 [09:40:54]MH_SAM_APDU [09:40:54]CAPDU: 80 13 01 00 [09:40:54]Write to MH i2c: E2 08 00 14 3E 80 13 01 00 00 00 00 00 CF [09:40:54]Write i2c OK [09:40:54]MH_I2C_Read... [09:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:54]Read from MH i2c: E2 [09:40:54]MH_I2C_Read... [09:40:54]Read from MH i2c: E2 0E 00 [09:40:54]MH_I2C_Read... [09:40:54]Read from MH i2c: E2 0E 00 14 3E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 FD [09:40:54]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:40:54]wFMCommunicate OK [09:40:54]SAM_PROTO_GetShiftState done [09:40:54]FM_GetShiftState done [09:40:54]opened in 1722211641 [09:40:54]opened+sec_in_day 1722298041 [09:40:54]quantity*price = 100050 [09:40:54]sum+1 = 100052 [09:40:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 73 29.07.2024 09:40 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118697 ФПД: 194238359914670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T094059&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118697&fm=194238359914670&tin=02508201610067®Number=0000000000092660&sum=100000 [09:40:56]StoreToDocumentArchive [09:40:56]shift 434 fd 118697 [09:40:56]save to /storage/0434/doc_00118697 [09:40:56]save last doc name /storage/0434/doc_00118697 to /storage/kkm_last_doc_name [09:40:56]save OK [09:40:56]Clear old archive folders... [09:40:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:40:56]tlvbuf is 01EE73C0 [09:40:56]SAM_PROTO_ClearQueue [09:40:56]wFMCommunicate request_size=4 [09:40:56]MH_SAM_APDU [09:40:56]CAPDU: 80 09 00 00 [09:40:56]Write to MH i2c: E2 08 00 21 3E 80 09 00 00 00 00 00 00 D1 [09:40:56]Write i2c OK [09:40:56]MH_I2C_Read... [09:40:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:56]Read from MH i2c: E2 [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: E2 03 00 [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: E2 03 00 21 3E 00 90 00 D3 [09:40:56]RAPDU: 90 00 [09:40:56]wFMCommunicate OK [09:40:56]SAM_PROTO_ClearQueue done [09:40:56]KKMCreateOFDPacket [09:40:56]OFDProtocolAddRootSTLVToBuf [09:40:56]FM_MakeSignedData [09:40:56]FM_MakeSignedData [09:40:56]SAM_PROTO_SignData [09:40:56]wFMCommunicate request_size=4 [09:40:56]MH_SAM_APDU [09:40:56]CAPDU: 80 0D 01 02 [09:40:56]Write to MH i2c: E2 08 00 22 3E 80 0D 01 02 00 00 00 00 D9 [09:40:56]Write i2c OK [09:40:56]MH_I2C_Read... [09:40:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:56]Read from MH i2c: E2 [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: E2 03 00 [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: E2 03 00 22 3E 00 90 00 D4 [09:40:56]RAPDU: 90 00 [09:40:56]wFMCommunicate OK [09:40:56]wFMCommunicate request_size=255 [09:40:56]MH_SAM_APDU [09:40: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 AB 63 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A9 CF 01 00 35 04 06 00 B0 A8 A4 71 [09:40:56]Write to MH i2c: E2 02 01 23 3E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 AB 63 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A9 CF 01 00 35 04 06 00 B0 A8 A4 71 00 00 66 [09:40:56]Write i2c OK [09:40:56]MH_I2C_Read... [09:40:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:56]Read from MH i2c: E2 [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: E2 03 00 [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: E2 03 00 23 3E 00 90 00 D5 [09:40:56]RAPDU: 90 00 [09:40:56]wFMCommunicate OK [09:40:56]wFMCommunicate request_size=7 [09:40:56]MH_SAM_APDU [09:40:56]CAPDU: 80 0D 02 02 02 C8 AE [09:40:56]Write to MH i2c: E2 0A 00 24 3E 80 0D 02 02 02 00 C8 AE 00 00 56 [09:40:56]Write i2c OK [09:40:56]MH_I2C_Read... [09:40:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:56]Read from MH i2c: E2 [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: E2 03 00 [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: E2 03 00 24 3E 00 90 00 D6 [09:40:56]RAPDU: 90 00 [09:40:56]wFMCommunicate OK [09:40:56]wFMCommunicate request_size=4 [09:40:56]MH_SAM_APDU [09:40:56]CAPDU: 80 0D 03 02 [09:40:56]Write to MH i2c: E2 08 00 25 3E 80 0D 03 02 00 00 00 00 DE [09:40:56]Write i2c OK [09:40:56]MH_I2C_Read... [09:40:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:56]Read from MH i2c: E2 [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: E2 0B 00 [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: E2 0B 00 25 3E 00 7C 41 2C 45 7C 10 AC 6A 90 00 AF [09:40:56]RAPDU: 7C 41 2C 45 7C 10 AC 6A 90 00 [09:40:56]wFMCommunicate OK [09:40:56]SAM_PROTO_SignData done [09:40:56]FM_MakeSignedData done [09:40:56]CreateOFDProtocolMessage [09:40:56]wFMCommunicate request_size=4 [09:40:56]MH_SAM_APDU [09:40:56]CAPDU: 80 11 00 00 [09:40:56]Write to MH i2c: E2 08 00 26 3E 80 11 00 00 00 00 00 00 DE [09:40:56]Write i2c OK [09:40:56]MH_I2C_Read... [09:40:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:56]Read from MH i2c: E2 [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: E2 17 00 [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: E2 17 00 26 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 39 [09:40:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:40:56]wFMCommunicate OK [09:40:56]CreateOFDProtocolMessage done [09:40:56]OFDSenderStorePacket 118697 [09:40:56]StoreOFDPacket docnum=118697 [09:40:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 84 7C 04 01 9F 49 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 AB 63 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A9 CF 01 00 35 04 06 00 B0 A8 A4 71 C8 AE 7C 41 2C 45 7C 10 AC 6A [09:40:56]CheckFolder [09:40:56]dirname=/storage/ofd_packets [09:40:56]CheckFolder done [09:40:56]ProducePacketName [09:40:56]name=ofd_packets/00118697 [09:40:56]NVStorageSaveData ofd_packets/00118697 [09:40:56]File name is /storage/ofd_packets/00118697 [09:40:56]Write 298 bytes [09:40:56]NVStorageSaveData done [09:40:56]OFDSenderStorePacket done [09:40:56]KKMCreateOFDPacket done [09:40:56]NVStorageSaveData kkm_last_timestamp [09:40:56]File name is /storage/kkm_last_timestamp [09:40:56]Write 4 bytes [09:40:56]NVStorageSaveData done [09:40:56]ExternCall_PrintAddStr [09:40:56]wPrintStart [09:40:56]Write to MH i2c: 01 00 00 27 3E 65 [09:40:56]Write i2c OK [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: 01 [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: 01 07 00 [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: 01 07 00 27 3E 00 00 00 00 00 FF 0F 7A [09:40:56]RasterBufferAndPrint [09:40:56]line Счет N : (1)949580 [09:40:56]line ИНН: 02508201610067 [09:40:56]line Контрольно-Кассовый Чек [09:40:56]line ПРОДАЖА [09:40:56]line ТРК (МРК, ГНК) : 34 [09:40:56]line Товар: 2710194800 [09:40:56]line ДТ-К-5 [09:40:56]line 13.130 * 76.20 [09:40:56]line = 1000.51 [09:40:56]line НДС 12% НСП 1% [09:40:56]line > о реализуемом товаре [09:40:56]line ОКРУГЛЕНИЕ: -0.51 [09:40:56]line ИТОГО: 1000.00 [09:40:56]line Внесено: 1000.00 [09:40:56]line СДАЧА: 0.00 [09:40:56]line НСП 1% : 8.85 [09:40:56]line НДС 12% : 106.25 [09:40:56]line Наличными: 1000.00 [09:40:56]line Безнал.: 0.00 [09:40:56]line Место: АЗС № 134 "Партнер Нефть" [09:40:56]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:40:56]line СНО: Общий режим [09:40:56]line Чек 73 29.07.2024 09:40 [09:40:56]line Смена: 434 ФФД: 1.0 [09:40:56]line ЗНМ: 0300000044 [09:40:56]line РНМ: 0000000000092660 [09:40:56]line Версия ККМ: 001 [09:40:56]line ФМ: 0000000000874939 [09:40:56]line ФД: 118697 [09:40:56]line ФПД: 194238359914670 [09:40:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T094059&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118697&fm=194238359914670&tin=02508201610067®Number=0000000000092660&sum=100000 [09:40:56]OFD Sender: Processing packet 118697 [packets to send 86, broken 85] [09:40:56]ProducePacketName [09:40:56]name=ofd_packets/00118697 [09:40:56]OFD Sender: To server: pG, [09:40:56]CommunicateWithHost lk.salyk.kg:30040 [09:40:56]ConnectInit lk.salyk.kg [09:40:56]written 0, free lines is 4095 [09:40:57]Connected sock=10 [09:40:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 84 7C 04 01 9F 49 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 AB 63 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A9 CF 01 00 35 04 06 00 B0 A8 A4 71 C8 AE 7C 41 2C 45 7C 10 AC 6A [09:40:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BE D9 47 00 04 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 34 39 33 39 10 04 04 00 A9 CF 01 00 F4 03 04 00 3A 11 A7 66 B6 04 01 00 00 F3 8C 19 3E AD 1B EA EC [09:40:57]CommunicateWithHost err = 0 [09:40:57]CheckOFDResponse [09:40:57]1017 (14) - 77093643461234 [09:40:57]1041 (16) - 0000000000874939 [09:40:57]1040 (4) - 118697 [09:40:57]1012 (4) - 29.07.2024 03:49 [09:40:57]1206 (1) - 0 [09:40:57]OFD Sender: Remove packet 118697 [09:40:57]ProducePacketName [09:40:57]name=ofd_packets/00118697 [09:40:57]NVStorageDeleteData [09:40:57]Write to MH i2c: 01 00 00 51 3E 8F [09:40:57]Write i2c OK [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: 01 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: 01 07 00 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: 01 07 00 51 3E 00 00 00 00 00 DC 0C 7E [09:40:57]RasterBufferAndPrint [09:40:57]line [09:40:57]line [09:40:57]line [09:40:57]line [09:40:57]line [09:40:57]written 0, free lines is 3298 [09:40:57]MH_Cut [09:40:57]Write to MH i2c: D1 01 00 58 3E 01 68 [09:40:57]Write i2c OK [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: D1 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: D1 01 00 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: D1 01 00 58 3E 00 67 [09:40:57]Write to MH i2c: 01 00 00 59 3E 97 [09:40:57]Write i2c OK [09:40:57]MH_I2C_Read... [09:40:57]OFD Sender: No OFD packet to send [09:40:58]*** Cut start [09:40:58]*** Partial cut [09:40:58]*** CUTSNS_PIN = 1 [09:40:58]*** CUTSNS_PIN = 0 [09:40:58]*** Brake cut motor [09:40:58]Read from MH i2c: 01 [09:40:58]MH_I2C_Read... [09:40:58]*** Stop cut motor [09:40:58]*** Cut end [09:40:58]Read from MH i2c: 01 07 00 [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: 01 07 00 59 3E 00 00 00 00 00 FF 0F AC [09:40:58]process_action close_receipt done [09:40:58]requested_data is exist [09:40:58]produce_requested_data [09:40:58]requested_item fm.sn is exist - process it [09:40:58]wFMCommunicate request_size=4 [09:40:58]MH_SAM_APDU [09:40:58]CAPDU: 80 11 00 00 [09:40:58]Write to MH i2c: E2 08 00 5A 3E 80 11 00 00 00 00 00 00 12 [09:40:58]Write i2c OK [09:40:58]MH_I2C_Read... [09:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:58]Read from MH i2c: E2 [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: E2 17 00 [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: E2 17 00 5A 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6D [09:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:40:58]wFMCommunicate OK [09:40:58]requested_item fd.num is exist - process it [09:40:58]SAM_PROTO_GetFieldsCounters [09:40:58]wFMCommunicate request_size=4 [09:40:58]MH_SAM_APDU [09:40:58]CAPDU: 80 13 00 00 [09:40:58]Write to MH i2c: E2 08 00 5B 3E 80 13 00 00 00 00 00 00 15 [09:40:58]Write i2c OK [09:40:58]MH_I2C_Read... [09:40:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:58]Read from MH i2c: E2 [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: E2 62 00 [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: E2 62 00 5B 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A9 CF 01 00 0E 04 04 00 B2 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 43 [09:40: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A9 CF 01 00 0E 04 04 00 B2 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 [09:40:58]wFMCommunicate OK [09:40:58]SAM_PROTO_GetFieldsCounters done [09:40:58]requested_item shift.num is exist - process it [09:40:58]requested_item shift.opened is exist - process it [09:40:58]req_shift_opened [09:40:58]FM_GetShiftState [09:40:58]SAM_PROTO_GetShiftState [09:40:58]wFMCommunicate request_size=4 [09:40:58]MH_SAM_APDU [09:40:58]CAPDU: 80 13 01 00 [09:40:58]Write to MH i2c: E2 08 00 5C 3E 80 13 01 00 00 00 00 00 17 [09:40:58]Write i2c OK [09:40:58]MH_I2C_Read... [09:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:58]Read from MH i2c: E2 [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: E2 0E 00 [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: E2 0E 00 5C 3E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 45 [09:40:58]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:40:58]wFMCommunicate OK [09:40:58]SAM_PROTO_GetShiftState done [09:40:58]FM_GetShiftState done [09:40:58]req_shift_opened done [09:40:58]requested_item shift.open_date is exist - process it [09:40:58]req_shift_open_date [09:40:58]req_shift_open_date done [09:40:58]produce_requested_data done [09:40:58]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118697,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:40:58]process_action_free close_receipt [09:40:58]json_value_free [09:40:58]json_value_free done [09:40:58]process_json_proto returns [09:40:58]Send response to host [09:40:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118697,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:40:58]free response buf [09:40:58]execute_script done [09:40:58]execute_script returns [09:40:58]free content buf [09:40:58]Sock 7.Close socket [09:40:58]Sock 7.Thread stoped [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:08]accept exits with 9 [09:43:08]New connection [09:43:08]New thread 3067383140 created [09:43:08]Thread 3067239780 joined [09:43:08]Waiting for new connection... [09:43:08] Sock 9.Parse request [09:43:08]Sock 9.Check first char [09:43:08]Sock 9.First char is OK [09:43:08]request: POST /json_proto HTTP/1.0 [09:43:08]Method: POST [09:43:08]URL: /json_proto [09:43:08]Method is POST - this is cgi request [09:43:08]url: /json_proto [09:43:08]query_string will be loaded in cgi processing [09:43:08]execute_cgi json_proto POST (null) [09:43:08]execute_cgi path=json_proto method=POST [09:43:08]POST find Content-Length [09:43:08]Host: 172.17.45.7:8080 [09:43:08]Content-Length: 677 [09:43:08]Content-Type: application/json [09:43:08] [09:43:08]POST finish read [09:43:08]Found Content-Length = 677 [09:43:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:08]execute_script... [09:43: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)949581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:08]POST & json_proto [09:43:08]process_json_proto [09:43:08]json parsed OK: [09:43:08]protocol is kg_v1.0 [09:43:08]action value=close_receipt [09:43:08]process_action close_receipt [09:43:08]cmd_close_receipt [09:43:08]MH_GetDate [09:43:08]Write to MH i2c: F0 00 00 5D 3E 8A [09:43:08]Write i2c OK [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: F0 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: F0 09 00 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: F0 09 00 5D 3E 00 31 64 A7 66 90 0F 3E 66 78 [09:43:08]GetLastDocTimeStamp 1722246059 [09:43:08]current date 1722246193 [09:43:08]FM_GetShiftState [09:43:08]SAM_PROTO_GetShiftState [09:43:08]wFMCommunicate request_size=4 [09:43:08]MH_SAM_APDU [09:43:08]CAPDU: 80 13 01 00 [09:43:08]Write to MH i2c: E2 08 00 5E 3E 80 13 01 00 00 00 00 00 19 [09:43:08]Write i2c OK [09:43:08]MH_I2C_Read... [09:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:08]Read from MH i2c: E2 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: E2 0E 00 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: E2 0E 00 5E 3E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 47 [09:43:08]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:43:08]wFMCommunicate OK [09:43:08]SAM_PROTO_GetShiftState done [09:43:08]FM_GetShiftState done [09:43:08]opened in 1722211641 [09:43:08]opened+sec_in_day 1722298041 [09:43:08]quantity*price = 50036 [09:43:08]sum+1 = 50037 [09:43:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 74 29.07.2024 09:43 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118698 ФПД: 117553416017115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T094313&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118698&fm=117553416017115&tin=02508201610067®Number=0000000000092660&sum=50000 [09:43:09]StoreToDocumentArchive [09:43:09]shift 434 fd 118698 [09:43:09]save to /storage/0434/doc_00118698 [09:43:09]save last doc name /storage/0434/doc_00118698 to /storage/kkm_last_doc_name [09:43:09]save OK [09:43:09]Clear old archive folders... [09:43:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:09]tlvbuf is 01E70880 [09:43:09]SAM_PROTO_ClearQueue [09:43:09]wFMCommunicate request_size=4 [09:43:09]MH_SAM_APDU [09:43:09]CAPDU: 80 09 00 00 [09:43:09]Write to MH i2c: E2 08 00 6B 3E 80 09 00 00 00 00 00 00 1B [09:43:09]Write i2c OK [09:43:09]MH_I2C_Read... [09:43:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:09]Read from MH i2c: E2 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 03 00 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 03 00 6B 3E 00 90 00 1D [09:43:09]RAPDU: 90 00 [09:43:09]wFMCommunicate OK [09:43:09]SAM_PROTO_ClearQueue done [09:43:09]KKMCreateOFDPacket [09:43:09]OFDProtocolAddRootSTLVToBuf [09:43:09]FM_MakeSignedData [09:43:09]FM_MakeSignedData [09:43:09]SAM_PROTO_SignData [09:43:09]wFMCommunicate request_size=4 [09:43:09]MH_SAM_APDU [09:43:09]CAPDU: 80 0D 01 02 [09:43:09]Write to MH i2c: E2 08 00 6C 3E 80 0D 01 02 00 00 00 00 23 [09:43:09]Write i2c OK [09:43:09]MH_I2C_Read... [09:43:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:09]Read from MH i2c: E2 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 03 00 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 03 00 6C 3E 00 90 00 1E [09:43:09]RAPDU: 90 00 [09:43:09]wFMCommunicate OK [09:43:09]wFMCommunicate request_size=255 [09:43:09]MH_SAM_APDU [09:43:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 31 64 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AA CF 01 00 35 04 06 00 6A [09:43:09]Write to MH i2c: E2 02 01 6D 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 31 64 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AA CF 01 00 35 04 06 00 6A 00 00 2A [09:43:10]Write i2c OK [09:43:10]MH_I2C_Read... [09:43:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:10]Read from MH i2c: E2 [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: E2 03 00 [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: E2 03 00 6D 3E 00 90 00 1F [09:43:10]RAPDU: 90 00 [09:43:10]wFMCommunicate OK [09:43:10]wFMCommunicate request_size=10 [09:43:10]MH_SAM_APDU [09:43:10]CAPDU: 80 0D 02 02 05 EA 09 9A 94 DB [09:43:10]Write to MH i2c: E2 0D 00 6E 3E 80 0D 02 02 05 00 EA 09 9A 94 DB 00 00 2C [09:43:10]Write i2c OK [09:43:10]MH_I2C_Read... [09:43:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:10]Read from MH i2c: E2 [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: E2 03 00 [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: E2 03 00 6E 3E 00 90 00 20 [09:43:10]RAPDU: 90 00 [09:43:10]wFMCommunicate OK [09:43:10]wFMCommunicate request_size=4 [09:43:10]MH_SAM_APDU [09:43:10]CAPDU: 80 0D 03 02 [09:43:10]Write to MH i2c: E2 08 00 6F 3E 80 0D 03 02 00 00 00 00 28 [09:43:10]Write i2c OK [09:43:10]MH_I2C_Read... [09:43:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:10]Read from MH i2c: E2 [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: E2 0B 00 [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: E2 0B 00 6F 3E 00 07 E7 FD 47 D7 0D A3 69 90 00 4B [09:43:10]RAPDU: 07 E7 FD 47 D7 0D A3 69 90 00 [09:43:10]wFMCommunicate OK [09:43:10]SAM_PROTO_SignData done [09:43:10]FM_MakeSignedData done [09:43:10]CreateOFDProtocolMessage [09:43:10]wFMCommunicate request_size=4 [09:43:10]MH_SAM_APDU [09:43:10]CAPDU: 80 11 00 00 [09:43:10]Write to MH i2c: E2 08 00 70 3E 80 11 00 00 00 00 00 00 28 [09:43:10]Write i2c OK [09:43:10]MH_I2C_Read... [09:43:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:10]Read from MH i2c: E2 [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: E2 17 00 [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: E2 17 00 70 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 83 [09:43:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:43:10]wFMCommunicate OK [09:43:10]CreateOFDProtocolMessage done [09:43:10]OFDSenderStorePacket 118698 [09:43:10]StoreOFDPacket docnum=118698 [09:43:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E4 13 07 01 EB 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 31 64 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AA CF 01 00 35 04 06 00 6A EA 09 9A 94 DB 07 E7 FD 47 D7 0D A3 69 [09:43:10]CheckFolder [09:43:10]dirname=/storage/ofd_packets [09:43:10]CheckFolder done [09:43:10]ProducePacketName [09:43:10]name=ofd_packets/00118698 [09:43:10]NVStorageSaveData ofd_packets/00118698 [09:43:10]File name is /storage/ofd_packets/00118698 [09:43:10]Write 301 bytes [09:43:10]NVStorageSaveData done [09:43:10]OFDSenderStorePacket done [09:43:10]KKMCreateOFDPacket done [09:43:10]NVStorageSaveData kkm_last_timestamp [09:43:10]File name is /storage/kkm_last_timestamp [09:43:10]Write 4 bytes [09:43:10]NVStorageSaveData done [09:43:10]ExternCall_PrintAddStr [09:43:10]wPrintStart [09:43:10]Write to MH i2c: 01 00 00 71 3E AF [09:43:10]Write i2c OK [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: 01 [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: 01 07 00 [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: 01 07 00 71 3E 00 00 00 00 00 FF 0F C4 [09:43:10]RasterBufferAndPrint [09:43:10]line Счет N : (1)949581 [09:43:10]line ИНН: 02508201610067 [09:43:10]line Контрольно-Кассовый Чек [09:43:10]line ПРОДАЖА [09:43:10]line ТРК (МРК, ГНК) : 31 [09:43:10]line Товар: 2710124130 [09:43:10]line Аи-92-К-4 [09:43:10]line 7.380 * 67.80 [09:43:10]line = 500.36 [09:43:10]line НДС 12% НСП 1% [09:43:10]line > о реализуемом товаре [09:43:10]line ОКРУГЛЕНИЕ: -0.36 [09:43:10]line ИТОГО: 500.00 [09:43:10]line Внесено: 500.00 [09:43:10]line СДАЧА: 0.00 [09:43:10]line НСП 1% : 4.43 [09:43:10]line НДС 12% : 53.14 [09:43:10]line Наличными: 500.00 [09:43:10]line Безнал.: 0.00 [09:43:10]line Место: АЗС № 134 "Партнер Нефть" [09:43:10]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:43:10]line СНО: Общий режим [09:43:10]line Чек 74 29.07.2024 09:43 [09:43:10]line Смена: 434 ФФД: 1.0 [09:43:10]line ЗНМ: 0300000044 [09:43:10]line РНМ: 0000000000092660 [09:43:10]line Версия ККМ: 001 [09:43:10]line ФМ: 0000000000874939 [09:43:10]line ФД: 118698 [09:43:10]line ФПД: 117553416017115 [09:43:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T094313&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118698&fm=117553416017115&tin=02508201610067®Number=0000000000092660&sum=50000 [09:43:10]OFD Sender: Processing packet 118698 [packets to send 86, broken 85] [09:43:10]ProducePacketName [09:43:10]name=ofd_packets/00118698 [09:43:10]OFD Sender: To server: pG, [09:43:10]CommunicateWithHost lk.salyk.kg:30040 [09:43:10]ConnectInit lk.salyk.kg [09:43:10]written 0, free lines is 4095 [09:43:10]Connected sock=10 [09:43:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E4 13 07 01 EB 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 31 64 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AA CF 01 00 35 04 06 00 6A EA 09 9A 94 DB 07 E7 FD 47 D7 0D A3 69 [09:43:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E7 2F 47 00 E8 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 34 39 33 39 10 04 04 00 AA CF 01 00 F4 03 04 00 BF 11 A7 66 B6 04 01 00 00 91 F7 FA 9C F2 26 41 7D [09:43:11]CommunicateWithHost err = 0 [09:43:11]CheckOFDResponse [09:43:11]1017 (14) - 77093643461234 [09:43:11]1041 (16) - 0000000000874939 [09:43:11]1040 (4) - 118698 [09:43:11]1012 (4) - 29.07.2024 03:51 [09:43:11]1206 (1) - 0 [09:43:11]OFD Sender: Remove packet 118698 [09:43:11]ProducePacketName [09:43:11]name=ofd_packets/00118698 [09:43:11]NVStorageDeleteData [09:43:11]Write to MH i2c: 01 00 00 9B 3E D9 [09:43:11]Write i2c OK [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: 01 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: 01 07 00 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: 01 07 00 9B 3E 00 00 00 00 00 E6 0C D2 [09:43:11]RasterBufferAndPrint [09:43:11]line [09:43:11]line [09:43:11]line [09:43:11]line [09:43:11]line [09:43:11]written 0, free lines is 3308 [09:43:11]MH_Cut [09:43:11]Write to MH i2c: D1 01 00 A2 3E 01 B2 [09:43:11]Write i2c OK [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: D1 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: D1 01 00 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: D1 01 00 A2 3E 00 B1 [09:43:11]Write to MH i2c: 01 00 00 A3 3E E1 [09:43:11]Write i2c OK [09:43:11]MH_I2C_Read... [09:43:11]OFD Sender: No OFD packet to send [09:43:11]*** Cut start [09:43:11]*** Partial cut [09:43:11]*** CUTSNS_PIN = 1 [09:43:11]*** CUTSNS_PIN = 0 [09:43:12]*** Brake cut motor [09:43:12]Read from MH i2c: 01 [09:43:12]MH_I2C_Read... [09:43:12]*** Stop cut motor [09:43:12]*** Cut end [09:43:12]Read from MH i2c: 01 07 00 [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: 01 07 00 A3 3E 00 00 00 00 00 FF 0F F6 [09:43:12]process_action close_receipt done [09:43:12]requested_data is exist [09:43:12]produce_requested_data [09:43:12]requested_item fm.sn is exist - process it [09:43:12]wFMCommunicate request_size=4 [09:43:12]MH_SAM_APDU [09:43:12]CAPDU: 80 11 00 00 [09:43:12]Write to MH i2c: E2 08 00 A4 3E 80 11 00 00 00 00 00 00 5C [09:43:12]Write i2c OK [09:43:12]MH_I2C_Read... [09:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:12]Read from MH i2c: E2 [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: E2 17 00 [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: E2 17 00 A4 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B7 [09:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:43:12]wFMCommunicate OK [09:43:12]requested_item fd.num is exist - process it [09:43:12]SAM_PROTO_GetFieldsCounters [09:43:12]wFMCommunicate request_size=4 [09:43:12]MH_SAM_APDU [09:43:12]CAPDU: 80 13 00 00 [09:43:12]Write to MH i2c: E2 08 00 A5 3E 80 13 00 00 00 00 00 00 5F [09:43:12]Write i2c OK [09:43:12]MH_I2C_Read... [09:43:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:12]Read from MH i2c: E2 [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: E2 62 00 [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: E2 62 00 A5 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AA CF 01 00 0E 04 04 00 B2 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 91 [09:43: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AA CF 01 00 0E 04 04 00 B2 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 [09:43:12]wFMCommunicate OK [09:43:12]SAM_PROTO_GetFieldsCounters done [09:43:12]requested_item shift.num is exist - process it [09:43:12]requested_item shift.opened is exist - process it [09:43:12]req_shift_opened [09:43:12]FM_GetShiftState [09:43:12]SAM_PROTO_GetShiftState [09:43:12]wFMCommunicate request_size=4 [09:43:12]MH_SAM_APDU [09:43:12]CAPDU: 80 13 01 00 [09:43:12]Write to MH i2c: E2 08 00 A6 3E 80 13 01 00 00 00 00 00 61 [09:43:12]Write i2c OK [09:43:12]MH_I2C_Read... [09:43:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:12]Read from MH i2c: E2 [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: E2 0E 00 [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: E2 0E 00 A6 3E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 8F [09:43:12]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:43:12]wFMCommunicate OK [09:43:12]SAM_PROTO_GetShiftState done [09:43:12]FM_GetShiftState done [09:43:12]req_shift_opened done [09:43:12]requested_item shift.open_date is exist - process it [09:43:12]req_shift_open_date [09:43:12]req_shift_open_date done [09:43:12]produce_requested_data done [09:43:12]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118698,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:43:12]process_action_free close_receipt [09:43:12]json_value_free [09:43:12]json_value_free done [09:43:12]process_json_proto returns [09:43:12]Send response to host [09:43:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118698,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:43:12]free response buf [09:43:12]execute_script done [09:43:12]execute_script returns [09:43:12]free content buf [09:43:12]Sock 9.Close socket [09:43:12]Sock 9.Thread stoped [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:33]accept exits with 7 [09:43:33]New connection [09:43:33]New thread 3067239780 created [09:43:33]Thread 3067383140 joined [09:43:33]Waiting for new connection... [09:43:33] Sock 7.Parse request [09:43:33]Sock 7.Check first char [09:43:33]Sock 7.First char is OK [09:43:33]request: POST /json_proto HTTP/1.0 [09:43:33]Method: POST [09:43:33]URL: /json_proto [09:43:33]Method is POST - this is cgi request [09:43:33]url: /json_proto [09:43:33]query_string will be loaded in cgi processing [09:43:33]execute_cgi json_proto POST (null) [09:43:33]execute_cgi path=json_proto method=POST [09:43:33]POST find Content-Length [09:43:33]Host: 172.17.45.7:8080 [09:43:33]Content-Length: 682 [09:43:33]Content-Type: application/json [09:43:33] [09:43:33]POST finish read [09:43:33]Found Content-Length = 682 [09:43:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:33]execute_script... [09:43: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)949582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:33]POST & json_proto [09:43:33]process_json_proto [09:43:33]json parsed OK: [09:43:33]protocol is kg_v1.0 [09:43:33]action value=close_receipt [09:43:33]process_action close_receipt [09:43:33]cmd_close_receipt [09:43:33]MH_GetDate [09:43:33]Write to MH i2c: F0 00 00 A7 3E D4 [09:43:33]Write i2c OK [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: F0 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: F0 09 00 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: F0 09 00 A7 3E 00 4A 64 A7 66 90 0F 3E 66 DB [09:43:33]GetLastDocTimeStamp 1722246193 [09:43:33]current date 1722246218 [09:43:33]FM_GetShiftState [09:43:33]SAM_PROTO_GetShiftState [09:43:33]wFMCommunicate request_size=4 [09:43:33]MH_SAM_APDU [09:43:33]CAPDU: 80 13 01 00 [09:43:33]Write to MH i2c: E2 08 00 A8 3E 80 13 01 00 00 00 00 00 63 [09:43:33]Write i2c OK [09:43:33]MH_I2C_Read... [09:43:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:33]Read from MH i2c: E2 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 0E 00 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 0E 00 A8 3E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 91 [09:43:33]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:43:33]wFMCommunicate OK [09:43:33]SAM_PROTO_GetShiftState done [09:43:33]FM_GetShiftState done [09:43:33]opened in 1722211641 [09:43:33]opened+sec_in_day 1722298041 [09:43:33]quantity*price = 100005 [09:43:33]sum+1 = 100006 [09:43:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 75 29.07.2024 09:43 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118699 ФПД: 213832984991886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T094338&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118699&fm=213832984991886&tin=02508201610067®Number=0000000000092660&sum=100000 [09:43:34]StoreToDocumentArchive [09:43:34]shift 434 fd 118699 [09:43:34]save to /storage/0434/doc_00118699 [09:43:34]save last doc name /storage/0434/doc_00118699 to /storage/kkm_last_doc_name [09:43:34]save OK [09:43:34]Clear old archive folders... [09:43:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:34]tlvbuf is 01ED6640 [09:43:34]SAM_PROTO_ClearQueue [09:43:34]wFMCommunicate request_size=4 [09:43:34]MH_SAM_APDU [09:43:34]CAPDU: 80 09 00 00 [09:43:34]Write to MH i2c: E2 08 00 B5 3E 80 09 00 00 00 00 00 00 65 [09:43:34]Write i2c OK [09:43:34]MH_I2C_Read... [09:43:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:34]Read from MH i2c: E2 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: E2 03 00 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: E2 03 00 B5 3E 00 90 00 67 [09:43:34]RAPDU: 90 00 [09:43:34]wFMCommunicate OK [09:43:34]SAM_PROTO_ClearQueue done [09:43:34]KKMCreateOFDPacket [09:43:34]OFDProtocolAddRootSTLVToBuf [09:43:34]FM_MakeSignedData [09:43:34]FM_MakeSignedData [09:43:34]SAM_PROTO_SignData [09:43:34]wFMCommunicate request_size=4 [09:43:34]MH_SAM_APDU [09:43:34]CAPDU: 80 0D 01 02 [09:43:34]Write to MH i2c: E2 08 00 B6 3E 80 0D 01 02 00 00 00 00 6D [09:43:34]Write i2c OK [09:43:34]MH_I2C_Read... [09:43:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:34]Read from MH i2c: E2 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: E2 03 00 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: E2 03 00 B6 3E 00 90 00 68 [09:43:34]RAPDU: 90 00 [09:43:34]wFMCommunicate OK [09:43:34]wFMCommunicate request_size=255 [09:43:34]MH_SAM_APDU [09:43: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 4A 64 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AB CF 01 00 35 04 06 00 C2 [09:43:34]Write to MH i2c: E2 02 01 B7 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 4A 64 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AB CF 01 00 35 04 06 00 C2 00 00 76 [09:43:34]Write i2c OK [09:43:34]MH_I2C_Read... [09:43:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:34]Read from MH i2c: E2 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: E2 03 00 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: E2 03 00 B7 3E 00 90 00 69 [09:43:34]RAPDU: 90 00 [09:43:34]wFMCommunicate OK [09:43:34]wFMCommunicate request_size=10 [09:43:34]MH_SAM_APDU [09:43:34]CAPDU: 80 0D 02 02 05 7A DF 1C 98 8E [09:43:34]Write to MH i2c: E2 0D 00 B8 3E 80 0D 02 02 05 00 7A DF 1C 98 8E 00 00 15 [09:43:34]Write i2c OK [09:43:34]MH_I2C_Read... [09:43:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:34]Read from MH i2c: E2 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: E2 03 00 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: E2 03 00 B8 3E 00 90 00 6A [09:43:34]RAPDU: 90 00 [09:43:34]wFMCommunicate OK [09:43:34]wFMCommunicate request_size=4 [09:43:34]MH_SAM_APDU [09:43:34]CAPDU: 80 0D 03 02 [09:43:34]Write to MH i2c: E2 08 00 B9 3E 80 0D 03 02 00 00 00 00 72 [09:43:34]Write i2c OK [09:43:34]MH_I2C_Read... [09:43:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:34]Read from MH i2c: E2 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: E2 0B 00 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: E2 0B 00 B9 3E 00 2A 8B 06 73 FB 12 3F E3 90 00 D0 [09:43:34]RAPDU: 2A 8B 06 73 FB 12 3F E3 90 00 [09:43:34]wFMCommunicate OK [09:43:34]SAM_PROTO_SignData done [09:43:34]FM_MakeSignedData done [09:43:34]CreateOFDProtocolMessage [09:43:34]wFMCommunicate request_size=4 [09:43:34]MH_SAM_APDU [09:43:34]CAPDU: 80 11 00 00 [09:43:34]Write to MH i2c: E2 08 00 BA 3E 80 11 00 00 00 00 00 00 72 [09:43:34]Write i2c OK [09:43:34]MH_I2C_Read... [09:43:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:34]Read from MH i2c: E2 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: E2 17 00 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: E2 17 00 BA 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CD [09:43:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:43:34]wFMCommunicate OK [09:43:34]CreateOFDProtocolMessage done [09:43:34]OFDSenderStorePacket 118699 [09:43:34]StoreOFDPacket docnum=118699 [09:43:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A8 56 07 01 0E A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 4A 64 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AB CF 01 00 35 04 06 00 C2 7A DF 1C 98 8E 2A 8B 06 73 FB 12 3F E3 [09:43:34]CheckFolder [09:43:34]dirname=/storage/ofd_packets [09:43:34]CheckFolder done [09:43:34]ProducePacketName [09:43:34]name=ofd_packets/00118699 [09:43:34]NVStorageSaveData ofd_packets/00118699 [09:43:34]File name is /storage/ofd_packets/00118699 [09:43:34]Write 301 bytes [09:43:34]NVStorageSaveData done [09:43:34]OFDSenderStorePacket done [09:43:34]KKMCreateOFDPacket done [09:43:34]NVStorageSaveData kkm_last_timestamp [09:43:34]File name is /storage/kkm_last_timestamp [09:43:34]Write 4 bytes [09:43:34]NVStorageSaveData done [09:43:34]OFD Sender: Processing packet 118699 [packets to send 86, broken 85] [09:43:34]ProducePacketName [09:43:34]name=ofd_packets/00118699 [09:43:34]OFD Sender: To server: pG, [09:43:34]CommunicateWithHost lk.salyk.kg:30040 [09:43:34]ConnectInit lk.salyk.kg [09:43:34]ExternCall_PrintAddStr [09:43:34]wPrintStart [09:43:34]Write to MH i2c: 01 00 00 BB 3E F9 [09:43:34]Write i2c OK [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: 01 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: 01 07 00 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: 01 07 00 BB 3E 00 00 00 00 00 FF 0F 0E [09:43:34]RasterBufferAndPrint [09:43:34]line Счет N : (1)949582 [09:43:34]line ИНН: 02508201610067 [09:43:34]line Контрольно-Кассовый Чек [09:43:34]line ПРОДАЖА [09:43:34]line ТРК (МРК, ГНК) : 41 [09:43:34]line Товар: 2710124130 [09:43:34]line Аи-92-К-4 [09:43:34]line 14.750 * 67.80 [09:43:34]line = 1000.05 [09:43:34]line НДС 12% НСП 1% [09:43:34]line > о реализуемом товаре [09:43:34]line ОКРУГЛЕНИЕ: -0.05 [09:43:34]line ИТОГО: 1000.00 [09:43:34]line Внесено: 1000.00 [09:43:34]line СДАЧА: 0.00 [09:43:34]line НСП 1% : 8.85 [09:43:34]line НДС 12% : 106.20 [09:43:34]line Наличными: 1000.00 [09:43:34]line Безнал.: 0.00 [09:43:34]line Место: АЗС № 134 "Партнер Нефть" [09:43:34]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:43:34]line СНО: Общий режим [09:43:34]line Чек 75 29.07.2024 09:43 [09:43:34]line Смена: 434 ФФД: 1.0 [09:43:34]line ЗНМ: 0300000044 [09:43:34]line РНМ: 0000000000092660 [09:43:34]line Версия ККМ: 001 [09:43:34]line ФМ: 0000000000874939 [09:43:34]line ФД: 118699 [09:43:34]line ФПД: 213832984991886 [09:43:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T094338&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118699&fm=213832984991886&tin=02508201610067®Number=0000000000092660&sum=100000 [09:43:35]Connected sock=11 [09:43:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A8 56 07 01 0E A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 4A 64 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AB CF 01 00 35 04 06 00 C2 7A DF 1C 98 8E 2A 8B 06 73 FB 12 3F E3 [09:43:35]written 0, free lines is 4095 [09:43:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8F 63 47 00 C0 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AB CF 01 00 F4 03 04 00 D8 11 A7 66 B6 04 01 00 00 75 D7 E7 22 3F 38 BD 32 [09:43:35]CommunicateWithHost err = 0 [09:43:35]CheckOFDResponse [09:43:35]1017 (14) - 77093643461234 [09:43:35]1041 (16) - 0000000000874939 [09:43:35]1040 (4) - 118699 [09:43:35]1012 (4) - 29.07.2024 03:51 [09:43:35]1206 (1) - 0 [09:43:35]OFD Sender: Remove packet 118699 [09:43:35]ProducePacketName [09:43:35]name=ofd_packets/00118699 [09:43:35]NVStorageDeleteData [09:43:35]Write to MH i2c: 01 00 00 E5 3E 23 [09:43:35]Write i2c OK [09:43:35]MH_I2C_Read... [09:43:35]Read from MH i2c: 01 [09:43:35]MH_I2C_Read... [09:43:35]Read from MH i2c: 01 07 00 [09:43:35]MH_I2C_Read... [09:43:35]Read from MH i2c: 01 07 00 E5 3E 00 00 00 00 00 E7 0C 1D [09:43:35]RasterBufferAndPrint [09:43:35]line [09:43:35]line [09:43:35]line [09:43:35]line [09:43:35]line [09:43:35]written 0, free lines is 3309 [09:43:35]MH_Cut [09:43:35]Write to MH i2c: D1 01 00 EC 3E 01 FC [09:43:35]Write i2c OK [09:43:35]MH_I2C_Read... [09:43:35]Read from MH i2c: D1 [09:43:35]MH_I2C_Read... [09:43:35]Read from MH i2c: D1 01 00 [09:43:35]MH_I2C_Read... [09:43:35]Read from MH i2c: D1 01 00 EC 3E 00 FB [09:43:35]Write to MH i2c: 01 00 00 ED 3E 2B [09:43:35]Write i2c OK [09:43:35]MH_I2C_Read... [09:43:35]OFD Sender: No OFD packet to send [09:43:36]*** Cut start [09:43:36]*** Partial cut [09:43:36]*** CUTSNS_PIN = 1 [09:43:36]*** CUTSNS_PIN = 0 [09:43:36]*** Brake cut motor [09:43:36]Read from MH i2c: 01 [09:43:36]MH_I2C_Read... [09:43:36]*** Stop cut motor [09:43:36]*** Cut end [09:43:36]Read from MH i2c: 01 07 00 [09:43:36]MH_I2C_Read... [09:43:36]Read from MH i2c: 01 07 00 ED 3E 00 00 00 00 00 FF 0F 40 [09:43:36]process_action close_receipt done [09:43:36]requested_data is exist [09:43:36]produce_requested_data [09:43:36]requested_item fm.sn is exist - process it [09:43:36]wFMCommunicate request_size=4 [09:43:36]MH_SAM_APDU [09:43:36]CAPDU: 80 11 00 00 [09:43:36]Write to MH i2c: E2 08 00 EE 3E 80 11 00 00 00 00 00 00 A6 [09:43:36]Write i2c OK [09:43:36]MH_I2C_Read... [09:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:36]Read from MH i2c: E2 [09:43:36]MH_I2C_Read... [09:43:36]Read from MH i2c: E2 17 00 [09:43:36]MH_I2C_Read... [09:43:36]Read from MH i2c: E2 17 00 EE 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 01 [09:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:43:36]wFMCommunicate OK [09:43:36]requested_item fd.num is exist - process it [09:43:36]SAM_PROTO_GetFieldsCounters [09:43:36]wFMCommunicate request_size=4 [09:43:36]MH_SAM_APDU [09:43:36]CAPDU: 80 13 00 00 [09:43:36]Write to MH i2c: E2 08 00 EF 3E 80 13 00 00 00 00 00 00 A9 [09:43:36]Write i2c OK [09:43:36]MH_I2C_Read... [09:43:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:37]Read from MH i2c: E2 [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: E2 62 00 [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: E2 62 00 EF 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AB CF 01 00 0E 04 04 00 B2 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 DF [09: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AB CF 01 00 0E 04 04 00 B2 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 [09:43:37]wFMCommunicate OK [09:43:37]SAM_PROTO_GetFieldsCounters done [09:43:37]requested_item shift.num is exist - process it [09:43:37]requested_item shift.opened is exist - process it [09:43:37]req_shift_opened [09:43:37]FM_GetShiftState [09:43:37]SAM_PROTO_GetShiftState [09:43:37]wFMCommunicate request_size=4 [09:43:37]MH_SAM_APDU [09:43:37]CAPDU: 80 13 01 00 [09:43:37]Write to MH i2c: E2 08 00 F0 3E 80 13 01 00 00 00 00 00 AB [09:43:37]Write i2c OK [09:43:37]MH_I2C_Read... [09:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:37]Read from MH i2c: E2 [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: E2 0E 00 [09:43:37]MH_I2C_Read... [09:43:37]Read from MH i2c: E2 0E 00 F0 3E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D9 [09:43:37]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:43:37]wFMCommunicate OK [09:43:37]SAM_PROTO_GetShiftState done [09:43:37]FM_GetShiftState done [09:43:37]req_shift_opened done [09:43:37]requested_item shift.open_date is exist - process it [09:43:37]req_shift_open_date [09:43:37]req_shift_open_date done [09:43:37]produce_requested_data done [09:43:37]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118699,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:43:37]process_action_free close_receipt [09:43:37]json_value_free [09:43:37]json_value_free done [09:43:37]process_json_proto returns [09:43:37]Send response to host [09:43:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118699,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:43:37]free response buf [09:43:37]execute_script done [09:43:37]execute_script returns [09:43:37]free content buf [09:43:37]Sock 7.Close socket [09:43:37]Sock 7.Thread stoped [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:48]accept exits with 9 [09:44:48]New connection [09:44:48]New thread 3067383140 created [09:44:48]Thread 3067239780 joined [09:44:48]Waiting for new connection... [09:44:48] Sock 9.Parse request [09:44:48]Sock 9.Check first char [09:44:48]Sock 9.First char is OK [09:44:48]request: POST /json_proto HTTP/1.0 [09:44:48]Method: POST [09:44:48]URL: /json_proto [09:44:48]Method is POST - this is cgi request [09:44:48]url: /json_proto [09:44:48]query_string will be loaded in cgi processing [09:44:48]execute_cgi json_proto POST (null) [09:44:48]execute_cgi path=json_proto method=POST [09:44:48]POST find Content-Length [09:44:48]Host: 172.17.45.7:8080 [09:44:48]Content-Length: 674 [09:44:48]Content-Type: application/json [09:44:48] [09:44:48]POST finish read [09:44:48]Found Content-Length = 674 [09:44:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.450, "sum" : 720.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:48]execute_script... [09:44: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)949583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.450, "sum" : 720.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:48]POST & json_proto [09:44:48]process_json_proto [09:44:48]json parsed OK: [09:44:48]protocol is kg_v1.0 [09:44:48]action value=close_receipt [09:44:48]process_action close_receipt [09:44:48]cmd_close_receipt [09:44:48]MH_GetDate [09:44:48]Write to MH i2c: F0 00 00 F1 3E 1E [09:44:48]Write i2c OK [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: F0 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: F0 09 00 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: F0 09 00 F1 3E 00 95 64 A7 66 90 0F 3E 66 70 [09:44:48]GetLastDocTimeStamp 1722246218 [09:44:48]current date 1722246293 [09:44:48]FM_GetShiftState [09:44:48]SAM_PROTO_GetShiftState [09:44:48]wFMCommunicate request_size=4 [09:44:48]MH_SAM_APDU [09:44:48]CAPDU: 80 13 01 00 [09:44:48]Write to MH i2c: E2 08 00 F2 3E 80 13 01 00 00 00 00 00 AD [09:44:48]Write i2c OK [09:44:48]MH_I2C_Read... [09:44:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:48]Read from MH i2c: E2 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: E2 0E 00 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: E2 0E 00 F2 3E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 DB [09:44:48]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:44:48]wFMCommunicate OK [09:44:48]SAM_PROTO_GetShiftState done [09:44:48]FM_GetShiftState done [09:44:48]opened in 1722211641 [09:44:48]opened+sec_in_day 1722298041 [09:44:48]quantity*price = 72009 [09:44:48]sum+1 = 72010 [09:44:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.37 НДС 12% : 76.47 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 76 29.07.2024 09:44 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118700 ФПД: 223394721668044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T094453&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118700&fm=223394721668044&tin=02508201610067®Number=0000000000092660&sum=72000 [09:44:49]StoreToDocumentArchive [09:44:49]shift 434 fd 118700 [09:44:49]save to /storage/0434/doc_00118700 [09:44:49]save last doc name /storage/0434/doc_00118700 to /storage/kkm_last_doc_name [09:44:49]save OK [09:44:49]Clear old archive folders... [09:44:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:44:49]tlvbuf is 01EBD880 [09:44:49]SAM_PROTO_ClearQueue [09:44:49]wFMCommunicate request_size=4 [09:44:49]MH_SAM_APDU [09:44:49]CAPDU: 80 09 00 00 [09:44:49]Write to MH i2c: E2 08 00 FF 3E 80 09 00 00 00 00 00 00 AF [09:44:49]Write i2c OK [09:44:49]MH_I2C_Read... [09:44:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:49]Read from MH i2c: E2 [09:44:49]MH_I2C_Read... [09:44:49]Read from MH i2c: E2 03 00 [09:44:49]MH_I2C_Read... [09:44:49]Read from MH i2c: E2 03 00 FF 3E 00 90 00 B1 [09:44:49]RAPDU: 90 00 [09:44:49]wFMCommunicate OK [09:44:49]SAM_PROTO_ClearQueue done [09:44:49]KKMCreateOFDPacket [09:44:49]OFDProtocolAddRootSTLVToBuf [09:44:49]FM_MakeSignedData [09:44:49]FM_MakeSignedData [09:44:49]SAM_PROTO_SignData [09:44:49]wFMCommunicate request_size=4 [09:44:49]MH_SAM_APDU [09:44:49]CAPDU: 80 0D 01 02 [09:44:49]Write to MH i2c: E2 08 00 00 3F 80 0D 01 02 00 00 00 00 B8 [09:44:49]Write i2c OK [09:44:49]MH_I2C_Read... [09:44:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:49]Read from MH i2c: E2 [09:44:49]MH_I2C_Read... [09:44:49]Read from MH i2c: E2 03 00 [09:44:49]MH_I2C_Read... [09:44:49]Read from MH i2c: E2 03 00 00 3F 00 90 00 B3 [09:44:49]RAPDU: 90 00 [09:44:49]wFMCommunicate OK [09:44:49]wFMCommunicate request_size=255 [09:44:49]MH_SAM_APDU [09:44: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 24 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 95 64 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AC CF 01 00 35 04 06 00 CB 2D 23 07 [09:44:49]Write to MH i2c: E2 02 01 01 3F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 24 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 95 64 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AC CF 01 00 35 04 06 00 CB 2D 23 07 00 00 44 [09:44:49]Write i2c OK [09:44:49]MH_I2C_Read... [09:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:50]Read from MH i2c: E2 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: E2 03 00 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: E2 03 00 01 3F 00 90 00 B4 [09:44:50]RAPDU: 90 00 [09:44:50]wFMCommunicate OK [09:44:50]wFMCommunicate request_size=7 [09:44:50]MH_SAM_APDU [09:44:50]CAPDU: 80 0D 02 02 02 9B CC [09:44:50]Write to MH i2c: E2 0A 00 02 3F 80 0D 02 02 02 00 9B CC 00 00 26 [09:44:50]Write i2c OK [09:44:50]MH_I2C_Read... [09:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:50]Read from MH i2c: E2 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: E2 03 00 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: E2 03 00 02 3F 00 90 00 B5 [09:44:50]RAPDU: 90 00 [09:44:50]wFMCommunicate OK [09:44:50]wFMCommunicate request_size=4 [09:44:50]MH_SAM_APDU [09:44:50]CAPDU: 80 0D 03 02 [09:44:50]Write to MH i2c: E2 08 00 03 3F 80 0D 03 02 00 00 00 00 BD [09:44:50]Write i2c OK [09:44:50]MH_I2C_Read... [09:44:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:50]Read from MH i2c: E2 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: E2 0B 00 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: E2 0B 00 03 3F 00 61 88 A1 A5 5A CA B1 FA 90 00 BC [09:44:50]RAPDU: 61 88 A1 A5 5A CA B1 FA 90 00 [09:44:50]wFMCommunicate OK [09:44:50]SAM_PROTO_SignData done [09:44:50]FM_MakeSignedData done [09:44:50]CreateOFDProtocolMessage [09:44:50]wFMCommunicate request_size=4 [09:44:50]MH_SAM_APDU [09:44:50]CAPDU: 80 11 00 00 [09:44:50]Write to MH i2c: E2 08 00 04 3F 80 11 00 00 00 00 00 00 BD [09:44:50]Write i2c OK [09:44:50]MH_I2C_Read... [09:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:50]Read from MH i2c: E2 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: E2 17 00 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: E2 17 00 04 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 18 [09:44:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:44:50]wFMCommunicate OK [09:44:50]CreateOFDProtocolMessage done [09:44:50]OFDSenderStorePacket 118700 [09:44:50]StoreOFDPacket docnum=118700 [09:44:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 DF 69 04 01 E4 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 24 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 95 64 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AC CF 01 00 35 04 06 00 CB 2D 23 07 9B CC 61 88 A1 A5 5A CA B1 FA [09:44:50]CheckFolder [09:44:50]dirname=/storage/ofd_packets [09:44:50]CheckFolder done [09:44:50]ProducePacketName [09:44:50]name=ofd_packets/00118700 [09:44:50]NVStorageSaveData ofd_packets/00118700 [09:44:50]File name is /storage/ofd_packets/00118700 [09:44:50]Write 298 bytes [09:44:50]NVStorageSaveData done [09:44:50]OFDSenderStorePacket done [09:44:50]KKMCreateOFDPacket done [09:44:50]NVStorageSaveData kkm_last_timestamp [09:44:50]File name is /storage/kkm_last_timestamp [09:44:50]Write 4 bytes [09:44:50]NVStorageSaveData done [09:44:50]ExternCall_PrintAddStr [09:44:50]wPrintStart [09:44:50]Write to MH i2c: 01 00 00 05 3F 44 [09:44:50]Write i2c OK [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: 01 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: 01 07 00 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: 01 07 00 05 3F 00 00 00 00 00 FF 0F 59 [09:44:50]RasterBufferAndPrint [09:44:50]line Счет N : (1)949583 [09:44:50]line ИНН: 02508201610067 [09:44:50]line Контрольно-Кассовый Чек [09:44:50]line ПРОДАЖА [09:44:50]line ТРК (МРК, ГНК) : 21 [09:44:50]line Товар: 2710194800 [09:44:50]line ДТ-К-5 [09:44:50]line 9.450 * 76.20 [09:44:50]line = 720.09 [09:44:50]line НДС 12% НСП 1% [09:44:50]line > о реализуемом товаре [09:44:50]line ОКРУГЛЕНИЕ: -0.09 [09:44:50]line ИТОГО: 720.00 [09:44:50]line Внесено: 720.00 [09:44:50]line СДАЧА: 0.00 [09:44:50]line НСП 1% : 6.37 [09:44:50]line НДС 12% : 76.47 [09:44:50]line Наличными: 720.00 [09:44:50]line Безнал.: 0.00 [09:44:50]line Место: АЗС № 134 "Партнер Нефть" [09:44:50]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:44:50]line СНО: Общий режим [09:44:50]line Чек 76 29.07.2024 09:44 [09:44:50]line Смена: 434 ФФД: 1.0 [09:44:50]line ЗНМ: 0300000044 [09:44:50]line РНМ: 0000000000092660 [09:44:50]line Версия ККМ: 001 [09:44:50]line ФМ: 0000000000874939 [09:44:50]line ФД: 118700 [09:44:50]line ФПД: 223394721668044 [09:44:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T094453&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118700&fm=223394721668044&tin=02508201610067®Number=0000000000092660&sum=72000 [09:44:50]OFD Sender: Processing packet 118700 [packets to send 86, broken 85] [09:44:50]ProducePacketName [09:44:50]name=ofd_packets/00118700 [09:44:50]OFD Sender: To server: pG, [09:44:50]CommunicateWithHost lk.salyk.kg:30040 [09:44:50]ConnectInit lk.salyk.kg [09:44:50]written 0, free lines is 4095 [09:44:50]Connected sock=10 [09:44:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 DF 69 04 01 E4 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 24 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 95 64 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AC CF 01 00 35 04 06 00 CB 2D 23 07 9B CC 61 88 A1 A5 5A CA B1 FA [09:44:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 76 9C 47 00 AB E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AC CF 01 00 F4 03 04 00 23 12 A7 66 B6 04 01 00 00 04 8D 54 48 AF 82 3A 14 [09:44:50]CommunicateWithHost err = 0 [09:44:50]CheckOFDResponse [09:44:50]1017 (14) - 77093643461234 [09:44:50]1041 (16) - 0000000000874939 [09:44:50]1040 (4) - 118700 [09:44:50]1012 (4) - 29.07.2024 03:53 [09:44:50]1206 (1) - 0 [09:44:50]OFD Sender: Remove packet 118700 [09:44:50]ProducePacketName [09:44:50]name=ofd_packets/00118700 [09:44:50]NVStorageDeleteData [09:44:51]Write to MH i2c: 01 00 00 2F 3F 6E [09:44:51]Write i2c OK [09:44:51]MH_I2C_Read... [09:44:51]Read from MH i2c: 01 [09:44:51]MH_I2C_Read... [09:44:51]Read from MH i2c: 01 07 00 [09:44:51]MH_I2C_Read... [09:44:51]Read from MH i2c: 01 07 00 2F 3F 00 00 00 00 00 E3 0C 64 [09:44:51]RasterBufferAndPrint [09:44:51]line [09:44:51]line [09:44:51]line [09:44:51]line [09:44:51]line [09:44:51]written 0, free lines is 3305 [09:44:51]MH_Cut [09:44:51]Write to MH i2c: D1 01 00 36 3F 01 47 [09:44:51]Write i2c OK [09:44:51]MH_I2C_Read... [09:44:51]Read from MH i2c: D1 [09:44:51]MH_I2C_Read... [09:44:51]Read from MH i2c: D1 01 00 [09:44:51]MH_I2C_Read... [09:44:51]Read from MH i2c: D1 01 00 36 3F 00 46 [09:44:51]Write to MH i2c: 01 00 00 37 3F 76 [09:44:51]Write i2c OK [09:44:51]MH_I2C_Read... [09:44:51]OFD Sender: No OFD packet to send [09:44:51]*** Cut start [09:44:51]*** Partial cut [09:44:51]*** CUTSNS_PIN = 1 [09:44:51]*** CUTSNS_PIN = 0 [09:44:52]*** Brake cut motor [09:44:52]Read from MH i2c: 01 [09:44:52]MH_I2C_Read... [09:44:52]*** Stop cut motor [09:44:52]*** Cut end [09:44:52]Read from MH i2c: 01 07 00 [09:44:52]MH_I2C_Read... [09:44:52]Read from MH i2c: 01 07 00 37 3F 00 00 00 00 00 FF 0F 8B [09:44:52]process_action close_receipt done [09:44:52]requested_data is exist [09:44:52]produce_requested_data [09:44:52]requested_item fm.sn is exist - process it [09:44:52]wFMCommunicate request_size=4 [09:44:52]MH_SAM_APDU [09:44:52]CAPDU: 80 11 00 00 [09:44:52]Write to MH i2c: E2 08 00 38 3F 80 11 00 00 00 00 00 00 F1 [09:44:52]Write i2c OK [09:44:52]MH_I2C_Read... [09:44:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:52]Read from MH i2c: E2 [09:44:52]MH_I2C_Read... [09:44:52]Read from MH i2c: E2 17 00 [09:44:52]MH_I2C_Read... [09:44:52]Read from MH i2c: E2 17 00 38 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4C [09:44:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:44:52]wFMCommunicate OK [09:44:52]requested_item fd.num is exist - process it [09:44:52]SAM_PROTO_GetFieldsCounters [09:44:52]wFMCommunicate request_size=4 [09:44:52]MH_SAM_APDU [09:44:52]CAPDU: 80 13 00 00 [09:44:52]Write to MH i2c: E2 08 00 39 3F 80 13 00 00 00 00 00 00 F4 [09:44:52]Write i2c OK [09:44:52]MH_I2C_Read... [09:44:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:52]Read from MH i2c: E2 [09:44:52]MH_I2C_Read... [09:44:52]Read from MH i2c: E2 62 00 [09:44:52]MH_I2C_Read... [09:44:52]Read from MH i2c: E2 62 00 39 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AC CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [09:44: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AC CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:52]wFMCommunicate OK [09:44:52]SAM_PROTO_GetFieldsCounters done [09:44:52]requested_item shift.num is exist - process it [09:44:52]requested_item shift.opened is exist - process it [09:44:52]req_shift_opened [09:44:52]FM_GetShiftState [09:44:52]SAM_PROTO_GetShiftState [09:44:52]wFMCommunicate request_size=4 [09:44:52]MH_SAM_APDU [09:44:52]CAPDU: 80 13 01 00 [09:44:52]Write to MH i2c: E2 08 00 3A 3F 80 13 01 00 00 00 00 00 F6 [09:44:52]Write i2c OK [09:44:52]MH_I2C_Read... [09:44:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:52]Read from MH i2c: E2 [09:44:52]MH_I2C_Read... [09:44:52]Read from MH i2c: E2 0E 00 [09:44:52]MH_I2C_Read... [09:44:52]Read from MH i2c: E2 0E 00 3A 3F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 24 [09:44:52]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:44:52]wFMCommunicate OK [09:44:52]SAM_PROTO_GetShiftState done [09:44:52]FM_GetShiftState done [09:44:52]req_shift_opened done [09:44:52]requested_item shift.open_date is exist - process it [09:44:52]req_shift_open_date [09:44:52]req_shift_open_date done [09:44:52]produce_requested_data done [09:44:52]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118700,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:44:52]process_action_free close_receipt [09:44:52]json_value_free [09:44:52]json_value_free done [09:44:52]process_json_proto returns [09:44:52]Send response to host [09:44:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118700,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:44:52]free response buf [09:44:52]execute_script done [09:44:52]execute_script returns [09:44:52]free content buf [09:44:52]Sock 9.Close socket [09:44:52]Sock 9.Thread stoped [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:24]accept exits with 7 [09:45:24]New connection [09:45:24]New thread 3067239780 created [09:45:24]Thread 3067383140 joined [09:45:24]Waiting for new connection... [09:45:24] Sock 7.Parse request [09:45:24]Sock 7.Check first char [09:45:24]Sock 7.First char is OK [09:45:24]request: POST /json_proto HTTP/1.0 [09:45:24]Method: POST [09:45:24]URL: /json_proto [09:45:24]Method is POST - this is cgi request [09:45:24]url: /json_proto [09:45:24]query_string will be loaded in cgi processing [09:45:24]execute_cgi json_proto POST (null) [09:45:24]execute_cgi path=json_proto method=POST [09:45:24]POST find Content-Length [09:45:24]Host: 172.17.45.7:8080 [09:45:24]Content-Length: 679 [09:45:24]Content-Type: application/json [09:45:24] [09:45:24]POST finish read [09:45:24]Found Content-Length = 679 [09:45:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:24]execute_script... [09:45: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)949584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:24]POST & json_proto [09:45:24]process_json_proto [09:45:24]json parsed OK: [09:45:24]protocol is kg_v1.0 [09:45:24]action value=close_receipt [09:45:24]process_action close_receipt [09:45:24]cmd_close_receipt [09:45:24]MH_GetDate [09:45:24]Write to MH i2c: F0 00 00 3B 3F 69 [09:45:24]Write i2c OK [09:45:24]MH_I2C_Read... [09:45:24]Read from MH i2c: F0 [09:45:24]MH_I2C_Read... [09:45:24]Read from MH i2c: F0 09 00 [09:45:24]MH_I2C_Read... [09:45:24]Read from MH i2c: F0 09 00 3B 3F 00 B9 64 A7 66 90 0F 3E 66 DF [09:45:24]GetLastDocTimeStamp 1722246293 [09:45:24]current date 1722246329 [09:45:24]FM_GetShiftState [09:45:24]SAM_PROTO_GetShiftState [09:45:24]wFMCommunicate request_size=4 [09:45:24]MH_SAM_APDU [09:45:24]CAPDU: 80 13 01 00 [09:45:24]Write to MH i2c: E2 08 00 3C 3F 80 13 01 00 00 00 00 00 F8 [09:45:24]Write i2c OK [09:45:24]MH_I2C_Read... [09:45:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:24]Read from MH i2c: E2 [09:45:24]MH_I2C_Read... [09:45:24]Read from MH i2c: E2 0E 00 [09:45:24]MH_I2C_Read... [09:45:24]Read from MH i2c: E2 0E 00 3C 3F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 26 [09:45:24]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:45:24]wFMCommunicate OK [09:45:24]SAM_PROTO_GetShiftState done [09:45:24]FM_GetShiftState done [09:45:24]opened in 1722211641 [09:45:24]opened+sec_in_day 1722298041 [09:45:24]quantity*price = 100050 [09:45:24]sum+1 = 100052 [09:45:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 77 29.07.2024 09:45 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118701 ФПД: 247044799546997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T094529&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118701&fm=247044799546997&tin=02508201610067®Number=0000000000092660&sum=100000 [09:45:25]StoreToDocumentArchive [09:45:25]shift 434 fd 118701 [09:45:25]save to /storage/0434/doc_00118701 [09:45:25]save last doc name /storage/0434/doc_00118701 to /storage/kkm_last_doc_name [09:45:25]save OK [09:45:25]Clear old archive folders... [09:45:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:45:25]tlvbuf is 01E70470 [09:45:25]SAM_PROTO_ClearQueue [09:45:25]wFMCommunicate request_size=4 [09:45:25]MH_SAM_APDU [09:45:25]CAPDU: 80 09 00 00 [09:45:25]Write to MH i2c: E2 08 00 49 3F 80 09 00 00 00 00 00 00 FA [09:45:25]Write i2c OK [09:45:25]MH_I2C_Read... [09:45:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:25]Read from MH i2c: E2 [09:45:25]MH_I2C_Read... [09:45:25]Read from MH i2c: E2 03 00 [09:45:25]MH_I2C_Read... [09:45:25]Read from MH i2c: E2 03 00 49 3F 00 90 00 FC [09:45:25]RAPDU: 90 00 [09:45:25]wFMCommunicate OK [09:45:25]SAM_PROTO_ClearQueue done [09:45:25]KKMCreateOFDPacket [09:45:25]OFDProtocolAddRootSTLVToBuf [09:45:25]FM_MakeSignedData [09:45:25]FM_MakeSignedData [09:45:25]SAM_PROTO_SignData [09:45:25]wFMCommunicate request_size=4 [09:45:25]MH_SAM_APDU [09:45:25]CAPDU: 80 0D 01 02 [09:45:25]Write to MH i2c: E2 08 00 4A 3F 80 0D 01 02 00 00 00 00 02 [09:45:25]Write i2c OK [09:45:25]MH_I2C_Read... [09:45:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:26]Read from MH i2c: E2 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 03 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 03 00 4A 3F 00 90 00 FD [09:45:26]RAPDU: 90 00 [09:45:26]wFMCommunicate OK [09:45:26]wFMCommunicate request_size=255 [09:45:26]MH_SAM_APDU [09:45:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B9 64 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AD CF 01 00 35 04 06 00 E0 AF 99 85 [09:45:26]Write to MH i2c: E2 02 01 4B 3F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B9 64 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AD CF 01 00 35 04 06 00 E0 AF 99 85 00 00 E6 [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:26]Read from MH i2c: E2 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 03 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 03 00 4B 3F 00 90 00 FE [09:45:26]RAPDU: 90 00 [09:45:26]wFMCommunicate OK [09:45:26]wFMCommunicate request_size=7 [09:45:26]MH_SAM_APDU [09:45:26]CAPDU: 80 0D 02 02 02 46 75 [09:45:26]Write to MH i2c: E2 0A 00 4C 3F 80 0D 02 02 02 00 46 75 00 00 C4 [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:26]Read from MH i2c: E2 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 03 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 03 00 4C 3F 00 90 00 FF [09:45:26]RAPDU: 90 00 [09:45:26]wFMCommunicate OK [09:45:26]wFMCommunicate request_size=4 [09:45:26]MH_SAM_APDU [09:45:26]CAPDU: 80 0D 03 02 [09:45:26]Write to MH i2c: E2 08 00 4D 3F 80 0D 03 02 00 00 00 00 07 [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:26]Read from MH i2c: E2 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 0B 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 0B 00 4D 3F 00 21 9B D5 D3 E9 1E C2 64 90 00 99 [09:45:26]RAPDU: 21 9B D5 D3 E9 1E C2 64 90 00 [09:45:26]wFMCommunicate OK [09:45:26]SAM_PROTO_SignData done [09:45:26]FM_MakeSignedData done [09:45:26]CreateOFDProtocolMessage [09:45:26]wFMCommunicate request_size=4 [09:45:26]MH_SAM_APDU [09:45:26]CAPDU: 80 11 00 00 [09:45:26]Write to MH i2c: E2 08 00 4E 3F 80 11 00 00 00 00 00 00 07 [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:26]Read from MH i2c: E2 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 17 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: E2 17 00 4E 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 62 [09:45:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:45:26]wFMCommunicate OK [09:45:26]CreateOFDProtocolMessage done [09:45:26]OFDSenderStorePacket 118701 [09:45:26]StoreOFDPacket docnum=118701 [09:45:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 51 A3 04 01 30 CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B9 64 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AD CF 01 00 35 04 06 00 E0 AF 99 85 46 75 21 9B D5 D3 E9 1E C2 64 [09:45:26]CheckFolder [09:45:26]dirname=/storage/ofd_packets [09:45:26]CheckFolder done [09:45:26]ProducePacketName [09:45:26]name=ofd_packets/00118701 [09:45:26]NVStorageSaveData ofd_packets/00118701 [09:45:26]File name is /storage/ofd_packets/00118701 [09:45:26]Write 298 bytes [09:45:26]NVStorageSaveData done [09:45:26]OFDSenderStorePacket done [09:45:26]KKMCreateOFDPacket done [09:45:26]NVStorageSaveData kkm_last_timestamp [09:45:26]File name is /storage/kkm_last_timestamp [09:45:26]Write 4 bytes [09:45:26]NVStorageSaveData done [09:45:26]ExternCall_PrintAddStr [09:45:26]wPrintStart [09:45:26]Write to MH i2c: 01 00 00 4F 3F 8E [09:45:26]Write i2c OK [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: 01 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: 01 07 00 [09:45:26]MH_I2C_Read... [09:45:26]Read from MH i2c: 01 07 00 4F 3F 00 00 00 00 00 FF 0F A3 [09:45:26]RasterBufferAndPrint [09:45:26]line Счет N : (1)949584 [09:45:26]line ИНН: 02508201610067 [09:45:26]line Контрольно-Кассовый Чек [09:45:26]line ПРОДАЖА [09:45:26]line ТРК (МРК, ГНК) : 11 [09:45:26]line Товар: 2710194800 [09:45:26]line ДТ-К-5 [09:45:26]line 13.130 * 76.20 [09:45:26]line = 1000.51 [09:45:26]line НДС 12% НСП 1% [09:45:26]line > о реализуемом товаре [09:45:26]line ОКРУГЛЕНИЕ: -0.51 [09:45:26]line ИТОГО: 1000.00 [09:45:26]line Внесено: 1000.00 [09:45:26]line СДАЧА: 0.00 [09:45:26]line НСП 1% : 8.85 [09:45:26]line НДС 12% : 106.25 [09:45:26]line Наличными: 1000.00 [09:45:26]line Безнал.: 0.00 [09:45:26]line Место: АЗС № 134 "Партнер Нефть" [09:45:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:45:26]line СНО: Общий режим [09:45:26]line Чек 77 29.07.2024 09:45 [09:45:26]line Смена: 434 ФФД: 1.0 [09:45:26]line ЗНМ: 0300000044 [09:45:26]line РНМ: 0000000000092660 [09:45:26]line Версия ККМ: 001 [09:45:26]line ФМ: 0000000000874939 [09:45:26]line ФД: 118701 [09:45:26]line ФПД: 247044799546997 [09:45:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T094529&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118701&fm=247044799546997&tin=02508201610067®Number=0000000000092660&sum=100000 [09:45:26]OFD Sender: Processing packet 118701 [packets to send 86, broken 85] [09:45:26]ProducePacketName [09:45:26]name=ofd_packets/00118701 [09:45:26]OFD Sender: To server: pG, [09:45:26]CommunicateWithHost lk.salyk.kg:30040 [09:45:26]ConnectInit lk.salyk.kg [09:45:26]written 0, free lines is 4095 [09:45:26]Connected sock=10 [09:45:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 51 A3 04 01 30 CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B9 64 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AD CF 01 00 35 04 06 00 E0 AF 99 85 46 75 21 9B D5 D3 E9 1E C2 64 [09:45:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7E 38 47 00 D4 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AD CF 01 00 F4 03 04 00 47 12 A7 66 B6 04 01 00 00 FF 7F CD 24 32 3D 94 79 [09:45:27]CommunicateWithHost err = 0 [09:45:27]CheckOFDResponse [09:45:27]1017 (14) - 77093643461234 [09:45:27]1041 (16) - 0000000000874939 [09:45:27]1040 (4) - 118701 [09:45:27]1012 (4) - 29.07.2024 03:53 [09:45:27]1206 (1) - 0 [09:45:27]OFD Sender: Remove packet 118701 [09:45:27]ProducePacketName [09:45:27]name=ofd_packets/00118701 [09:45:27]NVStorageDeleteData [09:45:27]Write to MH i2c: 01 00 00 79 3F B8 [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: 01 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: 01 07 00 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: 01 07 00 79 3F 00 00 00 00 00 EC 0C B7 [09:45:27]RasterBufferAndPrint [09:45:27]line [09:45:27]line [09:45:27]line [09:45:27]line [09:45:27]line [09:45:27]written 0, free lines is 3317 [09:45:27]MH_Cut [09:45:27]Write to MH i2c: D1 01 00 80 3F 01 91 [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: D1 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: D1 01 00 [09:45:27]MH_I2C_Read... [09:45:27]Read from MH i2c: D1 01 00 80 3F 00 90 [09:45:27]Write to MH i2c: 01 00 00 81 3F C0 [09:45:27]Write i2c OK [09:45:27]MH_I2C_Read... [09:45:27]OFD Sender: No OFD packet to send [09:45:27]*** Cut start [09:45:27]*** Partial cut [09:45:27]*** CUTSNS_PIN = 1 [09:45:27]*** CUTSNS_PIN = 0 [09:45:28]*** Brake cut motor [09:45:28]Read from MH i2c: 01 [09:45:28]MH_I2C_Read... [09:45:28]*** Stop cut motor [09:45:28]*** Cut end [09:45:28]Read from MH i2c: 01 07 00 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: 01 07 00 81 3F 00 00 00 00 00 FF 0F D5 [09:45:28]process_action close_receipt done [09:45:28]requested_data is exist [09:45:28]produce_requested_data [09:45:28]requested_item fm.sn is exist - process it [09:45:28]wFMCommunicate request_size=4 [09:45:28]MH_SAM_APDU [09:45:28]CAPDU: 80 11 00 00 [09:45:28]Write to MH i2c: E2 08 00 82 3F 80 11 00 00 00 00 00 00 3B [09:45:28]Write i2c OK [09:45:28]MH_I2C_Read... [09:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:28]Read from MH i2c: E2 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 17 00 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 17 00 82 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 96 [09:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:45:28]wFMCommunicate OK [09:45:28]requested_item fd.num is exist - process it [09:45:28]SAM_PROTO_GetFieldsCounters [09:45:28]wFMCommunicate request_size=4 [09:45:28]MH_SAM_APDU [09:45:28]CAPDU: 80 13 00 00 [09:45:28]Write to MH i2c: E2 08 00 83 3F 80 13 00 00 00 00 00 00 3E [09:45:28]Write i2c OK [09:45:28]MH_I2C_Read... [09:45:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:28]Read from MH i2c: E2 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 62 00 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 62 00 83 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AD CF 01 00 0E 04 04 00 B2 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 7C [09:45: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AD CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:28]wFMCommunicate OK [09:45:28]SAM_PROTO_GetFieldsCounters done [09:45:28]requested_item shift.num is exist - process it [09:45:28]requested_item shift.opened is exist - process it [09:45:28]req_shift_opened [09:45:28]FM_GetShiftState [09:45:28]SAM_PROTO_GetShiftState [09:45:28]wFMCommunicate request_size=4 [09:45:28]MH_SAM_APDU [09:45:28]CAPDU: 80 13 01 00 [09:45:28]Write to MH i2c: E2 08 00 84 3F 80 13 01 00 00 00 00 00 40 [09:45:28]Write i2c OK [09:45:28]MH_I2C_Read... [09:45:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:28]Read from MH i2c: E2 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 0E 00 [09:45:28]MH_I2C_Read... [09:45:28]Read from MH i2c: E2 0E 00 84 3F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 6E [09:45:28]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:45:28]wFMCommunicate OK [09:45:28]SAM_PROTO_GetShiftState done [09:45:28]FM_GetShiftState done [09:45:28]req_shift_opened done [09:45:28]requested_item shift.open_date is exist - process it [09:45:28]req_shift_open_date [09:45:28]req_shift_open_date done [09:45:28]produce_requested_data done [09:45:28]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118701,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:45:28]process_action_free close_receipt [09:45:28]json_value_free [09:45:28]json_value_free done [09:45:28]process_json_proto returns [09:45:28]Send response to host [09:45:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118701,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:45:28]free response buf [09:45:28]execute_script done [09:45:28]execute_script returns [09:45:28]free content buf [09:45:28]Sock 7.Close socket [09:45:28]Sock 7.Thread stoped [09:45:32]OFD Sender: No OFD packet to send [09:45:37]OFD Sender: No OFD packet to send [09:45:42]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [09:47:11]accept exits with 9 [09:47:11]New connection [09:47:11]New thread 3067383140 created [09:47:11]Thread 3067239780 joined [09:47:11]Waiting for new connection... [09:47:11] Sock 9.Parse request [09:47:11]Sock 9.Check first char [09:47:11]Sock 9.First char is OK [09:47:11]request: POST /json_proto HTTP/1.0 [09:47:11]Method: POST [09:47:11]URL: /json_proto [09:47:11]Method is POST - this is cgi request [09:47:11]url: /json_proto [09:47:11]query_string will be loaded in cgi processing [09:47:11]execute_cgi json_proto POST (null) [09:47:11]execute_cgi path=json_proto method=POST [09:47:11]POST find Content-Length [09:47:11]Host: 172.17.45.7:8080 [09:47:11]Content-Length: 679 [09:47:11]Content-Type: application/json [09:47:11] [09:47:11]POST finish read [09:47:11]Found Content-Length = 679 [09:47:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:11]execute_script... [09:47:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:11]POST & json_proto [09:47:11]process_json_proto [09:47:11]json parsed OK: [09:47:11]protocol is kg_v1.0 [09:47:11]action value=close_receipt [09:47:11]process_action close_receipt [09:47:11]cmd_close_receipt [09:47:11]MH_GetDate [09:47:11]Write to MH i2c: F0 00 00 85 3F B3 [09:47:11]Write i2c OK [09:47:11]MH_I2C_Read... [09:47:11]Read from MH i2c: F0 [09:47:11]MH_I2C_Read... [09:47:11]Read from MH i2c: F0 09 00 [09:47:11]MH_I2C_Read... [09:47:11]Read from MH i2c: F0 09 00 85 3F 00 24 65 A7 66 90 0F 3E 66 95 [09:47:11]GetLastDocTimeStamp 1722246329 [09:47:11]current date 1722246436 [09:47:11]FM_GetShiftState [09:47:11]SAM_PROTO_GetShiftState [09:47:11]wFMCommunicate request_size=4 [09:47:11]MH_SAM_APDU [09:47:11]CAPDU: 80 13 01 00 [09:47:11]Write to MH i2c: E2 08 00 86 3F 80 13 01 00 00 00 00 00 42 [09:47:11]Write i2c OK [09:47:11]MH_I2C_Read... [09:47:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:11]Read from MH i2c: E2 [09:47:11]MH_I2C_Read... [09:47:11]Read from MH i2c: E2 0E 00 [09:47:11]MH_I2C_Read... [09:47:11]Read from MH i2c: E2 0E 00 86 3F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 70 [09:47:11]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:47:11]wFMCommunicate OK [09:47:11]SAM_PROTO_GetShiftState done [09:47:11]FM_GetShiftState done [09:47:11]opened in 1722211641 [09:47:11]opened+sec_in_day 1722298041 [09:47:11]quantity*price = 100050 [09:47:11]sum+1 = 100052 [09:47:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 78 29.07.2024 09:47 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118702 ФПД: 213515529073538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T094716&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118702&fm=213515529073538&tin=02508201610067®Number=0000000000092660&sum=100000 [09:47:12]StoreToDocumentArchive [09:47:12]shift 434 fd 118702 [09:47:12]save to /storage/0434/doc_00118702 [09:47:12]save last doc name /storage/0434/doc_00118702 to /storage/kkm_last_doc_name [09:47:12]save OK [09:47:12]Clear old archive folders... [09:47:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:47:12]tlvbuf is 01E591C0 [09:47:12]SAM_PROTO_ClearQueue [09:47:12]wFMCommunicate request_size=4 [09:47:12]MH_SAM_APDU [09:47:12]CAPDU: 80 09 00 00 [09:47:12]Write to MH i2c: E2 08 00 93 3F 80 09 00 00 00 00 00 00 44 [09:47:12]Write i2c OK [09:47:12]MH_I2C_Read... [09:47:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:12]Read from MH i2c: E2 [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: E2 03 00 [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: E2 03 00 93 3F 00 90 00 46 [09:47:12]RAPDU: 90 00 [09:47:12]wFMCommunicate OK [09:47:12]SAM_PROTO_ClearQueue done [09:47:12]KKMCreateOFDPacket [09:47:12]OFDProtocolAddRootSTLVToBuf [09:47:12]FM_MakeSignedData [09:47:12]FM_MakeSignedData [09:47:12]SAM_PROTO_SignData [09:47:12]wFMCommunicate request_size=4 [09:47:12]MH_SAM_APDU [09:47:12]CAPDU: 80 0D 01 02 [09:47:12]Write to MH i2c: E2 08 00 94 3F 80 0D 01 02 00 00 00 00 4C [09:47:12]Write i2c OK [09:47:12]MH_I2C_Read... [09:47:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:12]Read from MH i2c: E2 [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: E2 03 00 [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: E2 03 00 94 3F 00 90 00 47 [09:47:12]RAPDU: 90 00 [09:47:12]wFMCommunicate OK [09:47:12]wFMCommunicate request_size=255 [09:47:12]MH_SAM_APDU [09:47:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 24 65 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AE CF 01 00 35 04 06 00 C2 30 F5 43 [09:47:12]Write to MH i2c: E2 02 01 95 3F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 24 65 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AE CF 01 00 35 04 06 00 C2 30 F5 43 00 00 1B [09:47:12]Write i2c OK [09:47:12]MH_I2C_Read... [09:47:12]OFD Sender: No OFD packet to send [09:47:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:12]Read from MH i2c: E2 [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: E2 03 00 [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: E2 03 00 95 3F 00 90 00 48 [09:47:12]RAPDU: 90 00 [09:47:12]wFMCommunicate OK [09:47:12]wFMCommunicate request_size=7 [09:47:12]MH_SAM_APDU [09:47:12]CAPDU: 80 0D 02 02 02 B3 82 [09:47:12]Write to MH i2c: E2 0A 00 96 3F 80 0D 02 02 02 00 B3 82 00 00 88 [09:47:12]Write i2c OK [09:47:12]MH_I2C_Read... [09:47:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:12]Read from MH i2c: E2 [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: E2 03 00 [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: E2 03 00 96 3F 00 90 00 49 [09:47:12]RAPDU: 90 00 [09:47:12]wFMCommunicate OK [09:47:12]wFMCommunicate request_size=4 [09:47:12]MH_SAM_APDU [09:47:12]CAPDU: 80 0D 03 02 [09:47:12]Write to MH i2c: E2 08 00 97 3F 80 0D 03 02 00 00 00 00 51 [09:47:12]Write i2c OK [09:47:12]MH_I2C_Read... [09:47:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:12]Read from MH i2c: E2 [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: E2 0B 00 [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: E2 0B 00 97 3F 00 81 C0 62 B3 C5 4C 76 76 90 00 A5 [09:47:12]RAPDU: 81 C0 62 B3 C5 4C 76 76 90 00 [09:47:12]wFMCommunicate OK [09:47:12]SAM_PROTO_SignData done [09:47:12]FM_MakeSignedData done [09:47:12]CreateOFDProtocolMessage [09:47:12]wFMCommunicate request_size=4 [09:47:12]MH_SAM_APDU [09:47:12]CAPDU: 80 11 00 00 [09:47:12]Write to MH i2c: E2 08 00 98 3F 80 11 00 00 00 00 00 00 51 [09:47:12]Write i2c OK [09:47:12]MH_I2C_Read... [09:47:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:12]Read from MH i2c: E2 [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: E2 17 00 [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: E2 17 00 98 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AC [09:47:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:47:12]wFMCommunicate OK [09:47:12]CreateOFDProtocolMessage done [09:47:12]OFDSenderStorePacket 118702 [09:47:12]StoreOFDPacket docnum=118702 [09:47:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 01 0F 04 01 7B 2B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 24 65 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AE CF 01 00 35 04 06 00 C2 30 F5 43 B3 82 81 C0 62 B3 C5 4C 76 76 [09:47:12]CheckFolder [09:47:12]dirname=/storage/ofd_packets [09:47:12]CheckFolder done [09:47:12]ProducePacketName [09:47:12]name=ofd_packets/00118702 [09:47:12]NVStorageSaveData ofd_packets/00118702 [09:47:12]File name is /storage/ofd_packets/00118702 [09:47:12]Write 298 bytes [09:47:12]NVStorageSaveData done [09:47:12]OFDSenderStorePacket done [09:47:12]KKMCreateOFDPacket done [09:47:12]NVStorageSaveData kkm_last_timestamp [09:47:12]File name is /storage/kkm_last_timestamp [09:47:12]Write 4 bytes [09:47:12]NVStorageSaveData done [09:47:12]ExternCall_PrintAddStr [09:47:12]wPrintStart [09:47:12]Write to MH i2c: 01 00 00 99 3F D8 [09:47:12]Write i2c OK [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: 01 [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: 01 07 00 [09:47:12]MH_I2C_Read... [09:47:12]Read from MH i2c: 01 07 00 99 3F 00 00 00 00 00 FF 0F ED [09:47:12]RasterBufferAndPrint [09:47:12]line Счет N : (1)949585 [09:47:12]line ИНН: 02508201610067 [09:47:12]line Контрольно-Кассовый Чек [09:47:12]line ПРОДАЖА [09:47:12]line ТРК (МРК, ГНК) : 44 [09:47:12]line Товар: 2710194800 [09:47:12]line ДТ-К-5 [09:47:12]line 13.130 * 76.20 [09:47:12]line = 1000.51 [09:47:12]line НДС 12% НСП 1% [09:47:12]line > о реализуемом товаре [09:47:12]line ОКРУГЛЕНИЕ: -0.51 [09:47:12]line ИТОГО: 1000.00 [09:47:12]line Внесено: 1000.00 [09:47:12]line СДАЧА: 0.00 [09:47:12]line НСП 1% : 8.85 [09:47:12]line НДС 12% : 106.25 [09:47:12]line Наличными: 1000.00 [09:47:12]line Безнал.: 0.00 [09:47:12]line Место: АЗС № 134 "Партнер Нефть" [09:47:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:47:12]line СНО: Общий режим [09:47:12]line Чек 78 29.07.2024 09:47 [09:47:12]line Смена: 434 ФФД: 1.0 [09:47:12]line ЗНМ: 0300000044 [09:47:12]line РНМ: 0000000000092660 [09:47:12]line Версия ККМ: 001 [09:47:12]line ФМ: 0000000000874939 [09:47:12]line ФД: 118702 [09:47:12]line ФПД: 213515529073538 [09:47:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T094716&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118702&fm=213515529073538&tin=02508201610067®Number=0000000000092660&sum=100000 [09:47:13]OFD Sender: Processing packet 118702 [packets to send 86, broken 85] [09:47:13]ProducePacketName [09:47:13]name=ofd_packets/00118702 [09:47:13]OFD Sender: To server: pG, [09:47:13]CommunicateWithHost lk.salyk.kg:30040 [09:47:13]ConnectInit lk.salyk.kg [09:47:13]written 0, free lines is 4095 [09:47:13]Connected sock=6 [09:47:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 01 0F 04 01 7B 2B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 24 65 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AE CF 01 00 35 04 06 00 C2 30 F5 43 B3 82 81 C0 62 B3 C5 4C 76 76 [09:47:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 57 DD 47 00 81 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AE CF 01 00 F4 03 04 00 B2 12 A7 66 B6 04 01 00 00 5E D8 07 40 B4 7B 2B D9 [09:47:13]CommunicateWithHost err = 0 [09:47:13]CheckOFDResponse [09:47:13]1017 (14) - 77093643461234 [09:47:13]1041 (16) - 0000000000874939 [09:47:13]1040 (4) - 118702 [09:47:13]1012 (4) - 29.07.2024 03:55 [09:47:13]1206 (1) - 0 [09:47:13]OFD Sender: Remove packet 118702 [09:47:13]ProducePacketName [09:47:13]name=ofd_packets/00118702 [09:47:13]NVStorageDeleteData [09:47:13]Write to MH i2c: 01 00 00 C3 3F 02 [09:47:13]Write i2c OK [09:47:13]MH_I2C_Read... [09:47:13]Read from MH i2c: 01 [09:47:13]MH_I2C_Read... [09:47:13]Read from MH i2c: 01 07 00 [09:47:13]MH_I2C_Read... [09:47:13]Read from MH i2c: 01 07 00 C3 3F 00 00 00 00 00 06 0D 1C [09:47:13]RasterBufferAndPrint [09:47:13]line [09:47:13]line [09:47:13]line [09:47:13]line [09:47:13]line [09:47:13]written 0, free lines is 3340 [09:47:13]MH_Cut [09:47:13]Write to MH i2c: D1 01 00 CA 3F 01 DB [09:47:13]Write i2c OK [09:47:13]MH_I2C_Read... [09:47:13]Read from MH i2c: D1 [09:47:13]MH_I2C_Read... [09:47:13]Read from MH i2c: D1 01 00 [09:47:13]MH_I2C_Read... [09:47:13]Read from MH i2c: D1 01 00 CA 3F 00 DA [09:47:13]Write to MH i2c: 01 00 00 CB 3F 0A [09:47:13]Write i2c OK [09:47:13]MH_I2C_Read... [09:47:14]OFD Sender: No OFD packet to send [09:47:14]*** Cut start [09:47:14]*** Partial cut [09:47:14]*** CUTSNS_PIN = 1 [09:47:14]*** CUTSNS_PIN = 0 [09:47:14]*** Brake cut motor [09:47:14]Read from MH i2c: 01 [09:47:14]MH_I2C_Read... [09:47:14]*** Stop cut motor [09:47:14]*** Cut end [09:47:14]Read from MH i2c: 01 07 00 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: 01 07 00 CB 3F 00 00 00 00 00 FF 0F 1F [09:47:14]process_action close_receipt done [09:47:14]requested_data is exist [09:47:14]produce_requested_data [09:47:14]requested_item fm.sn is exist - process it [09:47:14]wFMCommunicate request_size=4 [09:47:14]MH_SAM_APDU [09:47:14]CAPDU: 80 11 00 00 [09:47:14]Write to MH i2c: E2 08 00 CC 3F 80 11 00 00 00 00 00 00 85 [09:47:14]Write i2c OK [09:47:14]MH_I2C_Read... [09:47:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:15]Read from MH i2c: E2 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: E2 17 00 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: E2 17 00 CC 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E0 [09:47:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:47:15]wFMCommunicate OK [09:47:15]requested_item fd.num is exist - process it [09:47:15]SAM_PROTO_GetFieldsCounters [09:47:15]wFMCommunicate request_size=4 [09:47:15]MH_SAM_APDU [09:47:15]CAPDU: 80 13 00 00 [09:47:15]Write to MH i2c: E2 08 00 CD 3F 80 13 00 00 00 00 00 00 88 [09:47:15]Write i2c OK [09:47:15]MH_I2C_Read... [09:47:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:15]Read from MH i2c: E2 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: E2 62 00 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: E2 62 00 CD 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AE CF 01 00 0E 04 04 00 B2 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 CA [09:47: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AE CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:15]wFMCommunicate OK [09:47:15]SAM_PROTO_GetFieldsCounters done [09:47:15]requested_item shift.num is exist - process it [09:47:15]requested_item shift.opened is exist - process it [09:47:15]req_shift_opened [09:47:15]FM_GetShiftState [09:47:15]SAM_PROTO_GetShiftState [09:47:15]wFMCommunicate request_size=4 [09:47:15]MH_SAM_APDU [09:47:15]CAPDU: 80 13 01 00 [09:47:15]Write to MH i2c: E2 08 00 CE 3F 80 13 01 00 00 00 00 00 8A [09:47:15]Write i2c OK [09:47:15]MH_I2C_Read... [09:47:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:15]Read from MH i2c: E2 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: E2 0E 00 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: E2 0E 00 CE 3F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B8 [09:47:15]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:47:15]wFMCommunicate OK [09:47:15]SAM_PROTO_GetShiftState done [09:47:15]FM_GetShiftState done [09:47:15]req_shift_opened done [09:47:15]requested_item shift.open_date is exist - process it [09:47:15]req_shift_open_date [09:47:15]req_shift_open_date done [09:47:15]produce_requested_data done [09:47:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118702,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:47:15]process_action_free close_receipt [09:47:15]json_value_free [09:47:15]json_value_free done [09:47:15]process_json_proto returns [09:47:15]Send response to host [09:47:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118702,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:47:15]free response buf [09:47:15]execute_script done [09:47:15]execute_script returns [09:47:15]free content buf [09:47:15]Sock 9.Close socket [09:47:15]Sock 9.Thread stoped [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:00]accept exits with 7 [09:48:00]New connection [09:48:00]New thread 3067239780 created [09:48:00]Thread 3067383140 joined [09:48:00]Waiting for new connection... [09:48:00] Sock 7.Parse request [09:48:00]Sock 7.Check first char [09:48:00]Sock 7.First char is OK [09:48:00]request: POST /json_proto HTTP/1.0 [09:48:00]Method: POST [09:48:00]URL: /json_proto [09:48:00]Method is POST - this is cgi request [09:48:00]url: /json_proto [09:48:00]query_string will be loaded in cgi processing [09:48:00]execute_cgi json_proto POST (null) [09:48:00]execute_cgi path=json_proto method=POST [09:48:00]POST find Content-Length [09:48:00]Host: 172.17.45.7:8080 [09:48:00]Content-Length: 677 [09:48:00]Content-Type: application/json [09:48:00] [09:48:00]POST finish read [09:48:00]Found Content-Length = 677 [09:48:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.410, "sum" : 570.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:00]execute_script... [09:48:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.410, "sum" : 570.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:00]POST & json_proto [09:48:00]process_json_proto [09:48:00]json parsed OK: [09:48:00]protocol is kg_v1.0 [09:48:00]action value=close_receipt [09:48:00]process_action close_receipt [09:48:00]cmd_close_receipt [09:48:00]MH_GetDate [09:48:00]Write to MH i2c: F0 00 00 CF 3F FD [09:48:00]Write i2c OK [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: F0 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: F0 09 00 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: F0 09 00 CF 3F 00 55 65 A7 66 90 0F 3E 66 10 [09:48:00]GetLastDocTimeStamp 1722246436 [09:48:00]current date 1722246485 [09:48:00]FM_GetShiftState [09:48:00]SAM_PROTO_GetShiftState [09:48:00]wFMCommunicate request_size=4 [09:48:00]MH_SAM_APDU [09:48:00]CAPDU: 80 13 01 00 [09:48:00]Write to MH i2c: E2 08 00 D0 3F 80 13 01 00 00 00 00 00 8C [09:48:00]Write i2c OK [09:48:00]MH_I2C_Read... [09:48:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:00]Read from MH i2c: E2 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: E2 0E 00 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: E2 0E 00 D0 3F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 BA [09:48:00]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:48:00]wFMCommunicate OK [09:48:00]SAM_PROTO_GetShiftState done [09:48:00]FM_GetShiftState done [09:48:00]opened in 1722211641 [09:48:00]opened+sec_in_day 1722298041 [09:48:00]quantity*price = 57019 [09:48:00]sum+1 = 57021 [09:48:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 570.00 Внесено: 600.00 СДАЧА: 30.00 НСП 1% : 5.05 НДС 12% : 60.55 Наличными: 570.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 79 29.07.2024 09:48 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118703 ФПД: 155189027418568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T094805&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118703&fm=155189027418568&tin=02508201610067®Number=0000000000092660&sum=57000 [09:48:01]StoreToDocumentArchive [09:48:01]shift 434 fd 118703 [09:48:01]save to /storage/0434/doc_00118703 [09:48:01]save last doc name /storage/0434/doc_00118703 to /storage/kkm_last_doc_name [09:48:01]save OK [09:48:01]Clear old archive folders... [09:48:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:48:01]tlvbuf is B6E11460 [09:48:01]SAM_PROTO_ClearQueue [09:48:01]wFMCommunicate request_size=4 [09:48:01]MH_SAM_APDU [09:48:01]CAPDU: 80 09 00 00 [09:48:01]Write to MH i2c: E2 08 00 DD 3F 80 09 00 00 00 00 00 00 8E [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:01]Read from MH i2c: E2 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 03 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: E2 03 00 DD 3F 00 90 00 90 [09:48:01]RAPDU: 90 00 [09:48:01]wFMCommunicate OK [09:48:01]SAM_PROTO_ClearQueue done [09:48:01]KKMCreateOFDPacket [09:48:01]OFDProtocolAddRootSTLVToBuf [09:48:01]FM_MakeSignedData [09:48:01]FM_MakeSignedData [09:48:01]SAM_PROTO_SignData [09:48:01]wFMCommunicate request_size=4 [09:48:01]MH_SAM_APDU [09:48:01]CAPDU: 80 0D 01 02 [09:48:01]Write to MH i2c: E2 08 00 DE 3F 80 0D 01 02 00 00 00 00 96 [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:02]Read from MH i2c: E2 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: E2 03 00 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: E2 03 00 DE 3F 00 90 00 91 [09:48:02]RAPDU: 90 00 [09:48:02]wFMCommunicate OK [09:48:02]wFMCommunicate request_size=255 [09:48:02]MH_SAM_APDU [09:48:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DA 20 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BC DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 17 00 00 00 00 07 04 06 00 A8 DE 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 55 65 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AF CF 01 00 35 04 06 00 8D [09:48:02]Write to MH i2c: E2 02 01 DF 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DA 20 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BC DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 17 00 00 00 00 07 04 06 00 A8 DE 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 55 65 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AF CF 01 00 35 04 06 00 8D 00 00 68 [09:48:02]Write i2c OK [09:48:02]MH_I2C_Read... [09:48:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:02]Read from MH i2c: E2 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: E2 03 00 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: E2 03 00 DF 3F 00 90 00 92 [09:48:02]RAPDU: 90 00 [09:48:02]wFMCommunicate OK [09:48:02]wFMCommunicate request_size=10 [09:48:02]MH_SAM_APDU [09:48:02]CAPDU: 80 0D 02 02 05 24 C2 DA 31 C8 [09:48:02]Write to MH i2c: E2 0D 00 E0 3F 80 0D 02 02 05 00 24 C2 DA 31 C8 00 00 5C [09:48:02]Write i2c OK [09:48:02]MH_I2C_Read... [09:48:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:02]Read from MH i2c: E2 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: E2 03 00 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: E2 03 00 E0 3F 00 90 00 93 [09:48:02]RAPDU: 90 00 [09:48:02]wFMCommunicate OK [09:48:02]wFMCommunicate request_size=4 [09:48:02]MH_SAM_APDU [09:48:02]CAPDU: 80 0D 03 02 [09:48:02]Write to MH i2c: E2 08 00 E1 3F 80 0D 03 02 00 00 00 00 9B [09:48:02]Write i2c OK [09:48:02]MH_I2C_Read... [09:48:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:02]Read from MH i2c: E2 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: E2 0B 00 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: E2 0B 00 E1 3F 00 8C D2 7D 3E BF F8 13 EB 90 00 6A [09:48:02]RAPDU: 8C D2 7D 3E BF F8 13 EB 90 00 [09:48:02]wFMCommunicate OK [09:48:02]SAM_PROTO_SignData done [09:48:02]FM_MakeSignedData done [09:48:02]CreateOFDProtocolMessage [09:48:02]wFMCommunicate request_size=4 [09:48:02]MH_SAM_APDU [09:48:02]CAPDU: 80 11 00 00 [09:48:02]Write to MH i2c: E2 08 00 E2 3F 80 11 00 00 00 00 00 00 9B [09:48:02]Write i2c OK [09:48:02]MH_I2C_Read... [09:48:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:02]Read from MH i2c: E2 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: E2 17 00 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: E2 17 00 E2 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F6 [09:48:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:48:02]wFMCommunicate OK [09:48:02]CreateOFDProtocolMessage done [09:48:02]OFDSenderStorePacket 118703 [09:48:02]StoreOFDPacket docnum=118703 [09:48:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 1C 7D 07 01 BD C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DA 20 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BC DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 17 00 00 00 00 07 04 06 00 A8 DE 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 55 65 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AF CF 01 00 35 04 06 00 8D 24 C2 DA 31 C8 8C D2 7D 3E BF F8 13 EB [09:48:02]CheckFolder [09:48:02]dirname=/storage/ofd_packets [09:48:02]CheckFolder done [09:48:02]ProducePacketName [09:48:02]name=ofd_packets/00118703 [09:48:02]NVStorageSaveData ofd_packets/00118703 [09:48:02]File name is /storage/ofd_packets/00118703 [09:48:02]Write 301 bytes [09:48:02]NVStorageSaveData done [09:48:02]OFDSenderStorePacket done [09:48:02]KKMCreateOFDPacket done [09:48:02]NVStorageSaveData kkm_last_timestamp [09:48:02]File name is /storage/kkm_last_timestamp [09:48:02]Write 4 bytes [09:48:02]NVStorageSaveData done [09:48:02]ExternCall_PrintAddStr [09:48:02]wPrintStart [09:48:02]Write to MH i2c: 01 00 00 E3 3F 22 [09:48:02]Write i2c OK [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: 01 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: 01 07 00 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: 01 07 00 E3 3F 00 00 00 00 00 FF 0F 37 [09:48:02]RasterBufferAndPrint [09:48:02]line Счет N : (1)949586 [09:48:02]line ИНН: 02508201610067 [09:48:02]line Контрольно-Кассовый Чек [09:48:02]line ПРОДАЖА [09:48:02]line ТРК (МРК, ГНК) : 51 [09:48:02]line Товар: 2710124130 [09:48:02]line Аи-92-К-4 [09:48:02]line 8.410 * 67.80 [09:48:02]line = 570.20 [09:48:02]line НДС 12% НСП 1% [09:48:02]line > о реализуемом товаре [09:48:02]line ОКРУГЛЕНИЕ: -0.20 [09:48:02]line ИТОГО: 570.00 [09:48:02]line Внесено: 600.00 [09:48:02]line СДАЧА: 30.00 [09:48:02]line НСП 1% : 5.05 [09:48:02]line НДС 12% : 60.55 [09:48:02]line Наличными: 570.00 [09:48:02]line Безнал.: 0.00 [09:48:02]line Место: АЗС № 134 "Партнер Нефть" [09:48:02]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:48:02]line СНО: Общий режим [09:48:02]line Чек 79 29.07.2024 09:48 [09:48:02]line Смена: 434 ФФД: 1.0 [09:48:02]line ЗНМ: 0300000044 [09:48:02]line РНМ: 0000000000092660 [09:48:02]line Версия ККМ: 001 [09:48:02]line ФМ: 0000000000874939 [09:48:02]line ФД: 118703 [09:48:02]line ФПД: 155189027418568 [09:48:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T094805&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118703&fm=155189027418568&tin=02508201610067®Number=0000000000092660&sum=57000 [09:48:02]OFD Sender: Processing packet 118703 [packets to send 86, broken 85] [09:48:02]ProducePacketName [09:48:02]name=ofd_packets/00118703 [09:48:02]OFD Sender: To server: pG, [09:48:02]CommunicateWithHost lk.salyk.kg:30040 [09:48:02]ConnectInit lk.salyk.kg [09:48:02]written 0, free lines is 4095 [09:48:02]Connected sock=10 [09:48:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 1C 7D 07 01 BD C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DA 20 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BC DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 17 00 00 00 00 07 04 06 00 A8 DE 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 55 65 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AF CF 01 00 35 04 06 00 8D 24 C2 DA 31 C8 8C D2 7D 3E BF F8 13 EB [09:48:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 43 FC 47 00 87 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 34 39 33 39 10 04 04 00 AF CF 01 00 F4 03 04 00 E3 12 A7 66 B6 04 01 00 00 24 02 E8 35 9E A9 AB 75 [09:48:03]CommunicateWithHost err = 0 [09:48:03]CheckOFDResponse [09:48:03]1017 (14) - 77093643461234 [09:48:03]1041 (16) - 0000000000874939 [09:48:03]1040 (4) - 118703 [09:48:03]1012 (4) - 29.07.2024 03:56 [09:48:03]1206 (1) - 0 [09:48:03]OFD Sender: Remove packet 118703 [09:48:03]ProducePacketName [09:48:03]name=ofd_packets/00118703 [09:48:03]NVStorageDeleteData [09:48:03]Write to MH i2c: 01 00 00 0D 40 4D [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: 01 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: 01 07 00 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: 01 07 00 0D 40 00 00 00 00 00 E3 0C 43 [09:48:03]RasterBufferAndPrint [09:48:03]line [09:48:03]line [09:48:03]line [09:48:03]line [09:48:03]line [09:48:03]written 0, free lines is 3305 [09:48:03]MH_Cut [09:48:03]Write to MH i2c: D1 01 00 14 40 01 26 [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: D1 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: D1 01 00 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: D1 01 00 14 40 00 25 [09:48:03]Write to MH i2c: 01 00 00 15 40 55 [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:03]OFD Sender: No OFD packet to send [09:48:03]*** Cut start [09:48:03]*** Partial cut [09:48:03]*** CUTSNS_PIN = 1 [09:48:03]*** CUTSNS_PIN = 0 [09:48:04]*** Brake cut motor [09:48:04]Read from MH i2c: 01 [09:48:04]MH_I2C_Read... [09:48:04]*** Stop cut motor [09:48:04]*** Cut end [09:48:04]Read from MH i2c: 01 07 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: 01 07 00 15 40 00 00 00 00 00 FF 0F 6A [09:48:04]process_action close_receipt done [09:48:04]requested_data is exist [09:48:04]produce_requested_data [09:48:04]requested_item fm.sn is exist - process it [09:48:04]wFMCommunicate request_size=4 [09:48:04]MH_SAM_APDU [09:48:04]CAPDU: 80 11 00 00 [09:48:04]Write to MH i2c: E2 08 00 16 40 80 11 00 00 00 00 00 00 D0 [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:04]Read from MH i2c: E2 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 17 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 17 00 16 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2B [09:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:48:04]wFMCommunicate OK [09:48:04]requested_item fd.num is exist - process it [09:48:04]SAM_PROTO_GetFieldsCounters [09:48:04]wFMCommunicate request_size=4 [09:48:04]MH_SAM_APDU [09:48:04]CAPDU: 80 13 00 00 [09:48:04]Write to MH i2c: E2 08 00 17 40 80 13 00 00 00 00 00 00 D3 [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:04]Read from MH i2c: E2 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 62 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 62 00 17 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AF CF 01 00 0E 04 04 00 B2 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 19 [09:48: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AF CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:04]wFMCommunicate OK [09:48:04]SAM_PROTO_GetFieldsCounters done [09:48:04]requested_item shift.num is exist - process it [09:48:04]requested_item shift.opened is exist - process it [09:48:04]req_shift_opened [09:48:04]FM_GetShiftState [09:48:04]SAM_PROTO_GetShiftState [09:48:04]wFMCommunicate request_size=4 [09:48:04]MH_SAM_APDU [09:48:04]CAPDU: 80 13 01 00 [09:48:04]Write to MH i2c: E2 08 00 18 40 80 13 01 00 00 00 00 00 D5 [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:04]Read from MH i2c: E2 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 0E 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 0E 00 18 40 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 03 [09:48:04]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:48:04]wFMCommunicate OK [09:48:04]SAM_PROTO_GetShiftState done [09:48:04]FM_GetShiftState done [09:48:04]req_shift_opened done [09:48:04]requested_item shift.open_date is exist - process it [09:48:04]req_shift_open_date [09:48:04]req_shift_open_date done [09:48:04]produce_requested_data done [09:48:04]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118703,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:48:04]process_action_free close_receipt [09:48:04]json_value_free [09:48:04]json_value_free done [09:48:04]process_json_proto returns [09:48:04]Send response to host [09:48:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118703,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:48:04]free response buf [09:48:04]execute_script done [09:48:04]execute_script returns [09:48:04]free content buf [09:48:04]Sock 7.Close socket [09:48:04]Sock 7.Thread stoped [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:43]OFD Sender: No OFD packet to send [09:48:48]OFD Sender: No OFD packet to send [09:48:52]accept exits with 9 [09:48:52]New connection [09:48:52]New thread 3067383140 created [09:48:52]Thread 3067239780 joined [09:48:52]Waiting for new connection... [09:48:52] Sock 9.Parse request [09:48:52]Sock 9.Check first char [09:48:52]Sock 9.First char is OK [09:48:52]request: POST /json_proto HTTP/1.0 [09:48:52]Method: POST [09:48:52]URL: /json_proto [09:48:52]Method is POST - this is cgi request [09:48:52]url: /json_proto [09:48:52]query_string will be loaded in cgi processing [09:48:52]execute_cgi json_proto POST (null) [09:48:52]execute_cgi path=json_proto method=POST [09:48:52]POST find Content-Length [09:48:52]Host: 172.17.45.7:8080 [09:48:52]Content-Length: 677 [09:48:52]Content-Type: application/json [09:48:52] [09:48:52]POST finish read [09:48:52]Found Content-Length = 677 [09:48:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:52]execute_script... [09:48: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)949587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:52]POST & json_proto [09:48:52]process_json_proto [09:48:52]json parsed OK: [09:48:52]protocol is kg_v1.0 [09:48:52]action value=close_receipt [09:48:52]process_action close_receipt [09:48:52]cmd_close_receipt [09:48:52]MH_GetDate [09:48:52]Write to MH i2c: F0 00 00 19 40 48 [09:48:52]Write i2c OK [09:48:52]MH_I2C_Read... [09:48:52]Read from MH i2c: F0 [09:48:52]MH_I2C_Read... [09:48:52]Read from MH i2c: F0 09 00 [09:48:52]MH_I2C_Read... [09:48:52]Read from MH i2c: F0 09 00 19 40 00 89 65 A7 66 90 0F 3E 66 8F [09:48:52]GetLastDocTimeStamp 1722246485 [09:48:52]current date 1722246537 [09:48:52]FM_GetShiftState [09:48:52]SAM_PROTO_GetShiftState [09:48:52]wFMCommunicate request_size=4 [09:48:52]MH_SAM_APDU [09:48:52]CAPDU: 80 13 01 00 [09:48:52]Write to MH i2c: E2 08 00 1A 40 80 13 01 00 00 00 00 00 D7 [09:48:52]Write i2c OK [09:48:52]MH_I2C_Read... [09:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:52]Read from MH i2c: E2 [09:48:52]MH_I2C_Read... [09:48:52]Read from MH i2c: E2 0E 00 [09:48:52]MH_I2C_Read... [09:48:52]Read from MH i2c: E2 0E 00 1A 40 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 05 [09:48:52]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:48:52]wFMCommunicate OK [09:48:52]SAM_PROTO_GetShiftState done [09:48:52]FM_GetShiftState done [09:48:52]opened in 1722211641 [09:48:52]opened+sec_in_day 1722298041 [09:48:52]quantity*price = 50036 [09:48:52]sum+1 = 50037 [09:48:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 80 29.07.2024 09:48 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118704 ФПД: 73497728474023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T094857&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118704&fm=73497728474023&tin=02508201610067®Number=0000000000092660&sum=50000 [09:48:53]StoreToDocumentArchive [09:48:53]shift 434 fd 118704 [09:48:53]save to /storage/0434/doc_00118704 [09:48:53]save last doc name /storage/0434/doc_00118704 to /storage/kkm_last_doc_name [09:48:53]save OK [09:48:53]Clear old archive folders... [09:48:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:48:53]tlvbuf is B6F438B0 [09:48:53]SAM_PROTO_ClearQueue [09:48:53]wFMCommunicate request_size=4 [09:48:53]MH_SAM_APDU [09:48:53]CAPDU: 80 09 00 00 [09:48:53]Write to MH i2c: E2 08 00 27 40 80 09 00 00 00 00 00 00 D9 [09:48:53]Write i2c OK [09:48:53]MH_I2C_Read... [09:48:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:53]Read from MH i2c: E2 [09:48:53]MH_I2C_Read... [09:48:53]Read from MH i2c: E2 03 00 [09:48:53]MH_I2C_Read... [09:48:53]Read from MH i2c: E2 03 00 27 40 00 90 00 DB [09:48:53]RAPDU: 90 00 [09:48:53]wFMCommunicate OK [09:48:53]SAM_PROTO_ClearQueue done [09:48:53]KKMCreateOFDPacket [09:48:53]OFDProtocolAddRootSTLVToBuf [09:48:53]FM_MakeSignedData [09:48:53]FM_MakeSignedData [09:48:53]SAM_PROTO_SignData [09:48:53]wFMCommunicate request_size=4 [09:48:53]MH_SAM_APDU [09:48:53]CAPDU: 80 0D 01 02 [09:48:53]Write to MH i2c: E2 08 00 28 40 80 0D 01 02 00 00 00 00 E1 [09:48:53]Write i2c OK [09:48:53]MH_I2C_Read... [09:48:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:53]Read from MH i2c: E2 [09:48:53]MH_I2C_Read... [09:48:53]Read from MH i2c: E2 03 00 [09:48:53]MH_I2C_Read... [09:48:53]Read from MH i2c: E2 03 00 28 40 00 90 00 DC [09:48:53]RAPDU: 90 00 [09:48:53]wFMCommunicate OK [09:48:53]wFMCommunicate request_size=255 [09:48:53]MH_SAM_APDU [09:48:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 89 65 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B0 CF 01 00 35 04 06 00 42 [09:48:53]Write to MH i2c: E2 02 01 29 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 89 65 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B0 CF 01 00 35 04 06 00 42 00 00 25 [09:48:53]Write i2c OK [09:48:53]MH_I2C_Read... [09:48:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:54]Read from MH i2c: E2 [09:48:54]MH_I2C_Read... [09:48:54]Read from MH i2c: E2 03 00 [09:48:54]MH_I2C_Read... [09:48:54]Read from MH i2c: E2 03 00 29 40 00 90 00 DD [09:48:54]RAPDU: 90 00 [09:48:54]wFMCommunicate OK [09:48:54]wFMCommunicate request_size=10 [09:48:54]MH_SAM_APDU [09:48:54]CAPDU: 80 0D 02 02 05 D8 85 FF 5B A7 [09:48:54]Write to MH i2c: E2 0D 00 2A 40 80 0D 02 02 05 00 D8 85 FF 5B A7 00 00 4C [09:48:54]Write i2c OK [09:48:54]MH_I2C_Read... [09:48:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:54]Read from MH i2c: E2 [09:48:54]MH_I2C_Read... [09:48:54]Read from MH i2c: E2 03 00 [09:48:54]MH_I2C_Read... [09:48:54]Read from MH i2c: E2 03 00 2A 40 00 90 00 DE [09:48:54]RAPDU: 90 00 [09:48:54]wFMCommunicate OK [09:48:54]wFMCommunicate request_size=4 [09:48:54]MH_SAM_APDU [09:48:54]CAPDU: 80 0D 03 02 [09:48:54]Write to MH i2c: E2 08 00 2B 40 80 0D 03 02 00 00 00 00 E6 [09:48:54]Write i2c OK [09:48:54]MH_I2C_Read... [09:48:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:54]Read from MH i2c: E2 [09:48:54]MH_I2C_Read... [09:48:54]Read from MH i2c: E2 0B 00 [09:48:54]MH_I2C_Read... [09:48:54]Read from MH i2c: E2 0B 00 2B 40 00 12 87 7F A3 BE 5F 30 A4 90 00 93 [09:48:54]RAPDU: 12 87 7F A3 BE 5F 30 A4 90 00 [09:48:54]wFMCommunicate OK [09:48:54]SAM_PROTO_SignData done [09:48:54]FM_MakeSignedData done [09:48:54]CreateOFDProtocolMessage [09:48:54]wFMCommunicate request_size=4 [09:48:54]MH_SAM_APDU [09:48:54]CAPDU: 80 11 00 00 [09:48:54]Write to MH i2c: E2 08 00 2C 40 80 11 00 00 00 00 00 00 E6 [09:48:54]Write i2c OK [09:48:54]MH_I2C_Read... [09:48:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:54]Read from MH i2c: E2 [09:48:54]MH_I2C_Read... [09:48:54]Read from MH i2c: E2 17 00 [09:48:54]MH_I2C_Read... [09:48:54]Read from MH i2c: E2 17 00 2C 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 41 [09:48:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:48:54]wFMCommunicate OK [09:48:54]CreateOFDProtocolMessage done [09:48:54]OFDSenderStorePacket 118704 [09:48:54]StoreOFDPacket docnum=118704 [09:48:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 49 6C 07 01 8F 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 89 65 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B0 CF 01 00 35 04 06 00 42 D8 85 FF 5B A7 12 87 7F A3 BE 5F 30 A4 [09:48:54]CheckFolder [09:48:54]dirname=/storage/ofd_packets [09:48:54]CheckFolder done [09:48:54]ProducePacketName [09:48:54]name=ofd_packets/00118704 [09:48:54]NVStorageSaveData ofd_packets/00118704 [09:48:54]File name is /storage/ofd_packets/00118704 [09:48:54]Write 301 bytes [09:48:54]NVStorageSaveData done [09:48:54]OFDSenderStorePacket done [09:48:54]KKMCreateOFDPacket done [09:48:54]NVStorageSaveData kkm_last_timestamp [09:48:54]File name is /storage/kkm_last_timestamp [09:48:54]Write 4 bytes [09:48:54]NVStorageSaveData done [09:48:54]ExternCall_PrintAddStr [09:48:54]wPrintStart [09:48:54]Write to MH i2c: 01 00 00 2D 40 6D [09:48:54]Write i2c OK [09:48:54]MH_I2C_Read... [09:48:54]Read from MH i2c: 01 [09:48:54]MH_I2C_Read... [09:48:54]Read from MH i2c: 01 07 00 [09:48:54]MH_I2C_Read... [09:48:54]Read from MH i2c: 01 07 00 2D 40 00 00 00 00 00 FF 0F 82 [09:48:54]RasterBufferAndPrint [09:48:54]line Счет N : (1)949587 [09:48:54]line ИНН: 02508201610067 [09:48:54]line Контрольно-Кассовый Чек [09:48:54]line ПРОДАЖА [09:48:54]line ТРК (МРК, ГНК) : 61 [09:48:54]line Товар: 2710124130 [09:48:54]line Аи-92-К-4 [09:48:54]line 7.380 * 67.80 [09:48:54]line = 500.36 [09:48:54]line НДС 12% НСП 1% [09:48:54]line > о реализуемом товаре [09:48:54]line ОКРУГЛЕНИЕ: -0.36 [09:48:54]line ИТОГО: 500.00 [09:48:54]line Внесено: 500.00 [09:48:54]line СДАЧА: 0.00 [09:48:54]line НСП 1% : 4.43 [09:48:54]line НДС 12% : 53.14 [09:48:54]line Наличными: 500.00 [09:48:54]line Безнал.: 0.00 [09:48:54]line Место: АЗС № 134 "Партнер Нефть" [09:48:54]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:48:54]line СНО: Общий режим [09:48:54]line Чек 80 29.07.2024 09:48 [09:48:54]line Смена: 434 ФФД: 1.0 [09:48:54]line ЗНМ: 0300000044 [09:48:54]line РНМ: 0000000000092660 [09:48:54]line Версия ККМ: 001 [09:48:54]line ФМ: 0000000000874939 [09:48:54]line ФД: 118704 [09:48:54]line ФПД: 73497728474023 [09:48:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T094857&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118704&fm=73497728474023&tin=02508201610067®Number=0000000000092660&sum=50000 [09:48:54]written 0, free lines is 4095 [09:48:54]OFD Sender: Processing packet 118704 [packets to send 86, broken 85] [09:48:54]ProducePacketName [09:48:54]name=ofd_packets/00118704 [09:48:54]OFD Sender: To server: pG, [09:48:54]CommunicateWithHost lk.salyk.kg:30040 [09:48:54]ConnectInit lk.salyk.kg [09:48:54]Write to MH i2c: 01 00 00 57 40 97 [09:48:54]Write i2c OK [09:48:54]MH_I2C_Read... [09:48:54]Read from MH i2c: 01 [09:48:54]MH_I2C_Read... [09:48:54]Read from MH i2c: 01 07 00 [09:48:54]MH_I2C_Read... [09:48:54]Read from MH i2c: 01 07 00 57 40 00 00 00 00 00 DC 0C 86 [09:48:54]RasterBufferAndPrint [09:48:54]line [09:48:54]line [09:48:54]line [09:48:54]line [09:48:54]line [09:48:54]written 0, free lines is 3298 [09:48:54]MH_Cut [09:48:54]Write to MH i2c: D1 01 00 5E 40 01 70 [09:48:54]Write i2c OK [09:48:54]MH_I2C_Read... [09:48:54]Read from MH i2c: D1 [09:48:54]MH_I2C_Read... [09:48:54]Read from MH i2c: D1 01 00 [09:48:54]MH_I2C_Read... [09:48:54]Read from MH i2c: D1 01 00 5E 40 00 6F [09:48:54]Write to MH i2c: 01 00 00 5F 40 9F [09:48:54]Write i2c OK [09:48:54]MH_I2C_Read... [09:48:55]*** Cut start [09:48:55]*** Partial cut [09:48:55]*** CUTSNS_PIN = 1 [09:48:55]*** CUTSNS_PIN = 0 [09:48:55]*** Brake cut motor [09:48:56]Read from MH i2c: 01 [09:48:56]MH_I2C_Read... [09:48:56]*** Stop cut motor [09:48:56]*** Cut end [09:48:56]Read from MH i2c: 01 07 00 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: 01 07 00 5F 40 00 00 00 00 00 FF 0F B4 [09:48:56]process_action close_receipt done [09:48:56]requested_data is exist [09:48:56]produce_requested_data [09:48:56]requested_item fm.sn is exist - process it [09:48:56]wFMCommunicate request_size=4 [09:48:56]MH_SAM_APDU [09:48:56]CAPDU: 80 11 00 00 [09:48:56]Write to MH i2c: E2 08 00 60 40 80 11 00 00 00 00 00 00 1A [09:48:56]Write i2c OK [09:48:56]MH_I2C_Read... [09:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:56]Read from MH i2c: E2 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 17 00 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 17 00 60 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 75 [09:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:48:56]wFMCommunicate OK [09:48:56]requested_item fd.num is exist - process it [09:48:56]SAM_PROTO_GetFieldsCounters [09:48:56]wFMCommunicate request_size=4 [09:48:56]MH_SAM_APDU [09:48:56]CAPDU: 80 13 00 00 [09:48:56]Write to MH i2c: E2 08 00 61 40 80 13 00 00 00 00 00 00 1D [09:48:56]Write i2c OK [09:48:56]MH_I2C_Read... [09:48:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:56]Read from MH i2c: E2 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 62 00 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 62 00 61 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B0 CF 01 00 0E 04 04 00 B2 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 67 [09:48: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B0 CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:56]wFMCommunicate OK [09:48:56]SAM_PROTO_GetFieldsCounters done [09:48:56]requested_item shift.num is exist - process it [09:48:56]requested_item shift.opened is exist - process it [09:48:56]req_shift_opened [09:48:56]FM_GetShiftState [09:48:56]SAM_PROTO_GetShiftState [09:48:56]wFMCommunicate request_size=4 [09:48:56]MH_SAM_APDU [09:48:56]CAPDU: 80 13 01 00 [09:48:56]Write to MH i2c: E2 08 00 62 40 80 13 01 00 00 00 00 00 1F [09:48:56]Write i2c OK [09:48:56]MH_I2C_Read... [09:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:56]Read from MH i2c: E2 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 0E 00 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 0E 00 62 40 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 4D [09:48:56]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:48:56]wFMCommunicate OK [09:48:56]SAM_PROTO_GetShiftState done [09:48:56]FM_GetShiftState done [09:48:56]req_shift_opened done [09:48:56]requested_item shift.open_date is exist - process it [09:48:56]req_shift_open_date [09:48:56]req_shift_open_date done [09:48:56]produce_requested_data done [09:48:56]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118704,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:48:56]process_action_free close_receipt [09:48:56]json_value_free [09:48:56]json_value_free done [09:48:56]process_json_proto returns [09:48:56]Send response to host [09:48:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118704,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:48:56]free response buf [09:48:56]execute_script done [09:48:56]execute_script returns [09:48:56]free content buf [09:48:56]Sock 9.Close socket [09:48:56]Sock 9.Thread stoped [09:51:07]ConnectInit Can't connect to host [09:51:07]CommunicateWithHost connect error [09:51:07]CommunicateWithHost err = -1 [09:51:07]OFD Sender: Server communicate error [09:51:12]OFD Sender: Processing packet 118704 [packets to send 86, broken 85] [09:51:12]ProducePacketName [09:51:12]name=ofd_packets/00118704 [09:51:12]OFD Sender: To server: pG, [09:51:12]CommunicateWithHost lk.salyk.kg:30040 [09:51:12]ConnectInit lk.salyk.kg [09:51:12]Connected sock=9 [09:51:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 49 6C 07 01 8F 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 89 65 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B0 CF 01 00 35 04 06 00 42 D8 85 FF 5B A7 12 87 7F A3 BE 5F 30 A4 [09:51:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A1 18 47 00 06 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 34 39 33 39 10 04 04 00 B0 CF 01 00 F4 03 04 00 A1 13 A7 66 B6 04 01 00 00 2E 27 07 83 D5 5D 98 E8 [09:51:12]CommunicateWithHost err = 0 [09:51:12]CheckOFDResponse [09:51:12]1017 (14) - 77093643461234 [09:51:12]1041 (16) - 0000000000874939 [09:51:12]1040 (4) - 118704 [09:51:12]1012 (4) - 29.07.2024 03:59 [09:51:12]1206 (1) - 0 [09:51:12]OFD Sender: Remove packet 118704 [09:51:12]ProducePacketName [09:51:12]name=ofd_packets/00118704 [09:51:12]NVStorageDeleteData [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:58]OFD Sender: No OFD packet to send [09:52:03]OFD Sender: No OFD packet to send [09:52:08]OFD Sender: No OFD packet to send [09:52:13]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:28]OFD Sender: No OFD packet to send [09:52:33]OFD Sender: No OFD packet to send [09:52:38]OFD Sender: No OFD packet to send [09:52:43]OFD Sender: No OFD packet to send [09:52:48]OFD Sender: No OFD packet to send [09:52:53]OFD Sender: No OFD packet to send [09:52:53]accept exits with 7 [09:52:53]New connection [09:52:53]New thread 3067239780 created [09:52:53]Thread 3067383140 joined [09:52:53]Waiting for new connection... [09:52:53] Sock 7.Parse request [09:52:53]Sock 7.Check first char [09:52:53]Sock 7.First char is OK [09:52:53]request: POST /json_proto HTTP/1.0 [09:52:53]Method: POST [09:52:53]URL: /json_proto [09:52:53]Method is POST - this is cgi request [09:52:53]url: /json_proto [09:52:53]query_string will be loaded in cgi processing [09:52:53]execute_cgi json_proto POST (null) [09:52:53]execute_cgi path=json_proto method=POST [09:52:53]POST find Content-Length [09:52:53]Host: 172.17.45.7:8080 [09:52:53]Content-Length: 677 [09:52:53]Content-Type: application/json [09:52:53] [09:52:53]POST finish read [09:52:53]Found Content-Length = 677 [09:52:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:53]execute_script... [09:52: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)949589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:53]POST & json_proto [09:52:53]process_json_proto [09:52:53]json parsed OK: [09:52:53]protocol is kg_v1.0 [09:52:53]action value=close_receipt [09:52:53]process_action close_receipt [09:52:53]cmd_close_receipt [09:52:53]MH_GetDate [09:52:53]Write to MH i2c: F0 00 00 63 40 92 [09:52:53]Write i2c OK [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: F0 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: F0 09 00 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: F0 09 00 63 40 00 7A 66 A7 66 90 0F 3E 66 CB [09:52:53]GetLastDocTimeStamp 1722246537 [09:52:53]current date 1722246778 [09:52:53]FM_GetShiftState [09:52:53]SAM_PROTO_GetShiftState [09:52:53]wFMCommunicate request_size=4 [09:52:53]MH_SAM_APDU [09:52:53]CAPDU: 80 13 01 00 [09:52:53]Write to MH i2c: E2 08 00 64 40 80 13 01 00 00 00 00 00 21 [09:52:53]Write i2c OK [09:52:53]MH_I2C_Read... [09:52:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:53]Read from MH i2c: E2 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 0E 00 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 0E 00 64 40 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 4F [09:52:53]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:52:53]wFMCommunicate OK [09:52:53]SAM_PROTO_GetShiftState done [09:52:53]FM_GetShiftState done [09:52:53]opened in 1722211641 [09:52:53]opened+sec_in_day 1722298041 [09:52:53]quantity*price = 30035 [09:52:53]sum+1 = 30036 [09:52:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 81 29.07.2024 09:52 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118705 ФПД: 217736166601972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095258&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118705&fm=217736166601972&tin=02508201610067®Number=0000000000092660&sum=30000 [09:52:54]StoreToDocumentArchive [09:52:54]shift 434 fd 118705 [09:52:54]save to /storage/0434/doc_00118705 [09:52:54]save last doc name /storage/0434/doc_00118705 to /storage/kkm_last_doc_name [09:52:54]save OK [09:52:54]Clear old archive folders... [09:52:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:54]tlvbuf is 01EC00B0 [09:52:54]SAM_PROTO_ClearQueue [09:52:54]wFMCommunicate request_size=4 [09:52:54]MH_SAM_APDU [09:52:54]CAPDU: 80 09 00 00 [09:52:54]Write to MH i2c: E2 08 00 71 40 80 09 00 00 00 00 00 00 23 [09:52:54]Write i2c OK [09:52:54]MH_I2C_Read... [09:52:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:54]Read from MH i2c: E2 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: E2 03 00 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: E2 03 00 71 40 00 90 00 25 [09:52:54]RAPDU: 90 00 [09:52:54]wFMCommunicate OK [09:52:54]SAM_PROTO_ClearQueue done [09:52:54]KKMCreateOFDPacket [09:52:54]OFDProtocolAddRootSTLVToBuf [09:52:54]FM_MakeSignedData [09:52:54]FM_MakeSignedData [09:52:54]SAM_PROTO_SignData [09:52:54]wFMCommunicate request_size=4 [09:52:54]MH_SAM_APDU [09:52:54]CAPDU: 80 0D 01 02 [09:52:54]Write to MH i2c: E2 08 00 72 40 80 0D 01 02 00 00 00 00 2B [09:52:54]Write i2c OK [09:52:54]MH_I2C_Read... [09:52:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:54]Read from MH i2c: E2 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: E2 03 00 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: E2 03 00 72 40 00 90 00 26 [09:52:54]RAPDU: 90 00 [09:52:54]wFMCommunicate OK [09:52:54]wFMCommunicate request_size=255 [09:52:54]MH_SAM_APDU [09:52: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 7A 66 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B1 CF 01 00 35 04 06 00 C6 [09:52:54]Write to MH i2c: E2 02 01 73 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 7A 66 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B1 CF 01 00 35 04 06 00 C6 00 00 06 [09:52:54]Write i2c OK [09:52:54]MH_I2C_Read... [09:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:55]Read from MH i2c: E2 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 03 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 03 00 73 40 00 90 00 27 [09:52:55]RAPDU: 90 00 [09:52:55]wFMCommunicate OK [09:52:55]wFMCommunicate request_size=10 [09:52:55]MH_SAM_APDU [09:52:55]CAPDU: 80 0D 02 02 05 07 A6 DD 74 F4 [09:52:55]Write to MH i2c: E2 0D 00 74 40 80 0D 02 02 05 00 07 A6 DD 74 F4 00 00 2A [09:52:55]Write i2c OK [09:52:55]MH_I2C_Read... [09:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:55]Read from MH i2c: E2 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 03 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 03 00 74 40 00 90 00 28 [09:52:55]RAPDU: 90 00 [09:52:55]wFMCommunicate OK [09:52:55]wFMCommunicate request_size=4 [09:52:55]MH_SAM_APDU [09:52:55]CAPDU: 80 0D 03 02 [09:52:55]Write to MH i2c: E2 08 00 75 40 80 0D 03 02 00 00 00 00 30 [09:52:55]Write i2c OK [09:52:55]MH_I2C_Read... [09:52:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:55]Read from MH i2c: E2 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 0B 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 0B 00 75 40 00 91 99 08 D0 6D 05 0E EF 90 00 A2 [09:52:55]RAPDU: 91 99 08 D0 6D 05 0E EF 90 00 [09:52:55]wFMCommunicate OK [09:52:55]SAM_PROTO_SignData done [09:52:55]FM_MakeSignedData done [09:52:55]CreateOFDProtocolMessage [09:52:55]wFMCommunicate request_size=4 [09:52:55]MH_SAM_APDU [09:52:55]CAPDU: 80 11 00 00 [09:52:55]Write to MH i2c: E2 08 00 76 40 80 11 00 00 00 00 00 00 30 [09:52:55]Write i2c OK [09:52:55]MH_I2C_Read... [09:52:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:55]Read from MH i2c: E2 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 17 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 17 00 76 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8B [09:52:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:52:55]wFMCommunicate OK [09:52:55]CreateOFDProtocolMessage done [09:52:55]OFDSenderStorePacket 118705 [09:52:55]StoreOFDPacket docnum=118705 [09:52:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 15 C0 07 01 37 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 7A 66 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B1 CF 01 00 35 04 06 00 C6 07 A6 DD 74 F4 91 99 08 D0 6D 05 0E EF [09:52:55]CheckFolder [09:52:55]dirname=/storage/ofd_packets [09:52:55]CheckFolder done [09:52:55]ProducePacketName [09:52:55]name=ofd_packets/00118705 [09:52:55]NVStorageSaveData ofd_packets/00118705 [09:52:55]File name is /storage/ofd_packets/00118705 [09:52:55]Write 301 bytes [09:52:55]NVStorageSaveData done [09:52:55]OFDSenderStorePacket done [09:52:55]KKMCreateOFDPacket done [09:52:55]NVStorageSaveData kkm_last_timestamp [09:52:55]File name is /storage/kkm_last_timestamp [09:52:55]Write 4 bytes [09:52:55]NVStorageSaveData done [09:52:55]ExternCall_PrintAddStr [09:52:55]wPrintStart [09:52:55]Write to MH i2c: 01 00 00 77 40 B7 [09:52:55]Write i2c OK [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: 01 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: 01 07 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: 01 07 00 77 40 00 00 00 00 00 FF 0F CC [09:52:55]RasterBufferAndPrint [09:52:55]line Счет N : (1)949589 [09:52:55]line ИНН: 02508201610067 [09:52:55]line Контрольно-Кассовый Чек [09:52:55]line ПРОДАЖА [09:52:55]line ТРК (МРК, ГНК) : 41 [09:52:55]line Товар: 2710124130 [09:52:55]line Аи-92-К-4 [09:52:55]line 4.430 * 67.80 [09:52:55]line = 300.35 [09:52:55]line НДС 12% НСП 1% [09:52:55]line > о реализуемом товаре [09:52:55]line ОКРУГЛЕНИЕ: -0.35 [09:52:55]line ИТОГО: 300.00 [09:52:55]line Внесено: 300.00 [09:52:55]line СДАЧА: 0.00 [09:52:55]line НСП 1% : 2.66 [09:52:55]line НДС 12% : 31.90 [09:52:55]line Наличными: 300.00 [09:52:55]line Безнал.: 0.00 [09:52:55]line Место: АЗС № 134 "Партнер Нефть" [09:52:55]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:52:55]line СНО: Общий режим [09:52:55]line Чек 81 29.07.2024 09:52 [09:52:55]line Смена: 434 ФФД: 1.0 [09:52:55]line ЗНМ: 0300000044 [09:52:55]line РНМ: 0000000000092660 [09:52:55]line Версия ККМ: 001 [09:52:55]line ФМ: 0000000000874939 [09:52:55]line ФД: 118705 [09:52:55]line ФПД: 217736166601972 [09:52:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095258&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118705&fm=217736166601972&tin=02508201610067®Number=0000000000092660&sum=30000 [09:52:55]written 0, free lines is 4095 [09:52:55]OFD Sender: Processing packet 118705 [packets to send 86, broken 85] [09:52:55]ProducePacketName [09:52:55]name=ofd_packets/00118705 [09:52:55]OFD Sender: To server: pG, [09:52:55]CommunicateWithHost lk.salyk.kg:30040 [09:52:55]ConnectInit lk.salyk.kg [09:52:55]Connected sock=10 [09:52:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 15 C0 07 01 37 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 7A 66 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B1 CF 01 00 35 04 06 00 C6 07 A6 DD 74 F4 91 99 08 D0 6D 05 0E EF [09:52:55]Write to MH i2c: 01 00 00 A1 40 E1 [09:52:55]Write i2c OK [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: 01 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: 01 07 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: 01 07 00 A1 40 00 00 00 00 00 ED 0C E1 [09:52:55]RasterBufferAndPrint [09:52:55]line [09:52:55]line [09:52:55]line [09:52:55]line [09:52:55]line [09:52:55]written 0, free lines is 3315 [09:52:55]MH_Cut [09:52:55]Write to MH i2c: D1 01 00 A8 40 01 BA [09:52:55]Write i2c OK [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: D1 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: D1 01 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: D1 01 00 A8 40 00 B9 [09:52:55]Write to MH i2c: 01 00 00 A9 40 E9 [09:52:55]Write i2c OK [09:52:55]MH_I2C_Read... [09:52:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F5 2C 47 00 0F 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B1 CF 01 00 F4 03 04 00 08 14 A7 66 B6 04 01 00 00 D7 E4 12 2B A9 1E D7 0B [09:52:55]CommunicateWithHost err = 0 [09:52:55]CheckOFDResponse [09:52:55]1017 (14) - 77093643461234 [09:52:55]1041 (16) - 0000000000874939 [09:52:55]1040 (4) - 118705 [09:52:55]1012 (4) - 29.07.2024 04:01 [09:52:55]1206 (1) - 0 [09:52:55]OFD Sender: Remove packet 118705 [09:52:55]ProducePacketName [09:52:55]name=ofd_packets/00118705 [09:52:55]NVStorageDeleteData [09:52:55]int [09:52:55]*** FLAG_PRN_PAP2 set [09:52:55]*** Cut start [09:52:55]*** Partial cut [09:52:55]*** CUTSNS_PIN = 1 [09:52:55]*** CUTSNS_PIN = 0 [09:52:56]*** Brake cut motor [09:52:56]OFD Sender: No OFD packet to send [09:52:56]Read from MH i2c: 01 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: *** Stop cut motor [09:52:56]01 07 *** Cut end [09:52:56]00 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: 01 07 00 A9 40 00 02 00 00 00 FF 0F 00 [09:52:56]process_action close_receipt done [09:52:56]requested_data is exist [09:52:56]produce_requested_data [09:52:56]requested_item fm.sn is exist - process it [09:52:56]wFMCommunicate request_size=4 [09:52:56]MH_SAM_APDU [09:52:56]CAPDU: 80 11 00 00 [09:52:56]Write to MH i2c: E2 08 00 AA 40 80 11 00 00 00 00 00 00 64 [09:52:56]Write i2c OK [09:52:56]MH_I2C_Read... [09:52:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:56]Read from MH i2c: E2 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: E2 17 00 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: E2 17 00 AA 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BF [09:52:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:52:56]wFMCommunicate OK [09:52:56]requested_item fd.num is exist - process it [09:52:56]SAM_PROTO_GetFieldsCounters [09:52:56]wFMCommunicate request_size=4 [09:52:56]MH_SAM_APDU [09:52:56]CAPDU: 80 13 00 00 [09:52:56]Write to MH i2c: E2 08 00 AB 40 80 13 00 00 00 00 00 00 67 [09:52:56]Write i2c OK [09:52:56]MH_I2C_Read... [09:52:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:56]Read from MH i2c: E2 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: E2 62 00 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: E2 62 00 AB 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B1 CF 01 00 0E 04 04 00 B2 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 B5 [09:52: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B1 CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:56]wFMCommunicate OK [09:52:56]SAM_PROTO_GetFieldsCounters done [09:52:56]requested_item shift.num is exist - process it [09:52:56]requested_item shift.opened is exist - process it [09:52:56]req_shift_opened [09:52:56]FM_GetShiftState [09:52:56]SAM_PROTO_GetShiftState [09:52:56]wFMCommunicate request_size=4 [09:52:56]MH_SAM_APDU [09:52:56]CAPDU: 80 13 01 00 [09:52:56]Write to MH i2c: 01 00 00 AC 40 EC [09:52:56]Write i2c OK [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: 01 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: 01 07 00 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: 01 07 00 AC 40 00 02 00 00 00 FF 0F 03 [09:52:56]state=0 [09:52:56]Cover opened [09:52:56]Write to MH i2c: E2 08 00 AD 40 80 13 01 00 00 00 00 00 6A [09:52:56]Write i2c OK [09:52:56]MH_I2C_Read... [09:52:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:56]Read from MH i2c: E2 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: E2 0E 00 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: E2 0E 00 AD 40 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 98 [09:52:56]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:52:56]wFMCommunicate OK [09:52:56]SAM_PROTO_GetShiftState done [09:52:56]FM_GetShiftState done [09:52:56]req_shift_opened done [09:52:56]requested_item shift.open_date is exist - process it [09:52:56]req_shift_open_date [09:52:56]req_shift_open_date done [09:52:56]produce_requested_data done [09:52:56]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118705,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:52:56]process_action_free close_receipt [09:52:56]json_value_free [09:52:56]json_value_free done [09:52:56]process_json_proto returns [09:52:56]Send response to host [09:52:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118705,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:52:56]free response buf [09:52:56]execute_script done [09:52:56]execute_script returns [09:52:56]free content buf [09:52:56]Sock 7.Close socket [09:52:56]Sock 7.Thread stoped [09:52:58]int [09:52:58]Write to MH i2c: 01 00 00 AE 40 EE [09:52:58]*** FLAG_PRN_PAP1 set [09:52:58]Write i2c OK [09:52:58]MH_I2C_Read... [09:52:58]Read from MH i2c: 01 [09:52:58]MH_I2C_Read... [09:52:58]Read from MH i2c: 01 07 00 [09:52:58]MH_I2C_Read... [09:52:58]Read from MH i2c: 01 07 00 AE 40 00 03 00 00 00 FF 0F 06 [09:52:58]state=3 [09:52:58]No paper [09:52:58]Cover opened [09:53:00]int [09:53:00]Write to MH i2c: 01 00 00 AF 40 EF [09:53:00]*** FLAG_PRN_PAP2 reset [09:53:00]Write i2c OK [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: 01 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: 01 07 00 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: 01 07 00 AF 40 00 01 00 00 00 FF 0F 05 [09:53:00]state=3 [09:53:00]No paper [09:53:00]Cover closed [09:53:00]int [09:53:00]Write to MH i2c: 01 00 00 B0 40 F0 [09:53:00]*** FLAG_PRN_PAP2 set [09:53:00]Write i2c OK [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: 01 [09:53:00]MH_I2C_Read... [09:53:00]*** FLAG_PRN_PAP2 reset [09:53:00]Read from MH i2c: 01 07 00 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: 01 07 00 B0 40 00 01 00 00 00 FF 0F 06 [09:53:00]state=0 [09:53:00]No paper [09:53:01]int [09:53:01]Write to MH i2c: 01 00 00 B1 40 F1 [09:53:01]*** FLAG_PRN_PAP2 set [09:53:01]Write i2c OK [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: 01 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: 01 07 00 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: 01 07 00 B1 40 00 03 00 00 00 FF 0F 09 [09:53:01]state=0 [09:53:01]No paper [09:53:01]Cover opened [09:53:01]OFD Sender: No OFD packet to send [09:53:01]int [09:53:01]Write to MH i2c: 01 00 00 B2 40 F2 [09:53:01]*** FLAG_PRN_PAP2 reset [09:53:01]Write i2c OK [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: 01 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: 01 07 00 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: 01 07 00 B2 40 00 01 00 00 00 FF 0F 08 [09:53:01]state=3 [09:53:01]No paper [09:53:01]Cover closed [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]OFD Sender: No OFD packet to send [09:53:19]int [09:53:19]Write to MH i2c: 01 00 00 B3 40 F3 [09:53:19]*** FLAG_PRN_PAP2 set [09:53:19]Write i2c OK [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: 01 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: 01 07 00 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: 01 07 00 B3 40 00 03 00 00 00 FF 0F 0B [09:53:19]state=0 [09:53:19]No paper [09:53:19]Cover opened [09:53:21]OFD Sender: No OFD packet to send [09:53:21]int [09:53:21]Write to MH i2c: 01 00 00 B4 40 F4 [09:53:21]Write i2c OK [09:53:21]MH_I2C_Read... [09:53:21]Read from MH i2c: 01 [09:53:21]MH_I2C_Read... [09:53:21]Read from MH i2c: 01 07 00 [09:53:21]MH_I2C_Read... [09:53:21]*** FLAG_PRN_PAP2 reset [09:53:21]*** FLAG_PRN_PAP1 reset [09:53:21]Read from MH i2c: 01 07 00 B4 40 00 00 00 00 00 FF 0F 09 [09:53:21]state=3 [09:53:21]Cover closed [09:53:26]OFD Sender: No OFD packet to send [09:53:31]accept exits with 9 [09:53:31]New connection [09:53:31]New thread 3067383140 created [09:53:31]Thread 3067239780 joined [09:53:31]Waiting for new connection... [09:53:31] Sock 9.Parse request [09:53:31]Sock 9.Check first char [09:53:31]Sock 9.First char is OK [09:53:31]request: POST /json_proto HTTP/1.0 [09:53:31]Method: POST [09:53:31]URL: /json_proto [09:53:31]Method is POST - this is cgi request [09:53:31]url: /json_proto [09:53:31]query_string will be loaded in cgi processing [09:53:31]execute_cgi json_proto POST (null) [09:53:31]execute_cgi path=json_proto method=POST [09:53:31]POST find Content-Length [09:53:31]Host: 172.17.45.7:8080 [09:53:31]Content-Length: 678 [09:53:31]Content-Type: application/json [09:53:31] [09:53:31]POST finish read [09:53:31]Found Content-Length = 678 [09:53:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:31]execute_script... [09:53:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:31]POST & json_proto [09:53:31]process_json_proto [09:53:31]json parsed OK: [09:53:31]protocol is kg_v1.0 [09:53:31]action value=close_receipt [09:53:31]process_action close_receipt [09:53:31]cmd_close_receipt [09:53:31]MH_GetDate [09:53:31]Write to MH i2c: F0 00 00 B5 40 E4 [09:53:31]Write i2c OK [09:53:31]MH_I2C_Read... [09:53:31]Read from MH i2c: F0 [09:53:31]MH_I2C_Read... [09:53:31]Read from MH i2c: F0 09 00 [09:53:31]MH_I2C_Read... [09:53:31]Read from MH i2c: F0 09 00 B5 40 00 A0 66 A7 66 90 0F 3E 66 43 [09:53:31]GetLastDocTimeStamp 1722246778 [09:53:31]current date 1722246816 [09:53:31]FM_GetShiftState [09:53:31]SAM_PROTO_GetShiftState [09:53:31]wFMCommunicate request_size=4 [09:53:31]MH_SAM_APDU [09:53:31]CAPDU: 80 13 01 00 [09:53:31]Write to MH i2c: E2 08 00 B6 40 80 13 01 00 00 00 00 00 73 [09:53:31]Write i2c OK [09:53:31]MH_I2C_Read... [09:53:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:31]Read from MH i2c: E2 [09:53:31]MH_I2C_Read... [09:53:31]Read from MH i2c: E2 0E 00 [09:53:31]MH_I2C_Read... [09:53:31]Read from MH i2c: E2 0E 00 B6 40 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A1 [09:53:31]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:53:31]wFMCommunicate OK [09:53:31]SAM_PROTO_GetShiftState done [09:53:31]FM_GetShiftState done [09:53:31]opened in 1722211641 [09:53:31]opened+sec_in_day 1722298041 [09:53:31]quantity*price = 70037 [09:53:31]sum+1 = 70038 [09:53:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 82 29.07.2024 09:53 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118706 ФПД: 179126860124872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095336&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118706&fm=179126860124872&tin=02508201610067®Number=0000000000092660&sum=70000 [09:53:32]StoreToDocumentArchive [09:53:32]shift 434 fd 118706 [09:53:32]save to /storage/0434/doc_00118706 [09:53:32]save last doc name /storage/0434/doc_00118706 to /storage/kkm_last_doc_name [09:53:32]save OK [09:53:32]Clear old archive folders... [09:53:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:32]tlvbuf is 01EC0180 [09:53:32]SAM_PROTO_ClearQueue [09:53:32]wFMCommunicate request_size=4 [09:53:32]MH_SAM_APDU [09:53:32]CAPDU: 80 09 00 00 [09:53:32]Write to MH i2c: E2 08 00 C3 40 80 09 00 00 00 00 00 00 75 [09:53:32]Write i2c OK [09:53:32]MH_I2C_Read... [09:53:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:32]Read from MH i2c: E2 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 03 00 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 03 00 C3 40 00 90 00 77 [09:53:32]RAPDU: 90 00 [09:53:32]wFMCommunicate OK [09:53:32]SAM_PROTO_ClearQueue done [09:53:32]KKMCreateOFDPacket [09:53:32]OFDProtocolAddRootSTLVToBuf [09:53:32]FM_MakeSignedData [09:53:32]FM_MakeSignedData [09:53:32]SAM_PROTO_SignData [09:53:32]wFMCommunicate request_size=4 [09:53:32]MH_SAM_APDU [09:53:32]CAPDU: 80 0D 01 02 [09:53:32]Write to MH i2c: E2 08 00 C4 40 80 0D 01 02 00 00 00 00 7D [09:53:32]Write i2c OK [09:53:32]MH_I2C_Read... [09:53:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:32]Read from MH i2c: E2 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 03 00 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 03 00 C4 40 00 90 00 78 [09:53:32]RAPDU: 90 00 [09:53:32]wFMCommunicate OK [09:53:32]wFMCommunicate request_size=255 [09:53:32]MH_SAM_APDU [09:53:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 A0 66 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B2 CF 01 00 35 04 06 00 A2 [09:53:32]Write to MH i2c: E2 02 01 C5 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 A0 66 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B2 CF 01 00 35 04 06 00 A2 00 00 24 [09:53:32]Write i2c OK [09:53:32]MH_I2C_Read... [09:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:32]Read from MH i2c: E2 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 03 00 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 03 00 C5 40 00 90 00 79 [09:53:32]RAPDU: 90 00 [09:53:32]wFMCommunicate OK [09:53:32]wFMCommunicate request_size=10 [09:53:32]MH_SAM_APDU [09:53:32]CAPDU: 80 0D 02 02 05 EA 38 DE 12 C8 [09:53:32]Write to MH i2c: E2 0D 00 C6 40 80 0D 02 02 05 00 EA 38 DE 12 C8 00 00 64 [09:53:32]Write i2c OK [09:53:32]MH_I2C_Read... [09:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:32]Read from MH i2c: E2 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 03 00 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 03 00 C6 40 00 90 00 7A [09:53:32]RAPDU: 90 00 [09:53:32]wFMCommunicate OK [09:53:32]wFMCommunicate request_size=4 [09:53:32]MH_SAM_APDU [09:53:32]CAPDU: 80 0D 03 02 [09:53:32]Write to MH i2c: E2 08 00 C7 40 80 0D 03 02 00 00 00 00 82 [09:53:32]Write i2c OK [09:53:32]MH_I2C_Read... [09:53:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:32]Read from MH i2c: E2 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 0B 00 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 0B 00 C7 40 00 8C F1 A6 E6 8A 2C 30 EF 90 00 61 [09:53:32]RAPDU: 8C F1 A6 E6 8A 2C 30 EF 90 00 [09:53:32]wFMCommunicate OK [09:53:32]SAM_PROTO_SignData done [09:53:32]FM_MakeSignedData done [09:53:32]CreateOFDProtocolMessage [09:53:32]wFMCommunicate request_size=4 [09:53:32]MH_SAM_APDU [09:53:32]CAPDU: 80 11 00 00 [09:53:32]Write to MH i2c: E2 08 00 C8 40 80 11 00 00 00 00 00 00 82 [09:53:32]Write i2c OK [09:53:32]MH_I2C_Read... [09:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:32]Read from MH i2c: E2 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 17 00 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 17 00 C8 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DD [09:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:53:32]wFMCommunicate OK [09:53:32]CreateOFDProtocolMessage done [09:53:32]OFDSenderStorePacket 118706 [09:53:32]StoreOFDPacket docnum=118706 [09:53:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B8 F8 07 01 8C BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 A0 66 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B2 CF 01 00 35 04 06 00 A2 EA 38 DE 12 C8 8C F1 A6 E6 8A 2C 30 EF [09:53:32]CheckFolder [09:53:32]dirname=/storage/ofd_packets [09:53:32]CheckFolder done [09:53:32]ProducePacketName [09:53:32]name=ofd_packets/00118706 [09:53:32]NVStorageSaveData ofd_packets/00118706 [09:53:32]File name is /storage/ofd_packets/00118706 [09:53:32]Write 301 bytes [09:53:32]NVStorageSaveData done [09:53:32]OFDSenderStorePacket done [09:53:32]KKMCreateOFDPacket done [09:53:32]NVStorageSaveData kkm_last_timestamp [09:53:32]File name is /storage/kkm_last_timestamp [09:53:32]Write 4 bytes [09:53:32]NVStorageSaveData done [09:53:32]ExternCall_PrintAddStr [09:53:32]wPrintStart [09:53:32]Write to MH i2c: 01 00 00 C9 40 09 [09:53:32]Write i2c OK [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: 01 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: 01 07 00 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: 01 07 00 C9 40 00 00 00 00 00 FF 0F 1E [09:53:32]RasterBufferAndPrint [09:53:32]line Счет N : (1)949590 [09:53:32]line ИНН: 02508201610067 [09:53:32]line Контрольно-Кассовый Чек [09:53:32]line ПРОДАЖА [09:53:32]line ТРК (МРК, ГНК) : 51 [09:53:32]line Товар: 2710124130 [09:53:32]line Аи-92-К-4 [09:53:32]line 10.330 * 67.80 [09:53:32]line = 700.37 [09:53:32]line НДС 12% НСП 1% [09:53:32]line > о реализуемом товаре [09:53:32]line ОКРУГЛЕНИЕ: -0.37 [09:53:32]line ИТОГО: 700.00 [09:53:32]line Внесено: 700.00 [09:53:32]line СДАЧА: 0.00 [09:53:32]line НСП 1% : 6.20 [09:53:32]line НДС 12% : 74.38 [09:53:32]line Наличными: 700.00 [09:53:32]line Безнал.: 0.00 [09:53:32]line Место: АЗС № 134 "Партнер Нефть" [09:53:32]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:53:32]line СНО: Общий режим [09:53:32]line Чек 82 29.07.2024 09:53 [09:53:32]line Смена: 434 ФФД: 1.0 [09:53:32]line ЗНМ: 0300000044 [09:53:32]line РНМ: 0000000000092660 [09:53:32]line Версия ККМ: 001 [09:53:32]OFD Sender: Processing packet 118706 [packets to send 86, broken 85] [09:53:32]ProducePacketName [09:53:32]name=ofd_packets/00118706 [09:53:32]OFD Sender: To server: pG, [09:53:32]CommunicateWithHost lk.salyk.kg:30040 [09:53:32]ConnectInit lk.salyk.kg [09:53:33]line ФМ: 0000000000874939 [09:53:33]line ФД: 118706 [09:53:33]line ФПД: 179126860124872 [09:53:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095336&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118706&fm=179126860124872&tin=02508201610067®Number=0000000000092660&sum=70000 [09:53:33]written 0, free lines is 4095 [09:53:33]Connected sock=11 [09:53:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B8 F8 07 01 8C BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 A0 66 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B2 CF 01 00 35 04 06 00 A2 EA 38 DE 12 C8 8C F1 A6 E6 8A 2C 30 EF [09:53:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2F 87 47 00 F7 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 34 39 33 39 10 04 04 00 B2 CF 01 00 F4 03 04 00 2E 14 A7 66 B6 04 01 00 00 16 14 38 30 B7 12 A3 14 [09:53:33]CommunicateWithHost err = 0 [09:53:33]CheckOFDResponse [09:53:33]1017 (14) - 77093643461234 [09:53:33]1041 (16) - 0000000000874939 [09:53:33]1040 (4) - 118706 [09:53:33]1012 (4) - 29.07.2024 04:01 [09:53:33]1206 (1) - 0 [09:53:33]OFD Sender: Remove packet 118706 [09:53:33]ProducePacketName [09:53:33]name=ofd_packets/00118706 [09:53:33]NVStorageDeleteData [09:53:33]Write to MH i2c: 01 00 00 F3 40 33 [09:53:33]Write i2c OK [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: 01 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: 01 07 00 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: 01 07 00 F3 40 00 00 00 00 00 F2 0C 38 [09:53:33]RasterBufferAndPrint [09:53:33]line [09:53:33]line [09:53:33]line [09:53:33]line [09:53:33]line [09:53:33]written 0, free lines is 3319 [09:53:33]MH_Cut [09:53:33]Write to MH i2c: D1 01 00 FA 40 01 0C [09:53:33]Write i2c OK [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: D1 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: D1 01 00 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: D1 01 00 FA 40 00 0B [09:53:33]Write to MH i2c: 01 00 00 FB 40 3B [09:53:33]Write i2c OK [09:53:33]MH_I2C_Read... [09:53:33]OFD Sender: No OFD packet to send [09:53:34]*** Cut start [09:53:34]*** Partial cut [09:53:34]*** CUTSNS_PIN = 1 [09:53:34]*** CUTSNS_PIN = 0 [09:53:34]*** Brake cut motor [09:53:34]Read from MH i2c: 01 [09:53:34]MH_I2C_Read... [09:53:34]*** Stop cut motor [09:53:34]*** Cut end [09:53:34]Read from MH i2c: 01 07 00 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: 01 07 00 FB 40 00 00 00 00 00 FF 0F 50 [09:53:34]process_action close_receipt done [09:53:34]requested_data is exist [09:53:34]produce_requested_data [09:53:34]requested_item fm.sn is exist - process it [09:53:34]wFMCommunicate request_size=4 [09:53:34]MH_SAM_APDU [09:53:34]CAPDU: 80 11 00 00 [09:53:34]Write to MH i2c: E2 08 00 FC 40 80 11 00 00 00 00 00 00 B6 [09:53:34]Write i2c OK [09:53:34]MH_I2C_Read... [09:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:34]Read from MH i2c: E2 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: E2 17 00 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: E2 17 00 FC 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 11 [09:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:53:34]wFMCommunicate OK [09:53:34]requested_item fd.num is exist - process it [09:53:34]SAM_PROTO_GetFieldsCounters [09:53:34]wFMCommunicate request_size=4 [09:53:34]MH_SAM_APDU [09:53:34]CAPDU: 80 13 00 00 [09:53:34]Write to MH i2c: E2 08 00 FD 40 80 13 00 00 00 00 00 00 B9 [09:53:34]Write i2c OK [09:53:34]MH_I2C_Read... [09:53:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:34]Read from MH i2c: E2 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: E2 62 00 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: E2 62 00 FD 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B2 CF 01 00 0E 04 04 00 B2 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 0B [09:53: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B2 CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:34]wFMCommunicate OK [09:53:34]SAM_PROTO_GetFieldsCounters done [09:53:34]requested_item shift.num is exist - process it [09:53:34]requested_item shift.opened is exist - process it [09:53:34]req_shift_opened [09:53:34]FM_GetShiftState [09:53:34]SAM_PROTO_GetShiftState [09:53:34]wFMCommunicate request_size=4 [09:53:34]MH_SAM_APDU [09:53:34]CAPDU: 80 13 01 00 [09:53:34]Write to MH i2c: E2 08 00 FE 40 80 13 01 00 00 00 00 00 BB [09:53:34]Write i2c OK [09:53:34]MH_I2C_Read... [09:53:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:35]Read from MH i2c: E2 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 0E 00 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 0E 00 FE 40 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E9 [09:53:35]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:53:35]wFMCommunicate OK [09:53:35]SAM_PROTO_GetShiftState done [09:53:35]FM_GetShiftState done [09:53:35]req_shift_opened done [09:53:35]requested_item shift.open_date is exist - process it [09:53:35]req_shift_open_date [09:53:35]req_shift_open_date done [09:53:35]produce_requested_data done [09:53:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118706,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:53:35]process_action_free close_receipt [09:53:35]json_value_free [09:53:35]json_value_free done [09:53:35]process_json_proto returns [09:53:35]Send response to host [09:53:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118706,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:53:35]free response buf [09:53:35]execute_script done [09:53:35]execute_script returns [09:53:35]free content buf [09:53:35]Sock 9.Close socket [09:53:35]Sock 9.Thread stoped [09:53:38]OFD Sender: No OFD packet to send [09:53:40]accept exits with 7 [09:53:40]New connection [09:53:40]New thread 3067239780 created [09:53:40]Thread 3067383140 joined [09:53:40]Waiting for new connection... [09:53:40] Sock 7.Parse request [09:53:40]Sock 7.Check first char [09:53:40]Sock 7.First char is OK [09:53:40]request: POST /json_proto HTTP/1.0 [09:53:40]Method: POST [09:53:40]URL: /json_proto [09:53:40]Method is POST - this is cgi request [09:53:40]url: /json_proto [09:53:40]query_string will be loaded in cgi processing [09:53:40]execute_cgi json_proto POST (null) [09:53:40]execute_cgi path=json_proto method=POST [09:53:40]POST find Content-Length [09:53:40]Host: 172.17.45.7:8080 [09:53:40]Content-Length: 820 [09:53:40]Content-Type: application/json [09:53:40] [09:53:40]POST finish read [09:53:40]Found Content-Length = 820 [09:53:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 8000.00, "payments": [ { "type": 1, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:40]execute_script... [09:53:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 8000.00, "payments": [ { "type": 1, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:40]POST & json_proto [09:53:40]process_json_proto [09:53:40]json parsed OK: [09:53:40]protocol is kg_v1.0 [09:53:40]action value=close_receipt [09:53:40]process_action close_receipt [09:53:40]cmd_close_receipt [09:53:40]MH_GetDate [09:53:40]Write to MH i2c: F0 00 00 FF 40 2E [09:53:40]Write i2c OK [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: F0 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: F0 09 00 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: F0 09 00 FF 40 00 A9 66 A7 66 90 0F 3E 66 96 [09:53:40]GetLastDocTimeStamp 1722246816 [09:53:40]current date 1722246825 [09:53:40]FM_GetShiftState [09:53:40]SAM_PROTO_GetShiftState [09:53:40]wFMCommunicate request_size=4 [09:53:40]MH_SAM_APDU [09:53:40]CAPDU: 80 13 01 00 [09:53:40]Write to MH i2c: E2 08 00 00 41 80 13 01 00 00 00 00 00 BE [09:53:40]Write i2c OK [09:53:40]MH_I2C_Read... [09:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:40]Read from MH i2c: E2 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 0E 00 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 0E 00 00 41 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 EC [09:53:40]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:53:40]wFMCommunicate OK [09:53:40]SAM_PROTO_GetShiftState done [09:53:40]FM_GetShiftState done [09:53:40]opened in 1722211641 [09:53:40]opened+sec_in_day 1722298041 [09:53:40]quantity*price = 800023 [09:53:40]sum+1 = 800025 [09:53:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 8000.00 НСП 1% : 70.80 НДС 12% : 849.58 Наличными: 0.00 Безнал.: 8000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 83 29.07.2024 09:53 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118707 ФПД: 189404645756375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095345&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118707&fm=189404645756375&tin=02508201610067®Number=0000000000092660&sum=800000 [09:53:41]StoreToDocumentArchive [09:53:41]shift 434 fd 118707 [09:53:41]save to /storage/0434/doc_00118707 [09:53:41]save last doc name /storage/0434/doc_00118707 to /storage/kkm_last_doc_name [09:53:41]save OK [09:53:41]Clear old archive folders... [09:53:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:53:41]tlvbuf is 01F6A0D0 [09:53:41]SAM_PROTO_ClearQueue [09:53:41]wFMCommunicate request_size=4 [09:53:41]MH_SAM_APDU [09:53:41]CAPDU: 80 09 00 00 [09:53:41]Write to MH i2c: E2 08 00 0D 41 80 09 00 00 00 00 00 00 C0 [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:41]Read from MH i2c: E2 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 03 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 03 00 0D 41 00 90 00 C2 [09:53:41]RAPDU: 90 00 [09:53:41]wFMCommunicate OK [09:53:41]SAM_PROTO_ClearQueue done [09:53:41]KKMCreateOFDPacket [09:53:41]OFDProtocolAddRootSTLVToBuf [09:53:41]FM_MakeSignedData [09:53:41]FM_MakeSignedData [09:53:41]SAM_PROTO_SignData [09:53:41]wFMCommunicate request_size=4 [09:53:41]MH_SAM_APDU [09:53:41]CAPDU: 80 0D 01 02 [09:53:41]Write to MH i2c: E2 08 00 0E 41 80 0D 01 02 00 00 00 00 C8 [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:41]Read from MH i2c: E2 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 03 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 03 00 0E 41 00 90 00 C3 [09:53:41]RAPDU: 90 00 [09:53:41]wFMCommunicate OK [09:53:41]wFMCommunicate request_size=255 [09:53:41]MH_SAM_APDU [09:53:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A9 66 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B3 CF 01 00 35 04 06 00 AC 43 34 A1 [09:53:41]Write to MH i2c: E2 02 01 0F 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A9 66 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B3 CF 01 00 35 04 06 00 AC 43 34 A1 00 00 FB [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:41]Read from MH i2c: E2 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 03 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 03 00 0F 41 00 90 00 C4 [09:53:41]RAPDU: 90 00 [09:53:41]wFMCommunicate OK [09:53:41]wFMCommunicate request_size=7 [09:53:41]MH_SAM_APDU [09:53:41]CAPDU: 80 0D 02 02 02 0D D7 [09:53:41]Write to MH i2c: E2 0A 00 10 41 80 0D 02 02 02 00 0D D7 00 00 B3 [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:41]Read from MH i2c: E2 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 03 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 03 00 10 41 00 90 00 C5 [09:53:41]RAPDU: 90 00 [09:53:41]wFMCommunicate OK [09:53:41]wFMCommunicate request_size=4 [09:53:41]MH_SAM_APDU [09:53:41]CAPDU: 80 0D 03 02 [09:53:41]Write to MH i2c: E2 08 00 11 41 80 0D 03 02 00 00 00 00 CD [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:41]Read from MH i2c: E2 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 0B 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 0B 00 11 41 00 58 95 3E A2 F7 7E BD AF 90 00 7C [09:53:41]RAPDU: 58 95 3E A2 F7 7E BD AF 90 00 [09:53:41]wFMCommunicate OK [09:53:41]SAM_PROTO_SignData done [09:53:41]FM_MakeSignedData done [09:53:41]CreateOFDProtocolMessage [09:53:41]wFMCommunicate request_size=4 [09:53:41]MH_SAM_APDU [09:53:41]CAPDU: 80 11 00 00 [09:53:41]Write to MH i2c: E2 08 00 12 41 80 11 00 00 00 00 00 00 CD [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:41]Read from MH i2c: E2 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 17 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 17 00 12 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 28 [09:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:53:41]wFMCommunicate OK [09:53:41]CreateOFDProtocolMessage done [09:53:41]OFDSenderStorePacket 118707 [09:53:41]StoreOFDPacket docnum=118707 [09:53:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 AC AD 04 01 C5 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A9 66 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B3 CF 01 00 35 04 06 00 AC 43 34 A1 0D D7 58 95 3E A2 F7 7E BD AF [09:53:41]CheckFolder [09:53:41]dirname=/storage/ofd_packets [09:53:41]CheckFolder done [09:53:41]ProducePacketName [09:53:41]name=ofd_packets/00118707 [09:53:41]NVStorageSaveData ofd_packets/00118707 [09:53:41]File name is /storage/ofd_packets/00118707 [09:53:41]Write 298 bytes [09:53:41]NVStorageSaveData done [09:53:41]OFDSenderStorePacket done [09:53:41]KKMCreateOFDPacket done [09:53:41]NVStorageSaveData kkm_last_timestamp [09:53:41]File name is /storage/kkm_last_timestamp [09:53:41]Write 4 bytes [09:53:41]NVStorageSaveData done [09:53:41]ExternCall_PrintAddStr [09:53:41]wPrintStart [09:53:41]Write to MH i2c: 01 00 00 13 41 54 [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: 01 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: 01 07 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: 01 07 00 13 41 00 00 00 00 00 FF 0F 69 [09:53:41]RasterBufferAndPrint [09:53:41]line Счет N : (1)949588 [09:53:41]line ИНН: 02508201610067 [09:53:41]line Контрольно-Кассовый Чек [09:53:41]line ПРОДАЖА [09:53:41]line ТРК (МРК, ГНК) : 21 [09:53:41]line Товар: 2710194800 [09:53:41]line ДТ-К-5 [09:53:41]line 104.990 * 76.20 [09:53:41]line = 8000.24 [09:53:41]line НДС 12% НСП 1% [09:53:41]line > о реализуемом товаре [09:53:41]line ОКРУГЛЕНИЕ: -0.24 [09:53:41]line ИТОГО: 8000.00 [09:53:41]line НСП 1% : 70.80 [09:53:41]line НДС 12% : 849.58 [09:53:41]line Наличными: 0.00 [09:53:41]line Безнал.: 8000.00 [09:53:41]line Место: АЗС № 134 "Партнер Нефть" [09:53:41]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:53:41]line СНО: Общий режим [09:53:41]line Чек 83 29.07.2024 09:53 [09:53:41]line Смена: 434 ФФД: 1.0 [09:53:41]line ЗНМ: 0300000044 [09:53:41]line РНМ: 0000000000092660 [09:53:41]line Версия ККМ: 001 [09:53:41]line Платежная система: O! деньги [09:53:41]line ФМ: 0000000000874939 [09:53:41]line ФД: 118707 [09:53:41]line ФПД: 189404645756375 [09:53:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095345&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118707&fm=189404645756375&tin=02508201610067®Number=0000000000092660&sum=800000 [09:53:41]written 0, free lines is 4095 [09:53:41]OFD Sender: Processing packet 118707 [packets to send 86, broken 85] [09:53:41]ProducePacketName [09:53:41]name=ofd_packets/00118707 [09:53:41]OFD Sender: To server: pG, [09:53:41]CommunicateWithHost lk.salyk.kg:30040 [09:53:41]ConnectInit lk.salyk.kg [09:53:41]Connected sock=10 [09:53:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 AC AD 04 01 C5 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A9 66 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B3 CF 01 00 35 04 06 00 AC 43 34 A1 0D D7 58 95 3E A2 F7 7E BD AF [09:53:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4F AA 47 00 4A BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B3 CF 01 00 F4 03 04 00 36 14 A7 66 B6 04 01 00 00 9A 72 F3 4B 72 6A D6 C7 [09:53:42]CommunicateWithHost err = 0 [09:53:42]CheckOFDResponse [09:53:42]1017 (14) - 77093643461234 [09:53:42]1041 (16) - 0000000000874939 [09:53:42]1040 (4) - 118707 [09:53:42]1012 (4) - 29.07.2024 04:01 [09:53:42]1206 (1) - 0 [09:53:42]OFD Sender: Remove packet 118707 [09:53:42]ProducePacketName [09:53:42]name=ofd_packets/00118707 [09:53:42]NVStorageDeleteData [09:53:42]Write to MH i2c: 01 00 00 3D 41 7E [09:53:42]Write i2c OK [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: 01 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: 01 07 00 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: 01 07 00 3D 41 00 00 00 00 00 FD 0C 8E [09:53:42]RasterBufferAndPrint [09:53:42]line [09:53:42]line [09:53:42]line [09:53:42]line [09:53:42]line [09:53:42]written 0, free lines is 3334 [09:53:42]MH_Cut [09:53:42]Write to MH i2c: D1 01 00 44 41 01 57 [09:53:42]Write i2c OK [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: D1 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: D1 01 00 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: D1 01 00 44 41 00 56 [09:53:42]Write to MH i2c: 01 00 00 45 41 86 [09:53:42]Write i2c OK [09:53:42]MH_I2C_Read... [09:53:42]OFD Sender: No OFD packet to send [09:53:42]*** Cut start [09:53:42]*** Partial cut [09:53:42]*** CUTSNS_PIN = 1 [09:53:43]*** CUTSNS_PIN = 0 [09:53:43]*** Brake cut motor [09:53:43]Read from MH i2c: 01 [09:53:43]MH_I2C_Read... [09:53:43]*** Stop cut motor [09:53:43]*** Cut end [09:53:43]Read from MH i2c: 01 07 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: 01 07 00 45 41 00 00 00 00 00 FF 0F 9B [09:53:43]process_action close_receipt done [09:53:43]requested_data is exist [09:53:43]produce_requested_data [09:53:43]requested_item fm.sn is exist - process it [09:53:43]wFMCommunicate request_size=4 [09:53:43]MH_SAM_APDU [09:53:43]CAPDU: 80 11 00 00 [09:53:43]Write to MH i2c: E2 08 00 46 41 80 11 00 00 00 00 00 00 01 [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:43]Read from MH i2c: E2 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 17 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 17 00 46 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5C [09:53:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:53:43]wFMCommunicate OK [09:53:43]requested_item fd.num is exist - process it [09:53:43]SAM_PROTO_GetFieldsCounters [09:53:43]wFMCommunicate request_size=4 [09:53:43]MH_SAM_APDU [09:53:43]CAPDU: 80 13 00 00 [09:53:43]Write to MH i2c: E2 08 00 47 41 80 13 00 00 00 00 00 00 04 [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:43]Read from MH i2c: E2 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 62 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 62 00 47 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B3 CF 01 00 0E 04 04 00 B2 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 5A [09:53: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B3 CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:43]wFMCommunicate OK [09:53:43]SAM_PROTO_GetFieldsCounters done [09:53:43]requested_item shift.num is exist - process it [09:53:43]requested_item shift.opened is exist - process it [09:53:43]req_shift_opened [09:53:43]FM_GetShiftState [09:53:43]SAM_PROTO_GetShiftState [09:53:43]wFMCommunicate request_size=4 [09:53:43]MH_SAM_APDU [09:53:43]CAPDU: 80 13 01 00 [09:53:43]Write to MH i2c: E2 08 00 48 41 80 13 01 00 00 00 00 00 06 [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:43]Read from MH i2c: E2 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 0E 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 0E 00 48 41 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 34 [09:53:43]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:53:43]wFMCommunicate OK [09:53:43]SAM_PROTO_GetShiftState done [09:53:43]FM_GetShiftState done [09:53:43]req_shift_opened done [09:53:43]requested_item shift.open_date is exist - process it [09:53:43]req_shift_open_date [09:53:43]req_shift_open_date done [09:53:43]produce_requested_data done [09:53:43]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118707,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:53:43]process_action_free close_receipt [09:53:43]json_value_free [09:53:43]json_value_free done [09:53:43]process_json_proto returns [09:53:43]Send response to host [09:53:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118707,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:53:43]free response buf [09:53:43]execute_script done [09:53:43]execute_script returns [09:53:43]free content buf [09:53:43]Sock 7.Close socket [09:53:43]Sock 7.Thread stoped [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:43]accept exits with 9 [09:55:43]New connection [09:55:43]New thread 3067383140 created [09:55:43]Thread 3067239780 joined [09:55:43]Waiting for new connection... [09:55:43] Sock 9.Parse request [09:55:43]Sock 9.Check first char [09:55:43]Sock 9.First char is OK [09:55:43]request: POST /json_proto HTTP/1.0 [09:55:43]Method: POST [09:55:43]URL: /json_proto [09:55:43]Method is POST - this is cgi request [09:55:43]url: /json_proto [09:55:43]query_string will be loaded in cgi processing [09:55:43]execute_cgi json_proto POST (null) [09:55:43]execute_cgi path=json_proto method=POST [09:55:43]POST find Content-Length [09:55:43]Host: 172.17.45.7:8080 [09:55:43]Content-Length: 819 [09:55:43]Content-Type: application/json [09:55:43] [09:55:43]POST finish read [09:55:43]Found Content-Length = 819 [09:55:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 4000.00, "payments": [ { "type": 1, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:43]execute_script... [09:55: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)949591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 4000.00, "payments": [ { "type": 1, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:43]POST & json_proto [09:55:43]process_json_proto [09:55:43]json parsed OK: [09:55:43]protocol is kg_v1.0 [09:55:43]action value=close_receipt [09:55:43]process_action close_receipt [09:55:43]cmd_close_receipt [09:55:43]MH_GetDate [09:55:43]Write to MH i2c: F0 00 00 49 41 79 [09:55:43]Write i2c OK [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: F0 [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: F0 09 00 [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: F0 09 00 49 41 00 24 67 A7 66 90 0F 3E 66 5D [09:55:43]GetLastDocTimeStamp 1722246825 [09:55:43]current date 1722246948 [09:55:43]FM_GetShiftState [09:55:43]SAM_PROTO_GetShiftState [09:55:43]wFMCommunicate request_size=4 [09:55:43]MH_SAM_APDU [09:55:43]CAPDU: 80 13 01 00 [09:55:43]Write to MH i2c: E2 08 00 4A 41 80 13 01 00 00 00 00 00 08 [09:55:43]Write i2c OK [09:55:43]MH_I2C_Read... [09:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:43]Read from MH i2c: E2 [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: E2 0E 00 [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: E2 0E 00 4A 41 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 36 [09:55:43]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:55:43]wFMCommunicate OK [09:55:43]SAM_PROTO_GetShiftState done [09:55:43]FM_GetShiftState done [09:55:43]opened in 1722211641 [09:55:43]opened+sec_in_day 1722298041 [09:55:43]quantity*price = 400050 [09:55:43]sum+1 = 400051 [09:55:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 84 29.07.2024 09:55 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118708 ФПД: 96771740659650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095548&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118708&fm=96771740659650&tin=02508201610067®Number=0000000000092660&sum=400000 [09:55:44]StoreToDocumentArchive [09:55:44]shift 434 fd 118708 [09:55:44]save to /storage/0434/doc_00118708 [09:55:44]save last doc name /storage/0434/doc_00118708 to /storage/kkm_last_doc_name [09:55:44]save OK [09:55:44]Clear old archive folders... [09:55:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:55:44]tlvbuf is 01E52120 [09:55:44]SAM_PROTO_ClearQueue [09:55:44]wFMCommunicate request_size=4 [09:55:44]MH_SAM_APDU [09:55:44]CAPDU: 80 09 00 00 [09:55:44]Write to MH i2c: E2 08 00 57 41 80 09 00 00 00 00 00 00 0A [09:55:44]Write i2c OK [09:55:44]MH_I2C_Read... [09:55:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:44]Read from MH i2c: E2 [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: E2 03 00 [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: E2 03 00 57 41 00 90 00 0C [09:55:44]RAPDU: 90 00 [09:55:44]wFMCommunicate OK [09:55:44]SAM_PROTO_ClearQueue done [09:55:44]KKMCreateOFDPacket [09:55:44]OFDProtocolAddRootSTLVToBuf [09:55:44]FM_MakeSignedData [09:55:44]FM_MakeSignedData [09:55:44]SAM_PROTO_SignData [09:55:44]wFMCommunicate request_size=4 [09:55:44]MH_SAM_APDU [09:55:44]CAPDU: 80 0D 01 02 [09:55:44]Write to MH i2c: E2 08 00 58 41 80 0D 01 02 00 00 00 00 12 [09:55:44]Write i2c OK [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: E2 [09:55:44]MH_I2C_Read... [09:55:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:44]Read from MH i2c: E2 03 00 [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: E2 03 00 58 41 00 90 00 0D [09:55:44]RAPDU: 90 00 [09:55:44]wFMCommunicate OK [09:55:44]wFMCommunicate request_size=255 [09:55:44]MH_SAM_APDU [09:55:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 24 67 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B4 CF 01 00 35 04 06 00 58 03 6D 39 [09:55:44]Write to MH i2c: E2 02 01 59 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 24 67 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B4 CF 01 00 35 04 06 00 58 03 6D 39 00 00 EB [09:55:44]Write i2c OK [09:55:44]MH_I2C_Read... [09:55:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:45]Read from MH i2c: E2 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: E2 03 00 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: E2 03 00 59 41 00 90 00 0E [09:55:45]RAPDU: 90 00 [09:55:45]wFMCommunicate OK [09:55:45]wFMCommunicate request_size=7 [09:55:45]MH_SAM_APDU [09:55:45]CAPDU: 80 0D 02 02 02 EF C2 [09:55:45]Write to MH i2c: E2 0A 00 5A 41 80 0D 02 02 02 00 EF C2 00 00 CA [09:55:45]Write i2c OK [09:55:45]MH_I2C_Read... [09:55:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:45]Read from MH i2c: E2 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: E2 03 00 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: E2 03 00 5A 41 00 90 00 0F [09:55:45]RAPDU: 90 00 [09:55:45]wFMCommunicate OK [09:55:45]wFMCommunicate request_size=4 [09:55:45]MH_SAM_APDU [09:55:45]CAPDU: 80 0D 03 02 [09:55:45]Write to MH i2c: E2 08 00 5B 41 80 0D 03 02 00 00 00 00 17 [09:55:45]Write i2c OK [09:55:45]MH_I2C_Read... [09:55:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:45]Read from MH i2c: E2 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: E2 0B 00 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: E2 0B 00 5B 41 00 AB 6B B3 B5 92 27 6D 45 90 00 01 [09:55:45]RAPDU: AB 6B B3 B5 92 27 6D 45 90 00 [09:55:45]wFMCommunicate OK [09:55:45]SAM_PROTO_SignData done [09:55:45]FM_MakeSignedData done [09:55:45]CreateOFDProtocolMessage [09:55:45]wFMCommunicate request_size=4 [09:55:45]MH_SAM_APDU [09:55:45]CAPDU: 80 11 00 00 [09:55:45]Write to MH i2c: E2 08 00 5C 41 80 11 00 00 00 00 00 00 17 [09:55:45]Write i2c OK [09:55:45]MH_I2C_Read... [09:55:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:45]Read from MH i2c: E2 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: E2 17 00 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: E2 17 00 5C 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 72 [09:55:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:55:45]wFMCommunicate OK [09:55:45]CreateOFDProtocolMessage done [09:55:45]OFDSenderStorePacket 118708 [09:55:45]StoreOFDPacket docnum=118708 [09:55:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2F 5F 04 01 FE 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 24 67 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B4 CF 01 00 35 04 06 00 58 03 6D 39 EF C2 AB 6B B3 B5 92 27 6D 45 [09:55:45]CheckFolder [09:55:45]dirname=/storage/ofd_packets [09:55:45]CheckFolder done [09:55:45]ProducePacketName [09:55:45]name=ofd_packets/00118708 [09:55:45]NVStorageSaveData ofd_packets/00118708 [09:55:45]File name is /storage/ofd_packets/00118708 [09:55:45]Write 298 bytes [09:55:45]NVStorageSaveData done [09:55:45]OFDSenderStorePacket done [09:55:45]KKMCreateOFDPacket done [09:55:45]NVStorageSaveData kkm_last_timestamp [09:55:45]File name is /storage/kkm_last_timestamp [09:55:45]Write 4 bytes [09:55:45]NVStorageSaveData done [09:55:45]ExternCall_PrintAddStr [09:55:45]wPrintStart [09:55:45]Write to MH i2c: 01 00 00 5D 41 9E [09:55:45]Write i2c OK [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: 01 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: 01 07 00 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: 01 07 00 5D 41 00 00 00 00 00 FF 0F B3 [09:55:45]RasterBufferAndPrint [09:55:45]line Счет N : (1)949591 [09:55:45]line ИНН: 02508201610067 [09:55:45]line Контрольно-Кассовый Чек [09:55:45]line ПРОДАЖА [09:55:45]line ТРК (МРК, ГНК) : 21 [09:55:45]line Товар: 2710194800 [09:55:45]line ДТ-К-5 [09:55:45]line 52.500 * 76.20 [09:55:45]line = 4000.50 [09:55:45]line НДС 12% НСП 1% [09:55:45]line > о реализуемом товаре [09:55:45]line ОКРУГЛЕНИЕ: -0.50 [09:55:45]line ИТОГО: 4000.00 [09:55:45]line НСП 1% : 35.40 [09:55:45]line НДС 12% : 424.83 [09:55:45]line Наличными: 0.00 [09:55:45]line Безнал.: 4000.00 [09:55:45]line Место: АЗС № 134 "Партнер Нефть" [09:55:45]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:55:45]line СНО: Общий режим [09:55:45]line Чек 84 29.07.2024 09:55 [09:55:45]line Смена: 434 ФФД: 1.0 [09:55:45]line ЗНМ: 0300000044 [09:55:45]line РНМ: 0000000000092660 [09:55:45]line Версия ККМ: 001 [09:55:45]line Платежная система: O! деньги [09:55:45]line ФМ: 0000000000874939 [09:55:45]line ФД: 118708 [09:55:45]line ФПД: 96771740659650 [09:55:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095548&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118708&fm=96771740659650&tin=02508201610067®Number=0000000000092660&sum=400000 [09:55:45]OFD Sender: Processing packet 118708 [packets to send 86, broken 85] [09:55:45]ProducePacketName [09:55:45]name=ofd_packets/00118708 [09:55:45]OFD Sender: To server: pG, [09:55:45]CommunicateWithHost lk.salyk.kg:30040 [09:55:45]ConnectInit lk.salyk.kg [09:55:45]written 0, free lines is 4095 [09:55:45]Connected sock=10 [09:55:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2F 5F 04 01 FE 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 24 67 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B4 CF 01 00 35 04 06 00 58 03 6D 39 EF C2 AB 6B B3 B5 92 27 6D 45 [09:55:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B3 F5 47 00 A5 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B4 CF 01 00 F4 03 04 00 B2 14 A7 66 B6 04 01 00 00 51 34 6B 26 1B 4B 18 53 [09:55:45]CommunicateWithHost err = 0 [09:55:45]CheckOFDResponse [09:55:45]1017 (14) - 77093643461234 [09:55:45]1041 (16) - 0000000000874939 [09:55:45]1040 (4) - 118708 [09:55:45]1012 (4) - 29.07.2024 04:04 [09:55:45]1206 (1) - 0 [09:55:45]OFD Sender: Remove packet 118708 [09:55:45]ProducePacketName [09:55:45]name=ofd_packets/00118708 [09:55:45]NVStorageDeleteData [09:55:45]Write to MH i2c: 01 00 00 87 41 C8 [09:55:45]Write i2c OK [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: 01 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: 01 07 00 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: 01 07 00 87 41 00 00 00 00 00 DC 0C B7 [09:55:45]RasterBufferAndPrint [09:55:45]line [09:55:45]line [09:55:45]line [09:55:45]line [09:55:45]line [09:55:45]written 0, free lines is 3298 [09:55:45]MH_Cut [09:55:45]Write to MH i2c: D1 01 00 8E 41 01 A1 [09:55:45]Write i2c OK [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: D1 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: D1 01 00 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: D1 01 00 8E 41 00 A0 [09:55:45]Write to MH i2c: 01 00 00 8F 41 D0 [09:55:45]Write i2c OK [09:55:45]MH_I2C_Read... [09:55:46]OFD Sender: No OFD packet to send [09:55:46]*** Cut start [09:55:46]*** Partial cut [09:55:46]*** CUTSNS_PIN = 1 [09:55:46]*** CUTSNS_PIN = 0 [09:55:46]*** Brake cut motor [09:55:47]Read from MH i2c: 01 [09:55:47]MH_I2C_Read... [09:55:47]*** Stop cut motor [09:55:47]*** Cut end [09:55:47]Read from MH i2c: 01 07 00 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: 01 07 00 8F 41 00 00 00 00 00 FF 0F E5 [09:55:47]process_action close_receipt done [09:55:47]requested_data is exist [09:55:47]produce_requested_data [09:55:47]requested_item fm.sn is exist - process it [09:55:47]wFMCommunicate request_size=4 [09:55:47]MH_SAM_APDU [09:55:47]CAPDU: 80 11 00 00 [09:55:47]Write to MH i2c: E2 08 00 90 41 80 11 00 00 00 00 00 00 4B [09:55:47]Write i2c OK [09:55:47]MH_I2C_Read... [09:55:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:47]Read from MH i2c: E2 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: E2 17 00 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: E2 17 00 90 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A6 [09:55:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:55:47]wFMCommunicate OK [09:55:47]requested_item fd.num is exist - process it [09:55:47]SAM_PROTO_GetFieldsCounters [09:55:47]wFMCommunicate request_size=4 [09:55:47]MH_SAM_APDU [09:55:47]CAPDU: 80 13 00 00 [09:55:47]Write to MH i2c: E2 08 00 91 41 80 13 00 00 00 00 00 00 4E [09:55:47]Write i2c OK [09:55:47]MH_I2C_Read... [09:55:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:47]Read from MH i2c: E2 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: E2 62 00 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: E2 62 00 91 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B4 CF 01 00 0E 04 04 00 B2 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 A8 [09: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B4 CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:47]wFMCommunicate OK [09:55:47]SAM_PROTO_GetFieldsCounters done [09:55:47]requested_item shift.num is exist - process it [09:55:47]requested_item shift.opened is exist - process it [09:55:47]req_shift_opened [09:55:47]FM_GetShiftState [09:55:47]SAM_PROTO_GetShiftState [09:55:47]wFMCommunicate request_size=4 [09:55:47]MH_SAM_APDU [09:55:47]CAPDU: 80 13 01 00 [09:55:47]Write to MH i2c: E2 08 00 92 41 80 13 01 00 00 00 00 00 50 [09:55:47]Write i2c OK [09:55:47]MH_I2C_Read... [09:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:47]Read from MH i2c: E2 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: E2 0E 00 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: E2 0E 00 92 41 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 7E [09:55:47]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:55:47]wFMCommunicate OK [09:55:47]SAM_PROTO_GetShiftState done [09:55:47]FM_GetShiftState done [09:55:47]req_shift_opened done [09:55:47]requested_item shift.open_date is exist - process it [09:55:47]req_shift_open_date [09:55:47]req_shift_open_date done [09:55:47]produce_requested_data done [09:55:47]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118708,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:55:47]process_action_free close_receipt [09:55:47]json_value_free [09:55:47]json_value_free done [09:55:47]process_json_proto returns [09:55:47]Send response to host [09:55:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118708,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:55:47]free response buf [09:55:47]execute_script done [09:55:47]execute_script returns [09:55:47]free content buf [09:55:47]Sock 9.Close socket [09:55:47]Sock 9.Thread stoped [09:55:51]OFD Sender: No OFD packet to send [09:55:55]accept exits with 7 [09:55:55]New connection [09:55:55]New thread 3067239780 created [09:55:55]Thread 3067383140 joined [09:55:55]Waiting for new connection... [09:55:55] Sock 7.Parse request [09:55:55]Sock 7.Check first char [09:55:55]Sock 7.First char is OK [09:55:55]request: POST /json_proto HTTP/1.0 [09:55:55]Method: POST [09:55:55]URL: /json_proto [09:55:55]Method is POST - this is cgi request [09:55:55]url: /json_proto [09:55:55]query_string will be loaded in cgi processing [09:55:55]execute_cgi json_proto POST (null) [09:55:55]execute_cgi path=json_proto method=POST [09:55:55]POST find Content-Length [09:55:55]Host: 172.17.45.7:8080 [09:55:55]Content-Length: 674 [09:55:55]Content-Type: application/json [09:55:55] [09:55:55]POST finish read [09:55:55]Found Content-Length = 674 [09:55:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:55]execute_script... [09:55:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:55]POST & json_proto [09:55:55]process_json_proto [09:55:55]json parsed OK: [09:55:55]protocol is kg_v1.0 [09:55:55]action value=close_receipt [09:55:55]process_action close_receipt [09:55:55]cmd_close_receipt [09:55:55]MH_GetDate [09:55:55]Write to MH i2c: F0 00 00 93 41 C3 [09:55:55]Write i2c OK [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: F0 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: F0 09 00 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: F0 09 00 93 41 00 30 67 A7 66 90 0F 3E 66 B3 [09:55:55]GetLastDocTimeStamp 1722246948 [09:55:55]current date 1722246960 [09:55:55]FM_GetShiftState [09:55:55]SAM_PROTO_GetShiftState [09:55:55]wFMCommunicate request_size=4 [09:55:55]MH_SAM_APDU [09:55:55]CAPDU: 80 13 01 00 [09:55:55]Write to MH i2c: E2 08 00 94 41 80 13 01 00 00 00 00 00 52 [09:55:55]Write i2c OK [09:55:55]MH_I2C_Read... [09:55:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:55]Read from MH i2c: E2 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: E2 0E 00 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: E2 0E 00 94 41 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 80 [09:55:55]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:55:55]wFMCommunicate OK [09:55:55]SAM_PROTO_GetShiftState done [09:55:55]FM_GetShiftState done [09:55:55]opened in 1722211641 [09:55:55]opened+sec_in_day 1722298041 [09:55:55]quantity*price = 60045 [09:55:55]sum+1 = 60047 [09:55:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 85 29.07.2024 09:56 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118709 ФПД: 163893665675647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095600&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118709&fm=163893665675647&tin=02508201610067®Number=0000000000092660&sum=60000 [09:55:56]StoreToDocumentArchive [09:55:56]shift 434 fd 118709 [09:55:56]save to /storage/0434/doc_00118709 [09:55:56]save last doc name /storage/0434/doc_00118709 to /storage/kkm_last_doc_name [09:55:56]save OK [09:55:56]Clear old archive folders... [09:55:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:55:56]tlvbuf is 01F6A0D0 [09:55:56]SAM_PROTO_ClearQueue [09:55:56]wFMCommunicate request_size=4 [09:55:56]MH_SAM_APDU [09:55:56]CAPDU: 80 09 00 00 [09:55:56]Write to MH i2c: E2 08 00 A1 41 80 09 00 00 00 00 00 00 54 [09:55:56]Write i2c OK [09:55:56]MH_I2C_Read... [09:55:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:56]Read from MH i2c: E2 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 03 00 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 03 00 A1 41 00 90 00 56 [09:55:56]RAPDU: 90 00 [09:55:56]wFMCommunicate OK [09:55:56]SAM_PROTO_ClearQueue done [09:55:56]KKMCreateOFDPacket [09:55:56]OFDProtocolAddRootSTLVToBuf [09:55:56]FM_MakeSignedData [09:55:56]FM_MakeSignedData [09:55:56]SAM_PROTO_SignData [09:55:56]wFMCommunicate request_size=4 [09:55:56]MH_SAM_APDU [09:55:56]CAPDU: 80 0D 01 02 [09:55:56]Write to MH i2c: E2 08 00 A2 41 80 0D 01 02 00 00 00 00 5C [09:55:56]Write i2c OK [09:55:56]MH_I2C_Read... [09:55:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:56]Read from MH i2c: E2 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 03 00 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 03 00 A2 41 00 90 00 57 [09:55:56]RAPDU: 90 00 [09:55:56]wFMCommunicate OK [09:55:56]wFMCommunicate request_size=255 [09:55:56]MH_SAM_APDU [09:55: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 30 67 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B5 CF 01 00 35 04 06 00 95 0F 77 B9 [09:55:56]Write to MH i2c: E2 02 01 A3 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 30 67 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B5 CF 01 00 35 04 06 00 95 0F 77 B9 00 00 B2 [09:55:56]OFD Sender: No OFD packet to send [09:55:56]Write i2c OK [09:55:56]MH_I2C_Read... [09:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:56]Read from MH i2c: E2 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 03 00 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 03 00 A3 41 00 90 00 58 [09:55:56]RAPDU: 90 00 [09:55:56]wFMCommunicate OK [09:55:56]wFMCommunicate request_size=7 [09:55:56]MH_SAM_APDU [09:55:56]CAPDU: 80 0D 02 02 02 39 7F [09:55:56]Write to MH i2c: E2 0A 00 A4 41 80 0D 02 02 02 00 39 7F 00 00 1B [09:55:56]Write i2c OK [09:55:56]MH_I2C_Read... [09:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:56]Read from MH i2c: E2 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 03 00 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 03 00 A4 41 00 90 00 59 [09:55:56]RAPDU: 90 00 [09:55:56]wFMCommunicate OK [09:55:56]wFMCommunicate request_size=4 [09:55:56]MH_SAM_APDU [09:55:56]CAPDU: 80 0D 03 02 [09:55:56]Write to MH i2c: E2 08 00 A5 41 80 0D 03 02 00 00 00 00 61 [09:55:56]Write i2c OK [09:55:56]MH_I2C_Read... [09:55:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:56]Read from MH i2c: E2 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 0B 00 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 0B 00 A5 41 00 43 B2 CC 46 AA 4B 08 35 90 00 9B [09:55:56]RAPDU: 43 B2 CC 46 AA 4B 08 35 90 00 [09:55:56]wFMCommunicate OK [09:55:56]SAM_PROTO_SignData done [09:55:56]FM_MakeSignedData done [09:55:56]CreateOFDProtocolMessage [09:55:56]wFMCommunicate request_size=4 [09:55:56]MH_SAM_APDU [09:55:56]CAPDU: 80 11 00 00 [09:55:56]Write to MH i2c: E2 08 00 A6 41 80 11 00 00 00 00 00 00 61 [09:55:56]Write i2c OK [09:55:56]MH_I2C_Read... [09:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:56]Read from MH i2c: E2 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 17 00 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: E2 17 00 A6 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BC [09:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:55:56]wFMCommunicate OK [09:55:56]CreateOFDProtocolMessage done [09:55:56]OFDSenderStorePacket 118709 [09:55:56]StoreOFDPacket docnum=118709 [09:55:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E8 4C 04 01 90 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 30 67 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B5 CF 01 00 35 04 06 00 95 0F 77 B9 39 7F 43 B2 CC 46 AA 4B 08 35 [09:55:56]CheckFolder [09:55:56]dirname=/storage/ofd_packets [09:55:56]CheckFolder done [09:55:56]ProducePacketName [09:55:56]name=ofd_packets/00118709 [09:55:56]NVStorageSaveData ofd_packets/00118709 [09:55:56]File name is /storage/ofd_packets/00118709 [09:55:56]Write 298 bytes [09:55:56]NVStorageSaveData done [09:55:56]OFDSenderStorePacket done [09:55:56]KKMCreateOFDPacket done [09:55:56]NVStorageSaveData kkm_last_timestamp [09:55:56]File name is /storage/kkm_last_timestamp [09:55:56]Write 4 bytes [09:55:56]NVStorageSaveData done [09:55:56]ExternCall_PrintAddStr [09:55:56]wPrintStart [09:55:56]Write to MH i2c: 01 00 00 A7 41 E8 [09:55:56]Write i2c OK [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: 01 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: 01 07 00 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: 01 07 00 A7 41 00 00 00 00 00 FF 0F FD [09:55:56]RasterBufferAndPrint [09:55:56]line Счет N : (1)949592 [09:55:56]line ИНН: 02508201610067 [09:55:56]line Контрольно-Кассовый Чек [09:55:56]line ПРОДАЖА [09:55:56]line ТРК (МРК, ГНК) : 44 [09:55:56]line Товар: 2710194800 [09:55:56]line ДТ-К-5 [09:55:56]line 7.880 * 76.20 [09:55:56]line = 600.46 [09:55:56]line НДС 12% НСП 1% [09:55:56]line > о реализуемом товаре [09:55:56]line ОКРУГЛЕНИЕ: -0.46 [09:55:56]line ИТОГО: 600.00 [09:55:56]line Внесено: 600.00 [09:55:56]line СДАЧА: 0.00 [09:55:56]line НСП 1% : 5.31 [09:55:56]line НДС 12% : 63.77 [09:55:56]line Наличными: 600.00 [09:55:56]line Безнал.: 0.00 [09:55:56]line Место: АЗС № 134 "Партнер Нефть" [09:55:56]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:55:56]line СНО: Общий режим [09:55:56]line Чек 85 29.07.2024 09:56 [09:55:56]line Смена: 434 ФФД: 1.0 [09:55:56]line ЗНМ: 0300000044 [09:55:56]line РНМ: 0000000000092660 [09:55:56]line Версия ККМ: 001 [09:55:56]line ФМ: 0000000000874939 [09:55:56]line ФД: 118709 [09:55:56]line ФПД: 163893665675647 [09:55:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095600&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118709&fm=163893665675647&tin=02508201610067®Number=0000000000092660&sum=60000 [09:55:57]written 0, free lines is 4095 [09:55:57]OFD Sender: Processing packet 118709 [packets to send 86, broken 85] [09:55:57]ProducePacketName [09:55:57]name=ofd_packets/00118709 [09:55:57]OFD Sender: To server: pG, [09:55:57]CommunicateWithHost lk.salyk.kg:30040 [09:55:57]ConnectInit lk.salyk.kg [09:55:57]Connected sock=10 [09:55:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E8 4C 04 01 90 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 30 67 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B5 CF 01 00 35 04 06 00 95 0F 77 B9 39 7F 43 B2 CC 46 AA 4B 08 35 [09:55:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 53 F2 47 00 8A 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 34 39 33 39 10 04 04 00 B5 CF 01 00 F4 03 04 00 BE 14 A7 66 B6 04 01 00 00 84 55 97 B6 2F AF FD 0E [09:55:57]CommunicateWithHost err = 0 [09:55:57]CheckOFDResponse [09:55:57]1017 (14) - 77093643461234 [09:55:57]1041 (16) - 0000000000874939 [09:55:57]1040 (4) - 118709 [09:55:57]1012 (4) - 29.07.2024 04:04 [09:55:57]1206 (1) - 0 [09:55:57]OFD Sender: Remove packet 118709 [09:55:57]ProducePacketName [09:55:57]name=ofd_packets/00118709 [09:55:57]NVStorageDeleteData [09:55:57]Write to MH i2c: 01 00 00 D1 41 12 [09:55:57]Write i2c OK [09:55:57]MH_I2C_Read... [09:55:57]Read from MH i2c: 01 [09:55:57]MH_I2C_Read... [09:55:57]Read from MH i2c: 01 07 00 [09:55:57]MH_I2C_Read... [09:55:57]Read from MH i2c: 01 07 00 D1 41 00 00 00 00 00 DF 0C 04 [09:55:57]RasterBufferAndPrint [09:55:57]line [09:55:57]line [09:55:57]line [09:55:57]line [09:55:57]line [09:55:57]written 0, free lines is 3302 [09:55:57]MH_Cut [09:55:57]Write to MH i2c: D1 01 00 D8 41 01 EB [09:55:57]Write i2c OK [09:55:57]MH_I2C_Read... [09:55:57]Read from MH i2c: D1 [09:55:57]MH_I2C_Read... [09:55:57]Read from MH i2c: D1 01 00 [09:55:57]MH_I2C_Read... [09:55:57]Read from MH i2c: D1 01 00 D8 41 00 EA [09:55:57]Write to MH i2c: 01 00 00 D9 41 1A [09:55:57]Write i2c OK [09:55:57]MH_I2C_Read... [09:55:57]OFD Sender: No OFD packet to send [09:55:58]*** Cut start [09:55:58]*** Partial cut [09:55:58]*** CUTSNS_PIN = 1 [09:55:58]*** CUTSNS_PIN = 0 [09:55:58]*** Brake cut motor [09:55:58]Read from MH i2c: 01 [09:55:58]MH_I2C_Read... [09:55:58]*** Stop cut motor [09:55:58]*** Cut end [09:55:58]Read from MH i2c: 01 07 00 [09:55:58]MH_I2C_Read... [09:55:58]Read from MH i2c: 01 07 00 D9 41 00 00 00 00 00 FF 0F 2F [09:55:58]process_action close_receipt done [09:55:58]requested_data is exist [09:55:58]produce_requested_data [09:55:58]requested_item fm.sn is exist - process it [09:55:58]wFMCommunicate request_size=4 [09:55:58]MH_SAM_APDU [09:55:58]CAPDU: 80 11 00 00 [09:55:58]Write to MH i2c: E2 08 00 DA 41 80 11 00 00 00 00 00 00 95 [09:55:58]Write i2c OK [09:55:58]MH_I2C_Read... [09:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:58]Read from MH i2c: E2 [09:55:58]MH_I2C_Read... [09:55:58]Read from MH i2c: E2 17 00 [09:55:58]MH_I2C_Read... [09:55:58]Read from MH i2c: E2 17 00 DA 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F0 [09:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:55:58]wFMCommunicate OK [09:55:58]requested_item fd.num is exist - process it [09:55:58]SAM_PROTO_GetFieldsCounters [09:55:58]wFMCommunicate request_size=4 [09:55:58]MH_SAM_APDU [09:55:58]CAPDU: 80 13 00 00 [09:55:58]Write to MH i2c: E2 08 00 DB 41 80 13 00 00 00 00 00 00 98 [09:55:58]Write i2c OK [09:55:58]MH_I2C_Read... [09:55:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:59]Read from MH i2c: E2 [09:55:59]MH_I2C_Read... [09:55:59]Read from MH i2c: E2 62 00 [09:55:59]MH_I2C_Read... [09:55:59]Read from MH i2c: E2 62 00 DB 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B5 CF 01 00 0E 04 04 00 B2 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 F6 [09:55: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B5 CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:59]wFMCommunicate OK [09:55:59]SAM_PROTO_GetFieldsCounters done [09:55:59]requested_item shift.num is exist - process it [09:55:59]requested_item shift.opened is exist - process it [09:55:59]req_shift_opened [09:55:59]FM_GetShiftState [09:55:59]SAM_PROTO_GetShiftState [09:55:59]wFMCommunicate request_size=4 [09:55:59]MH_SAM_APDU [09:55:59]CAPDU: 80 13 01 00 [09:55:59]Write to MH i2c: E2 08 00 DC 41 80 13 01 00 00 00 00 00 9A [09:55:59]Write i2c OK [09:55:59]MH_I2C_Read... [09:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:59]Read from MH i2c: E2 [09:55:59]MH_I2C_Read... [09:55:59]Read from MH i2c: E2 0E 00 [09:55:59]MH_I2C_Read... [09:55:59]Read from MH i2c: E2 0E 00 DC 41 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C8 [09:55:59]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:55:59]wFMCommunicate OK [09:55:59]SAM_PROTO_GetShiftState done [09:55:59]FM_GetShiftState done [09:55:59]req_shift_opened done [09:55:59]requested_item shift.open_date is exist - process it [09:55:59]req_shift_open_date [09:55:59]req_shift_open_date done [09:55:59]produce_requested_data done [09:55:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118709,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:55:59]process_action_free close_receipt [09:55:59]json_value_free [09:55:59]json_value_free done [09:55:59]process_json_proto returns [09:55:59]Send response to host [09:55:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118709,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:55:59]free response buf [09:55:59]execute_script done [09:55:59]execute_script returns [09:55:59]free content buf [09:55:59]Sock 7.Close socket [09:55:59]Sock 7.Thread stoped [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:26]accept exits with 9 [09:56:26]New connection [09:56:26]New thread 3067383140 created [09:56:26]Thread 3067239780 joined [09:56:26]Waiting for new connection... [09:56:26] Sock 9.Parse request [09:56:26]Sock 9.Check first char [09:56:26]Sock 9.First char is OK [09:56:26]request: POST /json_proto HTTP/1.0 [09:56:26]Method: POST [09:56:26]URL: /json_proto [09:56:26]Method is POST - this is cgi request [09:56:26]url: /json_proto [09:56:26]query_string will be loaded in cgi processing [09:56:26]execute_cgi json_proto POST (null) [09:56:26]execute_cgi path=json_proto method=POST [09:56:26]POST find Content-Length [09:56:26]Host: 172.17.45.7:8080 [09:56:26]Content-Length: 682 [09:56:26]Content-Type: application/json [09:56:26] [09:56:26]POST finish read [09:56:26]Found Content-Length = 682 [09:56:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:26]execute_script... [09:56:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:26]POST & json_proto [09:56:26]process_json_proto [09:56:26]json parsed OK: [09:56:26]protocol is kg_v1.0 [09:56:26]action value=close_receipt [09:56:26]process_action close_receipt [09:56:26]cmd_close_receipt [09:56:26]MH_GetDate [09:56:26]Write to MH i2c: F0 00 00 DD 41 0D [09:56:26]Write i2c OK [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: F0 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: F0 09 00 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: F0 09 00 DD 41 00 4F 67 A7 66 90 0F 3E 66 1C [09:56:26]GetLastDocTimeStamp 1722246960 [09:56:26]current date 1722246991 [09:56:26]FM_GetShiftState [09:56:26]SAM_PROTO_GetShiftState [09:56:26]wFMCommunicate request_size=4 [09:56:26]MH_SAM_APDU [09:56:26]CAPDU: 80 13 01 00 [09:56:26]Write to MH i2c: E2 08 00 DE 41 80 13 01 00 00 00 00 00 9C [09:56:26]Write i2c OK [09:56:26]MH_I2C_Read... [09:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:26]Read from MH i2c: E2 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: E2 0E 00 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: E2 0E 00 DE 41 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 CA [09:56:26]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:56:26]wFMCommunicate OK [09:56:26]SAM_PROTO_GetShiftState done [09:56:26]FM_GetShiftState done [09:56:26]opened in 1722211641 [09:56:26]opened+sec_in_day 1722298041 [09:56:26]quantity*price = 100005 [09:56:26]sum+1 = 100006 [09:56:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 86 29.07.2024 09:56 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118710 ФПД: 240100479413013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095631&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118710&fm=240100479413013&tin=02508201610067®Number=0000000000092660&sum=100000 [09:56:27]StoreToDocumentArchive [09:56:27]shift 434 fd 118710 [09:56:27]save to /storage/0434/doc_00118710 [09:56:27]save last doc name /storage/0434/doc_00118710 to /storage/kkm_last_doc_name [09:56:27]save OK [09:56:27]Clear old archive folders... [09:56:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:56:27]tlvbuf is B6E11BB0 [09:56:27]SAM_PROTO_ClearQueue [09:56:27]wFMCommunicate request_size=4 [09:56:27]MH_SAM_APDU [09:56:27]CAPDU: 80 09 00 00 [09:56:27]Write to MH i2c: E2 08 00 EB 41 80 09 00 00 00 00 00 00 9E [09:56:27]Write i2c OK [09:56:27]MH_I2C_Read... [09:56:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:27]Read from MH i2c: E2 [09:56:27]MH_I2C_Read... [09:56:27]Read from MH i2c: E2 03 00 [09:56:27]MH_I2C_Read... [09:56:27]Read from MH i2c: E2 03 00 EB 41 00 90 00 A0 [09:56:27]RAPDU: 90 00 [09:56:27]wFMCommunicate OK [09:56:27]SAM_PROTO_ClearQueue done [09:56:27]KKMCreateOFDPacket [09:56:27]OFDProtocolAddRootSTLVToBuf [09:56:27]FM_MakeSignedData [09:56:27]FM_MakeSignedData [09:56:27]SAM_PROTO_SignData [09:56:27]wFMCommunicate request_size=4 [09:56:27]MH_SAM_APDU [09:56:27]CAPDU: 80 0D 01 02 [09:56:27]Write to MH i2c: E2 08 00 EC 41 80 0D 01 02 00 00 00 00 A6 [09:56:27]Write i2c OK [09:56:27]MH_I2C_Read... [09:56:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:27]Read from MH i2c: E2 [09:56:27]MH_I2C_Read... [09:56:27]Read from MH i2c: E2 03 00 [09:56:27]MH_I2C_Read... [09:56:27]Read from MH i2c: E2 03 00 EC 41 00 90 00 A1 [09:56:27]RAPDU: 90 00 [09:56:27]wFMCommunicate OK [09:56:27]wFMCommunicate request_size=255 [09:56:27]MH_SAM_APDU [09:56:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 4F 67 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B6 CF 01 00 35 04 06 00 DA [09:56:27]Write to MH i2c: E2 02 01 ED 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 4F 67 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B6 CF 01 00 35 04 06 00 DA 00 00 E5 [09:56:27]Write i2c OK [09:56:27]MH_I2C_Read... [09:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:27]Read from MH i2c: E2 [09:56:27]MH_I2C_Read... [09:56:27]Read from MH i2c: E2 03 00 [09:56:27]MH_I2C_Read... [09:56:27]Read from MH i2c: E2 03 00 ED 41 00 90 00 A2 [09:56:27]RAPDU: 90 00 [09:56:27]wFMCommunicate OK [09:56:27]wFMCommunicate request_size=10 [09:56:27]MH_SAM_APDU [09:56:27]CAPDU: 80 0D 02 02 05 5E BF C9 2B 15 [09:56:27]Write to MH i2c: E2 0D 00 EE 41 80 0D 02 02 05 00 5E BF C9 2B 15 00 00 D9 [09:56:27]Write i2c OK [09:56:27]MH_I2C_Read... [09:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:27]Read from MH i2c: E2 [09:56:27]MH_I2C_Read... [09:56:27]Read from MH i2c: E2 03 00 [09:56:27]MH_I2C_Read... [09:56:28]Read from MH i2c: E2 03 00 EE 41 00 90 00 A3 [09:56:28]RAPDU: 90 00 [09:56:28]wFMCommunicate OK [09:56:28]wFMCommunicate request_size=4 [09:56:28]MH_SAM_APDU [09:56:28]CAPDU: 80 0D 03 02 [09:56:28]Write to MH i2c: E2 08 00 EF 41 80 0D 03 02 00 00 00 00 AB [09:56:28]Write i2c OK [09:56:28]MH_I2C_Read... [09:56:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:28]OFD Sender: No OFD packet to send [09:56:28]Read from MH i2c: E2 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: E2 0B 00 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: E2 0B 00 EF 41 00 56 E2 18 86 F8 AD 0C 54 90 00 87 [09:56:28]RAPDU: 56 E2 18 86 F8 AD 0C 54 90 00 [09:56:28]wFMCommunicate OK [09:56:28]SAM_PROTO_SignData done [09:56:28]FM_MakeSignedData done [09:56:28]CreateOFDProtocolMessage [09:56:28]wFMCommunicate request_size=4 [09:56:28]MH_SAM_APDU [09:56:28]CAPDU: 80 11 00 00 [09:56:28]Write to MH i2c: E2 08 00 F0 41 80 11 00 00 00 00 00 00 AB [09:56:28]Write i2c OK [09:56:28]MH_I2C_Read... [09:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:28]Read from MH i2c: E2 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: E2 17 00 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: E2 17 00 F0 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 06 [09:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:56:28]wFMCommunicate OK [09:56:28]CreateOFDProtocolMessage done [09:56:28]OFDSenderStorePacket 118710 [09:56:28]StoreOFDPacket docnum=118710 [09:56:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 80 F6 07 01 C7 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 4F 67 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B6 CF 01 00 35 04 06 00 DA 5E BF C9 2B 15 56 E2 18 86 F8 AD 0C 54 [09:56:28]CheckFolder [09:56:28]dirname=/storage/ofd_packets [09:56:28]CheckFolder done [09:56:28]ProducePacketName [09:56:28]name=ofd_packets/00118710 [09:56:28]NVStorageSaveData ofd_packets/00118710 [09:56:28]File name is /storage/ofd_packets/00118710 [09:56:28]Write 301 bytes [09:56:28]NVStorageSaveData done [09:56:28]OFDSenderStorePacket done [09:56:28]KKMCreateOFDPacket done [09:56:28]NVStorageSaveData kkm_last_timestamp [09:56:28]File name is /storage/kkm_last_timestamp [09:56:28]Write 4 bytes [09:56:28]NVStorageSaveData done [09:56:28]ExternCall_PrintAddStr [09:56:28]wPrintStart [09:56:28]Write to MH i2c: 01 00 00 F1 41 32 [09:56:28]Write i2c OK [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: 01 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: 01 07 00 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: 01 07 00 F1 41 00 00 00 00 00 FF 0F 47 [09:56:28]RasterBufferAndPrint [09:56:28]line Счет N : (1)949593 [09:56:28]line ИНН: 02508201610067 [09:56:28]line Контрольно-Кассовый Чек [09:56:28]line ПРОДАЖА [09:56:28]line ТРК (МРК, ГНК) : 61 [09:56:28]line Товар: 2710124130 [09:56:28]line Аи-92-К-4 [09:56:28]line 14.750 * 67.80 [09:56:28]line = 1000.05 [09:56:28]line НДС 12% НСП 1% [09:56:28]line > о реализуемом товаре [09:56:28]line ОКРУГЛЕНИЕ: -0.05 [09:56:28]line ИТОГО: 1000.00 [09:56:28]line Внесено: 1000.00 [09:56:28]line СДАЧА: 0.00 [09:56:28]line НСП 1% : 8.85 [09:56:28]line НДС 12% : 106.20 [09:56:28]line Наличными: 1000.00 [09:56:28]line Безнал.: 0.00 [09:56:28]line Место: АЗС № 134 "Партнер Нефть" [09:56:28]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:56:28]line СНО: Общий режим [09:56:28]line Чек 86 29.07.2024 09:56 [09:56:28]line Смена: 434 ФФД: 1.0 [09:56:28]line ЗНМ: 0300000044 [09:56:28]line РНМ: 0000000000092660 [09:56:28]line Версия ККМ: 001 [09:56:28]line ФМ: 0000000000874939 [09:56:28]line ФД: 118710 [09:56:28]line ФПД: 240100479413013 [09:56:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095631&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118710&fm=240100479413013&tin=02508201610067®Number=0000000000092660&sum=100000 [09:56:28]OFD Sender: Processing packet 118710 [packets to send 86, broken 85] [09:56:28]ProducePacketName [09:56:28]name=ofd_packets/00118710 [09:56:28]OFD Sender: To server: pG, [09:56:28]CommunicateWithHost lk.salyk.kg:30040 [09:56:28]ConnectInit lk.salyk.kg [09:56:28]written 0, free lines is 4095 [09:56:28]Connected sock=10 [09:56:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 80 F6 07 01 C7 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 4F 67 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B6 CF 01 00 35 04 06 00 DA 5E BF C9 2B 15 56 E2 18 86 F8 AD 0C 54 [09:56:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C3 67 47 00 0A 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 34 39 33 39 10 04 04 00 B6 CF 01 00 F4 03 04 00 DD 14 A7 66 B6 04 01 00 00 EC B9 69 1E 82 54 A5 29 [09:56:28]CommunicateWithHost err = 0 [09:56:28]CheckOFDResponse [09:56:28]1017 (14) - 77093643461234 [09:56:28]1041 (16) - 0000000000874939 [09:56:28]1040 (4) - 118710 [09:56:28]1012 (4) - 29.07.2024 04:04 [09:56:28]1206 (1) - 0 [09:56:28]OFD Sender: Remove packet 118710 [09:56:28]ProducePacketName [09:56:28]name=ofd_packets/00118710 [09:56:28]NVStorageDeleteData [09:56:28]Write to MH i2c: 01 00 00 1B 42 5D [09:56:28]Write i2c OK [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: 01 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: 01 07 00 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: 01 07 00 1B 42 00 00 00 00 00 DD 0C 4D [09:56:28]RasterBufferAndPrint [09:56:28]line [09:56:28]line [09:56:28]line [09:56:28]line [09:56:28]line [09:56:28]written 0, free lines is 3299 [09:56:28]MH_Cut [09:56:28]Write to MH i2c: D1 01 00 22 42 01 36 [09:56:28]Write i2c OK [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: D1 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: D1 01 00 [09:56:28]MH_I2C_Read... [09:56:28]Read from MH i2c: D1 01 00 22 42 00 35 [09:56:28]Write to MH i2c: 01 00 00 23 42 65 [09:56:28]Write i2c OK [09:56:28]MH_I2C_Read... [09:56:29]OFD Sender: No OFD packet to send [09:56:29]*** Cut start [09:56:29]*** Partial cut [09:56:29]*** CUTSNS_PIN = 1 [09:56:29]*** CUTSNS_PIN = 0 [09:56:29]*** Brake cut motor [09:56:30]Read from MH i2c: 01 [09:56:30]MH_I2C_Read... [09:56:30]*** Stop cut motor [09:56:30]*** Cut end [09:56:30]Read from MH i2c: 01 07 00 [09:56:30]MH_I2C_Read... [09:56:30]Read from MH i2c: 01 07 00 23 42 00 00 00 00 00 FF 0F 7A [09:56:30]process_action close_receipt done [09:56:30]requested_data is exist [09:56:30]produce_requested_data [09:56:30]requested_item fm.sn is exist - process it [09:56:30]wFMCommunicate request_size=4 [09:56:30]MH_SAM_APDU [09:56:30]CAPDU: 80 11 00 00 [09:56:30]Write to MH i2c: E2 08 00 24 42 80 11 00 00 00 00 00 00 E0 [09:56:30]Write i2c OK [09:56:30]MH_I2C_Read... [09:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:30]Read from MH i2c: E2 [09:56:30]MH_I2C_Read... [09:56:30]Read from MH i2c: E2 17 00 [09:56:30]MH_I2C_Read... [09:56:30]Read from MH i2c: E2 17 00 24 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3B [09:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:56:30]wFMCommunicate OK [09:56:30]requested_item fd.num is exist - process it [09:56:30]SAM_PROTO_GetFieldsCounters [09:56:30]wFMCommunicate request_size=4 [09:56:30]MH_SAM_APDU [09:56:30]CAPDU: 80 13 00 00 [09:56:30]Write to MH i2c: E2 08 00 25 42 80 13 00 00 00 00 00 00 E3 [09:56:30]Write i2c OK [09:56:30]MH_I2C_Read... [09:56:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:30]Read from MH i2c: E2 [09:56:30]MH_I2C_Read... [09:56:30]Read from MH i2c: E2 62 00 [09:56:30]MH_I2C_Read... [09:56:30]Read from MH i2c: E2 62 00 25 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B6 CF 01 00 0E 04 04 00 B2 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 45 [09:56:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B6 CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:30]wFMCommunicate OK [09:56:30]SAM_PROTO_GetFieldsCounters done [09:56:30]requested_item shift.num is exist - process it [09:56:30]requested_item shift.opened is exist - process it [09:56:30]req_shift_opened [09:56:30]FM_GetShiftState [09:56:30]SAM_PROTO_GetShiftState [09:56:30]wFMCommunicate request_size=4 [09:56:30]MH_SAM_APDU [09:56:30]CAPDU: 80 13 01 00 [09:56:30]Write to MH i2c: E2 08 00 26 42 80 13 01 00 00 00 00 00 E5 [09:56:30]Write i2c OK [09:56:30]MH_I2C_Read... [09:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:30]Read from MH i2c: E2 [09:56:30]MH_I2C_Read... [09:56:30]Read from MH i2c: E2 0E 00 [09:56:30]MH_I2C_Read... [09:56:30]Read from MH i2c: E2 0E 00 26 42 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 13 [09:56:30]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:56:30]wFMCommunicate OK [09:56:30]SAM_PROTO_GetShiftState done [09:56:30]FM_GetShiftState done [09:56:30]req_shift_opened done [09:56:30]requested_item shift.open_date is exist - process it [09:56:30]req_shift_open_date [09:56:30]req_shift_open_date done [09:56:30]produce_requested_data done [09:56:30]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118710,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:56:30]process_action_free close_receipt [09:56:30]json_value_free [09:56:30]json_value_free done [09:56:30]process_json_proto returns [09:56:30]Send response to host [09:56:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118710,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:56:30]free response buf [09:56:30]execute_script done [09:56:30]execute_script returns [09:56:30]free content buf [09:56:30]Sock 9.Close socket [09:56:30]Sock 9.Thread stoped [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:03]accept exits with 7 [09:58:03]New connection [09:58:03]New thread 3067239780 created [09:58:03]Thread 3067383140 joined [09:58:03]Waiting for new connection... [09:58:03] Sock 7.Parse request [09:58:03]Sock 7.Check first char [09:58:03]Sock 7.First char is OK [09:58:03]request: POST /json_proto HTTP/1.0 [09:58:03]Method: POST [09:58:03]URL: /json_proto [09:58:03]Method is POST - this is cgi request [09:58:03]url: /json_proto [09:58:03]query_string will be loaded in cgi processing [09:58:03]execute_cgi json_proto POST (null) [09:58:03]execute_cgi path=json_proto method=POST [09:58:03]POST find Content-Length [09:58:03]Host: 172.17.45.7:8080 [09:58:03]Content-Length: 679 [09:58:03]Content-Type: application/json [09:58:03] [09:58:03]POST finish read [09:58:03]Found Content-Length = 679 [09:58:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 22.310, "sum" : 1700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:03]execute_script... [09:58:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 22.310, "sum" : 1700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:03]POST & json_proto [09:58:03]process_json_proto [09:58:03]json parsed OK: [09:58:03]protocol is kg_v1.0 [09:58:03]action value=close_receipt [09:58:03]process_action close_receipt [09:58:03]cmd_close_receipt [09:58:03]MH_GetDate [09:58:03]Write to MH i2c: F0 00 00 27 42 58 [09:58:03]Write i2c OK [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: F0 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: F0 09 00 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: F0 09 00 27 42 00 B0 67 A7 66 90 0F 3E 66 C8 [09:58:03]GetLastDocTimeStamp 1722246991 [09:58:03]current date 1722247088 [09:58:03]FM_GetShiftState [09:58:03]SAM_PROTO_GetShiftState [09:58:03]wFMCommunicate request_size=4 [09:58:03]MH_SAM_APDU [09:58:03]CAPDU: 80 13 01 00 [09:58:03]Write to MH i2c: E2 08 00 28 42 80 13 01 00 00 00 00 00 E7 [09:58:03]Write i2c OK [09:58:03]MH_I2C_Read... [09:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:03]Read from MH i2c: E2 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: E2 0E 00 [09:58:03]MH_I2C_Read... [09:58:03]Read from MH i2c: E2 0E 00 28 42 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 15 [09:58:03]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:58:03]wFMCommunicate OK [09:58:03]SAM_PROTO_GetShiftState done [09:58:03]FM_GetShiftState done [09:58:03]opened in 1722211641 [09:58:03]opened+sec_in_day 1722298041 [09:58:03]quantity*price = 170002 [09:58:03]sum+1 = 170003 [09:58:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.04 НДС 12% : 180.53 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 87 29.07.2024 09:58 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118711 ФПД: 97434878783158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095808&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118711&fm=97434878783158&tin=02508201610067®Number=0000000000092660&sum=170000 [09:58:04]StoreToDocumentArchive [09:58:04]shift 434 fd 118711 [09:58:04]save to /storage/0434/doc_00118711 [09:58:04]save last doc name /storage/0434/doc_00118711 to /storage/kkm_last_doc_name [09:58:04]save OK [09:58:04]Clear old archive folders... [09:58:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:58:04]tlvbuf is 01EE72B0 [09:58:04]SAM_PROTO_ClearQueue [09:58:04]wFMCommunicate request_size=4 [09:58:04]MH_SAM_APDU [09:58:04]CAPDU: 80 09 00 00 [09:58:04]Write to MH i2c: E2 08 00 35 42 80 09 00 00 00 00 00 00 E9 [09:58:04]Write i2c OK [09:58:04]MH_I2C_Read... [09:58:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:04]Read from MH i2c: E2 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: E2 03 00 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: E2 03 00 35 42 00 90 00 EB [09:58:04]RAPDU: 90 00 [09:58:04]wFMCommunicate OK [09:58:04]SAM_PROTO_ClearQueue done [09:58:04]KKMCreateOFDPacket [09:58:04]OFDProtocolAddRootSTLVToBuf [09:58:04]FM_MakeSignedData [09:58:04]FM_MakeSignedData [09:58:04]SAM_PROTO_SignData [09:58:04]wFMCommunicate request_size=4 [09:58:04]MH_SAM_APDU [09:58:04]CAPDU: 80 0D 01 02 [09:58:04]Write to MH i2c: E2 08 00 36 42 80 0D 01 02 00 00 00 00 F1 [09:58:04]Write i2c OK [09:58:04]MH_I2C_Read... [09:58:04]OFD Sender: No OFD packet to send [09:58:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:04]Read from MH i2c: E2 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: E2 03 00 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: E2 03 00 36 42 00 90 00 EC [09:58:04]RAPDU: 90 00 [09:58:04]wFMCommunicate OK [09:58:04]wFMCommunicate request_size=255 [09:58:04]MH_SAM_APDU [09:58:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 B0 67 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B7 CF 01 00 35 04 06 00 58 9D D3 56 [09:58:04]Write to MH i2c: E2 02 01 37 42 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 B0 67 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B7 CF 01 00 35 04 06 00 58 9D D3 56 00 00 3A [09:58:04]Write i2c OK [09:58:04]MH_I2C_Read... [09:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:04]Read from MH i2c: E2 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: E2 03 00 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: E2 03 00 37 42 00 90 00 ED [09:58:04]RAPDU: 90 00 [09:58:04]wFMCommunicate OK [09:58:04]wFMCommunicate request_size=7 [09:58:04]MH_SAM_APDU [09:58:04]CAPDU: 80 0D 02 02 02 AE B6 [09:58:04]Write to MH i2c: E2 0A 00 38 42 80 0D 02 02 02 00 AE B6 00 00 5C [09:58:04]Write i2c OK [09:58:04]MH_I2C_Read... [09:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:04]Read from MH i2c: E2 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: E2 03 00 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: E2 03 00 38 42 00 90 00 EE [09:58:04]RAPDU: 90 00 [09:58:04]wFMCommunicate OK [09:58:04]wFMCommunicate request_size=4 [09:58:04]MH_SAM_APDU [09:58:04]CAPDU: 80 0D 03 02 [09:58:04]Write to MH i2c: E2 08 00 39 42 80 0D 03 02 00 00 00 00 F6 [09:58:04]Write i2c OK [09:58:04]MH_I2C_Read... [09:58:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:04]Read from MH i2c: E2 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: E2 0B 00 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: E2 0B 00 39 42 00 CA 97 DE A2 DB 8A 65 BE 90 00 60 [09:58:04]RAPDU: CA 97 DE A2 DB 8A 65 BE 90 00 [09:58:04]wFMCommunicate OK [09:58:04]SAM_PROTO_SignData done [09:58:04]FM_MakeSignedData done [09:58:04]CreateOFDProtocolMessage [09:58:04]wFMCommunicate request_size=4 [09:58:04]MH_SAM_APDU [09:58:04]CAPDU: 80 11 00 00 [09:58:04]Write to MH i2c: E2 08 00 3A 42 80 11 00 00 00 00 00 00 F6 [09:58:04]Write i2c OK [09:58:04]MH_I2C_Read... [09:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:04]Read from MH i2c: E2 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: E2 17 00 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: E2 17 00 3A 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 51 [09:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:58:04]wFMCommunicate OK [09:58:04]CreateOFDProtocolMessage done [09:58:04]OFDSenderStorePacket 118711 [09:58:04]StoreOFDPacket docnum=118711 [09:58:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 15 2E 04 01 8C EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 B0 67 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B7 CF 01 00 35 04 06 00 58 9D D3 56 AE B6 CA 97 DE A2 DB 8A 65 BE [09:58:04]CheckFolder [09:58:04]dirname=/storage/ofd_packets [09:58:04]CheckFolder done [09:58:04]ProducePacketName [09:58:04]name=ofd_packets/00118711 [09:58:04]NVStorageSaveData ofd_packets/00118711 [09:58:04]File name is /storage/ofd_packets/00118711 [09:58:04]Write 298 bytes [09:58:04]NVStorageSaveData done [09:58:04]OFDSenderStorePacket done [09:58:04]KKMCreateOFDPacket done [09:58:04]NVStorageSaveData kkm_last_timestamp [09:58:04]File name is /storage/kkm_last_timestamp [09:58:04]Write 4 bytes [09:58:04]NVStorageSaveData done [09:58:04]ExternCall_PrintAddStr [09:58:04]wPrintStart [09:58:04]Write to MH i2c: 01 00 00 3B 42 7D [09:58:04]Write i2c OK [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: 01 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: 01 07 00 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: 01 07 00 3B 42 00 00 00 00 00 FF 0F 92 [09:58:04]RasterBufferAndPrint [09:58:04]line Счет N : (1)949594 [09:58:04]line ИНН: 02508201610067 [09:58:04]line Контрольно-Кассовый Чек [09:58:04]line ПРОДАЖА [09:58:04]line ТРК (МРК, ГНК) : 34 [09:58:04]line Товар: 2710194800 [09:58:04]line ДТ-К-5 [09:58:04]line 22.310 * 76.20 [09:58:04]line = 1700.02 [09:58:04]line НДС 12% НСП 1% [09:58:04]line > о реализуемом товаре [09:58:04]line ОКРУГЛЕНИЕ: -0.02 [09:58:04]line ИТОГО: 1700.00 [09:58:04]line Внесено: 1700.00 [09:58:04]line СДАЧА: 0.00 [09:58:04]line НСП 1% : 15.04 [09:58:04]line НДС 12% : 180.53 [09:58:04]line Наличными: 1700.00 [09:58:04]line Безнал.: 0.00 [09:58:04]line Место: АЗС № 134 "Партнер Нефть" [09:58:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:58:04]line СНО: Общий режим [09:58:04]line Чек 87 29.07.2024 09:58 [09:58:04]line Смена: 434 ФФД: 1.0 [09:58:04]line ЗНМ: 0300000044 [09:58:04]line РНМ: 0000000000092660 [09:58:04]line Версия ККМ: 001 [09:58:04]line ФМ: 0000000000874939 [09:58:04]line ФД: 118711 [09:58:05]line ФПД: 97434878783158 [09:58:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095808&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118711&fm=97434878783158&tin=02508201610067®Number=0000000000092660&sum=170000 [09:58:05]OFD Sender: Processing packet 118711 [packets to send 86, broken 85] [09:58:05]ProducePacketName [09:58:05]name=ofd_packets/00118711 [09:58:05]OFD Sender: To server: pG, [09:58:05]CommunicateWithHost lk.salyk.kg:30040 [09:58:05]ConnectInit lk.salyk.kg [09:58:05]written 0, free lines is 4095 [09:58:05]Connected sock=10 [09:58:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 15 2E 04 01 8C EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 B0 67 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B7 CF 01 00 35 04 06 00 58 9D D3 56 AE B6 CA 97 DE A2 DB 8A 65 BE [09:58:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4A 1E 47 00 E3 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 34 39 33 39 10 04 04 00 B7 CF 01 00 F4 03 04 00 3E 15 A7 66 B6 04 01 00 00 55 1D 98 DA DE 39 48 F7 [09:58:05]CommunicateWithHost err = 0 [09:58:05]CheckOFDResponse [09:58:05]1017 (14) - 77093643461234 [09:58:05]1041 (16) - 0000000000874939 [09:58:05]1040 (4) - 118711 [09:58:05]1012 (4) - 29.07.2024 04:06 [09:58:05]1206 (1) - 0 [09:58:05]OFD Sender: Remove packet 118711 [09:58:05]ProducePacketName [09:58:05]name=ofd_packets/00118711 [09:58:05]NVStorageDeleteData [09:58:05]Write to MH i2c: 01 00 00 65 42 A7 [09:58:05]Write i2c OK [09:58:05]MH_I2C_Read... [09:58:05]Read from MH i2c: 01 [09:58:05]MH_I2C_Read... [09:58:05]Read from MH i2c: 01 07 00 [09:58:05]MH_I2C_Read... [09:58:05]Read from MH i2c: 01 07 00 65 42 00 00 00 00 00 D2 0C 8C [09:58:05]RasterBufferAndPrint [09:58:05]line [09:58:05]line [09:58:05]line [09:58:05]line [09:58:05]line [09:58:05]written 0, free lines is 3289 [09:58:05]MH_Cut [09:58:05]Write to MH i2c: D1 01 00 6C 42 01 80 [09:58:05]Write i2c OK [09:58:05]MH_I2C_Read... [09:58:05]Read from MH i2c: D1 [09:58:05]MH_I2C_Read... [09:58:05]Read from MH i2c: D1 01 00 [09:58:05]MH_I2C_Read... [09:58:05]Read from MH i2c: D1 01 00 6C 42 00 7F [09:58:05]Write to MH i2c: 01 00 00 6D 42 AF [09:58:05]Write i2c OK [09:58:05]MH_I2C_Read... [09:58:05]OFD Sender: No OFD packet to send [09:58:06]*** Cut start [09:58:06]*** Partial cut [09:58:06]*** CUTSNS_PIN = 1 [09:58:06]*** CUTSNS_PIN = 0 [09:58:06]*** Brake cut motor [09:58:06]Read from MH i2c: 01 [09:58:06]MH_I2C_Read... [09:58:06]*** Stop cut motor [09:58:06]*** Cut end [09:58:06]Read from MH i2c: 01 07 00 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: 01 07 00 6D 42 00 00 00 00 00 FF 0F C4 [09:58:06]process_action close_receipt done [09:58:06]requested_data is exist [09:58:06]produce_requested_data [09:58:06]requested_item fm.sn is exist - process it [09:58:06]wFMCommunicate request_size=4 [09:58:06]MH_SAM_APDU [09:58:06]CAPDU: 80 11 00 00 [09:58:06]Write to MH i2c: E2 08 00 6E 42 80 11 00 00 00 00 00 00 2A [09:58:06]Write i2c OK [09:58:06]MH_I2C_Read... [09:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:06]Read from MH i2c: E2 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: E2 17 00 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: E2 17 00 6E 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 85 [09:58:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:58:06]wFMCommunicate OK [09:58:06]requested_item fd.num is exist - process it [09:58:06]SAM_PROTO_GetFieldsCounters [09:58:06]wFMCommunicate request_size=4 [09:58:06]MH_SAM_APDU [09:58:06]CAPDU: 80 13 00 00 [09:58:06]Write to MH i2c: E2 08 00 6F 42 80 13 00 00 00 00 00 00 2D [09:58:07]Write i2c OK [09:58:07]MH_I2C_Read... [09:58:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:07]Read from MH i2c: E2 [09:58:07]MH_I2C_Read... [09:58:07]Read from MH i2c: E2 62 00 [09:58:07]MH_I2C_Read... [09:58:07]Read from MH i2c: E2 62 00 6F 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B7 CF 01 00 0E 04 04 00 B2 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 93 [09:58: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B7 CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:07]wFMCommunicate OK [09:58:07]SAM_PROTO_GetFieldsCounters done [09:58:07]requested_item shift.num is exist - process it [09:58:07]requested_item shift.opened is exist - process it [09:58:07]req_shift_opened [09:58:07]FM_GetShiftState [09:58:07]SAM_PROTO_GetShiftState [09:58:07]wFMCommunicate request_size=4 [09:58:07]MH_SAM_APDU [09:58:07]CAPDU: 80 13 01 00 [09:58:07]Write to MH i2c: E2 08 00 70 42 80 13 01 00 00 00 00 00 2F [09:58:07]Write i2c OK [09:58:07]MH_I2C_Read... [09:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:07]Read from MH i2c: E2 [09:58:07]MH_I2C_Read... [09:58:07]Read from MH i2c: E2 0E 00 [09:58:07]MH_I2C_Read... [09:58:07]Read from MH i2c: E2 0E 00 70 42 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 5D [09:58:07]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:58:07]wFMCommunicate OK [09:58:07]SAM_PROTO_GetShiftState done [09:58:07]FM_GetShiftState done [09:58:07]req_shift_opened done [09:58:07]requested_item shift.open_date is exist - process it [09:58:07]req_shift_open_date [09:58:07]req_shift_open_date done [09:58:07]produce_requested_data done [09:58:07]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118711,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:58:07]process_action_free close_receipt [09:58:07]json_value_free [09:58:07]json_value_free done [09:58:07]process_json_proto returns [09:58:07]Send response to host [09:58:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118711,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:58:07]free response buf [09:58:07]execute_script done [09:58:07]execute_script returns [09:58:07]free content buf [09:58:07]Sock 7.Close socket [09:58:07]Sock 7.Thread stoped [09:58:10]OFD Sender: No OFD packet to send [09:58:15]OFD Sender: No OFD packet to send [09:58:20]OFD Sender: No OFD packet to send [09:58:25]OFD Sender: No OFD packet to send [09:58:30]OFD Sender: No OFD packet to send [09:58:35]OFD Sender: No OFD packet to send [09:58:36]accept exits with 9 [09:58:36]New connection [09:58:36]New thread 3067383140 created [09:58:36]Thread 3067239780 joined [09:58:36]Waiting for new connection... [09:58:36] Sock 9.Parse request [09:58:36]Sock 9.Check first char [09:58:36]Sock 9.First char is OK [09:58:36]request: POST /json_proto HTTP/1.0 [09:58:36]Method: POST [09:58:36]URL: /json_proto [09:58:36]Method is POST - this is cgi request [09:58:36]url: /json_proto [09:58:36]query_string will be loaded in cgi processing [09:58:36]execute_cgi json_proto POST (null) [09:58:36]execute_cgi path=json_proto method=POST [09:58:36]POST find Content-Length [09:58:36]Host: 172.17.45.7:8080 [09:58:36]Content-Length: 679 [09:58:36]Content-Type: application/json [09:58:36] [09:58:36]POST finish read [09:58:36]Found Content-Length = 679 [09:58:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:36]execute_script... [09:58: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)949595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:36]POST & json_proto [09:58:36]process_json_proto [09:58:36]json parsed OK: [09:58:36]protocol is kg_v1.0 [09:58:36]action value=close_receipt [09:58:36]process_action close_receipt [09:58:36]cmd_close_receipt [09:58:36]MH_GetDate [09:58:36]Write to MH i2c: F0 00 00 71 42 A2 [09:58:36]Write i2c OK [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: F0 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: F0 09 00 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: F0 09 00 71 42 00 D1 67 A7 66 90 0F 3E 66 33 [09:58:36]GetLastDocTimeStamp 1722247088 [09:58:36]current date 1722247121 [09:58:36]FM_GetShiftState [09:58:36]SAM_PROTO_GetShiftState [09:58:36]wFMCommunicate request_size=4 [09:58:36]MH_SAM_APDU [09:58:36]CAPDU: 80 13 01 00 [09:58:36]Write to MH i2c: E2 08 00 72 42 80 13 01 00 00 00 00 00 31 [09:58:36]Write i2c OK [09:58:36]MH_I2C_Read... [09:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:36]Read from MH i2c: E2 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: E2 0E 00 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: E2 0E 00 72 42 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 5F [09:58:36]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:58:36]wFMCommunicate OK [09:58:36]SAM_PROTO_GetShiftState done [09:58:36]FM_GetShiftState done [09:58:36]opened in 1722211641 [09:58:36]opened+sec_in_day 1722298041 [09:58:36]quantity*price = 100050 [09:58:36]sum+1 = 100052 [09:58:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 88 29.07.2024 09:58 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118712 ФПД: 20721198792399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095841&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118712&fm=20721198792399&tin=02508201610067®Number=0000000000092660&sum=100000 [09:58:37]StoreToDocumentArchive [09:58:37]shift 434 fd 118712 [09:58:37]save to /storage/0434/doc_00118712 [09:58:37]save last doc name /storage/0434/doc_00118712 to /storage/kkm_last_doc_name [09:58:37]save OK [09:58:37]Clear old archive folders... [09:58:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:58:37]tlvbuf is 01E89C00 [09:58:37]SAM_PROTO_ClearQueue [09:58:37]wFMCommunicate request_size=4 [09:58:37]MH_SAM_APDU [09:58:37]CAPDU: 80 09 00 00 [09:58:37]Write to MH i2c: E2 08 00 7F 42 80 09 00 00 00 00 00 00 33 [09:58:37]Write i2c OK [09:58:37]MH_I2C_Read... [09:58:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:37]Read from MH i2c: E2 [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: E2 03 00 [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: E2 03 00 7F 42 00 90 00 35 [09:58:37]RAPDU: 90 00 [09:58:37]wFMCommunicate OK [09:58:37]SAM_PROTO_ClearQueue done [09:58:37]KKMCreateOFDPacket [09:58:37]OFDProtocolAddRootSTLVToBuf [09:58:37]FM_MakeSignedData [09:58:37]FM_MakeSignedData [09:58:37]SAM_PROTO_SignData [09:58:37]wFMCommunicate request_size=4 [09:58:37]MH_SAM_APDU [09:58:37]CAPDU: 80 0D 01 02 [09:58:37]Write to MH i2c: E2 08 00 80 42 80 0D 01 02 00 00 00 00 3B [09:58:37]Write i2c OK [09:58:37]MH_I2C_Read... [09:58:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:37]Read from MH i2c: E2 [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: E2 03 00 [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: E2 03 00 80 42 00 90 00 36 [09:58:37]RAPDU: 90 00 [09:58:37]wFMCommunicate OK [09:58:37]wFMCommunicate request_size=255 [09:58:37]MH_SAM_APDU [09:58:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 D1 67 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B8 CF 01 00 35 04 06 00 12 D8 87 B1 [09:58:37]Write to MH i2c: E2 02 01 81 42 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 D1 67 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B8 CF 01 00 35 04 06 00 12 D8 87 B1 00 00 C5 [09:58:37]Write i2c OK [09:58:37]MH_I2C_Read... [09:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:37]Read from MH i2c: E2 [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: E2 03 00 [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: E2 03 00 81 42 00 90 00 37 [09:58:37]RAPDU: 90 00 [09:58:37]wFMCommunicate OK [09:58:37]wFMCommunicate request_size=7 [09:58:37]MH_SAM_APDU [09:58:37]CAPDU: 80 0D 02 02 02 7E CF [09:58:37]Write to MH i2c: E2 0A 00 82 42 80 0D 02 02 02 00 7E CF 00 00 8F [09:58:37]Write i2c OK [09:58:37]MH_I2C_Read... [09:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:37]Read from MH i2c: E2 [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: E2 03 00 [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: E2 03 00 82 42 00 90 00 38 [09:58:37]RAPDU: 90 00 [09:58:37]wFMCommunicate OK [09:58:37]wFMCommunicate request_size=4 [09:58:37]MH_SAM_APDU [09:58:37]CAPDU: 80 0D 03 02 [09:58:37]Write to MH i2c: E2 08 00 83 42 80 0D 03 02 00 00 00 00 40 [09:58:37]Write i2c OK [09:58:37]MH_I2C_Read... [09:58:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:37]Read from MH i2c: E2 [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: E2 0B 00 [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: E2 0B 00 83 42 00 53 58 95 00 E9 04 18 60 90 00 E6 [09:58:37]RAPDU: 53 58 95 00 E9 04 18 60 90 00 [09:58:37]wFMCommunicate OK [09:58:37]SAM_PROTO_SignData done [09:58:37]FM_MakeSignedData done [09:58:37]CreateOFDProtocolMessage [09:58:37]wFMCommunicate request_size=4 [09:58:37]MH_SAM_APDU [09:58:37]CAPDU: 80 11 00 00 [09:58:37]Write to MH i2c: E2 08 00 84 42 80 11 00 00 00 00 00 00 40 [09:58:37]Write i2c OK [09:58:37]MH_I2C_Read... [09:58:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:38]Read from MH i2c: E2 [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: E2 17 00 [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: E2 17 00 84 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9B [09:58:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:58:38]wFMCommunicate OK [09:58:38]CreateOFDProtocolMessage done [09:58:38]OFDSenderStorePacket 118712 [09:58:38]StoreOFDPacket docnum=118712 [09:58:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 62 1B 04 01 9D C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 D1 67 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B8 CF 01 00 35 04 06 00 12 D8 87 B1 7E CF 53 58 95 00 E9 04 18 60 [09:58:38]CheckFolder [09:58:38]dirname=/storage/ofd_packets [09:58:38]CheckFolder done [09:58:38]ProducePacketName [09:58:38]name=ofd_packets/00118712 [09:58:38]NVStorageSaveData ofd_packets/00118712 [09:58:38]File name is /storage/ofd_packets/00118712 [09:58:38]Write 298 bytes [09:58:38]NVStorageSaveData done [09:58:38]OFDSenderStorePacket done [09:58:38]KKMCreateOFDPacket done [09:58:38]NVStorageSaveData kkm_last_timestamp [09:58:38]File name is /storage/kkm_last_timestamp [09:58:38]Write 4 bytes [09:58:38]NVStorageSaveData done [09:58:38]ExternCall_PrintAddStr [09:58:38]wPrintStart [09:58:38]Write to MH i2c: 01 00 00 85 42 C7 [09:58:38]Write i2c OK [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: 01 [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: 01 07 00 [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: 01 07 00 85 42 00 00 00 00 00 FF 0F DC [09:58:38]RasterBufferAndPrint [09:58:38]line Счет N : (1)949595 [09:58:38]line ИНН: 02508201610067 [09:58:38]line Контрольно-Кассовый Чек [09:58:38]line ПРОДАЖА [09:58:38]line ТРК (МРК, ГНК) : 54 [09:58:38]line Товар: 2710194800 [09:58:38]line ДТ-К-5 [09:58:38]line 13.130 * 76.20 [09:58:38]line = 1000.51 [09:58:38]line НДС 12% НСП 1% [09:58:38]line > о реализуемом товаре [09:58:38]line ОКРУГЛЕНИЕ: -0.51 [09:58:38]line ИТОГО: 1000.00 [09:58:38]line Внесено: 1000.00 [09:58:38]line СДАЧА: 0.00 [09:58:38]line НСП 1% : 8.85 [09:58:38]line НДС 12% : 106.25 [09:58:38]line Наличными: 1000.00 [09:58:38]line Безнал.: 0.00 [09:58:38]line Место: АЗС № 134 "Партнер Нефть" [09:58:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:58:38]line СНО: Общий режим [09:58:38]line Чек 88 29.07.2024 09:58 [09:58:38]line Смена: 434 ФФД: 1.0 [09:58:38]line ЗНМ: 0300000044 [09:58:38]line РНМ: 0000000000092660 [09:58:38]line Версия ККМ: 001 [09:58:38]line ФМ: 0000000000874939 [09:58:38]line ФД: 118712 [09:58:38]line ФПД: 20721198792399 [09:58:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T095841&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118712&fm=20721198792399&tin=02508201610067®Number=0000000000092660&sum=100000 [09:58:38]OFD Sender: Processing packet 118712 [packets to send 86, broken 85] [09:58:38]ProducePacketName [09:58:38]name=ofd_packets/00118712 [09:58:38]OFD Sender: To server: pG, [09:58:38]CommunicateWithHost lk.salyk.kg:30040 [09:58:38]ConnectInit lk.salyk.kg [09:58:38]written 0, free lines is 4095 [09:58:38]Connected sock=10 [09:58:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 62 1B 04 01 9D C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 D1 67 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B8 CF 01 00 35 04 06 00 12 D8 87 B1 7E CF 53 58 95 00 E9 04 18 60 [09:58:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 59 58 47 00 EB 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 34 39 33 39 10 04 04 00 B8 CF 01 00 F4 03 04 00 5F 15 A7 66 B6 04 01 00 00 4B 8A 99 08 9B 41 0A 43 [09:58:38]CommunicateWithHost err = 0 [09:58:38]CheckOFDResponse [09:58:38]1017 (14) - 77093643461234 [09:58:38]1041 (16) - 0000000000874939 [09:58:38]1040 (4) - 118712 [09:58:38]1012 (4) - 29.07.2024 04:06 [09:58:38]1206 (1) - 0 [09:58:38]OFD Sender: Remove packet 118712 [09:58:38]ProducePacketName [09:58:38]name=ofd_packets/00118712 [09:58:38]NVStorageDeleteData [09:58:38]Write to MH i2c: 01 00 00 AF 42 F1 [09:58:38]Write i2c OK [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: 01 [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: 01 07 00 [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: 01 07 00 AF 42 00 00 00 00 00 EB 0C EF [09:58:38]RasterBufferAndPrint [09:58:38]line [09:58:38]line [09:58:38]line [09:58:38]line [09:58:38]line [09:58:38]written 0, free lines is 3312 [09:58:38]MH_Cut [09:58:38]Write to MH i2c: D1 01 00 B6 42 01 CA [09:58:38]Write i2c OK [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: D1 [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: D1 01 00 [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: D1 01 00 B6 42 00 C9 [09:58:38]Write to MH i2c: 01 00 00 B7 42 F9 [09:58:38]Write i2c OK [09:58:38]MH_I2C_Read... [09:58:39]OFD Sender: No OFD packet to send [09:58:39]*** Cut start [09:58:39]*** Partial cut [09:58:39]*** CUTSNS_PIN = 1 [09:58:39]*** CUTSNS_PIN = 0 [09:58:39]*** Brake cut motor [09:58:40]Read from MH i2c: 01 [09:58:40]MH_I2C_Read... [09:58:40]*** Stop cut motor [09:58:40]*** Cut end [09:58:40]Read from MH i2c: 01 07 00 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: 01 07 00 B7 42 00 00 00 00 00 FF 0F 0E [09:58:40]process_action close_receipt done [09:58:40]requested_data is exist [09:58:40]produce_requested_data [09:58:40]requested_item fm.sn is exist - process it [09:58:40]wFMCommunicate request_size=4 [09:58:40]MH_SAM_APDU [09:58:40]CAPDU: 80 11 00 00 [09:58:40]Write to MH i2c: E2 08 00 B8 42 80 11 00 00 00 00 00 00 74 [09:58:40]Write i2c OK [09:58:40]MH_I2C_Read... [09:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:40]Read from MH i2c: E2 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: E2 17 00 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: E2 17 00 B8 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CF [09:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:58:40]wFMCommunicate OK [09:58:40]requested_item fd.num is exist - process it [09:58:40]SAM_PROTO_GetFieldsCounters [09:58:40]wFMCommunicate request_size=4 [09:58:40]MH_SAM_APDU [09:58:40]CAPDU: 80 13 00 00 [09:58:40]Write to MH i2c: E2 08 00 B9 42 80 13 00 00 00 00 00 00 77 [09:58:40]Write i2c OK [09:58:40]MH_I2C_Read... [09:58:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:40]Read from MH i2c: E2 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: E2 62 00 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: E2 62 00 B9 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B8 CF 01 00 0E 04 04 00 B2 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 E1 [09:58: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B8 CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:40]wFMCommunicate OK [09:58:40]SAM_PROTO_GetFieldsCounters done [09:58:40]requested_item shift.num is exist - process it [09:58:40]requested_item shift.opened is exist - process it [09:58:40]req_shift_opened [09:58:40]FM_GetShiftState [09:58:40]SAM_PROTO_GetShiftState [09:58:40]wFMCommunicate request_size=4 [09:58:40]MH_SAM_APDU [09:58:40]CAPDU: 80 13 01 00 [09:58:40]Write to MH i2c: E2 08 00 BA 42 80 13 01 00 00 00 00 00 79 [09:58:40]Write i2c OK [09:58:40]MH_I2C_Read... [09:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:40]Read from MH i2c: E2 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: E2 0E 00 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: E2 0E 00 BA 42 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A7 [09:58:40]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [09:58:40]wFMCommunicate OK [09:58:40]SAM_PROTO_GetShiftState done [09:58:40]FM_GetShiftState done [09:58:40]req_shift_opened done [09:58:40]requested_item shift.open_date is exist - process it [09:58:40]req_shift_open_date [09:58:40]req_shift_open_date done [09:58:40]produce_requested_data done [09:58:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118712,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [09:58:40]process_action_free close_receipt [09:58:40]json_value_free [09:58:40]json_value_free done [09:58:40]process_json_proto returns [09:58:40]Send response to host [09:58:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118712,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [09:58:40]free response buf [09:58:40]execute_script done [09:58:40]execute_script returns [09:58:40]free content buf [09:58:40]Sock 9.Close socket [09:58:40]Sock 9.Thread stoped [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:34]OFD Sender: No OFD packet to send [10:04:39]OFD Sender: No OFD packet to send [10:04:44]OFD Sender: No OFD packet to send [10:04:49]OFD Sender: No OFD packet to send [10:04:54]OFD Sender: No OFD packet to send [10:04:59]OFD Sender: No OFD packet to send [10:05:04]OFD Sender: No OFD packet to send [10:05:09]OFD Sender: No OFD packet to send [10:05:14]OFD Sender: No OFD packet to send [10:05:19]OFD Sender: No OFD packet to send [10:05:24]OFD Sender: No OFD packet to send [10:05:29]OFD Sender: No OFD packet to send [10:05:34]OFD Sender: No OFD packet to send [10:05:39]OFD Sender: No OFD packet to send [10:05:44]OFD Sender: No OFD packet to send [10:05:49]OFD Sender: No OFD packet to send [10:05:54]OFD Sender: No OFD packet to send [10:05:59]OFD Sender: No OFD packet to send [10:06:04]OFD Sender: No OFD packet to send [10:06:09]OFD Sender: No OFD packet to send [10:06:14]OFD Sender: No OFD packet to send [10:06:19]OFD Sender: No OFD packet to send [10:06:24]OFD Sender: No OFD packet to send [10:06:29]OFD Sender: No OFD packet to send [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [10:06:49]OFD Sender: No OFD packet to send [10:06:54]OFD Sender: No OFD packet to send [10:06:59]OFD Sender: No OFD packet to send [10:07:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:13]accept exits with 7 [10:07:13]New connection [10:07:13]New thread 3067239780 created [10:07:13]Thread 3067383140 joined [10:07:13]Waiting for new connection... [10:07:13] Sock 7.Parse request [10:07:13]Sock 7.Check first char [10:07:13]Sock 7.First char is OK [10:07:13]request: POST /json_proto HTTP/1.0 [10:07:13]Method: POST [10:07:13]URL: /json_proto [10:07:13]Method is POST - this is cgi request [10:07:13]url: /json_proto [10:07:13]query_string will be loaded in cgi processing [10:07:13]execute_cgi json_proto POST (null) [10:07:13]execute_cgi path=json_proto method=POST [10:07:13]POST find Content-Length [10:07:13]Host: 172.17.45.7:8080 [10:07:13]Content-Length: 819 [10:07:13]Content-Type: application/json [10:07:13] [10:07:13]POST finish read [10:07:13]Found Content-Length = 819 [10:07:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:13]execute_script... [10:07: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)949596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:13]POST & json_proto [10:07:13]process_json_proto [10:07:13]json parsed OK: [10:07:13]protocol is kg_v1.0 [10:07:13]action value=close_receipt [10:07:13]process_action close_receipt [10:07:13]cmd_close_receipt [10:07:13]MH_GetDate [10:07:13]Write to MH i2c: F0 00 00 BB 42 EC [10:07:13]Write i2c OK [10:07:13]MH_I2C_Read... [10:07:13]Read from MH i2c: F0 [10:07:13]MH_I2C_Read... [10:07:13]Read from MH i2c: F0 09 00 [10:07:13]MH_I2C_Read... [10:07:13]Read from MH i2c: F0 09 00 BB 42 00 D6 69 A7 66 90 0F 3E 66 84 [10:07:13]GetLastDocTimeStamp 1722247121 [10:07:13]current date 1722247638 [10:07:13]FM_GetShiftState [10:07:13]SAM_PROTO_GetShiftState [10:07:13]wFMCommunicate request_size=4 [10:07:13]MH_SAM_APDU [10:07:13]CAPDU: 80 13 01 00 [10:07:13]Write to MH i2c: E2 08 00 BC 42 80 13 01 00 00 00 00 00 7B [10:07:13]Write i2c OK [10:07:13]MH_I2C_Read... [10:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:13]Read from MH i2c: E2 [10:07:13]MH_I2C_Read... [10:07:13]Read from MH i2c: E2 0E 00 [10:07:13]MH_I2C_Read... [10:07:13]Read from MH i2c: E2 0E 00 BC 42 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A9 [10:07:13]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:07:13]wFMCommunicate OK [10:07:13]SAM_PROTO_GetShiftState done [10:07:13]FM_GetShiftState done [10:07:13]opened in 1722211641 [10:07:13]opened+sec_in_day 1722298041 [10:07:13]quantity*price = 200025 [10:07:13]sum+1 = 200026 [10:07:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 89 29.07.2024 10:07 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118713 ФПД: 32865046627597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T100718&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118713&fm=32865046627597&tin=02508201610067®Number=0000000000092660&sum=200000 [10:07:14]StoreToDocumentArchive [10:07:14]shift 434 fd 118713 [10:07:14]save to /storage/0434/doc_00118713 [10:07:14]save last doc name /storage/0434/doc_00118713 to /storage/kkm_last_doc_name [10:07:14]save OK [10:07:14]Clear old archive folders... [10:07:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:07:14]tlvbuf is 01E58BB0 [10:07:14]SAM_PROTO_ClearQueue [10:07:14]wFMCommunicate request_size=4 [10:07:14]MH_SAM_APDU [10:07:14]CAPDU: 80 09 00 00 [10:07:14]Write to MH i2c: E2 08 00 C9 42 80 09 00 00 00 00 00 00 7D [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:14]Read from MH i2c: E2 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 C9 42 00 90 00 7F [10:07:14]RAPDU: 90 00 [10:07:14]wFMCommunicate OK [10:07:14]SAM_PROTO_ClearQueue done [10:07:14]KKMCreateOFDPacket [10:07:14]OFDProtocolAddRootSTLVToBuf [10:07:14]FM_MakeSignedData [10:07:14]FM_MakeSignedData [10:07:14]SAM_PROTO_SignData [10:07:14]wFMCommunicate request_size=4 [10:07:14]MH_SAM_APDU [10:07:14]CAPDU: 80 0D 01 02 [10:07:14]Write to MH i2c: E2 08 00 CA 42 80 0D 01 02 00 00 00 00 85 [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:14]Read from MH i2c: E2 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 CA 42 00 90 00 80 [10:07:14]RAPDU: 90 00 [10:07:14]wFMCommunicate OK [10:07:14]wFMCommunicate request_size=255 [10:07:14]MH_SAM_APDU [10:07:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 D6 69 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B9 CF 01 00 35 04 06 00 1D E3 FD 6E [10:07:14]Write to MH i2c: E2 02 01 CB 42 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 D6 69 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B9 CF 01 00 35 04 06 00 1D E3 FD 6E 00 00 4F [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:14]Read from MH i2c: E2 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 CB 42 00 90 00 81 [10:07:14]RAPDU: 90 00 [10:07:14]wFMCommunicate OK [10:07:14]wFMCommunicate request_size=7 [10:07:14]MH_SAM_APDU [10:07:14]CAPDU: 80 0D 02 02 02 05 0D [10:07:14]Write to MH i2c: E2 0A 00 CC 42 80 0D 02 02 02 00 05 0D 00 00 9E [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:14]Read from MH i2c: E2 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 CC 42 00 90 00 82 [10:07:14]RAPDU: 90 00 [10:07:14]wFMCommunicate OK [10:07:14]wFMCommunicate request_size=4 [10:07:14]MH_SAM_APDU [10:07:14]CAPDU: 80 0D 03 02 [10:07:14]Write to MH i2c: E2 08 00 CD 42 80 0D 03 02 00 00 00 00 8A [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:14]Read from MH i2c: E2 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 0B 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 0B 00 CD 42 00 92 01 B3 99 2D 20 4B E8 90 00 EA [10:07:14]RAPDU: 92 01 B3 99 2D 20 4B E8 90 00 [10:07:14]wFMCommunicate OK [10:07:14]SAM_PROTO_SignData done [10:07:14]FM_MakeSignedData done [10:07:14]CreateOFDProtocolMessage [10:07:14]wFMCommunicate request_size=4 [10:07:14]MH_SAM_APDU [10:07:14]CAPDU: 80 11 00 00 [10:07:14]Write to MH i2c: E2 08 00 CE 42 80 11 00 00 00 00 00 00 8A [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:14]Read from MH i2c: E2 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 17 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 17 00 CE 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E5 [10:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:07:14]wFMCommunicate OK [10:07:14]CreateOFDProtocolMessage done [10:07:14]OFDSenderStorePacket 118713 [10:07:14]StoreOFDPacket docnum=118713 [10:07:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 65 61 04 01 A6 B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 D6 69 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B9 CF 01 00 35 04 06 00 1D E3 FD 6E 05 0D 92 01 B3 99 2D 20 4B E8 [10:07:14]CheckFolder [10:07:14]dirname=/storage/ofd_packets [10:07:14]CheckFolder done [10:07:14]ProducePacketName [10:07:14]name=ofd_packets/00118713 [10:07:14]NVStorageSaveData ofd_packets/00118713 [10:07:14]File name is /storage/ofd_packets/00118713 [10:07:14]Write 298 bytes [10:07:14]NVStorageSaveData done [10:07:14]OFDSenderStorePacket done [10:07:14]KKMCreateOFDPacket done [10:07:14]NVStorageSaveData kkm_last_timestamp [10:07:14]File name is /storage/kkm_last_timestamp [10:07:14]Write 4 bytes [10:07:14]NVStorageSaveData done [10:07:14]ExternCall_PrintAddStr [10:07:14]wPrintStart [10:07:14]Write to MH i2c: 01 00 00 CF 42 11 [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: 01 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: 01 07 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: 01 07 00 CF 42 00 00 00 00 00 FF 0F 26 [10:07:14]RasterBufferAndPrint [10:07:14]line Счет N : (1)949596 [10:07:14]line ИНН: 02508201610067 [10:07:14]line Контрольно-Кассовый Чек [10:07:14]line ПРОДАЖА [10:07:14]line ТРК (МРК, ГНК) : 44 [10:07:14]line Товар: 2710194800 [10:07:14]line ДТ-К-5 [10:07:14]line 26.250 * 76.20 [10:07:14]line = 2000.25 [10:07:14]line НДС 12% НСП 1% [10:07:14]line > о реализуемом товаре [10:07:14]line ОКРУГЛЕНИЕ: -0.25 [10:07:14]line ИТОГО: 2000.00 [10:07:14]line НСП 1% : 17.70 [10:07:14]line НДС 12% : 212.42 [10:07:14]line Наличными: 0.00 [10:07:14]line Безнал.: 2000.00 [10:07:14]line Место: АЗС № 134 "Партнер Нефть" [10:07:14]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:07:14]line СНО: Общий режим [10:07:14]line Чек 89 29.07.2024 10:07 [10:07:14]line Смена: 434 ФФД: 1.0 [10:07:14]line ЗНМ: 0300000044 [10:07:14]line РНМ: 0000000000092660 [10:07:14]line Версия ККМ: 001 [10:07:14]line Платежная система: O! деньги [10:07:14]line ФМ: 0000000000874939 [10:07:14]line ФД: 118713 [10:07:14]line ФПД: 32865046627597 [10:07:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T100718&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118713&fm=32865046627597&tin=02508201610067®Number=0000000000092660&sum=200000 [10:07:15]OFD Sender: Processing packet 118713 [packets to send 86, broken 85] [10:07:15]ProducePacketName [10:07:15]name=ofd_packets/00118713 [10:07:15]OFD Sender: To server: pG, [10:07:15]CommunicateWithHost lk.salyk.kg:30040 [10:07:15]ConnectInit lk.salyk.kg [10:07:15]written 0, free lines is 4095 [10:07:15]Connected sock=10 [10:07:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 65 61 04 01 A6 B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 D6 69 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B9 CF 01 00 35 04 06 00 1D E3 FD 6E 05 0D 92 01 B3 99 2D 20 4B E8 [10:07:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EA 00 47 00 BD 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 34 39 33 39 10 04 04 00 B9 CF 01 00 F4 03 04 00 64 17 A7 66 B6 04 01 00 00 36 EC 28 8D 41 7E 4E DC [10:07:15]CommunicateWithHost err = 0 [10:07:15]CheckOFDResponse [10:07:15]1017 (14) - 77093643461234 [10:07:15]1041 (16) - 0000000000874939 [10:07:15]1040 (4) - 118713 [10:07:15]1012 (4) - 29.07.2024 04:15 [10:07:15]1206 (1) - 0 [10:07:15]OFD Sender: Remove packet 118713 [10:07:15]ProducePacketName [10:07:15]name=ofd_packets/00118713 [10:07:15]NVStorageDeleteData [10:07:15]Write to MH i2c: 01 00 00 F9 42 3B [10:07:15]Write i2c OK [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: 01 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: 01 07 00 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: 01 07 00 F9 42 00 00 00 00 00 EE 0C 3C [10:07:15]RasterBufferAndPrint [10:07:15]line [10:07:15]line [10:07:15]line [10:07:15]line [10:07:15]line [10:07:15]written 0, free lines is 3319 [10:07:15]MH_Cut [10:07:15]Write to MH i2c: D1 01 00 00 43 01 15 [10:07:15]Write i2c OK [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: D1 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: D1 01 00 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: D1 01 00 00 43 00 14 [10:07:15]Write to MH i2c: 01 00 00 01 43 44 [10:07:15]Write i2c OK [10:07:15]MH_I2C_Read... [10:07:15]OFD Sender: No OFD packet to send [10:07:16]*** Cut start [10:07:16]*** Partial cut [10:07:16]*** CUTSNS_PIN = 1 [10:07:16]*** CUTSNS_PIN = 0 [10:07:16]*** Brake cut motor [10:07:16]Read from MH i2c: 01 [10:07:16]MH_I2C_Read... [10:07:16]*** Stop cut motor [10:07:16]*** Cut end [10:07:16]Read from MH i2c: 01 07 00 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: 01 07 00 01 43 00 00 00 00 00 FF 0F 59 [10:07:16]process_action close_receipt done [10:07:16]requested_data is exist [10:07:16]produce_requested_data [10:07:16]requested_item fm.sn is exist - process it [10:07:16]wFMCommunicate request_size=4 [10:07:16]MH_SAM_APDU [10:07:16]CAPDU: 80 11 00 00 [10:07:16]Write to MH i2c: E2 08 00 02 43 80 11 00 00 00 00 00 00 BF [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:16]Read from MH i2c: E2 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 17 00 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 17 00 02 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1A [10:07:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:07:16]wFMCommunicate OK [10:07:16]requested_item fd.num is exist - process it [10:07:16]SAM_PROTO_GetFieldsCounters [10:07:16]wFMCommunicate request_size=4 [10:07:16]MH_SAM_APDU [10:07:16]CAPDU: 80 13 00 00 [10:07:16]Write to MH i2c: E2 08 00 03 43 80 13 00 00 00 00 00 00 C2 [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:17]Read from MH i2c: E2 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 62 00 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 62 00 03 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B9 CF 01 00 0E 04 04 00 B2 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 30 [10:07: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B9 CF 01 00 0E 04 04 00 B2 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 [10:07:17]wFMCommunicate OK [10:07:17]SAM_PROTO_GetFieldsCounters done [10:07:17]requested_item shift.num is exist - process it [10:07:17]requested_item shift.opened is exist - process it [10:07:17]req_shift_opened [10:07:17]FM_GetShiftState [10:07:17]SAM_PROTO_GetShiftState [10:07:17]wFMCommunicate request_size=4 [10:07:17]MH_SAM_APDU [10:07:17]CAPDU: 80 13 01 00 [10:07:17]Write to MH i2c: E2 08 00 04 43 80 13 01 00 00 00 00 00 C4 [10:07:17]Write i2c OK [10:07:17]MH_I2C_Read... [10:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:17]Read from MH i2c: E2 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 0E 00 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 0E 00 04 43 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F2 [10:07:17]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:07:17]wFMCommunicate OK [10:07:17]SAM_PROTO_GetShiftState done [10:07:17]FM_GetShiftState done [10:07:17]req_shift_opened done [10:07:17]requested_item shift.open_date is exist - process it [10:07:17]req_shift_open_date [10:07:17]req_shift_open_date done [10:07:17]produce_requested_data done [10:07:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118713,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:07:17]process_action_free close_receipt [10:07:17]json_value_free [10:07:17]json_value_free done [10:07:17]process_json_proto returns [10:07:17]Send response to host [10:07:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118713,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:07:17]free response buf [10:07:17]execute_script done [10:07:17]execute_script returns [10:07:17]free content buf [10:07:17]Sock 7.Close socket [10:07:17]Sock 7.Thread stoped [10:07:20]OFD Sender: No OFD packet to send [10:07:25]OFD Sender: No OFD packet to send [10:07:30]OFD Sender: No OFD packet to send [10:07:35]OFD Sender: No OFD packet to send [10:07:40]OFD Sender: No OFD packet to send [10:07:45]OFD Sender: No OFD packet to send [10:07:50]OFD Sender: No OFD packet to send [10:07:55]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:26]OFD Sender: No OFD packet to send [10:08:31]OFD Sender: No OFD packet to send [10:08:36]OFD Sender: No OFD packet to send [10:08:41]OFD Sender: No OFD packet to send [10:08:46]OFD Sender: No OFD packet to send [10:08:51]OFD Sender: No OFD packet to send [10:08:56]OFD Sender: No OFD packet to send [10:09:01]OFD Sender: No OFD packet to send [10:09:06]OFD Sender: No OFD packet to send [10:09:11]OFD Sender: No OFD packet to send [10:09:16]OFD Sender: No OFD packet to send [10:09:21]OFD Sender: No OFD packet to send [10:09:26]OFD Sender: No OFD packet to send [10:09:31]OFD Sender: No OFD packet to send [10:09:36]OFD Sender: No OFD packet to send [10:09:41]OFD Sender: No OFD packet to send [10:09:46]OFD Sender: No OFD packet to send [10:09:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:10:01]OFD Sender: No OFD packet to send [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:41]OFD Sender: No OFD packet to send [10:10:46]OFD Sender: No OFD packet to send [10:10:51]OFD Sender: No OFD packet to send [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:01]OFD Sender: No OFD packet to send [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]OFD Sender: No OFD packet to send [10:13:41]OFD Sender: No OFD packet to send [10:13:46]OFD Sender: No OFD packet to send [10:13:51]OFD Sender: No OFD packet to send [10:13:56]OFD Sender: No OFD packet to send [10:14:01]OFD Sender: No OFD packet to send [10:14:06]OFD Sender: No OFD packet to send [10:14:11]OFD Sender: No OFD packet to send [10:14:14]accept exits with 9 [10:14:14]New connection [10:14:14]New thread 3067383140 created [10:14:14]Thread 3067239780 joined [10:14:14]Waiting for new connection... [10:14:14] Sock 9.Parse request [10:14:14]Sock 9.Check first char [10:14:14]Sock 9.First char is OK [10:14:14]request: POST /json_proto HTTP/1.0 [10:14:14]Method: POST [10:14:14]URL: /json_proto [10:14:14]Method is POST - this is cgi request [10:14:14]url: /json_proto [10:14:14]query_string will be loaded in cgi processing [10:14:14]execute_cgi json_proto POST (null) [10:14:14]execute_cgi path=json_proto method=POST [10:14:14]POST find Content-Length [10:14:14]Host: 172.17.45.7:8080 [10:14:14]Content-Length: 677 [10:14:14]Content-Type: application/json [10:14:14] [10:14:14]POST finish read [10:14:14]Found Content-Length = 677 [10:14:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.120, "sum" : 550.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:14]execute_script... [10:14:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.120, "sum" : 550.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:14]POST & json_proto [10:14:14]process_json_proto [10:14:14]json parsed OK: [10:14:14]protocol is kg_v1.0 [10:14:14]action value=close_receipt [10:14:14]process_action close_receipt [10:14:14]cmd_close_receipt [10:14:14]MH_GetDate [10:14:14]Write to MH i2c: F0 00 00 05 43 37 [10:14:14]Write i2c OK [10:14:14]MH_I2C_Read... [10:14:14]Read from MH i2c: F0 [10:14:14]MH_I2C_Read... [10:14:14]Read from MH i2c: F0 09 00 [10:14:14]MH_I2C_Read... [10:14:14]Read from MH i2c: F0 09 00 05 43 00 7C 6B A7 66 90 0F 3E 66 77 [10:14:14]GetLastDocTimeStamp 1722247638 [10:14:14]current date 1722248060 [10:14:14]FM_GetShiftState [10:14:14]SAM_PROTO_GetShiftState [10:14:14]wFMCommunicate request_size=4 [10:14:14]MH_SAM_APDU [10:14:14]CAPDU: 80 13 01 00 [10:14:14]Write to MH i2c: E2 08 00 06 43 80 13 01 00 00 00 00 00 C6 [10:14:14]Write i2c OK [10:14:14]MH_I2C_Read... [10:14:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:14]Read from MH i2c: E2 [10:14:14]MH_I2C_Read... [10:14:14]Read from MH i2c: E2 0E 00 [10:14:14]MH_I2C_Read... [10:14:14]Read from MH i2c: E2 0E 00 06 43 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F4 [10:14:14]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:14:14]wFMCommunicate OK [10:14:14]SAM_PROTO_GetShiftState done [10:14:14]FM_GetShiftState done [10:14:14]opened in 1722211641 [10:14:14]opened+sec_in_day 1722298041 [10:14:14]quantity*price = 55053 [10:14:14]sum+1 = 55055 [10:14:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.46 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 90 29.07.2024 10:14 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118714 ФПД: 96672482760954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T101420&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118714&fm=96672482760954&tin=02508201610067®Number=0000000000092660&sum=55000 [10:14:16]StoreToDocumentArchive [10:14:16]shift 434 fd 118714 [10:14:16]save to /storage/0434/doc_00118714 [10:14:16]save last doc name /storage/0434/doc_00118714 to /storage/kkm_last_doc_name [10:14:16]save OK [10:14:16]Clear old archive folders... [10:14:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:16]tlvbuf is B6F43780 [10:14:16]SAM_PROTO_ClearQueue [10:14:16]wFMCommunicate request_size=4 [10:14:16]MH_SAM_APDU [10:14:16]CAPDU: 80 09 00 00 [10:14:16]Write to MH i2c: E2 08 00 13 43 80 09 00 00 00 00 00 00 C8 [10:14:16]Write i2c OK [10:14:16]MH_I2C_Read... [10:14:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:16]Read from MH i2c: E2 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: E2 03 00 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: E2 03 00 13 43 00 90 00 CA [10:14:16]RAPDU: 90 00 [10:14:16]wFMCommunicate OK [10:14:16]SAM_PROTO_ClearQueue done [10:14:16]KKMCreateOFDPacket [10:14:16]OFDProtocolAddRootSTLVToBuf [10:14:16]FM_MakeSignedData [10:14:16]FM_MakeSignedData [10:14:16]SAM_PROTO_SignData [10:14:16]wFMCommunicate request_size=4 [10:14:16]MH_SAM_APDU [10:14:16]CAPDU: 80 0D 01 02 [10:14:16]Write to MH i2c: E2 08 00 14 43 80 0D 01 02 00 00 00 00 D0 [10:14:16]Write i2c OK [10:14:16]MH_I2C_Read... [10:14:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:16]Read from MH i2c: E2 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: E2 03 00 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: E2 03 00 14 43 00 90 00 CB [10:14:16]RAPDU: 90 00 [10:14:16]wFMCommunicate OK [10:14:16]wFMCommunicate request_size=255 [10:14:16]MH_SAM_APDU [10:14:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 7C 6B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BA CF 01 00 35 04 06 00 57 [10:14:16]Write to MH i2c: E2 02 01 15 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 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 7C 6B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BA CF 01 00 35 04 06 00 57 00 00 43 [10:14:16]Write i2c OK [10:14:16]MH_I2C_Read... [10:14:16]OFD Sender: No OFD packet to send [10:14:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:16]Read from MH i2c: E2 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: E2 03 00 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: E2 03 00 15 43 00 90 00 CC [10:14:16]RAPDU: 90 00 [10:14:16]wFMCommunicate OK [10:14:16]wFMCommunicate request_size=10 [10:14:16]MH_SAM_APDU [10:14:16]CAPDU: 80 0D 02 02 05 EC 50 FE 98 FA [10:14:16]Write to MH i2c: E2 0D 00 16 43 80 0D 02 02 05 00 EC 50 FE 98 FA 00 00 A9 [10:14:16]Write i2c OK [10:14:16]MH_I2C_Read... [10:14:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:16]Read from MH i2c: E2 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: E2 03 00 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: E2 03 00 16 43 00 90 00 CD [10:14:16]RAPDU: 90 00 [10:14:16]wFMCommunicate OK [10:14:16]wFMCommunicate request_size=4 [10:14:16]MH_SAM_APDU [10:14:16]CAPDU: 80 0D 03 02 [10:14:16]Write to MH i2c: E2 08 00 17 43 80 0D 03 02 00 00 00 00 D5 [10:14:16]Write i2c OK [10:14:16]MH_I2C_Read... [10:14:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:16]Read from MH i2c: E2 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: E2 0B 00 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: E2 0B 00 17 43 00 77 05 25 F0 3E 75 19 6B 90 00 9E [10:14:16]RAPDU: 77 05 25 F0 3E 75 19 6B 90 00 [10:14:16]wFMCommunicate OK [10:14:16]SAM_PROTO_SignData done [10:14:16]FM_MakeSignedData done [10:14:16]CreateOFDProtocolMessage [10:14:16]wFMCommunicate request_size=4 [10:14:16]MH_SAM_APDU [10:14:16]CAPDU: 80 11 00 00 [10:14:16]Write to MH i2c: E2 08 00 18 43 80 11 00 00 00 00 00 00 D5 [10:14:16]Write i2c OK [10:14:16]MH_I2C_Read... [10:14:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:16]Read from MH i2c: E2 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: E2 17 00 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: E2 17 00 18 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 30 [10:14:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:14:16]wFMCommunicate OK [10:14:16]CreateOFDProtocolMessage done [10:14:16]OFDSenderStorePacket 118714 [10:14:16]StoreOFDPacket docnum=118714 [10:14:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 51 09 07 01 97 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 7C 6B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BA CF 01 00 35 04 06 00 57 EC 50 FE 98 FA 77 05 25 F0 3E 75 19 6B [10:14:16]CheckFolder [10:14:16]dirname=/storage/ofd_packets [10:14:16]CheckFolder done [10:14:16]ProducePacketName [10:14:16]name=ofd_packets/00118714 [10:14:16]NVStorageSaveData ofd_packets/00118714 [10:14:16]File name is /storage/ofd_packets/00118714 [10:14:16]Write 301 bytes [10:14:16]NVStorageSaveData done [10:14:16]OFDSenderStorePacket done [10:14:16]KKMCreateOFDPacket done [10:14:16]NVStorageSaveData kkm_last_timestamp [10:14:16]File name is /storage/kkm_last_timestamp [10:14:16]Write 4 bytes [10:14:16]NVStorageSaveData done [10:14:16]ExternCall_PrintAddStr [10:14:16]wPrintStart [10:14:16]Write to MH i2c: 01 00 00 19 43 5C [10:14:16]Write i2c OK [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: 01 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: 01 07 00 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: 01 07 00 19 43 00 00 00 00 00 FF 0F 71 [10:14:16]RasterBufferAndPrint [10:14:16]line Счет N : (1)949597 [10:14:16]line ИНН: 02508201610067 [10:14:16]line Контрольно-Кассовый Чек [10:14:16]line ПРОДАЖА [10:14:16]line ТРК (МРК, ГНК) : 41 [10:14:16]line Товар: 2710124130 [10:14:16]line Аи-92-К-4 [10:14:16]line 8.120 * 67.80 [10:14:16]line = 550.54 [10:14:16]line НДС 12% НСП 1% [10:14:16]line > о реализуемом товаре [10:14:16]line ОКРУГЛЕНИЕ: -0.54 [10:14:16]line ИТОГО: 550.00 [10:14:16]line Внесено: 550.00 [10:14:16]line СДАЧА: 0.00 [10:14:16]line НСП 1% : 4.87 [10:14:16]line НДС 12% : 58.46 [10:14:16]line Наличными: 550.00 [10:14:16]line Безнал.: 0.00 [10:14:16]line Место: АЗС № 134 "Партнер Нефть" [10:14:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:14:16]line СНО: Общий режим [10:14:16]line Чек 90 29.07.2024 10:14 [10:14:16]line Смена: 434 ФФД: 1.0 [10:14:16]line ЗНМ: 0300000044 [10:14:16]line РНМ: 0000000000092660 [10:14:16]line Версия ККМ: 001 [10:14:16]line ФМ: 0000000000874939 [10:14:16]line ФД: 118714 [10:14:16]line ФПД: 96672482760954 [10:14:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T101420&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118714&fm=96672482760954&tin=02508201610067®Number=0000000000092660&sum=55000 [10:14:16]written 0, free lines is 4095 [10:14:16]OFD Sender: Processing packet 118714 [packets to send 86, broken 85] [10:14:16]ProducePacketName [10:14:16]name=ofd_packets/00118714 [10:14:16]OFD Sender: To server: pG, [10:14:16]CommunicateWithHost lk.salyk.kg:30040 [10:14:16]ConnectInit lk.salyk.kg [10:14:16]Connected sock=10 [10:14:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 51 09 07 01 97 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 7C 6B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BA CF 01 00 35 04 06 00 57 EC 50 FE 98 FA 77 05 25 F0 3E 75 19 6B [10:14:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 91 E7 47 00 2D 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 34 39 33 39 10 04 04 00 BA CF 01 00 F4 03 04 00 09 19 A7 66 B6 04 01 00 00 6D 9D BE 45 90 42 B9 EF [10:14:17]CommunicateWithHost err = 0 [10:14:17]CheckOFDResponse [10:14:17]1017 (14) - 77093643461234 [10:14:17]1041 (16) - 0000000000874939 [10:14:17]1040 (4) - 118714 [10:14:17]1012 (4) - 29.07.2024 04:22 [10:14:17]1206 (1) - 0 [10:14:17]OFD Sender: Remove packet 118714 [10:14:17]ProducePacketName [10:14:17]name=ofd_packets/00118714 [10:14:17]NVStorageDeleteData [10:14:17]Write to MH i2c: 01 00 00 43 43 86 [10:14:17]Write i2c OK [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: 01 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: 01 07 00 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: 01 07 00 43 43 00 00 00 00 00 DF 0C 78 [10:14:17]RasterBufferAndPrint [10:14:17]line [10:14:17]line [10:14:17]line [10:14:17]line [10:14:17]line [10:14:17]written 0, free lines is 3304 [10:14:17]MH_Cut [10:14:17]Write to MH i2c: D1 01 00 4A 43 01 5F [10:14:17]Write i2c OK [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: D1 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: D1 01 00 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: D1 01 00 4A 43 00 5E [10:14:17]Write to MH i2c: 01 00 00 4B 43 8E [10:14:17]Write i2c OK [10:14:17]MH_I2C_Read... [10:14:17]OFD Sender: No OFD packet to send [10:14:17]*** Cut start [10:14:17]*** Partial cut [10:14:17]*** CUTSNS_PIN = 1 [10:14:17]*** CUTSNS_PIN = 0 [10:14:18]*** Brake cut motor [10:14:18]Read from MH i2c: 01 [10:14:18]MH_I2C_Read... [10:14:18]*** Stop cut motor [10:14:18]*** Cut end [10:14:18]Read from MH i2c: 01 07 00 [10:14:18]MH_I2C_Read... [10:14:18]Read from MH i2c: 01 07 00 4B 43 00 00 00 00 00 FF 0F A3 [10:14:18]process_action close_receipt done [10:14:18]requested_data is exist [10:14:18]produce_requested_data [10:14:18]requested_item fm.sn is exist - process it [10:14:18]wFMCommunicate request_size=4 [10:14:18]MH_SAM_APDU [10:14:18]CAPDU: 80 11 00 00 [10:14:18]Write to MH i2c: E2 08 00 4C 43 80 11 00 00 00 00 00 00 09 [10:14:18]Write i2c OK [10:14:18]MH_I2C_Read... [10:14:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:18]Read from MH i2c: E2 [10:14:18]MH_I2C_Read... [10:14:18]Read from MH i2c: E2 17 00 [10:14:18]MH_I2C_Read... [10:14:18]Read from MH i2c: E2 17 00 4C 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 64 [10:14:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:14:18]wFMCommunicate OK [10:14:18]requested_item fd.num is exist - process it [10:14:18]SAM_PROTO_GetFieldsCounters [10:14:18]wFMCommunicate request_size=4 [10:14:18]MH_SAM_APDU [10:14:18]CAPDU: 80 13 00 00 [10:14:18]Write to MH i2c: E2 08 00 4D 43 80 13 00 00 00 00 00 00 0C [10:14:18]Write i2c OK [10:14:18]MH_I2C_Read... [10:14:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:18]Read from MH i2c: E2 [10:14:18]MH_I2C_Read... [10:14:18]Read from MH i2c: E2 62 00 [10:14:18]MH_I2C_Read... [10:14:18]Read from MH i2c: E2 62 00 4D 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BA CF 01 00 0E 04 04 00 B2 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 7E [10:14: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BA CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:18]wFMCommunicate OK [10:14:18]SAM_PROTO_GetFieldsCounters done [10:14:18]requested_item shift.num is exist - process it [10:14:18]requested_item shift.opened is exist - process it [10:14:18]req_shift_opened [10:14:18]FM_GetShiftState [10:14:18]SAM_PROTO_GetShiftState [10:14:18]wFMCommunicate request_size=4 [10:14:18]MH_SAM_APDU [10:14:18]CAPDU: 80 13 01 00 [10:14:18]Write to MH i2c: E2 08 00 4E 43 80 13 01 00 00 00 00 00 0E [10:14:18]Write i2c OK [10:14:18]MH_I2C_Read... [10:14:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:18]Read from MH i2c: E2 [10:14:18]MH_I2C_Read... [10:14:18]Read from MH i2c: E2 0E 00 [10:14:18]MH_I2C_Read... [10:14:18]Read from MH i2c: E2 0E 00 4E 43 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 3C [10:14:18]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:14:18]wFMCommunicate OK [10:14:18]SAM_PROTO_GetShiftState done [10:14:18]FM_GetShiftState done [10:14:18]req_shift_opened done [10:14:18]requested_item shift.open_date is exist - process it [10:14:18]req_shift_open_date [10:14:18]req_shift_open_date done [10:14:18]produce_requested_data done [10:14:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118714,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:14:18]process_action_free close_receipt [10:14:18]json_value_free [10:14:18]json_value_free done [10:14:18]process_json_proto returns [10:14:18]Send response to host [10:14:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118714,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:14:18]free response buf [10:14:18]execute_script done [10:14:18]execute_script returns [10:14:18]free content buf [10:14:18]Sock 9.Close socket [10:14:18]Sock 9.Thread stoped [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:32]OFD Sender: No OFD packet to send [10:14:37]OFD Sender: No OFD packet to send [10:14:42]OFD Sender: No OFD packet to send [10:14:47]OFD Sender: No OFD packet to send [10:14:52]OFD Sender: No OFD packet to send [10:14:57]OFD Sender: No OFD packet to send [10:15:02]OFD Sender: No OFD packet to send [10:15:07]OFD Sender: No OFD packet to send [10:15:12]OFD Sender: No OFD packet to send [10:15:17]OFD Sender: No OFD packet to send [10:15:22]OFD Sender: No OFD packet to send [10:15:27]OFD Sender: No OFD packet to send [10:15:32]OFD Sender: No OFD packet to send [10:15:37]OFD Sender: No OFD packet to send [10:15:42]OFD Sender: No OFD packet to send [10:15:47]OFD Sender: No OFD packet to send [10:15:52]OFD Sender: No OFD packet to send [10:15:57]OFD Sender: No OFD packet to send [10:16:02]OFD Sender: No OFD packet to send [10:16:07]OFD Sender: No OFD packet to send [10:16:12]OFD Sender: No OFD packet to send [10:16:17]OFD Sender: No OFD packet to send [10:16:22]OFD Sender: No OFD packet to send [10:16:27]OFD Sender: No OFD packet to send [10:16:32]accept exits with 7 [10:16:32]New connection [10:16:32]New thread 3067239780 created [10:16:32]Thread 3067383140 joined [10:16:32]Waiting for new connection... [10:16:32] Sock 7.Parse request [10:16:32]Sock 7.Check first char [10:16:32]Sock 7.First char is OK [10:16:32]request: POST /json_proto HTTP/1.0 [10:16:32]Method: POST [10:16:32]URL: /json_proto [10:16:32]Method is POST - this is cgi request [10:16:32]url: /json_proto [10:16:32]query_string will be loaded in cgi processing [10:16:32]execute_cgi json_proto POST (null) [10:16:32]execute_cgi path=json_proto method=POST [10:16:32]POST find Content-Length [10:16:32]Host: 172.17.45.7:8080 [10:16:32]Content-Length: 674 [10:16:32]Content-Type: application/json [10:16:32] [10:16:32]POST finish read [10:16:32]Found Content-Length = 674 [10:16:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:32]execute_script... [10:16:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:32]POST & json_proto [10:16:32]process_json_proto [10:16:32]json parsed OK: [10:16:32]protocol is kg_v1.0 [10:16:32]action value=close_receipt [10:16:32]process_action close_receipt [10:16:32]cmd_close_receipt [10:16:32]MH_GetDate [10:16:32]Write to MH i2c: F0 00 00 4F 43 81 [10:16:32]Write i2c OK [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: F0 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: F0 09 00 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: F0 09 00 4F 43 00 05 6C A7 66 90 0F 3E 66 4B [10:16:32]GetLastDocTimeStamp 1722248060 [10:16:32]current date 1722248197 [10:16:32]FM_GetShiftState [10:16:32]SAM_PROTO_GetShiftState [10:16:32]wFMCommunicate request_size=4 [10:16:32]MH_SAM_APDU [10:16:32]CAPDU: 80 13 01 00 [10:16:32]Write to MH i2c: E2 08 00 50 43 80 13 01 00 00 00 00 00 10 [10:16:32]Write i2c OK [10:16:32]MH_I2C_Read... [10:16:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:32]Read from MH i2c: E2 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 0E 00 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: E2 0E 00 50 43 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 3E [10:16:32]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:16:32]wFMCommunicate OK [10:16:32]SAM_PROTO_GetShiftState done [10:16:32]FM_GetShiftState done [10:16:32]opened in 1722211641 [10:16:32]opened+sec_in_day 1722298041 [10:16:32]quantity*price = 50063 [10:16:32]sum+1 = 50064 [10:16:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 91 29.07.2024 10:16 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118715 ФПД: 182695753031143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T101637&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118715&fm=182695753031143&tin=02508201610067®Number=0000000000092660&sum=50000 [10:16:33]StoreToDocumentArchive [10:16:33]shift 434 fd 118715 [10:16:33]save to /storage/0434/doc_00118715 [10:16:33]save last doc name /storage/0434/doc_00118715 to /storage/kkm_last_doc_name [10:16:33]save OK [10:16:33]Clear old archive folders... [10:16:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:16:33]tlvbuf is B6F43700 [10:16:33]SAM_PROTO_ClearQueue [10:16:33]wFMCommunicate request_size=4 [10:16:33]MH_SAM_APDU [10:16:33]CAPDU: 80 09 00 00 [10:16:33]Write to MH i2c: E2 08 00 5D 43 80 09 00 00 00 00 00 00 12 [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:33]Read from MH i2c: E2 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 03 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 03 00 5D 43 00 90 00 14 [10:16:33]RAPDU: 90 00 [10:16:33]wFMCommunicate OK [10:16:33]SAM_PROTO_ClearQueue done [10:16:33]KKMCreateOFDPacket [10:16:33]OFDProtocolAddRootSTLVToBuf [10:16:33]FM_MakeSignedData [10:16:33]FM_MakeSignedData [10:16:33]SAM_PROTO_SignData [10:16:33]wFMCommunicate request_size=4 [10:16:33]MH_SAM_APDU [10:16:33]CAPDU: 80 0D 01 02 [10:16:33]Write to MH i2c: E2 08 00 5E 43 80 0D 01 02 00 00 00 00 1A [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:33]Read from MH i2c: E2 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 03 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 03 00 5E 43 00 90 00 15 [10:16:33]RAPDU: 90 00 [10:16:33]wFMCommunicate OK [10:16:33]wFMCommunicate request_size=255 [10:16:33]MH_SAM_APDU [10:16:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 05 6C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BB CF 01 00 35 04 06 00 A6 29 2B 76 [10:16:33]Write to MH i2c: E2 02 01 5F 43 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 05 6C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BB CF 01 00 35 04 06 00 A6 29 2B 76 00 00 B9 [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:34]Read from MH i2c: E2 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: E2 03 00 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: E2 03 00 5F 43 00 90 00 16 [10:16:34]RAPDU: 90 00 [10:16:34]wFMCommunicate OK [10:16:34]wFMCommunicate request_size=7 [10:16:34]MH_SAM_APDU [10:16:34]CAPDU: 80 0D 02 02 02 1D E7 [10:16:34]Write to MH i2c: E2 0A 00 60 43 80 0D 02 02 02 00 1D E7 00 00 25 [10:16:34]Write i2c OK [10:16:34]MH_I2C_Read... [10:16:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:34]Read from MH i2c: E2 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: E2 03 00 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: E2 03 00 60 43 00 90 00 17 [10:16:34]RAPDU: 90 00 [10:16:34]wFMCommunicate OK [10:16:34]wFMCommunicate request_size=4 [10:16:34]MH_SAM_APDU [10:16:34]CAPDU: 80 0D 03 02 [10:16:34]Write to MH i2c: E2 08 00 61 43 80 0D 03 02 00 00 00 00 1F [10:16:34]Write i2c OK [10:16:34]MH_I2C_Read... [10:16:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:34]Read from MH i2c: E2 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: E2 0B 00 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: E2 0B 00 61 43 00 E9 6E 5F E2 FD 95 38 29 90 00 AB [10:16:34]RAPDU: E9 6E 5F E2 FD 95 38 29 90 00 [10:16:34]wFMCommunicate OK [10:16:34]SAM_PROTO_SignData done [10:16:34]FM_MakeSignedData done [10:16:34]CreateOFDProtocolMessage [10:16:34]wFMCommunicate request_size=4 [10:16:34]MH_SAM_APDU [10:16:34]CAPDU: 80 11 00 00 [10:16:34]Write to MH i2c: E2 08 00 62 43 80 11 00 00 00 00 00 00 1F [10:16:34]Write i2c OK [10:16:34]MH_I2C_Read... [10:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:34]Read from MH i2c: E2 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: E2 17 00 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: E2 17 00 62 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7A [10:16:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:16:34]wFMCommunicate OK [10:16:34]CreateOFDProtocolMessage done [10:16:34]OFDSenderStorePacket 118715 [10:16:34]StoreOFDPacket docnum=118715 [10:16:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 62 72 04 01 33 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 05 6C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BB CF 01 00 35 04 06 00 A6 29 2B 76 1D E7 E9 6E 5F E2 FD 95 38 29 [10:16:34]CheckFolder [10:16:34]dirname=/storage/ofd_packets [10:16:34]CheckFolder done [10:16:34]ProducePacketName [10:16:34]name=ofd_packets/00118715 [10:16:34]NVStorageSaveData ofd_packets/00118715 [10:16:34]File name is /storage/ofd_packets/00118715 [10:16:34]Write 298 bytes [10:16:34]NVStorageSaveData done [10:16:34]OFDSenderStorePacket done [10:16:34]KKMCreateOFDPacket done [10:16:34]NVStorageSaveData kkm_last_timestamp [10:16:34]File name is /storage/kkm_last_timestamp [10:16:34]Write 4 bytes [10:16:34]NVStorageSaveData done [10:16:34]ExternCall_PrintAddStr [10:16:34]wPrintStart [10:16:34]Write to MH i2c: 01 00 00 63 43 A6 [10:16:34]Write i2c OK [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: 01 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: 01 07 00 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: 01 07 00 63 43 00 00 00 00 00 FF 0F BB [10:16:34]RasterBufferAndPrint [10:16:34]line Счет N : (1)949598 [10:16:34]line ИНН: 02508201610067 [10:16:34]line Контрольно-Кассовый Чек [10:16:34]line ПРОДАЖА [10:16:34]line ТРК (МРК, ГНК) : 64 [10:16:34]line Товар: 2710194800 [10:16:34]line ДТ-К-5 [10:16:34]line 6.570 * 76.20 [10:16:34]line = 500.63 [10:16:34]line НДС 12% НСП 1% [10:16:34]line > о реализуемом товаре [10:16:34]line ОКРУГЛЕНИЕ: -0.63 [10:16:34]line ИТОГО: 500.00 [10:16:34]line Внесено: 500.00 [10:16:34]line СДАЧА: 0.00 [10:16:34]line НСП 1% : 4.43 [10:16:34]line НДС 12% : 53.16 [10:16:34]line Наличными: 500.00 [10:16:34]line Безнал.: 0.00 [10:16:34]line Место: АЗС № 134 "Партнер Нефть" [10:16:34]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:16:34]line СНО: Общий режим [10:16:34]line Чек 91 29.07.2024 10:16 [10:16:34]line Смена: 434 ФФД: 1.0 [10:16:34]line ЗНМ: 0300000044 [10:16:34]line РНМ: 0000000000092660 [10:16:34]line Версия ККМ: 001 [10:16:34]line ФМ: 0000000000874939 [10:16:34]line ФД: 118715 [10:16:34]line ФПД: 182695753031143 [10:16:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T101637&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118715&fm=182695753031143&tin=02508201610067®Number=0000000000092660&sum=50000 [10:16:34]OFD Sender: Processing packet 118715 [packets to send 86, broken 85] [10:16:34]ProducePacketName [10:16:34]name=ofd_packets/00118715 [10:16:34]OFD Sender: To server: pG, [10:16:34]CommunicateWithHost lk.salyk.kg:30040 [10:16:34]ConnectInit lk.salyk.kg [10:16:34]written 0, free lines is 4095 [10:16:34]Connected sock=10 [10:16:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 62 72 04 01 33 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 05 6C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BB CF 01 00 35 04 06 00 A6 29 2B 76 1D E7 E9 6E 5F E2 FD 95 38 29 [10:16:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F9 5D 47 00 31 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BB CF 01 00 F4 03 04 00 93 19 A7 66 B6 04 01 00 00 D0 D7 3A EF B9 8E 9F E5 [10:16:34]CommunicateWithHost err = 0 [10:16:34]CheckOFDResponse [10:16:34]1017 (14) - 77093643461234 [10:16:34]1041 (16) - 0000000000874939 [10:16:34]1040 (4) - 118715 [10:16:34]1012 (4) - 29.07.2024 04:24 [10:16:34]1206 (1) - 0 [10:16:34]OFD Sender: Remove packet 118715 [10:16:34]ProducePacketName [10:16:34]name=ofd_packets/00118715 [10:16:34]NVStorageDeleteData [10:16:34]Write to MH i2c: 01 00 00 8D 43 D0 [10:16:34]Write i2c OK [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: 01 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: 01 07 00 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: 01 07 00 8D 43 00 00 00 00 00 DC 0C BF [10:16:34]RasterBufferAndPrint [10:16:34]line [10:16:34]line [10:16:34]line [10:16:34]line [10:16:34]line [10:16:34]written 0, free lines is 3298 [10:16:34]MH_Cut [10:16:34]Write to MH i2c: D1 01 00 94 43 01 A9 [10:16:34]Write i2c OK [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: D1 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: D1 01 00 [10:16:34]MH_I2C_Read... [10:16:34]Read from MH i2c: D1 01 00 94 43 00 A8 [10:16:34]Write to MH i2c: 01 00 00 95 43 D8 [10:16:34]Write i2c OK [10:16:34]MH_I2C_Read... [10:16:35]OFD Sender: No OFD packet to send [10:16:35]*** Cut start [10:16:35]*** Partial cut [10:16:35]*** CUTSNS_PIN = 1 [10:16:35]*** CUTSNS_PIN = 0 [10:16:35]*** Brake cut motor [10:16:36]Read from MH i2c: 01 [10:16:36]MH_I2C_Read... [10:16:36]*** Stop cut motor [10:16:36]*** Cut end [10:16:36]Read from MH i2c: 01 07 00 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: 01 07 00 95 43 00 00 00 00 00 FF 0F ED [10:16:36]process_action close_receipt done [10:16:36]requested_data is exist [10:16:36]produce_requested_data [10:16:36]requested_item fm.sn is exist - process it [10:16:36]wFMCommunicate request_size=4 [10:16:36]MH_SAM_APDU [10:16:36]CAPDU: 80 11 00 00 [10:16:36]Write to MH i2c: E2 08 00 96 43 80 11 00 00 00 00 00 00 53 [10:16:36]Write i2c OK [10:16:36]MH_I2C_Read... [10:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:36]Read from MH i2c: E2 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 17 00 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 17 00 96 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AE [10:16:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:16:36]wFMCommunicate OK [10:16:36]requested_item fd.num is exist - process it [10:16:36]SAM_PROTO_GetFieldsCounters [10:16:36]wFMCommunicate request_size=4 [10:16:36]MH_SAM_APDU [10:16:36]CAPDU: 80 13 00 00 [10:16:36]Write to MH i2c: E2 08 00 97 43 80 13 00 00 00 00 00 00 56 [10:16:36]Write i2c OK [10:16:36]MH_I2C_Read... [10:16:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:36]Read from MH i2c: E2 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 62 00 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 62 00 97 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BB CF 01 00 0E 04 04 00 B2 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 CC [10:16: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BB CF 01 00 0E 04 04 00 B2 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 [10:16:36]wFMCommunicate OK [10:16:36]SAM_PROTO_GetFieldsCounters done [10:16:36]requested_item shift.num is exist - process it [10:16:36]requested_item shift.opened is exist - process it [10:16:36]req_shift_opened [10:16:36]FM_GetShiftState [10:16:36]SAM_PROTO_GetShiftState [10:16:36]wFMCommunicate request_size=4 [10:16:36]MH_SAM_APDU [10:16:36]CAPDU: 80 13 01 00 [10:16:36]Write to MH i2c: E2 08 00 98 43 80 13 01 00 00 00 00 00 58 [10:16:36]Write i2c OK [10:16:36]MH_I2C_Read... [10:16:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:36]Read from MH i2c: E2 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 0E 00 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 0E 00 98 43 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 86 [10:16:36]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:16:36]wFMCommunicate OK [10:16:36]SAM_PROTO_GetShiftState done [10:16:36]FM_GetShiftState done [10:16:36]req_shift_opened done [10:16:36]requested_item shift.open_date is exist - process it [10:16:36]req_shift_open_date [10:16:36]req_shift_open_date done [10:16:36]produce_requested_data done [10:16:36]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118715,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:16:36]process_action_free close_receipt [10:16:36]json_value_free [10:16:36]json_value_free done [10:16:36]process_json_proto returns [10:16:36]Send response to host [10:16:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118715,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:16:36]free response buf [10:16:36]execute_script done [10:16:36]execute_script returns [10:16:36]free content buf [10:16:36]Sock 7.Close socket [10:16:36]Sock 7.Thread stoped [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:50]OFD Sender: No OFD packet to send [10:16:55]OFD Sender: No OFD packet to send [10:17:00]OFD Sender: No OFD packet to send [10:17:05]OFD Sender: No OFD packet to send [10:17:10]OFD Sender: No OFD packet to send [10:17:15]OFD Sender: No OFD packet to send [10:17:20]OFD Sender: No OFD packet to send [10:17:25]OFD Sender: No OFD packet to send [10:17:30]OFD Sender: No OFD packet to send [10:17:35]OFD Sender: No OFD packet to send [10:17:40]OFD Sender: No OFD packet to send [10:17:45]OFD Sender: No OFD packet to send [10:17:50]OFD Sender: No OFD packet to send [10:17:55]OFD Sender: No OFD packet to send [10:18:00]OFD Sender: No OFD packet to send [10:18:05]OFD Sender: No OFD packet to send [10:18:10]OFD Sender: No OFD packet to send [10:18:15]OFD Sender: No OFD packet to send [10:18:20]OFD Sender: No OFD packet to send [10:18:25]OFD Sender: No OFD packet to send [10:18:30]OFD Sender: No OFD packet to send [10:18:35]OFD Sender: No OFD packet to send [10:18:40]OFD Sender: No OFD packet to send [10:18:45]OFD Sender: No OFD packet to send [10:18:50]OFD Sender: No OFD packet to send [10:18:55]OFD Sender: No OFD packet to send [10:19:00]OFD Sender: No OFD packet to send [10:19:05]OFD Sender: No OFD packet to send [10:19:10]OFD Sender: No OFD packet to send [10:19:15]OFD Sender: No OFD packet to send [10:19:20]OFD Sender: No OFD packet to send [10:19:25]OFD Sender: No OFD packet to send [10:19:30]OFD Sender: No OFD packet to send [10:19:35]OFD Sender: No OFD packet to send [10:19:40]OFD Sender: No OFD packet to send [10:19:45]OFD Sender: No OFD packet to send [10:19:50]OFD Sender: No OFD packet to send [10:19:55]OFD Sender: No OFD packet to send [10:20:00]OFD Sender: No OFD packet to send [10:20:05]OFD Sender: No OFD packet to send [10:20:10]OFD Sender: No OFD packet to send [10:20:15]OFD Sender: No OFD packet to send [10:20:20]OFD Sender: No OFD packet to send [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [10:20:35]OFD Sender: No OFD packet to send [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:40]OFD Sender: No OFD packet to send [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:09]accept exits with 9 [10:24:09]New connection [10:24:09]New thread 3067383140 created [10:24:09]Thread 3067239780 joined [10:24:09]Waiting for new connection... [10:24:09] Sock 9.Parse request [10:24:09]Sock 9.Check first char [10:24:09]Sock 9.First char is OK [10:24:09]request: POST /json_proto HTTP/1.0 [10:24:09]Method: POST [10:24:09]URL: /json_proto [10:24:09]Method is POST - this is cgi request [10:24:09]url: /json_proto [10:24:09]query_string will be loaded in cgi processing [10:24:09]execute_cgi json_proto POST (null) [10:24:09]execute_cgi path=json_proto method=POST [10:24:09]POST find Content-Length [10:24:09]Host: 172.17.45.7:8080 [10:24:09]Content-Length: 675 [10:24:09]Content-Type: application/json [10:24:09] [10:24:09]POST finish read [10:24:09]Found Content-Length = 675 [10:24:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:09]execute_script... [10:24:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:09]POST & json_proto [10:24:09]process_json_proto [10:24:09]json parsed OK: [10:24:09]protocol is kg_v1.0 [10:24:09]action value=close_receipt [10:24:09]process_action close_receipt [10:24:09]cmd_close_receipt [10:24:09]MH_GetDate [10:24:09]Write to MH i2c: F0 00 00 99 43 CB [10:24:09]Write i2c OK [10:24:09]MH_I2C_Read... [10:24:09]Read from MH i2c: F0 [10:24:09]MH_I2C_Read... [10:24:09]Read from MH i2c: F0 09 00 [10:24:09]MH_I2C_Read... [10:24:09]Read from MH i2c: F0 09 00 99 43 00 CE 6D A7 66 90 0F 3E 66 5F [10:24:09]GetLastDocTimeStamp 1722248197 [10:24:09]current date 1722248654 [10:24:09]FM_GetShiftState [10:24:09]SAM_PROTO_GetShiftState [10:24:09]wFMCommunicate request_size=4 [10:24:09]MH_SAM_APDU [10:24:09]CAPDU: 80 13 01 00 [10:24:09]Write to MH i2c: E2 08 00 9A 43 80 13 01 00 00 00 00 00 5A [10:24:09]Write i2c OK [10:24:09]MH_I2C_Read... [10:24:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:09]Read from MH i2c: E2 [10:24:09]MH_I2C_Read... [10:24:09]Read from MH i2c: E2 0E 00 [10:24:09]MH_I2C_Read... [10:24:09]Read from MH i2c: E2 0E 00 9A 43 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 88 [10:24:09]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:24:09]wFMCommunicate OK [10:24:09]SAM_PROTO_GetShiftState done [10:24:09]FM_GetShiftState done [10:24:09]opened in 1722211641 [10:24:09]opened+sec_in_day 1722298041 [10:24:09]quantity*price = 90068 [10:24:09]sum+1 = 90069 [10:24:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.65 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 92 29.07.2024 10:24 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118716 ФПД: 13698636711002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T102414&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118716&fm=13698636711002&tin=02508201610067®Number=0000000000092660&sum=90000 [10:24:10]StoreToDocumentArchive [10:24:10]shift 434 fd 118716 [10:24:10]save to /storage/0434/doc_00118716 [10:24:10]save last doc name /storage/0434/doc_00118716 to /storage/kkm_last_doc_name [10:24:10]save OK [10:24:10]Clear old archive folders... [10:24:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:24:10]tlvbuf is 01EE73E0 [10:24:10]SAM_PROTO_ClearQueue [10:24:10]wFMCommunicate request_size=4 [10:24:10]MH_SAM_APDU [10:24:10]CAPDU: 80 09 00 00 [10:24:10]Write to MH i2c: E2 08 00 A7 43 80 09 00 00 00 00 00 00 5C [10:24:10]Write i2c OK [10:24:10]MH_I2C_Read... [10:24:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:11]Read from MH i2c: E2 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 03 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 03 00 A7 43 00 90 00 5E [10:24:11]RAPDU: 90 00 [10:24:11]wFMCommunicate OK [10:24:11]SAM_PROTO_ClearQueue done [10:24:11]KKMCreateOFDPacket [10:24:11]OFDProtocolAddRootSTLVToBuf [10:24:11]FM_MakeSignedData [10:24:11]FM_MakeSignedData [10:24:11]SAM_PROTO_SignData [10:24:11]wFMCommunicate request_size=4 [10:24:11]MH_SAM_APDU [10:24:11]CAPDU: 80 0D 01 02 [10:24:11]Write to MH i2c: E2 08 00 A8 43 80 0D 01 02 00 00 00 00 64 [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:11]Read from MH i2c: E2 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 03 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 03 00 A8 43 00 90 00 5F [10:24:11]RAPDU: 90 00 [10:24:11]wFMCommunicate OK [10:24:11]wFMCommunicate request_size=255 [10:24:11]MH_SAM_APDU [10:24:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 CE 6D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BC CF 01 00 35 04 06 00 0C 75 76 60 [10:24:11]Write to MH i2c: E2 02 01 A9 43 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 CE 6D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BC CF 01 00 35 04 06 00 0C 75 76 60 00 00 F7 [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:11]Read from MH i2c: E2 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 03 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 03 00 A9 43 00 90 00 60 [10:24:11]RAPDU: 90 00 [10:24:11]wFMCommunicate OK [10:24:11]wFMCommunicate request_size=7 [10:24:11]MH_SAM_APDU [10:24:11]CAPDU: 80 0D 02 02 02 04 5A [10:24:11]Write to MH i2c: E2 0A 00 AA 43 80 0D 02 02 02 00 04 5A 00 00 C9 [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:11]Read from MH i2c: E2 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 03 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 03 00 AA 43 00 90 00 61 [10:24:11]RAPDU: 90 00 [10:24:11]wFMCommunicate OK [10:24:11]wFMCommunicate request_size=4 [10:24:11]MH_SAM_APDU [10:24:11]CAPDU: 80 0D 03 02 [10:24:11]Write to MH i2c: E2 08 00 AB 43 80 0D 03 02 00 00 00 00 69 [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:11]Read from MH i2c: E2 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 0B 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 0B 00 AB 43 00 D1 DB 78 F3 7D 4F CB A0 90 00 B8 [10:24:11]RAPDU: D1 DB 78 F3 7D 4F CB A0 90 00 [10:24:11]wFMCommunicate OK [10:24:11]SAM_PROTO_SignData done [10:24:11]FM_MakeSignedData done [10:24:11]CreateOFDProtocolMessage [10:24:11]wFMCommunicate request_size=4 [10:24:11]MH_SAM_APDU [10:24:11]CAPDU: 80 11 00 00 [10:24:11]Write to MH i2c: E2 08 00 AC 43 80 11 00 00 00 00 00 00 69 [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:11]Read from MH i2c: E2 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 17 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 17 00 AC 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C4 [10:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:24:11]wFMCommunicate OK [10:24:11]CreateOFDProtocolMessage done [10:24:11]OFDSenderStorePacket 118716 [10:24:11]StoreOFDPacket docnum=118716 [10:24:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 34 88 04 01 75 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 CE 6D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BC CF 01 00 35 04 06 00 0C 75 76 60 04 5A D1 DB 78 F3 7D 4F CB A0 [10:24:11]CheckFolder [10:24:11]dirname=/storage/ofd_packets [10:24:11]CheckFolder done [10:24:11]ProducePacketName [10:24:11]name=ofd_packets/00118716 [10:24:11]NVStorageSaveData ofd_packets/00118716 [10:24:11]File name is /storage/ofd_packets/00118716 [10:24:11]Write 298 bytes [10:24:11]NVStorageSaveData done [10:24:11]OFDSenderStorePacket done [10:24:11]KKMCreateOFDPacket done [10:24:11]NVStorageSaveData kkm_last_timestamp [10:24:11]File name is /storage/kkm_last_timestamp [10:24:11]Write 4 bytes [10:24:11]NVStorageSaveData done [10:24:11]ExternCall_PrintAddStr [10:24:11]wPrintStart [10:24:11]Write to MH i2c: 01 00 00 AD 43 F0 [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: 01 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: 01 07 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: 01 07 00 AD 43 00 00 00 00 00 FF 0F 05 [10:24:11]RasterBufferAndPrint [10:24:11]line Счет N : (1)949599 [10:24:11]line ИНН: 02508201610067 [10:24:11]line Контрольно-Кассовый Чек [10:24:11]line ПРОДАЖА [10:24:11]line ТРК (МРК, ГНК) : 44 [10:24:11]line Товар: 2710194800 [10:24:11]line ДТ-К-5 [10:24:11]line 11.820 * 76.20 [10:24:11]line = 900.68 [10:24:11]line НДС 12% НСП 1% [10:24:11]line > о реализуемом товаре [10:24:11]line ОКРУГЛЕНИЕ: -0.68 [10:24:11]line ИТОГО: 900.00 [10:24:11]line Внесено: 900.00 [10:24:11]line СДАЧА: 0.00 [10:24:11]line НСП 1% : 7.97 [10:24:11]line НДС 12% : 95.65 [10:24:11]line Наличными: 900.00 [10:24:11]line Безнал.: 0.00 [10:24:11]line Место: АЗС № 134 "Партнер Нефть" [10:24:11]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:24:11]line СНО: Общий режим [10:24:11]line Чек 92 29.07.2024 10:24 [10:24:11]line Смена: 434 ФФД: 1.0 [10:24:11]line ЗНМ: 0300000044 [10:24:11]line РНМ: 0000000000092660 [10:24:11]line Версия ККМ: 001 [10:24:11]line ФМ: 0000000000874939 [10:24:11]line ФД: 118716 [10:24:11]line ФПД: 13698636711002 [10:24:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T102414&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118716&fm=13698636711002&tin=02508201610067®Number=0000000000092660&sum=90000 [10:24:11]OFD Sender: Processing packet 118716 [packets to send 86, broken 85] [10:24:11]ProducePacketName [10:24:11]name=ofd_packets/00118716 [10:24:11]OFD Sender: To server: pG, [10:24:11]CommunicateWithHost lk.salyk.kg:30040 [10:24:11]ConnectInit lk.salyk.kg [10:24:11]written 0, free lines is 4095 [10:24:11]Connected sock=7 [10:24:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 34 88 04 01 75 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 CE 6D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BC CF 01 00 35 04 06 00 0C 75 76 60 04 5A D1 DB 78 F3 7D 4F CB A0 [10:24:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6E B7 47 00 AA A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BC CF 01 00 F4 03 04 00 5D 1B A7 66 B6 04 01 00 00 59 31 E0 60 B2 C4 5B F9 [10:24:12]CommunicateWithHost err = 0 [10:24:12]CheckOFDResponse [10:24:12]1017 (14) - 77093643461234 [10:24:12]1041 (16) - 0000000000874939 [10:24:12]1040 (4) - 118716 [10:24:12]1012 (4) - 29.07.2024 04:32 [10:24:12]1206 (1) - 0 [10:24:12]OFD Sender: Remove packet 118716 [10:24:12]ProducePacketName [10:24:12]name=ofd_packets/00118716 [10:24:12]NVStorageDeleteData [10:24:12]Write to MH i2c: 01 00 00 D7 43 1A [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: 01 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: 01 07 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: 01 07 00 D7 43 00 00 00 00 00 EB 0C 18 [10:24:12]RasterBufferAndPrint [10:24:12]line [10:24:12]line [10:24:12]line [10:24:12]line [10:24:12]line [10:24:12]written 0, free lines is 3314 [10:24:12]MH_Cut [10:24:12]Write to MH i2c: D1 01 00 DE 43 01 F3 [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: D1 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: D1 01 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: D1 01 00 DE 43 00 F2 [10:24:12]Write to MH i2c: 01 00 00 DF 43 22 [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]OFD Sender: No OFD packet to send [10:24:13]*** Cut start [10:24:13]*** Partial cut [10:24:13]*** CUTSNS_PIN = 1 [10:24:13]*** CUTSNS_PIN = 0 [10:24:13]*** Brake cut motor [10:24:13]Read from MH i2c: 01 [10:24:13]MH_I2C_Read... [10:24:13]*** Stop cut motor [10:24:13]*** Cut end [10:24:13]Read from MH i2c: 01 07 00 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: 01 07 00 DF 43 00 00 00 00 00 FF 0F 37 [10:24:13]process_action close_receipt done [10:24:13]requested_data is exist [10:24:13]produce_requested_data [10:24:13]requested_item fm.sn is exist - process it [10:24:13]wFMCommunicate request_size=4 [10:24:13]MH_SAM_APDU [10:24:13]CAPDU: 80 11 00 00 [10:24:13]Write to MH i2c: E2 08 00 E0 43 80 11 00 00 00 00 00 00 9D [10:24:13]Write i2c OK [10:24:13]MH_I2C_Read... [10:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:13]Read from MH i2c: E2 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: E2 17 00 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: E2 17 00 E0 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F8 [10:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:24:13]wFMCommunicate OK [10:24:13]requested_item fd.num is exist - process it [10:24:13]SAM_PROTO_GetFieldsCounters [10:24:13]wFMCommunicate request_size=4 [10:24:13]MH_SAM_APDU [10:24:13]CAPDU: 80 13 00 00 [10:24:13]Write to MH i2c: E2 08 00 E1 43 80 13 00 00 00 00 00 00 A0 [10:24:13]Write i2c OK [10:24:13]MH_I2C_Read... [10:24:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:13]Read from MH i2c: E2 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: E2 62 00 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: E2 62 00 E1 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BC CF 01 00 0E 04 04 00 B2 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 1A [10:24:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BC CF 01 00 0E 04 04 00 B2 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 [10:24:13]wFMCommunicate OK [10:24:13]SAM_PROTO_GetFieldsCounters done [10:24:13]requested_item shift.num is exist - process it [10:24:13]requested_item shift.opened is exist - process it [10:24:13]req_shift_opened [10:24:13]FM_GetShiftState [10:24:13]SAM_PROTO_GetShiftState [10:24:13]wFMCommunicate request_size=4 [10:24:13]MH_SAM_APDU [10:24:13]CAPDU: 80 13 01 00 [10:24:13]Write to MH i2c: E2 08 00 E2 43 80 13 01 00 00 00 00 00 A2 [10:24:13]Write i2c OK [10:24:13]MH_I2C_Read... [10:24:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:13]Read from MH i2c: E2 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: E2 0E 00 [10:24:13]MH_I2C_Read... [10:24:13]Read from MH i2c: E2 0E 00 E2 43 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D0 [10:24:13]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:24:13]wFMCommunicate OK [10:24:13]SAM_PROTO_GetShiftState done [10:24:13]FM_GetShiftState done [10:24:13]req_shift_opened done [10:24:13]requested_item shift.open_date is exist - process it [10:24:13]req_shift_open_date [10:24:13]req_shift_open_date done [10:24:13]produce_requested_data done [10:24:13]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118716,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:24:13]process_action_free close_receipt [10:24:13]json_value_free [10:24:13]json_value_free done [10:24:13]process_json_proto returns [10:24:13]Send response to host [10:24:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118716,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:24:13]free response buf [10:24:13]execute_script done [10:24:13]execute_script returns [10:24:13]free content buf [10:24:13]Sock 9.Close socket [10:24:13]Sock 9.Thread stoped [10:24:17]OFD Sender: No OFD packet to send [10:24:22]OFD Sender: No OFD packet to send [10:24:27]OFD Sender: No OFD packet to send [10:24:32]OFD Sender: No OFD packet to send [10:24:37]OFD Sender: No OFD packet to send [10:24:42]OFD Sender: No OFD packet to send [10:24:47]OFD Sender: No OFD packet to send [10:24:52]OFD Sender: No OFD packet to send [10:24:57]OFD Sender: No OFD packet to send [10:25:02]OFD Sender: No OFD packet to send [10:25:07]OFD Sender: No OFD packet to send [10:25:12]OFD Sender: No OFD packet to send [10:25:17]OFD Sender: No OFD packet to send [10:25:22]OFD Sender: No OFD packet to send [10:25:27]OFD Sender: No OFD packet to send [10:25:32]OFD Sender: No OFD packet to send [10:25:37]OFD Sender: No OFD packet to send [10:25:42]OFD Sender: No OFD packet to send [10:25:47]OFD Sender: No OFD packet to send [10:25:52]OFD Sender: No OFD packet to send [10:25:57]OFD Sender: No OFD packet to send [10:26:02]OFD Sender: No OFD packet to send [10:26:07]OFD Sender: No OFD packet to send [10:26:12]OFD Sender: No OFD packet to send [10:26:17]OFD Sender: No OFD packet to send [10:26:22]OFD Sender: No OFD packet to send [10:26:27]OFD Sender: No OFD packet to send [10:26:32]OFD Sender: No OFD packet to send [10:26:37]OFD Sender: No OFD packet to send [10:26:42]OFD Sender: No OFD packet to send [10:26:47]OFD Sender: No OFD packet to send [10:26:52]OFD Sender: No OFD packet to send [10:26:57]OFD Sender: No OFD packet to send [10:27:02]OFD Sender: No OFD packet to send [10:27:07]OFD Sender: No OFD packet to send [10:27:12]OFD Sender: No OFD packet to send [10:27:17]OFD Sender: No OFD packet to send [10:27:22]OFD Sender: No OFD packet to send [10:27:27]OFD Sender: No OFD packet to send [10:27:32]OFD Sender: No OFD packet to send [10:27:37]OFD Sender: No OFD packet to send [10:27:40]accept exits with 10 [10:27:40]New connection [10:27:40]New thread 3067239780 created [10:27:40]Thread 3067383140 joined [10:27:40]Waiting for new connection... [10:27:40] Sock 10.Parse request [10:27:40]Sock 10.Check first char [10:27:40]Sock 10.First char is OK [10:27:40]request: POST /json_proto HTTP/1.0 [10:27:40]Method: POST [10:27:40]URL: /json_proto [10:27:40]Method is POST - this is cgi request [10:27:40]url: /json_proto [10:27:40]query_string will be loaded in cgi processing [10:27:40]execute_cgi json_proto POST (null) [10:27:40]execute_cgi path=json_proto method=POST [10:27:40]POST find Content-Length [10:27:40]Host: 172.17.45.7:8080 [10:27:40]Content-Length: 677 [10:27:40]Content-Type: application/json [10:27:40] [10:27:40]POST finish read [10:27:40]Found Content-Length = 677 [10:27:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:40]execute_script... [10:27:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:40]POST & json_proto [10:27:40]process_json_proto [10:27:40]json parsed OK: [10:27:40]protocol is kg_v1.0 [10:27:40]action value=close_receipt [10:27:40]process_action close_receipt [10:27:40]cmd_close_receipt [10:27:40]MH_GetDate [10:27:40]Write to MH i2c: F0 00 00 E3 43 15 [10:27:40]Write i2c OK [10:27:40]MH_I2C_Read... [10:27:40]Read from MH i2c: F0 [10:27:40]MH_I2C_Read... [10:27:40]Read from MH i2c: F0 09 00 [10:27:40]MH_I2C_Read... [10:27:40]Read from MH i2c: F0 09 00 E3 43 00 A1 6E A7 66 90 0F 3E 66 7D [10:27:40]GetLastDocTimeStamp 1722248654 [10:27:40]current date 1722248865 [10:27:40]FM_GetShiftState [10:27:40]SAM_PROTO_GetShiftState [10:27:40]wFMCommunicate request_size=4 [10:27:40]MH_SAM_APDU [10:27:40]CAPDU: 80 13 01 00 [10:27:40]Write to MH i2c: E2 08 00 E4 43 80 13 01 00 00 00 00 00 A4 [10:27:40]Write i2c OK [10:27:40]MH_I2C_Read... [10:27:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:40]Read from MH i2c: E2 [10:27:40]MH_I2C_Read... [10:27:40]Read from MH i2c: E2 0E 00 [10:27:40]MH_I2C_Read... [10:27:40]Read from MH i2c: E2 0E 00 E4 43 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D2 [10:27:40]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:27:40]wFMCommunicate OK [10:27:40]SAM_PROTO_GetShiftState done [10:27:40]FM_GetShiftState done [10:27:40]opened in 1722211641 [10:27:40]opened+sec_in_day 1722298041 [10:27:40]quantity*price = 50036 [10:27:40]sum+1 = 50037 [10:27:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 93 29.07.2024 10:27 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118717 ФПД: 177723754761634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T102745&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118717&fm=177723754761634&tin=02508201610067®Number=0000000000092660&sum=50000 [10:27:41]StoreToDocumentArchive [10:27:41]shift 434 fd 118717 [10:27:41]save to /storage/0434/doc_00118717 [10:27:41]save last doc name /storage/0434/doc_00118717 to /storage/kkm_last_doc_name [10:27:41]save OK [10:27:41]Clear old archive folders... [10:27:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:41]tlvbuf is B6FBE350 [10:27:41]SAM_PROTO_ClearQueue [10:27:41]wFMCommunicate request_size=4 [10:27:41]MH_SAM_APDU [10:27:41]CAPDU: 80 09 00 00 [10:27:41]Write to MH i2c: E2 08 00 F1 43 80 09 00 00 00 00 00 00 A6 [10:27:41]Write i2c OK [10:27:41]MH_I2C_Read... [10:27:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:41]Read from MH i2c: E2 [10:27:41]MH_I2C_Read... [10:27:41]Read from MH i2c: E2 03 00 [10:27:41]MH_I2C_Read... [10:27:41]Read from MH i2c: E2 03 00 F1 43 00 90 00 A8 [10:27:41]RAPDU: 90 00 [10:27:41]wFMCommunicate OK [10:27:41]SAM_PROTO_ClearQueue done [10:27:41]KKMCreateOFDPacket [10:27:41]OFDProtocolAddRootSTLVToBuf [10:27:41]FM_MakeSignedData [10:27:41]FM_MakeSignedData [10:27:41]SAM_PROTO_SignData [10:27:41]wFMCommunicate request_size=4 [10:27:41]MH_SAM_APDU [10:27:41]CAPDU: 80 0D 01 02 [10:27:41]Write to MH i2c: E2 08 00 F2 43 80 0D 01 02 00 00 00 00 AE [10:27:41]Write i2c OK [10:27:41]MH_I2C_Read... [10:27:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:41]Read from MH i2c: E2 [10:27:41]MH_I2C_Read... [10:27:41]Read from MH i2c: E2 03 00 [10:27:41]MH_I2C_Read... [10:27:41]Read from MH i2c: E2 03 00 F2 43 00 90 00 A9 [10:27:41]RAPDU: 90 00 [10:27:41]wFMCommunicate OK [10:27:41]wFMCommunicate request_size=255 [10:27:41]MH_SAM_APDU [10:27: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 A1 6E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BD CF 01 00 35 04 06 00 A1 [10:27:41]Write to MH i2c: E2 02 01 F3 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 A1 6E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BD CF 01 00 35 04 06 00 A1 00 00 8C [10:27:41]Write i2c OK [10:27:41]MH_I2C_Read... [10:27:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:41]Read from MH i2c: E2 [10:27:41]MH_I2C_Read... [10:27:41]Read from MH i2c: E2 03 00 [10:27:41]MH_I2C_Read... [10:27:41]Read from MH i2c: E2 03 00 F3 43 00 90 00 AA [10:27:41]RAPDU: 90 00 [10:27:41]wFMCommunicate OK [10:27:41]wFMCommunicate request_size=10 [10:27:41]MH_SAM_APDU [10:27:41]CAPDU: 80 0D 02 02 05 A3 89 45 4D A2 [10:27:41]Write to MH i2c: E2 0D 00 F4 43 80 0D 02 02 05 00 A3 89 45 4D A2 00 00 1B [10:27:41]Write i2c OK [10:27:41]MH_I2C_Read... [10:27:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:42]Read from MH i2c: E2 [10:27:42]MH_I2C_Read... [10:27:42]Read from MH i2c: E2 03 00 [10:27:42]MH_I2C_Read... [10:27:42]Read from MH i2c: E2 03 00 F4 43 00 90 00 AB [10:27:42]RAPDU: 90 00 [10:27:42]wFMCommunicate OK [10:27:42]wFMCommunicate request_size=4 [10:27:42]MH_SAM_APDU [10:27:42]CAPDU: 80 0D 03 02 [10:27:42]Write to MH i2c: E2 08 00 F5 43 80 0D 03 02 00 00 00 00 B3 [10:27:42]Write i2c OK [10:27:42]MH_I2C_Read... [10:27:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:42]Read from MH i2c: E2 [10:27:42]MH_I2C_Read... [10:27:42]Read from MH i2c: E2 0B 00 [10:27:42]MH_I2C_Read... [10:27:42]Read from MH i2c: E2 0B 00 F5 43 00 8D 05 2E 4A D5 6B 25 6E 90 00 91 [10:27:42]RAPDU: 8D 05 2E 4A D5 6B 25 6E 90 00 [10:27:42]wFMCommunicate OK [10:27:42]SAM_PROTO_SignData done [10:27:42]FM_MakeSignedData done [10:27:42]CreateOFDProtocolMessage [10:27:42]wFMCommunicate request_size=4 [10:27:42]MH_SAM_APDU [10:27:42]CAPDU: 80 11 00 00 [10:27:42]Write to MH i2c: E2 08 00 F6 43 80 11 00 00 00 00 00 00 B3 [10:27:42]Write i2c OK [10:27:42]MH_I2C_Read... [10:27:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:42]Read from MH i2c: E2 [10:27:42]MH_I2C_Read... [10:27:42]Read from MH i2c: E2 17 00 [10:27:42]MH_I2C_Read... [10:27:42]Read from MH i2c: E2 17 00 F6 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0E [10:27:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:27:42]wFMCommunicate OK [10:27:42]CreateOFDProtocolMessage done [10:27:42]OFDSenderStorePacket 118717 [10:27:42]StoreOFDPacket docnum=118717 [10:27:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B8 07 07 01 06 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 A1 6E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BD CF 01 00 35 04 06 00 A1 A3 89 45 4D A2 8D 05 2E 4A D5 6B 25 6E [10:27:42]CheckFolder [10:27:42]dirname=/storage/ofd_packets [10:27:42]CheckFolder done [10:27:42]ProducePacketName [10:27:42]name=ofd_packets/00118717 [10:27:42]NVStorageSaveData ofd_packets/00118717 [10:27:42]File name is /storage/ofd_packets/00118717 [10:27:42]Write 301 bytes [10:27:42]NVStorageSaveData done [10:27:42]OFDSenderStorePacket done [10:27:42]KKMCreateOFDPacket done [10:27:42]NVStorageSaveData kkm_last_timestamp [10:27:42]File name is /storage/kkm_last_timestamp [10:27:42]Write 4 bytes [10:27:42]NVStorageSaveData done [10:27:42]ExternCall_PrintAddStr [10:27:42]wPrintStart [10:27:42]Write to MH i2c: 01 00 00 F7 43 3A [10:27:42]Write i2c OK [10:27:42]MH_I2C_Read... [10:27:42]Read from MH i2c: 01 [10:27:42]MH_I2C_Read... [10:27:42]Read from MH i2c: 01 07 00 [10:27:42]MH_I2C_Read... [10:27:42]Read from MH i2c: 01 07 00 F7 43 00 00 00 00 00 FF 0F 4F [10:27:42]RasterBufferAndPrint [10:27:42]line Счет N : (1)949600 [10:27:42]line ИНН: 02508201610067 [10:27:42]line Контрольно-Кассовый Чек [10:27:42]line ПРОДАЖА [10:27:42]line ТРК (МРК, ГНК) : 61 [10:27:42]line Товар: 2710124130 [10:27:42]line Аи-92-К-4 [10:27:42]line 7.380 * 67.80 [10:27:42]line = 500.36 [10:27:42]line НДС 12% НСП 1% [10:27:42]line > о реализуемом товаре [10:27:42]line ОКРУГЛЕНИЕ: -0.36 [10:27:42]line ИТОГО: 500.00 [10:27:42]line Внесено: 500.00 [10:27:42]line СДАЧА: 0.00 [10:27:42]line НСП 1% : 4.43 [10:27:42]line НДС 12% : 53.14 [10:27:42]line Наличными: 500.00 [10:27:42]line Безнал.: 0.00 [10:27:42]line Место: АЗС № 134 "Партнер Нефть" [10:27:42]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:27:42]line СНО: Общий режим [10:27:42]line Чек 93 29.07.2024 10:27 [10:27:42]line Смена: 434 ФФД: 1.0 [10:27:42]line ЗНМ: 0300000044 [10:27:42]line РНМ: 0000000000092660 [10:27:42]line Версия ККМ: 001 [10:27:42]line ФМ: 0000000000874939 [10:27:42]line ФД: 118717 [10:27:42]line ФПД: 177723754761634 [10:27:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T102745&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118717&fm=177723754761634&tin=02508201610067®Number=0000000000092660&sum=50000 [10:27:42]OFD Sender: Processing packet 118717 [packets to send 86, broken 85] [10:27:42]ProducePacketName [10:27:42]name=ofd_packets/00118717 [10:27:42]OFD Sender: To server: pG, [10:27:42]CommunicateWithHost lk.salyk.kg:30040 [10:27:42]ConnectInit lk.salyk.kg [10:27:42]written 0, free lines is 4095 [10:27:42]Connected sock=9 [10:27:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B8 07 07 01 06 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 A1 6E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BD CF 01 00 35 04 06 00 A1 A3 89 45 4D A2 8D 05 2E 4A D5 6B 25 6E [10:27:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EA EE 47 00 9C 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 34 39 33 39 10 04 04 00 BD CF 01 00 F4 03 04 00 2F 1C A7 66 B6 04 01 00 00 6C 5D E0 D6 55 D2 F0 CC [10:27:42]CommunicateWithHost err = 0 [10:27:42]CheckOFDResponse [10:27:42]1017 (14) - 77093643461234 [10:27:42]1041 (16) - 0000000000874939 [10:27:42]1040 (4) - 118717 [10:27:42]1012 (4) - 29.07.2024 04:35 [10:27:42]1206 (1) - 0 [10:27:42]OFD Sender: Remove packet 118717 [10:27:42]ProducePacketName [10:27:42]name=ofd_packets/00118717 [10:27:42]NVStorageDeleteData [10:27:42]Write to MH i2c: 01 00 00 21 44 65 [10:27:42]Write i2c OK [10:27:42]MH_I2C_Read... [10:27:42]Read from MH i2c: 01 [10:27:42]MH_I2C_Read... [10:27:42]Read from MH i2c: 01 07 00 [10:27:42]MH_I2C_Read... [10:27:42]Read from MH i2c: 01 07 00 21 44 00 00 00 00 00 EB 0C 63 [10:27:42]RasterBufferAndPrint [10:27:42]line [10:27:42]line [10:27:42]line [10:27:42]line [10:27:42]line [10:27:42]written 0, free lines is 3313 [10:27:42]MH_Cut [10:27:42]Write to MH i2c: D1 01 00 28 44 01 3E [10:27:42]Write i2c OK [10:27:42]MH_I2C_Read... [10:27:42]Read from MH i2c: D1 [10:27:42]MH_I2C_Read... [10:27:42]Read from MH i2c: D1 01 00 [10:27:42]MH_I2C_Read... [10:27:42]Read from MH i2c: D1 01 00 28 44 00 3D [10:27:42]Write to MH i2c: 01 00 00 29 44 6D [10:27:42]Write i2c OK [10:27:42]MH_I2C_Read... [10:27:43]OFD Sender: No OFD packet to send [10:27:43]*** Cut start [10:27:43]*** Partial cut [10:27:43]*** CUTSNS_PIN = 1 [10:27:43]*** CUTSNS_PIN = 0 [10:27:43]*** Brake cut motor [10:27:44]Read from MH i2c: 01 [10:27:44]MH_I2C_Read... [10:27:44]*** Stop cut motor [10:27:44]*** Cut end [10:27:44]Read from MH i2c: 01 07 00 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: 01 07 00 29 44 00 00 00 00 00 FF 0F 82 [10:27:44]process_action close_receipt done [10:27:44]requested_data is exist [10:27:44]produce_requested_data [10:27:44]requested_item fm.sn is exist - process it [10:27:44]wFMCommunicate request_size=4 [10:27:44]MH_SAM_APDU [10:27:44]CAPDU: 80 11 00 00 [10:27:44]Write to MH i2c: E2 08 00 2A 44 80 11 00 00 00 00 00 00 E8 [10:27:44]Write i2c OK [10:27:44]MH_I2C_Read... [10:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:44]Read from MH i2c: E2 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 17 00 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 17 00 2A 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 43 [10:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:27:44]wFMCommunicate OK [10:27:44]requested_item fd.num is exist - process it [10:27:44]SAM_PROTO_GetFieldsCounters [10:27:44]wFMCommunicate request_size=4 [10:27:44]MH_SAM_APDU [10:27:44]CAPDU: 80 13 00 00 [10:27:44]Write to MH i2c: E2 08 00 2B 44 80 13 00 00 00 00 00 00 EB [10:27:44]Write i2c OK [10:27:44]MH_I2C_Read... [10:27:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:44]Read from MH i2c: E2 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 62 00 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 62 00 2B 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BD CF 01 00 0E 04 04 00 B2 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 69 [10:27: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BD CF 01 00 0E 04 04 00 B2 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 [10:27:44]wFMCommunicate OK [10:27:44]SAM_PROTO_GetFieldsCounters done [10:27:44]requested_item shift.num is exist - process it [10:27:44]requested_item shift.opened is exist - process it [10:27:44]req_shift_opened [10:27:44]FM_GetShiftState [10:27:44]SAM_PROTO_GetShiftState [10:27:44]wFMCommunicate request_size=4 [10:27:44]MH_SAM_APDU [10:27:44]CAPDU: 80 13 01 00 [10:27:44]Write to MH i2c: E2 08 00 2C 44 80 13 01 00 00 00 00 00 ED [10:27:44]Write i2c OK [10:27:44]MH_I2C_Read... [10:27:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:44]Read from MH i2c: E2 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 0E 00 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 0E 00 2C 44 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 1B [10:27:44]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:27:44]wFMCommunicate OK [10:27:44]SAM_PROTO_GetShiftState done [10:27:44]FM_GetShiftState done [10:27:44]req_shift_opened done [10:27:44]requested_item shift.open_date is exist - process it [10:27:44]req_shift_open_date [10:27:44]req_shift_open_date done [10:27:44]produce_requested_data done [10:27:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118717,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:27:44]process_action_free close_receipt [10:27:44]json_value_free [10:27:44]json_value_free done [10:27:44]process_json_proto returns [10:27:44]Send response to host [10:27:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118717,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:27:44]free response buf [10:27:44]execute_script done [10:27:44]execute_script returns [10:27:44]free content buf [10:27:44]Sock 10.Close socket [10:27:44]Sock 10.Thread stoped [10:27:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:55]accept exits with 7 [10:27:55]New connection [10:27:55]New thread 3067383140 created [10:27:55]Thread 3067239780 joined [10:27:55]Waiting for new connection... [10:27:55] Sock 7.Parse request [10:27:55]Sock 7.Check first char [10:27:55]Sock 7.First char is OK [10:27:55]request: POST /json_proto HTTP/1.0 [10:27:55]Method: POST [10:27:55]URL: /json_proto [10:27:55]Method is POST - this is cgi request [10:27:55]url: /json_proto [10:27:55]query_string will be loaded in cgi processing [10:27:55]execute_cgi json_proto POST (null) [10:27:55]execute_cgi path=json_proto method=POST [10:27:55]POST find Content-Length [10:27:55]Host: 172.17.45.7:8080 [10:27:55]Content-Length: 674 [10:27:55]Content-Type: application/json [10:27:55] [10:27:55]POST finish read [10:27:55]Found Content-Length = 674 [10:27:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:55]execute_script... [10:27:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:55]POST & json_proto [10:27:55]process_json_proto [10:27:55]json parsed OK: [10:27:55]protocol is kg_v1.0 [10:27:55]action value=close_receipt [10:27:55]process_action close_receipt [10:27:55]cmd_close_receipt [10:27:55]MH_GetDate [10:27:55]Write to MH i2c: F0 00 00 2D 44 60 [10:27:55]Write i2c OK [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: F0 [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: F0 09 00 [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: F0 09 00 2D 44 00 B0 6E A7 66 90 0F 3E 66 D7 [10:27:55]GetLastDocTimeStamp 1722248865 [10:27:55]current date 1722248880 [10:27:55]FM_GetShiftState [10:27:55]SAM_PROTO_GetShiftState [10:27:55]wFMCommunicate request_size=4 [10:27:55]MH_SAM_APDU [10:27:55]CAPDU: 80 13 01 00 [10:27:55]Write to MH i2c: E2 08 00 2E 44 80 13 01 00 00 00 00 00 EF [10:27:55]Write i2c OK [10:27:55]MH_I2C_Read... [10:27:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:55]Read from MH i2c: E2 [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: E2 0E 00 [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: E2 0E 00 2E 44 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 1D [10:27:55]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:27:55]wFMCommunicate OK [10:27:55]SAM_PROTO_GetShiftState done [10:27:55]FM_GetShiftState done [10:27:55]opened in 1722211641 [10:27:55]opened+sec_in_day 1722298041 [10:27:55]quantity*price = 60045 [10:27:55]sum+1 = 60047 [10:27:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 94 29.07.2024 10:28 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118718 ФПД: 258147213723600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T102800&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118718&fm=258147213723600&tin=02508201610067®Number=0000000000092660&sum=60000 [10:27:56]StoreToDocumentArchive [10:27:56]shift 434 fd 118718 [10:27:56]save to /storage/0434/doc_00118718 [10:27:56]save last doc name /storage/0434/doc_00118718 to /storage/kkm_last_doc_name [10:27:56]save OK [10:27:56]Clear old archive folders... [10:27:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:27:56]tlvbuf is 01EDFBE0 [10:27:56]SAM_PROTO_ClearQueue [10:27:56]wFMCommunicate request_size=4 [10:27:56]MH_SAM_APDU [10:27:56]CAPDU: 80 09 00 00 [10:27:56]Write to MH i2c: E2 08 00 3B 44 80 09 00 00 00 00 00 00 F1 [10:27:56]Write i2c OK [10:27:56]MH_I2C_Read... [10:27:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:56]Read from MH i2c: E2 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: E2 03 00 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: E2 03 00 3B 44 00 90 00 F3 [10:27:56]RAPDU: 90 00 [10:27:56]wFMCommunicate OK [10:27:56]SAM_PROTO_ClearQueue done [10:27:56]KKMCreateOFDPacket [10:27:56]OFDProtocolAddRootSTLVToBuf [10:27:56]FM_MakeSignedData [10:27:56]FM_MakeSignedData [10:27:56]SAM_PROTO_SignData [10:27:56]wFMCommunicate request_size=4 [10:27:56]MH_SAM_APDU [10:27:56]CAPDU: 80 0D 01 02 [10:27:56]Write to MH i2c: E2 08 00 3C 44 80 0D 01 02 00 00 00 00 F9 [10:27:56]Write i2c OK [10:27:56]MH_I2C_Read... [10:27:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:57]Read from MH i2c: E2 [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: E2 03 00 [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: E2 03 00 3C 44 00 90 00 F4 [10:27:57]RAPDU: 90 00 [10:27:57]wFMCommunicate OK [10:27:57]wFMCommunicate request_size=255 [10:27:57]MH_SAM_APDU [10:27:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 B0 6E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BE CF 01 00 35 04 06 00 EA C8 94 F9 [10:27:57]Write to MH i2c: E2 02 01 3D 44 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 B0 6E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BE CF 01 00 35 04 06 00 EA C8 94 F9 00 00 53 [10:27:57]Write i2c OK [10:27:57]MH_I2C_Read... [10:27:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:57]Read from MH i2c: E2 [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: E2 03 00 [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: E2 03 00 3D 44 00 90 00 F5 [10:27:57]RAPDU: 90 00 [10:27:57]wFMCommunicate OK [10:27:57]wFMCommunicate request_size=7 [10:27:57]MH_SAM_APDU [10:27:57]CAPDU: 80 0D 02 02 02 47 D0 [10:27:57]Write to MH i2c: E2 0A 00 3E 44 80 0D 02 02 02 00 47 D0 00 00 17 [10:27:57]Write i2c OK [10:27:57]MH_I2C_Read... [10:27:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:57]Read from MH i2c: E2 [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: E2 03 00 [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: E2 03 00 3E 44 00 90 00 F6 [10:27:57]RAPDU: 90 00 [10:27:57]wFMCommunicate OK [10:27:57]wFMCommunicate request_size=4 [10:27:57]MH_SAM_APDU [10:27:57]CAPDU: 80 0D 03 02 [10:27:57]Write to MH i2c: E2 08 00 3F 44 80 0D 03 02 00 00 00 00 FE [10:27:57]Write i2c OK [10:27:57]MH_I2C_Read... [10:27:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:57]Read from MH i2c: E2 [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: E2 0B 00 [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: E2 0B 00 3F 44 00 7B A7 F9 9E 1E 92 5E EB 90 00 B1 [10:27:57]RAPDU: 7B A7 F9 9E 1E 92 5E EB 90 00 [10:27:57]wFMCommunicate OK [10:27:57]SAM_PROTO_SignData done [10:27:57]FM_MakeSignedData done [10:27:57]CreateOFDProtocolMessage [10:27:57]wFMCommunicate request_size=4 [10:27:57]MH_SAM_APDU [10:27:57]CAPDU: 80 11 00 00 [10:27:57]Write to MH i2c: E2 08 00 40 44 80 11 00 00 00 00 00 00 FE [10:27:57]Write i2c OK [10:27:57]MH_I2C_Read... [10:27:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:57]Read from MH i2c: E2 [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: E2 17 00 [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: E2 17 00 40 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 59 [10:27:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:27:57]wFMCommunicate OK [10:27:57]CreateOFDProtocolMessage done [10:27:57]OFDSenderStorePacket 118718 [10:27:57]StoreOFDPacket docnum=118718 [10:27:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 25 A5 04 01 AA C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 B0 6E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BE CF 01 00 35 04 06 00 EA C8 94 F9 47 D0 7B A7 F9 9E 1E 92 5E EB [10:27:57]CheckFolder [10:27:57]dirname=/storage/ofd_packets [10:27:57]CheckFolder done [10:27:57]ProducePacketName [10:27:57]name=ofd_packets/00118718 [10:27:57]NVStorageSaveData ofd_packets/00118718 [10:27:57]File name is /storage/ofd_packets/00118718 [10:27:57]Write 298 bytes [10:27:57]NVStorageSaveData done [10:27:57]OFDSenderStorePacket done [10:27:57]KKMCreateOFDPacket done [10:27:57]NVStorageSaveData kkm_last_timestamp [10:27:57]File name is /storage/kkm_last_timestamp [10:27:57]Write 4 bytes [10:27:57]NVStorageSaveData done [10:27:57]ExternCall_PrintAddStr [10:27:57]wPrintStart [10:27:57]Write to MH i2c: 01 00 00 41 44 85 [10:27:57]Write i2c OK [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: 01 [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: 01 07 00 [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: 01 07 00 41 44 00 00 00 00 00 FF 0F 9A [10:27:57]RasterBufferAndPrint [10:27:57]line Счет N : (1)949602 [10:27:57]line ИНН: 02508201610067 [10:27:57]line Контрольно-Кассовый Чек [10:27:57]line ПРОДАЖА [10:27:57]line ТРК (МРК, ГНК) : 44 [10:27:57]line Товар: 2710194800 [10:27:57]line ДТ-К-5 [10:27:57]line 7.880 * 76.20 [10:27:57]line = 600.46 [10:27:57]line НДС 12% НСП 1% [10:27:57]line > о реализуемом товаре [10:27:57]line ОКРУГЛЕНИЕ: -0.46 [10:27:57]line ИТОГО: 600.00 [10:27:57]line Внесено: 600.00 [10:27:57]line СДАЧА: 0.00 [10:27:57]line НСП 1% : 5.31 [10:27:57]line НДС 12% : 63.77 [10:27:57]line Наличными: 600.00 [10:27:57]line Безнал.: 0.00 [10:27:57]line Место: АЗС № 134 "Партнер Нефть" [10:27:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:27:57]line СНО: Общий режим [10:27:57]line Чек 94 29.07.2024 10:28 [10:27:57]line Смена: 434 ФФД: 1.0 [10:27:57]line ЗНМ: 0300000044 [10:27:57]line РНМ: 0000000000092660 [10:27:57]line Версия ККМ: 001 [10:27:57]line ФМ: 0000000000874939 [10:27:57]line ФД: 118718 [10:27:57]line ФПД: 258147213723600 [10:27:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T102800&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118718&fm=258147213723600&tin=02508201610067®Number=0000000000092660&sum=60000 [10:27:57]OFD Sender: Processing packet 118718 [packets to send 86, broken 85] [10:27:57]ProducePacketName [10:27:57]name=ofd_packets/00118718 [10:27:57]OFD Sender: To server: pG, [10:27:57]CommunicateWithHost lk.salyk.kg:30040 [10:27:57]ConnectInit lk.salyk.kg [10:27:57]written 0, free lines is 4095 [10:27:57]Connected sock=10 [10:27:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 25 A5 04 01 AA C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 B0 6E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BE CF 01 00 35 04 06 00 EA C8 94 F9 47 D0 7B A7 F9 9E 1E 92 5E EB [10:27:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D7 83 47 00 C5 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BE CF 01 00 F4 03 04 00 3E 1C A7 66 B6 04 01 00 00 30 7D 6F B9 C5 28 2B D9 [10:27:58]CommunicateWithHost err = 0 [10:27:58]CheckOFDResponse [10:27:58]1017 (14) - 77093643461234 [10:27:58]1041 (16) - 0000000000874939 [10:27:58]1040 (4) - 118718 [10:27:58]1012 (4) - 29.07.2024 04:36 [10:27:58]1206 (1) - 0 [10:27:58]OFD Sender: Remove packet 118718 [10:27:58]ProducePacketName [10:27:58]name=ofd_packets/00118718 [10:27:58]NVStorageDeleteData [10:27:58]Write to MH i2c: 01 00 00 6B 44 AF [10:27:58]Write i2c OK [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: 01 [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: 01 07 00 [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: 01 07 00 6B 44 00 00 00 00 00 D8 0C 9A [10:27:58]RasterBufferAndPrint [10:27:58]line [10:27:58]line [10:27:58]line [10:27:58]line [10:27:58]line [10:27:58]written 0, free lines is 3295 [10:27:58]MH_Cut [10:27:58]Write to MH i2c: D1 01 00 72 44 01 88 [10:27:58]Write i2c OK [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: D1 [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: D1 01 00 [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: D1 01 00 72 44 00 87 [10:27:58]Write to MH i2c: 01 00 00 73 44 B7 [10:27:58]Write i2c OK [10:27:58]MH_I2C_Read... [10:27:58]OFD Sender: No OFD packet to send [10:27:58]*** Cut start [10:27:58]*** Partial cut [10:27:58]*** CUTSNS_PIN = 1 [10:27:59]*** CUTSNS_PIN = 0 [10:27:59]*** Brake cut motor [10:27:59]Read from MH i2c: 01 [10:27:59]MH_I2C_Read... [10:27:59]*** Stop cut motor [10:27:59]*** Cut end [10:27:59]Read from MH i2c: 01 07 00 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: 01 07 00 73 44 00 00 00 00 00 FF 0F CC [10:27:59]process_action close_receipt done [10:27:59]requested_data is exist [10:27:59]produce_requested_data [10:27:59]requested_item fm.sn is exist - process it [10:27:59]wFMCommunicate request_size=4 [10:27:59]MH_SAM_APDU [10:27:59]CAPDU: 80 11 00 00 [10:27:59]Write to MH i2c: E2 08 00 74 44 80 11 00 00 00 00 00 00 32 [10:27:59]Write i2c OK [10:27:59]MH_I2C_Read... [10:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:59]Read from MH i2c: E2 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: E2 17 00 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: E2 17 00 74 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8D [10:27:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:27:59]wFMCommunicate OK [10:27:59]requested_item fd.num is exist - process it [10:27:59]SAM_PROTO_GetFieldsCounters [10:27:59]wFMCommunicate request_size=4 [10:27:59]MH_SAM_APDU [10:27:59]CAPDU: 80 13 00 00 [10:27:59]Write to MH i2c: E2 08 00 75 44 80 13 00 00 00 00 00 00 35 [10:27:59]Write i2c OK [10:27:59]MH_I2C_Read... [10:27:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:59]Read from MH i2c: E2 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: E2 62 00 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: E2 62 00 75 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BE CF 01 00 0E 04 04 00 B2 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 B7 [10:27: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BE CF 01 00 0E 04 04 00 B2 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 [10:27:59]wFMCommunicate OK [10:27:59]SAM_PROTO_GetFieldsCounters done [10:27:59]requested_item shift.num is exist - process it [10:27:59]requested_item shift.opened is exist - process it [10:27:59]req_shift_opened [10:27:59]FM_GetShiftState [10:27:59]SAM_PROTO_GetShiftState [10:27:59]wFMCommunicate request_size=4 [10:27:59]MH_SAM_APDU [10:27:59]CAPDU: 80 13 01 00 [10:27:59]Write to MH i2c: E2 08 00 76 44 80 13 01 00 00 00 00 00 37 [10:27:59]Write i2c OK [10:27:59]MH_I2C_Read... [10:27:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:59]Read from MH i2c: E2 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: E2 0E 00 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: E2 0E 00 76 44 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 65 [10:27:59]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:27:59]wFMCommunicate OK [10:27:59]SAM_PROTO_GetShiftState done [10:27:59]FM_GetShiftState done [10:27:59]req_shift_opened done [10:27:59]requested_item shift.open_date is exist - process it [10:27:59]req_shift_open_date [10:27:59]req_shift_open_date done [10:27:59]produce_requested_data done [10:27:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118718,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:27:59]process_action_free close_receipt [10:27:59]json_value_free [10:27:59]json_value_free done [10:27:59]process_json_proto returns [10:27:59]Send response to host [10:27:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118718,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:27:59]free response buf [10:27:59]execute_script done [10:27:59]execute_script returns [10:27:59]free content buf [10:27:59]Sock 7.Close socket [10:27:59]Sock 7.Thread stoped [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:31]accept exits with 9 [10:28:31]New connection [10:28:31]New thread 3067239780 created [10:28:31]Thread 3067383140 joined [10:28:31]Waiting for new connection... [10:28:31] Sock 9.Parse request [10:28:31]Sock 9.Check first char [10:28:31]Sock 9.First char is OK [10:28:31]request: POST /json_proto HTTP/1.0 [10:28:31]Method: POST [10:28:31]URL: /json_proto [10:28:31]Method is POST - this is cgi request [10:28:31]url: /json_proto [10:28:31]query_string will be loaded in cgi processing [10:28:31]execute_cgi json_proto POST (null) [10:28:31]execute_cgi path=json_proto method=POST [10:28:31]POST find Content-Length [10:28:31]Host: 172.17.45.7:8080 [10:28:31]Content-Length: 677 [10:28:31]Content-Type: application/json [10:28:31] [10:28:31]POST finish read [10:28:31]Found Content-Length = 677 [10:28:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:31]execute_script... [10:28:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:31]POST & json_proto [10:28:31]process_json_proto [10:28:31]json parsed OK: [10:28:31]protocol is kg_v1.0 [10:28:31]action value=close_receipt [10:28:31]process_action close_receipt [10:28:31]cmd_close_receipt [10:28:31]MH_GetDate [10:28:31]Write to MH i2c: F0 00 00 77 44 AA [10:28:31]Write i2c OK [10:28:31]MH_I2C_Read... [10:28:31]Read from MH i2c: F0 [10:28:31]MH_I2C_Read... [10:28:31]Read from MH i2c: F0 09 00 [10:28:31]MH_I2C_Read... [10:28:31]Read from MH i2c: F0 09 00 77 44 00 D4 6E A7 66 90 0F 3E 66 45 [10:28:31]GetLastDocTimeStamp 1722248880 [10:28:31]current date 1722248916 [10:28:31]FM_GetShiftState [10:28:31]SAM_PROTO_GetShiftState [10:28:31]wFMCommunicate request_size=4 [10:28:31]MH_SAM_APDU [10:28:31]CAPDU: 80 13 01 00 [10:28:31]Write to MH i2c: E2 08 00 78 44 80 13 01 00 00 00 00 00 39 [10:28:31]Write i2c OK [10:28:31]MH_I2C_Read... [10:28:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:31]Read from MH i2c: E2 [10:28:31]MH_I2C_Read... [10:28:31]Read from MH i2c: E2 0E 00 [10:28:31]MH_I2C_Read... [10:28:31]Read from MH i2c: E2 0E 00 78 44 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 67 [10:28:31]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:28:31]wFMCommunicate OK [10:28:31]SAM_PROTO_GetShiftState done [10:28:31]FM_GetShiftState done [10:28:31]opened in 1722211641 [10:28:31]opened+sec_in_day 1722298041 [10:28:31]quantity*price = 60027 [10:28:31]sum+1 = 60029 [10:28:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 95 29.07.2024 10:28 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118719 ФПД: 167730207523032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T102836&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118719&fm=167730207523032&tin=02508201610067®Number=0000000000092660&sum=60000 [10:28:32]StoreToDocumentArchive [10:28:32]shift 434 fd 118719 [10:28:32]save to /storage/0434/doc_00118719 [10:28:32]save last doc name /storage/0434/doc_00118719 to /storage/kkm_last_doc_name [10:28:32]save OK [10:28:32]Clear old archive folders... [10:28:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:32]tlvbuf is B6FC1BD0 [10:28:32]SAM_PROTO_ClearQueue [10:28:32]wFMCommunicate request_size=4 [10:28:32]MH_SAM_APDU [10:28:32]CAPDU: 80 09 00 00 [10:28:32]Write to MH i2c: E2 08 00 85 44 80 09 00 00 00 00 00 00 3B [10:28:32]Write i2c OK [10:28:32]MH_I2C_Read... [10:28:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:32]Read from MH i2c: E2 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 03 00 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 03 00 85 44 00 90 00 3D [10:28:32]RAPDU: 90 00 [10:28:32]wFMCommunicate OK [10:28:32]SAM_PROTO_ClearQueue done [10:28:32]KKMCreateOFDPacket [10:28:32]OFDProtocolAddRootSTLVToBuf [10:28:32]FM_MakeSignedData [10:28:32]FM_MakeSignedData [10:28:32]SAM_PROTO_SignData [10:28:32]wFMCommunicate request_size=4 [10:28:32]MH_SAM_APDU [10:28:32]CAPDU: 80 0D 01 02 [10:28:32]Write to MH i2c: E2 08 00 86 44 80 0D 01 02 00 00 00 00 43 [10:28:32]Write i2c OK [10:28:32]MH_I2C_Read... [10:28:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:32]Read from MH i2c: E2 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 03 00 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 03 00 86 44 00 90 00 3E [10:28:32]RAPDU: 90 00 [10:28:32]wFMCommunicate OK [10:28:32]wFMCommunicate request_size=255 [10:28:32]MH_SAM_APDU [10:28:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 D4 6E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BF CF 01 00 35 04 06 00 98 [10:28:32]Write to MH i2c: E2 02 01 87 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 D4 6E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BF CF 01 00 35 04 06 00 98 00 00 BC [10:28:32]Write i2c OK [10:28:32]MH_I2C_Read... [10:28:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:32]Read from MH i2c: E2 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 03 00 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 03 00 87 44 00 90 00 3F [10:28:32]RAPDU: 90 00 [10:28:32]wFMCommunicate OK [10:28:32]wFMCommunicate request_size=10 [10:28:32]MH_SAM_APDU [10:28:32]CAPDU: 80 0D 02 02 05 8C BB 70 00 D8 [10:28:32]Write to MH i2c: E2 0D 00 88 44 80 0D 02 02 05 00 8C BB 70 00 D8 00 00 DF [10:28:32]Write i2c OK [10:28:32]MH_I2C_Read... [10:28:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:32]Read from MH i2c: E2 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 03 00 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 03 00 88 44 00 90 00 40 [10:28:32]RAPDU: 90 00 [10:28:32]wFMCommunicate OK [10:28:32]wFMCommunicate request_size=4 [10:28:32]MH_SAM_APDU [10:28:32]CAPDU: 80 0D 03 02 [10:28:32]Write to MH i2c: E2 08 00 89 44 80 0D 03 02 00 00 00 00 48 [10:28:32]Write i2c OK [10:28:32]MH_I2C_Read... [10:28:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:32]Read from MH i2c: E2 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 0B 00 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 0B 00 89 44 00 98 73 6F 3B C2 22 27 D2 90 00 DB [10:28:32]RAPDU: 98 73 6F 3B C2 22 27 D2 90 00 [10:28:32]wFMCommunicate OK [10:28:32]SAM_PROTO_SignData done [10:28:32]FM_MakeSignedData done [10:28:32]CreateOFDProtocolMessage [10:28:32]wFMCommunicate request_size=4 [10:28:32]MH_SAM_APDU [10:28:32]CAPDU: 80 11 00 00 [10:28:32]Write to MH i2c: E2 08 00 8A 44 80 11 00 00 00 00 00 00 48 [10:28:32]Write i2c OK [10:28:32]MH_I2C_Read... [10:28:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:32]Read from MH i2c: E2 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 17 00 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 17 00 8A 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A3 [10:28:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:28:32]wFMCommunicate OK [10:28:32]CreateOFDProtocolMessage done [10:28:32]OFDSenderStorePacket 118719 [10:28:32]StoreOFDPacket docnum=118719 [10:28:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 67 09 07 01 A9 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 D4 6E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BF CF 01 00 35 04 06 00 98 8C BB 70 00 D8 98 73 6F 3B C2 22 27 D2 [10:28:32]CheckFolder [10:28:32]dirname=/storage/ofd_packets [10:28:32]CheckFolder done [10:28:32]ProducePacketName [10:28:32]name=ofd_packets/00118719 [10:28:32]NVStorageSaveData ofd_packets/00118719 [10:28:32]File name is /storage/ofd_packets/00118719 [10:28:32]Write 301 bytes [10:28:32]NVStorageSaveData done [10:28:32]OFDSenderStorePacket done [10:28:32]KKMCreateOFDPacket done [10:28:32]NVStorageSaveData kkm_last_timestamp [10:28:32]File name is /storage/kkm_last_timestamp [10:28:32]Write 4 bytes [10:28:32]NVStorageSaveData done [10:28:32]ExternCall_PrintAddStr [10:28:32]wPrintStart [10:28:32]Write to MH i2c: 01 00 00 8B 44 CF [10:28:32]Write i2c OK [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: 01 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: 01 07 00 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: 01 07 00 8B 44 00 00 00 00 00 FF 0F E4 [10:28:32]RasterBufferAndPrint [10:28:32]line Счет N : (1)949603 [10:28:32]line ИНН: 02508201610067 [10:28:32]line Контрольно-Кассовый Чек [10:28:32]line ПРОДАЖА [10:28:32]line ТРК (МРК, ГНК) : 53 [10:28:32]line Товар: 2710124500 [10:28:32]line Аи-95-К-3 [10:28:32]line 8.090 * 74.20 [10:28:32]line = 600.28 [10:28:32]line НДС 12% НСП 1% [10:28:32]line > о реализуемом товаре [10:28:32]line ОКРУГЛЕНИЕ: -0.28 [10:28:32]line ИТОГО: 600.00 [10:28:32]line Внесено: 600.00 [10:28:32]line СДАЧА: 0.00 [10:28:32]line НСП 1% : 5.31 [10:28:32]line НДС 12% : 63.75 [10:28:32]line Наличными: 600.00 [10:28:32]line Безнал.: 0.00 [10:28:32]line Место: АЗС № 134 "Партнер Нефть" [10:28:32]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:28:32]line СНО: Общий режим [10:28:32]line Чек 95 29.07.2024 10:28 [10:28:32]line Смена: 434 ФФД: 1.0 [10:28:32]line ЗНМ: 0300000044 [10:28:32]line РНМ: 0000000000092660 [10:28:32]line Версия ККМ: 001 [10:28:32]line ФМ: 0000000000874939 [10:28:32]line ФД: 118719 [10:28:32]line ФПД: 167730207523032 [10:28:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T102836&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118719&fm=167730207523032&tin=02508201610067®Number=0000000000092660&sum=60000 [10:28:32]written 0, free lines is 4095 [10:28:32]OFD Sender: Processing packet 118719 [packets to send 86, broken 85] [10:28:32]ProducePacketName [10:28:32]name=ofd_packets/00118719 [10:28:33]OFD Sender: To server: pG, [10:28:33]CommunicateWithHost lk.salyk.kg:30040 [10:28:33]ConnectInit lk.salyk.kg [10:28:33]Write to MH i2c: 01 00 00 B5 44 F9 [10:28:33]Write i2c OK [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: 01 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: 01 07 00 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: 01 07 00 B5 44 00 00 00 00 00 D8 0C E4 [10:28:33]RasterBufferAndPrint [10:28:33]line [10:28:33]line [10:28:33]line [10:28:33]line [10:28:33]line [10:28:33]written 0, free lines is 3293 [10:28:33]MH_Cut [10:28:33]Write to MH i2c: D1 01 00 BC 44 01 D2 [10:28:33]Write i2c OK [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: D1 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: D1 01 00 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: D1 01 00 BC 44 00 D1 [10:28:33]Write to MH i2c: 01 00 00 BD 44 01 [10:28:33]Write i2c OK [10:28:33]MH_I2C_Read... [10:28:34]*** Cut start [10:28:34]*** Partial cut [10:28:34]*** CUTSNS_PIN = 1 [10:28:34]*** CUTSNS_PIN = 0 [10:28:34]*** Brake cut motor [10:28:34]Read from MH i2c: 01 [10:28:34]MH_I2C_Read... [10:28:34]*** Stop cut motor [10:28:34]*** Cut end [10:28:34]Read from MH i2c: 01 07 00 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: 01 07 00 BD 44 00 00 00 00 00 FF 0F 16 [10:28:34]process_action close_receipt done [10:28:34]requested_data is exist [10:28:34]produce_requested_data [10:28:34]requested_item fm.sn is exist - process it [10:28:34]wFMCommunicate request_size=4 [10:28:34]MH_SAM_APDU [10:28:34]CAPDU: 80 11 00 00 [10:28:34]Write to MH i2c: E2 08 00 BE 44 80 11 00 00 00 00 00 00 7C [10:28:34]Write i2c OK [10:28:34]MH_I2C_Read... [10:28:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:34]Read from MH i2c: E2 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: E2 17 00 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: E2 17 00 BE 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D7 [10:28:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:28:34]wFMCommunicate OK [10:28:34]requested_item fd.num is exist - process it [10:28:34]SAM_PROTO_GetFieldsCounters [10:28:34]wFMCommunicate request_size=4 [10:28:34]MH_SAM_APDU [10:28:34]CAPDU: 80 13 00 00 [10:28:34]Write to MH i2c: E2 08 00 BF 44 80 13 00 00 00 00 00 00 7F [10:28:34]Write i2c OK [10:28:34]MH_I2C_Read... [10:28:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:34]Read from MH i2c: E2 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: E2 62 00 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: E2 62 00 BF 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BF CF 01 00 0E 04 04 00 B2 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 05 [10:28: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BF CF 01 00 0E 04 04 00 B2 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 [10:28:34]wFMCommunicate OK [10:28:34]SAM_PROTO_GetFieldsCounters done [10:28:34]requested_item shift.num is exist - process it [10:28:34]requested_item shift.opened is exist - process it [10:28:34]req_shift_opened [10:28:34]FM_GetShiftState [10:28:34]SAM_PROTO_GetShiftState [10:28:34]wFMCommunicate request_size=4 [10:28:34]MH_SAM_APDU [10:28:34]CAPDU: 80 13 01 00 [10:28:34]Write to MH i2c: E2 08 00 C0 44 80 13 01 00 00 00 00 00 81 [10:28:34]Write i2c OK [10:28:34]MH_I2C_Read... [10:28:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:34]Read from MH i2c: E2 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: E2 0E 00 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: E2 0E 00 C0 44 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 AF [10:28:34]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:28:34]wFMCommunicate OK [10:28:34]SAM_PROTO_GetShiftState done [10:28:34]FM_GetShiftState done [10:28:34]req_shift_opened done [10:28:34]requested_item shift.open_date is exist - process it [10:28:34]req_shift_open_date [10:28:34]req_shift_open_date done [10:28:34]produce_requested_data done [10:28:34]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118719,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:28:34]process_action_free close_receipt [10:28:34]json_value_free [10:28:34]json_value_free done [10:28:34]process_json_proto returns [10:28:34]Send response to host [10:28:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118719,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:28:34]free response buf [10:28:34]execute_script done [10:28:34]execute_script returns [10:28:34]free content buf [10:28:34]Sock 9.Close socket [10:28:34]Sock 9.Thread stoped [10:28:39]accept exits with 7 [10:28:39]New connection [10:28:39]New thread 3067383140 created [10:28:39]Thread 3067239780 joined [10:28:39]Waiting for new connection... [10:28:39] Sock 7.Parse request [10:28:39]Sock 7.Check first char [10:28:39]Sock 7.First char is OK [10:28:39]request: POST /json_proto HTTP/1.0 [10:28:39]Method: POST [10:28:39]URL: /json_proto [10:28:39]Method is POST - this is cgi request [10:28:39]url: /json_proto [10:28:39]query_string will be loaded in cgi processing [10:28:39]execute_cgi json_proto POST (null) [10:28:39]execute_cgi path=json_proto method=POST [10:28:39]POST find Content-Length [10:28:39]Host: 172.17.45.7:8080 [10:28:39]Content-Length: 677 [10:28:39]Content-Type: application/json [10:28:39] [10:28:39]POST finish read [10:28:39]Found Content-Length = 677 [10:28:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:39]execute_script... [10:28:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:39]POST & json_proto [10:28:39]process_json_proto [10:28:39]json parsed OK: [10:28:39]protocol is kg_v1.0 [10:28:39]action value=close_receipt [10:28:39]process_action close_receipt [10:28:39]cmd_close_receipt [10:28:39]MH_GetDate [10:28:39]Write to MH i2c: F0 00 00 C1 44 F4 [10:28:39]Write i2c OK [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: F0 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: F0 09 00 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: F0 09 00 C1 44 00 DC 6E A7 66 90 0F 3E 66 97 [10:28:39]GetLastDocTimeStamp 1722248916 [10:28:39]current date 1722248924 [10:28:39]FM_GetShiftState [10:28:39]SAM_PROTO_GetShiftState [10:28:39]wFMCommunicate request_size=4 [10:28:39]MH_SAM_APDU [10:28:39]CAPDU: 80 13 01 00 [10:28:39]Write to MH i2c: E2 08 00 C2 44 80 13 01 00 00 00 00 00 83 [10:28:39]Write i2c OK [10:28:39]MH_I2C_Read... [10:28:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:39]Read from MH i2c: E2 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 0E 00 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 0E 00 C2 44 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B1 [10:28:39]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:28:39]wFMCommunicate OK [10:28:39]SAM_PROTO_GetShiftState done [10:28:39]FM_GetShiftState done [10:28:39]opened in 1722211641 [10:28:39]opened+sec_in_day 1722298041 [10:28:39]quantity*price = 50036 [10:28:39]sum+1 = 50037 [10:28:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 96 29.07.2024 10:28 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118720 ФПД: 153199646430164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T102844&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118720&fm=153199646430164&tin=02508201610067®Number=0000000000092660&sum=50000 [10:28:40]StoreToDocumentArchive [10:28:40]shift 434 fd 118720 [10:28:40]save to /storage/0434/doc_00118720 [10:28:40]save last doc name /storage/0434/doc_00118720 to /storage/kkm_last_doc_name [10:28:40]save OK [10:28:40]Clear old archive folders... [10:28:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:40]tlvbuf is 01EBE0A0 [10:28:40]SAM_PROTO_ClearQueue [10:28:40]wFMCommunicate request_size=4 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 09 00 00 [10:28:40]Write to MH i2c: E2 08 00 CF 44 80 09 00 00 00 00 00 00 85 [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 CF 44 00 90 00 87 [10:28:40]RAPDU: 90 00 [10:28:40]wFMCommunicate OK [10:28:40]SAM_PROTO_ClearQueue done [10:28:40]KKMCreateOFDPacket [10:28:40]OFDProtocolAddRootSTLVToBuf [10:28:40]FM_MakeSignedData [10:28:40]FM_MakeSignedData [10:28:40]SAM_PROTO_SignData [10:28:40]wFMCommunicate request_size=4 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 0D 01 02 [10:28:40]Write to MH i2c: E2 08 00 D0 44 80 0D 01 02 00 00 00 00 8D [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 D0 44 00 90 00 88 [10:28:40]RAPDU: 90 00 [10:28:40]wFMCommunicate OK [10:28:40]wFMCommunicate request_size=255 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 DC 6E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C0 CF 01 00 35 04 06 00 8B [10:28:40]Write to MH i2c: E2 02 01 D1 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 DC 6E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C0 CF 01 00 35 04 06 00 8B 00 00 96 [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 D1 44 00 90 00 89 [10:28:40]RAPDU: 90 00 [10:28:40]wFMCommunicate OK [10:28:40]wFMCommunicate request_size=10 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 0D 02 02 05 55 92 81 53 D4 [10:28:40]Write to MH i2c: E2 0D 00 D2 44 80 0D 02 02 05 00 55 92 81 53 D4 00 00 29 [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 D2 44 00 90 00 8A [10:28:40]RAPDU: 90 00 [10:28:40]wFMCommunicate OK [10:28:40]wFMCommunicate request_size=4 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 0D 03 02 [10:28:40]Write to MH i2c: E2 08 00 D3 44 80 0D 03 02 00 00 00 00 92 [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 0B 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 0B 00 D3 44 00 22 27 07 51 8D EE D2 6D 90 00 EE [10:28:40]RAPDU: 22 27 07 51 8D EE D2 6D 90 00 [10:28:40]wFMCommunicate OK [10:28:40]SAM_PROTO_SignData done [10:28:40]FM_MakeSignedData done [10:28:40]CreateOFDProtocolMessage [10:28:40]wFMCommunicate request_size=4 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 11 00 00 [10:28:40]Write to MH i2c: E2 08 00 D4 44 80 11 00 00 00 00 00 00 92 [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 17 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 17 00 D4 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 ED [10:28:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:28:40]wFMCommunicate OK [10:28:40]CreateOFDProtocolMessage done [10:28:40]OFDSenderStorePacket 118720 [10:28:40]StoreOFDPacket docnum=118720 [10:28:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 45 E7 07 01 CF 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 DC 6E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C0 CF 01 00 35 04 06 00 8B 55 92 81 53 D4 22 27 07 51 8D EE D2 6D [10:28:40]CheckFolder [10:28:40]dirname=/storage/ofd_packets [10:28:40]CheckFolder done [10:28:40]ProducePacketName [10:28:40]name=ofd_packets/00118720 [10:28:40]NVStorageSaveData ofd_packets/00118720 [10:28:40]File name is /storage/ofd_packets/00118720 [10:28:40]Write 301 bytes [10:28:40]NVStorageSaveData done [10:28:40]OFDSenderStorePacket done [10:28:40]KKMCreateOFDPacket done [10:28:40]NVStorageSaveData kkm_last_timestamp [10:28:40]File name is /storage/kkm_last_timestamp [10:28:40]Write 4 bytes [10:28:40]NVStorageSaveData done [10:28:40]ExternCall_PrintAddStr [10:28:40]wPrintStart [10:28:40]Write to MH i2c: 01 00 00 D5 44 19 [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: 01 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: 01 07 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: 01 07 00 D5 44 00 00 00 00 00 FF 0F 2E [10:28:40]RasterBufferAndPrint [10:28:40]line Счет N : (1)949604 [10:28:40]line ИНН: 02508201610067 [10:28:40]line Контрольно-Кассовый Чек [10:28:40]line ПРОДАЖА [10:28:40]line ТРК (МРК, ГНК) : 31 [10:28:40]line Товар: 2710124130 [10:28:40]line Аи-92-К-4 [10:28:40]line 7.380 * 67.80 [10:28:40]line = 500.36 [10:28:40]line НДС 12% НСП 1% [10:28:40]line > о реализуемом товаре [10:28:40]line ОКРУГЛЕНИЕ: -0.36 [10:28:40]line ИТОГО: 500.00 [10:28:40]line Внесено: 500.00 [10:28:40]line СДАЧА: 0.00 [10:28:40]line НСП 1% : 4.43 [10:28:40]line НДС 12% : 53.14 [10:28:40]line Наличными: 500.00 [10:28:40]line Безнал.: 0.00 [10:28:40]line Место: АЗС № 134 "Партнер Нефть" [10:28:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:28:40]line СНО: Общий режим [10:28:40]line Чек 96 29.07.2024 10:28 [10:28:40]line Смена: 434 ФФД: 1.0 [10:28:40]line ЗНМ: 0300000044 [10:28:40]line РНМ: 0000000000092660 [10:28:40]line Версия ККМ: 001 [10:28:40]line ФМ: 0000000000874939 [10:28:40]line ФД: 118720 [10:28:40]line ФПД: 153199646430164 [10:28:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T102844&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118720&fm=153199646430164&tin=02508201610067®Number=0000000000092660&sum=50000 [10:28:40]written 0, free lines is 4095 [10:28:41]Write to MH i2c: 01 00 00 FF 44 43 [10:28:41]Write i2c OK [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: 01 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: 01 07 00 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: 01 07 00 FF 44 00 00 00 00 00 DC 0C 32 [10:28:41]RasterBufferAndPrint [10:28:41]line [10:28:41]line [10:28:41]line [10:28:41]line [10:28:41]line [10:28:41]written 0, free lines is 3301 [10:28:41]MH_Cut [10:28:41]Write to MH i2c: D1 01 00 06 45 01 1D [10:28:41]Write i2c OK [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: D1 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: D1 01 00 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: D1 01 00 06 45 00 1C [10:28:41]Write to MH i2c: 01 00 00 07 45 4C [10:28:41]Write i2c OK [10:28:41]MH_I2C_Read... [10:28:42]*** Cut start [10:28:42]*** Partial cut [10:28:42]*** CUTSNS_PIN = 1 [10:28:42]*** CUTSNS_PIN = 0 [10:28:42]*** Brake cut motor [10:28:42]Read from MH i2c: 01 [10:28:42]MH_I2C_Read... [10:28:42]*** Stop cut motor [10:28:42]*** Cut end [10:28:42]Read from MH i2c: 01 07 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: 01 07 00 07 45 00 00 00 00 00 FF 0F 61 [10:28:42]process_action close_receipt done [10:28:42]requested_data is exist [10:28:42]produce_requested_data [10:28:42]requested_item fm.sn is exist - process it [10:28:42]wFMCommunicate request_size=4 [10:28:42]MH_SAM_APDU [10:28:42]CAPDU: 80 11 00 00 [10:28:42]Write to MH i2c: E2 08 00 08 45 80 11 00 00 00 00 00 00 C7 [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 17 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 17 00 08 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 22 [10:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:28:42]wFMCommunicate OK [10:28:42]requested_item fd.num is exist - process it [10:28:42]SAM_PROTO_GetFieldsCounters [10:28:42]wFMCommunicate request_size=4 [10:28:42]MH_SAM_APDU [10:28:42]CAPDU: 80 13 00 00 [10:28:42]Write to MH i2c: E2 08 00 09 45 80 13 00 00 00 00 00 00 CA [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 62 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 62 00 09 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C0 CF 01 00 0E 04 04 00 B2 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 54 [10:28: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C0 CF 01 00 0E 04 04 00 B2 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 [10:28:42]wFMCommunicate OK [10:28:42]SAM_PROTO_GetFieldsCounters done [10:28:42]requested_item shift.num is exist - process it [10:28:42]requested_item shift.opened is exist - process it [10:28:42]req_shift_opened [10:28:42]FM_GetShiftState [10:28:42]SAM_PROTO_GetShiftState [10:28:42]wFMCommunicate request_size=4 [10:28:42]MH_SAM_APDU [10:28:42]CAPDU: 80 13 01 00 [10:28:42]Write to MH i2c: E2 08 00 0A 45 80 13 01 00 00 00 00 00 CC [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 0E 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 0E 00 0A 45 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 FA [10:28:42]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:28:42]wFMCommunicate OK [10:28:42]SAM_PROTO_GetShiftState done [10:28:42]FM_GetShiftState done [10:28:42]req_shift_opened done [10:28:42]requested_item shift.open_date is exist - process it [10:28:42]req_shift_open_date [10:28:42]req_shift_open_date done [10:28:42]produce_requested_data done [10:28:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118720,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:28:42]process_action_free close_receipt [10:28:42]json_value_free [10:28:42]json_value_free done [10:28:42]process_json_proto returns [10:28:42]Send response to host [10:28:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118720,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:28:42]free response buf [10:28:42]execute_script done [10:28:42]execute_script returns [10:28:43]free content buf [10:28:43]Sock 7.Close socket [10:28:43]Sock 7.Thread stoped [10:30:17]accept exits with 9 [10:30:17]New connection [10:30:17]New thread 3067239780 created [10:30:17]Thread 3067383140 joined [10:30:17]Waiting for new connection... [10:30:17] Sock 9.Parse request [10:30:17]Sock 9.Check first char [10:30:17]Sock 9.First char is OK [10:30:17]request: POST /json_proto HTTP/1.0 [10:30:17]Method: POST [10:30:17]URL: /json_proto [10:30:17]Method is POST - this is cgi request [10:30:17]url: /json_proto [10:30:17]query_string will be loaded in cgi processing [10:30:17]execute_cgi json_proto POST (null) [10:30:17]execute_cgi path=json_proto method=POST [10:30:17]POST find Content-Length [10:30:17]Host: 172.17.45.7:8080 [10:30:17]Content-Length: 677 [10:30:17]Content-Type: application/json [10:30:17] [10:30:17]POST finish read [10:30:17]Found Content-Length = 677 [10:30:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.280, "sum" : 290.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:17]execute_script... [10:30:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.280, "sum" : 290.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:17]POST & json_proto [10:30:17]process_json_proto [10:30:17]json parsed OK: [10:30:17]protocol is kg_v1.0 [10:30:17]action value=close_receipt [10:30:17]process_action close_receipt [10:30:17]cmd_close_receipt [10:30:17]MH_GetDate [10:30:17]Write to MH i2c: F0 00 00 0B 45 3F [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: F0 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: F0 09 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: F0 09 00 0B 45 00 3E 6F A7 66 90 0F 3E 66 45 [10:30:17]GetLastDocTimeStamp 1722248924 [10:30:17]current date 1722249022 [10:30:17]FM_GetShiftState [10:30:17]SAM_PROTO_GetShiftState [10:30:17]wFMCommunicate request_size=4 [10:30:17]MH_SAM_APDU [10:30:17]CAPDU: 80 13 01 00 [10:30:17]Write to MH i2c: E2 08 00 0C 45 80 13 01 00 00 00 00 00 CE [10:30:17]Write i2c OK [10:30:17]MH_I2C_Read... [10:30:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:17]Read from MH i2c: E2 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 0E 00 [10:30:17]MH_I2C_Read... [10:30:17]Read from MH i2c: E2 0E 00 0C 45 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 FC [10:30:17]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:30:17]wFMCommunicate OK [10:30:17]SAM_PROTO_GetShiftState done [10:30:17]FM_GetShiftState done [10:30:17]opened in 1722211641 [10:30:17]opened+sec_in_day 1722298041 [10:30:17]quantity*price = 29018 [10:30:17]sum+1 = 29019 [10:30:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.82 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 97 29.07.2024 10:30 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118721 ФПД: 231726687826622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103022&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118721&fm=231726687826622&tin=02508201610067®Number=0000000000092660&sum=29000 [10:30:18]StoreToDocumentArchive [10:30:18]shift 434 fd 118721 [10:30:18]save to /storage/0434/doc_00118721 [10:30:18]save last doc name /storage/0434/doc_00118721 to /storage/kkm_last_doc_name [10:30:18]save OK [10:30:18]Clear old archive folders... [10:30:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:18]tlvbuf is 01E54130 [10:30:18]SAM_PROTO_ClearQueue [10:30:18]wFMCommunicate request_size=4 [10:30:18]MH_SAM_APDU [10:30:18]CAPDU: 80 09 00 00 [10:30:18]Write to MH i2c: E2 08 00 19 45 80 09 00 00 00 00 00 00 D0 [10:30:18]Write i2c OK [10:30:18]MH_I2C_Read... [10:30:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:18]Read from MH i2c: E2 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 03 00 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 03 00 19 45 00 90 00 D2 [10:30:18]RAPDU: 90 00 [10:30:18]wFMCommunicate OK [10:30:18]SAM_PROTO_ClearQueue done [10:30:18]KKMCreateOFDPacket [10:30:18]OFDProtocolAddRootSTLVToBuf [10:30:18]FM_MakeSignedData [10:30:18]FM_MakeSignedData [10:30:18]SAM_PROTO_SignData [10:30:18]wFMCommunicate request_size=4 [10:30:18]MH_SAM_APDU [10:30:18]CAPDU: 80 0D 01 02 [10:30:18]Write to MH i2c: E2 08 00 1A 45 80 0D 01 02 00 00 00 00 D8 [10:30:18]Write i2c OK [10:30:18]MH_I2C_Read... [10:30:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:18]Read from MH i2c: E2 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 03 00 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 03 00 1A 45 00 90 00 D3 [10:30:18]RAPDU: 90 00 [10:30:18]wFMCommunicate OK [10:30:18]wFMCommunicate request_size=255 [10:30:18]MH_SAM_APDU [10:30:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 10 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5A 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 3E 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C1 CF 01 00 35 04 06 00 D2 [10:30:18]Write to MH i2c: E2 02 01 1B 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 B8 10 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5A 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 3E 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C1 CF 01 00 35 04 06 00 D2 00 00 CB [10:30:18]Write i2c OK [10:30:18]MH_I2C_Read... [10:30:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:18]Read from MH i2c: E2 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 03 00 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 03 00 1B 45 00 90 00 D4 [10:30:18]RAPDU: 90 00 [10:30:18]wFMCommunicate OK [10:30:18]wFMCommunicate request_size=10 [10:30:18]MH_SAM_APDU [10:30:18]CAPDU: 80 0D 02 02 05 C1 12 E9 B2 BE [10:30:18]Write to MH i2c: E2 0D 00 1C 45 80 0D 02 02 05 00 C1 12 E9 B2 BE 00 00 11 [10:30:18]Write i2c OK [10:30:18]MH_I2C_Read... [10:30:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:18]Read from MH i2c: E2 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 03 00 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 03 00 1C 45 00 90 00 D5 [10:30:18]RAPDU: 90 00 [10:30:18]wFMCommunicate OK [10:30:18]wFMCommunicate request_size=4 [10:30:18]MH_SAM_APDU [10:30:18]CAPDU: 80 0D 03 02 [10:30:18]Write to MH i2c: E2 08 00 1D 45 80 0D 03 02 00 00 00 00 DD [10:30:18]Write i2c OK [10:30:18]MH_I2C_Read... [10:30:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:18]Read from MH i2c: E2 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 0B 00 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 0B 00 1D 45 00 64 12 11 19 F9 B9 A0 D8 90 00 A8 [10:30:18]RAPDU: 64 12 11 19 F9 B9 A0 D8 90 00 [10:30:18]wFMCommunicate OK [10:30:18]SAM_PROTO_SignData done [10:30:18]FM_MakeSignedData done [10:30:18]CreateOFDProtocolMessage [10:30:18]wFMCommunicate request_size=4 [10:30:18]MH_SAM_APDU [10:30:18]CAPDU: 80 11 00 00 [10:30:18]Write to MH i2c: E2 08 00 1E 45 80 11 00 00 00 00 00 00 DD [10:30:18]Write i2c OK [10:30:18]MH_I2C_Read... [10:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:18]Read from MH i2c: E2 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 17 00 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 17 00 1E 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 38 [10:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:30:18]wFMCommunicate OK [10:30:18]CreateOFDProtocolMessage done [10:30:18]OFDSenderStorePacket 118721 [10:30:18]StoreOFDPacket docnum=118721 [10:30:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 51 B7 07 01 FE C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 10 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5A 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 3E 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C1 CF 01 00 35 04 06 00 D2 C1 12 E9 B2 BE 64 12 11 19 F9 B9 A0 D8 [10:30:18]CheckFolder [10:30:18]dirname=/storage/ofd_packets [10:30:18]CheckFolder done [10:30:18]ProducePacketName [10:30:18]name=ofd_packets/00118721 [10:30:18]NVStorageSaveData ofd_packets/00118721 [10:30:18]File name is /storage/ofd_packets/00118721 [10:30:18]Write 301 bytes [10:30:18]NVStorageSaveData done [10:30:18]OFDSenderStorePacket done [10:30:18]KKMCreateOFDPacket done [10:30:18]NVStorageSaveData kkm_last_timestamp [10:30:18]File name is /storage/kkm_last_timestamp [10:30:18]Write 4 bytes [10:30:18]NVStorageSaveData done [10:30:18]ExternCall_PrintAddStr [10:30:18]wPrintStart [10:30:18]Write to MH i2c: 01 00 00 1F 45 64 [10:30:18]Write i2c OK [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: 01 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: 01 07 00 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: 01 07 00 1F 45 00 00 00 00 00 FF 0F 79 [10:30:18]RasterBufferAndPrint [10:30:18]line Счет N : (1)949605 [10:30:18]line ИНН: 02508201610067 [10:30:18]line Контрольно-Кассовый Чек [10:30:18]line ПРОДАЖА [10:30:18]line ТРК (МРК, ГНК) : 61 [10:30:18]line Товар: 2710124130 [10:30:18]line Аи-92-К-4 [10:30:18]line 4.280 * 67.80 [10:30:18]line = 290.18 [10:30:18]line НДС 12% НСП 1% [10:30:18]line > о реализуемом товаре [10:30:18]line ОКРУГЛЕНИЕ: -0.18 [10:30:18]line ИТОГО: 290.00 [10:30:18]line Внесено: 290.00 [10:30:18]line СДАЧА: 0.00 [10:30:18]line НСП 1% : 2.57 [10:30:18]line НДС 12% : 30.82 [10:30:18]line Наличными: 290.00 [10:30:18]line Безнал.: 0.00 [10:30:18]line Место: АЗС № 134 "Партнер Нефть" [10:30:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:30:18]line СНО: Общий режим [10:30:18]line Чек 97 29.07.2024 10:30 [10:30:18]line Смена: 434 ФФД: 1.0 [10:30:18]line ЗНМ: 0300000044 [10:30:18]line РНМ: 0000000000092660 [10:30:18]line Версия ККМ: 001 [10:30:18]line ФМ: 0000000000874939 [10:30:18]line ФД: 118721 [10:30:18]line ФПД: 231726687826622 [10:30:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103022&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118721&fm=231726687826622&tin=02508201610067®Number=0000000000092660&sum=29000 [10:30:19]written 0, free lines is 4095 [10:30:19]Write to MH i2c: 01 00 00 49 45 8E [10:30:19]Write i2c OK [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: 01 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: 01 07 00 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: 01 07 00 49 45 00 00 00 00 00 E3 0C 84 [10:30:19]RasterBufferAndPrint [10:30:19]line [10:30:19]line [10:30:19]line [10:30:19]line [10:30:19]line [10:30:19]written 0, free lines is 3305 [10:30:19]MH_Cut [10:30:19]Write to MH i2c: D1 01 00 50 45 01 67 [10:30:19]Write i2c OK [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: D1 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: D1 01 00 [10:30:19]MH_I2C_Read... [10:30:19]Read from MH i2c: D1 01 00 50 45 00 66 [10:30:19]Write to MH i2c: 01 00 00 51 45 96 [10:30:19]Write i2c OK [10:30:19]MH_I2C_Read... [10:30:20]*** Cut start [10:30:20]*** Partial cut [10:30:20]*** CUTSNS_PIN = 1 [10:30:20]*** CUTSNS_PIN = 0 [10:30:20]*** Brake cut motor [10:30:20]Read from MH i2c: 01 [10:30:20]MH_I2C_Read... [10:30:20]*** Stop cut motor [10:30:20]*** Cut end [10:30:20]Read from MH i2c: 01 07 00 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: 01 07 00 51 45 00 00 00 00 00 FF 0F AB [10:30:20]process_action close_receipt done [10:30:20]requested_data is exist [10:30:20]produce_requested_data [10:30:20]requested_item fm.sn is exist - process it [10:30:20]wFMCommunicate request_size=4 [10:30:20]MH_SAM_APDU [10:30:20]CAPDU: 80 11 00 00 [10:30:20]Write to MH i2c: E2 08 00 52 45 80 11 00 00 00 00 00 00 11 [10:30:20]Write i2c OK [10:30:20]MH_I2C_Read... [10:30:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:20]Read from MH i2c: E2 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: E2 17 00 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: E2 17 00 52 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6C [10:30:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:30:20]wFMCommunicate OK [10:30:20]requested_item fd.num is exist - process it [10:30:20]SAM_PROTO_GetFieldsCounters [10:30:20]wFMCommunicate request_size=4 [10:30:20]MH_SAM_APDU [10:30:20]CAPDU: 80 13 00 00 [10:30:20]Write to MH i2c: E2 08 00 53 45 80 13 00 00 00 00 00 00 14 [10:30:20]Write i2c OK [10:30:20]MH_I2C_Read... [10:30:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:20]Read from MH i2c: E2 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: E2 62 00 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: E2 62 00 53 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C1 CF 01 00 0E 04 04 00 B2 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 A2 [10:30:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C1 CF 01 00 0E 04 04 00 B2 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 [10:30:20]wFMCommunicate OK [10:30:20]SAM_PROTO_GetFieldsCounters done [10:30:20]requested_item shift.num is exist - process it [10:30:20]requested_item shift.opened is exist - process it [10:30:20]req_shift_opened [10:30:20]FM_GetShiftState [10:30:20]SAM_PROTO_GetShiftState [10:30:20]wFMCommunicate request_size=4 [10:30:20]MH_SAM_APDU [10:30:20]CAPDU: 80 13 01 00 [10:30:20]Write to MH i2c: E2 08 00 54 45 80 13 01 00 00 00 00 00 16 [10:30:20]Write i2c OK [10:30:20]MH_I2C_Read... [10:30:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:21]Read from MH i2c: E2 [10:30:21]MH_I2C_Read... [10:30:21]Read from MH i2c: E2 0E 00 [10:30:21]MH_I2C_Read... [10:30:21]Read from MH i2c: E2 0E 00 54 45 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 44 [10:30:21]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:30:21]wFMCommunicate OK [10:30:21]SAM_PROTO_GetShiftState done [10:30:21]FM_GetShiftState done [10:30:21]req_shift_opened done [10:30:21]requested_item shift.open_date is exist - process it [10:30:21]req_shift_open_date [10:30:21]req_shift_open_date done [10:30:21]produce_requested_data done [10:30:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118721,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:30:21]process_action_free close_receipt [10:30:21]json_value_free [10:30:21]json_value_free done [10:30:21]process_json_proto returns [10:30:21]Send response to host [10:30:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118721,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:30:21]free response buf [10:30:21]execute_script done [10:30:21]execute_script returns [10:30:21]free content buf [10:30:21]Sock 9.Close socket [10:30:21]Sock 9.Thread stoped [10:30:38]accept exits with 7 [10:30:38]New connection [10:30:38]New thread 3067383140 created [10:30:38]Thread 3067239780 joined [10:30:38]Waiting for new connection... [10:30:38] Sock 7.Parse request [10:30:38]Sock 7.Check first char [10:30:38]Sock 7.First char is OK [10:30:38]request: POST /json_proto HTTP/1.0 [10:30:38]Method: POST [10:30:38]URL: /json_proto [10:30:38]Method is POST - this is cgi request [10:30:38]url: /json_proto [10:30:38]query_string will be loaded in cgi processing [10:30:38]execute_cgi json_proto POST (null) [10:30:38]execute_cgi path=json_proto method=POST [10:30:38]POST find Content-Length [10:30:38]Host: 172.17.45.7:8080 [10:30:38]Content-Length: 822 [10:30:38]Content-Type: application/json [10:30:38] [10:30:38]POST finish read [10:30:38]Found Content-Length = 822 [10:30:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:38]execute_script... [10:30:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:38]POST & json_proto [10:30:38]process_json_proto [10:30:38]json parsed OK: [10:30:38]protocol is kg_v1.0 [10:30:38]action value=close_receipt [10:30:38]process_action close_receipt [10:30:38]cmd_close_receipt [10:30:38]MH_GetDate [10:30:38]Write to MH i2c: F0 00 00 55 45 89 [10:30:38]Write i2c OK [10:30:38]MH_I2C_Read... [10:30:38]Read from MH i2c: F0 [10:30:38]MH_I2C_Read... [10:30:38]Read from MH i2c: F0 09 00 [10:30:38]MH_I2C_Read... [10:30:38]Read from MH i2c: F0 09 00 55 45 00 53 6F A7 66 90 0F 3E 66 A4 [10:30:38]GetLastDocTimeStamp 1722249022 [10:30:38]current date 1722249043 [10:30:38]FM_GetShiftState [10:30:38]SAM_PROTO_GetShiftState [10:30:38]wFMCommunicate request_size=4 [10:30:38]MH_SAM_APDU [10:30:38]CAPDU: 80 13 01 00 [10:30:38]Write to MH i2c: E2 08 00 56 45 80 13 01 00 00 00 00 00 18 [10:30:38]Write i2c OK [10:30:38]MH_I2C_Read... [10:30:38]*** 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 56 45 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 46 [10:30:38]RAPDU: 09 00 01 39 DD A6 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]opened in 1722211641 [10:30:38]opened+sec_in_day 1722298041 [10:30:38]quantity*price = 200010 [10:30:38]sum+1 = 200011 [10:30:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 98 29.07.2024 10:30 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118722 ФПД: 83760036419874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103043&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118722&fm=83760036419874&tin=02508201610067®Number=0000000000092660&sum=200000 [10:30:39]StoreToDocumentArchive [10:30:39]shift 434 fd 118722 [10:30:39]save to /storage/0434/doc_00118722 [10:30:39]save last doc name /storage/0434/doc_00118722 to /storage/kkm_last_doc_name [10:30:39]save OK [10:30:39]Clear old archive folders... [10:30:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:39]tlvbuf is 01F6A390 [10:30:39]SAM_PROTO_ClearQueue [10:30:39]wFMCommunicate request_size=4 [10:30:39]MH_SAM_APDU [10:30:39]CAPDU: 80 09 00 00 [10:30:39]Write to MH i2c: E2 08 00 63 45 80 09 00 00 00 00 00 00 1A [10:30:39]Write i2c OK [10:30:39]MH_I2C_Read... [10:30:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:39]Read from MH i2c: E2 [10:30:39]MH_I2C_Read... [10:30:39]Read from MH i2c: E2 03 00 [10:30:39]MH_I2C_Read... [10:30:39]Read from MH i2c: E2 03 00 63 45 00 90 00 1C [10:30:39]RAPDU: 90 00 [10:30:39]wFMCommunicate OK [10:30:39]SAM_PROTO_ClearQueue done [10:30:39]KKMCreateOFDPacket [10:30:39]OFDProtocolAddRootSTLVToBuf [10:30:39]FM_MakeSignedData [10:30:39]FM_MakeSignedData [10:30:39]SAM_PROTO_SignData [10:30:39]wFMCommunicate request_size=4 [10:30:39]MH_SAM_APDU [10:30:39]CAPDU: 80 0D 01 02 [10:30:39]Write to MH i2c: E2 08 00 64 45 80 0D 01 02 00 00 00 00 22 [10:30:39]Write i2c OK [10:30:39]MH_I2C_Read... [10:30:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:39]Read from MH i2c: E2 [10:30:39]MH_I2C_Read... [10:30:39]Read from MH i2c: E2 03 00 [10:30:39]MH_I2C_Read... [10:30:39]Read from MH i2c: E2 03 00 64 45 00 90 00 1D [10:30:39]RAPDU: 90 00 [10:30:39]wFMCommunicate OK [10:30:39]wFMCommunicate request_size=255 [10:30:39]MH_SAM_APDU [10:30:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 53 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C2 CF 01 00 35 04 06 00 4C [10:30:39]Write to MH i2c: E2 02 01 65 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 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 53 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C2 CF 01 00 35 04 06 00 4C 00 00 6C [10:30:39]Write i2c OK [10:30:39]MH_I2C_Read... [10:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:40]Read from MH i2c: E2 [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: E2 03 00 [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: E2 03 00 65 45 00 90 00 1E [10:30:40]RAPDU: 90 00 [10:30:40]wFMCommunicate OK [10:30:40]wFMCommunicate request_size=10 [10:30:40]MH_SAM_APDU [10:30:40]CAPDU: 80 0D 02 02 05 2D E7 37 99 22 [10:30:40]Write to MH i2c: E2 0D 00 66 45 80 0D 02 02 05 00 2D E7 37 99 22 00 00 35 [10:30:40]Write i2c OK [10:30:40]MH_I2C_Read... [10:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:40]Read from MH i2c: E2 [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: E2 03 00 [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: E2 03 00 66 45 00 90 00 1F [10:30:40]RAPDU: 90 00 [10:30:40]wFMCommunicate OK [10:30:40]wFMCommunicate request_size=4 [10:30:40]MH_SAM_APDU [10:30:40]CAPDU: 80 0D 03 02 [10:30:40]Write to MH i2c: E2 08 00 67 45 80 0D 03 02 00 00 00 00 27 [10:30:40]Write i2c OK [10:30:40]MH_I2C_Read... [10:30:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:40]Read from MH i2c: E2 [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: E2 0B 00 [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: E2 0B 00 67 45 00 D7 24 64 87 AC DC 19 F6 90 00 A5 [10:30:40]RAPDU: D7 24 64 87 AC DC 19 F6 90 00 [10:30:40]wFMCommunicate OK [10:30:40]SAM_PROTO_SignData done [10:30:40]FM_MakeSignedData done [10:30:40]CreateOFDProtocolMessage [10:30:40]wFMCommunicate request_size=4 [10:30:40]MH_SAM_APDU [10:30:40]CAPDU: 80 11 00 00 [10:30:40]Write to MH i2c: E2 08 00 68 45 80 11 00 00 00 00 00 00 27 [10:30:40]Write i2c OK [10:30:40]MH_I2C_Read... [10:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:40]Read from MH i2c: E2 [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: E2 17 00 [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: E2 17 00 68 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 82 [10:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:30:40]wFMCommunicate OK [10:30:40]CreateOFDProtocolMessage done [10:30:40]OFDSenderStorePacket 118722 [10:30:40]StoreOFDPacket docnum=118722 [10:30:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4F A6 07 01 2A 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 53 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C2 CF 01 00 35 04 06 00 4C 2D E7 37 99 22 D7 24 64 87 AC DC 19 F6 [10:30:40]CheckFolder [10:30:40]dirname=/storage/ofd_packets [10:30:40]CheckFolder done [10:30:40]ProducePacketName [10:30:40]name=ofd_packets/00118722 [10:30:40]NVStorageSaveData ofd_packets/00118722 [10:30:40]File name is /storage/ofd_packets/00118722 [10:30:40]Write 301 bytes [10:30:40]NVStorageSaveData done [10:30:40]OFDSenderStorePacket done [10:30:40]KKMCreateOFDPacket done [10:30:40]NVStorageSaveData kkm_last_timestamp [10:30:40]File name is /storage/kkm_last_timestamp [10:30:40]Write 4 bytes [10:30:40]NVStorageSaveData done [10:30:40]ExternCall_PrintAddStr [10:30:40]wPrintStart [10:30:40]Write to MH i2c: 01 00 00 69 45 AE [10:30:40]Write i2c OK [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: 01 [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: 01 07 00 [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: 01 07 00 69 45 00 00 00 00 00 FF 0F C3 [10:30:40]RasterBufferAndPrint [10:30:40]line Счет N : (1)949606 [10:30:40]line ИНН: 02508201610067 [10:30:40]line Контрольно-Кассовый Чек [10:30:40]line ПРОДАЖА [10:30:40]line ТРК (МРК, ГНК) : 41 [10:30:40]line Товар: 2710124130 [10:30:40]line Аи-92-К-4 [10:30:40]line 29.500 * 67.80 [10:30:40]line = 2000.10 [10:30:40]line НДС 12% НСП 1% [10:30:40]line > о реализуемом товаре [10:30:40]line ОКРУГЛЕНИЕ: -0.10 [10:30:40]line ИТОГО: 2000.00 [10:30:40]line НСП 1% : 17.70 [10:30:40]line НДС 12% : 212.40 [10:30:40]line Наличными: 0.00 [10:30:40]line Безнал.: 2000.00 [10:30:40]line Место: АЗС № 134 "Партнер Нефть" [10:30:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:30:40]line СНО: Общий режим [10:30:40]line Чек 98 29.07.2024 10:30 [10:30:40]line Смена: 434 ФФД: 1.0 [10:30:40]line ЗНМ: 0300000044 [10:30:40]line РНМ: 0000000000092660 [10:30:40]line Версия ККМ: 001 [10:30:40]line Платежная система: O! деньги [10:30:40]line ФМ: 0000000000874939 [10:30:40]line ФД: 118722 [10:30:40]line ФПД: 83760036419874 [10:30:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103043&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118722&fm=83760036419874&tin=02508201610067®Number=0000000000092660&sum=200000 [10:30:40]written 0, free lines is 4095 [10:30:40]Write to MH i2c: 01 00 00 93 45 D8 [10:30:40]Write i2c OK [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: 01 [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: 01 07 00 [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: 01 07 00 93 45 00 00 00 00 00 EE 0C D9 [10:30:40]RasterBufferAndPrint [10:30:40]line [10:30:40]line [10:30:40]line [10:30:40]line [10:30:40]line [10:30:40]written 0, free lines is 3316 [10:30:40]MH_Cut [10:30:40]Write to MH i2c: D1 01 00 9A 45 01 B1 [10:30:40]Write i2c OK [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: D1 [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: D1 01 00 [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: D1 01 00 9A 45 00 B0 [10:30:40]Write to MH i2c: 01 00 00 9B 45 E0 [10:30:40]Write i2c OK [10:30:40]MH_I2C_Read... [10:30:41]*** Cut start [10:30:41]*** Partial cut [10:30:41]*** CUTSNS_PIN = 1 [10:30:41]*** CUTSNS_PIN = 0 [10:30:41]*** Brake cut motor [10:30:42]Read from MH i2c: 01 [10:30:42]MH_I2C_Read... [10:30:42]*** Stop cut motor [10:30:42]*** Cut end [10:30:42]Read from MH i2c: 01 07 00 [10:30:42]MH_I2C_Read... [10:30:42]Read from MH i2c: 01 07 00 9B 45 00 00 00 00 00 FF 0F F5 [10:30:42]process_action close_receipt done [10:30:42]requested_data is exist [10:30:42]produce_requested_data [10:30:42]requested_item fm.sn is exist - process it [10:30:42]wFMCommunicate request_size=4 [10:30:42]MH_SAM_APDU [10:30:42]CAPDU: 80 11 00 00 [10:30:42]Write to MH i2c: E2 08 00 9C 45 80 11 00 00 00 00 00 00 5B [10:30:42]Write i2c OK [10:30:42]MH_I2C_Read... [10:30:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:42]Read from MH i2c: E2 [10:30:42]MH_I2C_Read... [10:30:42]Read from MH i2c: E2 17 00 [10:30:42]MH_I2C_Read... [10:30:42]Read from MH i2c: E2 17 00 9C 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B6 [10:30:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:30:42]wFMCommunicate OK [10:30:42]requested_item fd.num is exist - process it [10:30:42]SAM_PROTO_GetFieldsCounters [10:30:42]wFMCommunicate request_size=4 [10:30:42]MH_SAM_APDU [10:30:42]CAPDU: 80 13 00 00 [10:30:42]Write to MH i2c: E2 08 00 9D 45 80 13 00 00 00 00 00 00 5E [10:30:42]Write i2c OK [10:30:42]MH_I2C_Read... [10:30:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:42]Read from MH i2c: E2 [10:30:42]MH_I2C_Read... [10:30:42]Read from MH i2c: E2 62 00 [10:30:42]MH_I2C_Read... [10:30:42]Read from MH i2c: E2 62 00 9D 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C2 CF 01 00 0E 04 04 00 B2 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 F0 [10:30: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C2 CF 01 00 0E 04 04 00 B2 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 [10:30:42]wFMCommunicate OK [10:30:42]SAM_PROTO_GetFieldsCounters done [10:30:42]requested_item shift.num is exist - process it [10:30:42]requested_item shift.opened is exist - process it [10:30:42]req_shift_opened [10:30:42]FM_GetShiftState [10:30:42]SAM_PROTO_GetShiftState [10:30:42]wFMCommunicate request_size=4 [10:30:42]MH_SAM_APDU [10:30:42]CAPDU: 80 13 01 00 [10:30:42]Write to MH i2c: E2 08 00 9E 45 80 13 01 00 00 00 00 00 60 [10:30:42]Write i2c OK [10:30:42]MH_I2C_Read... [10:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:42]Read from MH i2c: E2 [10:30:42]MH_I2C_Read... [10:30:42]Read from MH i2c: E2 0E 00 [10:30:42]MH_I2C_Read... [10:30:42]Read from MH i2c: E2 0E 00 9E 45 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 8E [10:30:42]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:30:42]wFMCommunicate OK [10:30:42]SAM_PROTO_GetShiftState done [10:30:42]FM_GetShiftState done [10:30:42]req_shift_opened done [10:30:42]requested_item shift.open_date is exist - process it [10:30:42]req_shift_open_date [10:30:42]req_shift_open_date done [10:30:42]produce_requested_data done [10:30:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118722,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:30:42]process_action_free close_receipt [10:30:42]json_value_free [10:30:42]json_value_free done [10:30:42]process_json_proto returns [10:30:42]Send response to host [10:30:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118722,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:30:42]free response buf [10:30:42]execute_script done [10:30:42]execute_script returns [10:30:42]free content buf [10:30:42]Sock 7.Close socket [10:30:42]Sock 7.Thread stoped [10:30:43]ConnectInit Can't connect to host [10:30:43]CommunicateWithHost connect error [10:30:43]CommunicateWithHost err = -1 [10:30:43]OFD Sender: Server communicate error [10:30:43]OFD Sender: Processing packet 118719 [packets to send 89, broken 85] [10:30:43]ProducePacketName [10:30:43]name=ofd_packets/00118719 [10:30:43]OFD Sender: To server: pG, [10:30:43]CommunicateWithHost lk.salyk.kg:30040 [10:30:43]ConnectInit lk.salyk.kg [10:30:43]Connected sock=7 [10:30:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 67 09 07 01 A9 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 D4 6E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BF CF 01 00 35 04 06 00 98 8C BB 70 00 D8 98 73 6F 3B C2 22 27 D2 [10:30:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A6 B6 47 00 DA 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BF CF 01 00 F4 03 04 00 E4 1C A7 66 B6 04 01 00 00 2C 08 27 FC 47 B9 1D 62 [10:30:43]CommunicateWithHost err = 0 [10:30:43]CheckOFDResponse [10:30:43]1017 (14) - 77093643461234 [10:30:43]1041 (16) - 0000000000874939 [10:30:43]1040 (4) - 118719 [10:30:43]1012 (4) - 29.07.2024 04:39 [10:30:43]1206 (1) - 0 [10:30:43]OFD Sender: Remove packet 118719 [10:30:43]ProducePacketName [10:30:43]name=ofd_packets/00118719 [10:30:43]NVStorageDeleteData [10:30:43]OFD Sender: Processing packet 118720 [packets to send 88, broken 85] [10:30:43]ProducePacketName [10:30:43]name=ofd_packets/00118720 [10:30:43]OFD Sender: To server: pG, [10:30:43]CommunicateWithHost lk.salyk.kg:30040 [10:30:43]ConnectInit lk.salyk.kg [10:30:44]Connected sock=7 [10:30:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 45 E7 07 01 CF 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 DC 6E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C0 CF 01 00 35 04 06 00 8B 55 92 81 53 D4 22 27 07 51 8D EE D2 6D [10:30:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4D 45 47 00 B9 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C0 CF 01 00 F4 03 04 00 E5 1C A7 66 B6 04 01 00 00 8F 10 0E 16 5F E7 84 A6 [10:30:44]CommunicateWithHost err = 0 [10:30:44]CheckOFDResponse [10:30:44]1017 (14) - 77093643461234 [10:30:44]1041 (16) - 0000000000874939 [10:30:44]1040 (4) - 118720 [10:30:44]1012 (4) - 29.07.2024 04:39 [10:30:44]1206 (1) - 0 [10:30:44]OFD Sender: Remove packet 118720 [10:30:44]ProducePacketName [10:30:44]name=ofd_packets/00118720 [10:30:44]NVStorageDeleteData [10:30:44]OFD Sender: Processing packet 118721 [packets to send 87, broken 85] [10:30:44]ProducePacketName [10:30:44]name=ofd_packets/00118721 [10:30:44]OFD Sender: To server: pG, [10:30:44]CommunicateWithHost lk.salyk.kg:30040 [10:30:44]ConnectInit lk.salyk.kg [10:30:44]Connected sock=7 [10:30:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 51 B7 07 01 FE C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 10 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5A 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 3E 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C1 CF 01 00 35 04 06 00 D2 C1 12 E9 B2 BE 64 12 11 19 F9 B9 A0 D8 [10:30:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A8 4B 47 00 3B 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 34 39 33 39 10 04 04 00 C1 CF 01 00 F4 03 04 00 E5 1C A7 66 B6 04 01 00 00 39 88 08 B8 7F 01 C6 1E [10:30:45]CommunicateWithHost err = 0 [10:30:45]CheckOFDResponse [10:30:45]1017 (14) - 77093643461234 [10:30:45]1041 (16) - 0000000000874939 [10:30:45]1040 (4) - 118721 [10:30:45]1012 (4) - 29.07.2024 04:39 [10:30:45]1206 (1) - 0 [10:30:45]OFD Sender: Remove packet 118721 [10:30:45]ProducePacketName [10:30:45]name=ofd_packets/00118721 [10:30:45]NVStorageDeleteData [10:30:45]OFD Sender: Processing packet 118722 [packets to send 86, broken 85] [10:30:45]ProducePacketName [10:30:45]name=ofd_packets/00118722 [10:30:45]OFD Sender: To server: pG, [10:30:45]CommunicateWithHost lk.salyk.kg:30040 [10:30:45]ConnectInit lk.salyk.kg [10:30:45]Connected sock=7 [10:30:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4F A6 07 01 2A 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 53 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C2 CF 01 00 35 04 06 00 4C 2D E7 37 99 22 D7 24 64 87 AC DC 19 F6 [10:30:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D0 56 47 00 45 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 34 39 33 39 10 04 04 00 C2 CF 01 00 F4 03 04 00 E6 1C A7 66 B6 04 01 00 00 93 63 8F 41 F2 33 F1 11 [10:30:45]CommunicateWithHost err = 0 [10:30:45]CheckOFDResponse [10:30:45]1017 (14) - 77093643461234 [10:30:45]1041 (16) - 0000000000874939 [10:30:45]1040 (4) - 118722 [10:30:45]1012 (4) - 29.07.2024 04:39 [10:30:45]1206 (1) - 0 [10:30:45]OFD Sender: Remove packet 118722 [10:30:45]ProducePacketName [10:30:45]name=ofd_packets/00118722 [10:30:45]NVStorageDeleteData [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]accept exits with 9 [10:32:51]New connection [10:32:51]New thread 3067239780 created [10:32:51]Thread 3067383140 joined [10:32:51]Waiting for new connection... [10:32:51] Sock 9.Parse request [10:32:51]Sock 9.Check first char [10:32:51]Sock 9.First char is OK [10:32:51]request: POST /json_proto HTTP/1.0 [10:32:51]Method: POST [10:32:51]URL: /json_proto [10:32:51]Method is POST - this is cgi request [10:32:51]url: /json_proto [10:32:51]query_string will be loaded in cgi processing [10:32:51]execute_cgi json_proto POST (null) [10:32:51]execute_cgi path=json_proto method=POST [10:32:51]POST find Content-Length [10:32:51]Host: 172.17.45.7:8080 [10:32:51]Content-Length: 674 [10:32:51]Content-Type: application/json [10:32:51] [10:32:51]POST finish read [10:32:51]Found Content-Length = 674 [10:32:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:51]execute_script... [10:32:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:51]POST & json_proto [10:32:51]process_json_proto [10:32:51]json parsed OK: [10:32:51]protocol is kg_v1.0 [10:32:51]action value=close_receipt [10:32:51]process_action close_receipt [10:32:51]cmd_close_receipt [10:32:51]MH_GetDate [10:32:51]Write to MH i2c: F0 00 00 9F 45 D3 [10:32:51]Write i2c OK [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: F0 [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: F0 09 00 [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: F0 09 00 9F 45 00 D8 6F A7 66 90 0F 3E 66 73 [10:32:51]GetLastDocTimeStamp 1722249043 [10:32:51]current date 1722249176 [10:32:51]FM_GetShiftState [10:32:51]SAM_PROTO_GetShiftState [10:32:51]wFMCommunicate request_size=4 [10:32:51]MH_SAM_APDU [10:32:51]CAPDU: 80 13 01 00 [10:32:51]Write to MH i2c: E2 08 00 A0 45 80 13 01 00 00 00 00 00 62 [10:32:51]Write i2c OK [10:32:51]MH_I2C_Read... [10:32:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:51]Read from MH i2c: E2 [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: E2 0E 00 [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: E2 0E 00 A0 45 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 90 [10:32:51]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:32:51]wFMCommunicate OK [10:32:51]SAM_PROTO_GetShiftState done [10:32:51]FM_GetShiftState done [10:32:51]opened in 1722211641 [10:32:51]opened+sec_in_day 1722298041 [10:32:51]quantity*price = 40005 [10:32:51]sum+1 = 40006 [10:32:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 99 29.07.2024 10:32 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118723 ФПД: 163463383028474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103256&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118723&fm=163463383028474&tin=02508201610067®Number=0000000000092660&sum=40000 [10:32:52]StoreToDocumentArchive [10:32:52]shift 434 fd 118723 [10:32:52]save to /storage/0434/doc_00118723 [10:32:52]save last doc name /storage/0434/doc_00118723 to /storage/kkm_last_doc_name [10:32:52]save OK [10:32:52]Clear old archive folders... [10:32:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:32:52]tlvbuf is 01F69E40 [10:32:52]SAM_PROTO_ClearQueue [10:32:52]wFMCommunicate request_size=4 [10:32:52]MH_SAM_APDU [10:32:52]CAPDU: 80 09 00 00 [10:32:52]Write to MH i2c: E2 08 00 AD 45 80 09 00 00 00 00 00 00 64 [10:32:52]Write i2c OK [10:32:52]MH_I2C_Read... [10:32:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:52]Read from MH i2c: E2 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: E2 03 00 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: E2 03 00 AD 45 00 90 00 66 [10:32:52]RAPDU: 90 00 [10:32:52]wFMCommunicate OK [10:32:52]SAM_PROTO_ClearQueue done [10:32:52]KKMCreateOFDPacket [10:32:52]OFDProtocolAddRootSTLVToBuf [10:32:52]FM_MakeSignedData [10:32:52]FM_MakeSignedData [10:32:52]SAM_PROTO_SignData [10:32:52]wFMCommunicate request_size=4 [10:32:52]MH_SAM_APDU [10:32:52]CAPDU: 80 0D 01 02 [10:32:52]Write to MH i2c: E2 08 00 AE 45 80 0D 01 02 00 00 00 00 6C [10:32:52]Write i2c OK [10:32:52]MH_I2C_Read... [10:32:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:52]Read from MH i2c: E2 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: E2 03 00 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: E2 03 00 AE 45 00 90 00 67 [10:32:52]RAPDU: 90 00 [10:32:52]wFMCommunicate OK [10:32:52]wFMCommunicate request_size=255 [10:32:52]MH_SAM_APDU [10:32:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 D8 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C3 CF 01 00 35 04 06 00 94 AB 48 E1 [10:32:52]Write to MH i2c: E2 02 01 AF 45 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 D8 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C3 CF 01 00 35 04 06 00 94 AB 48 E1 00 00 54 [10:32:52]Write i2c OK [10:32:52]MH_I2C_Read... [10:32:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:52]Read from MH i2c: E2 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: E2 03 00 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: E2 03 00 AF 45 00 90 00 68 [10:32:52]RAPDU: 90 00 [10:32:52]wFMCommunicate OK [10:32:52]wFMCommunicate request_size=7 [10:32:52]MH_SAM_APDU [10:32:52]CAPDU: 80 0D 02 02 02 12 FA [10:32:52]Write to MH i2c: E2 0A 00 B0 45 80 0D 02 02 02 00 12 FA 00 00 7F [10:32:52]Write i2c OK [10:32:52]MH_I2C_Read... [10:32:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:52]Read from MH i2c: E2 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: E2 03 00 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: E2 03 00 B0 45 00 90 00 69 [10:32:52]RAPDU: 90 00 [10:32:52]wFMCommunicate OK [10:32:52]wFMCommunicate request_size=4 [10:32:52]MH_SAM_APDU [10:32:52]CAPDU: 80 0D 03 02 [10:32:52]Write to MH i2c: E2 08 00 B1 45 80 0D 03 02 00 00 00 00 71 [10:32:52]Write i2c OK [10:32:52]MH_I2C_Read... [10:32:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:52]Read from MH i2c: E2 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: E2 0B 00 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: E2 0B 00 B1 45 00 DE CB 7E 51 38 DE A6 18 90 00 BE [10:32:52]RAPDU: DE CB 7E 51 38 DE A6 18 90 00 [10:32:52]wFMCommunicate OK [10:32:52]SAM_PROTO_SignData done [10:32:52]FM_MakeSignedData done [10:32:52]CreateOFDProtocolMessage [10:32:52]wFMCommunicate request_size=4 [10:32:52]MH_SAM_APDU [10:32:52]CAPDU: 80 11 00 00 [10:32:52]Write to MH i2c: E2 08 00 B2 45 80 11 00 00 00 00 00 00 71 [10:32:52]Write i2c OK [10:32:52]MH_I2C_Read... [10:32:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:52]Read from MH i2c: E2 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: E2 17 00 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: E2 17 00 B2 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CC [10:32:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:32:52]wFMCommunicate OK [10:32:52]CreateOFDProtocolMessage done [10:32:52]OFDSenderStorePacket 118723 [10:32:52]StoreOFDPacket docnum=118723 [10:32:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 AA 07 04 01 A4 C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 D8 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C3 CF 01 00 35 04 06 00 94 AB 48 E1 12 FA DE CB 7E 51 38 DE A6 18 [10:32:52]CheckFolder [10:32:52]dirname=/storage/ofd_packets [10:32:52]CheckFolder done [10:32:52]ProducePacketName [10:32:52]name=ofd_packets/00118723 [10:32:52]NVStorageSaveData ofd_packets/00118723 [10:32:52]File name is /storage/ofd_packets/00118723 [10:32:52]Write 298 bytes [10:32:52]NVStorageSaveData done [10:32:52]OFDSenderStorePacket done [10:32:52]KKMCreateOFDPacket done [10:32:52]NVStorageSaveData kkm_last_timestamp [10:32:52]File name is /storage/kkm_last_timestamp [10:32:52]Write 4 bytes [10:32:52]NVStorageSaveData done [10:32:52]ExternCall_PrintAddStr [10:32:52]wPrintStart [10:32:52]Write to MH i2c: 01 00 00 B3 45 F8 [10:32:52]Write i2c OK [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: 01 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: 01 07 00 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: 01 07 00 B3 45 00 00 00 00 00 FF 0F 0D [10:32:52]RasterBufferAndPrint [10:32:52]line Счет N : (1)949608 [10:32:52]line ИНН: 02508201610067 [10:32:52]line Контрольно-Кассовый Чек [10:32:52]line ПРОДАЖА [10:32:52]line ТРК (МРК, ГНК) : 21 [10:32:52]line Товар: 2710194800 [10:32:52]line ДТ-К-5 [10:32:52]line 5.250 * 76.20 [10:32:52]line = 400.05 [10:32:52]line НДС 12% НСП 1% [10:32:52]line > о реализуемом товаре [10:32:52]line ОКРУГЛЕНИЕ: -0.05 [10:32:52]line ИТОГО: 400.00 [10:32:52]line Внесено: 400.00 [10:32:52]line СДАЧА: 0.00 [10:32:52]line НСП 1% : 3.54 [10:32:52]line НДС 12% : 42.48 [10:32:52]line Наличными: 400.00 [10:32:52]line Безнал.: 0.00 [10:32:52]line Место: АЗС № 134 "Партнер Нефть" [10:32:52]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:32:52]line СНО: Общий режим [10:32:52]line Чек 99 29.07.2024 10:32 [10:32:52]line Смена: 434 ФФД: 1.0 [10:32:52]line ЗНМ: 0300000044 [10:32:52]line РНМ: 0000000000092660 [10:32:52]line Версия ККМ: 001 [10:32:52]line ФМ: 0000000000874939 [10:32:52]line ФД: 118723 [10:32:52]line ФПД: 163463383028474 [10:32:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103256&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118723&fm=163463383028474&tin=02508201610067®Number=0000000000092660&sum=40000 [10:32:53]OFD Sender: Processing packet 118723 [packets to send 86, broken 85] [10:32:53]ProducePacketName [10:32:53]name=ofd_packets/00118723 [10:32:53]OFD Sender: To server: pG, [10:32:53]CommunicateWithHost lk.salyk.kg:30040 [10:32:53]ConnectInit lk.salyk.kg [10:32:53]written 0, free lines is 4095 [10:32:53]Connected sock=10 [10:32:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 AA 07 04 01 A4 C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 D8 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C3 CF 01 00 35 04 06 00 94 AB 48 E1 12 FA DE CB 7E 51 38 DE A6 18 [10:32:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F7 12 47 00 18 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 34 39 33 39 10 04 04 00 C3 CF 01 00 F4 03 04 00 66 1D A7 66 B6 04 01 00 00 FE 8D 88 D2 A3 4E 56 C8 [10:32:53]CommunicateWithHost err = 0 [10:32:53]CheckOFDResponse [10:32:53]1017 (14) - 77093643461234 [10:32:53]1041 (16) - 0000000000874939 [10:32:53]1040 (4) - 118723 [10:32:53]1012 (4) - 29.07.2024 04:41 [10:32:53]1206 (1) - 0 [10:32:53]OFD Sender: Remove packet 118723 [10:32:53]ProducePacketName [10:32:53]name=ofd_packets/00118723 [10:32:53]NVStorageDeleteData [10:32:53]Write to MH i2c: 01 00 00 DD 45 22 [10:32:53]Write i2c OK [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: 01 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: 01 07 00 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: 01 07 00 DD 45 00 00 00 00 00 D9 0C 0E [10:32:53]RasterBufferAndPrint [10:32:53]line [10:32:53]line [10:32:53]line [10:32:53]line [10:32:53]line [10:32:53]written 0, free lines is 3297 [10:32:53]MH_Cut [10:32:53]Write to MH i2c: D1 01 00 E4 45 01 FB [10:32:53]Write i2c OK [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: D1 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: D1 01 00 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: D1 01 00 E4 45 00 FA [10:32:53]Write to MH i2c: 01 00 00 E5 45 2A [10:32:53]Write i2c OK [10:32:53]MH_I2C_Read... [10:32:54]OFD Sender: No OFD packet to send [10:32:54]*** Cut start [10:32:54]*** Partial cut [10:32:54]*** CUTSNS_PIN = 1 [10:32:54]*** CUTSNS_PIN = 0 [10:32:54]*** Brake cut motor [10:32:54]Read from MH i2c: 01 [10:32:54]MH_I2C_Read... [10:32:54]*** Stop cut motor [10:32:54]*** Cut end [10:32:54]Read from MH i2c: 01 07 00 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: 01 07 00 E5 45 00 00 00 00 00 FF 0F 3F [10:32:54]process_action close_receipt done [10:32:54]requested_data is exist [10:32:54]produce_requested_data [10:32:54]requested_item fm.sn is exist - process it [10:32:54]wFMCommunicate request_size=4 [10:32:54]MH_SAM_APDU [10:32:54]CAPDU: 80 11 00 00 [10:32:54]Write to MH i2c: E2 08 00 E6 45 80 11 00 00 00 00 00 00 A5 [10:32:54]Write i2c OK [10:32:54]MH_I2C_Read... [10:32:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:55]Read from MH i2c: E2 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: E2 17 00 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: E2 17 00 E6 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 00 [10:32:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:32:55]wFMCommunicate OK [10:32:55]requested_item fd.num is exist - process it [10:32:55]SAM_PROTO_GetFieldsCounters [10:32:55]wFMCommunicate request_size=4 [10:32:55]MH_SAM_APDU [10:32:55]CAPDU: 80 13 00 00 [10:32:55]Write to MH i2c: E2 08 00 E7 45 80 13 00 00 00 00 00 00 A8 [10:32:55]Write i2c OK [10:32:55]MH_I2C_Read... [10:32:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:55]Read from MH i2c: E2 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: E2 62 00 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: E2 62 00 E7 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C3 CF 01 00 0E 04 04 00 B2 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 3E [10:32: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C3 CF 01 00 0E 04 04 00 B2 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 [10:32:55]wFMCommunicate OK [10:32:55]SAM_PROTO_GetFieldsCounters done [10:32:55]requested_item shift.num is exist - process it [10:32:55]requested_item shift.opened is exist - process it [10:32:55]req_shift_opened [10:32:55]FM_GetShiftState [10:32:55]SAM_PROTO_GetShiftState [10:32:55]wFMCommunicate request_size=4 [10:32:55]MH_SAM_APDU [10:32:55]CAPDU: 80 13 01 00 [10:32:55]Write to MH i2c: E2 08 00 E8 45 80 13 01 00 00 00 00 00 AA [10:32:55]Write i2c OK [10:32:55]MH_I2C_Read... [10:32:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:55]Read from MH i2c: E2 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: E2 0E 00 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: E2 0E 00 E8 45 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D8 [10:32:55]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:32:55]wFMCommunicate OK [10:32:55]SAM_PROTO_GetShiftState done [10:32:55]FM_GetShiftState done [10:32:55]req_shift_opened done [10:32:55]requested_item shift.open_date is exist - process it [10:32:55]req_shift_open_date [10:32:55]req_shift_open_date done [10:32:55]produce_requested_data done [10:32:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118723,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:32:55]process_action_free close_receipt [10:32:55]json_value_free [10:32:55]json_value_free done [10:32:55]process_json_proto returns [10:32:55]Send response to host [10:32:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118723,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:32:55]free response buf [10:32:55]execute_script done [10:32:55]execute_script returns [10:32:55]free content buf [10:32:55]Sock 9.Close socket [10:32:55]Sock 9.Thread stoped [10:32:55]accept exits with 7 [10:32:55]New connection [10:32:55]New thread 3067383140 created [10:32:55]Thread 3067239780 joined [10:32:55]Waiting for new connection... [10:32:55] Sock 7.Parse request [10:32:55]Sock 7.Check first char [10:32:55]Sock 7.First char is OK [10:32:55]request: POST /json_proto HTTP/1.0 [10:32:55]Method: POST [10:32:55]URL: /json_proto [10:32:55]Method is POST - this is cgi request [10:32:55]url: /json_proto [10:32:55]query_string will be loaded in cgi processing [10:32:55]execute_cgi json_proto POST (null) [10:32:55]execute_cgi path=json_proto method=POST [10:32:55]POST find Content-Length [10:32:55]Host: 172.17.45.7:8080 [10:32:55]Content-Length: 677 [10:32:55]Content-Type: application/json [10:32:55] [10:32:55]POST finish read [10:32:55]Found Content-Length = 677 [10:32:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.010, "sum" : 475.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 475.00, "total" : 475.00, "payments": [ { "type": 0, "sum" : 475.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:55]execute_script... [10:32:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.010, "sum" : 475.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 475.00, "total" : 475.00, "payments": [ { "type": 0, "sum" : 475.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:55]POST & json_proto [10:32:55]process_json_proto [10:32:55]json parsed OK: [10:32:55]protocol is kg_v1.0 [10:32:55]action value=close_receipt [10:32:55]process_action close_receipt [10:32:55]cmd_close_receipt [10:32:55]MH_GetDate [10:32:55]Write to MH i2c: F0 00 00 E9 45 1D [10:32:55]Write i2c OK [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: F0 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: F0 09 00 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: F0 09 00 E9 45 00 DC 6F A7 66 90 0F 3E 66 C1 [10:32:55]GetLastDocTimeStamp 1722249176 [10:32:55]current date 1722249180 [10:32:55]FM_GetShiftState [10:32:55]SAM_PROTO_GetShiftState [10:32:55]wFMCommunicate request_size=4 [10:32:55]MH_SAM_APDU [10:32:55]CAPDU: 80 13 01 00 [10:32:55]Write to MH i2c: E2 08 00 EA 45 80 13 01 00 00 00 00 00 AC [10:32:55]Write i2c OK [10:32:55]MH_I2C_Read... [10:32:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:55]Read from MH i2c: E2 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: E2 0E 00 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: E2 0E 00 EA 45 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 DA [10:32:55]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:32:55]wFMCommunicate OK [10:32:55]SAM_PROTO_GetShiftState done [10:32:55]FM_GetShiftState done [10:32:55]opened in 1722211641 [10:32:55]opened+sec_in_day 1722298041 [10:32:55]quantity*price = 47527 [10:32:55]sum+1 = 47529 [10:32:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 475.00 Внесено: 475.00 СДАЧА: 0.00 НСП 1% : 4.21 НДС 12% : 50.47 Наличными: 475.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 100 29.07.2024 10:33 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118724 ФПД: 188229891264151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103300&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118724&fm=188229891264151&tin=02508201610067®Number=0000000000092660&sum=47500 [10:32:57]StoreToDocumentArchive [10:32:57]shift 434 fd 118724 [10:32:57]save to /storage/0434/doc_00118724 [10:32:57]save last doc name /storage/0434/doc_00118724 to /storage/kkm_last_doc_name [10:32:57]save OK [10:32:57]Clear old archive folders... [10:32:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:57]tlvbuf is 01F70480 [10:32:57]SAM_PROTO_ClearQueue [10:32:57]wFMCommunicate request_size=4 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 09 00 00 [10:32:57]Write to MH i2c: E2 08 00 F7 45 80 09 00 00 00 00 00 00 AE [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 F7 45 00 90 00 B0 [10:32:57]RAPDU: 90 00 [10:32:57]wFMCommunicate OK [10:32:57]SAM_PROTO_ClearQueue done [10:32:57]KKMCreateOFDPacket [10:32:57]OFDProtocolAddRootSTLVToBuf [10:32:57]FM_MakeSignedData [10:32:57]FM_MakeSignedData [10:32:57]SAM_PROTO_SignData [10:32:57]wFMCommunicate request_size=4 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 0D 01 02 [10:32:57]Write to MH i2c: E2 08 00 F8 45 80 0D 01 02 00 00 00 00 B6 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 F8 45 00 90 00 B1 [10:32:57]RAPDU: 90 00 [10:32:57]wFMCommunicate OK [10:32:57]wFMCommunicate request_size=255 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A8 B9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 13 00 00 00 00 07 04 06 00 8C B9 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 DC 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C4 CF 01 00 35 04 06 00 AB [10:32:57]Write to MH i2c: E2 02 01 F9 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 62 1B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A8 B9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 13 00 00 00 00 07 04 06 00 8C B9 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 DC 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C4 CF 01 00 35 04 06 00 AB 00 00 E1 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 F9 45 00 90 00 B2 [10:32:57]RAPDU: 90 00 [10:32:57]wFMCommunicate OK [10:32:57]wFMCommunicate request_size=10 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 0D 02 02 05 31 AF CE 0E 97 [10:32:57]Write to MH i2c: E2 0D 00 FA 45 80 0D 02 02 05 00 31 AF CE 0E 97 00 00 16 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 FA 45 00 90 00 B3 [10:32:57]RAPDU: 90 00 [10:32:57]wFMCommunicate OK [10:32:57]wFMCommunicate request_size=4 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 0D 03 02 [10:32:57]Write to MH i2c: E2 08 00 FB 45 80 0D 03 02 00 00 00 00 BB [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 0B 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 0B 00 FB 45 00 C5 57 B0 04 5F FB A8 54 90 00 E2 [10:32:57]RAPDU: C5 57 B0 04 5F FB A8 54 90 00 [10:32:57]wFMCommunicate OK [10:32:57]SAM_PROTO_SignData done [10:32:57]FM_MakeSignedData done [10:32:57]CreateOFDProtocolMessage [10:32:57]wFMCommunicate request_size=4 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 11 00 00 [10:32:57]Write to MH i2c: E2 08 00 FC 45 80 11 00 00 00 00 00 00 BB [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 17 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 17 00 FC 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 16 [10:32:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:32:57]wFMCommunicate OK [10:32:57]CreateOFDProtocolMessage done [10:32:57]OFDSenderStorePacket 118724 [10:32:57]StoreOFDPacket docnum=118724 [10:32:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 92 E2 07 01 CF 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A8 B9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 13 00 00 00 00 07 04 06 00 8C B9 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 DC 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C4 CF 01 00 35 04 06 00 AB 31 AF CE 0E 97 C5 57 B0 04 5F FB A8 54 [10:32:57]CheckFolder [10:32:57]dirname=/storage/ofd_packets [10:32:57]CheckFolder done [10:32:57]ProducePacketName [10:32:57]name=ofd_packets/00118724 [10:32:57]NVStorageSaveData ofd_packets/00118724 [10:32:57]File name is /storage/ofd_packets/00118724 [10:32:57]Write 301 bytes [10:32:57]NVStorageSaveData done [10:32:57]OFDSenderStorePacket done [10:32:57]KKMCreateOFDPacket done [10:32:57]NVStorageSaveData kkm_last_timestamp [10:32:57]File name is /storage/kkm_last_timestamp [10:32:57]Write 4 bytes [10:32:57]NVStorageSaveData done [10:32:57]ExternCall_PrintAddStr [10:32:57]wPrintStart [10:32:57]Write to MH i2c: 01 00 00 FD 45 42 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: 01 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: 01 07 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: 01 07 00 FD 45 00 00 00 00 00 FF 0F 57 [10:32:57]RasterBufferAndPrint [10:32:57]line Счет N : (1)949607 [10:32:57]line ИНН: 02508201610067 [10:32:57]line Контрольно-Кассовый Чек [10:32:57]line ПРОДАЖА [10:32:57]line ТРК (МРК, ГНК) : 61 [10:32:57]line Товар: 2710124130 [10:32:57]line Аи-92-К-4 [10:32:57]line 7.010 * 67.80 [10:32:57]line = 475.28 [10:32:57]line НДС 12% НСП 1% [10:32:57]line > о реализуемом товаре [10:32:57]line ОКРУГЛЕНИЕ: -0.28 [10:32:57]line ИТОГО: 475.00 [10:32:57]line Внесено: 475.00 [10:32:57]line СДАЧА: 0.00 [10:32:57]line НСП 1% : 4.21 [10:32:57]line НДС 12% : 50.47 [10:32:57]line Наличными: 475.00 [10:32:57]line Безнал.: 0.00 [10:32:57]line Место: АЗС № 134 "Партнер Нефть" [10:32:58]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:32:58]line СНО: Общий режим [10:32:58]line Чек 100 29.07.2024 10:33 [10:32:58]line Смена: 434 ФФД: 1.0 [10:32:58]line ЗНМ: 0300000044 [10:32:58]line РНМ: 0000000000092660 [10:32:58]line Версия ККМ: 001 [10:32:58]line ФМ: 0000000000874939 [10:32:58]line ФД: 118724 [10:32:58]line ФПД: 188229891264151 [10:32:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103300&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118724&fm=188229891264151&tin=02508201610067®Number=0000000000092660&sum=47500 [10:32:58]OFD Sender: Processing packet 118724 [packets to send 86, broken 85] [10:32:58]ProducePacketName [10:32:58]name=ofd_packets/00118724 [10:32:58]OFD Sender: To server: pG, [10:32:58]CommunicateWithHost lk.salyk.kg:30040 [10:32:58]ConnectInit lk.salyk.kg [10:32:58]written 0, free lines is 4095 [10:32:58]Connected sock=10 [10:32:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 92 E2 07 01 CF 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A8 B9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 13 00 00 00 00 07 04 06 00 8C B9 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 DC 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C4 CF 01 00 35 04 06 00 AB 31 AF CE 0E 97 C5 57 B0 04 5F FB A8 54 [10:32:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6B 3F 47 00 11 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 34 39 33 39 10 04 04 00 C4 CF 01 00 F4 03 04 00 6B 1D A7 66 B6 04 01 00 00 F9 2E 20 BA 76 06 4D 34 [10:32:58]CommunicateWithHost err = 0 [10:32:58]CheckOFDResponse [10:32:58]1017 (14) - 77093643461234 [10:32:58]1041 (16) - 0000000000874939 [10:32:58]1040 (4) - 118724 [10:32:58]1012 (4) - 29.07.2024 04:41 [10:32:58]1206 (1) - 0 [10:32:58]OFD Sender: Remove packet 118724 [10:32:58]ProducePacketName [10:32:58]name=ofd_packets/00118724 [10:32:58]NVStorageDeleteData [10:32:58]Write to MH i2c: 01 00 00 27 46 6D [10:32:58]Write i2c OK [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: 01 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: 01 07 00 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: 01 07 00 27 46 00 00 00 00 00 D4 0C 54 [10:32:58]RasterBufferAndPrint [10:32:58]line [10:32:58]line [10:32:58]line [10:32:58]line [10:32:58]line [10:32:58]written 0, free lines is 3295 [10:32:58]MH_Cut [10:32:58]Write to MH i2c: D1 01 00 2E 46 01 46 [10:32:58]Write i2c OK [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: D1 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: D1 01 00 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: D1 01 00 2E 46 00 45 [10:32:58]Write to MH i2c: 01 00 00 2F 46 75 [10:32:58]Write i2c OK [10:32:58]MH_I2C_Read... [10:32:59]OFD Sender: No OFD packet to send [10:32:59]*** Cut start [10:32:59]*** Partial cut [10:32:59]*** CUTSNS_PIN = 1 [10:32:59]*** CUTSNS_PIN = 0 [10:32:59]*** Brake cut motor [10:33:00]Read from MH i2c: 01 [10:33:00]MH_I2C_Read... [10:33:00]*** Stop cut motor [10:33:00]*** Cut end [10:33:00]Read from MH i2c: 01 07 00 [10:33:00]MH_I2C_Read... [10:33:00]Read from MH i2c: 01 07 00 2F 46 00 00 00 00 00 FF 0F 8A [10:33:00]process_action close_receipt done [10:33:00]requested_data is exist [10:33:00]produce_requested_data [10:33:00]requested_item fm.sn is exist - process it [10:33:00]wFMCommunicate request_size=4 [10:33:00]MH_SAM_APDU [10:33:00]CAPDU: 80 11 00 00 [10:33:00]Write to MH i2c: E2 08 00 30 46 80 11 00 00 00 00 00 00 F0 [10:33:00]Write i2c OK [10:33:00]MH_I2C_Read... [10:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:00]Read from MH i2c: E2 [10:33:00]MH_I2C_Read... [10:33:00]Read from MH i2c: E2 17 00 [10:33:00]MH_I2C_Read... [10:33:00]Read from MH i2c: E2 17 00 30 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4B [10:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:33:00]wFMCommunicate OK [10:33:00]requested_item fd.num is exist - process it [10:33:00]SAM_PROTO_GetFieldsCounters [10:33:00]wFMCommunicate request_size=4 [10:33:00]MH_SAM_APDU [10:33:00]CAPDU: 80 13 00 00 [10:33:00]Write to MH i2c: E2 08 00 31 46 80 13 00 00 00 00 00 00 F3 [10:33:00]Write i2c OK [10:33:00]MH_I2C_Read... [10:33:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:00]Read from MH i2c: E2 [10:33:00]MH_I2C_Read... [10:33:00]Read from MH i2c: E2 62 00 [10:33:00]MH_I2C_Read... [10:33:00]Read from MH i2c: E2 62 00 31 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C4 CF 01 00 0E 04 04 00 B2 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 8D [10:33: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C4 CF 01 00 0E 04 04 00 B2 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 [10:33:00]wFMCommunicate OK [10:33:00]SAM_PROTO_GetFieldsCounters done [10:33:00]requested_item shift.num is exist - process it [10:33:00]requested_item shift.opened is exist - process it [10:33:00]req_shift_opened [10:33:00]FM_GetShiftState [10:33:00]SAM_PROTO_GetShiftState [10:33:00]wFMCommunicate request_size=4 [10:33:00]MH_SAM_APDU [10:33:00]CAPDU: 80 13 01 00 [10:33:00]Write to MH i2c: E2 08 00 32 46 80 13 01 00 00 00 00 00 F5 [10:33:00]Write i2c OK [10:33:00]MH_I2C_Read... [10:33:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:00]Read from MH i2c: E2 [10:33:00]MH_I2C_Read... [10:33:00]Read from MH i2c: E2 0E 00 [10:33:00]MH_I2C_Read... [10:33:00]Read from MH i2c: E2 0E 00 32 46 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 23 [10:33:00]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:33:00]wFMCommunicate OK [10:33:00]SAM_PROTO_GetShiftState done [10:33:00]FM_GetShiftState done [10:33:00]req_shift_opened done [10:33:00]requested_item shift.open_date is exist - process it [10:33:00]req_shift_open_date [10:33:00]req_shift_open_date done [10:33:00]produce_requested_data done [10:33:00]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118724,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:33:00]process_action_free close_receipt [10:33:00]json_value_free [10:33:00]json_value_free done [10:33:00]process_json_proto returns [10:33:00]Send response to host [10:33:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118724,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:33:00]free response buf [10:33:00]execute_script done [10:33:00]execute_script returns [10:33:00]free content buf [10:33:00]Sock 7.Close socket [10:33:00]Sock 7.Thread stoped [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:12]accept exits with 9 [10:33:12]New connection [10:33:12]New thread 3067239780 created [10:33:12]Thread 3067383140 joined [10:33:12]Waiting for new connection... [10:33:12] Sock 9.Parse request [10:33:12]Sock 9.Check first char [10:33:12]Sock 9.First char is OK [10:33:12]request: POST /json_proto HTTP/1.0 [10:33:12]Method: POST [10:33:12]URL: /json_proto [10:33:12]Method is POST - this is cgi request [10:33:12]url: /json_proto [10:33:12]query_string will be loaded in cgi processing [10:33:12]execute_cgi json_proto POST (null) [10:33:12]execute_cgi path=json_proto method=POST [10:33:12]POST find Content-Length [10:33:12]Host: 172.17.45.7:8080 [10:33:12]Content-Length: 679 [10:33:12]Content-Type: application/json [10:33:12] [10:33:12]POST finish read [10:33:12]Found Content-Length = 679 [10:33:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:12]execute_script... [10:33: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)949609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:12]POST & json_proto [10:33:12]process_json_proto [10:33:12]json parsed OK: [10:33:12]protocol is kg_v1.0 [10:33:12]action value=close_receipt [10:33:12]process_action close_receipt [10:33:12]cmd_close_receipt [10:33:12]MH_GetDate [10:33:12]Write to MH i2c: F0 00 00 33 46 68 [10:33:12]Write i2c OK [10:33:12]MH_I2C_Read... [10:33:12]Read from MH i2c: F0 [10:33:12]MH_I2C_Read... [10:33:12]Read from MH i2c: F0 09 00 [10:33:12]MH_I2C_Read... [10:33:12]Read from MH i2c: F0 09 00 33 46 00 ED 6F A7 66 90 0F 3E 66 1D [10:33:12]GetLastDocTimeStamp 1722249180 [10:33:12]current date 1722249197 [10:33:12]FM_GetShiftState [10:33:12]SAM_PROTO_GetShiftState [10:33:12]wFMCommunicate request_size=4 [10:33:12]MH_SAM_APDU [10:33:12]CAPDU: 80 13 01 00 [10:33:12]Write to MH i2c: E2 08 00 34 46 80 13 01 00 00 00 00 00 F7 [10:33:12]Write i2c OK [10:33:12]MH_I2C_Read... [10:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:12]Read from MH i2c: E2 [10:33:12]MH_I2C_Read... [10:33:12]Read from MH i2c: E2 0E 00 [10:33:12]MH_I2C_Read... [10:33:12]Read from MH i2c: E2 0E 00 34 46 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 25 [10:33:12]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:33:12]wFMCommunicate OK [10:33:12]SAM_PROTO_GetShiftState done [10:33:12]FM_GetShiftState done [10:33:12]opened in 1722211641 [10:33:12]opened+sec_in_day 1722298041 [10:33:12]quantity*price = 100050 [10:33:12]sum+1 = 100052 [10:33:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 101 29.07.2024 10:33 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118725 ФПД: 95604797326179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103317&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118725&fm=95604797326179&tin=02508201610067®Number=0000000000092660&sum=100000 [10:33:13]StoreToDocumentArchive [10:33:13]shift 434 fd 118725 [10:33:13]save to /storage/0434/doc_00118725 [10:33:13]save last doc name /storage/0434/doc_00118725 to /storage/kkm_last_doc_name [10:33:13]save OK [10:33:13]Clear old archive folders... [10:33:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:33:13]tlvbuf is B6F2A730 [10:33:13]SAM_PROTO_ClearQueue [10:33:13]wFMCommunicate request_size=4 [10:33:13]MH_SAM_APDU [10:33:13]CAPDU: 80 09 00 00 [10:33:13]Write to MH i2c: E2 08 00 41 46 80 09 00 00 00 00 00 00 F9 [10:33:13]Write i2c OK [10:33:13]MH_I2C_Read... [10:33:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:13]Read from MH i2c: E2 [10:33:13]MH_I2C_Read... [10:33:13]Read from MH i2c: E2 03 00 [10:33:13]MH_I2C_Read... [10:33:13]Read from MH i2c: E2 03 00 41 46 00 90 00 FB [10:33:13]RAPDU: 90 00 [10:33:13]wFMCommunicate OK [10:33:13]SAM_PROTO_ClearQueue done [10:33:13]KKMCreateOFDPacket [10:33:13]OFDProtocolAddRootSTLVToBuf [10:33:13]FM_MakeSignedData [10:33:13]FM_MakeSignedData [10:33:13]SAM_PROTO_SignData [10:33:13]wFMCommunicate request_size=4 [10:33:13]MH_SAM_APDU [10:33:13]CAPDU: 80 0D 01 02 [10:33:13]Write to MH i2c: E2 08 00 42 46 80 0D 01 02 00 00 00 00 01 [10:33:13]Write i2c OK [10:33:13]MH_I2C_Read... [10:33:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:13]Read from MH i2c: E2 [10:33:13]MH_I2C_Read... [10:33:13]Read from MH i2c: E2 03 00 [10:33:13]MH_I2C_Read... [10:33:13]Read from MH i2c: E2 03 00 42 46 00 90 00 FC [10:33:13]RAPDU: 90 00 [10:33:13]wFMCommunicate OK [10:33:13]wFMCommunicate request_size=255 [10:33:13]MH_SAM_APDU [10:33:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 ED 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C5 CF 01 00 35 04 06 00 56 F3 B9 FB [10:33:13]Write to MH i2c: E2 02 01 43 46 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 ED 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C5 CF 01 00 35 04 06 00 56 F3 B9 FB 00 00 A4 [10:33:13]Write i2c OK [10:33:13]MH_I2C_Read... [10:33:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:14]Read from MH i2c: E2 [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: E2 03 00 [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: E2 03 00 43 46 00 90 00 FD [10:33:14]RAPDU: 90 00 [10:33:14]wFMCommunicate OK [10:33:14]wFMCommunicate request_size=7 [10:33:14]MH_SAM_APDU [10:33:14]CAPDU: 80 0D 02 02 02 C3 63 [10:33:14]Write to MH i2c: E2 0A 00 44 46 80 0D 02 02 02 00 C3 63 00 00 2E [10:33:14]Write i2c OK [10:33:14]MH_I2C_Read... [10:33:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:14]Read from MH i2c: E2 [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: E2 03 00 [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: E2 03 00 44 46 00 90 00 FE [10:33:14]RAPDU: 90 00 [10:33:14]wFMCommunicate OK [10:33:14]wFMCommunicate request_size=4 [10:33:14]MH_SAM_APDU [10:33:14]CAPDU: 80 0D 03 02 [10:33:14]Write to MH i2c: E2 08 00 45 46 80 0D 03 02 00 00 00 00 06 [10:33:14]Write i2c OK [10:33:14]MH_I2C_Read... [10:33:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:14]Read from MH i2c: E2 [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: E2 0B 00 [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: E2 0B 00 45 46 00 C8 C1 0B 33 2F AD 95 32 90 00 71 [10:33:14]RAPDU: C8 C1 0B 33 2F AD 95 32 90 00 [10:33:14]wFMCommunicate OK [10:33:14]SAM_PROTO_SignData done [10:33:14]FM_MakeSignedData done [10:33:14]CreateOFDProtocolMessage [10:33:14]wFMCommunicate request_size=4 [10:33:14]MH_SAM_APDU [10:33:14]CAPDU: 80 11 00 00 [10:33:14]Write to MH i2c: E2 08 00 46 46 80 11 00 00 00 00 00 00 06 [10:33:14]OFD Sender: No OFD packet to send [10:33:14]Write i2c OK [10:33:14]MH_I2C_Read... [10:33:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:14]Read from MH i2c: E2 [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: E2 17 00 [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: E2 17 00 46 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 61 [10:33:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:33:14]wFMCommunicate OK [10:33:14]CreateOFDProtocolMessage done [10:33:14]OFDSenderStorePacket 118725 [10:33:14]StoreOFDPacket docnum=118725 [10:33:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E9 C9 04 01 87 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 ED 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C5 CF 01 00 35 04 06 00 56 F3 B9 FB C3 63 C8 C1 0B 33 2F AD 95 32 [10:33:14]CheckFolder [10:33:14]dirname=/storage/ofd_packets [10:33:14]CheckFolder done [10:33:14]ProducePacketName [10:33:14]name=ofd_packets/00118725 [10:33:14]NVStorageSaveData ofd_packets/00118725 [10:33:14]File name is /storage/ofd_packets/00118725 [10:33:14]Write 298 bytes [10:33:14]NVStorageSaveData done [10:33:14]OFDSenderStorePacket done [10:33:14]KKMCreateOFDPacket done [10:33:14]NVStorageSaveData kkm_last_timestamp [10:33:14]File name is /storage/kkm_last_timestamp [10:33:14]Write 4 bytes [10:33:14]NVStorageSaveData done [10:33:14]ExternCall_PrintAddStr [10:33:14]wPrintStart [10:33:14]Write to MH i2c: 01 00 00 47 46 8D [10:33:14]Write i2c OK [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: 01 [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: 01 07 00 [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: 01 07 00 47 46 00 00 00 00 00 FF 0F A2 [10:33:14]RasterBufferAndPrint [10:33:14]line Счет N : (1)949609 [10:33:14]line ИНН: 02508201610067 [10:33:14]line Контрольно-Кассовый Чек [10:33:14]line ПРОДАЖА [10:33:14]line ТРК (МРК, ГНК) : 44 [10:33:14]line Товар: 2710194800 [10:33:14]line ДТ-К-5 [10:33:14]line 13.130 * 76.20 [10:33:14]line = 1000.51 [10:33:14]line НДС 12% НСП 1% [10:33:14]line > о реализуемом товаре [10:33:14]line ОКРУГЛЕНИЕ: -0.51 [10:33:14]line ИТОГО: 1000.00 [10:33:14]line Внесено: 1000.00 [10:33:14]line СДАЧА: 0.00 [10:33:14]line НСП 1% : 8.85 [10:33:14]line НДС 12% : 106.25 [10:33:14]line Наличными: 1000.00 [10:33:14]line Безнал.: 0.00 [10:33:14]line Место: АЗС № 134 "Партнер Нефть" [10:33:14]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:33:14]line СНО: Общий режим [10:33:14]line Чек 101 29.07.2024 10:33 [10:33:14]line Смена: 434 ФФД: 1.0 [10:33:14]line ЗНМ: 0300000044 [10:33:14]line РНМ: 0000000000092660 [10:33:14]line Версия ККМ: 001 [10:33:14]line ФМ: 0000000000874939 [10:33:14]line ФД: 118725 [10:33:14]line ФПД: 95604797326179 [10:33:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103317&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118725&fm=95604797326179&tin=02508201610067®Number=0000000000092660&sum=100000 [10:33:14]written 0, free lines is 4095 [10:33:14]OFD Sender: Processing packet 118725 [packets to send 86, broken 85] [10:33:14]ProducePacketName [10:33:14]name=ofd_packets/00118725 [10:33:14]OFD Sender: To server: pG, [10:33:14]CommunicateWithHost lk.salyk.kg:30040 [10:33:14]ConnectInit lk.salyk.kg [10:33:14]Connected sock=10 [10:33:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E9 C9 04 01 87 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 ED 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C5 CF 01 00 35 04 06 00 56 F3 B9 FB C3 63 C8 C1 0B 33 2F AD 95 32 [10:33:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F4 E8 47 00 F6 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C5 CF 01 00 F4 03 04 00 7B 1D A7 66 B6 04 01 00 00 EC F4 0E D1 34 33 0A 7A [10:33:14]CommunicateWithHost err = 0 [10:33:14]CheckOFDResponse [10:33:14]1017 (14) - 77093643461234 [10:33:14]1041 (16) - 0000000000874939 [10:33:14]1040 (4) - 118725 [10:33:14]1012 (4) - 29.07.2024 04:41 [10:33:14]1206 (1) - 0 [10:33:14]OFD Sender: Remove packet 118725 [10:33:14]ProducePacketName [10:33:14]name=ofd_packets/00118725 [10:33:14]NVStorageDeleteData [10:33:14]Write to MH i2c: 01 00 00 71 46 B7 [10:33:14]Write i2c OK [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: 01 [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: 01 07 00 [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: 01 07 00 71 46 00 00 00 00 00 E1 0C AB [10:33:14]RasterBufferAndPrint [10:33:14]line [10:33:14]line [10:33:14]line [10:33:14]line [10:33:14]line [10:33:14]written 0, free lines is 3305 [10:33:14]MH_Cut [10:33:14]Write to MH i2c: D1 01 00 78 46 01 90 [10:33:14]Write i2c OK [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: D1 [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: D1 01 00 [10:33:14]MH_I2C_Read... [10:33:14]Read from MH i2c: D1 01 00 78 46 00 8F [10:33:14]Write to MH i2c: 01 00 00 79 46 BF [10:33:14]Write i2c OK [10:33:14]MH_I2C_Read... [10:33:15]OFD Sender: No OFD packet to send [10:33:15]*** Cut start [10:33:15]*** Partial cut [10:33:15]*** CUTSNS_PIN = 1 [10:33:15]*** CUTSNS_PIN = 0 [10:33:15]*** Brake cut motor [10:33:15]Read from MH i2c: 01 [10:33:15]MH_I2C_Read... [10:33:15]*** Stop cut motor [10:33:15]*** Cut end [10:33:15]Read from MH i2c: 01 07 00 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: 01 07 00 79 46 00 00 00 00 00 FF 0F D4 [10:33:15]process_action close_receipt done [10:33:15]requested_data is exist [10:33:15]produce_requested_data [10:33:15]requested_item fm.sn is exist - process it [10:33:15]wFMCommunicate request_size=4 [10:33:15]MH_SAM_APDU [10:33:15]CAPDU: 80 11 00 00 [10:33:15]Write to MH i2c: E2 08 00 7A 46 80 11 00 00 00 00 00 00 3A [10:33:15]Write i2c OK [10:33:15]MH_I2C_Read... [10:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:16]Read from MH i2c: E2 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: E2 17 00 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: E2 17 00 7A 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 95 [10:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:33:16]wFMCommunicate OK [10:33:16]requested_item fd.num is exist - process it [10:33:16]SAM_PROTO_GetFieldsCounters [10:33:16]wFMCommunicate request_size=4 [10:33:16]MH_SAM_APDU [10:33:16]CAPDU: 80 13 00 00 [10:33:16]Write to MH i2c: E2 08 00 7B 46 80 13 00 00 00 00 00 00 3D [10:33:16]Write i2c OK [10:33:16]MH_I2C_Read... [10:33:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:16]Read from MH i2c: E2 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: E2 62 00 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: E2 62 00 7B 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C5 CF 01 00 0E 04 04 00 B2 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 DB [10:33: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C5 CF 01 00 0E 04 04 00 B2 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 [10:33:16]wFMCommunicate OK [10:33:16]SAM_PROTO_GetFieldsCounters done [10:33:16]requested_item shift.num is exist - process it [10:33:16]requested_item shift.opened is exist - process it [10:33:16]req_shift_opened [10:33:16]FM_GetShiftState [10:33:16]SAM_PROTO_GetShiftState [10:33:16]wFMCommunicate request_size=4 [10:33:16]MH_SAM_APDU [10:33:16]CAPDU: 80 13 01 00 [10:33:16]Write to MH i2c: E2 08 00 7C 46 80 13 01 00 00 00 00 00 3F [10:33:16]Write i2c OK [10:33:16]MH_I2C_Read... [10:33:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:16]Read from MH i2c: E2 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: E2 0E 00 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: E2 0E 00 7C 46 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 6D [10:33:16]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:33:16]wFMCommunicate OK [10:33:16]SAM_PROTO_GetShiftState done [10:33:16]FM_GetShiftState done [10:33:16]req_shift_opened done [10:33:16]requested_item shift.open_date is exist - process it [10:33:16]req_shift_open_date [10:33:16]req_shift_open_date done [10:33:16]produce_requested_data done [10:33:16]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118725,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:33:16]process_action_free close_receipt [10:33:16]json_value_free [10:33:16]json_value_free done [10:33:16]process_json_proto returns [10:33:16]Send response to host [10:33:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118725,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:33:16]free response buf [10:33:16]execute_script done [10:33:16]execute_script returns [10:33:16]free content buf [10:33:16]Sock 9.Close socket [10:33:16]Sock 9.Thread stoped [10:33:20]OFD Sender: No OFD packet to send [10:33:25]OFD Sender: No OFD packet to send [10:33:30]OFD Sender: No OFD packet to send [10:33:35]OFD Sender: No OFD packet to send [10:33:40]OFD Sender: No OFD packet to send [10:33:45]OFD Sender: No OFD packet to send [10:33:50]OFD Sender: No OFD packet to send [10:33:55]OFD Sender: No OFD packet to send [10:34:00]OFD Sender: No OFD packet to send [10:34:05]OFD Sender: No OFD packet to send [10:34:10]OFD Sender: No OFD packet to send [10:34:15]OFD Sender: No OFD packet to send [10:34:20]OFD Sender: No OFD packet to send [10:34:25]OFD Sender: No OFD packet to send [10:34:30]OFD Sender: No OFD packet to send [10:34:35]OFD Sender: No OFD packet to send [10:34:40]OFD Sender: No OFD packet to send [10:34:45]OFD Sender: No OFD packet to send [10:34:50]OFD Sender: No OFD packet to send [10:34:55]OFD Sender: No OFD packet to send [10:35:00]OFD Sender: No OFD packet to send [10:35:05]OFD Sender: No OFD packet to send [10:35:10]OFD Sender: No OFD packet to send [10:35:15]OFD Sender: No OFD packet to send [10:35:20]OFD Sender: No OFD packet to send [10:35:25]OFD Sender: No OFD packet to send [10:35:30]OFD Sender: No OFD packet to send [10:35:35]OFD Sender: No OFD packet to send [10:35:40]OFD Sender: No OFD packet to send [10:35:45]OFD Sender: No OFD packet to send [10:35:50]OFD Sender: No OFD packet to send [10:35:55]OFD Sender: No OFD packet to send [10:36:00]OFD Sender: No OFD packet to send [10:36:05]OFD Sender: No OFD packet to send [10:36:10]OFD Sender: No OFD packet to send [10:36:15]OFD Sender: No OFD packet to send [10:36:20]OFD Sender: No OFD packet to send [10:36:22]accept exits with 7 [10:36:22]New connection [10:36:22]New thread 3067383140 created [10:36:22]Thread 3067239780 joined [10:36:22]Waiting for new connection... [10:36:22] Sock 7.Parse request [10:36:22]Sock 7.Check first char [10:36:22]Sock 7.First char is OK [10:36:22]request: POST /json_proto HTTP/1.0 [10:36:22]Method: POST [10:36:22]URL: /json_proto [10:36:22]Method is POST - this is cgi request [10:36:22]url: /json_proto [10:36:22]query_string will be loaded in cgi processing [10:36:22]execute_cgi json_proto POST (null) [10:36:22]execute_cgi path=json_proto method=POST [10:36:22]POST find Content-Length [10:36:22]Host: 172.17.45.7:8080 [10:36:22]Content-Length: 819 [10:36:22]Content-Type: application/json [10:36:22] [10:36:22]POST finish read [10:36:22]Found Content-Length = 819 [10:36:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:22]execute_script... [10:36: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)949610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:22]POST & json_proto [10:36:22]process_json_proto [10:36:22]json parsed OK: [10:36:22]protocol is kg_v1.0 [10:36:22]action value=close_receipt [10:36:22]process_action close_receipt [10:36:22]cmd_close_receipt [10:36:22]MH_GetDate [10:36:22]Write to MH i2c: F0 00 00 7D 46 B2 [10:36:22]Write i2c OK [10:36:22]MH_I2C_Read... [10:36:22]Read from MH i2c: F0 [10:36:22]MH_I2C_Read... [10:36:22]Read from MH i2c: F0 09 00 [10:36:22]MH_I2C_Read... [10:36:22]Read from MH i2c: F0 09 00 7D 46 00 AB 70 A7 66 90 0F 3E 66 26 [10:36:22]GetLastDocTimeStamp 1722249197 [10:36:22]current date 1722249387 [10:36:22]FM_GetShiftState [10:36:22]SAM_PROTO_GetShiftState [10:36:22]wFMCommunicate request_size=4 [10:36:22]MH_SAM_APDU [10:36:22]CAPDU: 80 13 01 00 [10:36:22]Write to MH i2c: E2 08 00 7E 46 80 13 01 00 00 00 00 00 41 [10:36:22]Write i2c OK [10:36:22]MH_I2C_Read... [10:36:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:22]Read from MH i2c: E2 [10:36:22]MH_I2C_Read... [10:36:22]Read from MH i2c: E2 0E 00 [10:36:22]MH_I2C_Read... [10:36:22]Read from MH i2c: E2 0E 00 7E 46 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 6F [10:36:22]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:36:22]wFMCommunicate OK [10:36:22]SAM_PROTO_GetShiftState done [10:36:22]FM_GetShiftState done [10:36:22]opened in 1722211641 [10:36:22]opened+sec_in_day 1722298041 [10:36:22]quantity*price = 200025 [10:36:22]sum+1 = 200026 [10:36:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 102 29.07.2024 10:36 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118726 ФПД: 107560611825079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103627&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118726&fm=107560611825079&tin=02508201610067®Number=0000000000092660&sum=200000 [10:36:23]StoreToDocumentArchive [10:36:23]shift 434 fd 118726 [10:36:23]save to /storage/0434/doc_00118726 [10:36:23]save last doc name /storage/0434/doc_00118726 to /storage/kkm_last_doc_name [10:36:23]save OK [10:36:23]Clear old archive folders... [10:36:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:36:23]tlvbuf is 01FB8650 [10:36:23]SAM_PROTO_ClearQueue [10:36:23]wFMCommunicate request_size=4 [10:36:23]MH_SAM_APDU [10:36:23]CAPDU: 80 09 00 00 [10:36:23]Write to MH i2c: E2 08 00 8B 46 80 09 00 00 00 00 00 00 43 [10:36:23]Write i2c OK [10:36:23]MH_I2C_Read... [10:36:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:23]Read from MH i2c: E2 [10:36:23]MH_I2C_Read... [10:36:23]Read from MH i2c: E2 03 00 [10:36:23]MH_I2C_Read... [10:36:23]Read from MH i2c: E2 03 00 8B 46 00 90 00 45 [10:36:23]RAPDU: 90 00 [10:36:23]wFMCommunicate OK [10:36:23]SAM_PROTO_ClearQueue done [10:36:23]KKMCreateOFDPacket [10:36:23]OFDProtocolAddRootSTLVToBuf [10:36:23]FM_MakeSignedData [10:36:23]FM_MakeSignedData [10:36:23]SAM_PROTO_SignData [10:36:23]wFMCommunicate request_size=4 [10:36:23]MH_SAM_APDU [10:36:23]CAPDU: 80 0D 01 02 [10:36:23]Write to MH i2c: E2 08 00 8C 46 80 0D 01 02 00 00 00 00 4B [10:36:23]Write i2c OK [10:36:23]MH_I2C_Read... [10:36:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:23]Read from MH i2c: E2 [10:36:23]MH_I2C_Read... [10:36:23]Read from MH i2c: E2 03 00 [10:36:23]MH_I2C_Read... [10:36:23]Read from MH i2c: E2 03 00 8C 46 00 90 00 46 [10:36:23]RAPDU: 90 00 [10:36:23]wFMCommunicate OK [10:36:23]wFMCommunicate request_size=255 [10:36:23]MH_SAM_APDU [10:36:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 AB 70 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C6 CF 01 00 35 04 06 00 61 D3 68 0F [10:36:23]Write to MH i2c: E2 02 01 8D 46 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 AB 70 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C6 CF 01 00 35 04 06 00 61 D3 68 0F 00 00 4B [10:36:23]Write i2c OK [10:36:23]MH_I2C_Read... [10:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:24]Read from MH i2c: E2 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: E2 03 00 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: E2 03 00 8D 46 00 90 00 47 [10:36:24]RAPDU: 90 00 [10:36:24]wFMCommunicate OK [10:36:24]wFMCommunicate request_size=7 [10:36:24]MH_SAM_APDU [10:36:24]CAPDU: 80 0D 02 02 02 45 B7 [10:36:24]Write to MH i2c: E2 0A 00 8E 46 80 0D 02 02 02 00 45 B7 00 00 4E [10:36:24]Write i2c OK [10:36:24]MH_I2C_Read... [10:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:24]Read from MH i2c: E2 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: E2 03 00 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: E2 03 00 8E 46 00 90 00 48 [10:36:24]RAPDU: 90 00 [10:36:24]wFMCommunicate OK [10:36:24]wFMCommunicate request_size=4 [10:36:24]MH_SAM_APDU [10:36:24]CAPDU: 80 0D 03 02 [10:36:24]Write to MH i2c: E2 08 00 8F 46 80 0D 03 02 00 00 00 00 50 [10:36:24]Write i2c OK [10:36:24]MH_I2C_Read... [10:36:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:24]Read from MH i2c: E2 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: E2 0B 00 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: E2 0B 00 8F 46 00 8D 99 E9 94 E1 A8 7B D2 90 00 CA [10:36:24]RAPDU: 8D 99 E9 94 E1 A8 7B D2 90 00 [10:36:24]wFMCommunicate OK [10:36:24]SAM_PROTO_SignData done [10:36:24]FM_MakeSignedData done [10:36:24]CreateOFDProtocolMessage [10:36:24]wFMCommunicate request_size=4 [10:36:24]MH_SAM_APDU [10:36:24]CAPDU: 80 11 00 00 [10:36:24]Write to MH i2c: E2 08 00 90 46 80 11 00 00 00 00 00 00 50 [10:36:24]Write i2c OK [10:36:24]MH_I2C_Read... [10:36:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:24]Read from MH i2c: E2 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: E2 17 00 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: E2 17 00 90 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AB [10:36:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:36:24]wFMCommunicate OK [10:36:24]CreateOFDProtocolMessage done [10:36:24]OFDSenderStorePacket 118726 [10:36:24]StoreOFDPacket docnum=118726 [10:36:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 72 CE 04 01 1D 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 AB 70 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C6 CF 01 00 35 04 06 00 61 D3 68 0F 45 B7 8D 99 E9 94 E1 A8 7B D2 [10:36:24]CheckFolder [10:36:24]dirname=/storage/ofd_packets [10:36:24]CheckFolder done [10:36:24]ProducePacketName [10:36:24]name=ofd_packets/00118726 [10:36:24]NVStorageSaveData ofd_packets/00118726 [10:36:24]File name is /storage/ofd_packets/00118726 [10:36:24]Write 298 bytes [10:36:24]NVStorageSaveData done [10:36:24]OFDSenderStorePacket done [10:36:24]KKMCreateOFDPacket done [10:36:24]NVStorageSaveData kkm_last_timestamp [10:36:24]File name is /storage/kkm_last_timestamp [10:36:24]Write 4 bytes [10:36:24]NVStorageSaveData done [10:36:24]ExternCall_PrintAddStr [10:36:24]wPrintStart [10:36:24]Write to MH i2c: 01 00 00 91 46 D7 [10:36:24]Write i2c OK [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: 01 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: 01 07 00 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: 01 07 00 91 46 00 00 00 00 00 FF 0F EC [10:36:24]RasterBufferAndPrint [10:36:24]line Счет N : (1)949610 [10:36:24]line ИНН: 02508201610067 [10:36:24]line Контрольно-Кассовый Чек [10:36:24]line ПРОДАЖА [10:36:24]line ТРК (МРК, ГНК) : 44 [10:36:24]line Товар: 2710194800 [10:36:24]line ДТ-К-5 [10:36:24]line 26.250 * 76.20 [10:36:24]line = 2000.25 [10:36:24]line НДС 12% НСП 1% [10:36:24]line > о реализуемом товаре [10:36:24]line ОКРУГЛЕНИЕ: -0.25 [10:36:24]line ИТОГО: 2000.00 [10:36:24]line НСП 1% : 17.70 [10:36:24]line НДС 12% : 212.42 [10:36:24]line Наличными: 0.00 [10:36:24]line Безнал.: 2000.00 [10:36:24]line Место: АЗС № 134 "Партнер Нефть" [10:36:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:36:24]line СНО: Общий режим [10:36:24]line Чек 102 29.07.2024 10:36 [10:36:24]line Смена: 434 ФФД: 1.0 [10:36:24]line ЗНМ: 0300000044 [10:36:24]line РНМ: 0000000000092660 [10:36:24]line Версия ККМ: 001 [10:36:24]line Платежная система: O! деньги [10:36:24]line ФМ: 0000000000874939 [10:36:24]line ФД: 118726 [10:36:24]line ФПД: 107560611825079 [10:36:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103627&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118726&fm=107560611825079&tin=02508201610067®Number=0000000000092660&sum=200000 [10:36:24]OFD Sender: Processing packet 118726 [packets to send 86, broken 85] [10:36:24]ProducePacketName [10:36:24]name=ofd_packets/00118726 [10:36:24]OFD Sender: To server: pG, [10:36:24]CommunicateWithHost lk.salyk.kg:30040 [10:36:24]ConnectInit lk.salyk.kg [10:36:24]written 0, free lines is 4095 [10:36:24]Connected sock=11 [10:36:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 72 CE 04 01 1D 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 AB 70 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C6 CF 01 00 35 04 06 00 61 D3 68 0F 45 B7 8D 99 E9 94 E1 A8 7B D2 [10:36:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A6 89 47 00 1F 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C6 CF 01 00 F4 03 04 00 39 1E A7 66 B6 04 01 00 00 73 F1 40 E3 6D D8 6A E3 [10:36:24]CommunicateWithHost err = 0 [10:36:24]CheckOFDResponse [10:36:24]1017 (14) - 77093643461234 [10:36:24]1041 (16) - 0000000000874939 [10:36:24]1040 (4) - 118726 [10:36:24]1012 (4) - 29.07.2024 04:44 [10:36:24]1206 (1) - 0 [10:36:24]OFD Sender: Remove packet 118726 [10:36:24]ProducePacketName [10:36:24]name=ofd_packets/00118726 [10:36:24]NVStorageDeleteData [10:36:25]Write to MH i2c: 01 00 00 BB 46 01 [10:36:25]Write i2c OK [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: 01 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: 01 07 00 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: 01 07 00 BB 46 00 00 00 00 00 DC 0C F0 [10:36:25]RasterBufferAndPrint [10:36:25]line [10:36:25]line [10:36:25]line [10:36:25]line [10:36:25]line [10:36:25]written 0, free lines is 3298 [10:36:25]MH_Cut [10:36:25]Write to MH i2c: D1 01 00 C2 46 01 DA [10:36:25]Write i2c OK [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: D1 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: D1 01 00 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: D1 01 00 C2 46 00 D9 [10:36:25]Write to MH i2c: 01 00 00 C3 46 09 [10:36:25]Write i2c OK [10:36:25]MH_I2C_Read... [10:36:25]OFD Sender: No OFD packet to send [10:36:25]*** Cut start [10:36:25]*** Partial cut [10:36:25]*** CUTSNS_PIN = 1 [10:36:25]*** CUTSNS_PIN = 0 [10:36:26]*** Brake cut motor [10:36:26]Read from MH i2c: 01 [10:36:26]MH_I2C_Read... [10:36:26]*** Stop cut motor [10:36:26]*** Cut end [10:36:26]Read from MH i2c: 01 07 00 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: 01 07 00 C3 46 00 00 00 00 00 FF 0F 1E [10:36:26]process_action close_receipt done [10:36:26]requested_data is exist [10:36:26]produce_requested_data [10:36:26]requested_item fm.sn is exist - process it [10:36:26]wFMCommunicate request_size=4 [10:36:26]MH_SAM_APDU [10:36:26]CAPDU: 80 11 00 00 [10:36:26]Write to MH i2c: E2 08 00 C4 46 80 11 00 00 00 00 00 00 84 [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:26]Read from MH i2c: E2 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 17 00 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 17 00 C4 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DF [10:36:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:36:26]wFMCommunicate OK [10:36:26]requested_item fd.num is exist - process it [10:36:26]SAM_PROTO_GetFieldsCounters [10:36:26]wFMCommunicate request_size=4 [10:36:26]MH_SAM_APDU [10:36:26]CAPDU: 80 13 00 00 [10:36:26]Write to MH i2c: E2 08 00 C5 46 80 13 00 00 00 00 00 00 87 [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:26]Read from MH i2c: E2 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 62 00 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 62 00 C5 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C6 CF 01 00 0E 04 04 00 B2 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 29 [10:36: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C6 CF 01 00 0E 04 04 00 B2 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 [10:36:26]wFMCommunicate OK [10:36:26]SAM_PROTO_GetFieldsCounters done [10:36:26]requested_item shift.num is exist - process it [10:36:26]requested_item shift.opened is exist - process it [10:36:26]req_shift_opened [10:36:26]FM_GetShiftState [10:36:26]SAM_PROTO_GetShiftState [10:36:26]wFMCommunicate request_size=4 [10:36:26]MH_SAM_APDU [10:36:26]CAPDU: 80 13 01 00 [10:36:26]Write to MH i2c: E2 08 00 C6 46 80 13 01 00 00 00 00 00 89 [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:26]Read from MH i2c: E2 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 0E 00 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: E2 0E 00 C6 46 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B7 [10:36:26]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:36:26]wFMCommunicate OK [10:36:26]SAM_PROTO_GetShiftState done [10:36:26]FM_GetShiftState done [10:36:26]req_shift_opened done [10:36:26]requested_item shift.open_date is exist - process it [10:36:26]req_shift_open_date [10:36:26]req_shift_open_date done [10:36:26]produce_requested_data done [10:36:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118726,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:36:26]process_action_free close_receipt [10:36:26]json_value_free [10:36:26]json_value_free done [10:36:26]process_json_proto returns [10:36:26]Send response to host [10:36:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118726,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:36:26]free response buf [10:36:26]execute_script done [10:36:26]execute_script returns [10:36:26]free content buf [10:36:26]Sock 7.Close socket [10:36:26]Sock 7.Thread stoped [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:31]accept exits with 9 [10:38:31]New connection [10:38:31]New thread 3067239780 created [10:38:31]Thread 3067383140 joined [10:38:31]Waiting for new connection... [10:38:31] Sock 9.Parse request [10:38:31]Sock 9.Check first char [10:38:31]Sock 9.First char is OK [10:38:31]request: POST /json_proto HTTP/1.0 [10:38:31]Method: POST [10:38:31]URL: /json_proto [10:38:31]Method is POST - this is cgi request [10:38:31]url: /json_proto [10:38:31]query_string will be loaded in cgi processing [10:38:31]execute_cgi json_proto POST (null) [10:38:31]execute_cgi path=json_proto method=POST [10:38:31]POST find Content-Length [10:38:31]Host: 172.17.45.7:8080 [10:38:31]Content-Length: 835 [10:38:31]Content-Type: application/json [10:38:31] [10:38:31]POST finish read [10:38:31]Found Content-Length = 835 [10:38:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 13.240, "sum" : 1000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:31]execute_script... [10:38:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 13.240, "sum" : 1000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:31]POST & json_proto [10:38:31]process_json_proto [10:38:31]json parsed OK: [10:38:31]protocol is kg_v1.0 [10:38:31]action value=close_receipt [10:38:31]process_action close_receipt [10:38:31]cmd_close_receipt [10:38:31]MH_GetDate [10:38:31]Write to MH i2c: F0 00 00 C7 46 FC [10:38:31]Write i2c OK [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: F0 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: F0 09 00 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: F0 09 00 C7 46 00 2C 71 A7 66 90 0F 3E 66 F2 [10:38:31]GetLastDocTimeStamp 1722249387 [10:38:31]current date 1722249516 [10:38:31]FM_GetShiftState [10:38:31]SAM_PROTO_GetShiftState [10:38:31]wFMCommunicate request_size=4 [10:38:31]MH_SAM_APDU [10:38:31]CAPDU: 80 13 01 00 [10:38:31]Write to MH i2c: E2 08 00 C8 46 80 13 01 00 00 00 00 00 8B [10:38:31]Write i2c OK [10:38:31]MH_I2C_Read... [10:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:31]Read from MH i2c: E2 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 0E 00 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 0E 00 C8 46 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B9 [10:38:31]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:38:31]wFMCommunicate OK [10:38:31]SAM_PROTO_GetShiftState done [10:38:31]FM_GetShiftState done [10:38:31]opened in 1722211641 [10:38:31]opened+sec_in_day 1722298041 [10:38:31]quantity*price = 100001 [10:38:31]sum+1 = 100003 [10:38:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 103 29.07.2024 10:38 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 118727 ФПД: 75478518961539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103836&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118727&fm=75478518961539&tin=02508201610067®Number=0000000000092660&sum=100000 [10:38:32]StoreToDocumentArchive [10:38:32]shift 434 fd 118727 [10:38:32]save to /storage/0434/doc_00118727 [10:38:32]save last doc name /storage/0434/doc_00118727 to /storage/kkm_last_doc_name [10:38:32]save OK [10:38:32]Clear old archive folders... [10:38:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:38:32]tlvbuf is B6FBE010 [10:38:32]SAM_PROTO_ClearQueue [10:38:32]wFMCommunicate request_size=4 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 09 00 00 [10:38:32]Write to MH i2c: E2 08 00 D5 46 80 09 00 00 00 00 00 00 8D [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 D5 46 00 90 00 8F [10:38:32]RAPDU: 90 00 [10:38:32]wFMCommunicate OK [10:38:32]SAM_PROTO_ClearQueue done [10:38:32]KKMCreateOFDPacket [10:38:32]OFDProtocolAddRootSTLVToBuf [10:38:32]FM_MakeSignedData [10:38:32]FM_MakeSignedData [10:38:32]SAM_PROTO_SignData [10:38:32]wFMCommunicate request_size=4 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 0D 01 02 [10:38:32]Write to MH i2c: E2 08 00 D6 46 80 0D 01 02 00 00 00 00 95 [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 D6 46 00 90 00 90 [10:38:32]RAPDU: 90 00 [10:38:32]wFMCommunicate OK [10:38:32]wFMCommunicate request_size=255 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B8 33 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 A2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 2C 71 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C7 CF 01 00 35 04 06 00 44 A5 B6 4F [10:38:32]Write to MH i2c: E2 02 01 D7 46 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B8 33 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 A2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 2C 71 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C7 CF 01 00 35 04 06 00 44 A5 B6 4F 00 00 63 [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 D7 46 00 90 00 91 [10:38:32]RAPDU: 90 00 [10:38:32]wFMCommunicate OK [10:38:32]wFMCommunicate request_size=7 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 0D 02 02 02 95 83 [10:38:32]Write to MH i2c: E2 0A 00 D8 46 80 0D 02 02 02 00 95 83 00 00 B4 [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 D8 46 00 90 00 92 [10:38:32]RAPDU: 90 00 [10:38:32]wFMCommunicate OK [10:38:32]wFMCommunicate request_size=4 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 0D 03 02 [10:38:32]Write to MH i2c: E2 08 00 D9 46 80 0D 03 02 00 00 00 00 9A [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 0B 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 0B 00 D9 46 00 33 77 55 D7 79 8A 0E EA 90 00 6C [10:38:32]RAPDU: 33 77 55 D7 79 8A 0E EA 90 00 [10:38:32]wFMCommunicate OK [10:38:32]SAM_PROTO_SignData done [10:38:32]FM_MakeSignedData done [10:38:32]CreateOFDProtocolMessage [10:38:32]wFMCommunicate request_size=4 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 11 00 00 [10:38:32]Write to MH i2c: E2 08 00 DA 46 80 11 00 00 00 00 00 00 9A [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:33]Read from MH i2c: E2 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: E2 17 00 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: E2 17 00 DA 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F5 [10:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:38:33]wFMCommunicate OK [10:38:33]CreateOFDProtocolMessage done [10:38:33]OFDSenderStorePacket 118727 [10:38:33]StoreOFDPacket docnum=118727 [10:38:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2B D6 04 01 C1 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B8 33 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 A2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 2C 71 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C7 CF 01 00 35 04 06 00 44 A5 B6 4F 95 83 33 77 55 D7 79 8A 0E EA [10:38:33]CheckFolder [10:38:33]dirname=/storage/ofd_packets [10:38:33]CheckFolder done [10:38:33]ProducePacketName [10:38:33]name=ofd_packets/00118727 [10:38:33]NVStorageSaveData ofd_packets/00118727 [10:38:33]File name is /storage/ofd_packets/00118727 [10:38:33]Write 298 bytes [10:38:33]NVStorageSaveData done [10:38:33]OFDSenderStorePacket done [10:38:33]KKMCreateOFDPacket done [10:38:33]NVStorageSaveData kkm_last_timestamp [10:38:33]File name is /storage/kkm_last_timestamp [10:38:33]Write 4 bytes [10:38:33]NVStorageSaveData done [10:38:33]ExternCall_PrintAddStr [10:38:33]wPrintStart [10:38:33]Write to MH i2c: 01 00 00 DB 46 21 [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: 01 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: 01 07 00 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: 01 07 00 DB 46 00 00 00 00 00 FF 0F 36 [10:38:33]RasterBufferAndPrint [10:38:33]line Счет N : (1)949611 [10:38:33]line ИНН: 02508201610067 [10:38:33]line Контрольно-Кассовый Чек [10:38:33]line ПРОДАЖА [10:38:33]line ТРК (МРК, ГНК) : 54 [10:38:33]line Товар: 2710194800 [10:38:33]line ДТ-К-5 [10:38:33]line 13.240 * 75.53 [10:38:33]line = 1000.02 [10:38:33]line НДС 12% НСП 1% [10:38:33]line > о реализуемом товаре [10:38:33]line ОКРУГЛЕНИЕ: -0.02 [10:38:33]line ИТОГО: 1000.00 [10:38:33]line НСП 1% : 8.85 [10:38:33]line НДС 12% : 106.20 [10:38:33]line Наличными: 0.00 [10:38:33]line Безнал.: 1000.00 [10:38:33]line Место: АЗС № 134 "Партнер Нефть" [10:38:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:38:33]line СНО: Общий режим [10:38:33]line Чек 103 29.07.2024 10:38 [10:38:33]line Смена: 434 ФФД: 1.0 [10:38:33]line ЗНМ: 0300000044 [10:38:33]line РНМ: 0000000000092660 [10:38:33]line Версия ККМ: 001 [10:38:33]line Платежная система: Бакай Банк [10:38:33]line ФМ: 0000000000874939 [10:38:33]line ФД: 118727 [10:38:33]line ФПД: 75478518961539 [10:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103836&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118727&fm=75478518961539&tin=02508201610067®Number=0000000000092660&sum=100000 [10:38:33]OFD Sender: Processing packet 118727 [packets to send 86, broken 85] [10:38:33]ProducePacketName [10:38:33]name=ofd_packets/00118727 [10:38:33]OFD Sender: To server: pG, [10:38:33]CommunicateWithHost lk.salyk.kg:30040 [10:38:33]ConnectInit lk.salyk.kg [10:38:33]written 0, free lines is 4095 [10:38:33]Connected sock=7 [10:38:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2B D6 04 01 C1 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B8 33 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 A2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 2C 71 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C7 CF 01 00 35 04 06 00 44 A5 B6 4F 95 83 33 77 55 D7 79 8A 0E EA [10:38:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 16 3C 47 00 38 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C7 CF 01 00 F4 03 04 00 BA 1E A7 66 B6 04 01 00 00 D5 12 7F 86 00 03 2A 0A [10:38:33]CommunicateWithHost err = 0 [10:38:33]CheckOFDResponse [10:38:33]1017 (14) - 77093643461234 [10:38:33]1041 (16) - 0000000000874939 [10:38:33]1040 (4) - 118727 [10:38:33]1012 (4) - 29.07.2024 04:46 [10:38:33]1206 (1) - 0 [10:38:33]OFD Sender: Remove packet 118727 [10:38:33]ProducePacketName [10:38:33]name=ofd_packets/00118727 [10:38:33]NVStorageDeleteData [10:38:33]Write to MH i2c: 01 00 00 05 47 4C [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: 01 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: 01 07 00 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: 01 07 00 05 47 00 00 00 00 00 02 0D 62 [10:38:33]RasterBufferAndPrint [10:38:33]line [10:38:33]line [10:38:33]line [10:38:33]line [10:38:33]line [10:38:33]written 0, free lines is 3337 [10:38:33]MH_Cut [10:38:33]Write to MH i2c: D1 01 00 0C 47 01 25 [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: D1 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: D1 01 00 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: D1 01 00 0C 47 00 24 [10:38:33]Write to MH i2c: 01 00 00 0D 47 54 [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:34]OFD Sender: No OFD packet to send [10:38:34]*** Cut start [10:38:34]*** Partial cut [10:38:34]*** CUTSNS_PIN = 1 [10:38:34]*** CUTSNS_PIN = 0 [10:38:34]*** Brake cut motor [10:38:35]Read from MH i2c: 01 [10:38:35]MH_I2C_Read... [10:38:35]*** Stop cut motor [10:38:35]*** Cut end [10:38:35]Read from MH i2c: 01 07 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: 01 07 00 0D 47 00 00 00 00 00 FF 0F 69 [10:38:35]process_action close_receipt done [10:38:35]requested_data is exist [10:38:35]produce_requested_data [10:38:35]requested_item fm.sn is exist - process it [10:38:35]wFMCommunicate request_size=4 [10:38:35]MH_SAM_APDU [10:38:35]CAPDU: 80 11 00 00 [10:38:35]Write to MH i2c: E2 08 00 0E 47 80 11 00 00 00 00 00 00 CF [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:35]Read from MH i2c: E2 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 17 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 17 00 0E 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2A [10:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:38:35]wFMCommunicate OK [10:38:35]requested_item fd.num is exist - process it [10:38:35]SAM_PROTO_GetFieldsCounters [10:38:35]wFMCommunicate request_size=4 [10:38:35]MH_SAM_APDU [10:38:35]CAPDU: 80 13 00 00 [10:38:35]Write to MH i2c: E2 08 00 0F 47 80 13 00 00 00 00 00 00 D2 [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:35]Read from MH i2c: E2 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 62 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 62 00 0F 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C7 CF 01 00 0E 04 04 00 B2 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 78 [10:38:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C7 CF 01 00 0E 04 04 00 B2 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 [10:38:35]wFMCommunicate OK [10:38:35]SAM_PROTO_GetFieldsCounters done [10:38:35]requested_item shift.num is exist - process it [10:38:35]requested_item shift.opened is exist - process it [10:38:35]req_shift_opened [10:38:35]FM_GetShiftState [10:38:35]SAM_PROTO_GetShiftState [10:38:35]wFMCommunicate request_size=4 [10:38:35]MH_SAM_APDU [10:38:35]CAPDU: 80 13 01 00 [10:38:35]Write to MH i2c: E2 08 00 10 47 80 13 01 00 00 00 00 00 D4 [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:35]Read from MH i2c: E2 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 0E 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 0E 00 10 47 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 02 [10:38:35]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:38:35]wFMCommunicate OK [10:38:35]SAM_PROTO_GetShiftState done [10:38:35]FM_GetShiftState done [10:38:35]req_shift_opened done [10:38:35]requested_item shift.open_date is exist - process it [10:38:35]req_shift_open_date [10:38:35]req_shift_open_date done [10:38:35]produce_requested_data done [10:38:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118727,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:38:35]process_action_free close_receipt [10:38:35]json_value_free [10:38:35]json_value_free done [10:38:35]process_json_proto returns [10:38:35]Send response to host [10:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118727,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:38:35]free response buf [10:38:35]execute_script done [10:38:35]execute_script returns [10:38:35]free content buf [10:38:35]Sock 9.Close socket [10:38:35]Sock 9.Thread stoped [10:38:39]OFD Sender: No OFD packet to send [10:38:44]OFD Sender: No OFD packet to send [10:38:49]OFD Sender: No OFD packet to send [10:38:54]OFD Sender: No OFD packet to send [10:38:59]OFD Sender: No OFD packet to send [10:39:04]OFD Sender: No OFD packet to send [10:39:09]OFD Sender: No OFD packet to send [10:39:14]OFD Sender: No OFD packet to send [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:20]accept exits with 10 [10:41:20]New connection [10:41:20]New thread 3067383140 created [10:41:20]Thread 3067239780 joined [10:41:20]Waiting for new connection... [10:41:20] Sock 10.Parse request [10:41:20]Sock 10.Check first char [10:41:20]Sock 10.First char is OK [10:41:20]request: POST /json_proto HTTP/1.0 [10:41:20]Method: POST [10:41:20]URL: /json_proto [10:41:20]Method is POST - this is cgi request [10:41:20]url: /json_proto [10:41:20]query_string will be loaded in cgi processing [10:41:20]execute_cgi json_proto POST (null) [10:41:20]execute_cgi path=json_proto method=POST [10:41:20]POST find Content-Length [10:41:20]Host: 172.17.45.7:8080 [10:41:20]Content-Length: 674 [10:41:20]Content-Type: application/json [10:41:20] [10:41:20]POST finish read [10:41:20]Found Content-Length = 674 [10:41:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:20]execute_script... [10:41:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:20]POST & json_proto [10:41:20]process_json_proto [10:41:20]json parsed OK: [10:41:20]protocol is kg_v1.0 [10:41:20]action value=close_receipt [10:41:20]process_action close_receipt [10:41:20]cmd_close_receipt [10:41:20]MH_GetDate [10:41:20]Write to MH i2c: F0 00 00 11 47 47 [10:41:20]Write i2c OK [10:41:20]MH_I2C_Read... [10:41:20]Read from MH i2c: F0 [10:41:20]MH_I2C_Read... [10:41:20]Read from MH i2c: F0 09 00 [10:41:20]MH_I2C_Read... [10:41:20]Read from MH i2c: F0 09 00 11 47 00 D5 71 A7 66 90 0F 3E 66 E6 [10:41:20]GetLastDocTimeStamp 1722249516 [10:41:20]current date 1722249685 [10:41:20]FM_GetShiftState [10:41:20]SAM_PROTO_GetShiftState [10:41:20]wFMCommunicate request_size=4 [10:41:20]MH_SAM_APDU [10:41:20]CAPDU: 80 13 01 00 [10:41:20]Write to MH i2c: E2 08 00 12 47 80 13 01 00 00 00 00 00 D6 [10:41:20]Write i2c OK [10:41:20]MH_I2C_Read... [10:41:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:20]Read from MH i2c: E2 [10:41:20]MH_I2C_Read... [10:41:20]Read from MH i2c: E2 0E 00 [10:41:20]MH_I2C_Read... [10:41:20]Read from MH i2c: E2 0E 00 12 47 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 04 [10:41:20]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:41:20]wFMCommunicate OK [10:41:20]SAM_PROTO_GetShiftState done [10:41:20]FM_GetShiftState done [10:41:20]opened in 1722211641 [10:41:20]opened+sec_in_day 1722298041 [10:41:20]quantity*price = 50063 [10:41:20]sum+1 = 50064 [10:41:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 104 29.07.2024 10:41 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118728 ФПД: 20004487008705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T104125&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118728&fm=20004487008705&tin=02508201610067®Number=0000000000092660&sum=50000 [10:41:21]StoreToDocumentArchive [10:41:21]shift 434 fd 118728 [10:41:21]save to /storage/0434/doc_00118728 [10:41:21]save last doc name /storage/0434/doc_00118728 to /storage/kkm_last_doc_name [10:41:21]save OK [10:41:21]Clear old archive folders... [10:41:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:41:21]tlvbuf is B6FC1780 [10:41:21]SAM_PROTO_ClearQueue [10:41:21]wFMCommunicate request_size=4 [10:41:21]MH_SAM_APDU [10:41:21]CAPDU: 80 09 00 00 [10:41:21]Write to MH i2c: E2 08 00 1F 47 80 09 00 00 00 00 00 00 D8 [10:41:21]Write i2c OK [10:41:21]MH_I2C_Read... [10:41:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:21]Read from MH i2c: E2 [10:41:21]MH_I2C_Read... [10:41:21]Read from MH i2c: E2 03 00 [10:41:21]MH_I2C_Read... [10:41:21]Read from MH i2c: E2 03 00 1F 47 00 90 00 DA [10:41:21]RAPDU: 90 00 [10:41:21]wFMCommunicate OK [10:41:21]SAM_PROTO_ClearQueue done [10:41:21]KKMCreateOFDPacket [10:41:21]OFDProtocolAddRootSTLVToBuf [10:41:21]FM_MakeSignedData [10:41:21]FM_MakeSignedData [10:41:21]SAM_PROTO_SignData [10:41:21]wFMCommunicate request_size=4 [10:41:21]MH_SAM_APDU [10:41:21]CAPDU: 80 0D 01 02 [10:41:21]Write to MH i2c: E2 08 00 20 47 80 0D 01 02 00 00 00 00 E0 [10:41:21]Write i2c OK [10:41:21]MH_I2C_Read... [10:41:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:21]Read from MH i2c: E2 [10:41:21]MH_I2C_Read... [10:41:21]Read from MH i2c: E2 03 00 [10:41:21]MH_I2C_Read... [10:41:21]Read from MH i2c: E2 03 00 20 47 00 90 00 DB [10:41:21]RAPDU: 90 00 [10:41:21]wFMCommunicate OK [10:41:21]wFMCommunicate request_size=255 [10:41:21]MH_SAM_APDU [10:41:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 D5 71 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C8 CF 01 00 35 04 06 00 12 31 A8 57 [10:41:21]Write to MH i2c: E2 02 01 21 47 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 D5 71 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C8 CF 01 00 35 04 06 00 12 31 A8 57 00 00 40 [10:41:21]Write i2c OK [10:41:21]MH_I2C_Read... [10:41:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:22]Read from MH i2c: E2 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: E2 03 00 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: E2 03 00 21 47 00 90 00 DC [10:41:22]RAPDU: 90 00 [10:41:22]wFMCommunicate OK [10:41:22]wFMCommunicate request_size=7 [10:41:22]MH_SAM_APDU [10:41:22]CAPDU: 80 0D 02 02 02 91 C1 [10:41:22]Write to MH i2c: E2 0A 00 22 47 80 0D 02 02 02 00 91 C1 00 00 39 [10:41:22]Write i2c OK [10:41:22]MH_I2C_Read... [10:41:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:22]Read from MH i2c: E2 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: E2 03 00 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: E2 03 00 22 47 00 90 00 DD [10:41:22]RAPDU: 90 00 [10:41:22]wFMCommunicate OK [10:41:22]wFMCommunicate request_size=4 [10:41:22]MH_SAM_APDU [10:41:22]CAPDU: 80 0D 03 02 [10:41:22]Write to MH i2c: E2 08 00 23 47 80 0D 03 02 00 00 00 00 E5 [10:41:22]Write i2c OK [10:41:22]MH_I2C_Read... [10:41:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:22]Read from MH i2c: E2 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: E2 0B 00 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: E2 0B 00 23 47 00 5C 74 92 89 5C BF 80 22 90 00 8E [10:41:22]RAPDU: 5C 74 92 89 5C BF 80 22 90 00 [10:41:22]wFMCommunicate OK [10:41:22]SAM_PROTO_SignData done [10:41:22]FM_MakeSignedData done [10:41:22]CreateOFDProtocolMessage [10:41:22]wFMCommunicate request_size=4 [10:41:22]MH_SAM_APDU [10:41:22]CAPDU: 80 11 00 00 [10:41:22]Write to MH i2c: E2 08 00 24 47 80 11 00 00 00 00 00 00 E5 [10:41:22]Write i2c OK [10:41:22]MH_I2C_Read... [10:41:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:22]Read from MH i2c: E2 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: E2 17 00 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: E2 17 00 24 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 40 [10:41:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:41:22]wFMCommunicate OK [10:41:22]CreateOFDProtocolMessage done [10:41:22]OFDSenderStorePacket 118728 [10:41:22]StoreOFDPacket docnum=118728 [10:41:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A7 55 04 01 D8 51 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 D5 71 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C8 CF 01 00 35 04 06 00 12 31 A8 57 91 C1 5C 74 92 89 5C BF 80 22 [10:41:22]CheckFolder [10:41:22]dirname=/storage/ofd_packets [10:41:22]CheckFolder done [10:41:22]ProducePacketName [10:41:22]name=ofd_packets/00118728 [10:41:22]NVStorageSaveData ofd_packets/00118728 [10:41:22]File name is /storage/ofd_packets/00118728 [10:41:22]Write 298 bytes [10:41:22]NVStorageSaveData done [10:41:22]OFDSenderStorePacket done [10:41:22]KKMCreateOFDPacket done [10:41:22]NVStorageSaveData kkm_last_timestamp [10:41:22]File name is /storage/kkm_last_timestamp [10:41:22]Write 4 bytes [10:41:22]NVStorageSaveData done [10:41:22]ExternCall_PrintAddStr [10:41:22]wPrintStart [10:41:22]Write to MH i2c: 01 00 00 25 47 6C [10:41:22]Write i2c OK [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: 01 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: 01 07 00 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: 01 07 00 25 47 00 00 00 00 00 FF 0F 81 [10:41:22]RasterBufferAndPrint [10:41:22]line Счет N : (1)949613 [10:41:22]line ИНН: 02508201610067 [10:41:22]line Контрольно-Кассовый Чек [10:41:22]line ПРОДАЖА [10:41:22]line ТРК (МРК, ГНК) : 44 [10:41:22]line Товар: 2710194800 [10:41:22]line ДТ-К-5 [10:41:22]line 6.570 * 76.20 [10:41:22]line = 500.63 [10:41:22]line НДС 12% НСП 1% [10:41:22]line > о реализуемом товаре [10:41:22]line ОКРУГЛЕНИЕ: -0.63 [10:41:22]line ИТОГО: 500.00 [10:41:22]line Внесено: 500.00 [10:41:22]line СДАЧА: 0.00 [10:41:22]line НСП 1% : 4.43 [10:41:22]line НДС 12% : 53.16 [10:41:22]line Наличными: 500.00 [10:41:22]line Безнал.: 0.00 [10:41:22]line Место: АЗС № 134 "Партнер Нефть" [10:41:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:41:22]line СНО: Общий режим [10:41:22]line Чек 104 29.07.2024 10:41 [10:41:22]line Смена: 434 ФФД: 1.0 [10:41:22]line ЗНМ: 0300000044 [10:41:22]line РНМ: 0000000000092660 [10:41:22]line Версия ККМ: 001 [10:41:22]line ФМ: 0000000000874939 [10:41:22]line ФД: 118728 [10:41:22]line ФПД: 20004487008705 [10:41:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T104125&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118728&fm=20004487008705&tin=02508201610067®Number=0000000000092660&sum=50000 [10:41:22]OFD Sender: Processing packet 118728 [packets to send 86, broken 85] [10:41:22]ProducePacketName [10:41:22]name=ofd_packets/00118728 [10:41:22]OFD Sender: To server: pG, [10:41:22]CommunicateWithHost lk.salyk.kg:30040 [10:41:22]ConnectInit lk.salyk.kg [10:41:22]written 0, free lines is 4095 [10:41:22]Connected sock=9 [10:41:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A7 55 04 01 D8 51 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 D5 71 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C8 CF 01 00 35 04 06 00 12 31 A8 57 91 C1 5C 74 92 89 5C BF 80 22 [10:41:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 56 A7 47 00 AB AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C8 CF 01 00 F4 03 04 00 63 1F A7 66 B6 04 01 00 00 FA D8 D1 2C 13 43 A4 B7 [10:41:22]CommunicateWithHost err = 0 [10:41:22]CheckOFDResponse [10:41:22]1017 (14) - 77093643461234 [10:41:22]1041 (16) - 0000000000874939 [10:41:22]1040 (4) - 118728 [10:41:22]1012 (4) - 29.07.2024 04:49 [10:41:22]1206 (1) - 0 [10:41:22]OFD Sender: Remove packet 118728 [10:41:22]ProducePacketName [10:41:22]name=ofd_packets/00118728 [10:41:22]NVStorageDeleteData [10:41:23]Write to MH i2c: 01 00 00 4F 47 96 [10:41:23]Write i2c OK [10:41:23]MH_I2C_Read... [10:41:23]Read from MH i2c: 01 [10:41:23]MH_I2C_Read... [10:41:23]Read from MH i2c: 01 07 00 [10:41:23]MH_I2C_Read... [10:41:23]Read from MH i2c: 01 07 00 4F 47 00 00 00 00 00 D0 0C 79 [10:41:23]RasterBufferAndPrint [10:41:23]line [10:41:23]line [10:41:23]line [10:41:23]line [10:41:23]line [10:41:23]written 0, free lines is 3287 [10:41:23]MH_Cut [10:41:23]Write to MH i2c: D1 01 00 56 47 01 6F [10:41:23]Write i2c OK [10:41:23]MH_I2C_Read... [10:41:23]Read from MH i2c: D1 [10:41:23]MH_I2C_Read... [10:41:23]Read from MH i2c: D1 01 00 [10:41:23]MH_I2C_Read... [10:41:23]Read from MH i2c: D1 01 00 56 47 00 6E [10:41:23]Write to MH i2c: 01 00 00 57 47 9E [10:41:23]Write i2c OK [10:41:23]MH_I2C_Read... [10:41:23]OFD Sender: No OFD packet to send [10:41:23]*** Cut start [10:41:23]*** Partial cut [10:41:23]*** CUTSNS_PIN = 1 [10:41:23]*** CUTSNS_PIN = 0 [10:41:24]*** Brake cut motor [10:41:24]Read from MH i2c: 01 [10:41:24]MH_I2C_Read... [10:41:24]*** Stop cut motor [10:41:24]*** Cut end [10:41:24]Read from MH i2c: 01 07 00 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: 01 07 00 57 47 00 00 00 00 00 FF 0F B3 [10:41:24]process_action close_receipt done [10:41:24]requested_data is exist [10:41:24]produce_requested_data [10:41:24]requested_item fm.sn is exist - process it [10:41:24]wFMCommunicate request_size=4 [10:41:24]MH_SAM_APDU [10:41:24]CAPDU: 80 11 00 00 [10:41:24]Write to MH i2c: E2 08 00 58 47 80 11 00 00 00 00 00 00 19 [10:41:24]Write i2c OK [10:41:24]MH_I2C_Read... [10:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:24]Read from MH i2c: E2 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 17 00 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 17 00 58 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 74 [10:41:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:41:24]wFMCommunicate OK [10:41:24]requested_item fd.num is exist - process it [10:41:24]SAM_PROTO_GetFieldsCounters [10:41:24]wFMCommunicate request_size=4 [10:41:24]MH_SAM_APDU [10:41:24]CAPDU: 80 13 00 00 [10:41:24]Write to MH i2c: E2 08 00 59 47 80 13 00 00 00 00 00 00 1C [10:41:24]Write i2c OK [10:41:24]MH_I2C_Read... [10:41:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:24]Read from MH i2c: E2 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 62 00 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 62 00 59 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C8 CF 01 00 0E 04 04 00 B2 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 C6 [10:41: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C8 CF 01 00 0E 04 04 00 B2 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 [10:41:24]wFMCommunicate OK [10:41:24]SAM_PROTO_GetFieldsCounters done [10:41:24]requested_item shift.num is exist - process it [10:41:24]requested_item shift.opened is exist - process it [10:41:24]req_shift_opened [10:41:24]FM_GetShiftState [10:41:24]SAM_PROTO_GetShiftState [10:41:24]wFMCommunicate request_size=4 [10:41:24]MH_SAM_APDU [10:41:24]CAPDU: 80 13 01 00 [10:41:24]Write to MH i2c: E2 08 00 5A 47 80 13 01 00 00 00 00 00 1E [10:41:24]Write i2c OK [10:41:24]MH_I2C_Read... [10:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:24]Read from MH i2c: E2 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 0E 00 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 0E 00 5A 47 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 4C [10:41:24]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:41:24]wFMCommunicate OK [10:41:24]SAM_PROTO_GetShiftState done [10:41:24]FM_GetShiftState done [10:41:24]req_shift_opened done [10:41:24]requested_item shift.open_date is exist - process it [10:41:24]req_shift_open_date [10:41:24]req_shift_open_date done [10:41:24]produce_requested_data done [10:41:24]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118728,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:41:24]process_action_free close_receipt [10:41:24]json_value_free [10:41:24]json_value_free done [10:41:24]process_json_proto returns [10:41:24]Send response to host [10:41:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118728,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:41:24]free response buf [10:41:24]execute_script done [10:41:24]execute_script returns [10:41:24]free content buf [10:41:24]Sock 10.Close socket [10:41:24]Sock 10.Thread stoped [10:41:28]OFD Sender: No OFD packet to send [10:41:33]OFD Sender: No OFD packet to send [10:41:37]accept exits with 7 [10:41:37]New connection [10:41:37]New thread 3067239780 created [10:41:37]Thread 3067383140 joined [10:41:37]Waiting for new connection... [10:41:37] Sock 7.Parse request [10:41:37]Sock 7.Check first char [10:41:37]Sock 7.First char is OK [10:41:37]request: POST /json_proto HTTP/1.0 [10:41:37]Method: POST [10:41:37]URL: /json_proto [10:41:37]Method is POST - this is cgi request [10:41:37]url: /json_proto [10:41:37]query_string will be loaded in cgi processing [10:41:37]execute_cgi json_proto POST (null) [10:41:37]execute_cgi path=json_proto method=POST [10:41:37]POST find Content-Length [10:41:37]Host: 172.17.45.7:8080 [10:41:37]Content-Length: 677 [10:41:37]Content-Type: application/json [10:41:37] [10:41:37]POST finish read [10:41:37]Found Content-Length = 677 [10:41:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:37]execute_script... [10:41: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)949612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:37]POST & json_proto [10:41:37]process_json_proto [10:41:37]json parsed OK: [10:41:37]protocol is kg_v1.0 [10:41:37]action value=close_receipt [10:41:37]process_action close_receipt [10:41:37]cmd_close_receipt [10:41:37]MH_GetDate [10:41:37]Write to MH i2c: F0 00 00 5B 47 91 [10:41:37]Write i2c OK [10:41:37]MH_I2C_Read... [10:41:37]Read from MH i2c: F0 [10:41:37]MH_I2C_Read... [10:41:37]Read from MH i2c: F0 09 00 [10:41:37]MH_I2C_Read... [10:41:37]Read from MH i2c: F0 09 00 5B 47 00 E6 71 A7 66 90 0F 3E 66 41 [10:41:37]GetLastDocTimeStamp 1722249685 [10:41:37]current date 1722249702 [10:41:37]FM_GetShiftState [10:41:37]SAM_PROTO_GetShiftState [10:41:37]wFMCommunicate request_size=4 [10:41:37]MH_SAM_APDU [10:41:37]CAPDU: 80 13 01 00 [10:41:37]Write to MH i2c: E2 08 00 5C 47 80 13 01 00 00 00 00 00 20 [10:41:37]Write i2c OK [10:41:37]MH_I2C_Read... [10:41:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:37]Read from MH i2c: E2 [10:41:37]MH_I2C_Read... [10:41:37]Read from MH i2c: E2 0E 00 [10:41:37]MH_I2C_Read... [10:41:37]Read from MH i2c: E2 0E 00 5C 47 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 4E [10:41:37]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:41:37]wFMCommunicate OK [10:41:37]SAM_PROTO_GetShiftState done [10:41:37]FM_GetShiftState done [10:41:37]opened in 1722211641 [10:41:37]opened+sec_in_day 1722298041 [10:41:37]quantity*price = 30035 [10:41:37]sum+1 = 30036 [10:41:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 105 29.07.2024 10:41 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118729 ФПД: 253112836029431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T104142&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118729&fm=253112836029431&tin=02508201610067®Number=0000000000092660&sum=30000 [10:41:38]StoreToDocumentArchive [10:41:38]shift 434 fd 118729 [10:41:38]save to /storage/0434/doc_00118729 [10:41:38]save last doc name /storage/0434/doc_00118729 to /storage/kkm_last_doc_name [10:41:38]save OK [10:41:38]Clear old archive folders... [10:41:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:41:38]tlvbuf is 01E70DC0 [10:41:38]SAM_PROTO_ClearQueue [10:41:38]wFMCommunicate request_size=4 [10:41:38]MH_SAM_APDU [10:41:38]CAPDU: 80 09 00 00 [10:41:38]Write to MH i2c: E2 08 00 69 47 80 09 00 00 00 00 00 00 22 [10:41:38]Write i2c OK [10:41:38]MH_I2C_Read... [10:41:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:38]Read from MH i2c: E2 [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: E2 03 00 [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: E2 03 00 69 47 00 90 00 24 [10:41:38]RAPDU: 90 00 [10:41:38]wFMCommunicate OK [10:41:38]SAM_PROTO_ClearQueue done [10:41:38]KKMCreateOFDPacket [10:41:38]OFDProtocolAddRootSTLVToBuf [10:41:38]FM_MakeSignedData [10:41:38]FM_MakeSignedData [10:41:38]SAM_PROTO_SignData [10:41:38]wFMCommunicate request_size=4 [10:41:38]MH_SAM_APDU [10:41:38]CAPDU: 80 0D 01 02 [10:41:38]Write to MH i2c: E2 08 00 6A 47 80 0D 01 02 00 00 00 00 2A [10:41:38]Write i2c OK [10:41:38]MH_I2C_Read... [10:41:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:38]Read from MH i2c: E2 [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: E2 03 00 [10:41:38]MH_I2C_Read... [10:41:38]Read from MH i2c: E2 03 00 6A 47 00 90 00 25 [10:41:38]RAPDU: 90 00 [10:41:38]wFMCommunicate OK [10:41:38]wFMCommunicate request_size=255 [10:41:38]MH_SAM_APDU [10:41: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E6 71 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C9 CF 01 00 35 04 06 00 E6 [10:41:38]Write to MH i2c: E2 02 01 6B 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E6 71 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C9 CF 01 00 35 04 06 00 E6 00 00 CC [10:41:38]Write i2c OK [10:41:38]MH_I2C_Read... [10:41:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:39]Read from MH i2c: E2 [10:41:39]MH_I2C_Read... [10:41:39]Read from MH i2c: E2 03 00 [10:41:39]MH_I2C_Read... [10:41:39]Read from MH i2c: E2 03 00 6B 47 00 90 00 26 [10:41:39]RAPDU: 90 00 [10:41:39]wFMCommunicate OK [10:41:39]wFMCommunicate request_size=10 [10:41:39]MH_SAM_APDU [10:41:39]CAPDU: 80 0D 02 02 05 34 6C AD FB F7 [10:41:39]Write to MH i2c: E2 0D 00 6C 47 80 0D 02 02 05 00 34 6C AD FB F7 00 00 76 [10:41:39]Write i2c OK [10:41:39]MH_I2C_Read... [10:41:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:39]Read from MH i2c: E2 [10:41:39]MH_I2C_Read... [10:41:39]Read from MH i2c: E2 03 00 [10:41:39]MH_I2C_Read... [10:41:39]Read from MH i2c: E2 03 00 6C 47 00 90 00 27 [10:41:39]RAPDU: 90 00 [10:41:39]wFMCommunicate OK [10:41:39]wFMCommunicate request_size=4 [10:41:39]MH_SAM_APDU [10:41:39]CAPDU: 80 0D 03 02 [10:41:39]Write to MH i2c: E2 08 00 6D 47 80 0D 03 02 00 00 00 00 2F [10:41:39]Write i2c OK [10:41:39]MH_I2C_Read... [10:41:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:39]Read from MH i2c: E2 [10:41:39]MH_I2C_Read... [10:41:39]Read from MH i2c: E2 0B 00 [10:41:39]MH_I2C_Read... [10:41:39]Read from MH i2c: E2 0B 00 6D 47 00 40 E3 3A 34 3D C0 91 49 90 00 98 [10:41:39]RAPDU: 40 E3 3A 34 3D C0 91 49 90 00 [10:41:39]wFMCommunicate OK [10:41:39]SAM_PROTO_SignData done [10:41:39]FM_MakeSignedData done [10:41:39]CreateOFDProtocolMessage [10:41:39]wFMCommunicate request_size=4 [10:41:39]MH_SAM_APDU [10:41:39]CAPDU: 80 11 00 00 [10:41:39]Write to MH i2c: E2 08 00 6E 47 80 11 00 00 00 00 00 00 2F [10:41:39]Write i2c OK [10:41:39]MH_I2C_Read... [10:41:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:39]Read from MH i2c: E2 [10:41:39]MH_I2C_Read... [10:41:39]Read from MH i2c: E2 17 00 [10:41:39]MH_I2C_Read... [10:41:39]Read from MH i2c: E2 17 00 6E 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8A [10:41:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:41:39]wFMCommunicate OK [10:41:39]CreateOFDProtocolMessage done [10:41:39]OFDSenderStorePacket 118729 [10:41:39]StoreOFDPacket docnum=118729 [10:41:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B8 6D 07 01 A6 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E6 71 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C9 CF 01 00 35 04 06 00 E6 34 6C AD FB F7 40 E3 3A 34 3D C0 91 49 [10:41:39]CheckFolder [10:41:39]dirname=/storage/ofd_packets [10:41:39]CheckFolder done [10:41:39]ProducePacketName [10:41:39]name=ofd_packets/00118729 [10:41:39]NVStorageSaveData ofd_packets/00118729 [10:41:39]File name is /storage/ofd_packets/00118729 [10:41:39]Write 301 bytes [10:41:39]NVStorageSaveData done [10:41:39]OFDSenderStorePacket done [10:41:39]KKMCreateOFDPacket done [10:41:39]NVStorageSaveData kkm_last_timestamp [10:41:39]File name is /storage/kkm_last_timestamp [10:41:39]Write 4 bytes [10:41:39]NVStorageSaveData done [10:41:39]ExternCall_PrintAddStr [10:41:39]wPrintStart [10:41:39]Write to MH i2c: 01 00 00 6F 47 B6 [10:41:39]Write i2c OK [10:41:39]MH_I2C_Read... [10:41:39]Read from MH i2c: 01 [10:41:39]MH_I2C_Read... [10:41:39]Read from MH i2c: 01 07 00 [10:41:39]MH_I2C_Read... [10:41:39]Read from MH i2c: 01 07 00 6F 47 00 00 00 00 00 FF 0F CB [10:41:39]RasterBufferAndPrint [10:41:39]line Счет N : (1)949612 [10:41:39]line ИНН: 02508201610067 [10:41:39]line Контрольно-Кассовый Чек [10:41:39]line ПРОДАЖА [10:41:39]line ТРК (МРК, ГНК) : 51 [10:41:39]line Товар: 2710124130 [10:41:39]line Аи-92-К-4 [10:41:39]line 4.430 * 67.80 [10:41:39]line = 300.35 [10:41:39]line НДС 12% НСП 1% [10:41:39]line > о реализуемом товаре [10:41:39]line ОКРУГЛЕНИЕ: -0.35 [10:41:39]line ИТОГО: 300.00 [10:41:39]line Внесено: 300.00 [10:41:39]line СДАЧА: 0.00 [10:41:39]line НСП 1% : 2.66 [10:41:39]line НДС 12% : 31.90 [10:41:39]line Наличными: 300.00 [10:41:39]line Безнал.: 0.00 [10:41:39]line Место: АЗС № 134 "Партнер Нефть" [10:41:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:41:39]line СНО: Общий режим [10:41:39]line Чек 105 29.07.2024 10:41 [10:41:39]line Смена: 434 ФФД: 1.0 [10:41:39]line ЗНМ: 0300000044 [10:41:39]line РНМ: 0000000000092660 [10:41:39]line Версия ККМ: 001 [10:41:39]line ФМ: 0000000000874939 [10:41:39]line ФД: 118729 [10:41:39]line ФПД: 253112836029431 [10:41:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T104142&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118729&fm=253112836029431&tin=02508201610067®Number=0000000000092660&sum=30000 [10:41:39]written 0, free lines is 4095 [10:41:39]OFD Sender: Processing packet 118729 [packets to send 86, broken 85] [10:41:39]ProducePacketName [10:41:39]name=ofd_packets/00118729 [10:41:39]OFD Sender: To server: pG, [10:41:39]CommunicateWithHost lk.salyk.kg:30040 [10:41:39]ConnectInit lk.salyk.kg [10:41:39]Connected sock=10 [10:41:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B8 6D 07 01 A6 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E6 71 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C9 CF 01 00 35 04 06 00 E6 34 6C AD FB F7 40 E3 3A 34 3D C0 91 49 [10:41:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B7 91 47 00 9E AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C9 CF 01 00 F4 03 04 00 74 1F A7 66 B6 04 01 00 00 06 26 CD ED 7B 80 1E 06 [10:41:39]CommunicateWithHost err = 0 [10:41:39]CheckOFDResponse [10:41:39]1017 (14) - 77093643461234 [10:41:39]1041 (16) - 0000000000874939 [10:41:39]1040 (4) - 118729 [10:41:39]1012 (4) - 29.07.2024 04:49 [10:41:39]1206 (1) - 0 [10:41:39]OFD Sender: Remove packet 118729 [10:41:39]ProducePacketName [10:41:39]name=ofd_packets/00118729 [10:41:39]NVStorageDeleteData [10:41:39]Write to MH i2c: 01 00 00 99 47 E0 [10:41:39]Write i2c OK [10:41:39]MH_I2C_Read... [10:41:39]Read from MH i2c: 01 [10:41:39]MH_I2C_Read... [10:41:39]Read from MH i2c: 01 07 00 [10:41:39]MH_I2C_Read... [10:41:39]Read from MH i2c: 01 07 00 99 47 00 00 00 00 00 DC 0C CF [10:41:39]RasterBufferAndPrint [10:41:39]line [10:41:39]line [10:41:39]line [10:41:39]line [10:41:39]line [10:41:39]written 0, free lines is 3298 [10:41:39]MH_Cut [10:41:39]Write to MH i2c: D1 01 00 A0 47 01 B9 [10:41:39]Write i2c OK [10:41:39]MH_I2C_Read... [10:41:39]Read from MH i2c: D1 [10:41:39]MH_I2C_Read... [10:41:39]Read from MH i2c: D1 01 00 [10:41:39]MH_I2C_Read... [10:41:39]Read from MH i2c: D1 01 00 A0 47 00 B8 [10:41:39]Write to MH i2c: 01 00 00 A1 47 E8 [10:41:39]Write i2c OK [10:41:39]MH_I2C_Read... [10:41:40]OFD Sender: No OFD packet to send [10:41:40]*** Cut start [10:41:40]*** Partial cut [10:41:40]*** CUTSNS_PIN = 1 [10:41:40]*** CUTSNS_PIN = 0 [10:41:40]*** Brake cut motor [10:41:41]Read from MH i2c: 01 [10:41:41]MH_I2C_Read... [10:41:41]*** Stop cut motor [10:41:41]*** Cut end [10:41:41]Read from MH i2c: 01 07 00 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: 01 07 00 A1 47 00 00 00 00 00 FF 0F FD [10:41:41]process_action close_receipt done [10:41:41]requested_data is exist [10:41:41]produce_requested_data [10:41:41]requested_item fm.sn is exist - process it [10:41:41]wFMCommunicate request_size=4 [10:41:41]MH_SAM_APDU [10:41:41]CAPDU: 80 11 00 00 [10:41:41]Write to MH i2c: E2 08 00 A2 47 80 11 00 00 00 00 00 00 63 [10:41:41]Write i2c OK [10:41:41]MH_I2C_Read... [10:41:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:41]Read from MH i2c: E2 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: E2 17 00 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: E2 17 00 A2 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BE [10:41:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:41:41]wFMCommunicate OK [10:41:41]requested_item fd.num is exist - process it [10:41:41]SAM_PROTO_GetFieldsCounters [10:41:41]wFMCommunicate request_size=4 [10:41:41]MH_SAM_APDU [10:41:41]CAPDU: 80 13 00 00 [10:41:41]Write to MH i2c: E2 08 00 A3 47 80 13 00 00 00 00 00 00 66 [10:41:41]Write i2c OK [10:41:41]MH_I2C_Read... [10:41:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:41]Read from MH i2c: E2 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: E2 62 00 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: E2 62 00 A3 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C9 CF 01 00 0E 04 04 00 B2 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 [10:41: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C9 CF 01 00 0E 04 04 00 B2 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 [10:41:41]wFMCommunicate OK [10:41:41]SAM_PROTO_GetFieldsCounters done [10:41:41]requested_item shift.num is exist - process it [10:41:41]requested_item shift.opened is exist - process it [10:41:41]req_shift_opened [10:41:41]FM_GetShiftState [10:41:41]SAM_PROTO_GetShiftState [10:41:41]wFMCommunicate request_size=4 [10:41:41]MH_SAM_APDU [10:41:41]CAPDU: 80 13 01 00 [10:41:41]Write to MH i2c: E2 08 00 A4 47 80 13 01 00 00 00 00 00 68 [10:41:41]Write i2c OK [10:41:41]MH_I2C_Read... [10:41:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:41]Read from MH i2c: E2 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: E2 0E 00 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: E2 0E 00 A4 47 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 96 [10:41:41]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:41:41]wFMCommunicate OK [10:41:41]SAM_PROTO_GetShiftState done [10:41:41]FM_GetShiftState done [10:41:41]req_shift_opened done [10:41:41]requested_item shift.open_date is exist - process it [10:41:41]req_shift_open_date [10:41:41]req_shift_open_date done [10:41:41]produce_requested_data done [10:41:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118729,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:41:41]process_action_free close_receipt [10:41:41]json_value_free [10:41:41]json_value_free done [10:41:41]process_json_proto returns [10:41:41]Send response to host [10:41:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118729,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:41:41]free response buf [10:41:41]execute_script done [10:41:41]execute_script returns [10:41:41]free content buf [10:41:41]Sock 7.Close socket [10:41:41]Sock 7.Thread stoped [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:50]accept exits with 9 [10:43:50]New connection [10:43:50]New thread 3067383140 created [10:43:50]Thread 3067239780 joined [10:43:50]Waiting for new connection... [10:43:50] Sock 9.Parse request [10:43:50]Sock 9.Check first char [10:43:50]Sock 9.First char is OK [10:43:50]request: POST /json_proto HTTP/1.0 [10:43:50]Method: POST [10:43:50]URL: /json_proto [10:43:50]Method is POST - this is cgi request [10:43:50]url: /json_proto [10:43:50]query_string will be loaded in cgi processing [10:43:50]execute_cgi json_proto POST (null) [10:43:50]execute_cgi path=json_proto method=POST [10:43:50]POST find Content-Length [10:43:50]Host: 172.17.45.7:8080 [10:43:50]Content-Length: 819 [10:43:50]Content-Type: application/json [10:43:50] [10:43:50]POST finish read [10:43:50]Found Content-Length = 819 [10:43:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:50]execute_script... [10:43:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:50]POST & json_proto [10:43:50]process_json_proto [10:43:50]json parsed OK: [10:43:50]protocol is kg_v1.0 [10:43:50]action value=close_receipt [10:43:50]process_action close_receipt [10:43:50]cmd_close_receipt [10:43:50]MH_GetDate [10:43:50]Write to MH i2c: F0 00 00 A5 47 DB [10:43:50]Write i2c OK [10:43:50]MH_I2C_Read... [10:43:50]Read from MH i2c: F0 [10:43:50]MH_I2C_Read... [10:43:50]Read from MH i2c: F0 09 00 [10:43:50]MH_I2C_Read... [10:43:50]Read from MH i2c: F0 09 00 A5 47 00 6B 72 A7 66 90 0F 3E 66 11 [10:43:50]GetLastDocTimeStamp 1722249702 [10:43:50]current date 1722249835 [10:43:50]FM_GetShiftState [10:43:50]SAM_PROTO_GetShiftState [10:43:50]wFMCommunicate request_size=4 [10:43:50]MH_SAM_APDU [10:43:50]CAPDU: 80 13 01 00 [10:43:50]Write to MH i2c: E2 08 00 A6 47 80 13 01 00 00 00 00 00 6A [10:43:50]Write i2c OK [10:43:50]MH_I2C_Read... [10:43:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:50]Read from MH i2c: E2 [10:43:50]MH_I2C_Read... [10:43:50]Read from MH i2c: E2 0E 00 [10:43:50]MH_I2C_Read... [10:43:50]Read from MH i2c: E2 0E 00 A6 47 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 98 [10:43:50]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:43:50]wFMCommunicate OK [10:43:50]SAM_PROTO_GetShiftState done [10:43:50]FM_GetShiftState done [10:43:50]opened in 1722211641 [10:43:50]opened+sec_in_day 1722298041 [10:43:50]quantity*price = 200025 [10:43:50]sum+1 = 200026 [10:43:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 106 29.07.2024 10:43 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118730 ФПД: 6705600454644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T104355&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118730&fm=6705600454644&tin=02508201610067®Number=0000000000092660&sum=200000 [10:43:51]StoreToDocumentArchive [10:43:51]shift 434 fd 118730 [10:43:51]save to /storage/0434/doc_00118730 [10:43:51]save last doc name /storage/0434/doc_00118730 to /storage/kkm_last_doc_name [10:43:51]save OK [10:43:51]Clear old archive folders... [10:43:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:43:51]tlvbuf is 01EBD880 [10:43:51]SAM_PROTO_ClearQueue [10:43:51]wFMCommunicate request_size=4 [10:43:51]MH_SAM_APDU [10:43:51]CAPDU: 80 09 00 00 [10:43:51]Write to MH i2c: E2 08 00 B3 47 80 09 00 00 00 00 00 00 6C [10:43:51]Write i2c OK [10:43:51]MH_I2C_Read... [10:43:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:51]Read from MH i2c: E2 [10:43:51]MH_I2C_Read... [10:43:51]Read from MH i2c: E2 03 00 [10:43:51]MH_I2C_Read... [10:43:51]Read from MH i2c: E2 03 00 B3 47 00 90 00 6E [10:43:51]RAPDU: 90 00 [10:43:51]wFMCommunicate OK [10:43:51]SAM_PROTO_ClearQueue done [10:43:51]KKMCreateOFDPacket [10:43:51]OFDProtocolAddRootSTLVToBuf [10:43:51]FM_MakeSignedData [10:43:51]FM_MakeSignedData [10:43:51]SAM_PROTO_SignData [10:43:51]wFMCommunicate request_size=4 [10:43:51]MH_SAM_APDU [10:43:51]CAPDU: 80 0D 01 02 [10:43:51]Write to MH i2c: E2 08 00 B4 47 80 0D 01 02 00 00 00 00 74 [10:43:51]Write i2c OK [10:43:51]MH_I2C_Read... [10:43:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:51]Read from MH i2c: E2 [10:43:51]MH_I2C_Read... [10:43:51]Read from MH i2c: E2 03 00 [10:43:51]MH_I2C_Read... [10:43:51]Read from MH i2c: E2 03 00 B4 47 00 90 00 6F [10:43:51]RAPDU: 90 00 [10:43:51]wFMCommunicate OK [10:43:51]wFMCommunicate request_size=255 [10:43:51]MH_SAM_APDU [10:43:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 6B 72 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CA CF 01 00 35 04 06 00 06 19 44 EE [10:43:51]Write to MH i2c: E2 02 01 B5 47 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 6B 72 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CA CF 01 00 35 04 06 00 06 19 44 EE 00 00 E4 [10:43:51]Write i2c OK [10:43:51]MH_I2C_Read... [10:43:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:52]Read from MH i2c: E2 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: E2 03 00 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: E2 03 00 B5 47 00 90 00 70 [10:43:52]RAPDU: 90 00 [10:43:52]wFMCommunicate OK [10:43:52]wFMCommunicate request_size=7 [10:43:52]MH_SAM_APDU [10:43:52]CAPDU: 80 0D 02 02 02 DF F4 [10:43:52]Write to MH i2c: E2 0A 00 B6 47 80 0D 02 02 02 00 DF F4 00 00 4E [10:43:52]Write i2c OK [10:43:52]MH_I2C_Read... [10:43:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:52]Read from MH i2c: E2 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: E2 03 00 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: E2 03 00 B6 47 00 90 00 71 [10:43:52]RAPDU: 90 00 [10:43:52]wFMCommunicate OK [10:43:52]wFMCommunicate request_size=4 [10:43:52]MH_SAM_APDU [10:43:52]CAPDU: 80 0D 03 02 [10:43:52]Write to MH i2c: E2 08 00 B7 47 80 0D 03 02 00 00 00 00 79 [10:43:52]Write i2c OK [10:43:52]MH_I2C_Read... [10:43:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:52]Read from MH i2c: E2 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: E2 0B 00 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: E2 0B 00 B7 47 00 DB 73 02 71 4D 97 2A 9C 90 00 E5 [10:43:52]RAPDU: DB 73 02 71 4D 97 2A 9C 90 00 [10:43:52]wFMCommunicate OK [10:43:52]SAM_PROTO_SignData done [10:43:52]FM_MakeSignedData done [10:43:52]CreateOFDProtocolMessage [10:43:52]wFMCommunicate request_size=4 [10:43:52]MH_SAM_APDU [10:43:52]CAPDU: 80 11 00 00 [10:43:52]Write to MH i2c: E2 08 00 B8 47 80 11 00 00 00 00 00 00 79 [10:43:52]Write i2c OK [10:43:52]MH_I2C_Read... [10:43:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:52]Read from MH i2c: E2 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: E2 17 00 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: E2 17 00 B8 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D4 [10:43:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:43:52]wFMCommunicate OK [10:43:52]CreateOFDProtocolMessage done [10:43:52]OFDSenderStorePacket 118730 [10:43:52]StoreOFDPacket docnum=118730 [10:43:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9C 9B 04 01 67 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 6B 72 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CA CF 01 00 35 04 06 00 06 19 44 EE DF F4 DB 73 02 71 4D 97 2A 9C [10:43:52]CheckFolder [10:43:52]dirname=/storage/ofd_packets [10:43:52]CheckFolder done [10:43:52]ProducePacketName [10:43:52]name=ofd_packets/00118730 [10:43:52]NVStorageSaveData ofd_packets/00118730 [10:43:52]File name is /storage/ofd_packets/00118730 [10:43:52]Write 298 bytes [10:43:52]NVStorageSaveData done [10:43:52]OFDSenderStorePacket done [10:43:52]KKMCreateOFDPacket done [10:43:52]NVStorageSaveData kkm_last_timestamp [10:43:52]File name is /storage/kkm_last_timestamp [10:43:52]Write 4 bytes [10:43:52]NVStorageSaveData done [10:43:52]ExternCall_PrintAddStr [10:43:52]wPrintStart [10:43:52]Write to MH i2c: 01 00 00 B9 47 00 [10:43:52]Write i2c OK [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: 01 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: 01 07 00 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: 01 07 00 B9 47 00 00 00 00 00 FF 0F 15 [10:43:52]RasterBufferAndPrint [10:43:52]line Счет N : (1)949614 [10:43:52]line ИНН: 02508201610067 [10:43:52]line Контрольно-Кассовый Чек [10:43:52]line ПРОДАЖА [10:43:52]line ТРК (МРК, ГНК) : 44 [10:43:52]line Товар: 2710194800 [10:43:52]line ДТ-К-5 [10:43:52]line 26.250 * 76.20 [10:43:52]line = 2000.25 [10:43:52]line НДС 12% НСП 1% [10:43:52]line > о реализуемом товаре [10:43:52]line ОКРУГЛЕНИЕ: -0.25 [10:43:52]line ИТОГО: 2000.00 [10:43:52]line НСП 1% : 17.70 [10:43:52]line НДС 12% : 212.42 [10:43:52]line Наличными: 0.00 [10:43:52]line Безнал.: 2000.00 [10:43:52]line Место: АЗС № 134 "Партнер Нефть" [10:43:52]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:43:52]line СНО: Общий режим [10:43:52]line Чек 106 29.07.2024 10:43 [10:43:52]line Смена: 434 ФФД: 1.0 [10:43:52]line ЗНМ: 0300000044 [10:43:52]line РНМ: 0000000000092660 [10:43:52]line Версия ККМ: 001 [10:43:52]line Платежная система: O! деньги [10:43:52]line ФМ: 0000000000874939 [10:43:52]line ФД: 118730 [10:43:52]line ФПД: 6705600454644 [10:43:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T104355&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118730&fm=6705600454644&tin=02508201610067®Number=0000000000092660&sum=200000 [10:43:52]OFD Sender: Processing packet 118730 [packets to send 86, broken 85] [10:43:52]ProducePacketName [10:43:52]name=ofd_packets/00118730 [10:43:52]OFD Sender: To server: pG, [10:43:52]CommunicateWithHost lk.salyk.kg:30040 [10:43:52]ConnectInit lk.salyk.kg [10:43:52]written 0, free lines is 4095 [10:43:52]Connected sock=10 [10:43:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9C 9B 04 01 67 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 6B 72 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CA CF 01 00 35 04 06 00 06 19 44 EE DF F4 DB 73 02 71 4D 97 2A 9C [10:43:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8C BD 47 00 4C 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 34 39 33 39 10 04 04 00 CA CF 01 00 F4 03 04 00 F9 1F A7 66 B6 04 01 00 00 DF C9 44 A6 02 B5 4D FD [10:43:52]CommunicateWithHost err = 0 [10:43:52]CheckOFDResponse [10:43:52]1017 (14) - 77093643461234 [10:43:52]1041 (16) - 0000000000874939 [10:43:52]1040 (4) - 118730 [10:43:52]1012 (4) - 29.07.2024 04:52 [10:43:52]1206 (1) - 0 [10:43:52]OFD Sender: Remove packet 118730 [10:43:52]ProducePacketName [10:43:52]name=ofd_packets/00118730 [10:43:52]NVStorageDeleteData [10:43:52]Write to MH i2c: 01 00 00 E3 47 2A [10:43:52]Write i2c OK [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: 01 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: 01 07 00 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: 01 07 00 E3 47 00 00 00 00 00 DD 0C 1A [10:43:52]RasterBufferAndPrint [10:43:52]line [10:43:52]line [10:43:52]line [10:43:52]line [10:43:52]line [10:43:52]written 0, free lines is 3299 [10:43:52]MH_Cut [10:43:52]Write to MH i2c: D1 01 00 EA 47 01 03 [10:43:52]Write i2c OK [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: D1 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: D1 01 00 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: D1 01 00 EA 47 00 02 [10:43:52]Write to MH i2c: 01 00 00 EB 47 32 [10:43:52]Write i2c OK [10:43:52]MH_I2C_Read... [10:43:53]OFD Sender: No OFD packet to send [10:43:53]*** Cut start [10:43:53]*** Partial cut [10:43:53]*** CUTSNS_PIN = 1 [10:43:53]*** CUTSNS_PIN = 0 [10:43:53]*** Brake cut motor [10:43:54]Read from MH i2c: 01 [10:43:54]MH_I2C_Read... [10:43:54]*** Stop cut motor [10:43:54]*** Cut end [10:43:54]Read from MH i2c: 01 07 00 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: 01 07 00 EB 47 00 00 00 00 00 FF 0F 47 [10:43:54]process_action close_receipt done [10:43:54]requested_data is exist [10:43:54]produce_requested_data [10:43:54]requested_item fm.sn is exist - process it [10:43:54]wFMCommunicate request_size=4 [10:43:54]MH_SAM_APDU [10:43:54]CAPDU: 80 11 00 00 [10:43:54]Write to MH i2c: E2 08 00 EC 47 80 11 00 00 00 00 00 00 AD [10:43:54]Write i2c OK [10:43:54]MH_I2C_Read... [10:43:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:54]Read from MH i2c: E2 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: E2 17 00 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: E2 17 00 EC 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 08 [10:43:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:43:54]wFMCommunicate OK [10:43:54]requested_item fd.num is exist - process it [10:43:54]SAM_PROTO_GetFieldsCounters [10:43:54]wFMCommunicate request_size=4 [10:43:54]MH_SAM_APDU [10:43:54]CAPDU: 80 13 00 00 [10:43:54]Write to MH i2c: E2 08 00 ED 47 80 13 00 00 00 00 00 00 B0 [10:43:54]Write i2c OK [10:43:54]MH_I2C_Read... [10:43:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:54]Read from MH i2c: E2 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: E2 62 00 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: E2 62 00 ED 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CA CF 01 00 0E 04 04 00 B2 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 62 [10:43: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CA CF 01 00 0E 04 04 00 B2 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 [10:43:54]wFMCommunicate OK [10:43:54]SAM_PROTO_GetFieldsCounters done [10:43:54]requested_item shift.num is exist - process it [10:43:54]requested_item shift.opened is exist - process it [10:43:54]req_shift_opened [10:43:54]FM_GetShiftState [10:43:54]SAM_PROTO_GetShiftState [10:43:54]wFMCommunicate request_size=4 [10:43:54]MH_SAM_APDU [10:43:54]CAPDU: 80 13 01 00 [10:43:54]Write to MH i2c: E2 08 00 EE 47 80 13 01 00 00 00 00 00 B2 [10:43:54]Write i2c OK [10:43:54]MH_I2C_Read... [10:43:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:54]Read from MH i2c: E2 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: E2 0E 00 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: E2 0E 00 EE 47 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E0 [10:43:54]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:43:54]wFMCommunicate OK [10:43:54]SAM_PROTO_GetShiftState done [10:43:54]FM_GetShiftState done [10:43:54]req_shift_opened done [10:43:54]requested_item shift.open_date is exist - process it [10:43:54]req_shift_open_date [10:43:54]req_shift_open_date done [10:43:54]produce_requested_data done [10:43:54]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118730,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:43:54]process_action_free close_receipt [10:43:54]json_value_free [10:43:54]json_value_free done [10:43:54]process_json_proto returns [10:43:54]Send response to host [10:43:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118730,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:43:54]free response buf [10:43:54]execute_script done [10:43:54]execute_script returns [10:43:54]free content buf [10:43:54]Sock 9.Close socket [10:43:54]Sock 9.Thread stoped [10:43:58]OFD Sender: No OFD packet to send [10:44:03]OFD Sender: No OFD packet to send [10:44:08]OFD Sender: No OFD packet to send [10:44:13]OFD Sender: No OFD packet to send [10:44:18]OFD Sender: No OFD packet to send [10:44:23]OFD Sender: No OFD packet to send [10:44:28]OFD Sender: No OFD packet to send [10:44:29]accept exits with 7 [10:44:29]New connection [10:44:29]New thread 3067239780 created [10:44:29]Thread 3067383140 joined [10:44:29]Waiting for new connection... [10:44:29] Sock 7.Parse request [10:44:29]Sock 7.Check first char [10:44:29]Sock 7.First char is OK [10:44:29]request: POST /json_proto HTTP/1.0 [10:44:29]Method: POST [10:44:29]URL: /json_proto [10:44:29]Method is POST - this is cgi request [10:44:29]url: /json_proto [10:44:29]query_string will be loaded in cgi processing [10:44:29]execute_cgi json_proto POST (null) [10:44:29]execute_cgi path=json_proto method=POST [10:44:29]POST find Content-Length [10:44:29]Host: 172.17.45.7:8080 [10:44:29]Content-Length: 677 [10:44:29]Content-Type: application/json [10:44:29] [10:44:29]POST finish read [10:44:29]Found Content-Length = 677 [10:44:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:29]execute_script... [10:44:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:29]POST & json_proto [10:44:29]process_json_proto [10:44:29]json parsed OK: [10:44:29]protocol is kg_v1.0 [10:44:29]action value=close_receipt [10:44:29]process_action close_receipt [10:44:29]cmd_close_receipt [10:44:29]MH_GetDate [10:44:29]Write to MH i2c: F0 00 00 EF 47 25 [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: F0 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: F0 09 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: F0 09 00 EF 47 00 92 72 A7 66 90 0F 3E 66 82 [10:44:29]GetLastDocTimeStamp 1722249835 [10:44:29]current date 1722249874 [10:44:29]FM_GetShiftState [10:44:29]SAM_PROTO_GetShiftState [10:44:29]wFMCommunicate request_size=4 [10:44:29]MH_SAM_APDU [10:44:29]CAPDU: 80 13 01 00 [10:44:29]Write to MH i2c: E2 08 00 F0 47 80 13 01 00 00 00 00 00 B4 [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:29]Read from MH i2c: E2 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 0E 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 0E 00 F0 47 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E2 [10:44:29]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:44:29]wFMCommunicate OK [10:44:29]SAM_PROTO_GetShiftState done [10:44:29]FM_GetShiftState done [10:44:29]opened in 1722211641 [10:44:29]opened+sec_in_day 1722298041 [10:44:29]quantity*price = 50036 [10:44:29]sum+1 = 50037 [10:44:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 107 29.07.2024 10:44 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118731 ФПД: 132726256250382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T104434&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118731&fm=132726256250382&tin=02508201610067®Number=0000000000092660&sum=50000 [10:44:30]StoreToDocumentArchive [10:44:30]shift 434 fd 118731 [10:44:30]save to /storage/0434/doc_00118731 [10:44:30]save last doc name /storage/0434/doc_00118731 to /storage/kkm_last_doc_name [10:44:30]save OK [10:44:30]Clear old archive folders... [10:44:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:30]tlvbuf is 01EBE030 [10:44:30]SAM_PROTO_ClearQueue [10:44:30]wFMCommunicate request_size=4 [10:44:30]MH_SAM_APDU [10:44:30]CAPDU: 80 09 00 00 [10:44:30]Write to MH i2c: E2 08 00 FD 47 80 09 00 00 00 00 00 00 B6 [10:44:30]Write i2c OK [10:44:30]MH_I2C_Read... [10:44:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:30]Read from MH i2c: E2 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: E2 03 00 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: E2 03 00 FD 47 00 90 00 B8 [10:44:30]RAPDU: 90 00 [10:44:30]wFMCommunicate OK [10:44:30]SAM_PROTO_ClearQueue done [10:44:30]KKMCreateOFDPacket [10:44:30]OFDProtocolAddRootSTLVToBuf [10:44:30]FM_MakeSignedData [10:44:30]FM_MakeSignedData [10:44:30]SAM_PROTO_SignData [10:44:30]wFMCommunicate request_size=4 [10:44:30]MH_SAM_APDU [10:44:30]CAPDU: 80 0D 01 02 [10:44:31]Write to MH i2c: E2 08 00 FE 47 80 0D 01 02 00 00 00 00 BE [10:44:31]Write i2c OK [10:44:31]MH_I2C_Read... [10:44:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:31]Read from MH i2c: E2 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 03 00 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 03 00 FE 47 00 90 00 B9 [10:44:31]RAPDU: 90 00 [10:44:31]wFMCommunicate OK [10:44:31]wFMCommunicate request_size=255 [10:44:31]MH_SAM_APDU [10:44:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 92 72 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CB CF 01 00 35 04 06 00 78 [10:44:31]Write to MH i2c: E2 02 01 FF 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 92 72 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CB CF 01 00 35 04 06 00 78 00 00 84 [10:44:31]Write i2c OK [10:44:31]MH_I2C_Read... [10:44:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:31]Read from MH i2c: E2 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 03 00 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 03 00 FF 47 00 90 00 BA [10:44:31]RAPDU: 90 00 [10:44:31]wFMCommunicate OK [10:44:31]wFMCommunicate request_size=10 [10:44:31]MH_SAM_APDU [10:44:31]CAPDU: 80 0D 02 02 05 B6 BD 5B 2E 0E [10:44:31]Write to MH i2c: E2 0D 00 00 48 80 0D 02 02 05 00 B6 BD 5B 2E 0E 00 00 D6 [10:44:31]Write i2c OK [10:44:31]MH_I2C_Read... [10:44:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:31]Read from MH i2c: E2 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 03 00 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 03 00 00 48 00 90 00 BC [10:44:31]RAPDU: 90 00 [10:44:31]wFMCommunicate OK [10:44:31]wFMCommunicate request_size=4 [10:44:31]MH_SAM_APDU [10:44:31]CAPDU: 80 0D 03 02 [10:44:31]Write to MH i2c: E2 08 00 01 48 80 0D 03 02 00 00 00 00 C4 [10:44:31]Write i2c OK [10:44:31]MH_I2C_Read... [10:44:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:31]Read from MH i2c: E2 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 0B 00 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 0B 00 01 48 00 FE 65 D5 18 7E FE D3 C1 90 00 25 [10:44:31]RAPDU: FE 65 D5 18 7E FE D3 C1 90 00 [10:44:31]wFMCommunicate OK [10:44:31]SAM_PROTO_SignData done [10:44:31]FM_MakeSignedData done [10:44:31]CreateOFDProtocolMessage [10:44:31]wFMCommunicate request_size=4 [10:44:31]MH_SAM_APDU [10:44:31]CAPDU: 80 11 00 00 [10:44:31]Write to MH i2c: E2 08 00 02 48 80 11 00 00 00 00 00 00 C4 [10:44:31]Write i2c OK [10:44:31]MH_I2C_Read... [10:44:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:31]Read from MH i2c: E2 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 17 00 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: E2 17 00 02 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1F [10:44:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:44:31]wFMCommunicate OK [10:44:31]CreateOFDProtocolMessage done [10:44:31]OFDSenderStorePacket 118731 [10:44:31]StoreOFDPacket docnum=118731 [10:44:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D9 4D 07 01 9E AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 92 72 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CB CF 01 00 35 04 06 00 78 B6 BD 5B 2E 0E FE 65 D5 18 7E FE D3 C1 [10:44:31]CheckFolder [10:44:31]dirname=/storage/ofd_packets [10:44:31]CheckFolder done [10:44:31]ProducePacketName [10:44:31]name=ofd_packets/00118731 [10:44:31]NVStorageSaveData ofd_packets/00118731 [10:44:31]File name is /storage/ofd_packets/00118731 [10:44:31]Write 301 bytes [10:44:31]NVStorageSaveData done [10:44:31]OFDSenderStorePacket done [10:44:31]KKMCreateOFDPacket done [10:44:31]NVStorageSaveData kkm_last_timestamp [10:44:31]File name is /storage/kkm_last_timestamp [10:44:31]Write 4 bytes [10:44:31]NVStorageSaveData done [10:44:31]ExternCall_PrintAddStr [10:44:31]wPrintStart [10:44:31]Write to MH i2c: 01 00 00 03 48 4B [10:44:31]Write i2c OK [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: 01 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: 01 07 00 [10:44:31]MH_I2C_Read... [10:44:31]Read from MH i2c: 01 07 00 03 48 00 00 00 00 00 FF 0F 60 [10:44:31]RasterBufferAndPrint [10:44:31]line Счет N : (1)949615 [10:44:31]line ИНН: 02508201610067 [10:44:31]line Контрольно-Кассовый Чек [10:44:31]line ПРОДАЖА [10:44:31]line ТРК (МРК, ГНК) : 61 [10:44:31]line Товар: 2710124130 [10:44:31]line Аи-92-К-4 [10:44:31]line 7.380 * 67.80 [10:44:31]line = 500.36 [10:44:31]line НДС 12% НСП 1% [10:44:31]line > о реализуемом товаре [10:44:31]line ОКРУГЛЕНИЕ: -0.36 [10:44:31]line ИТОГО: 500.00 [10:44:31]line Внесено: 500.00 [10:44:31]line СДАЧА: 0.00 [10:44:31]line НСП 1% : 4.43 [10:44:31]line НДС 12% : 53.14 [10:44:31]line Наличными: 500.00 [10:44:31]line Безнал.: 0.00 [10:44:31]line Место: АЗС № 134 "Партнер Нефть" [10:44:31]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:44:31]line СНО: Общий режим [10:44:31]line Чек 107 29.07.2024 10:44 [10:44:31]line Смена: 434 ФФД: 1.0 [10:44:31]line ЗНМ: 0300000044 [10:44:31]line РНМ: 0000000000092660 [10:44:31]line Версия ККМ: 001 [10:44:31]line ФМ: 0000000000874939 [10:44:31]line ФД: 118731 [10:44:31]line ФПД: 132726256250382 [10:44:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T104434&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118731&fm=132726256250382&tin=02508201610067®Number=0000000000092660&sum=50000 [10:44:31]written 0, free lines is 4095 [10:44:31]OFD Sender: Processing packet 118731 [packets to send 86, broken 85] [10:44:31]ProducePacketName [10:44:31]name=ofd_packets/00118731 [10:44:31]OFD Sender: To server: pG, [10:44:31]CommunicateWithHost lk.salyk.kg:30040 [10:44:31]ConnectInit lk.salyk.kg [10:44:31]Connected sock=9 [10:44:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D9 4D 07 01 9E AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 92 72 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CB CF 01 00 35 04 06 00 78 B6 BD 5B 2E 0E FE 65 D5 18 7E FE D3 C1 [10:44:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 22 16 47 00 14 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CB CF 01 00 F4 03 04 00 21 20 A7 66 B6 04 01 00 00 BB 0E 78 26 B9 22 94 26 [10:44:32]CommunicateWithHost err = 0 [10:44:32]CheckOFDResponse [10:44:32]1017 (14) - 77093643461234 [10:44:32]1041 (16) - 0000000000874939 [10:44:32]1040 (4) - 118731 [10:44:32]1012 (4) - 29.07.2024 04:52 [10:44:32]1206 (1) - 0 [10:44:32]OFD Sender: Remove packet 118731 [10:44:32]ProducePacketName [10:44:32]name=ofd_packets/00118731 [10:44:32]NVStorageDeleteData [10:44:32]Write to MH i2c: 01 00 00 2D 48 75 [10:44:32]Write i2c OK [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: 01 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: 01 07 00 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: 01 07 00 2D 48 00 00 00 00 00 D4 0C 5C [10:44:32]RasterBufferAndPrint [10:44:32]line [10:44:32]line [10:44:32]line [10:44:32]line [10:44:32]line [10:44:32]written 0, free lines is 3290 [10:44:32]MH_Cut [10:44:32]Write to MH i2c: D1 01 00 34 48 01 4E [10:44:32]Write i2c OK [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: D1 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: D1 01 00 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: D1 01 00 34 48 00 4D [10:44:32]Write to MH i2c: 01 00 00 35 48 7D [10:44:32]Write i2c OK [10:44:32]MH_I2C_Read... [10:44:32]OFD Sender: No OFD packet to send [10:44:32]*** Cut start [10:44:32]*** Partial cut [10:44:32]*** CUTSNS_PIN = 1 [10:44:33]*** CUTSNS_PIN = 0 [10:44:33]*** Brake cut motor [10:44:33]Read from MH i2c: 01 [10:44:33]MH_I2C_Read... [10:44:33]*** Stop cut motor [10:44:33]*** Cut end [10:44:33]Read from MH i2c: 01 07 00 [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: 01 07 00 35 48 00 00 00 00 00 FF 0F 92 [10:44:33]process_action close_receipt done [10:44:33]requested_data is exist [10:44:33]produce_requested_data [10:44:33]requested_item fm.sn is exist - process it [10:44:33]wFMCommunicate request_size=4 [10:44:33]MH_SAM_APDU [10:44:33]CAPDU: 80 11 00 00 [10:44:33]Write to MH i2c: E2 08 00 36 48 80 11 00 00 00 00 00 00 F8 [10:44:33]Write i2c OK [10:44:33]MH_I2C_Read... [10:44:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:33]Read from MH i2c: E2 [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: E2 17 00 [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: E2 17 00 36 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 53 [10:44:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:44:33]wFMCommunicate OK [10:44:33]requested_item fd.num is exist - process it [10:44:33]SAM_PROTO_GetFieldsCounters [10:44:33]wFMCommunicate request_size=4 [10:44:33]MH_SAM_APDU [10:44:33]CAPDU: 80 13 00 00 [10:44:33]Write to MH i2c: E2 08 00 37 48 80 13 00 00 00 00 00 00 FB [10:44:33]Write i2c OK [10:44:33]MH_I2C_Read... [10:44:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:33]Read from MH i2c: E2 [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: E2 62 00 [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: E2 62 00 37 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CB CF 01 00 0E 04 04 00 B2 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 B1 [10:44:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CB CF 01 00 0E 04 04 00 B2 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 [10:44:33]wFMCommunicate OK [10:44:33]SAM_PROTO_GetFieldsCounters done [10:44:33]requested_item shift.num is exist - process it [10:44:33]requested_item shift.opened is exist - process it [10:44:33]req_shift_opened [10:44:33]FM_GetShiftState [10:44:33]SAM_PROTO_GetShiftState [10:44:33]wFMCommunicate request_size=4 [10:44:33]MH_SAM_APDU [10:44:33]CAPDU: 80 13 01 00 [10:44:33]Write to MH i2c: E2 08 00 38 48 80 13 01 00 00 00 00 00 FD [10:44:33]Write i2c OK [10:44:33]MH_I2C_Read... [10:44:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:33]Read from MH i2c: E2 [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: E2 0E 00 [10:44:33]MH_I2C_Read... [10:44:33]Read from MH i2c: E2 0E 00 38 48 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 2B [10:44:33]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:44:33]wFMCommunicate OK [10:44:33]SAM_PROTO_GetShiftState done [10:44:33]FM_GetShiftState done [10:44:33]req_shift_opened done [10:44:33]requested_item shift.open_date is exist - process it [10:44:33]req_shift_open_date [10:44:33]req_shift_open_date done [10:44:33]produce_requested_data done [10:44:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118731,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:44:33]process_action_free close_receipt [10:44:33]json_value_free [10:44:33]json_value_free done [10:44:33]process_json_proto returns [10:44:33]Send response to host [10:44:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118731,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:44:33]free response buf [10:44:33]execute_script done [10:44:33]execute_script returns [10:44:33]free content buf [10:44:33]Sock 7.Close socket [10:44:33]Sock 7.Thread stoped [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]accept exits with 10 [10:45:47]New connection [10:45:47]New thread 3067383140 created [10:45:47]Thread 3067239780 joined [10:45:47]Waiting for new connection... [10:45:47] Sock 10.Parse request [10:45:47]Sock 10.Check first char [10:45:47]Sock 10.First char is OK [10:45:47]request: POST /json_proto HTTP/1.0 [10:45:47]Method: POST [10:45:47]URL: /json_proto [10:45:47]Method is POST - this is cgi request [10:45:47]url: /json_proto [10:45:47]query_string will be loaded in cgi processing [10:45:47]execute_cgi json_proto POST (null) [10:45:47]execute_cgi path=json_proto method=POST [10:45:47]POST find Content-Length [10:45:47]Host: 172.17.45.7:8080 [10:45:47]Content-Length: 675 [10:45:47]Content-Type: application/json [10:45:47] [10:45:47]POST finish read [10:45:47]Found Content-Length = 675 [10:45:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:47]execute_script... [10:45: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)949616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:47]POST & json_proto [10:45:47]process_json_proto [10:45:47]json parsed OK: [10:45:47]protocol is kg_v1.0 [10:45:47]action value=close_receipt [10:45:47]process_action close_receipt [10:45:47]cmd_close_receipt [10:45:47]MH_GetDate [10:45:47]Write to MH i2c: F0 00 00 39 48 70 [10:45:47]Write i2c OK [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: F0 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: F0 09 00 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: F0 09 00 39 48 00 E0 72 A7 66 90 0F 3E 66 1B [10:45:47]GetLastDocTimeStamp 1722249874 [10:45:47]current date 1722249952 [10:45:47]FM_GetShiftState [10:45:47]SAM_PROTO_GetShiftState [10:45:47]wFMCommunicate request_size=4 [10:45:47]MH_SAM_APDU [10:45:47]CAPDU: 80 13 01 00 [10:45:47]Write to MH i2c: E2 08 00 3A 48 80 13 01 00 00 00 00 00 FF [10:45:47]Write i2c OK [10:45:47]MH_I2C_Read... [10:45:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:47]Read from MH i2c: E2 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 0E 00 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 0E 00 3A 48 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 2D [10:45:47]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:45:47]wFMCommunicate OK [10:45:47]SAM_PROTO_GetShiftState done [10:45:47]FM_GetShiftState done [10:45:47]opened in 1722211641 [10:45:47]opened+sec_in_day 1722298041 [10:45:47]quantity*price = 80010 [10:45:47]sum+1 = 80011 [10:45:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 108 29.07.2024 10:45 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118732 ФПД: 8601265969910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T104552&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118732&fm=8601265969910&tin=02508201610067®Number=0000000000092660&sum=80000 [10:45:48]StoreToDocumentArchive [10:45:48]shift 434 fd 118732 [10:45:48]save to /storage/0434/doc_00118732 [10:45:48]save last doc name /storage/0434/doc_00118732 to /storage/kkm_last_doc_name [10:45:48]save OK [10:45:48]Clear old archive folders... [10:45:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:45:48]tlvbuf is 01E58AA0 [10:45:48]SAM_PROTO_ClearQueue [10:45:48]wFMCommunicate request_size=4 [10:45:48]MH_SAM_APDU [10:45:48]CAPDU: 80 09 00 00 [10:45:48]Write to MH i2c: E2 08 00 47 48 80 09 00 00 00 00 00 00 01 [10:45:48]Write i2c OK [10:45:48]MH_I2C_Read... [10:45:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:48]Read from MH i2c: E2 [10:45:48]MH_I2C_Read... [10:45:48]Read from MH i2c: E2 03 00 [10:45:48]MH_I2C_Read... [10:45:48]Read from MH i2c: E2 03 00 47 48 00 90 00 03 [10:45:48]RAPDU: 90 00 [10:45:48]wFMCommunicate OK [10:45:48]SAM_PROTO_ClearQueue done [10:45:48]KKMCreateOFDPacket [10:45:48]OFDProtocolAddRootSTLVToBuf [10:45:48]FM_MakeSignedData [10:45:48]FM_MakeSignedData [10:45:48]SAM_PROTO_SignData [10:45:48]wFMCommunicate request_size=4 [10:45:48]MH_SAM_APDU [10:45:48]CAPDU: 80 0D 01 02 [10:45:48]Write to MH i2c: E2 08 00 48 48 80 0D 01 02 00 00 00 00 09 [10:45:48]Write i2c OK [10:45:48]MH_I2C_Read... [10:45:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:48]Read from MH i2c: E2 [10:45:48]MH_I2C_Read... [10:45:48]Read from MH i2c: E2 03 00 [10:45:48]MH_I2C_Read... [10:45:48]Read from MH i2c: E2 03 00 48 48 00 90 00 04 [10:45:48]RAPDU: 90 00 [10:45:48]wFMCommunicate OK [10:45:48]wFMCommunicate request_size=255 [10:45:48]MH_SAM_APDU [10:45:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 E0 72 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CC CF 01 00 35 04 06 00 07 D2 A3 67 [10:45:48]Write to MH i2c: E2 02 01 49 48 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 E0 72 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CC CF 01 00 35 04 06 00 07 D2 A3 67 00 00 C9 [10:45:48]Write i2c OK [10:45:48]MH_I2C_Read... [10:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:49]Read from MH i2c: E2 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 03 00 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 03 00 49 48 00 90 00 05 [10:45:49]RAPDU: 90 00 [10:45:49]wFMCommunicate OK [10:45:49]wFMCommunicate request_size=7 [10:45:49]MH_SAM_APDU [10:45:49]CAPDU: 80 0D 02 02 02 1A F6 [10:45:49]Write to MH i2c: E2 0A 00 4A 48 80 0D 02 02 02 00 1A F6 00 00 20 [10:45:49]Write i2c OK [10:45:49]MH_I2C_Read... [10:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:49]Read from MH i2c: E2 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 03 00 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 03 00 4A 48 00 90 00 06 [10:45:49]RAPDU: 90 00 [10:45:49]wFMCommunicate OK [10:45:49]wFMCommunicate request_size=4 [10:45:49]MH_SAM_APDU [10:45:49]CAPDU: 80 0D 03 02 [10:45:49]Write to MH i2c: E2 08 00 4B 48 80 0D 03 02 00 00 00 00 0E [10:45:49]Write i2c OK [10:45:49]MH_I2C_Read... [10:45:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:49]Read from MH i2c: E2 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 0B 00 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 0B 00 4B 48 00 23 56 E7 06 EF 51 3A FA 90 00 E9 [10:45:49]RAPDU: 23 56 E7 06 EF 51 3A FA 90 00 [10:45:49]wFMCommunicate OK [10:45:49]SAM_PROTO_SignData done [10:45:49]FM_MakeSignedData done [10:45:49]CreateOFDProtocolMessage [10:45:49]wFMCommunicate request_size=4 [10:45:49]MH_SAM_APDU [10:45:49]CAPDU: 80 11 00 00 [10:45:49]Write to MH i2c: E2 08 00 4C 48 80 11 00 00 00 00 00 00 0E [10:45:49]Write i2c OK [10:45:49]MH_I2C_Read... [10:45:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:49]Read from MH i2c: E2 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 17 00 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 17 00 4C 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 69 [10:45:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:45:49]wFMCommunicate OK [10:45:49]CreateOFDProtocolMessage done [10:45:49]OFDSenderStorePacket 118732 [10:45:49]StoreOFDPacket docnum=118732 [10:45:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 35 A7 04 01 7E 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 E0 72 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CC CF 01 00 35 04 06 00 07 D2 A3 67 1A F6 23 56 E7 06 EF 51 3A FA [10:45:49]CheckFolder [10:45:49]dirname=/storage/ofd_packets [10:45:49]CheckFolder done [10:45:49]ProducePacketName [10:45:49]name=ofd_packets/00118732 [10:45:49]NVStorageSaveData ofd_packets/00118732 [10:45:49]File name is /storage/ofd_packets/00118732 [10:45:49]Write 298 bytes [10:45:49]NVStorageSaveData done [10:45:49]OFDSenderStorePacket done [10:45:49]KKMCreateOFDPacket done [10:45:49]NVStorageSaveData kkm_last_timestamp [10:45:49]File name is /storage/kkm_last_timestamp [10:45:49]Write 4 bytes [10:45:49]NVStorageSaveData done [10:45:49]ExternCall_PrintAddStr [10:45:49]wPrintStart [10:45:49]Write to MH i2c: 01 00 00 4D 48 95 [10:45:49]Write i2c OK [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: 01 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: 01 07 00 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: 01 07 00 4D 48 00 00 00 00 00 FF 0F AA [10:45:49]RasterBufferAndPrint [10:45:49]line Счет N : (1)949616 [10:45:49]line ИНН: 02508201610067 [10:45:49]line Контрольно-Кассовый Чек [10:45:49]line ПРОДАЖА [10:45:49]line ТРК (МРК, ГНК) : 54 [10:45:49]line Товар: 2710194800 [10:45:49]line ДТ-К-5 [10:45:49]line 10.500 * 76.20 [10:45:49]line = 800.10 [10:45:49]line НДС 12% НСП 1% [10:45:49]line > о реализуемом товаре [10:45:49]line ОКРУГЛЕНИЕ: -0.10 [10:45:49]line ИТОГО: 800.00 [10:45:49]line Внесено: 800.00 [10:45:49]line СДАЧА: 0.00 [10:45:49]line НСП 1% : 7.08 [10:45:49]line НДС 12% : 84.97 [10:45:49]line Наличными: 800.00 [10:45:49]line Безнал.: 0.00 [10:45:49]line Место: АЗС № 134 "Партнер Нефть" [10:45:49]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:45:49]line СНО: Общий режим [10:45:49]line Чек 108 29.07.2024 10:45 [10:45:49]line Смена: 434 ФФД: 1.0 [10:45:49]line ЗНМ: 0300000044 [10:45:49]line РНМ: 0000000000092660 [10:45:49]line Версия ККМ: 001 [10:45:49]line ФМ: 0000000000874939 [10:45:49]line ФД: 118732 [10:45:49]line ФПД: 8601265969910 [10:45:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T104552&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118732&fm=8601265969910&tin=02508201610067®Number=0000000000092660&sum=80000 [10:45:49]OFD Sender: Processing packet 118732 [packets to send 86, broken 85] [10:45:49]ProducePacketName [10:45:49]name=ofd_packets/00118732 [10:45:49]OFD Sender: To server: pG, [10:45:49]CommunicateWithHost lk.salyk.kg:30040 [10:45:49]ConnectInit lk.salyk.kg [10:45:49]written 0, free lines is 4095 [10:45:49]Connected sock=9 [10:45:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 35 A7 04 01 7E 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 E0 72 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CC CF 01 00 35 04 06 00 07 D2 A3 67 1A F6 23 56 E7 06 EF 51 3A FA [10:45:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4F A6 47 00 17 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 34 39 33 39 10 04 04 00 CC CF 01 00 F4 03 04 00 6E 20 A7 66 B6 04 01 00 00 DF 3C FF B7 F5 35 1B 82 [10:45:49]CommunicateWithHost err = 0 [10:45:49]CheckOFDResponse [10:45:49]1017 (14) - 77093643461234 [10:45:49]1041 (16) - 0000000000874939 [10:45:49]1040 (4) - 118732 [10:45:49]1012 (4) - 29.07.2024 04:54 [10:45:49]1206 (1) - 0 [10:45:49]OFD Sender: Remove packet 118732 [10:45:49]ProducePacketName [10:45:49]name=ofd_packets/00118732 [10:45:49]NVStorageDeleteData [10:45:49]Write to MH i2c: 01 00 00 77 48 BF [10:45:49]Write i2c OK [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: 01 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: 01 07 00 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: 01 07 00 77 48 00 00 00 00 00 D9 0C AB [10:45:49]RasterBufferAndPrint [10:45:49]line [10:45:49]line [10:45:49]line [10:45:49]line [10:45:49]line [10:45:49]written 0, free lines is 3296 [10:45:49]MH_Cut [10:45:49]Write to MH i2c: D1 01 00 7E 48 01 98 [10:45:49]Write i2c OK [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: D1 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: D1 01 00 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: D1 01 00 7E 48 00 97 [10:45:49]Write to MH i2c: 01 00 00 7F 48 C7 [10:45:49]Write i2c OK [10:45:49]MH_I2C_Read... [10:45:50]OFD Sender: No OFD packet to send [10:45:50]*** Cut start [10:45:50]*** Partial cut [10:45:50]*** CUTSNS_PIN = 1 [10:45:50]*** CUTSNS_PIN = 0 [10:45:50]*** Brake cut motor [10:45:51]Read from MH i2c: 01 [10:45:51]MH_I2C_Read... [10:45:51]*** Stop cut motor [10:45:51]*** Cut end [10:45:51]Read from MH i2c: 01 07 00 [10:45:51]MH_I2C_Read... [10:45:51]Read from MH i2c: 01 07 00 7F 48 00 00 00 00 00 FF 0F DC [10:45:51]process_action close_receipt done [10:45:51]requested_data is exist [10:45:51]produce_requested_data [10:45:51]requested_item fm.sn is exist - process it [10:45:51]wFMCommunicate request_size=4 [10:45:51]MH_SAM_APDU [10:45:51]CAPDU: 80 11 00 00 [10:45:51]Write to MH i2c: E2 08 00 80 48 80 11 00 00 00 00 00 00 42 [10:45:51]Write i2c OK [10:45:51]MH_I2C_Read... [10:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:51]Read from MH i2c: E2 [10:45:51]MH_I2C_Read... [10:45:51]Read from MH i2c: E2 17 00 [10:45:51]MH_I2C_Read... [10:45:51]Read from MH i2c: E2 17 00 80 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9D [10:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:45:51]wFMCommunicate OK [10:45:51]requested_item fd.num is exist - process it [10:45:51]SAM_PROTO_GetFieldsCounters [10:45:51]wFMCommunicate request_size=4 [10:45:51]MH_SAM_APDU [10:45:51]CAPDU: 80 13 00 00 [10:45:51]Write to MH i2c: E2 08 00 81 48 80 13 00 00 00 00 00 00 45 [10:45:51]Write i2c OK [10:45:51]MH_I2C_Read... [10:45:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:51]Read from MH i2c: E2 [10:45:51]MH_I2C_Read... [10:45:51]Read from MH i2c: E2 62 00 [10:45:51]MH_I2C_Read... [10:45:51]Read from MH i2c: E2 62 00 81 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CC CF 01 00 0E 04 04 00 B2 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 FF [10:45: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CC CF 01 00 0E 04 04 00 B2 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 [10:45:51]wFMCommunicate OK [10:45:51]SAM_PROTO_GetFieldsCounters done [10:45:51]requested_item shift.num is exist - process it [10:45:51]requested_item shift.opened is exist - process it [10:45:51]req_shift_opened [10:45:51]FM_GetShiftState [10:45:51]SAM_PROTO_GetShiftState [10:45:51]wFMCommunicate request_size=4 [10:45:51]MH_SAM_APDU [10:45:51]CAPDU: 80 13 01 00 [10:45:51]Write to MH i2c: E2 08 00 82 48 80 13 01 00 00 00 00 00 47 [10:45:51]Write i2c OK [10:45:51]MH_I2C_Read... [10:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:51]Read from MH i2c: E2 [10:45:51]MH_I2C_Read... [10:45:51]Read from MH i2c: E2 0E 00 [10:45:51]MH_I2C_Read... [10:45:51]Read from MH i2c: E2 0E 00 82 48 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 75 [10:45:51]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:45:51]wFMCommunicate OK [10:45:51]SAM_PROTO_GetShiftState done [10:45:51]FM_GetShiftState done [10:45:51]req_shift_opened done [10:45:51]requested_item shift.open_date is exist - process it [10:45:51]req_shift_open_date [10:45:51]req_shift_open_date done [10:45:51]produce_requested_data done [10:45:51]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118732,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:45:51]process_action_free close_receipt [10:45:51]json_value_free [10:45:51]json_value_free done [10:45:51]process_json_proto returns [10:45:51]Send response to host [10:45:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118732,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:45:51]free response buf [10:45:51]execute_script done [10:45:51]execute_script returns [10:45:51]free content buf [10:45:51]Sock 10.Close socket [10:45:51]Sock 10.Thread stoped [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47: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:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:14]accept exits with 7 [10:49:14]New connection [10:49:14]New thread 3067239780 created [10:49:14]Thread 3067383140 joined [10:49:14]Waiting for new connection... [10:49:14] Sock 7.Parse request [10:49:14]Sock 7.Check first char [10:49:14]Sock 7.First char is OK [10:49:14]request: POST /json_proto HTTP/1.0 [10:49:14]Method: POST [10:49:14]URL: /json_proto [10:49:14]Method is POST - this is cgi request [10:49:14]url: /json_proto [10:49:14]query_string will be loaded in cgi processing [10:49:14]execute_cgi json_proto POST (null) [10:49:14]execute_cgi path=json_proto method=POST [10:49:14]POST find Content-Length [10:49:14]Host: 172.17.45.7:8080 [10:49:14]Content-Length: 677 [10:49:14]Content-Type: application/json [10:49:14] [10:49:14]POST finish read [10:49:14]Found Content-Length = 677 [10:49:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.970, "sum" : 540.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:14]execute_script... [10:49:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.970, "sum" : 540.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:14]POST & json_proto [10:49:14]process_json_proto [10:49:14]json parsed OK: [10:49:14]protocol is kg_v1.0 [10:49:14]action value=close_receipt [10:49:14]process_action close_receipt [10:49:14]cmd_close_receipt [10:49:14]MH_GetDate [10:49:14]Write to MH i2c: F0 00 00 83 48 BA [10:49:14]Write i2c OK [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: F0 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: F0 09 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: F0 09 00 83 48 00 AF 73 A7 66 90 0F 3E 66 35 [10:49:14]GetLastDocTimeStamp 1722249952 [10:49:14]current date 1722250159 [10:49:14]FM_GetShiftState [10:49:14]SAM_PROTO_GetShiftState [10:49:14]wFMCommunicate request_size=4 [10:49:14]MH_SAM_APDU [10:49:14]CAPDU: 80 13 01 00 [10:49:14]Write to MH i2c: E2 08 00 84 48 80 13 01 00 00 00 00 00 49 [10:49:14]Write i2c OK [10:49:14]MH_I2C_Read... [10:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:14]Read from MH i2c: E2 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 0E 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 0E 00 84 48 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 77 [10:49:14]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:49:14]wFMCommunicate OK [10:49:14]SAM_PROTO_GetShiftState done [10:49:14]FM_GetShiftState done [10:49:14]opened in 1722211641 [10:49:14]opened+sec_in_day 1722298041 [10:49:14]quantity*price = 54036 [10:49:14]sum+1 = 54038 [10:49:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.38 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 109 29.07.2024 10:49 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118733 ФПД: 1041071102240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T104919&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118733&fm=1041071102240&tin=02508201610067®Number=0000000000092660&sum=54000 [10:49:15]StoreToDocumentArchive [10:49:15]shift 434 fd 118733 [10:49:15]save to /storage/0434/doc_00118733 [10:49:15]save last doc name /storage/0434/doc_00118733 to /storage/kkm_last_doc_name [10:49:15]save OK [10:49:15]Clear old archive folders... [10:49:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:15]tlvbuf is 01ED67C0 [10:49:15]SAM_PROTO_ClearQueue [10:49:15]wFMCommunicate request_size=4 [10:49:15]MH_SAM_APDU [10:49:15]CAPDU: 80 09 00 00 [10:49:15]Write to MH i2c: E2 08 00 91 48 80 09 00 00 00 00 00 00 4B [10:49:15]Write i2c OK [10:49:15]MH_I2C_Read... [10:49:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:15]Read from MH i2c: E2 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 03 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 03 00 91 48 00 90 00 4D [10:49:15]RAPDU: 90 00 [10:49:15]wFMCommunicate OK [10:49:15]SAM_PROTO_ClearQueue done [10:49:15]KKMCreateOFDPacket [10:49:15]OFDProtocolAddRootSTLVToBuf [10:49:15]FM_MakeSignedData [10:49:15]FM_MakeSignedData [10:49:15]SAM_PROTO_SignData [10:49:15]wFMCommunicate request_size=4 [10:49:15]MH_SAM_APDU [10:49:15]CAPDU: 80 0D 01 02 [10:49:15]Write to MH i2c: E2 08 00 92 48 80 0D 01 02 00 00 00 00 53 [10:49:15]Write i2c OK [10:49:15]MH_I2C_Read... [10:49:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:15]Read from MH i2c: E2 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 03 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 03 00 92 48 00 90 00 4E [10:49:15]RAPDU: 90 00 [10:49:15]wFMCommunicate OK [10:49:15]wFMCommunicate request_size=255 [10:49:15]MH_SAM_APDU [10:49:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 22 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 15 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 AF 73 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CD CF 01 00 35 04 06 00 00 [10:49:15]Write to MH i2c: E2 02 01 93 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 22 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 15 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 AF 73 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CD CF 01 00 35 04 06 00 00 00 00 F0 [10:49:15]Write i2c OK [10:49:15]MH_I2C_Read... [10:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:15]Read from MH i2c: E2 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 03 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 03 00 93 48 00 90 00 4F [10:49:15]RAPDU: 90 00 [10:49:15]wFMCommunicate OK [10:49:15]wFMCommunicate request_size=10 [10:49:15]MH_SAM_APDU [10:49:15]CAPDU: 80 0D 02 02 05 F2 64 AC 59 20 [10:49:15]Write to MH i2c: E2 0D 00 94 48 80 0D 02 02 05 00 F2 64 AC 59 20 00 00 DB [10:49:15]Write i2c OK [10:49:15]MH_I2C_Read... [10:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:15]Read from MH i2c: E2 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 03 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 03 00 94 48 00 90 00 50 [10:49:15]RAPDU: 90 00 [10:49:15]wFMCommunicate OK [10:49:15]wFMCommunicate request_size=4 [10:49:15]MH_SAM_APDU [10:49:15]CAPDU: 80 0D 03 02 [10:49:15]Write to MH i2c: E2 08 00 95 48 80 0D 03 02 00 00 00 00 58 [10:49:15]Write i2c OK [10:49:15]MH_I2C_Read... [10:49:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:15]Read from MH i2c: E2 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 0B 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 0B 00 95 48 00 27 FA 9D 14 55 48 B6 3A 90 00 B8 [10:49:15]RAPDU: 27 FA 9D 14 55 48 B6 3A 90 00 [10:49:15]wFMCommunicate OK [10:49:15]SAM_PROTO_SignData done [10:49:15]FM_MakeSignedData done [10:49:15]CreateOFDProtocolMessage [10:49:15]wFMCommunicate request_size=4 [10:49:15]MH_SAM_APDU [10:49:15]CAPDU: 80 11 00 00 [10:49:15]Write to MH i2c: E2 08 00 96 48 80 11 00 00 00 00 00 00 58 [10:49:15]Write i2c OK [10:49:15]MH_I2C_Read... [10:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:15]Read from MH i2c: E2 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 17 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 17 00 96 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B3 [10:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:49:15]wFMCommunicate OK [10:49:15]CreateOFDProtocolMessage done [10:49:15]OFDSenderStorePacket 118733 [10:49:15]StoreOFDPacket docnum=118733 [10:49:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 49 EB 07 01 E2 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 22 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 15 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 AF 73 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CD CF 01 00 35 04 06 00 00 F2 64 AC 59 20 27 FA 9D 14 55 48 B6 3A [10:49:15]CheckFolder [10:49:15]dirname=/storage/ofd_packets [10:49:15]CheckFolder done [10:49:15]ProducePacketName [10:49:15]name=ofd_packets/00118733 [10:49:15]NVStorageSaveData ofd_packets/00118733 [10:49:15]File name is /storage/ofd_packets/00118733 [10:49:15]Write 301 bytes [10:49:15]NVStorageSaveData done [10:49:15]OFDSenderStorePacket done [10:49:15]KKMCreateOFDPacket done [10:49:15]NVStorageSaveData kkm_last_timestamp [10:49:15]File name is /storage/kkm_last_timestamp [10:49:15]Write 4 bytes [10:49:15]NVStorageSaveData done [10:49:15]ExternCall_PrintAddStr [10:49:15]wPrintStart [10:49:15]Write to MH i2c: 01 00 00 97 48 DF [10:49:15]Write i2c OK [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: 01 [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: 01 07 00 [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: 01 07 00 97 48 00 00 00 00 00 FF 0F F4 [10:49:16]RasterBufferAndPrint [10:49:16]line Счет N : (1)949617 [10:49:16]line ИНН: 02508201610067 [10:49:16]line Контрольно-Кассовый Чек [10:49:16]line ПРОДАЖА [10:49:16]line ТРК (МРК, ГНК) : 51 [10:49:16]line Товар: 2710124130 [10:49:16]line Аи-92-К-4 [10:49:16]line 7.970 * 67.80 [10:49:16]line = 540.37 [10:49:16]line НДС 12% НСП 1% [10:49:16]line > о реализуемом товаре [10:49:16]line ОКРУГЛЕНИЕ: -0.37 [10:49:16]line ИТОГО: 540.00 [10:49:16]line Внесено: 540.00 [10:49:16]line СДАЧА: 0.00 [10:49:16]line НСП 1% : 4.78 [10:49:16]line НДС 12% : 57.38 [10:49:16]line Наличными: 540.00 [10:49:16]line Безнал.: 0.00 [10:49:16]line Место: АЗС № 134 "Партнер Нефть" [10:49:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:49:16]line СНО: Общий режим [10:49:16]line Чек 109 29.07.2024 10:49 [10:49:16]line Смена: 434 ФФД: 1.0 [10:49:16]line ЗНМ: 0300000044 [10:49:16]line РНМ: 0000000000092660 [10:49:16]line Версия ККМ: 001 [10:49:16]line ФМ: 0000000000874939 [10:49:16]line ФД: 118733 [10:49:16]line ФПД: 1041071102240 [10:49:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T104919&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118733&fm=1041071102240&tin=02508201610067®Number=0000000000092660&sum=54000 [10:49:16]written 0, free lines is 4095 [10:49:16]OFD Sender: Processing packet 118733 [packets to send 86, broken 85] [10:49:16]ProducePacketName [10:49:16]name=ofd_packets/00118733 [10:49:16]OFD Sender: To server: pG, [10:49:16]CommunicateWithHost lk.salyk.kg:30040 [10:49:16]ConnectInit lk.salyk.kg [10:49:16]Connected sock=10 [10:49:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 49 EB 07 01 E2 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 22 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 15 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 AF 73 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CD CF 01 00 35 04 06 00 00 F2 64 AC 59 20 27 FA 9D 14 55 48 B6 3A [10:49:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D3 E8 47 00 32 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CD CF 01 00 F4 03 04 00 3D 21 A7 66 B6 04 01 00 00 F0 7D 4F 56 EB E7 64 62 [10:49:16]CommunicateWithHost err = 0 [10:49:16]CheckOFDResponse [10:49:16]1017 (14) - 77093643461234 [10:49:16]1041 (16) - 0000000000874939 [10:49:16]1040 (4) - 118733 [10:49:16]1012 (4) - 29.07.2024 04:57 [10:49:16]1206 (1) - 0 [10:49:16]OFD Sender: Remove packet 118733 [10:49:16]ProducePacketName [10:49:16]name=ofd_packets/00118733 [10:49:16]NVStorageDeleteData [10:49:16]Write to MH i2c: 01 00 00 C1 48 09 [10:49:16]Write i2c OK [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: 01 [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: 01 07 00 [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: 01 07 00 C1 48 00 00 00 00 00 DC 0C F8 [10:49:16]RasterBufferAndPrint [10:49:16]line [10:49:16]line [10:49:16]line [10:49:16]line [10:49:16]line [10:49:16]written 0, free lines is 3301 [10:49:16]MH_Cut [10:49:16]Write to MH i2c: D1 01 00 C8 48 01 E2 [10:49:16]Write i2c OK [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: D1 [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: D1 01 00 [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: D1 01 00 C8 48 00 E1 [10:49:16]Write to MH i2c: 01 00 00 C9 48 11 [10:49:16]Write i2c OK [10:49:16]MH_I2C_Read... [10:49:16]OFD Sender: No OFD packet to send [10:49:17]*** Cut start [10:49:17]*** Partial cut [10:49:17]*** CUTSNS_PIN = 1 [10:49:17]*** CUTSNS_PIN = 0 [10:49:17]*** Brake cut motor [10:49:17]Read from MH i2c: 01 [10:49:17]MH_I2C_Read... [10:49:17]*** Stop cut motor [10:49:17]*** Cut end [10:49:17]Read from MH i2c: 01 07 00 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: 01 07 00 C9 48 00 00 00 00 00 FF 0F 26 [10:49:17]process_action close_receipt done [10:49:17]requested_data is exist [10:49:17]produce_requested_data [10:49:17]requested_item fm.sn is exist - process it [10:49:17]wFMCommunicate request_size=4 [10:49:17]MH_SAM_APDU [10:49:17]CAPDU: 80 11 00 00 [10:49:17]Write to MH i2c: E2 08 00 CA 48 80 11 00 00 00 00 00 00 8C [10:49:17]Write i2c OK [10:49:17]MH_I2C_Read... [10:49:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:17]Read from MH i2c: E2 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 17 00 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 17 00 CA 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E7 [10:49:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:49:17]wFMCommunicate OK [10:49:17]requested_item fd.num is exist - process it [10:49:17]SAM_PROTO_GetFieldsCounters [10:49:17]wFMCommunicate request_size=4 [10:49:17]MH_SAM_APDU [10:49:17]CAPDU: 80 13 00 00 [10:49:17]Write to MH i2c: E2 08 00 CB 48 80 13 00 00 00 00 00 00 8F [10:49:17]Write i2c OK [10:49:17]MH_I2C_Read... [10:49:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:17]Read from MH i2c: E2 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 62 00 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 62 00 CB 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CD CF 01 00 0E 04 04 00 B2 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 4D [10:49: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CD CF 01 00 0E 04 04 00 B2 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 [10:49:17]wFMCommunicate OK [10:49:17]SAM_PROTO_GetFieldsCounters done [10:49:17]requested_item shift.num is exist - process it [10:49:17]requested_item shift.opened is exist - process it [10:49:17]req_shift_opened [10:49:17]FM_GetShiftState [10:49:17]SAM_PROTO_GetShiftState [10:49:17]wFMCommunicate request_size=4 [10:49:17]MH_SAM_APDU [10:49:17]CAPDU: 80 13 01 00 [10:49:17]Write to MH i2c: E2 08 00 CC 48 80 13 01 00 00 00 00 00 91 [10:49:17]Write i2c OK [10:49:17]MH_I2C_Read... [10:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:18]Read from MH i2c: E2 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E2 0E 00 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E2 0E 00 CC 48 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 BF [10:49:18]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:49:18]wFMCommunicate OK [10:49:18]SAM_PROTO_GetShiftState done [10:49:18]FM_GetShiftState done [10:49:18]req_shift_opened done [10:49:18]requested_item shift.open_date is exist - process it [10:49:18]req_shift_open_date [10:49:18]req_shift_open_date done [10:49:18]produce_requested_data done [10:49:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118733,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:49:18]process_action_free close_receipt [10:49:18]json_value_free [10:49:18]json_value_free done [10:49:18]process_json_proto returns [10:49:18]Send response to host [10:49:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118733,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:49:18]free response buf [10:49:18]execute_script done [10:49:18]execute_script returns [10:49:18]free content buf [10:49:18]Sock 7.Close socket [10:49:18]Sock 7.Thread stoped [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:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:19]accept exits with 9 [10:52:19]New connection [10:52:19]New thread 3067383140 created [10:52:19]Thread 3067239780 joined [10:52:19]Waiting for new connection... [10:52:19] Sock 9.Parse request [10:52:19]Sock 9.Check first char [10:52:19]Sock 9.First char is OK [10:52:19]request: POST /json_proto HTTP/1.0 [10:52:19]Method: POST [10:52:19]URL: /json_proto [10:52:19]Method is POST - this is cgi request [10:52:19]url: /json_proto [10:52:19]query_string will be loaded in cgi processing [10:52:19]execute_cgi json_proto POST (null) [10:52:19]execute_cgi path=json_proto method=POST [10:52:19]POST find Content-Length [10:52:19]Host: 172.17.45.7:8080 [10:52:19]Content-Length: 678 [10:52:19]Content-Type: application/json [10:52:19] [10:52:19]POST finish read [10:52:19]Found Content-Length = 678 [10:52:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:19]execute_script... [10:52:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:19]POST & json_proto [10:52:19]process_json_proto [10:52:19]json parsed OK: [10:52:19]protocol is kg_v1.0 [10:52:19]action value=close_receipt [10:52:19]process_action close_receipt [10:52:19]cmd_close_receipt [10:52:19]MH_GetDate [10:52:19]Write to MH i2c: F0 00 00 CD 48 04 [10:52:19]Write i2c OK [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: F0 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: F0 09 00 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: F0 09 00 CD 48 00 68 74 A7 66 90 0F 3E 66 39 [10:52:19]GetLastDocTimeStamp 1722250159 [10:52:19]current date 1722250344 [10:52:19]FM_GetShiftState [10:52:19]SAM_PROTO_GetShiftState [10:52:19]wFMCommunicate request_size=4 [10:52:19]MH_SAM_APDU [10:52:19]CAPDU: 80 13 01 00 [10:52:19]Write to MH i2c: E2 08 00 CE 48 80 13 01 00 00 00 00 00 93 [10:52:19]Write i2c OK [10:52:19]MH_I2C_Read... [10:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:19]Read from MH i2c: E2 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: E2 0E 00 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: E2 0E 00 CE 48 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C1 [10:52:19]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:52:19]wFMCommunicate OK [10:52:19]SAM_PROTO_GetShiftState done [10:52:19]FM_GetShiftState done [10:52:19]opened in 1722211641 [10:52:19]opened+sec_in_day 1722298041 [10:52:19]quantity*price = 70037 [10:52:19]sum+1 = 70038 [10:52:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 110 29.07.2024 10:52 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118734 ФПД: 22737685069039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T105224&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118734&fm=22737685069039&tin=02508201610067®Number=0000000000092660&sum=70000 [10:52:20]StoreToDocumentArchive [10:52:20]shift 434 fd 118734 [10:52:20]save to /storage/0434/doc_00118734 [10:52:20]save last doc name /storage/0434/doc_00118734 to /storage/kkm_last_doc_name [10:52:20]save OK [10:52:20]Clear old archive folders... [10:52:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:20]tlvbuf is B6FC13A0 [10:52:20]SAM_PROTO_ClearQueue [10:52:20]wFMCommunicate request_size=4 [10:52:20]MH_SAM_APDU [10:52:20]CAPDU: 80 09 00 00 [10:52:20]Write to MH i2c: E2 08 00 DB 48 80 09 00 00 00 00 00 00 95 [10:52:20]Write i2c OK [10:52:20]MH_I2C_Read... [10:52:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:20]Read from MH i2c: E2 [10:52:20]MH_I2C_Read... [10:52:20]Read from MH i2c: E2 03 00 [10:52:20]MH_I2C_Read... [10:52:20]Read from MH i2c: E2 03 00 DB 48 00 90 00 97 [10:52:20]RAPDU: 90 00 [10:52:20]wFMCommunicate OK [10:52:20]SAM_PROTO_ClearQueue done [10:52:20]KKMCreateOFDPacket [10:52:20]OFDProtocolAddRootSTLVToBuf [10:52:20]FM_MakeSignedData [10:52:20]FM_MakeSignedData [10:52:20]SAM_PROTO_SignData [10:52:20]wFMCommunicate request_size=4 [10:52:20]MH_SAM_APDU [10:52:20]CAPDU: 80 0D 01 02 [10:52:20]Write to MH i2c: E2 08 00 DC 48 80 0D 01 02 00 00 00 00 9D [10:52:20]Write i2c OK [10:52:20]MH_I2C_Read... [10:52:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:20]Read from MH i2c: E2 [10:52:20]MH_I2C_Read... [10:52:20]Read from MH i2c: E2 03 00 [10:52:20]MH_I2C_Read... [10:52:20]Read from MH i2c: E2 03 00 DC 48 00 90 00 98 [10:52:20]RAPDU: 90 00 [10:52:20]wFMCommunicate OK [10:52:20]wFMCommunicate request_size=255 [10:52:20]MH_SAM_APDU [10:52:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 68 74 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CE CF 01 00 35 04 06 00 14 [10:52:20]Write to MH i2c: E2 02 01 DD 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 68 74 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CE CF 01 00 35 04 06 00 14 00 00 C4 [10:52:20]Write i2c OK [10:52:20]MH_I2C_Read... [10:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:20]Read from MH i2c: E2 [10:52:20]MH_I2C_Read... [10:52:20]Read from MH i2c: E2 03 00 [10:52:20]MH_I2C_Read... [10:52:20]Read from MH i2c: E2 03 00 DD 48 00 90 00 99 [10:52:20]RAPDU: 90 00 [10:52:20]wFMCommunicate OK [10:52:20]wFMCommunicate request_size=10 [10:52:20]MH_SAM_APDU [10:52:20]CAPDU: 80 0D 02 02 05 AE 07 A4 3C EF [10:52:20]Write to MH i2c: E2 0D 00 DE 48 80 0D 02 02 05 00 AE 07 A4 3C EF 00 00 2E [10:52:20]Write i2c OK [10:52:20]MH_I2C_Read... [10:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:20]Read from MH i2c: E2 [10:52:20]MH_I2C_Read... [10:52:20]Read from MH i2c: E2 03 00 [10:52:20]MH_I2C_Read... [10:52:20]Read from MH i2c: E2 03 00 DE 48 00 90 00 9A [10:52:20]RAPDU: 90 00 [10:52:20]wFMCommunicate OK [10:52:20]wFMCommunicate request_size=4 [10:52:20]MH_SAM_APDU [10:52:20]CAPDU: 80 0D 03 02 [10:52:20]Write to MH i2c: E2 08 00 DF 48 80 0D 03 02 00 00 00 00 A2 [10:52:20]Write i2c OK [10:52:20]MH_I2C_Read... [10:52:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:20]Read from MH i2c: E2 [10:52:20]MH_I2C_Read... [10:52:20]Read from MH i2c: E2 0B 00 [10:52:20]MH_I2C_Read... [10:52:20]Read from MH i2c: E2 0B 00 DF 48 00 43 38 0A FA 4A 3E B3 70 90 00 CD [10:52:20]RAPDU: 43 38 0A FA 4A 3E B3 70 90 00 [10:52:20]wFMCommunicate OK [10:52:20]SAM_PROTO_SignData done [10:52:20]FM_MakeSignedData done [10:52:20]CreateOFDProtocolMessage [10:52:20]wFMCommunicate request_size=4 [10:52:20]MH_SAM_APDU [10:52:20]CAPDU: 80 11 00 00 [10:52:20]Write to MH i2c: E2 08 00 E0 48 80 11 00 00 00 00 00 00 A2 [10:52:20]Write i2c OK [10:52:20]MH_I2C_Read... [10:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:20]Read from MH i2c: E2 [10:52:20]MH_I2C_Read... [10:52:20]Read from MH i2c: E2 17 00 [10:52:20]MH_I2C_Read... [10:52:20]Read from MH i2c: E2 17 00 E0 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FD [10:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:52:20]wFMCommunicate OK [10:52:20]CreateOFDProtocolMessage done [10:52:20]OFDSenderStorePacket 118734 [10:52:20]StoreOFDPacket docnum=118734 [10:52:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 06 92 07 01 5D C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 68 74 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CE CF 01 00 35 04 06 00 14 AE 07 A4 3C EF 43 38 0A FA 4A 3E B3 70 [10:52:20]CheckFolder [10:52:20]dirname=/storage/ofd_packets [10:52:20]CheckFolder done [10:52:20]ProducePacketName [10:52:20]name=ofd_packets/00118734 [10:52:20]NVStorageSaveData ofd_packets/00118734 [10:52:20]File name is /storage/ofd_packets/00118734 [10:52:20]Write 301 bytes [10:52:20]NVStorageSaveData done [10:52:20]OFDSenderStorePacket done [10:52:20]KKMCreateOFDPacket done [10:52:20]NVStorageSaveData kkm_last_timestamp [10:52:20]File name is /storage/kkm_last_timestamp [10:52:20]Write 4 bytes [10:52:20]NVStorageSaveData done [10:52:20]ExternCall_PrintAddStr [10:52:20]wPrintStart [10:52:20]Write to MH i2c: 01 00 00 E1 48 29 [10:52:20]Write i2c OK [10:52:20]MH_I2C_Read... [10:52:20]Read from MH i2c: 01 [10:52:20]MH_I2C_Read... [10:52:20]Read from MH i2c: 01 07 00 [10:52:20]MH_I2C_Read... [10:52:20]Read from MH i2c: 01 07 00 E1 48 00 00 00 00 00 FF 0F 3E [10:52:20]RasterBufferAndPrint [10:52:20]line Счет N : (1)949618 [10:52:20]line ИНН: 02508201610067 [10:52:20]line Контрольно-Кассовый Чек [10:52:20]line ПРОДАЖА [10:52:20]line ТРК (МРК, ГНК) : 41 [10:52:20]line Товар: 2710124130 [10:52:20]line Аи-92-К-4 [10:52:20]line 10.330 * 67.80 [10:52:20]line = 700.37 [10:52:20]line НДС 12% НСП 1% [10:52:20]line > о реализуемом товаре [10:52:20]line ОКРУГЛЕНИЕ: -0.37 [10:52:20]line ИТОГО: 700.00 [10:52:20]line Внесено: 700.00 [10:52:20]line СДАЧА: 0.00 [10:52:20]line НСП 1% : 6.20 [10:52:20]line НДС 12% : 74.38 [10:52:20]line Наличными: 700.00 [10:52:20]line Безнал.: 0.00 [10:52:20]line Место: АЗС № 134 "Партнер Нефть" [10:52:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:52:20]line СНО: Общий режим [10:52:20]line Чек 110 29.07.2024 10:52 [10:52:20]line Смена: 434 ФФД: 1.0 [10:52:20]line ЗНМ: 0300000044 [10:52:20]line РНМ: 0000000000092660 [10:52:20]line Версия ККМ: 001 [10:52:20]line ФМ: 0000000000874939 [10:52:20]line ФД: 118734 [10:52:20]line ФПД: 22737685069039 [10:52:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T105224&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118734&fm=22737685069039&tin=02508201610067®Number=0000000000092660&sum=70000 [10:52:21]OFD Sender: Processing packet 118734 [packets to send 86, broken 85] [10:52:21]ProducePacketName [10:52:21]name=ofd_packets/00118734 [10:52:21]OFD Sender: To server: pG, [10:52:21]CommunicateWithHost lk.salyk.kg:30040 [10:52:21]ConnectInit lk.salyk.kg [10:52:21]written 0, free lines is 4095 [10:52:21]Connected sock=7 [10:52:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 06 92 07 01 5D C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 68 74 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CE CF 01 00 35 04 06 00 14 AE 07 A4 3C EF 43 38 0A FA 4A 3E B3 70 [10:52:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A9 75 47 00 AB 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CE CF 01 00 F4 03 04 00 F6 21 A7 66 B6 04 01 00 00 5F 43 D9 FF 03 5F 80 C5 [10:52:21]CommunicateWithHost err = 0 [10:52:21]CheckOFDResponse [10:52:21]1017 (14) - 77093643461234 [10:52:21]1041 (16) - 0000000000874939 [10:52:21]1040 (4) - 118734 [10:52:21]1012 (4) - 29.07.2024 05:00 [10:52:21]1206 (1) - 0 [10:52:21]OFD Sender: Remove packet 118734 [10:52:21]ProducePacketName [10:52:21]name=ofd_packets/00118734 [10:52:21]NVStorageDeleteData [10:52:21]Write to MH i2c: 01 00 00 0B 49 54 [10:52:21]Write i2c OK [10:52:21]MH_I2C_Read... [10:52:21]Read from MH i2c: 01 [10:52:21]MH_I2C_Read... [10:52:21]Read from MH i2c: 01 07 00 [10:52:21]MH_I2C_Read... [10:52:21]Read from MH i2c: 01 07 00 0B 49 00 00 00 00 00 D4 0C 3B [10:52:21]RasterBufferAndPrint [10:52:21]line [10:52:21]line [10:52:21]line [10:52:21]line [10:52:21]line [10:52:21]written 0, free lines is 3294 [10:52:21]MH_Cut [10:52:21]Write to MH i2c: D1 01 00 12 49 01 2D [10:52:21]Write i2c OK [10:52:21]MH_I2C_Read... [10:52:21]Read from MH i2c: D1 [10:52:21]MH_I2C_Read... [10:52:21]Read from MH i2c: D1 01 00 [10:52:21]MH_I2C_Read... [10:52:21]Read from MH i2c: D1 01 00 12 49 00 2C [10:52:21]Write to MH i2c: 01 00 00 13 49 5C [10:52:21]Write i2c OK [10:52:21]MH_I2C_Read... [10:52:22]OFD Sender: No OFD packet to send [10:52:22]*** Cut start [10:52:22]*** Partial cut [10:52:22]*** CUTSNS_PIN = 1 [10:52:22]*** CUTSNS_PIN = 0 [10:52:22]*** Brake cut motor [10:52:23]Read from MH i2c: 01 [10:52:23]MH_I2C_Read... [10:52:23]*** Stop cut motor [10:52:23]*** Cut end [10:52:23]Read from MH i2c: 01 07 00 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: 01 07 00 13 49 00 00 00 00 00 FF 0F 71 [10:52:23]process_action close_receipt done [10:52:23]requested_data is exist [10:52:23]produce_requested_data [10:52:23]requested_item fm.sn is exist - process it [10:52:23]wFMCommunicate request_size=4 [10:52:23]MH_SAM_APDU [10:52:23]CAPDU: 80 11 00 00 [10:52:23]Write to MH i2c: E2 08 00 14 49 80 11 00 00 00 00 00 00 D7 [10:52:23]Write i2c OK [10:52:23]MH_I2C_Read... [10:52:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:23]Read from MH i2c: E2 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 17 00 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 17 00 14 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 32 [10:52:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:52:23]wFMCommunicate OK [10:52:23]requested_item fd.num is exist - process it [10:52:23]SAM_PROTO_GetFieldsCounters [10:52:23]wFMCommunicate request_size=4 [10:52:23]MH_SAM_APDU [10:52:23]CAPDU: 80 13 00 00 [10:52:23]Write to MH i2c: E2 08 00 15 49 80 13 00 00 00 00 00 00 DA [10:52:23]Write i2c OK [10:52:23]MH_I2C_Read... [10:52:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:23]Read from MH i2c: E2 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 62 00 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 62 00 15 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CE CF 01 00 0E 04 04 00 B2 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 9C [10:52: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CE CF 01 00 0E 04 04 00 B2 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 [10:52:23]wFMCommunicate OK [10:52:23]SAM_PROTO_GetFieldsCounters done [10:52:23]requested_item shift.num is exist - process it [10:52:23]requested_item shift.opened is exist - process it [10:52:23]req_shift_opened [10:52:23]FM_GetShiftState [10:52:23]SAM_PROTO_GetShiftState [10:52:23]wFMCommunicate request_size=4 [10:52:23]MH_SAM_APDU [10:52:23]CAPDU: 80 13 01 00 [10:52:23]Write to MH i2c: E2 08 00 16 49 80 13 01 00 00 00 00 00 DC [10:52:23]Write i2c OK [10:52:23]MH_I2C_Read... [10:52:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:23]Read from MH i2c: E2 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 0E 00 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 0E 00 16 49 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 0A [10:52:23]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:52:23]wFMCommunicate OK [10:52:23]SAM_PROTO_GetShiftState done [10:52:23]FM_GetShiftState done [10:52:23]req_shift_opened done [10:52:23]requested_item shift.open_date is exist - process it [10:52:23]req_shift_open_date [10:52:23]req_shift_open_date done [10:52:23]produce_requested_data done [10:52:23]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118734,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:52:23]process_action_free close_receipt [10:52:23]json_value_free [10:52:23]json_value_free done [10:52:23]process_json_proto returns [10:52:23]Send response to host [10:52:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118734,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:52:23]free response buf [10:52:23]execute_script done [10:52:23]execute_script returns [10:52:23]free content buf [10:52:23]Sock 9.Close socket [10:52:23]Sock 9.Thread stoped [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:47]OFD Sender: No OFD packet to send [10:52:52]OFD Sender: No OFD packet to send [10:52:57]OFD Sender: No OFD packet to send [10:53:02]OFD Sender: No OFD packet to send [10:53:07]OFD Sender: No OFD packet to send [10:53:12]OFD Sender: No OFD packet to send [10:53:17]OFD Sender: No OFD packet to send [10:53:22]OFD Sender: No OFD packet to send [10:53:27]OFD Sender: No OFD packet to send [10:53:32]OFD Sender: No OFD packet to send [10:53:37]OFD Sender: No OFD packet to send [10:53:39]accept exits with 10 [10:53:39]New connection [10:53:39]New thread 3067239780 created [10:53:39]Thread 3067383140 joined [10:53:39]Waiting for new connection... [10:53:39] Sock 10.Parse request [10:53:39]Sock 10.Check first char [10:53:39]Sock 10.First char is OK [10:53:39]request: POST /json_proto HTTP/1.0 [10:53:39]Method: POST [10:53:39]URL: /json_proto [10:53:39]Method is POST - this is cgi request [10:53:39]url: /json_proto [10:53:39]query_string will be loaded in cgi processing [10:53:39]execute_cgi json_proto POST (null) [10:53:39]execute_cgi path=json_proto method=POST [10:53:39]POST find Content-Length [10:53:39]Host: 172.17.45.7:8080 [10:53:39]Content-Length: 1205 [10:53:39]Content-Type: application/json [10:53:39] [10:53:39]POST finish read [10:53:39]Found Content-Length = 1205 [10:53:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949619\u000A29.07.2024 10:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3839232/3839180\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:39]execute_script... [10:53:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949619\u000A29.07.2024 10:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3839232/3839180\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:39]POST & json_proto [10:53:39]process_json_proto [10:53:39]json parsed OK: [10:53:39]protocol is kg_v1.0 [10:53:39]action value=print_text [10:53:39]process_action print_text [10:53:39]cmd_print_text [10:53:39]ExternCall_PrintAddStr [10:53:39]wPrintStart [10:53:39]Write to MH i2c: 01 00 00 17 49 60 [10:53:39]Write i2c OK [10:53:39]MH_I2C_Read... [10:53:39]Read from MH i2c: 01 [10:53:39]MH_I2C_Read... [10:53:39]Read from MH i2c: 01 07 00 [10:53:39]MH_I2C_Read... [10:53:39]Read from MH i2c: 01 07 00 17 49 00 00 00 00 00 FF 0F 75 [10:53:39]RasterBufferAndPrint [10:53:39]line *****ТОВАРНЫЙ ЧЕК***** [10:53:39]line АЗС-134 [10:53:39]line Партнер нефть [10:53:39]line 02508201610067 [10:53:39]line Кассир : Казаков Ч. [10:53:39]line Счет N : (1)949619 [10:53:39]line 29.07.2024 10:51 [10:53:39]line ПРОДАЖА [10:53:39]line ТРК (МРК, ГНК): 61 [10:53:39]line Вид ГСМ : 2710124130 [10:53:39]line Аи-92-К-4 [10:53:39]line 20.000 x 67.80 [10:53:39]line ИТОГ: 1356.00 [10:53:39]line Тип оплаты: Талоны: Топливные Талоны [10:53:39]line 3839232/3839180 [10:53:39]line ______________________ [10:53:39]line (подпись) [10:53:39]written 0, free lines is 4095 [10:53:39]Write to MH i2c: 01 00 00 2B 49 74 [10:53:39]Write i2c OK [10:53:39]MH_I2C_Read... [10:53:39]Read from MH i2c: 01 [10:53:39]MH_I2C_Read... [10:53:39]Read from MH i2c: 01 07 00 [10:53:39]MH_I2C_Read... [10:53:39]Read from MH i2c: 01 07 00 2B 49 00 00 00 00 00 14 0E 9D [10:53:39]RasterBufferAndPrint [10:53:39]line [10:53:39]line [10:53:39]line [10:53:39]line [10:53:39]line [10:53:39]written 0, free lines is 3605 [10:53:39]MH_Cut [10:53:39]Write to MH i2c: D1 01 00 32 49 01 4D [10:53:39]Write i2c OK [10:53:39]MH_I2C_Read... [10:53:39]Read from MH i2c: D1 [10:53:39]MH_I2C_Read... [10:53:39]Read from MH i2c: D1 01 00 [10:53:39]MH_I2C_Read... [10:53:39]Read from MH i2c: D1 01 00 32 49 00 4C [10:53:39]Write to MH i2c: 01 00 00 33 49 7C [10:53:39]Write i2c OK [10:53:39]MH_I2C_Read... [10:53:40]*** Cut start [10:53:40]*** Partial cut [10:53:40]*** CUTSNS_PIN = 1 [10:53:40]*** CUTSNS_PIN = 0 [10:53:40]*** Brake cut motor [10:53:40]Read from MH i2c: 01 [10:53:40]MH_I2C_Read... [10:53:40]*** Stop cut motor [10:53:40]*** Cut end [10:53:40]Read from MH i2c: 01 07 00 [10:53:40]MH_I2C_Read... [10:53:40]Read from MH i2c: 01 07 00 33 49 00 00 00 00 00 FF 0F 91 [10:53:40]process_action print_text done [10:53:40]requested_data is exist [10:53:40]produce_requested_data [10:53:40]requested_item fm.sn is exist - process it [10:53:40]wFMCommunicate request_size=4 [10:53:40]MH_SAM_APDU [10:53:40]CAPDU: 80 11 00 00 [10:53:40]Write to MH i2c: E2 08 00 34 49 80 11 00 00 00 00 00 00 F7 [10:53:40]Write i2c OK [10:53:40]MH_I2C_Read... [10:53:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:40]Read from MH i2c: E2 [10:53:40]MH_I2C_Read... [10:53:40]Read from MH i2c: E2 17 00 [10:53:40]MH_I2C_Read... [10:53:40]Read from MH i2c: E2 17 00 34 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 52 [10:53:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:53:40]wFMCommunicate OK [10:53:40]requested_item fd.num is exist - process it [10:53:40]SAM_PROTO_GetFieldsCounters [10:53:40]wFMCommunicate request_size=4 [10:53:40]MH_SAM_APDU [10:53:40]CAPDU: 80 13 00 00 [10:53:40]Write to MH i2c: E2 08 00 35 49 80 13 00 00 00 00 00 00 FA [10:53:40]Write i2c OK [10:53:40]MH_I2C_Read... [10:53:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:40]Read from MH i2c: E2 [10:53:40]MH_I2C_Read... [10:53:40]Read from MH i2c: E2 62 00 [10:53:40]MH_I2C_Read... [10:53:40]Read from MH i2c: E2 62 00 35 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CE CF 01 00 0E 04 04 00 B2 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 BC [10:53: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CE CF 01 00 0E 04 04 00 B2 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 [10:53:40]wFMCommunicate OK [10:53:40]SAM_PROTO_GetFieldsCounters done [10:53:40]requested_item shift.num is exist - process it [10:53:40]requested_item shift.opened is exist - process it [10:53:40]req_shift_opened [10:53:40]FM_GetShiftState [10:53:40]SAM_PROTO_GetShiftState [10:53:40]wFMCommunicate request_size=4 [10:53:40]MH_SAM_APDU [10:53:40]CAPDU: 80 13 01 00 [10:53:40]Write to MH i2c: E2 08 00 36 49 80 13 01 00 00 00 00 00 FC [10:53:40]Write i2c OK [10:53:40]MH_I2C_Read... [10:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:40]Read from MH i2c: E2 [10:53:40]MH_I2C_Read... [10:53:40]Read from MH i2c: E2 0E 00 [10:53:40]MH_I2C_Read... [10:53:40]Read from MH i2c: E2 0E 00 36 49 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 2A [10:53:40]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:53:40]wFMCommunicate OK [10:53:40]SAM_PROTO_GetShiftState done [10:53:40]FM_GetShiftState done [10:53:40]req_shift_opened done [10:53:40]requested_item shift.open_date is exist - process it [10:53:40]req_shift_open_date [10:53:40]req_shift_open_date done [10:53:40]produce_requested_data done [10:53:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118734,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:53:40]process_action_free print_text [10:53:40]json_value_free [10:53:40]json_value_free done [10:53:40]process_json_proto returns [10:53:40]Send response to host [10:53:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118734,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:53:40]free response buf [10:53:40]execute_script done [10:53:40]execute_script returns [10:53:40]free content buf [10:53:40]Sock 10.Close socket [10:53:40]Sock 10.Thread stoped [10:53:42]OFD Sender: No OFD packet to send [10:53:47]OFD Sender: No OFD packet to send [10:53:52]OFD Sender: No OFD packet to send [10:53:57]OFD Sender: No OFD packet to send [10:54:02]OFD Sender: No OFD packet to send [10:54:07]OFD Sender: No OFD packet to send [10:54:12]OFD Sender: No OFD packet to send [10:54:17]OFD Sender: No OFD packet to send [10:54:22]OFD Sender: No OFD packet to send [10:54:27]OFD Sender: No OFD packet to send [10:54:32]OFD Sender: No OFD packet to send [10:54:37]OFD Sender: No OFD packet to send [10:54:42]OFD Sender: No OFD packet to send [10:54:47]OFD Sender: No OFD packet to send [10:54:52]OFD Sender: No OFD packet to send [10:54:57]OFD Sender: No OFD packet to send [10:55:02]OFD Sender: No OFD packet to send [10:55:07]OFD Sender: No OFD packet to send [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:12]OFD Sender: No OFD packet to send [10:56:17]OFD Sender: No OFD packet to send [10:56:22]OFD Sender: No OFD packet to send [10:56:26]accept exits with 7 [10:56:26]New connection [10:56:26]New thread 3067383140 created [10:56:26]Thread 3067239780 joined [10:56:26]Waiting for new connection... [10:56:26] Sock 7.Parse request [10:56:26]Sock 7.Check first char [10:56:26]Sock 7.First char is OK [10:56:26]request: POST /json_proto HTTP/1.0 [10:56:26]Method: POST [10:56:26]URL: /json_proto [10:56:26]Method is POST - this is cgi request [10:56:26]url: /json_proto [10:56:26]query_string will be loaded in cgi processing [10:56:26]execute_cgi json_proto POST (null) [10:56:26]execute_cgi path=json_proto method=POST [10:56:26]POST find Content-Length [10:56:26]Host: 172.17.45.7:8080 [10:56:26]Content-Length: 819 [10:56:26]Content-Type: application/json [10:56:26] [10:56:26]POST finish read [10:56:26]Found Content-Length = 819 [10:56:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 42.580, "sum" : 3244.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 3244.00, "payments": [ { "type": 1, "sum" : 3244.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:26]execute_script... [10:56:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 42.580, "sum" : 3244.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 3244.00, "payments": [ { "type": 1, "sum" : 3244.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:26]POST & json_proto [10:56:26]process_json_proto [10:56:26]json parsed OK: [10:56:26]protocol is kg_v1.0 [10:56:26]action value=close_receipt [10:56:26]process_action close_receipt [10:56:26]cmd_close_receipt [10:56:26]MH_GetDate [10:56:26]Write to MH i2c: F0 00 00 37 49 6F [10:56:26]Write i2c OK [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: F0 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: F0 09 00 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: F0 09 00 37 49 00 5F 75 A7 66 90 0F 3E 66 9C [10:56:26]GetLastDocTimeStamp 1722250344 [10:56:26]current date 1722250591 [10:56:26]FM_GetShiftState [10:56:26]SAM_PROTO_GetShiftState [10:56:26]wFMCommunicate request_size=4 [10:56:26]MH_SAM_APDU [10:56:26]CAPDU: 80 13 01 00 [10:56:26]Write to MH i2c: E2 08 00 38 49 80 13 01 00 00 00 00 00 FE [10:56:26]Write i2c OK [10:56:26]MH_I2C_Read... [10:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:26]Read from MH i2c: E2 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: E2 0E 00 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: E2 0E 00 38 49 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 2C [10:56:26]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:56:26]wFMCommunicate OK [10:56:26]SAM_PROTO_GetShiftState done [10:56:26]FM_GetShiftState done [10:56:26]opened in 1722211641 [10:56:26]opened+sec_in_day 1722298041 [10:56:26]quantity*price = 324459 [10:56:26]sum+1 = 324461 [10:56:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 3244.00 НСП 1% : 28.71 НДС 12% : 344.56 Наличными: 0.00 Безнал.: 3244.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 111 29.07.2024 10:56 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118735 ФПД: 57310523541404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T105631&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118735&fm=57310523541404&tin=02508201610067®Number=0000000000092660&sum=324400 [10:56:27]StoreToDocumentArchive [10:56:27]shift 434 fd 118735 [10:56:27]save to /storage/0434/doc_00118735 [10:56:27]save last doc name /storage/0434/doc_00118735 to /storage/kkm_last_doc_name [10:56:27]save OK [10:56:27]Clear old archive folders... [10:56:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:56:27]tlvbuf is 01E50110 [10:56:27]SAM_PROTO_ClearQueue [10:56:27]wFMCommunicate request_size=4 [10:56:27]MH_SAM_APDU [10:56:27]CAPDU: 80 09 00 00 [10:56:27]Write to MH i2c: E2 08 00 45 49 80 09 00 00 00 00 00 00 00 [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]OFD Sender: No OFD packet to send [10:56:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:27]Read from MH i2c: E2 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 03 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 03 00 45 49 00 90 00 02 [10:56:27]RAPDU: 90 00 [10:56:27]wFMCommunicate OK [10:56:27]SAM_PROTO_ClearQueue done [10:56:27]KKMCreateOFDPacket [10:56:27]OFDProtocolAddRootSTLVToBuf [10:56:27]FM_MakeSignedData [10:56:27]FM_MakeSignedData [10:56:27]SAM_PROTO_SignData [10:56:27]wFMCommunicate request_size=4 [10:56:27]MH_SAM_APDU [10:56:27]CAPDU: 80 0D 01 02 [10:56:27]Write to MH i2c: E2 08 00 46 49 80 0D 01 02 00 00 00 00 08 [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:27]Read from MH i2c: E2 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 03 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 03 00 46 49 00 90 00 03 [10:56:27]RAPDU: 90 00 [10:56:27]wFMCommunicate OK [10:56:27]wFMCommunicate request_size=255 [10:56:27]MH_SAM_APDU [10:56:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 A6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6C F3 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F3 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 86 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 F3 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 5F 75 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CF CF 01 00 35 04 06 00 34 1F A5 65 [10:56:27]Write to MH i2c: E2 02 01 47 49 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 A6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6C F3 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F3 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 86 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 F3 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 5F 75 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CF CF 01 00 35 04 06 00 34 1F A5 65 00 00 5B [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:27]Read from MH i2c: E2 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 03 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 03 00 47 49 00 90 00 04 [10:56:27]RAPDU: 90 00 [10:56:27]wFMCommunicate OK [10:56:27]wFMCommunicate request_size=7 [10:56:27]MH_SAM_APDU [10:56:27]CAPDU: 80 0D 02 02 02 C7 9C [10:56:27]Write to MH i2c: E2 0A 00 48 49 80 0D 02 02 02 00 C7 9C 00 00 72 [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:27]Read from MH i2c: E2 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 03 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 03 00 48 49 00 90 00 05 [10:56:27]RAPDU: 90 00 [10:56:27]wFMCommunicate OK [10:56:27]wFMCommunicate request_size=4 [10:56:27]MH_SAM_APDU [10:56:27]CAPDU: 80 0D 03 02 [10:56:27]Write to MH i2c: E2 08 00 49 49 80 0D 03 02 00 00 00 00 0D [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:27]Read from MH i2c: E2 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 0B 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 0B 00 49 49 00 E0 08 D9 E1 0C C7 10 43 90 00 D6 [10:56:27]RAPDU: E0 08 D9 E1 0C C7 10 43 90 00 [10:56:27]wFMCommunicate OK [10:56:27]SAM_PROTO_SignData done [10:56:27]FM_MakeSignedData done [10:56:27]CreateOFDProtocolMessage [10:56:27]wFMCommunicate request_size=4 [10:56:27]MH_SAM_APDU [10:56:27]CAPDU: 80 11 00 00 [10:56:27]Write to MH i2c: E2 08 00 4A 49 80 11 00 00 00 00 00 00 0D [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:27]Read from MH i2c: E2 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 17 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 17 00 4A 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 68 [10:56:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:56:27]wFMCommunicate OK [10:56:27]CreateOFDProtocolMessage done [10:56:27]OFDSenderStorePacket 118735 [10:56:27]StoreOFDPacket docnum=118735 [10:56:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 ED 51 04 01 9F 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 A6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6C F3 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F3 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 86 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 F3 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 5F 75 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CF CF 01 00 35 04 06 00 34 1F A5 65 C7 9C E0 08 D9 E1 0C C7 10 43 [10:56:27]CheckFolder [10:56:27]dirname=/storage/ofd_packets [10:56:27]CheckFolder done [10:56:27]ProducePacketName [10:56:27]name=ofd_packets/00118735 [10:56:27]NVStorageSaveData ofd_packets/00118735 [10:56:27]File name is /storage/ofd_packets/00118735 [10:56:27]Write 298 bytes [10:56:27]NVStorageSaveData done [10:56:27]OFDSenderStorePacket done [10:56:27]KKMCreateOFDPacket done [10:56:27]NVStorageSaveData kkm_last_timestamp [10:56:27]File name is /storage/kkm_last_timestamp [10:56:27]Write 4 bytes [10:56:27]NVStorageSaveData done [10:56:27]ExternCall_PrintAddStr [10:56:27]wPrintStart [10:56:27]Write to MH i2c: 01 00 00 4B 49 94 [10:56:27]Write i2c OK [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: 01 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: 01 07 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: 01 07 00 4B 49 00 00 00 00 00 FF 0F A9 [10:56:27]RasterBufferAndPrint [10:56:27]line Счет N : (1)949620 [10:56:27]line ИНН: 02508201610067 [10:56:27]line Контрольно-Кассовый Чек [10:56:27]line ПРОДАЖА [10:56:27]line ТРК (МРК, ГНК) : 64 [10:56:27]line Товар: 2710194800 [10:56:27]line ДТ-К-5 [10:56:27]line 42.580 * 76.20 [10:56:27]line = 3244.60 [10:56:27]line НДС 12% НСП 1% [10:56:27]line > о реализуемом товаре [10:56:27]line ОКРУГЛЕНИЕ: -0.60 [10:56:27]line ИТОГО: 3244.00 [10:56:27]line НСП 1% : 28.71 [10:56:27]line НДС 12% : 344.56 [10:56:27]line Наличными: 0.00 [10:56:27]line Безнал.: 3244.00 [10:56:27]line Место: АЗС № 134 "Партнер Нефть" [10:56:27]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:56:27]line СНО: Общий режим [10:56:27]line Чек 111 29.07.2024 10:56 [10:56:27]line Смена: 434 ФФД: 1.0 [10:56:27]line ЗНМ: 0300000044 [10:56:27]line РНМ: 0000000000092660 [10:56:28]line Версия ККМ: 001 [10:56:28]line Платежная система: O! деньги [10:56:28]line ФМ: 0000000000874939 [10:56:28]line ФД: 118735 [10:56:28]line ФПД: 57310523541404 [10:56:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T105631&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118735&fm=57310523541404&tin=02508201610067®Number=0000000000092660&sum=324400 [10:56:28]OFD Sender: Processing packet 118735 [packets to send 86, broken 85] [10:56:28]ProducePacketName [10:56:28]name=ofd_packets/00118735 [10:56:28]OFD Sender: To server: pG, [10:56:28]CommunicateWithHost lk.salyk.kg:30040 [10:56:28]ConnectInit lk.salyk.kg [10:56:28]written 0, free lines is 4095 [10:56:28]Connected sock=10 [10:56:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 ED 51 04 01 9F 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 A6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6C F3 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F3 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 86 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 F3 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 5F 75 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CF CF 01 00 35 04 06 00 34 1F A5 65 C7 9C E0 08 D9 E1 0C C7 10 43 [10:56:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 77 37 47 00 46 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 34 39 33 39 10 04 04 00 CF CF 01 00 F4 03 04 00 ED 22 A7 66 B6 04 01 00 00 87 92 CC 91 83 DA 0A 82 [10:56:28]CommunicateWithHost err = 0 [10:56:28]CheckOFDResponse [10:56:28]1017 (14) - 77093643461234 [10:56:28]1041 (16) - 0000000000874939 [10:56:28]1040 (4) - 118735 [10:56:28]1012 (4) - 29.07.2024 05:04 [10:56:28]1206 (1) - 0 [10:56:28]OFD Sender: Remove packet 118735 [10:56:28]ProducePacketName [10:56:28]name=ofd_packets/00118735 [10:56:28]NVStorageDeleteData [10:56:28]Write to MH i2c: 01 00 00 75 49 BE [10:56:28]Write i2c OK [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: 01 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: 01 07 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: 01 07 00 75 49 00 00 00 00 00 E3 0C B4 [10:56:28]RasterBufferAndPrint [10:56:28]line [10:56:28]line [10:56:28]line [10:56:28]line [10:56:28]line [10:56:28]written 0, free lines is 3306 [10:56:28]MH_Cut [10:56:28]Write to MH i2c: D1 01 00 7C 49 01 97 [10:56:28]Write i2c OK [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: D1 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: D1 01 00 [10:56:28]MH_I2C_Read... [10:56:28]Read from MH i2c: D1 01 00 7C 49 00 96 [10:56:28]Write to MH i2c: 01 00 00 7D 49 C6 [10:56:28]Write i2c OK [10:56:28]MH_I2C_Read... [10:56:29]OFD Sender: No OFD packet to send [10:56:29]*** Cut start [10:56:29]*** Partial cut [10:56:29]*** CUTSNS_PIN = 1 [10:56:29]*** CUTSNS_PIN = 0 [10:56:29]*** Brake cut motor [10:56:29]Read from MH i2c: 01 [10:56:29]MH_I2C_Read... [10:56:29]*** Stop cut motor [10:56:29]*** Cut end [10:56:29]Read from MH i2c: 01 07 00 [10:56:29]MH_I2C_Read... [10:56:29]Read from MH i2c: 01 07 00 7D 49 00 00 00 00 00 FF 0F DB [10:56:29]process_action close_receipt done [10:56:29]requested_data is exist [10:56:29]produce_requested_data [10:56:29]requested_item fm.sn is exist - process it [10:56:29]wFMCommunicate request_size=4 [10:56:29]MH_SAM_APDU [10:56:29]CAPDU: 80 11 00 00 [10:56:29]Write to MH i2c: E2 08 00 7E 49 80 11 00 00 00 00 00 00 41 [10:56:29]Write i2c OK [10:56:29]MH_I2C_Read... [10:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:30]Read from MH i2c: E2 [10:56:30]MH_I2C_Read... [10:56:30]Read from MH i2c: E2 17 00 [10:56:30]MH_I2C_Read... [10:56:30]Read from MH i2c: E2 17 00 7E 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9C [10:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:56:30]wFMCommunicate OK [10:56:30]requested_item fd.num is exist - process it [10:56:30]SAM_PROTO_GetFieldsCounters [10:56:30]wFMCommunicate request_size=4 [10:56:30]MH_SAM_APDU [10:56:30]CAPDU: 80 13 00 00 [10:56:30]Write to MH i2c: E2 08 00 7F 49 80 13 00 00 00 00 00 00 44 [10:56:30]Write i2c OK [10:56:30]MH_I2C_Read... [10:56:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:30]Read from MH i2c: E2 [10:56:30]MH_I2C_Read... [10:56:30]Read from MH i2c: E2 62 00 [10:56:30]MH_I2C_Read... [10:56:30]Read from MH i2c: E2 62 00 7F 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CF CF 01 00 0E 04 04 00 B2 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 0A [10:56: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CF CF 01 00 0E 04 04 00 B2 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 [10:56:30]wFMCommunicate OK [10:56:30]SAM_PROTO_GetFieldsCounters done [10:56:30]requested_item shift.num is exist - process it [10:56:30]requested_item shift.opened is exist - process it [10:56:30]req_shift_opened [10:56:30]FM_GetShiftState [10:56:30]SAM_PROTO_GetShiftState [10:56:30]wFMCommunicate request_size=4 [10:56:30]MH_SAM_APDU [10:56:30]CAPDU: 80 13 01 00 [10:56:30]Write to MH i2c: E2 08 00 80 49 80 13 01 00 00 00 00 00 46 [10:56:30]Write i2c OK [10:56:30]MH_I2C_Read... [10:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:30]Read from MH i2c: E2 [10:56:30]MH_I2C_Read... [10:56:30]Read from MH i2c: E2 0E 00 [10:56:30]MH_I2C_Read... [10:56:30]Read from MH i2c: E2 0E 00 80 49 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 74 [10:56:30]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:56:30]wFMCommunicate OK [10:56:30]SAM_PROTO_GetShiftState done [10:56:30]FM_GetShiftState done [10:56:30]req_shift_opened done [10:56:30]requested_item shift.open_date is exist - process it [10:56:30]req_shift_open_date [10:56:30]req_shift_open_date done [10:56:30]produce_requested_data done [10:56:30]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118735,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:56:30]process_action_free close_receipt [10:56:30]json_value_free [10:56:30]json_value_free done [10:56:30]process_json_proto returns [10:56:30]Send response to host [10:56:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118735,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:56:30]free response buf [10:56:30]execute_script done [10:56:30]execute_script returns [10:56:30]free content buf [10:56:30]Sock 7.Close socket [10:56:30]Sock 7.Thread stoped [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:50]accept exits with 9 [10:59:50]New connection [10:59:50]New thread 3067239780 created [10:59:50]Thread 3067383140 joined [10:59:50]Waiting for new connection... [10:59:50] Sock 9.Parse request [10:59:50]Sock 9.Check first char [10:59:50]Sock 9.First char is OK [10:59:50]request: POST /json_proto HTTP/1.0 [10:59:50]Method: POST [10:59:50]URL: /json_proto [10:59:50]Method is POST - this is cgi request [10:59:50]url: /json_proto [10:59:50]query_string will be loaded in cgi processing [10:59:50]execute_cgi json_proto POST (null) [10:59:50]execute_cgi path=json_proto method=POST [10:59:50]POST find Content-Length [10:59:50]Host: 172.17.45.7:8080 [10:59:50]Content-Length: 677 [10:59:50]Content-Type: application/json [10:59:50] [10:59:50]POST finish read [10:59:50]Found Content-Length = 677 [10:59:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.100, "sum" : 210.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:50]execute_script... [10:59:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.100, "sum" : 210.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:50]POST & json_proto [10:59:50]process_json_proto [10:59:50]json parsed OK: [10:59:50]protocol is kg_v1.0 [10:59:50]action value=close_receipt [10:59:50]process_action close_receipt [10:59:50]cmd_close_receipt [10:59:50]MH_GetDate [10:59:50]Write to MH i2c: F0 00 00 81 49 B9 [10:59:50]Write i2c OK [10:59:50]MH_I2C_Read... [10:59:50]Read from MH i2c: F0 [10:59:50]MH_I2C_Read... [10:59:50]Read from MH i2c: F0 09 00 [10:59:50]MH_I2C_Read... [10:59:50]Read from MH i2c: F0 09 00 81 49 00 2B 76 A7 66 90 0F 3E 66 B3 [10:59:50]GetLastDocTimeStamp 1722250591 [10:59:50]current date 1722250795 [10:59:50]FM_GetShiftState [10:59:50]SAM_PROTO_GetShiftState [10:59:50]wFMCommunicate request_size=4 [10:59:50]MH_SAM_APDU [10:59:50]CAPDU: 80 13 01 00 [10:59:50]Write to MH i2c: E2 08 00 82 49 80 13 01 00 00 00 00 00 48 [10:59:50]Write i2c OK [10:59:50]MH_I2C_Read... [10:59:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:50]Read from MH i2c: E2 [10:59:50]MH_I2C_Read... [10:59:50]Read from MH i2c: E2 0E 00 [10:59:50]MH_I2C_Read... [10:59:50]Read from MH i2c: E2 0E 00 82 49 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 76 [10:59:50]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:59:50]wFMCommunicate OK [10:59:50]SAM_PROTO_GetShiftState done [10:59:50]FM_GetShiftState done [10:59:50]opened in 1722211641 [10:59:50]opened+sec_in_day 1722298041 [10:59:50]quantity*price = 21018 [10:59:50]sum+1 = 21019 [10:59:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 210.00 Внесено: 210.00 СДАЧА: 0.00 НСП 1% : 1.86 НДС 12% : 22.32 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 112 29.07.2024 10:59 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118736 ФПД: 166095732411908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T105955&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118736&fm=166095732411908&tin=02508201610067®Number=0000000000092660&sum=21000 [10:59:51]StoreToDocumentArchive [10:59:51]shift 434 fd 118736 [10:59:51]save to /storage/0434/doc_00118736 [10:59:51]save last doc name /storage/0434/doc_00118736 to /storage/kkm_last_doc_name [10:59:51]save OK [10:59:51]Clear old archive folders... [10:59:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:51]tlvbuf is B6FBE2D0 [10:59:51]SAM_PROTO_ClearQueue [10:59:51]wFMCommunicate request_size=4 [10:59:51]MH_SAM_APDU [10:59:51]CAPDU: 80 09 00 00 [10:59:51]Write to MH i2c: E2 08 00 8F 49 80 09 00 00 00 00 00 00 4A [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:51]Read from MH i2c: E2 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 03 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 03 00 8F 49 00 90 00 4C [10:59:51]RAPDU: 90 00 [10:59:51]wFMCommunicate OK [10:59:51]SAM_PROTO_ClearQueue done [10:59:51]KKMCreateOFDPacket [10:59:51]OFDProtocolAddRootSTLVToBuf [10:59:51]FM_MakeSignedData [10:59:51]FM_MakeSignedData [10:59:51]SAM_PROTO_SignData [10:59:51]wFMCommunicate request_size=4 [10:59:51]MH_SAM_APDU [10:59:51]CAPDU: 80 0D 01 02 [10:59:51]Write to MH i2c: E2 08 00 90 49 80 0D 01 02 00 00 00 00 52 [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:51]Read from MH i2c: E2 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 03 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 03 00 90 49 00 90 00 4D [10:59:51]RAPDU: 90 00 [10:59:51]wFMCommunicate OK [10:59:51]wFMCommunicate request_size=255 [10:59:51]MH_SAM_APDU [10:59:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 1C 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1A 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 B8 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 70 00 00 00 F4 03 04 00 2B 76 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D0 CF 01 00 35 04 06 00 97 [10:59:51]Write to MH i2c: E2 02 01 91 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 1C 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1A 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 B8 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 70 00 00 00 F4 03 04 00 2B 76 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D0 CF 01 00 35 04 06 00 97 00 00 C1 [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:51]Read from MH i2c: E2 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 03 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 03 00 91 49 00 90 00 4E [10:59:51]RAPDU: 90 00 [10:59:51]wFMCommunicate OK [10:59:51]wFMCommunicate request_size=10 [10:59:51]MH_SAM_APDU [10:59:51]CAPDU: 80 0D 02 02 05 10 2D 21 0E 04 [10:59:51]Write to MH i2c: E2 0D 00 92 49 80 0D 02 02 05 00 10 2D 21 0E 04 00 00 CF [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:51]Read from MH i2c: E2 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 03 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 03 00 92 49 00 90 00 4F [10:59:51]RAPDU: 90 00 [10:59:51]wFMCommunicate OK [10:59:51]wFMCommunicate request_size=4 [10:59:51]MH_SAM_APDU [10:59:51]CAPDU: 80 0D 03 02 [10:59:51]Write to MH i2c: E2 08 00 93 49 80 0D 03 02 00 00 00 00 57 [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:51]Read from MH i2c: E2 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 0B 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 0B 00 93 49 00 3E 5B CE 7A 69 69 1C 5C 90 00 83 [10:59:51]RAPDU: 3E 5B CE 7A 69 69 1C 5C 90 00 [10:59:51]wFMCommunicate OK [10:59:51]SAM_PROTO_SignData done [10:59:51]FM_MakeSignedData done [10:59:51]CreateOFDProtocolMessage [10:59:51]wFMCommunicate request_size=4 [10:59:51]MH_SAM_APDU [10:59:51]CAPDU: 80 11 00 00 [10:59:51]Write to MH i2c: E2 08 00 94 49 80 11 00 00 00 00 00 00 57 [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:51]Read from MH i2c: E2 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 17 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 17 00 94 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B2 [10:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:59:51]wFMCommunicate OK [10:59:51]CreateOFDProtocolMessage done [10:59:51]OFDSenderStorePacket 118736 [10:59:51]StoreOFDPacket docnum=118736 [10:59:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C0 94 07 01 4C DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 1C 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1A 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 B8 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 70 00 00 00 F4 03 04 00 2B 76 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D0 CF 01 00 35 04 06 00 97 10 2D 21 0E 04 3E 5B CE 7A 69 69 1C 5C [10:59:51]CheckFolder [10:59:51]dirname=/storage/ofd_packets [10:59:51]CheckFolder done [10:59:51]ProducePacketName [10:59:51]name=ofd_packets/00118736 [10:59:51]NVStorageSaveData ofd_packets/00118736 [10:59:51]File name is /storage/ofd_packets/00118736 [10:59:51]Write 301 bytes [10:59:51]NVStorageSaveData done [10:59:51]OFDSenderStorePacket done [10:59:51]KKMCreateOFDPacket done [10:59:51]NVStorageSaveData kkm_last_timestamp [10:59:51]File name is /storage/kkm_last_timestamp [10:59:51]Write 4 bytes [10:59:51]NVStorageSaveData done [10:59:51]ExternCall_PrintAddStr [10:59:51]wPrintStart [10:59:51]Write to MH i2c: 01 00 00 95 49 DE [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: 01 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: 01 07 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: 01 07 00 95 49 00 00 00 00 00 FF 0F F3 [10:59:51]RasterBufferAndPrint [10:59:51]line Счет N : (1)949621 [10:59:51]line ИНН: 02508201610067 [10:59:51]line Контрольно-Кассовый Чек [10:59:51]line ПРОДАЖА [10:59:51]line ТРК (МРК, ГНК) : 61 [10:59:51]line Товар: 2710124130 [10:59:51]line Аи-92-К-4 [10:59:51]line 3.100 * 67.80 [10:59:51]line = 210.18 [10:59:51]line НДС 12% НСП 1% [10:59:51]line > о реализуемом товаре [10:59:51]line ОКРУГЛЕНИЕ: -0.18 [10:59:51]line ИТОГО: 210.00 [10:59:51]line Внесено: 210.00 [10:59:51]line СДАЧА: 0.00 [10:59:51]line НСП 1% : 1.86 [10:59:51]line НДС 12% : 22.32 [10:59:51]line Наличными: 210.00 [10:59:51]line Безнал.: 0.00 [10:59:51]line Место: АЗС № 134 "Партнер Нефть" [10:59:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:59:51]line СНО: Общий режим [10:59:51]line Чек 112 29.07.2024 10:59 [10:59:51]line Смена: 434 ФФД: 1.0 [10:59:51]line ЗНМ: 0300000044 [10:59:51]line РНМ: 0000000000092660 [10:59:51]line Версия ККМ: 001 [10:59:51]line ФМ: 0000000000874939 [10:59:51]line ФД: 118736 [10:59:51]line ФПД: 166095732411908 [10:59:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T105955&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118736&fm=166095732411908&tin=02508201610067®Number=0000000000092660&sum=21000 [10:59:52]written 0, free lines is 4095 [10:59:52]OFD Sender: Processing packet 118736 [packets to send 86, broken 85] [10:59:52]ProducePacketName [10:59:52]name=ofd_packets/00118736 [10:59:52]OFD Sender: To server: pG, [10:59:52]CommunicateWithHost lk.salyk.kg:30040 [10:59:52]ConnectInit lk.salyk.kg [10:59:52]Connected sock=10 [10:59:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C0 94 07 01 4C DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 1C 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1A 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 B8 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 70 00 00 00 F4 03 04 00 2B 76 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D0 CF 01 00 35 04 06 00 97 10 2D 21 0E 04 3E 5B CE 7A 69 69 1C 5C [10:59:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 97 EE 47 00 41 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 34 39 33 39 10 04 04 00 D0 CF 01 00 F4 03 04 00 B9 23 A7 66 B6 04 01 00 00 17 D8 8C EA 0E 33 17 AA [10:59:52]CommunicateWithHost err = 0 [10:59:52]CheckOFDResponse [10:59:52]1017 (14) - 77093643461234 [10:59:52]1041 (16) - 0000000000874939 [10:59:52]1040 (4) - 118736 [10:59:52]1012 (4) - 29.07.2024 05:08 [10:59:52]1206 (1) - 0 [10:59:52]OFD Sender: Remove packet 118736 [10:59:52]ProducePacketName [10:59:52]name=ofd_packets/00118736 [10:59:52]NVStorageDeleteData [10:59:52]Write to MH i2c: 01 00 00 BF 49 08 [10:59:52]Write i2c OK [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: 01 [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: 01 07 00 [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: 01 07 00 BF 49 00 00 00 00 00 EB 0C 06 [10:59:52]RasterBufferAndPrint [10:59:52]line [10:59:52]line [10:59:52]line [10:59:52]line [10:59:52]line [10:59:52]written 0, free lines is 3312 [10:59:52]MH_Cut [10:59:52]Write to MH i2c: D1 01 00 C6 49 01 E1 [10:59:52]Write i2c OK [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: D1 [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: D1 01 00 [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: D1 01 00 C6 49 00 E0 [10:59:52]Write to MH i2c: 01 00 00 C7 49 10 [10:59:52]Write i2c OK [10:59:52]MH_I2C_Read... [10:59:52]OFD Sender: No OFD packet to send [10:59:53]*** Cut start [10:59:53]*** Partial cut [10:59:53]*** CUTSNS_PIN = 1 [10:59:53]*** CUTSNS_PIN = 0 [10:59:53]*** Brake cut motor [10:59:53]Read from MH i2c: 01 [10:59:53]MH_I2C_Read... [10:59:53]*** Stop cut motor [10:59:53]*** Cut end [10:59:53]Read from MH i2c: 01 07 00 [10:59:53]MH_I2C_Read... [10:59:53]Read from MH i2c: 01 07 00 C7 49 00 00 00 00 00 FF 0F 25 [10:59:53]process_action close_receipt done [10:59:53]requested_data is exist [10:59:53]produce_requested_data [10:59:53]requested_item fm.sn is exist - process it [10:59:53]wFMCommunicate request_size=4 [10:59:53]MH_SAM_APDU [10:59:53]CAPDU: 80 11 00 00 [10:59:53]Write to MH i2c: E2 08 00 C8 49 80 11 00 00 00 00 00 00 8B [10:59:53]Write i2c OK [10:59:53]MH_I2C_Read... [10:59:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:53]Read from MH i2c: E2 [10:59:53]MH_I2C_Read... [10:59:53]Read from MH i2c: E2 17 00 [10:59:53]MH_I2C_Read... [10:59:53]Read from MH i2c: E2 17 00 C8 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E6 [10:59:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:59:53]wFMCommunicate OK [10:59:53]requested_item fd.num is exist - process it [10:59:53]SAM_PROTO_GetFieldsCounters [10:59:53]wFMCommunicate request_size=4 [10:59:53]MH_SAM_APDU [10:59:53]CAPDU: 80 13 00 00 [10:59:53]Write to MH i2c: E2 08 00 C9 49 80 13 00 00 00 00 00 00 8E [10:59:53]Write i2c OK [10:59:53]MH_I2C_Read... [10:59:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:54]Read from MH i2c: E2 [10:59:54]MH_I2C_Read... [10:59:54]Read from MH i2c: E2 62 00 [10:59:54]MH_I2C_Read... [10:59:54]Read from MH i2c: E2 62 00 C9 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D0 CF 01 00 0E 04 04 00 B2 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 58 [10:59: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D0 CF 01 00 0E 04 04 00 B2 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 [10:59:54]wFMCommunicate OK [10:59:54]SAM_PROTO_GetFieldsCounters done [10:59:54]requested_item shift.num is exist - process it [10:59:54]requested_item shift.opened is exist - process it [10:59:54]req_shift_opened [10:59:54]FM_GetShiftState [10:59:54]SAM_PROTO_GetShiftState [10:59:54]wFMCommunicate request_size=4 [10:59:54]MH_SAM_APDU [10:59:54]CAPDU: 80 13 01 00 [10:59:54]Write to MH i2c: E2 08 00 CA 49 80 13 01 00 00 00 00 00 90 [10:59:54]Write i2c OK [10:59:54]MH_I2C_Read... [10:59:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:54]Read from MH i2c: E2 [10:59:54]MH_I2C_Read... [10:59:54]Read from MH i2c: E2 0E 00 [10:59:54]MH_I2C_Read... [10:59:54]Read from MH i2c: E2 0E 00 CA 49 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 BE [10:59:54]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [10:59:54]wFMCommunicate OK [10:59:54]SAM_PROTO_GetShiftState done [10:59:54]FM_GetShiftState done [10:59:54]req_shift_opened done [10:59:54]requested_item shift.open_date is exist - process it [10:59:54]req_shift_open_date [10:59:54]req_shift_open_date done [10:59:54]produce_requested_data done [10:59:54]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118736,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [10:59:54]process_action_free close_receipt [10:59:54]json_value_free [10:59:54]json_value_free done [10:59:54]process_json_proto returns [10:59:54]Send response to host [10:59:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118736,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [10:59:54]free response buf [10:59:54]execute_script done [10:59:54]execute_script returns [10:59:54]free content buf [10:59:54]Sock 9.Close socket [10:59:54]Sock 9.Thread stoped [10:59:57]OFD Sender: No OFD packet to send [11:00:02]OFD Sender: No OFD packet to send [11:00:07]OFD Sender: No OFD packet to send [11:00:12]OFD Sender: No OFD packet to send [11:00:17]OFD Sender: No OFD packet to send [11:00:23]OFD Sender: No OFD packet to send [11:00:28]OFD Sender: No OFD packet to send [11:00:33]OFD Sender: No OFD packet to send [11:00:38]OFD Sender: No OFD packet to send [11:00:43]OFD Sender: No OFD packet to send [11:00:48]OFD Sender: No OFD packet to send [11:00:53]OFD Sender: No OFD packet to send [11:00:58]OFD Sender: No OFD packet to send [11:01:03]OFD Sender: No OFD packet to send [11:01:08]OFD Sender: No OFD packet to send [11:01:13]OFD Sender: No OFD packet to send [11:01:18]OFD Sender: No OFD packet to send [11:01:23]OFD Sender: No OFD packet to send [11:01:28]OFD Sender: No OFD packet to send [11:01:33]OFD Sender: No OFD packet to send [11:01:38]OFD Sender: No OFD packet to send [11:01:43]OFD Sender: No OFD packet to send [11:01:48]OFD Sender: No OFD packet to send [11:01:53]OFD Sender: No OFD packet to send [11:01:58]OFD Sender: No OFD packet to send [11:02:03]OFD Sender: No OFD packet to send [11:02:08]OFD Sender: No OFD packet to send [11:02:13]OFD Sender: No OFD packet to send [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:28]OFD Sender: No OFD packet to send [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05:18]OFD Sender: No OFD packet to send [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]OFD Sender: No OFD packet to send [11:05:38]OFD Sender: No OFD packet to send [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:06:03]OFD Sender: No OFD packet to send [11:06:08]OFD Sender: No OFD packet to send [11:06:13]OFD Sender: No OFD packet to send [11:06:18]OFD Sender: No OFD packet to send [11:06:23]OFD Sender: No OFD packet to send [11:06:28]OFD Sender: No OFD packet to send [11:06:33]OFD Sender: No OFD packet to send [11:06:38]OFD Sender: No OFD packet to send [11:06:43]OFD Sender: No OFD packet to send [11:06:48]OFD Sender: No OFD packet to send [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:22]accept exits with 7 [11:08:22]New connection [11:08:22]New thread 3067383140 created [11:08:22]Thread 3067239780 joined [11:08:22]Waiting for new connection... [11:08:22] Sock 7.Parse request [11:08:22]Sock 7.Check first char [11:08:22]Sock 7.First char is OK [11:08:22]request: POST /json_proto HTTP/1.0 [11:08:22]Method: POST [11:08:22]URL: /json_proto [11:08:22]Method is POST - this is cgi request [11:08:22]url: /json_proto [11:08:22]query_string will be loaded in cgi processing [11:08:22]execute_cgi json_proto POST (null) [11:08:22]execute_cgi path=json_proto method=POST [11:08:22]POST find Content-Length [11:08:22]Host: 172.17.45.7:8080 [11:08:22]Content-Length: 677 [11:08:22]Content-Type: application/json [11:08:22] [11:08:22]POST finish read [11:08:22]Found Content-Length = 677 [11:08:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:22]execute_script... [11:08: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)949622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:22]POST & json_proto [11:08:22]process_json_proto [11:08:22]json parsed OK: [11:08:22]protocol is kg_v1.0 [11:08:22]action value=close_receipt [11:08:22]process_action close_receipt [11:08:22]cmd_close_receipt [11:08:22]MH_GetDate [11:08:22]Write to MH i2c: F0 00 00 CB 49 03 [11:08:22]Write i2c OK [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: F0 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: F0 09 00 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: F0 09 00 CB 49 00 2C 78 A7 66 90 0F 3E 66 00 [11:08:22]GetLastDocTimeStamp 1722250795 [11:08:22]current date 1722251308 [11:08:22]FM_GetShiftState [11:08:22]SAM_PROTO_GetShiftState [11:08:22]wFMCommunicate request_size=4 [11:08:22]MH_SAM_APDU [11:08:22]CAPDU: 80 13 01 00 [11:08:22]Write to MH i2c: E2 08 00 CC 49 80 13 01 00 00 00 00 00 92 [11:08:22]Write i2c OK [11:08:22]MH_I2C_Read... [11:08:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:22]Read from MH i2c: E2 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: E2 0E 00 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: E2 0E 00 CC 49 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C0 [11:08:22]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:08:22]wFMCommunicate OK [11:08:22]SAM_PROTO_GetShiftState done [11:08:22]FM_GetShiftState done [11:08:22]opened in 1722211641 [11:08:22]opened+sec_in_day 1722298041 [11:08:22]quantity*price = 40002 [11:08:22]sum+1 = 40003 [11:08:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 113 29.07.2024 11:08 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118737 ФПД: 242153121690970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110828&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118737&fm=242153121690970&tin=02508201610067®Number=0000000000092660&sum=40000 [11:08:24]StoreToDocumentArchive [11:08:24]shift 434 fd 118737 [11:08:24]save to /storage/0434/doc_00118737 [11:08:24]save last doc name /storage/0434/doc_00118737 to /storage/kkm_last_doc_name [11:08:24]save OK [11:08:24]Clear old archive folders... [11:08:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:24]tlvbuf is 01E549A0 [11:08:24]SAM_PROTO_ClearQueue [11:08:24]wFMCommunicate request_size=4 [11:08:24]MH_SAM_APDU [11:08:24]CAPDU: 80 09 00 00 [11:08:24]Write to MH i2c: E2 08 00 D9 49 80 09 00 00 00 00 00 00 94 [11:08:24]Write i2c OK [11:08:24]MH_I2C_Read... [11:08:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:24]Read from MH i2c: E2 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 03 00 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 03 00 D9 49 00 90 00 96 [11:08:24]RAPDU: 90 00 [11:08:24]wFMCommunicate OK [11:08:24]SAM_PROTO_ClearQueue done [11:08:24]KKMCreateOFDPacket [11:08:24]OFDProtocolAddRootSTLVToBuf [11:08:24]FM_MakeSignedData [11:08:24]FM_MakeSignedData [11:08:24]SAM_PROTO_SignData [11:08:24]wFMCommunicate request_size=4 [11:08:24]MH_SAM_APDU [11:08:24]CAPDU: 80 0D 01 02 [11:08:24]Write to MH i2c: E2 08 00 DA 49 80 0D 01 02 00 00 00 00 9C [11:08:24]Write i2c OK [11:08:24]MH_I2C_Read... [11:08:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:24]Read from MH i2c: E2 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 03 00 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 03 00 DA 49 00 90 00 97 [11:08:24]RAPDU: 90 00 [11:08:24]wFMCommunicate OK [11:08:24]wFMCommunicate request_size=255 [11:08:24]MH_SAM_APDU [11:08:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 2C 78 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D1 CF 01 00 35 04 06 00 DC [11:08:24]Write to MH i2c: E2 02 01 DB 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 2C 78 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D1 CF 01 00 35 04 06 00 DC 00 00 57 [11:08:24]Write i2c OK [11:08:24]MH_I2C_Read... [11:08:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:24]Read from MH i2c: E2 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 03 00 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 03 00 DB 49 00 90 00 98 [11:08:24]RAPDU: 90 00 [11:08:24]wFMCommunicate OK [11:08:24]wFMCommunicate request_size=10 [11:08:24]MH_SAM_APDU [11:08:24]CAPDU: 80 0D 02 02 05 3C AA CC B5 5A [11:08:24]Write to MH i2c: E2 0D 00 DC 49 80 0D 02 02 05 00 3C AA CC B5 5A 00 00 6A [11:08:24]Write i2c OK [11:08:24]MH_I2C_Read... [11:08:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:24]Read from MH i2c: E2 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 03 00 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 03 00 DC 49 00 90 00 99 [11:08:24]RAPDU: 90 00 [11:08:24]wFMCommunicate OK [11:08:24]wFMCommunicate request_size=4 [11:08:24]MH_SAM_APDU [11:08:24]CAPDU: 80 0D 03 02 [11:08:24]Write to MH i2c: E2 08 00 DD 49 80 0D 03 02 00 00 00 00 A1 [11:08:24]Write i2c OK [11:08:24]MH_I2C_Read... [11:08:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:24]Read from MH i2c: E2 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 0B 00 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 0B 00 DD 49 00 A5 B4 A5 42 29 E8 66 03 90 00 5C [11:08:24]RAPDU: A5 B4 A5 42 29 E8 66 03 90 00 [11:08:24]wFMCommunicate OK [11:08:24]SAM_PROTO_SignData done [11:08:24]FM_MakeSignedData done [11:08:24]CreateOFDProtocolMessage [11:08:24]wFMCommunicate request_size=4 [11:08:24]MH_SAM_APDU [11:08:24]CAPDU: 80 11 00 00 [11:08:24]Write to MH i2c: E2 08 00 DE 49 80 11 00 00 00 00 00 00 A1 [11:08:24]Write i2c OK [11:08:24]MH_I2C_Read... [11:08:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:24]Read from MH i2c: E2 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 17 00 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 17 00 DE 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FC [11:08:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:08:24]wFMCommunicate OK [11:08:24]CreateOFDProtocolMessage done [11:08:24]OFDSenderStorePacket 118737 [11:08:24]StoreOFDPacket docnum=118737 [11:08:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2A 99 07 01 38 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 2C 78 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D1 CF 01 00 35 04 06 00 DC 3C AA CC B5 5A A5 B4 A5 42 29 E8 66 03 [11:08:24]CheckFolder [11:08:24]dirname=/storage/ofd_packets [11:08:24]CheckFolder done [11:08:24]ProducePacketName [11:08:24]name=ofd_packets/00118737 [11:08:24]NVStorageSaveData ofd_packets/00118737 [11:08:24]File name is /storage/ofd_packets/00118737 [11:08:24]Write 301 bytes [11:08:24]NVStorageSaveData done [11:08:24]OFDSenderStorePacket done [11:08:24]KKMCreateOFDPacket done [11:08:24]NVStorageSaveData kkm_last_timestamp [11:08:24]File name is /storage/kkm_last_timestamp [11:08:24]Write 4 bytes [11:08:24]NVStorageSaveData done [11:08:24]ExternCall_PrintAddStr [11:08:24]wPrintStart [11:08:24]Write to MH i2c: 01 00 00 DF 49 28 [11:08:24]Write i2c OK [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: 01 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: 01 07 00 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: 01 07 00 DF 49 00 00 00 00 00 FF 0F 3D [11:08:24]RasterBufferAndPrint [11:08:24]line Счет N : (1)949622 [11:08:24]line ИНН: 02508201610067 [11:08:24]line Контрольно-Кассовый Чек [11:08:24]line ПРОДАЖА [11:08:24]line ТРК (МРК, ГНК) : 41 [11:08:24]line Товар: 2710124130 [11:08:24]line Аи-92-К-4 [11:08:24]line 5.900 * 67.80 [11:08:24]line = 400.02 [11:08:24]line НДС 12% НСП 1% [11:08:24]line > о реализуемом товаре [11:08:24]line ОКРУГЛЕНИЕ: -0.02 [11:08:24]line ИТОГО: 400.00 [11:08:24]line Внесено: 400.00 [11:08:24]line СДАЧА: 0.00 [11:08:24]line НСП 1% : 3.54 [11:08:24]line НДС 12% : 42.48 [11:08:24]line Наличными: 400.00 [11:08:24]line Безнал.: 0.00 [11:08:24]line Место: АЗС № 134 "Партнер Нефть" [11:08:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:08:24]line СНО: Общий режим [11:08:24]line Чек 113 29.07.2024 11:08 [11:08:24]line Смена: 434 ФФД: 1.0 [11:08:24]line ЗНМ: 0300000044 [11:08:24]line РНМ: 0000000000092660 [11:08:24]line Версия ККМ: 001 [11:08:24]line ФМ: 0000000000874939 [11:08:24]line ФД: 118737 [11:08:24]line ФПД: 242153121690970 [11:08:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110828&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118737&fm=242153121690970&tin=02508201610067®Number=0000000000092660&sum=40000 [11:08:24]written 0, free lines is 4095 [11:08:24]OFD Sender: Processing packet 118737 [packets to send 86, broken 85] [11:08:24]ProducePacketName [11:08:24]name=ofd_packets/00118737 [11:08:24]OFD Sender: To server: pG, [11:08:24]CommunicateWithHost lk.salyk.kg:30040 [11:08:24]ConnectInit lk.salyk.kg [11:08:25]Connected sock=11 [11:08:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2A 99 07 01 38 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 2C 78 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D1 CF 01 00 35 04 06 00 DC 3C AA CC B5 5A A5 B4 A5 42 29 E8 66 03 [11:08:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 79 D1 47 00 23 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 34 39 33 39 10 04 04 00 D1 CF 01 00 F4 03 04 00 BA 25 A7 66 B6 04 01 00 00 F0 1F E1 E9 E0 5A 02 1F [11:08:25]CommunicateWithHost err = 0 [11:08:25]CheckOFDResponse [11:08:25]1017 (14) - 77093643461234 [11:08:25]1041 (16) - 0000000000874939 [11:08:25]1040 (4) - 118737 [11:08:25]1012 (4) - 29.07.2024 05:16 [11:08:25]1206 (1) - 0 [11:08:25]OFD Sender: Remove packet 118737 [11:08:25]ProducePacketName [11:08:25]name=ofd_packets/00118737 [11:08:25]NVStorageDeleteData [11:08:25]Write to MH i2c: 01 00 00 09 4A 53 [11:08:25]Write i2c OK [11:08:25]MH_I2C_Read... [11:08:25]Read from MH i2c: 01 [11:08:25]MH_I2C_Read... [11:08:25]Read from MH i2c: 01 07 00 [11:08:25]MH_I2C_Read... [11:08:25]Read from MH i2c: 01 07 00 09 4A 00 00 00 00 00 D3 0C 39 [11:08:25]RasterBufferAndPrint [11:08:25]line [11:08:25]line [11:08:25]line [11:08:25]line [11:08:25]line [11:08:25]written 0, free lines is 3290 [11:08:25]MH_Cut [11:08:25]Write to MH i2c: D1 01 00 10 4A 01 2C [11:08:25]Write i2c OK [11:08:25]MH_I2C_Read... [11:08:25]Read from MH i2c: D1 [11:08:25]MH_I2C_Read... [11:08:25]Read from MH i2c: D1 01 00 [11:08:25]MH_I2C_Read... [11:08:25]Read from MH i2c: D1 01 00 10 4A 00 2B [11:08:25]Write to MH i2c: 01 00 00 11 4A 5B [11:08:25]Write i2c OK [11:08:25]MH_I2C_Read... [11:08:25]OFD Sender: No OFD packet to send [11:08:26]*** Cut start [11:08:26]*** Partial cut [11:08:26]*** CUTSNS_PIN = 1 [11:08:26]*** CUTSNS_PIN = 0 [11:08:26]*** Brake cut motor [11:08:26]Read from MH i2c: 01 [11:08:26]MH_I2C_Read... [11:08:26]*** Stop cut motor [11:08:26]*** Cut end [11:08:26]Read from MH i2c: 01 07 00 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: 01 07 00 11 4A 00 00 00 00 00 FF 0F 70 [11:08:26]process_action close_receipt done [11:08:26]requested_data is exist [11:08:26]produce_requested_data [11:08:26]requested_item fm.sn is exist - process it [11:08:26]wFMCommunicate request_size=4 [11:08:26]MH_SAM_APDU [11:08:26]CAPDU: 80 11 00 00 [11:08:26]Write to MH i2c: E2 08 00 12 4A 80 11 00 00 00 00 00 00 D6 [11:08:26]Write i2c OK [11:08:26]MH_I2C_Read... [11:08:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:26]Read from MH i2c: E2 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: E2 17 00 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: E2 17 00 12 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 31 [11:08:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:08:26]wFMCommunicate OK [11:08:26]requested_item fd.num is exist - process it [11:08:26]SAM_PROTO_GetFieldsCounters [11:08:26]wFMCommunicate request_size=4 [11:08:26]MH_SAM_APDU [11:08:26]CAPDU: 80 13 00 00 [11:08:26]Write to MH i2c: E2 08 00 13 4A 80 13 00 00 00 00 00 00 D9 [11:08:26]Write i2c OK [11:08:26]MH_I2C_Read... [11:08:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:26]Read from MH i2c: E2 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: E2 62 00 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: E2 62 00 13 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D1 CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [11:08: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D1 CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:26]wFMCommunicate OK [11:08:26]SAM_PROTO_GetFieldsCounters done [11:08:26]requested_item shift.num is exist - process it [11:08:26]requested_item shift.opened is exist - process it [11:08:26]req_shift_opened [11:08:26]FM_GetShiftState [11:08:26]SAM_PROTO_GetShiftState [11:08:26]wFMCommunicate request_size=4 [11:08:26]MH_SAM_APDU [11:08:26]CAPDU: 80 13 01 00 [11:08:26]Write to MH i2c: E2 08 00 14 4A 80 13 01 00 00 00 00 00 DB [11:08:26]Write i2c OK [11:08:26]MH_I2C_Read... [11:08:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:26]Read from MH i2c: E2 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: E2 0E 00 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: E2 0E 00 14 4A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 09 [11:08:26]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:08:26]wFMCommunicate OK [11:08:26]SAM_PROTO_GetShiftState done [11:08:26]FM_GetShiftState done [11:08:26]req_shift_opened done [11:08:26]requested_item shift.open_date is exist - process it [11:08:26]req_shift_open_date [11:08:26]req_shift_open_date done [11:08:26]produce_requested_data done [11:08:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118737,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [11:08:26]process_action_free close_receipt [11:08:26]json_value_free [11:08:26]json_value_free done [11:08:26]process_json_proto returns [11:08:26]Send response to host [11:08:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118737,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [11:08:26]free response buf [11:08:26]execute_script done [11:08:26]execute_script returns [11:08:26]free content buf [11:08:26]Sock 7.Close socket [11:08:26]Sock 7.Thread stoped [11:08:30]OFD Sender: No OFD packet to send [11:08:35]OFD Sender: No OFD packet to send [11:08:40]OFD Sender: No OFD packet to send [11:08:45]OFD Sender: No OFD packet to send [11:08:50]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]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:38]accept exits with 9 [11:15:38]New connection [11:15:38]New thread 3067239780 created [11:15:38]Thread 3067383140 joined [11:15:38]Waiting for new connection... [11:15:38] Sock 9.Parse request [11:15:38]Sock 9.Check first char [11:15:38]Sock 9.First char is OK [11:15:38]request: POST /json_proto HTTP/1.0 [11:15:38]Method: POST [11:15:38]URL: /json_proto [11:15:38]Method is POST - this is cgi request [11:15:38]url: /json_proto [11:15:38]query_string will be loaded in cgi processing [11:15:38]execute_cgi json_proto POST (null) [11:15:38]execute_cgi path=json_proto method=POST [11:15:38]POST find Content-Length [11:15:38]Host: 172.17.45.7:8080 [11:15:38]Content-Length: 674 [11:15:38]Content-Type: application/json [11:15:38] [11:15:38]POST finish read [11:15:38]Found Content-Length = 674 [11:15:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:38]execute_script... [11: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 : (1)949623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:38]POST & json_proto [11:15:38]process_json_proto [11:15:38]json parsed OK: [11:15:38]protocol is kg_v1.0 [11:15:38]action value=close_receipt [11:15:38]process_action close_receipt [11:15:38]cmd_close_receipt [11:15:38]MH_GetDate [11:15:38]Write to MH i2c: F0 00 00 15 4A 4E [11:15:38]Write i2c OK [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: F0 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: F0 09 00 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: F0 09 00 15 4A 00 DF 79 A7 66 90 0F 3E 66 FF [11:15:38]GetLastDocTimeStamp 1722251308 [11:15:38]current date 1722251743 [11:15:38]FM_GetShiftState [11:15:38]SAM_PROTO_GetShiftState [11:15:38]wFMCommunicate request_size=4 [11:15:38]MH_SAM_APDU [11:15:38]CAPDU: 80 13 01 00 [11:15:38]Write to MH i2c: E2 08 00 16 4A 80 13 01 00 00 00 00 00 DD [11:15:38]Write i2c OK [11:15:38]MH_I2C_Read... [11:15:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:38]Read from MH i2c: E2 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: E2 0E 00 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: E2 0E 00 16 4A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 0B [11:15:38]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:15:38]wFMCommunicate OK [11:15:38]SAM_PROTO_GetShiftState done [11:15:38]FM_GetShiftState done [11:15:38]opened in 1722211641 [11:15:38]opened+sec_in_day 1722298041 [11:15:38]quantity*price = 70027 [11:15:38]sum+1 = 70029 [11:15:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 114 29.07.2024 11:15 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118738 ФПД: 192641927920644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T111543&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118738&fm=192641927920644&tin=02508201610067®Number=0000000000092660&sum=70000 [11:15:39]StoreToDocumentArchive [11:15:39]shift 434 fd 118738 [11:15:39]save to /storage/0434/doc_00118738 [11:15:39]save last doc name /storage/0434/doc_00118738 to /storage/kkm_last_doc_name [11:15:39]save OK [11:15:39]Clear old archive folders... [11:15:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:15:39]tlvbuf is 01FD33C0 [11:15:39]SAM_PROTO_ClearQueue [11:15:39]wFMCommunicate request_size=4 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 09 00 00 [11:15:39]Write to MH i2c: E2 08 00 23 4A 80 09 00 00 00 00 00 00 DF [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:39]Read from MH i2c: E2 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 03 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 03 00 23 4A 00 90 00 E1 [11:15:39]RAPDU: 90 00 [11:15:39]wFMCommunicate OK [11:15:39]SAM_PROTO_ClearQueue done [11:15:39]KKMCreateOFDPacket [11:15:39]OFDProtocolAddRootSTLVToBuf [11:15:39]FM_MakeSignedData [11:15:39]FM_MakeSignedData [11:15:39]SAM_PROTO_SignData [11:15:39]wFMCommunicate request_size=4 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 0D 01 02 [11:15:39]Write to MH i2c: E2 08 00 24 4A 80 0D 01 02 00 00 00 00 E7 [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:39]Read from MH i2c: E2 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 03 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 03 00 24 4A 00 90 00 E2 [11:15:39]RAPDU: 90 00 [11:15:39]wFMCommunicate OK [11:15:39]wFMCommunicate request_size=255 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 DF 79 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D2 CF 01 00 35 04 06 00 AF 34 F1 AE [11:15:39]Write to MH i2c: E2 02 01 25 4A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 DF 79 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D2 CF 01 00 35 04 06 00 AF 34 F1 AE 00 00 21 [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:39]Read from MH i2c: E2 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 03 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 03 00 25 4A 00 90 00 E3 [11:15:39]RAPDU: 90 00 [11:15:39]wFMCommunicate OK [11:15:39]wFMCommunicate request_size=7 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 0D 02 02 02 BC 04 [11:15:39]Write to MH i2c: E2 0A 00 26 4A 80 0D 02 02 02 00 BC 04 00 00 AE [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:39]Read from MH i2c: E2 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 03 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 03 00 26 4A 00 90 00 E4 [11:15:39]RAPDU: 90 00 [11:15:39]wFMCommunicate OK [11:15:39]wFMCommunicate request_size=4 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 0D 03 02 [11:15:39]Write to MH i2c: E2 08 00 27 4A 80 0D 03 02 00 00 00 00 EC [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:39]Read from MH i2c: E2 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 0B 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 0B 00 27 4A 00 FA C3 D5 9A 1D D9 FE DA 90 00 E7 [11:15:39]RAPDU: FA C3 D5 9A 1D D9 FE DA 90 00 [11:15:39]wFMCommunicate OK [11:15:39]SAM_PROTO_SignData done [11:15:39]FM_MakeSignedData done [11:15:39]CreateOFDProtocolMessage [11:15:39]wFMCommunicate request_size=4 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 11 00 00 [11:15:39]Write to MH i2c: E2 08 00 28 4A 80 11 00 00 00 00 00 00 EC [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:40]Read from MH i2c: E2 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: E2 17 00 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: E2 17 00 28 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 47 [11:15:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:15:40]wFMCommunicate OK [11:15:40]CreateOFDProtocolMessage done [11:15:40]OFDSenderStorePacket 118738 [11:15:40]StoreOFDPacket docnum=118738 [11:15:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 27 C1 04 01 A3 C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 DF 79 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D2 CF 01 00 35 04 06 00 AF 34 F1 AE BC 04 FA C3 D5 9A 1D D9 FE DA [11:15:40]CheckFolder [11:15:40]dirname=/storage/ofd_packets [11:15:40]CheckFolder done [11:15:40]ProducePacketName [11:15:40]name=ofd_packets/00118738 [11:15:40]NVStorageSaveData ofd_packets/00118738 [11:15:40]File name is /storage/ofd_packets/00118738 [11:15:40]Write 298 bytes [11:15:40]NVStorageSaveData done [11:15:40]OFDSenderStorePacket done [11:15:40]KKMCreateOFDPacket done [11:15:40]NVStorageSaveData kkm_last_timestamp [11:15:40]File name is /storage/kkm_last_timestamp [11:15:40]Write 4 bytes [11:15:40]NVStorageSaveData done [11:15:40]ExternCall_PrintAddStr [11:15:40]wPrintStart [11:15:40]Write to MH i2c: 01 00 00 29 4A 73 [11:15:40]Write i2c OK [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: 01 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: 01 07 00 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: 01 07 00 29 4A 00 00 00 00 00 FF 0F 88 [11:15:40]RasterBufferAndPrint [11:15:40]line Счет N : (1)949623 [11:15:40]line ИНН: 02508201610067 [11:15:40]line Контрольно-Кассовый Чек [11:15:40]line ПРОДАЖА [11:15:40]line ТРК (МРК, ГНК) : 44 [11:15:40]line Товар: 2710194800 [11:15:40]line ДТ-К-5 [11:15:40]line 9.190 * 76.20 [11:15:40]line = 700.28 [11:15:40]line НДС 12% НСП 1% [11:15:40]line > о реализуемом товаре [11:15:40]line ОКРУГЛЕНИЕ: -0.28 [11:15:40]line ИТОГО: 700.00 [11:15:40]line Внесено: 700.00 [11:15:40]line СДАЧА: 0.00 [11:15:40]line НСП 1% : 6.20 [11:15:40]line НДС 12% : 74.37 [11:15:40]line Наличными: 700.00 [11:15:40]line Безнал.: 0.00 [11:15:40]line Место: АЗС № 134 "Партнер Нефть" [11:15:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:15:40]line СНО: Общий режим [11:15:40]line Чек 114 29.07.2024 11:15 [11:15:40]line Смена: 434 ФФД: 1.0 [11:15:40]line ЗНМ: 0300000044 [11:15:40]line РНМ: 0000000000092660 [11:15:40]line Версия ККМ: 001 [11:15:40]line ФМ: 0000000000874939 [11:15:40]line ФД: 118738 [11:15:40]line ФПД: 192641927920644 [11:15:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T111543&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118738&fm=192641927920644&tin=02508201610067®Number=0000000000092660&sum=70000 [11:15:40]OFD Sender: Processing packet 118738 [packets to send 86, broken 85] [11:15:40]ProducePacketName [11:15:40]name=ofd_packets/00118738 [11:15:40]OFD Sender: To server: pG, [11:15:40]CommunicateWithHost lk.salyk.kg:30040 [11:15:40]ConnectInit lk.salyk.kg [11:15:40]written 0, free lines is 4095 [11:15:40]Connected sock=10 [11: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 34 39 33 39 0C 01 00 00 27 C1 04 01 A3 C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 DF 79 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D2 CF 01 00 35 04 06 00 AF 34 F1 AE BC 04 FA C3 D5 9A 1D D9 FE DA [11:15:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0F 51 47 00 64 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D2 CF 01 00 F4 03 04 00 6D 27 A7 66 B6 04 01 00 00 8A D2 26 82 3E 69 07 83 [11:15:40]CommunicateWithHost err = 0 [11:15:40]CheckOFDResponse [11:15:40]1017 (14) - 77093643461234 [11:15:40]1041 (16) - 0000000000874939 [11:15:40]1040 (4) - 118738 [11:15:40]1012 (4) - 29.07.2024 05:23 [11:15:40]1206 (1) - 0 [11:15:40]OFD Sender: Remove packet 118738 [11:15:40]ProducePacketName [11:15:40]name=ofd_packets/00118738 [11:15:40]NVStorageDeleteData [11:15:40]Write to MH i2c: 01 00 00 53 4A 9D [11:15:40]Write i2c OK [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: 01 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: 01 07 00 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: 01 07 00 53 4A 00 00 00 00 00 E2 0C 92 [11:15:40]RasterBufferAndPrint [11:15:40]line [11:15:40]line [11:15:40]line [11:15:40]line [11:15:40]line [11:15:40]written 0, free lines is 3304 [11:15:40]MH_Cut [11:15:40]Write to MH i2c: D1 01 00 5A 4A 01 76 [11:15:40]Write i2c OK [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: D1 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: D1 01 00 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: D1 01 00 5A 4A 00 75 [11:15:40]Write to MH i2c: 01 00 00 5B 4A A5 [11:15:40]Write i2c OK [11:15:40]MH_I2C_Read... [11:15:41]OFD Sender: No OFD packet to send [11:15:41]*** Cut start [11:15:41]*** Partial cut [11:15:41]*** CUTSNS_PIN = 1 [11:15:41]*** CUTSNS_PIN = 0 [11:15:41]*** Brake cut motor [11:15:42]Read from MH i2c: 01 [11:15:42]MH_I2C_Read... [11:15:42]*** Stop cut motor [11:15:42]*** Cut end [11:15:42]Read from MH i2c: 01 07 00 [11:15:42]MH_I2C_Read... [11:15:42]Read from MH i2c: 01 07 00 5B 4A 00 00 00 00 00 FF 0F BA [11:15:42]process_action close_receipt done [11:15:42]requested_data is exist [11:15:42]produce_requested_data [11:15:42]requested_item fm.sn is exist - process it [11:15:42]wFMCommunicate request_size=4 [11:15:42]MH_SAM_APDU [11:15:42]CAPDU: 80 11 00 00 [11:15:42]Write to MH i2c: E2 08 00 5C 4A 80 11 00 00 00 00 00 00 20 [11:15:42]Write i2c OK [11:15:42]MH_I2C_Read... [11:15:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:42]Read from MH i2c: E2 [11:15:42]MH_I2C_Read... [11:15:42]Read from MH i2c: E2 17 00 [11:15:42]MH_I2C_Read... [11:15:42]Read from MH i2c: E2 17 00 5C 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7B [11:15:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:15:42]wFMCommunicate OK [11:15:42]requested_item fd.num is exist - process it [11:15:42]SAM_PROTO_GetFieldsCounters [11:15:42]wFMCommunicate request_size=4 [11:15:42]MH_SAM_APDU [11:15:42]CAPDU: 80 13 00 00 [11:15:42]Write to MH i2c: E2 08 00 5D 4A 80 13 00 00 00 00 00 00 23 [11:15:42]Write i2c OK [11:15:42]MH_I2C_Read... [11:15:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:42]Read from MH i2c: E2 [11:15:42]MH_I2C_Read... [11:15:42]Read from MH i2c: E2 62 00 [11:15:42]MH_I2C_Read... [11:15:42]Read from MH i2c: E2 62 00 5D 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D2 CF 01 00 0E 04 04 00 B2 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 F5 [11:15: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D2 CF 01 00 0E 04 04 00 B2 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 [11:15:42]wFMCommunicate OK [11:15:42]SAM_PROTO_GetFieldsCounters done [11:15:42]requested_item shift.num is exist - process it [11:15:42]requested_item shift.opened is exist - process it [11:15:42]req_shift_opened [11:15:42]FM_GetShiftState [11:15:42]SAM_PROTO_GetShiftState [11:15:42]wFMCommunicate request_size=4 [11:15:42]MH_SAM_APDU [11:15:42]CAPDU: 80 13 01 00 [11:15:42]Write to MH i2c: E2 08 00 5E 4A 80 13 01 00 00 00 00 00 25 [11:15:42]Write i2c OK [11:15:42]MH_I2C_Read... [11:15:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:42]Read from MH i2c: E2 [11:15:42]MH_I2C_Read... [11:15:42]Read from MH i2c: E2 0E 00 [11:15:42]MH_I2C_Read... [11:15:42]Read from MH i2c: E2 0E 00 5E 4A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 53 [11:15:42]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:15:42]wFMCommunicate OK [11:15:42]SAM_PROTO_GetShiftState done [11:15:42]FM_GetShiftState done [11:15:42]req_shift_opened done [11:15:42]requested_item shift.open_date is exist - process it [11:15:42]req_shift_open_date [11:15:42]req_shift_open_date done [11:15:42]produce_requested_data done [11:15:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118738,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [11:15:42]process_action_free close_receipt [11:15:42]json_value_free [11:15:42]json_value_free done [11:15:42]process_json_proto returns [11:15:42]Send response to host [11:15:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118738,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [11:15:42]free response buf [11:15:42]execute_script done [11:15:42]execute_script returns [11:15:42]free content buf [11:15:42]Sock 9.Close socket [11:15:42]Sock 9.Thread stoped [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:50]accept exits with 7 [11:16:50]New connection [11:16:50]New thread 3067383140 created [11:16:50]Thread 3067239780 joined [11:16:50]Waiting for new connection... [11:16:50] Sock 7.Parse request [11:16:50]Sock 7.Check first char [11:16:50]Sock 7.First char is OK [11:16:50]request: POST /json_proto HTTP/1.0 [11:16:50]Method: POST [11:16:50]URL: /json_proto [11:16:50]Method is POST - this is cgi request [11:16:50]url: /json_proto [11:16:50]query_string will be loaded in cgi processing [11:16:50]execute_cgi json_proto POST (null) [11:16:50]execute_cgi path=json_proto method=POST [11:16:50]POST find Content-Length [11:16:50]Host: 172.17.45.7:8080 [11:16:50]Content-Length: 682 [11:16:50]Content-Type: application/json [11:16:50] [11:16:50]POST finish read [11:16:50]Found Content-Length = 682 [11:16:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:50]execute_script... [11:16:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:50]POST & json_proto [11:16:50]process_json_proto [11:16:50]json parsed OK: [11:16:50]protocol is kg_v1.0 [11:16:50]action value=close_receipt [11:16:50]process_action close_receipt [11:16:50]cmd_close_receipt [11:16:50]MH_GetDate [11:16:50]Write to MH i2c: F0 00 00 5F 4A 98 [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: F0 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: F0 09 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: F0 09 00 5F 4A 00 28 7A A7 66 90 0F 3E 66 93 [11:16:50]GetLastDocTimeStamp 1722251743 [11:16:50]current date 1722251816 [11:16:50]FM_GetShiftState [11:16:50]SAM_PROTO_GetShiftState [11:16:50]wFMCommunicate request_size=4 [11:16:50]MH_SAM_APDU [11:16:50]CAPDU: 80 13 01 00 [11:16:50]Write to MH i2c: E2 08 00 60 4A 80 13 01 00 00 00 00 00 27 [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:51]Read from MH i2c: E2 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 0E 00 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 0E 00 60 4A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 55 [11:16:51]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:16:51]wFMCommunicate OK [11:16:51]SAM_PROTO_GetShiftState done [11:16:51]FM_GetShiftState done [11:16:51]opened in 1722211641 [11:16:51]opened+sec_in_day 1722298041 [11:16:51]quantity*price = 100005 [11:16:51]sum+1 = 100006 [11:16:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 115 29.07.2024 11:16 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118739 ФПД: 278905150695646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T111656&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118739&fm=278905150695646&tin=02508201610067®Number=0000000000092660&sum=100000 [11:16:52]StoreToDocumentArchive [11:16:52]shift 434 fd 118739 [11:16:52]save to /storage/0434/doc_00118739 [11:16:52]save last doc name /storage/0434/doc_00118739 to /storage/kkm_last_doc_name [11:16:52]save OK [11:16:52]Clear old archive folders... [11:16:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:52]tlvbuf is 01F349E0 [11:16:52]SAM_PROTO_ClearQueue [11:16:52]wFMCommunicate request_size=4 [11:16:52]MH_SAM_APDU [11:16:52]CAPDU: 80 09 00 00 [11:16:52]Write to MH i2c: E2 08 00 6D 4A 80 09 00 00 00 00 00 00 29 [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:52]Read from MH i2c: E2 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 03 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 03 00 6D 4A 00 90 00 2B [11:16:52]RAPDU: 90 00 [11:16:52]wFMCommunicate OK [11:16:52]SAM_PROTO_ClearQueue done [11:16:52]KKMCreateOFDPacket [11:16:52]OFDProtocolAddRootSTLVToBuf [11:16:52]FM_MakeSignedData [11:16:52]FM_MakeSignedData [11:16:52]SAM_PROTO_SignData [11:16:52]wFMCommunicate request_size=4 [11:16:52]MH_SAM_APDU [11:16:52]CAPDU: 80 0D 01 02 [11:16:52]Write to MH i2c: E2 08 00 6E 4A 80 0D 01 02 00 00 00 00 31 [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:52]Read from MH i2c: E2 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 03 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 03 00 6E 4A 00 90 00 2C [11:16:52]RAPDU: 90 00 [11:16:52]wFMCommunicate OK [11:16:52]wFMCommunicate request_size=255 [11:16:52]MH_SAM_APDU [11:16:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 28 7A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 CF 01 00 35 04 06 00 FD [11:16:52]Write to MH i2c: E2 02 01 6F 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 28 7A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 CF 01 00 35 04 06 00 FD 00 00 B9 [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:52]Read from MH i2c: E2 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 03 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 03 00 6F 4A 00 90 00 2D [11:16:52]RAPDU: 90 00 [11:16:52]wFMCommunicate OK [11:16:52]wFMCommunicate request_size=10 [11:16:52]MH_SAM_APDU [11:16:52]CAPDU: 80 0D 02 02 05 A9 AA 6E E8 DE [11:16:52]Write to MH i2c: E2 0D 00 70 4A 80 0D 02 02 05 00 A9 AA 6E E8 DE 00 00 C5 [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:52]Read from MH i2c: E2 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 03 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 03 00 70 4A 00 90 00 2E [11:16:52]RAPDU: 90 00 [11:16:52]wFMCommunicate OK [11:16:52]wFMCommunicate request_size=4 [11:16:52]MH_SAM_APDU [11:16:52]CAPDU: 80 0D 03 02 [11:16:52]Write to MH i2c: E2 08 00 71 4A 80 0D 03 02 00 00 00 00 36 [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:52]Read from MH i2c: E2 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 0B 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 0B 00 71 4A 00 70 D4 67 A4 70 C0 50 D4 90 00 DA [11:16:52]RAPDU: 70 D4 67 A4 70 C0 50 D4 90 00 [11:16:52]wFMCommunicate OK [11:16:52]SAM_PROTO_SignData done [11:16:52]FM_MakeSignedData done [11:16:52]CreateOFDProtocolMessage [11:16:52]wFMCommunicate request_size=4 [11:16:52]MH_SAM_APDU [11:16:52]CAPDU: 80 11 00 00 [11:16:52]Write to MH i2c: E2 08 00 72 4A 80 11 00 00 00 00 00 00 36 [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:52]Read from MH i2c: E2 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 17 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: E2 17 00 72 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 91 [11:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:16:52]wFMCommunicate OK [11:16:52]CreateOFDProtocolMessage done [11:16:52]OFDSenderStorePacket 118739 [11:16:52]StoreOFDPacket docnum=118739 [11:16:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7E 9D 07 01 CC 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 28 7A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 CF 01 00 35 04 06 00 FD A9 AA 6E E8 DE 70 D4 67 A4 70 C0 50 D4 [11:16:52]CheckFolder [11:16:52]dirname=/storage/ofd_packets [11:16:52]CheckFolder done [11:16:52]ProducePacketName [11:16:52]name=ofd_packets/00118739 [11:16:52]NVStorageSaveData ofd_packets/00118739 [11:16:52]File name is /storage/ofd_packets/00118739 [11:16:52]Write 301 bytes [11:16:52]NVStorageSaveData done [11:16:52]OFDSenderStorePacket done [11:16:52]KKMCreateOFDPacket done [11:16:52]NVStorageSaveData kkm_last_timestamp [11:16:52]File name is /storage/kkm_last_timestamp [11:16:52]Write 4 bytes [11:16:52]NVStorageSaveData done [11:16:52]ExternCall_PrintAddStr [11:16:52]wPrintStart [11:16:52]Write to MH i2c: 01 00 00 73 4A BD [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: 01 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: 01 07 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: 01 07 00 73 4A 00 00 00 00 00 FF 0F D2 [11:16:52]RasterBufferAndPrint [11:16:52]line Счет N : (1)949624 [11:16:52]line ИНН: 02508201610067 [11:16:52]line Контрольно-Кассовый Чек [11:16:52]line ПРОДАЖА [11:16:52]line ТРК (МРК, ГНК) : 51 [11:16:52]line Товар: 2710124130 [11:16:52]line Аи-92-К-4 [11:16:52]line 14.750 * 67.80 [11:16:52]line = 1000.05 [11:16:52]line НДС 12% НСП 1% [11:16:52]line > о реализуемом товаре [11:16:52]line ОКРУГЛЕНИЕ: -0.05 [11:16:52]line ИТОГО: 1000.00 [11:16:52]line Внесено: 1000.00 [11:16:52]line СДАЧА: 0.00 [11:16:52]line НСП 1% : 8.85 [11:16:52]line НДС 12% : 106.20 [11:16:52]line Наличными: 1000.00 [11:16:52]line Безнал.: 0.00 [11:16:52]line Место: АЗС № 134 "Партнер Нефть" [11:16:52]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:16:52]line СНО: Общий режим [11:16:52]line Чек 115 29.07.2024 11:16 [11:16:52]line Смена: 434 ФФД: 1.0 [11:16:52]line ЗНМ: 0300000044 [11:16:52]line РНМ: 0000000000092660 [11:16:52]line Версия ККМ: 001 [11:16:52]line ФМ: 0000000000874939 [11:16:52]line ФД: 118739 [11:16:52]line ФПД: 278905150695646 [11:16:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T111656&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118739&fm=278905150695646&tin=02508201610067®Number=0000000000092660&sum=100000 [11:16:53]written 0, free lines is 4095 [11:16:53]OFD Sender: Processing packet 118739 [packets to send 86, broken 85] [11:16:53]ProducePacketName [11:16:53]name=ofd_packets/00118739 [11:16:53]OFD Sender: To server: pG, [11:16:53]CommunicateWithHost lk.salyk.kg:30040 [11:16:53]ConnectInit lk.salyk.kg [11:16:53]Connected sock=9 [11:16:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7E 9D 07 01 CC 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 28 7A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 CF 01 00 35 04 06 00 FD A9 AA 6E E8 DE 70 D4 67 A4 70 C0 50 D4 [11:16:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C1 11 47 00 FA A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 CF 01 00 F4 03 04 00 B6 27 A7 66 B6 04 01 00 00 86 C7 FF B9 A3 EC DF 83 [11:16:53]CommunicateWithHost err = 0 [11:16:53]CheckOFDResponse [11:16:53]1017 (14) - 77093643461234 [11:16:53]1041 (16) - 0000000000874939 [11:16:53]1040 (4) - 118739 [11:16:53]1012 (4) - 29.07.2024 05:25 [11:16:53]1206 (1) - 0 [11:16:53]OFD Sender: Remove packet 118739 [11:16:53]ProducePacketName [11:16:53]name=ofd_packets/00118739 [11:16:53]NVStorageDeleteData [11:16:53]Write to MH i2c: 01 00 00 9D 4A E7 [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: 01 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: 01 07 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: 01 07 00 9D 4A 00 00 00 00 00 D8 0C D2 [11:16:53]RasterBufferAndPrint [11:16:53]line [11:16:53]line [11:16:53]line [11:16:53]line [11:16:53]line [11:16:53]written 0, free lines is 3295 [11:16:53]MH_Cut [11:16:53]Write to MH i2c: D1 01 00 A4 4A 01 C0 [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: D1 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: D1 01 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: D1 01 00 A4 4A 00 BF [11:16:53]Write to MH i2c: 01 00 00 A5 4A EF [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]OFD Sender: No OFD packet to send [11:16:54]*** Cut start [11:16:54]*** Partial cut [11:16:54]*** CUTSNS_PIN = 1 [11:16:54]*** CUTSNS_PIN = 0 [11:16:54]*** Brake cut motor [11:16:54]Read from MH i2c: 01 [11:16:54]MH_I2C_Read... [11:16:54]*** Stop cut motor [11:16:54]*** Cut end [11:16:54]Read from MH i2c: 01 07 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: 01 07 00 A5 4A 00 00 00 00 00 FF 0F 04 [11:16:54]process_action close_receipt done [11:16:54]requested_data is exist [11:16:54]produce_requested_data [11:16:54]requested_item fm.sn is exist - process it [11:16:54]wFMCommunicate request_size=4 [11:16:54]MH_SAM_APDU [11:16:54]CAPDU: 80 11 00 00 [11:16:54]Write to MH i2c: E2 08 00 A6 4A 80 11 00 00 00 00 00 00 6A [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 17 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 17 00 A6 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C5 [11:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:16:54]wFMCommunicate OK [11:16:54]requested_item fd.num is exist - process it [11:16:54]SAM_PROTO_GetFieldsCounters [11:16:54]wFMCommunicate request_size=4 [11:16:54]MH_SAM_APDU [11:16:54]CAPDU: 80 13 00 00 [11:16:54]Write to MH i2c: E2 08 00 A7 4A 80 13 00 00 00 00 00 00 6D [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 62 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 62 00 A7 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D3 CF 01 00 0E 04 04 00 B2 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 43 [11:16: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D3 CF 01 00 0E 04 04 00 B2 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 [11:16:55]wFMCommunicate OK [11:16:55]SAM_PROTO_GetFieldsCounters done [11:16:55]requested_item shift.num is exist - process it [11:16:55]requested_item shift.opened is exist - process it [11:16:55]req_shift_opened [11:16:55]FM_GetShiftState [11:16:55]SAM_PROTO_GetShiftState [11:16:55]wFMCommunicate request_size=4 [11:16:55]MH_SAM_APDU [11:16:55]CAPDU: 80 13 01 00 [11:16:55]Write to MH i2c: E2 08 00 A8 4A 80 13 01 00 00 00 00 00 6F [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:55]Read from MH i2c: E2 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 0E 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 0E 00 A8 4A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 9D [11:16:55]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:16:55]wFMCommunicate OK [11:16:55]SAM_PROTO_GetShiftState done [11:16:55]FM_GetShiftState done [11:16:55]req_shift_opened done [11:16:55]requested_item shift.open_date is exist - process it [11:16:55]req_shift_open_date [11:16:55]req_shift_open_date done [11:16:55]produce_requested_data done [11:16:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118739,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [11:16:55]process_action_free close_receipt [11:16:55]json_value_free [11:16:55]json_value_free done [11:16:55]process_json_proto returns [11:16:55]Send response to host [11:16:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118739,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [11:16:55]free response buf [11:16:55]execute_script done [11:16:55]execute_script returns [11:16:55]free content buf [11:16:55]Sock 7.Close socket [11:16:55]Sock 7.Thread stoped [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:29]OFD Sender: No OFD packet to send [11:19:34]OFD Sender: No OFD packet to send [11:19:39]OFD Sender: No OFD packet to send [11:19:44]OFD Sender: No OFD packet to send [11:19:49]OFD Sender: No OFD packet to send [11:19:54]OFD Sender: No OFD packet to send [11:19:59]OFD Sender: No OFD packet to send [11:20:04]OFD Sender: No OFD packet to send [11:20:09]OFD Sender: No OFD packet to send [11:20:14]OFD Sender: No OFD packet to send [11:20:19]OFD Sender: No OFD packet to send [11:20:24]OFD Sender: No OFD packet to send [11:20:29]OFD Sender: No OFD packet to send [11:20:34]OFD Sender: No OFD packet to send [11:20:39]OFD Sender: No OFD packet to send [11:20:44]OFD Sender: No OFD packet to send [11:20:49]OFD Sender: No OFD packet to send [11:20:54]OFD Sender: No OFD packet to send [11:20:59]OFD Sender: No OFD packet to send [11:21:02]accept exits with 10 [11:21:02]New connection [11:21:02]New thread 3067239780 created [11:21:02]Thread 3067383140 joined [11:21:02]Waiting for new connection... [11:21:02] Sock 10.Parse request [11:21:02]Sock 10.Check first char [11:21:02]Sock 10.First char is OK [11:21:02]request: POST /json_proto HTTP/1.0 [11:21:02]Method: POST [11:21:02]URL: /json_proto [11:21:02]Method is POST - this is cgi request [11:21:02]url: /json_proto [11:21:02]query_string will be loaded in cgi processing [11:21:02]execute_cgi json_proto POST (null) [11:21:02]execute_cgi path=json_proto method=POST [11:21:02]POST find Content-Length [11:21:02]Host: 172.17.45.7:8080 [11:21:02]Content-Length: 677 [11:21:02]Content-Type: application/json [11:21:02] [11:21:02]POST finish read [11:21:02]Found Content-Length = 677 [11:21:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:02]execute_script... [11:21: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)949625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:02]POST & json_proto [11:21:02]process_json_proto [11:21:02]json parsed OK: [11:21:02]protocol is kg_v1.0 [11:21:02]action value=close_receipt [11:21:02]process_action close_receipt [11:21:02]cmd_close_receipt [11:21:02]MH_GetDate [11:21:02]Write to MH i2c: F0 00 00 A9 4A E2 [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: F0 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: F0 09 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: F0 09 00 A9 4A 00 24 7B A7 66 90 0F 3E 66 DA [11:21:02]GetLastDocTimeStamp 1722251816 [11:21:02]current date 1722252068 [11:21:02]FM_GetShiftState [11:21:02]SAM_PROTO_GetShiftState [11:21:02]wFMCommunicate request_size=4 [11:21:02]MH_SAM_APDU [11:21:02]CAPDU: 80 13 01 00 [11:21:02]Write to MH i2c: E2 08 00 AA 4A 80 13 01 00 00 00 00 00 71 [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:03]Read from MH i2c: E2 [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: E2 0E 00 [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: E2 0E 00 AA 4A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 9F [11:21:03]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:21:03]wFMCommunicate OK [11:21:03]SAM_PROTO_GetShiftState done [11:21:03]FM_GetShiftState done [11:21:03]opened in 1722211641 [11:21:03]opened+sec_in_day 1722298041 [11:21:03]quantity*price = 35052 [11:21:03]sum+1 = 35054 [11:21:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 116 29.07.2024 11:21 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118740 ФПД: 264258233047118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T112108&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118740&fm=264258233047118&tin=02508201610067®Number=0000000000092660&sum=35000 [11:21:04]StoreToDocumentArchive [11:21:04]shift 434 fd 118740 [11:21:04]save to /storage/0434/doc_00118740 [11:21:04]save last doc name /storage/0434/doc_00118740 to /storage/kkm_last_doc_name [11:21:04]save OK [11:21:04]Clear old archive folders... [11:21:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:21:04]tlvbuf is 01E89AF0 [11:21:04]SAM_PROTO_ClearQueue [11:21:04]wFMCommunicate request_size=4 [11:21:04]MH_SAM_APDU [11:21:04]CAPDU: 80 09 00 00 [11:21:04]Write to MH i2c: E2 08 00 B7 4A 80 09 00 00 00 00 00 00 73 [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:04]Read from MH i2c: E2 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 03 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 03 00 B7 4A 00 90 00 75 [11:21:04]RAPDU: 90 00 [11:21:04]wFMCommunicate OK [11:21:04]SAM_PROTO_ClearQueue done [11:21:04]KKMCreateOFDPacket [11:21:04]OFDProtocolAddRootSTLVToBuf [11:21:04]FM_MakeSignedData [11:21:04]FM_MakeSignedData [11:21:04]SAM_PROTO_SignData [11:21:04]wFMCommunicate request_size=4 [11:21:04]MH_SAM_APDU [11:21:04]CAPDU: 80 0D 01 02 [11:21:04]Write to MH i2c: E2 08 00 B8 4A 80 0D 01 02 00 00 00 00 7B [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:04]Read from MH i2c: E2 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 03 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 03 00 B8 4A 00 90 00 76 [11:21:04]RAPDU: 90 00 [11:21:04]wFMCommunicate OK [11:21:04]wFMCommunicate request_size=255 [11:21:04]MH_SAM_APDU [11:21:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 24 7B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 CF 01 00 35 04 06 00 F0 [11:21:04]Write to MH i2c: E2 02 01 B9 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 24 7B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 CF 01 00 35 04 06 00 F0 00 00 91 [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:04]Read from MH i2c: E2 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 03 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 03 00 B9 4A 00 90 00 77 [11:21:04]RAPDU: 90 00 [11:21:04]wFMCommunicate OK [11:21:04]wFMCommunicate request_size=10 [11:21:04]MH_SAM_APDU [11:21:04]CAPDU: 80 0D 02 02 05 57 6A 1C 18 4E [11:21:04]Write to MH i2c: E2 0D 00 BA 4A 80 0D 02 02 05 00 57 6A 1C 18 4E 00 00 CB [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:04]Read from MH i2c: E2 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 03 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 03 00 BA 4A 00 90 00 78 [11:21:04]RAPDU: 90 00 [11:21:04]wFMCommunicate OK [11:21:04]wFMCommunicate request_size=4 [11:21:04]MH_SAM_APDU [11:21:04]CAPDU: 80 0D 03 02 [11:21:04]Write to MH i2c: E2 08 00 BB 4A 80 0D 03 02 00 00 00 00 80 [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:04]Read from MH i2c: E2 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 0B 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 0B 00 BB 4A 00 02 10 8B 06 C4 61 BE 19 90 00 20 [11:21:04]RAPDU: 02 10 8B 06 C4 61 BE 19 90 00 [11:21:04]wFMCommunicate OK [11:21:04]SAM_PROTO_SignData done [11:21:04]FM_MakeSignedData done [11:21:04]CreateOFDProtocolMessage [11:21:04]wFMCommunicate request_size=4 [11:21:04]MH_SAM_APDU [11:21:04]CAPDU: 80 11 00 00 [11:21:04]Write to MH i2c: E2 08 00 BC 4A 80 11 00 00 00 00 00 00 80 [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:04]Read from MH i2c: E2 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 17 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 17 00 BC 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DB [11:21:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:21:04]wFMCommunicate OK [11:21:04]CreateOFDProtocolMessage done [11:21:04]OFDSenderStorePacket 118740 [11:21:04]StoreOFDPacket docnum=118740 [11:21:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C7 BE 07 01 CD 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 24 7B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 CF 01 00 35 04 06 00 F0 57 6A 1C 18 4E 02 10 8B 06 C4 61 BE 19 [11:21:04]CheckFolder [11:21:04]dirname=/storage/ofd_packets [11:21:04]CheckFolder done [11:21:04]ProducePacketName [11:21:04]name=ofd_packets/00118740 [11:21:04]NVStorageSaveData ofd_packets/00118740 [11:21:04]File name is /storage/ofd_packets/00118740 [11:21:04]Write 301 bytes [11:21:04]NVStorageSaveData done [11:21:04]OFDSenderStorePacket done [11:21:04]KKMCreateOFDPacket done [11:21:04]NVStorageSaveData kkm_last_timestamp [11:21:04]File name is /storage/kkm_last_timestamp [11:21:04]Write 4 bytes [11:21:04]NVStorageSaveData done [11:21:04]ExternCall_PrintAddStr [11:21:04]wPrintStart [11:21:04]Write to MH i2c: 01 00 00 BD 4A 07 [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: 01 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: 01 07 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: 01 07 00 BD 4A 00 00 00 00 00 FF 0F 1C [11:21:04]RasterBufferAndPrint [11:21:04]line Счет N : (1)949625 [11:21:04]line ИНН: 02508201610067 [11:21:04]line Контрольно-Кассовый Чек [11:21:04]line ПРОДАЖА [11:21:04]line ТРК (МРК, ГНК) : 41 [11:21:04]line Товар: 2710124130 [11:21:04]line Аи-92-К-4 [11:21:04]line 5.170 * 67.80 [11:21:04]line = 350.53 [11:21:04]line НДС 12% НСП 1% [11:21:04]line > о реализуемом товаре [11:21:04]line ОКРУГЛЕНИЕ: -0.53 [11:21:04]line ИТОГО: 350.00 [11:21:04]line Внесено: 350.00 [11:21:04]line СДАЧА: 0.00 [11:21:04]line НСП 1% : 3.10 [11:21:04]line НДС 12% : 37.22 [11:21:04]line Наличными: 350.00 [11:21:04]line Безнал.: 0.00 [11:21:04]line Место: АЗС № 134 "Партнер Нефть" [11:21:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:21:04]line СНО: Общий режим [11:21:04]line Чек 116 29.07.2024 11:21 [11:21:04]line Смена: 434 ФФД: 1.0 [11:21:04]line ЗНМ: 0300000044 [11:21:04]line РНМ: 0000000000092660 [11:21:04]line Версия ККМ: 001 [11:21:04]line ФМ: 0000000000874939 [11:21:04]line ФД: 118740 [11:21:04]line ФПД: 264258233047118 [11:21:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T112108&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118740&fm=264258233047118&tin=02508201610067®Number=0000000000092660&sum=35000 [11:21:05]OFD Sender: Processing packet 118740 [packets to send 86, broken 85] [11:21:05]ProducePacketName [11:21:05]name=ofd_packets/00118740 [11:21:05]OFD Sender: To server: pG, [11:21:05]CommunicateWithHost lk.salyk.kg:30040 [11:21:05]ConnectInit lk.salyk.kg [11:21:05]written 0, free lines is 4095 [11:21:05]Connected sock=9 [11:21:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C7 BE 07 01 CD 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 24 7B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 CF 01 00 35 04 06 00 F0 57 6A 1C 18 4E 02 10 8B 06 C4 61 BE 19 [11:21:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CB D8 47 00 B7 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 34 39 33 39 10 04 04 00 D4 CF 01 00 F4 03 04 00 B2 28 A7 66 B6 04 01 00 00 22 1E 19 E0 66 DE D8 7C [11:21:05]CommunicateWithHost err = 0 [11:21:05]CheckOFDResponse [11:21:05]1017 (14) - 77093643461234 [11:21:05]1041 (16) - 0000000000874939 [11:21:05]1040 (4) - 118740 [11:21:05]1012 (4) - 29.07.2024 05:29 [11:21:05]1206 (1) - 0 [11:21:05]OFD Sender: Remove packet 118740 [11:21:05]ProducePacketName [11:21:05]name=ofd_packets/00118740 [11:21:05]NVStorageDeleteData [11:21:05]Write to MH i2c: 01 00 00 E7 4A 31 [11:21:05]Write i2c OK [11:21:05]MH_I2C_Read... [11:21:05]Read from MH i2c: 01 [11:21:05]MH_I2C_Read... [11:21:05]Read from MH i2c: 01 07 00 [11:21:05]MH_I2C_Read... [11:21:05]Read from MH i2c: 01 07 00 E7 4A 00 00 00 00 00 E3 0C 27 [11:21:05]RasterBufferAndPrint [11:21:05]line [11:21:05]line [11:21:05]line [11:21:05]line [11:21:05]line [11:21:05]written 0, free lines is 3305 [11:21:05]MH_Cut [11:21:05]Write to MH i2c: D1 01 00 EE 4A 01 0A [11:21:05]Write i2c OK [11:21:05]MH_I2C_Read... [11:21:05]Read from MH i2c: D1 [11:21:05]MH_I2C_Read... [11:21:05]Read from MH i2c: D1 01 00 [11:21:05]MH_I2C_Read... [11:21:05]Read from MH i2c: D1 01 00 EE 4A 00 09 [11:21:05]Write to MH i2c: 01 00 00 EF 4A 39 [11:21:05]Write i2c OK [11:21:05]MH_I2C_Read... [11:21:05]OFD Sender: No OFD packet to send [11:21:06]*** Cut start [11:21:06]*** Partial cut [11:21:06]*** CUTSNS_PIN = 1 [11:21:06]*** CUTSNS_PIN = 0 [11:21:06]*** Brake cut motor [11:21:06]Read from MH i2c: 01 [11:21:06]MH_I2C_Read... [11:21:06]*** Stop cut motor [11:21:06]*** Cut end [11:21:06]Read from MH i2c: 01 07 00 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: 01 07 00 EF 4A 00 00 00 00 00 FF 0F 4E [11:21:06]process_action close_receipt done [11:21:06]requested_data is exist [11:21:06]produce_requested_data [11:21:06]requested_item fm.sn is exist - process it [11:21:06]wFMCommunicate request_size=4 [11:21:06]MH_SAM_APDU [11:21:06]CAPDU: 80 11 00 00 [11:21:06]Write to MH i2c: E2 08 00 F0 4A 80 11 00 00 00 00 00 00 B4 [11:21:06]Write i2c OK [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 [11:21:06]MH_I2C_Read... [11:21:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:06]Read from MH i2c: E2 17 00 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 17 00 F0 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0F [11:21:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:21:06]wFMCommunicate OK [11:21:06]requested_item fd.num is exist - process it [11:21:06]SAM_PROTO_GetFieldsCounters [11:21:06]wFMCommunicate request_size=4 [11:21:06]MH_SAM_APDU [11:21:06]CAPDU: 80 13 00 00 [11:21:06]Write to MH i2c: E2 08 00 F1 4A 80 13 00 00 00 00 00 00 B7 [11:21:06]Write i2c OK [11:21:06]MH_I2C_Read... [11:21:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:06]Read from MH i2c: E2 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 62 00 [11:21:06]MH_I2C_Read... [11:21:06]Read from MH i2c: E2 62 00 F1 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D4 CF 01 00 0E 04 04 00 B2 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 91 [11:21: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D4 CF 01 00 0E 04 04 00 B2 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 [11:21:06]wFMCommunicate OK [11:21:06]SAM_PROTO_GetFieldsCounters done [11:21:06]requested_item shift.num is exist - process it [11:21:06]requested_item shift.opened is exist - process it [11:21:06]req_shift_opened [11:21:06]FM_GetShiftState [11:21:06]SAM_PROTO_GetShiftState [11:21:06]wFMCommunicate request_size=4 [11:21:06]MH_SAM_APDU [11:21:06]CAPDU: 80 13 01 00 [11:21:06]Write to MH i2c: E2 08 00 F2 4A 80 13 01 00 00 00 00 00 B9 [11:21:06]Write i2c OK [11:21:06]MH_I2C_Read... [11:21:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:07]Read from MH i2c: E2 [11:21:07]MH_I2C_Read... [11:21:07]Read from MH i2c: E2 0E 00 [11:21:07]MH_I2C_Read... [11:21:07]Read from MH i2c: E2 0E 00 F2 4A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E7 [11:21:07]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:21:07]wFMCommunicate OK [11:21:07]SAM_PROTO_GetShiftState done [11:21:07]FM_GetShiftState done [11:21:07]req_shift_opened done [11:21:07]requested_item shift.open_date is exist - process it [11:21:07]req_shift_open_date [11:21:07]req_shift_open_date done [11:21:07]produce_requested_data done [11:21:07]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118740,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [11:21:07]process_action_free close_receipt [11:21:07]json_value_free [11:21:07]json_value_free done [11:21:07]process_json_proto returns [11:21:07]Send response to host [11:21:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118740,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [11:21:07]free response buf [11:21:07]execute_script done [11:21:07]execute_script returns [11:21:07]free content buf [11:21:07]Sock 10.Close socket [11:21:07]Sock 10.Thread stoped [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:22:00]OFD Sender: No OFD packet to send [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:50]OFD Sender: No OFD packet to send [11:22:55]OFD Sender: No OFD packet to send [11:23:00]OFD Sender: No OFD packet to send [11:23:01]accept exits with 7 [11:23:01]New connection [11:23:01]New thread 3067383140 created [11:23:01]Thread 3067239780 joined [11:23:01]Waiting for new connection... [11:23:01] Sock 7.Parse request [11:23:01]Sock 7.Check first char [11:23:01]Sock 7.First char is OK [11:23:01]request: POST /json_proto HTTP/1.0 [11:23:01]Method: POST [11:23:01]URL: /json_proto [11:23:01]Method is POST - this is cgi request [11:23:01]url: /json_proto [11:23:01]query_string will be loaded in cgi processing [11:23:01]execute_cgi json_proto POST (null) [11:23:01]execute_cgi path=json_proto method=POST [11:23:01]POST find Content-Length [11:23:01]Host: 172.17.45.7:8080 [11:23:01]Content-Length: 677 [11:23:01]Content-Type: application/json [11:23:01] [11:23:01]POST finish read [11:23:01]Found Content-Length = 677 [11:23:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:01]execute_script... [11:23:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:01]POST & json_proto [11:23:01]process_json_proto [11:23:01]json parsed OK: [11:23:01]protocol is kg_v1.0 [11:23:01]action value=close_receipt [11:23:01]process_action close_receipt [11:23:01]cmd_close_receipt [11:23:01]MH_GetDate [11:23:01]Write to MH i2c: F0 00 00 F3 4A 2C [11:23:01]Write i2c OK [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: F0 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: F0 09 00 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: F0 09 00 F3 4A 00 9A 7B A7 66 90 0F 3E 66 9A [11:23:01]GetLastDocTimeStamp 1722252068 [11:23:01]current date 1722252186 [11:23:01]FM_GetShiftState [11:23:01]SAM_PROTO_GetShiftState [11:23:01]wFMCommunicate request_size=4 [11:23:01]MH_SAM_APDU [11:23:01]CAPDU: 80 13 01 00 [11:23:01]Write to MH i2c: E2 08 00 F4 4A 80 13 01 00 00 00 00 00 BB [11:23:01]Write i2c OK [11:23:01]MH_I2C_Read... [11:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:01]Read from MH i2c: E2 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: E2 0E 00 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: E2 0E 00 F4 4A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E9 [11:23:01]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:23:01]wFMCommunicate OK [11:23:01]SAM_PROTO_GetShiftState done [11:23:01]FM_GetShiftState done [11:23:01]opened in 1722211641 [11:23:01]opened+sec_in_day 1722298041 [11:23:01]quantity*price = 50036 [11:23:01]sum+1 = 50037 [11:23:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 117 29.07.2024 11:23 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118741 ФПД: 209053556124327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T112306&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118741&fm=209053556124327&tin=02508201610067®Number=0000000000092660&sum=50000 [11:23:02]StoreToDocumentArchive [11:23:02]shift 434 fd 118741 [11:23:02]save to /storage/0434/doc_00118741 [11:23:02]save last doc name /storage/0434/doc_00118741 to /storage/kkm_last_doc_name [11:23:02]save OK [11:23:02]Clear old archive folders... [11:23:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:02]tlvbuf is 01F74D70 [11:23:02]SAM_PROTO_ClearQueue [11:23:02]wFMCommunicate request_size=4 [11:23:02]MH_SAM_APDU [11:23:02]CAPDU: 80 09 00 00 [11:23:02]Write to MH i2c: E2 08 00 01 4B 80 09 00 00 00 00 00 00 BE [11:23:02]Write i2c OK [11:23:02]MH_I2C_Read... [11:23:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:02]Read from MH i2c: E2 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 03 00 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 03 00 01 4B 00 90 00 C0 [11:23:02]RAPDU: 90 00 [11:23:02]wFMCommunicate OK [11:23:02]SAM_PROTO_ClearQueue done [11:23:02]KKMCreateOFDPacket [11:23:02]OFDProtocolAddRootSTLVToBuf [11:23:02]FM_MakeSignedData [11:23:02]FM_MakeSignedData [11:23:02]SAM_PROTO_SignData [11:23:02]wFMCommunicate request_size=4 [11:23:02]MH_SAM_APDU [11:23:02]CAPDU: 80 0D 01 02 [11:23:02]Write to MH i2c: E2 08 00 02 4B 80 0D 01 02 00 00 00 00 C6 [11:23:02]Write i2c OK [11:23:02]MH_I2C_Read... [11:23:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:02]Read from MH i2c: E2 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 03 00 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 03 00 02 4B 00 90 00 C1 [11:23:02]RAPDU: 90 00 [11:23:02]wFMCommunicate OK [11:23:02]wFMCommunicate request_size=255 [11:23:02]MH_SAM_APDU [11:23:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 9A 7B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D5 CF 01 00 35 04 06 00 BE [11:23:02]Write to MH i2c: E2 02 01 03 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 9A 7B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D5 CF 01 00 35 04 06 00 BE 00 00 F7 [11:23:02]Write i2c OK [11:23:02]MH_I2C_Read... [11:23:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:03]Read from MH i2c: E2 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 03 00 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 03 00 03 4B 00 90 00 C2 [11:23:03]RAPDU: 90 00 [11:23:03]wFMCommunicate OK [11:23:03]wFMCommunicate request_size=10 [11:23:03]MH_SAM_APDU [11:23:03]CAPDU: 80 0D 02 02 05 22 12 F3 AA A7 [11:23:03]Write to MH i2c: E2 0D 00 04 4B 80 0D 02 02 05 00 22 12 F3 AA A7 00 00 4B [11:23:03]Write i2c OK [11:23:03]MH_I2C_Read... [11:23:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:03]Read from MH i2c: E2 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 03 00 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 03 00 04 4B 00 90 00 C3 [11:23:03]RAPDU: 90 00 [11:23:03]wFMCommunicate OK [11:23:03]wFMCommunicate request_size=4 [11:23:03]MH_SAM_APDU [11:23:03]CAPDU: 80 0D 03 02 [11:23:03]Write to MH i2c: E2 08 00 05 4B 80 0D 03 02 00 00 00 00 CB [11:23:03]Write i2c OK [11:23:03]MH_I2C_Read... [11:23:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:03]Read from MH i2c: E2 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 0B 00 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 0B 00 05 4B 00 1F 03 88 22 4D 5E 66 1C 90 00 C5 [11:23:03]RAPDU: 1F 03 88 22 4D 5E 66 1C 90 00 [11:23:03]wFMCommunicate OK [11:23:03]SAM_PROTO_SignData done [11:23:03]FM_MakeSignedData done [11:23:03]CreateOFDProtocolMessage [11:23:03]wFMCommunicate request_size=4 [11:23:03]MH_SAM_APDU [11:23:03]CAPDU: 80 11 00 00 [11:23:03]Write to MH i2c: E2 08 00 06 4B 80 11 00 00 00 00 00 00 CB [11:23:03]Write i2c OK [11:23:03]MH_I2C_Read... [11:23:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:03]Read from MH i2c: E2 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 17 00 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 17 00 06 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 26 [11:23:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:23:03]wFMCommunicate OK [11:23:03]CreateOFDProtocolMessage done [11:23:03]OFDSenderStorePacket 118741 [11:23:03]StoreOFDPacket docnum=118741 [11:23:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 31 5C 07 01 26 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 9A 7B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D5 CF 01 00 35 04 06 00 BE 22 12 F3 AA A7 1F 03 88 22 4D 5E 66 1C [11:23:03]CheckFolder [11:23:03]dirname=/storage/ofd_packets [11:23:03]CheckFolder done [11:23:03]ProducePacketName [11:23:03]name=ofd_packets/00118741 [11:23:03]NVStorageSaveData ofd_packets/00118741 [11:23:03]File name is /storage/ofd_packets/00118741 [11:23:03]Write 301 bytes [11:23:03]NVStorageSaveData done [11:23:03]OFDSenderStorePacket done [11:23:03]KKMCreateOFDPacket done [11:23:03]NVStorageSaveData kkm_last_timestamp [11:23:03]File name is /storage/kkm_last_timestamp [11:23:03]Write 4 bytes [11:23:03]NVStorageSaveData done [11:23:03]ExternCall_PrintAddStr [11:23:03]wPrintStart [11:23:03]Write to MH i2c: 01 00 00 07 4B 52 [11:23:03]Write i2c OK [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: 01 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: 01 07 00 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: 01 07 00 07 4B 00 00 00 00 00 FF 0F 67 [11:23:03]RasterBufferAndPrint [11:23:03]line Счет N : (1)949626 [11:23:03]line ИНН: 02508201610067 [11:23:03]line Контрольно-Кассовый Чек [11:23:03]line ПРОДАЖА [11:23:03]line ТРК (МРК, ГНК) : 31 [11:23:03]line Товар: 2710124130 [11:23:03]line Аи-92-К-4 [11:23:03]line 7.380 * 67.80 [11:23:03]line = 500.36 [11:23:03]line НДС 12% НСП 1% [11:23:03]line > о реализуемом товаре [11:23:03]line ОКРУГЛЕНИЕ: -0.36 [11:23:03]line ИТОГО: 500.00 [11:23:03]line Внесено: 500.00 [11:23:03]line СДАЧА: 0.00 [11:23:03]line НСП 1% : 4.43 [11:23:03]line НДС 12% : 53.14 [11:23:03]line Наличными: 500.00 [11:23:03]line Безнал.: 0.00 [11:23:03]line Место: АЗС № 134 "Партнер Нефть" [11:23:03]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:23:03]line СНО: Общий режим [11:23:03]line Чек 117 29.07.2024 11:23 [11:23:03]line Смена: 434 ФФД: 1.0 [11:23:03]line ЗНМ: 0300000044 [11:23:03]line РНМ: 0000000000092660 [11:23:03]line Версия ККМ: 001 [11:23:03]line ФМ: 0000000000874939 [11:23:03]line ФД: 118741 [11:23:03]line ФПД: 209053556124327 [11:23:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T112306&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118741&fm=209053556124327&tin=02508201610067®Number=0000000000092660&sum=50000 [11:23:03]OFD Sender: Processing packet 118741 [packets to send 86, broken 85] [11:23:03]ProducePacketName [11:23:03]name=ofd_packets/00118741 [11:23:03]OFD Sender: To server: pG, [11:23:03]CommunicateWithHost lk.salyk.kg:30040 [11:23:03]ConnectInit lk.salyk.kg [11:23:03]written 0, free lines is 4095 [11:23:03]Connected sock=10 [11:23:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 31 5C 07 01 26 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 9A 7B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D5 CF 01 00 35 04 06 00 BE 22 12 F3 AA A7 1F 03 88 22 4D 5E 66 1C [11:23:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0A 92 47 00 CC 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 34 39 33 39 10 04 04 00 D5 CF 01 00 F4 03 04 00 28 29 A7 66 B6 04 01 00 00 D5 8F 87 EB 12 EB CE 43 [11:23:03]CommunicateWithHost err = 0 [11:23:03]CheckOFDResponse [11:23:03]1017 (14) - 77093643461234 [11:23:03]1041 (16) - 0000000000874939 [11:23:03]1040 (4) - 118741 [11:23:03]1012 (4) - 29.07.2024 05:31 [11:23:03]1206 (1) - 0 [11:23:03]OFD Sender: Remove packet 118741 [11:23:03]ProducePacketName [11:23:03]name=ofd_packets/00118741 [11:23:03]NVStorageDeleteData [11:23:04]Write to MH i2c: 01 00 00 31 4B 7C [11:23:04]Write i2c OK [11:23:04]MH_I2C_Read... [11:23:04]Read from MH i2c: 01 [11:23:04]MH_I2C_Read... [11:23:04]Read from MH i2c: 01 07 00 [11:23:04]MH_I2C_Read... [11:23:04]Read from MH i2c: 01 07 00 31 4B 00 00 00 00 00 E4 0C 73 [11:23:04]RasterBufferAndPrint [11:23:04]line [11:23:04]line [11:23:04]line [11:23:04]line [11:23:04]line [11:23:04]written 0, free lines is 3306 [11:23:04]MH_Cut [11:23:04]Write to MH i2c: D1 01 00 38 4B 01 55 [11:23:04]Write i2c OK [11:23:04]MH_I2C_Read... [11:23:04]Read from MH i2c: D1 [11:23:04]MH_I2C_Read... [11:23:04]Read from MH i2c: D1 01 00 [11:23:04]MH_I2C_Read... [11:23:04]Read from MH i2c: D1 01 00 38 4B 00 54 [11:23:04]Write to MH i2c: 01 00 00 39 4B 84 [11:23:04]Write i2c OK [11:23:04]MH_I2C_Read... [11:23:04]OFD Sender: No OFD packet to send [11:23:04]*** Cut start [11:23:04]*** Partial cut [11:23:04]*** CUTSNS_PIN = 1 [11:23:04]*** CUTSNS_PIN = 0 [11:23:05]*** Brake cut motor [11:23:05]Read from MH i2c: 01 [11:23:05]MH_I2C_Read... [11:23:05]*** Stop cut motor [11:23:05]*** Cut end [11:23:05]Read from MH i2c: 01 07 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: 01 07 00 39 4B 00 00 00 00 00 FF 0F 99 [11:23:05]process_action close_receipt done [11:23:05]requested_data is exist [11:23:05]produce_requested_data [11:23:05]requested_item fm.sn is exist - process it [11:23:05]wFMCommunicate request_size=4 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 11 00 00 [11:23:05]Write to MH i2c: E2 08 00 3A 4B 80 11 00 00 00 00 00 00 FF [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:05]Read from MH i2c: E2 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 17 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 17 00 3A 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5A [11:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:23:05]wFMCommunicate OK [11:23:05]requested_item fd.num is exist - process it [11:23:05]SAM_PROTO_GetFieldsCounters [11:23:05]wFMCommunicate request_size=4 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 13 00 00 [11:23:05]Write to MH i2c: E2 08 00 3B 4B 80 13 00 00 00 00 00 00 02 [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:05]Read from MH i2c: E2 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 62 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 62 00 3B 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D5 CF 01 00 0E 04 04 00 B2 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 E0 [11:23: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D5 CF 01 00 0E 04 04 00 B2 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 [11:23:05]wFMCommunicate OK [11:23:05]SAM_PROTO_GetFieldsCounters done [11:23:05]requested_item shift.num is exist - process it [11:23:05]requested_item shift.opened is exist - process it [11:23:05]req_shift_opened [11:23:05]FM_GetShiftState [11:23:05]SAM_PROTO_GetShiftState [11:23:05]wFMCommunicate request_size=4 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 13 01 00 [11:23:05]Write to MH i2c: E2 08 00 3C 4B 80 13 01 00 00 00 00 00 04 [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:05]Read from MH i2c: E2 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 0E 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 0E 00 3C 4B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 32 [11:23:05]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:23:05]wFMCommunicate OK [11:23:05]SAM_PROTO_GetShiftState done [11:23:05]FM_GetShiftState done [11:23:05]req_shift_opened done [11:23:05]requested_item shift.open_date is exist - process it [11:23:05]req_shift_open_date [11:23:05]req_shift_open_date done [11:23:05]produce_requested_data done [11:23:05]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118741,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [11:23:05]process_action_free close_receipt [11:23:05]json_value_free [11:23:05]json_value_free done [11:23:05]process_json_proto returns [11:23:05]Send response to host [11:23:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118741,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [11:23:05]free response buf [11:23:05]execute_script done [11:23:05]execute_script returns [11:23:05]free content buf [11:23:05]Sock 7.Close socket [11:23:05]Sock 7.Thread stoped [11:23:06]accept exits with 9 [11:23:06]New connection [11:23:06]New thread 3067239780 created [11:23:06]Thread 3067383140 joined [11:23:06]Waiting for new connection... [11:23:06] Sock 9.Parse request [11:23:06]Sock 9.Check first char [11:23:06]Sock 9.First char is OK [11:23:06]request: POST /json_proto HTTP/1.0 [11:23:06]Method: POST [11:23:06]URL: /json_proto [11:23:06]Method is POST - this is cgi request [11:23:06]url: /json_proto [11:23:06]query_string will be loaded in cgi processing [11:23:06]execute_cgi json_proto POST (null) [11:23:06]execute_cgi path=json_proto method=POST [11:23:06]POST find Content-Length [11:23:06]Host: 172.17.45.7:8080 [11:23:06]Content-Length: 677 [11:23:06]Content-Type: application/json [11:23:06] [11:23:06]POST finish read [11:23:06]Found Content-Length = 677 [11:23:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:06]execute_script... [11:23: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)949627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:06]POST & json_proto [11:23:06]process_json_proto [11:23:06]json parsed OK: [11:23:06]protocol is kg_v1.0 [11:23:06]action value=close_receipt [11:23:06]process_action close_receipt [11:23:06]cmd_close_receipt [11:23:06]MH_GetDate [11:23:06]Write to MH i2c: F0 00 00 3D 4B 77 [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: F0 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: F0 09 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: F0 09 00 3D 4B 00 9F 7B A7 66 90 0F 3E 66 EA [11:23:06]GetLastDocTimeStamp 1722252186 [11:23:06]current date 1722252191 [11:23:06]FM_GetShiftState [11:23:06]SAM_PROTO_GetShiftState [11:23:06]wFMCommunicate request_size=4 [11:23:06]MH_SAM_APDU [11:23:06]CAPDU: 80 13 01 00 [11:23:06]Write to MH i2c: E2 08 00 3E 4B 80 13 01 00 00 00 00 00 06 [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:06]Read from MH i2c: E2 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 0E 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 0E 00 3E 4B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 34 [11:23:06]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:23:06]wFMCommunicate OK [11:23:06]SAM_PROTO_GetShiftState done [11:23:06]FM_GetShiftState done [11:23:06]opened in 1722211641 [11:23:06]opened+sec_in_day 1722298041 [11:23:06]quantity*price = 50036 [11:23:06]sum+1 = 50037 [11:23:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 118 29.07.2024 11:23 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118742 ФПД: 47951063691150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T112311&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118742&fm=47951063691150&tin=02508201610067®Number=0000000000092660&sum=50000 [11:23:08]StoreToDocumentArchive [11:23:08]shift 434 fd 118742 [11:23:08]save to /storage/0434/doc_00118742 [11:23:08]save last doc name /storage/0434/doc_00118742 to /storage/kkm_last_doc_name [11:23:08]save OK [11:23:08]Clear old archive folders... [11:23:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:08]tlvbuf is 01EF80F0 [11:23:08]SAM_PROTO_ClearQueue [11:23:08]wFMCommunicate request_size=4 [11:23:08]MH_SAM_APDU [11:23:08]CAPDU: 80 09 00 00 [11:23:08]Write to MH i2c: E2 08 00 4B 4B 80 09 00 00 00 00 00 00 08 [11:23:08]Write i2c OK [11:23:08]MH_I2C_Read... [11:23:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:08]Read from MH i2c: E2 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: E2 03 00 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: E2 03 00 4B 4B 00 90 00 0A [11:23:08]RAPDU: 90 00 [11:23:08]wFMCommunicate OK [11:23:08]SAM_PROTO_ClearQueue done [11:23:08]KKMCreateOFDPacket [11:23:08]OFDProtocolAddRootSTLVToBuf [11:23:08]FM_MakeSignedData [11:23:08]FM_MakeSignedData [11:23:08]SAM_PROTO_SignData [11:23:08]wFMCommunicate request_size=4 [11:23:08]MH_SAM_APDU [11:23:08]CAPDU: 80 0D 01 02 [11:23:08]Write to MH i2c: E2 08 00 4C 4B 80 0D 01 02 00 00 00 00 10 [11:23:08]Write i2c OK [11:23:08]MH_I2C_Read... [11:23:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:08]Read from MH i2c: E2 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: E2 03 00 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: E2 03 00 4C 4B 00 90 00 0B [11:23:08]RAPDU: 90 00 [11:23:08]wFMCommunicate OK [11:23:08]wFMCommunicate request_size=255 [11:23:08]MH_SAM_APDU [11:23:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 9F 7B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 CF 01 00 35 04 06 00 2B [11:23:08]Write to MH i2c: E2 02 01 4D 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 9F 7B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 CF 01 00 35 04 06 00 2B 00 00 B5 [11:23:08]Write i2c OK [11:23:08]MH_I2C_Read... [11:23:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:08]Read from MH i2c: E2 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: E2 03 00 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: E2 03 00 4D 4B 00 90 00 0C [11:23:08]RAPDU: 90 00 [11:23:08]wFMCommunicate OK [11:23:08]wFMCommunicate request_size=10 [11:23:08]MH_SAM_APDU [11:23:08]CAPDU: 80 0D 02 02 05 9C 7A 1E 2F 8E [11:23:08]Write to MH i2c: E2 0D 00 4E 4B 80 0D 02 02 05 00 9C 7A 1E 2F 8E 00 00 0E [11:23:08]Write i2c OK [11:23:08]MH_I2C_Read... [11:23:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:08]Read from MH i2c: E2 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: E2 03 00 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: E2 03 00 4E 4B 00 90 00 0D [11:23:08]RAPDU: 90 00 [11:23:08]wFMCommunicate OK [11:23:08]wFMCommunicate request_size=4 [11:23:08]MH_SAM_APDU [11:23:08]CAPDU: 80 0D 03 02 [11:23:08]Write to MH i2c: E2 08 00 4F 4B 80 0D 03 02 00 00 00 00 15 [11:23:08]Write i2c OK [11:23:08]MH_I2C_Read... [11:23:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:08]Read from MH i2c: E2 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: E2 0B 00 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: E2 0B 00 4F 4B 00 AC 23 E1 DD 8B 91 DA B3 90 00 4C [11:23:08]RAPDU: AC 23 E1 DD 8B 91 DA B3 90 00 [11:23:08]wFMCommunicate OK [11:23:08]SAM_PROTO_SignData done [11:23:08]FM_MakeSignedData done [11:23:08]CreateOFDProtocolMessage [11:23:08]wFMCommunicate request_size=4 [11:23:08]MH_SAM_APDU [11:23:08]CAPDU: 80 11 00 00 [11:23:08]Write to MH i2c: E2 08 00 50 4B 80 11 00 00 00 00 00 00 15 [11:23:08]Write i2c OK [11:23:08]MH_I2C_Read... [11:23:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:08]Read from MH i2c: E2 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: E2 17 00 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: E2 17 00 50 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 70 [11:23:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:23:08]wFMCommunicate OK [11:23:08]CreateOFDProtocolMessage done [11:23:08]OFDSenderStorePacket 118742 [11:23:08]StoreOFDPacket docnum=118742 [11:23:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 84 EF 07 01 56 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 9F 7B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 CF 01 00 35 04 06 00 2B 9C 7A 1E 2F 8E AC 23 E1 DD 8B 91 DA B3 [11:23:08]CheckFolder [11:23:08]dirname=/storage/ofd_packets [11:23:08]CheckFolder done [11:23:08]ProducePacketName [11:23:08]name=ofd_packets/00118742 [11:23:08]NVStorageSaveData ofd_packets/00118742 [11:23:08]File name is /storage/ofd_packets/00118742 [11:23:08]Write 301 bytes [11:23:08]NVStorageSaveData done [11:23:08]OFDSenderStorePacket done [11:23:08]KKMCreateOFDPacket done [11:23:08]NVStorageSaveData kkm_last_timestamp [11:23:08]File name is /storage/kkm_last_timestamp [11:23:08]Write 4 bytes [11:23:08]NVStorageSaveData done [11:23:08]ExternCall_PrintAddStr [11:23:08]wPrintStart [11:23:08]Write to MH i2c: 01 00 00 51 4B 9C [11:23:08]Write i2c OK [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: 01 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: 01 07 00 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: 01 07 00 51 4B 00 00 00 00 00 FF 0F B1 [11:23:08]RasterBufferAndPrint [11:23:08]line Счет N : (1)949627 [11:23:08]line ИНН: 02508201610067 [11:23:08]line Контрольно-Кассовый Чек [11:23:08]line ПРОДАЖА [11:23:08]line ТРК (МРК, ГНК) : 51 [11:23:08]line Товар: 2710124130 [11:23:08]line Аи-92-К-4 [11:23:08]line 7.380 * 67.80 [11:23:08]line = 500.36 [11:23:08]line НДС 12% НСП 1% [11:23:08]line > о реализуемом товаре [11:23:08]line ОКРУГЛЕНИЕ: -0.36 [11:23:08]line ИТОГО: 500.00 [11:23:08]line Внесено: 500.00 [11:23:08]line СДАЧА: 0.00 [11:23:08]line НСП 1% : 4.43 [11:23:08]line НДС 12% : 53.14 [11:23:08]line Наличными: 500.00 [11:23:08]line Безнал.: 0.00 [11:23:08]line Место: АЗС № 134 "Партнер Нефть" [11:23:08]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:23:08]line СНО: Общий режим [11:23:08]line Чек 118 29.07.2024 11:23 [11:23:08]line Смена: 434 ФФД: 1.0 [11:23:08]line ЗНМ: 0300000044 [11:23:08]line РНМ: 0000000000092660 [11:23:08]line Версия ККМ: 001 [11:23:08]line ФМ: 0000000000874939 [11:23:08]line ФД: 118742 [11:23:08]line ФПД: 47951063691150 [11:23:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T112311&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118742&fm=47951063691150&tin=02508201610067®Number=0000000000092660&sum=50000 [11:23:08]written 0, free lines is 4095 [11:23:08]OFD Sender: Processing packet 118742 [packets to send 86, broken 85] [11:23:08]ProducePacketName [11:23:08]name=ofd_packets/00118742 [11:23:08]OFD Sender: To server: pG, [11:23:08]CommunicateWithHost lk.salyk.kg:30040 [11:23:08]ConnectInit lk.salyk.kg [11:23:08]Connected sock=10 [11:23:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 84 EF 07 01 56 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 9F 7B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 CF 01 00 35 04 06 00 2B 9C 7A 1E 2F 8E AC 23 E1 DD 8B 91 DA B3 [11:23:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 43 B8 47 00 7B 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 CF 01 00 F4 03 04 00 2E 29 A7 66 B6 04 01 00 00 61 2E F7 C3 DD 7E 72 3B [11:23:09]CommunicateWithHost err = 0 [11:23:09]CheckOFDResponse [11:23:09]1017 (14) - 77093643461234 [11:23:09]1041 (16) - 0000000000874939 [11:23:09]1040 (4) - 118742 [11:23:09]1012 (4) - 29.07.2024 05:31 [11:23:09]1206 (1) - 0 [11:23:09]OFD Sender: Remove packet 118742 [11:23:09]ProducePacketName [11:23:09]name=ofd_packets/00118742 [11:23:09]NVStorageDeleteData [11:23:09]Write to MH i2c: 01 00 00 7B 4B C6 [11:23:09]Write i2c OK [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: 01 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: 01 07 00 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: 01 07 00 7B 4B 00 00 00 00 00 DC 0C B5 [11:23:09]RasterBufferAndPrint [11:23:09]line [11:23:09]line [11:23:09]line [11:23:09]line [11:23:09]line [11:23:09]written 0, free lines is 3307 [11:23:09]MH_Cut [11:23:09]Write to MH i2c: D1 01 00 82 4B 01 9F [11:23:09]Write i2c OK [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: D1 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: D1 01 00 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: D1 01 00 82 4B 00 9E [11:23:09]Write to MH i2c: 01 00 00 83 4B CE [11:23:09]Write i2c OK [11:23:09]MH_I2C_Read... [11:23:09]OFD Sender: No OFD packet to send [11:23:09]*** Cut start [11:23:09]*** Partial cut [11:23:09]*** CUTSNS_PIN = 1 [11:23:09]*** CUTSNS_PIN = 0 [11:23:10]*** Brake cut motor [11:23:10]Read from MH i2c: 01 [11:23:10]MH_I2C_Read... [11:23:10]*** Stop cut motor [11:23:10]*** Cut end [11:23:10]Read from MH i2c: 01 07 00 [11:23:10]MH_I2C_Read... [11:23:10]Read from MH i2c: 01 07 00 83 4B 00 00 00 00 00 FF 0F E3 [11:23:10]process_action close_receipt done [11:23:10]requested_data is exist [11:23:10]produce_requested_data [11:23:10]requested_item fm.sn is exist - process it [11:23:10]wFMCommunicate request_size=4 [11:23:10]MH_SAM_APDU [11:23:10]CAPDU: 80 11 00 00 [11:23:10]Write to MH i2c: E2 08 00 84 4B 80 11 00 00 00 00 00 00 49 [11:23:10]Write i2c OK [11:23:10]MH_I2C_Read... [11:23:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:10]Read from MH i2c: E2 [11:23:10]MH_I2C_Read... [11:23:10]Read from MH i2c: E2 17 00 [11:23:10]MH_I2C_Read... [11:23:10]Read from MH i2c: E2 17 00 84 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A4 [11:23:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:23:10]wFMCommunicate OK [11:23:10]requested_item fd.num is exist - process it [11:23:10]SAM_PROTO_GetFieldsCounters [11:23:10]wFMCommunicate request_size=4 [11:23:10]MH_SAM_APDU [11:23:10]CAPDU: 80 13 00 00 [11:23:10]Write to MH i2c: E2 08 00 85 4B 80 13 00 00 00 00 00 00 4C [11:23:10]Write i2c OK [11:23:10]MH_I2C_Read... [11:23:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:10]Read from MH i2c: E2 [11:23:10]MH_I2C_Read... [11:23:10]Read from MH i2c: E2 62 00 [11:23:10]MH_I2C_Read... [11:23:10]Read from MH i2c: E2 62 00 85 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D6 CF 01 00 0E 04 04 00 B2 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 2E [11:23: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D6 CF 01 00 0E 04 04 00 B2 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 [11:23:10]wFMCommunicate OK [11:23:10]SAM_PROTO_GetFieldsCounters done [11:23:10]requested_item shift.num is exist - process it [11:23:10]requested_item shift.opened is exist - process it [11:23:10]req_shift_opened [11:23:10]FM_GetShiftState [11:23:10]SAM_PROTO_GetShiftState [11:23:10]wFMCommunicate request_size=4 [11:23:10]MH_SAM_APDU [11:23:10]CAPDU: 80 13 01 00 [11:23:10]Write to MH i2c: E2 08 00 86 4B 80 13 01 00 00 00 00 00 4E [11:23:10]Write i2c OK [11:23:10]MH_I2C_Read... [11:23:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:10]Read from MH i2c: E2 [11:23:10]MH_I2C_Read... [11:23:10]Read from MH i2c: E2 0E 00 [11:23:10]MH_I2C_Read... [11:23:10]Read from MH i2c: E2 0E 00 86 4B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 7C [11:23:10]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:23:10]wFMCommunicate OK [11:23:10]SAM_PROTO_GetShiftState done [11:23:10]FM_GetShiftState done [11:23:10]req_shift_opened done [11:23:10]requested_item shift.open_date is exist - process it [11:23:10]req_shift_open_date [11:23:10]req_shift_open_date done [11:23:10]produce_requested_data done [11:23:10]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118742,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [11:23:10]process_action_free close_receipt [11:23:10]json_value_free [11:23:10]json_value_free done [11:23:10]process_json_proto returns [11:23:10]Send response to host [11:23:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118742,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [11:23:10]free response buf [11:23:10]execute_script done [11:23:10]execute_script returns [11:23:10]free content buf [11:23:10]Sock 9.Close socket [11:23:10]Sock 9.Thread stoped [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:49]OFD Sender: No OFD packet to send [11:24:54]OFD Sender: No OFD packet to send [11:24:59]OFD Sender: No OFD packet to send [11:25:04]OFD Sender: No OFD packet to send [11:25:09]OFD Sender: No OFD packet to send [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:51]accept exits with 7 [11:25:51]New connection [11:25:51]New thread 3067383140 created [11:25:51]Thread 3067239780 joined [11:25:51]Waiting for new connection... [11:25:51] Sock 7.Parse request [11:25:51]Sock 7.Check first char [11:25:51]Sock 7.First char is OK [11:25:51]request: POST /json_proto HTTP/1.0 [11:25:51]Method: POST [11:25:51]URL: /json_proto [11:25:51]Method is POST - this is cgi request [11:25:51]url: /json_proto [11:25:51]query_string will be loaded in cgi processing [11:25:51]execute_cgi json_proto POST (null) [11:25:51]execute_cgi path=json_proto method=POST [11:25:51]POST find Content-Length [11:25:51]Host: 172.17.45.7:8080 [11:25:51]Content-Length: 678 [11:25:51]Content-Type: application/json [11:25:51] [11:25:51]POST finish read [11:25:51]Found Content-Length = 678 [11:25:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:51]execute_script... [11:25: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)949628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:51]POST & json_proto [11:25:51]process_json_proto [11:25:51]json parsed OK: [11:25:51]protocol is kg_v1.0 [11:25:51]action value=close_receipt [11:25:51]process_action close_receipt [11:25:51]cmd_close_receipt [11:25:51]MH_GetDate [11:25:51]Write to MH i2c: F0 00 00 87 4B C1 [11:25:51]Write i2c OK [11:25:51]MH_I2C_Read... [11:25:51]Read from MH i2c: F0 [11:25:51]MH_I2C_Read... [11:25:51]Read from MH i2c: F0 09 00 [11:25:51]MH_I2C_Read... [11:25:51]Read from MH i2c: F0 09 00 87 4B 00 44 7C A7 66 90 0F 3E 66 DA [11:25:51]GetLastDocTimeStamp 1722252191 [11:25:51]current date 1722252356 [11:25:51]FM_GetShiftState [11:25:51]SAM_PROTO_GetShiftState [11:25:51]wFMCommunicate request_size=4 [11:25:51]MH_SAM_APDU [11:25:51]CAPDU: 80 13 01 00 [11:25:51]Write to MH i2c: E2 08 00 88 4B 80 13 01 00 00 00 00 00 50 [11:25:51]Write i2c OK [11:25:51]MH_I2C_Read... [11:25:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:51]Read from MH i2c: E2 [11:25:51]MH_I2C_Read... [11:25:51]Read from MH i2c: E2 0E 00 [11:25:51]MH_I2C_Read... [11:25:51]Read from MH i2c: E2 0E 00 88 4B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 7E [11:25:51]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:25:51]wFMCommunicate OK [11:25:51]SAM_PROTO_GetShiftState done [11:25:51]FM_GetShiftState done [11:25:51]opened in 1722211641 [11:25:51]opened+sec_in_day 1722298041 [11:25:51]quantity*price = 70037 [11:25:51]sum+1 = 70038 [11:25:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 119 29.07.2024 11:25 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118743 ФПД: 31697811828838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T112557&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118743&fm=31697811828838&tin=02508201610067®Number=0000000000092660&sum=70000 [11:25:52]StoreToDocumentArchive [11:25:52]shift 434 fd 118743 [11:25:52]save to /storage/0434/doc_00118743 [11:25:52]save last doc name /storage/0434/doc_00118743 to /storage/kkm_last_doc_name [11:25:52]save OK [11:25:52]Clear old archive folders... [11:25:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:52]tlvbuf is 01F6A0C0 [11:25:52]SAM_PROTO_ClearQueue [11:25:52]wFMCommunicate request_size=4 [11:25:52]MH_SAM_APDU [11:25:52]CAPDU: 80 09 00 00 [11:25:52]Write to MH i2c: E2 08 00 95 4B 80 09 00 00 00 00 00 00 52 [11:25:52]Write i2c OK [11:25:52]MH_I2C_Read... [11:25:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:52]Read from MH i2c: E2 [11:25:52]MH_I2C_Read... [11:25:52]Read from MH i2c: E2 03 00 [11:25:52]MH_I2C_Read... [11:25:52]Read from MH i2c: E2 03 00 95 4B 00 90 00 54 [11:25:52]RAPDU: 90 00 [11:25:52]wFMCommunicate OK [11:25:52]SAM_PROTO_ClearQueue done [11:25:52]KKMCreateOFDPacket [11:25:52]OFDProtocolAddRootSTLVToBuf [11:25:52]FM_MakeSignedData [11:25:52]FM_MakeSignedData [11:25:52]SAM_PROTO_SignData [11:25:52]wFMCommunicate request_size=4 [11:25:52]MH_SAM_APDU [11:25:52]CAPDU: 80 0D 01 02 [11:25:52]Write to MH i2c: E2 08 00 96 4B 80 0D 01 02 00 00 00 00 5A [11:25:52]Write i2c OK [11:25:52]MH_I2C_Read... [11:25:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:52]Read from MH i2c: E2 [11:25:52]MH_I2C_Read... [11:25:52]Read from MH i2c: E2 03 00 [11:25:52]MH_I2C_Read... [11:25:52]Read from MH i2c: E2 03 00 96 4B 00 90 00 55 [11:25:52]RAPDU: 90 00 [11:25:52]wFMCommunicate OK [11:25:52]wFMCommunicate request_size=255 [11:25:52]MH_SAM_APDU [11:25: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 45 7C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D7 CF 01 00 35 04 06 00 1C [11:25:52]Write to MH i2c: E2 02 01 97 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 45 7C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D7 CF 01 00 35 04 06 00 1C 00 00 80 [11:25:52]Write i2c OK [11:25:52]MH_I2C_Read... [11:25:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:53]Read from MH i2c: E2 [11:25:53]MH_I2C_Read... [11:25:53]Read from MH i2c: E2 03 00 [11:25:53]MH_I2C_Read... [11:25:53]Read from MH i2c: E2 03 00 97 4B 00 90 00 56 [11:25:53]RAPDU: 90 00 [11:25:53]wFMCommunicate OK [11:25:53]wFMCommunicate request_size=10 [11:25:53]MH_SAM_APDU [11:25:53]CAPDU: 80 0D 02 02 05 D4 38 D0 70 66 [11:25:53]Write to MH i2c: E2 0D 00 98 4B 80 0D 02 02 05 00 D4 38 D0 70 66 00 00 19 [11:25:53]Write i2c OK [11:25:53]MH_I2C_Read... [11:25:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:53]Read from MH i2c: E2 [11:25:53]MH_I2C_Read... [11:25:53]Read from MH i2c: E2 03 00 [11:25:53]MH_I2C_Read... [11:25:53]Read from MH i2c: E2 03 00 98 4B 00 90 00 57 [11:25:53]RAPDU: 90 00 [11:25:53]wFMCommunicate OK [11:25:53]wFMCommunicate request_size=4 [11:25:53]MH_SAM_APDU [11:25:53]CAPDU: 80 0D 03 02 [11:25:53]Write to MH i2c: E2 08 00 99 4B 80 0D 03 02 00 00 00 00 5F [11:25:53]Write i2c OK [11:25:53]MH_I2C_Read... [11:25:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:53]Read from MH i2c: E2 [11:25:53]MH_I2C_Read... [11:25:53]Read from MH i2c: E2 0B 00 [11:25:53]MH_I2C_Read... [11:25:53]Read from MH i2c: E2 0B 00 99 4B 00 D5 89 4D CA 11 67 3E 01 90 00 8C [11:25:53]RAPDU: D5 89 4D CA 11 67 3E 01 90 00 [11:25:53]wFMCommunicate OK [11:25:53]SAM_PROTO_SignData done [11:25:53]FM_MakeSignedData done [11:25:53]CreateOFDProtocolMessage [11:25:53]wFMCommunicate request_size=4 [11:25:53]MH_SAM_APDU [11:25:53]CAPDU: 80 11 00 00 [11:25:53]Write to MH i2c: E2 08 00 9A 4B 80 11 00 00 00 00 00 00 5F [11:25:53]Write i2c OK [11:25:53]MH_I2C_Read... [11:25:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:53]Read from MH i2c: E2 [11:25:53]MH_I2C_Read... [11:25:53]Read from MH i2c: E2 17 00 [11:25:53]MH_I2C_Read... [11:25:53]Read from MH i2c: E2 17 00 9A 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BA [11:25:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:25:53]wFMCommunicate OK [11:25:53]CreateOFDProtocolMessage done [11:25:53]OFDSenderStorePacket 118743 [11:25:53]StoreOFDPacket docnum=118743 [11:25:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2F 5A 07 01 10 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 45 7C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D7 CF 01 00 35 04 06 00 1C D4 38 D0 70 66 D5 89 4D CA 11 67 3E 01 [11:25:53]CheckFolder [11:25:53]dirname=/storage/ofd_packets [11:25:53]CheckFolder done [11:25:53]ProducePacketName [11:25:53]name=ofd_packets/00118743 [11:25:53]NVStorageSaveData ofd_packets/00118743 [11:25:53]File name is /storage/ofd_packets/00118743 [11:25:53]Write 301 bytes [11:25:53]NVStorageSaveData done [11:25:53]OFDSenderStorePacket done [11:25:53]KKMCreateOFDPacket done [11:25:53]NVStorageSaveData kkm_last_timestamp [11:25:53]File name is /storage/kkm_last_timestamp [11:25:53]Write 4 bytes [11:25:53]NVStorageSaveData done [11:25:53]ExternCall_PrintAddStr [11:25:53]wPrintStart [11:25:53]Write to MH i2c: 01 00 00 9B 4B E6 [11:25:53]Write i2c OK [11:25:53]MH_I2C_Read... [11:25:53]Read from MH i2c: 01 [11:25:53]MH_I2C_Read... [11:25:53]Read from MH i2c: 01 07 00 [11:25:53]MH_I2C_Read... [11:25:53]Read from MH i2c: 01 07 00 9B 4B 00 00 00 00 00 FF 0F FB [11:25:53]RasterBufferAndPrint [11:25:53]line Счет N : (1)949628 [11:25:53]line ИНН: 02508201610067 [11:25:53]line Контрольно-Кассовый Чек [11:25:53]line ПРОДАЖА [11:25:53]line ТРК (МРК, ГНК) : 51 [11:25:53]line Товар: 2710124130 [11:25:53]line Аи-92-К-4 [11:25:53]line 10.330 * 67.80 [11:25:53]line = 700.37 [11:25:53]line НДС 12% НСП 1% [11:25:53]line > о реализуемом товаре [11:25:53]line ОКРУГЛЕНИЕ: -0.37 [11:25:53]line ИТОГО: 700.00 [11:25:53]line Внесено: 700.00 [11:25:53]line СДАЧА: 0.00 [11:25:53]line НСП 1% : 6.20 [11:25:53]line НДС 12% : 74.38 [11:25:53]line Наличными: 700.00 [11:25:53]line Безнал.: 0.00 [11:25:53]line Место: АЗС № 134 "Партнер Нефть" [11:25:53]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:25:53]line СНО: Общий режим [11:25:53]line Чек 119 29.07.2024 11:25 [11:25:53]line Смена: 434 ФФД: 1.0 [11:25:53]line ЗНМ: 0300000044 [11:25:53]line РНМ: 0000000000092660 [11:25:53]line Версия ККМ: 001 [11:25:53]line ФМ: 0000000000874939 [11:25:53]line ФД: 118743 [11:25:53]line ФПД: 31697811828838 [11:25:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T112557&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118743&fm=31697811828838&tin=02508201610067®Number=0000000000092660&sum=70000 [11:25:53]written 0, free lines is 4095 [11:25:53]OFD Sender: Processing packet 118743 [packets to send 86, broken 85] [11:25:53]ProducePacketName [11:25:53]name=ofd_packets/00118743 [11:25:53]OFD Sender: To server: pG, [11:25:53]CommunicateWithHost lk.salyk.kg:30040 [11:25:53]ConnectInit lk.salyk.kg [11:25:53]Connected sock=10 [11: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 34 39 33 39 0F 01 00 00 2F 5A 07 01 10 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 45 7C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D7 CF 01 00 35 04 06 00 1C D4 38 D0 70 66 D5 89 4D CA 11 67 3E 01 [11:25:53]Write to MH i2c: 01 00 00 C5 4B 10 [11:25:53]Write i2c OK [11:25:53]MH_I2C_Read... [11:25:53]Read from MH i2c: 01 [11:25:53]MH_I2C_Read... [11:25:53]Read from MH i2c: 01 07 00 [11:25:53]MH_I2C_Read... [11:25:53]Read from MH i2c: 01 07 00 C5 4B 00 00 00 00 00 E3 0C 06 [11:25:53]RasterBufferAndPrint [11:25:53]line [11:25:53]line [11:25:53]line [11:25:53]line [11:25:53]line [11:25:53]written 0, free lines is 3305 [11:25:53]MH_Cut [11:25:53]Write to MH i2c: D1 01 00 CC 4B 01 E9 [11:25:53]Write i2c OK [11:25:53]MH_I2C_Read... [11:25:53]Read from MH i2c: D1 [11:25:53]MH_I2C_Read... [11:25:53]Read from MH i2c: D1 01 00 [11:25:53]MH_I2C_Read... [11:25:53]Read from MH i2c: D1 01 00 CC 4B 00 E8 [11:25:53]Write to MH i2c: 01 00 00 CD 4B 18 [11:25:53]Write i2c OK [11:25:53]MH_I2C_Read... [11:25:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8C A5 47 00 59 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 34 39 33 39 10 04 04 00 D7 CF 01 00 F4 03 04 00 D2 29 A7 66 B6 04 01 00 00 CF 00 68 D7 9E 9D 1F 74 [11:25:54]CommunicateWithHost err = 0 [11:25:54]CheckOFDResponse [11:25:54]1017 (14) - 77093643461234 [11:25:54]1041 (16) - 0000000000874939 [11:25:54]1040 (4) - 118743 [11:25:54]1012 (4) - 29.07.2024 05:34 [11:25:54]1206 (1) - 0 [11:25:54]OFD Sender: Remove packet 118743 [11:25:54]ProducePacketName [11:25:54]name=ofd_packets/00118743 [11:25:54]NVStorageDeleteData [11:25:54]OFD Sender: No OFD packet to send [11:25:54]*** Cut start [11:25:54]*** Partial cut [11:25:54]*** CUTSNS_PIN = 1 [11:25:54]*** CUTSNS_PIN = 0 [11:25:54]*** Brake cut motor [11:25:55]Read from MH i2c: 01 [11:25:55]MH_I2C_Read... [11:25:55]*** Stop cut motor [11:25:55]*** Cut end [11:25:55]Read from MH i2c: 01 07 00 [11:25:55]MH_I2C_Read... [11:25:55]Read from MH i2c: 01 07 00 CD 4B 00 00 00 00 00 FF 0F 2D [11:25:55]process_action close_receipt done [11:25:55]requested_data is exist [11:25:55]produce_requested_data [11:25:55]requested_item fm.sn is exist - process it [11:25:55]wFMCommunicate request_size=4 [11:25:55]MH_SAM_APDU [11:25:55]CAPDU: 80 11 00 00 [11:25:55]Write to MH i2c: E2 08 00 CE 4B 80 11 00 00 00 00 00 00 93 [11:25:55]Write i2c OK [11:25:55]MH_I2C_Read... [11:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:55]Read from MH i2c: E2 [11:25:55]MH_I2C_Read... [11:25:55]Read from MH i2c: E2 17 00 [11:25:55]MH_I2C_Read... [11:25:55]Read from MH i2c: E2 17 00 CE 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EE [11:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:25:55]wFMCommunicate OK [11:25:55]requested_item fd.num is exist - process it [11:25:55]SAM_PROTO_GetFieldsCounters [11:25:55]wFMCommunicate request_size=4 [11:25:55]MH_SAM_APDU [11:25:55]CAPDU: 80 13 00 00 [11:25:55]Write to MH i2c: E2 08 00 CF 4B 80 13 00 00 00 00 00 00 96 [11:25:55]Write i2c OK [11:25:55]MH_I2C_Read... [11:25:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:55]Read from MH i2c: E2 [11:25:55]MH_I2C_Read... [11:25:55]Read from MH i2c: E2 62 00 [11:25:55]MH_I2C_Read... [11:25:55]Read from MH i2c: E2 62 00 CF 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D7 CF 01 00 0E 04 04 00 B2 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 7C [11:25: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D7 CF 01 00 0E 04 04 00 B2 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 [11:25:55]wFMCommunicate OK [11:25:55]SAM_PROTO_GetFieldsCounters done [11:25:55]requested_item shift.num is exist - process it [11:25:55]requested_item shift.opened is exist - process it [11:25:55]req_shift_opened [11:25:55]FM_GetShiftState [11:25:55]SAM_PROTO_GetShiftState [11:25:55]wFMCommunicate request_size=4 [11:25:55]MH_SAM_APDU [11:25:55]CAPDU: 80 13 01 00 [11:25:55]Write to MH i2c: E2 08 00 D0 4B 80 13 01 00 00 00 00 00 98 [11:25:55]Write i2c OK [11:25:55]MH_I2C_Read... [11:25:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:55]Read from MH i2c: E2 [11:25:55]MH_I2C_Read... [11:25:55]Read from MH i2c: E2 0E 00 [11:25:55]MH_I2C_Read... [11:25:55]Read from MH i2c: E2 0E 00 D0 4B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C6 [11:25:55]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:25:55]wFMCommunicate OK [11:25:55]SAM_PROTO_GetShiftState done [11:25:55]FM_GetShiftState done [11:25:55]req_shift_opened done [11:25:55]requested_item shift.open_date is exist - process it [11:25:55]req_shift_open_date [11:25:55]req_shift_open_date done [11:25:55]produce_requested_data done [11:25:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118743,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [11:25:55]process_action_free close_receipt [11:25:55]json_value_free [11:25:55]json_value_free done [11:25:55]process_json_proto returns [11:25:55]Send response to host [11:25:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118743,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [11:25:55]free response buf [11:25:55]execute_script done [11:25:55]execute_script returns [11:25:55]free content buf [11:25:55]Sock 7.Close socket [11:25:55]Sock 7.Thread stoped [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:28]accept exits with 9 [11:26:28]New connection [11:26:28]New thread 3067239780 created [11:26:28]Thread 3067383140 joined [11:26:28]Waiting for new connection... [11:26:28] Sock 9.Parse request [11:26:28]Sock 9.Check first char [11:26:28]Sock 9.First char is OK [11:26:28]request: POST /json_proto HTTP/1.0 [11:26:28]Method: POST [11:26:28]URL: /json_proto [11:26:28]Method is POST - this is cgi request [11:26:28]url: /json_proto [11:26:28]query_string will be loaded in cgi processing [11:26:28]execute_cgi json_proto POST (null) [11:26:28]execute_cgi path=json_proto method=POST [11:26:28]POST find Content-Length [11:26:28]Host: 172.17.45.7:8080 [11:26:28]Content-Length: 677 [11:26:28]Content-Type: application/json [11:26:28] [11:26:28]POST finish read [11:26:28]Found Content-Length = 677 [11:26:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:28]execute_script... [11:26: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)949629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:28]POST & json_proto [11:26:28]process_json_proto [11:26:28]json parsed OK: [11:26:28]protocol is kg_v1.0 [11:26:28]action value=close_receipt [11:26:28]process_action close_receipt [11:26:28]cmd_close_receipt [11:26:28]MH_GetDate [11:26:28]Write to MH i2c: F0 00 00 D1 4B 0B [11:26:28]Write i2c OK [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: F0 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: F0 09 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: F0 09 00 D1 4B 00 6A 7C A7 66 90 0F 3E 66 4A [11:26:28]GetLastDocTimeStamp 1722252357 [11:26:28]current date 1722252394 [11:26:28]FM_GetShiftState [11:26:28]SAM_PROTO_GetShiftState [11:26:28]wFMCommunicate request_size=4 [11:26:28]MH_SAM_APDU [11:26:28]CAPDU: 80 13 01 00 [11:26:28]Write to MH i2c: E2 08 00 D2 4B 80 13 01 00 00 00 00 00 9A [11:26:28]Write i2c OK [11:26:28]MH_I2C_Read... [11:26:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:28]Read from MH i2c: E2 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 0E 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 0E 00 D2 4B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C8 [11:26:28]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:26:28]wFMCommunicate OK [11:26:28]SAM_PROTO_GetShiftState done [11:26:28]FM_GetShiftState done [11:26:28]opened in 1722211641 [11:26:28]opened+sec_in_day 1722298041 [11:26:28]quantity*price = 50010 [11:26:28]sum+1 = 50012 [11:26:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 120 29.07.2024 11:26 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118744 ФПД: 20627579449451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T112634&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118744&fm=20627579449451&tin=02508201610067®Number=0000000000092660&sum=50000 [11:26:29]StoreToDocumentArchive [11:26:29]shift 434 fd 118744 [11:26:29]save to /storage/0434/doc_00118744 [11:26:29]save last doc name /storage/0434/doc_00118744 to /storage/kkm_last_doc_name [11:26:29]save OK [11:26:29]Clear old archive folders... [11:26:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:30]tlvbuf is 01FC9620 [11:26:30]SAM_PROTO_ClearQueue [11:26:30]wFMCommunicate request_size=4 [11:26:30]MH_SAM_APDU [11:26:30]CAPDU: 80 09 00 00 [11:26:30]Write to MH i2c: E2 08 00 DF 4B 80 09 00 00 00 00 00 00 9C [11:26:30]Write i2c OK [11:26:30]MH_I2C_Read... [11:26:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:30]Read from MH i2c: E2 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 03 00 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 03 00 DF 4B 00 90 00 9E [11:26:30]RAPDU: 90 00 [11:26:30]wFMCommunicate OK [11:26:30]SAM_PROTO_ClearQueue done [11:26:30]KKMCreateOFDPacket [11:26:30]OFDProtocolAddRootSTLVToBuf [11:26:30]FM_MakeSignedData [11:26:30]FM_MakeSignedData [11:26:30]SAM_PROTO_SignData [11:26:30]wFMCommunicate request_size=4 [11:26:30]MH_SAM_APDU [11:26:30]CAPDU: 80 0D 01 02 [11:26:30]Write to MH i2c: E2 08 00 E0 4B 80 0D 01 02 00 00 00 00 A4 [11:26:30]Write i2c OK [11:26:30]MH_I2C_Read... [11:26:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:30]Read from MH i2c: E2 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 03 00 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 03 00 E0 4B 00 90 00 9F [11:26:30]RAPDU: 90 00 [11:26:30]wFMCommunicate OK [11:26:30]wFMCommunicate request_size=255 [11:26:30]MH_SAM_APDU [11:26:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 6A 7C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D8 CF 01 00 35 04 06 00 12 [11:26:30]Write to MH i2c: E2 02 01 E1 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 6A 7C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D8 CF 01 00 35 04 06 00 12 00 00 E7 [11:26:30]Write i2c OK [11:26:30]MH_I2C_Read... [11:26:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:30]Read from MH i2c: E2 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 03 00 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 03 00 E1 4B 00 90 00 A0 [11:26:30]RAPDU: 90 00 [11:26:30]wFMCommunicate OK [11:26:30]wFMCommunicate request_size=10 [11:26:30]MH_SAM_APDU [11:26:30]CAPDU: 80 0D 02 02 05 C2 BB 8B B0 6B [11:26:30]Write to MH i2c: E2 0D 00 E2 4B 80 0D 02 02 05 00 C2 BB 8B B0 6B 00 00 D4 [11:26:30]Write i2c OK [11:26:30]MH_I2C_Read... [11:26:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:30]Read from MH i2c: E2 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 03 00 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 03 00 E2 4B 00 90 00 A1 [11:26:30]RAPDU: 90 00 [11:26:30]wFMCommunicate OK [11:26:30]wFMCommunicate request_size=4 [11:26:30]MH_SAM_APDU [11:26:30]CAPDU: 80 0D 03 02 [11:26:30]Write to MH i2c: E2 08 00 E3 4B 80 0D 03 02 00 00 00 00 A9 [11:26:30]Write i2c OK [11:26:30]MH_I2C_Read... [11:26:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:30]Read from MH i2c: E2 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 0B 00 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 0B 00 E3 4B 00 D9 D8 9B 71 D1 15 02 D9 90 00 28 [11:26:30]RAPDU: D9 D8 9B 71 D1 15 02 D9 90 00 [11:26:30]wFMCommunicate OK [11:26:30]SAM_PROTO_SignData done [11:26:30]FM_MakeSignedData done [11:26:30]CreateOFDProtocolMessage [11:26:30]wFMCommunicate request_size=4 [11:26:30]MH_SAM_APDU [11:26:30]CAPDU: 80 11 00 00 [11:26:30]Write to MH i2c: E2 08 00 E4 4B 80 11 00 00 00 00 00 00 A9 [11:26:30]Write i2c OK [11:26:30]MH_I2C_Read... [11:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:30]Read from MH i2c: E2 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 17 00 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 17 00 E4 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 04 [11:26:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:26:30]wFMCommunicate OK [11:26:30]CreateOFDProtocolMessage done [11:26:30]OFDSenderStorePacket 118744 [11:26:30]StoreOFDPacket docnum=118744 [11:26:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A9 5E 07 01 C5 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 6A 7C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D8 CF 01 00 35 04 06 00 12 C2 BB 8B B0 6B D9 D8 9B 71 D1 15 02 D9 [11:26:30]CheckFolder [11:26:30]dirname=/storage/ofd_packets [11:26:30]CheckFolder done [11:26:30]ProducePacketName [11:26:30]name=ofd_packets/00118744 [11:26:30]NVStorageSaveData ofd_packets/00118744 [11:26:30]File name is /storage/ofd_packets/00118744 [11:26:30]Write 301 bytes [11:26:30]NVStorageSaveData done [11:26:30]OFDSenderStorePacket done [11:26:30]KKMCreateOFDPacket done [11:26:30]NVStorageSaveData kkm_last_timestamp [11:26:30]File name is /storage/kkm_last_timestamp [11:26:30]Write 4 bytes [11:26:30]NVStorageSaveData done [11:26:30]ExternCall_PrintAddStr [11:26:30]wPrintStart [11:26:30]Write to MH i2c: 01 00 00 E5 4B 30 [11:26:30]Write i2c OK [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: 01 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: 01 07 00 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: 01 07 00 E5 4B 00 00 00 00 00 FF 0F 45 [11:26:30]RasterBufferAndPrint [11:26:30]line Счет N : (1)949629 [11:26:30]line ИНН: 02508201610067 [11:26:30]line Контрольно-Кассовый Чек [11:26:30]line ПРОДАЖА [11:26:30]line ТРК (МРК, ГНК) : 43 [11:26:30]line Товар: 2710124500 [11:26:30]line Аи-95-К-3 [11:26:30]line 6.740 * 74.20 [11:26:30]line = 500.11 [11:26:30]line НДС 12% НСП 1% [11:26:30]line > о реализуемом товаре [11:26:30]line ОКРУГЛЕНИЕ: -0.11 [11:26:30]line ИТОГО: 500.00 [11:26:30]line Внесено: 500.00 [11:26:30]line СДАЧА: 0.00 [11:26:30]line НСП 1% : 4.43 [11:26:30]line НДС 12% : 53.11 [11:26:30]line Наличными: 500.00 [11:26:30]line Безнал.: 0.00 [11:26:30]line Место: АЗС № 134 "Партнер Нефть" [11:26:30]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:26:30]line СНО: Общий режим [11:26:30]line Чек 120 29.07.2024 11:26 [11:26:30]line Смена: 434 ФФД: 1.0 [11:26:30]line ЗНМ: 0300000044 [11:26:30]line РНМ: 0000000000092660 [11:26:30]line Версия ККМ: 001 [11:26:30]line ФМ: 0000000000874939 [11:26:30]line ФД: 118744 [11:26:30]line ФПД: 20627579449451 [11:26:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T112634&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118744&fm=20627579449451&tin=02508201610067®Number=0000000000092660&sum=50000 [11:26:30]OFD Sender: Processing packet 118744 [packets to send 86, broken 85] [11:26:30]ProducePacketName [11:26:30]name=ofd_packets/00118744 [11:26:30]OFD Sender: To server: pG, [11:26:30]CommunicateWithHost lk.salyk.kg:30040 [11:26:30]ConnectInit lk.salyk.kg [11:26:30]written 0, free lines is 4095 [11:26:30]Connected sock=10 [11:26:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A9 5E 07 01 C5 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 6A 7C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D8 CF 01 00 35 04 06 00 12 C2 BB 8B B0 6B D9 D8 9B 71 D1 15 02 D9 [11:26:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 DB 7C 47 00 21 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 34 39 33 39 10 04 04 00 D8 CF 01 00 F4 03 04 00 F8 29 A7 66 B6 04 01 00 00 26 AE EC 5C 3D 6D CF 37 [11:26:31]CommunicateWithHost err = 0 [11:26:31]CheckOFDResponse [11:26:31]1017 (14) - 77093643461234 [11:26:31]1041 (16) - 0000000000874939 [11:26:31]1040 (4) - 118744 [11:26:31]1012 (4) - 29.07.2024 05:34 [11:26:31]1206 (1) - 0 [11:26:31]OFD Sender: Remove packet 118744 [11:26:31]ProducePacketName [11:26:31]name=ofd_packets/00118744 [11:26:31]NVStorageDeleteData [11:26:31]Write to MH i2c: 01 00 00 0F 4C 5B [11:26:31]Write i2c OK [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: 01 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: 01 07 00 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: 01 07 00 0F 4C 00 00 00 00 00 D2 0C 40 [11:26:31]RasterBufferAndPrint [11:26:31]line [11:26:31]line [11:26:31]line [11:26:31]line [11:26:31]line [11:26:31]written 0, free lines is 3288 [11:26:31]MH_Cut [11:26:31]Write to MH i2c: D1 01 00 16 4C 01 34 [11:26:31]Write i2c OK [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: D1 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: D1 01 00 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: D1 01 00 16 4C 00 33 [11:26:31]Write to MH i2c: 01 00 00 17 4C 63 [11:26:31]Write i2c OK [11:26:31]MH_I2C_Read... [11:26:31]OFD Sender: No OFD packet to send [11:26:32]*** Cut start [11:26:32]*** Partial cut [11:26:32]*** CUTSNS_PIN = 1 [11:26:32]*** CUTSNS_PIN = 0 [11:26:32]*** Brake cut motor [11:26:32]Read from MH i2c: 01 [11:26:32]MH_I2C_Read... [11:26:32]*** Stop cut motor [11:26:32]*** Cut end [11:26:32]Read from MH i2c: 01 07 00 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: 01 07 00 17 4C 00 00 00 00 00 FF 0F 78 [11:26:32]process_action close_receipt done [11:26:32]requested_data is exist [11:26:32]produce_requested_data [11:26:32]requested_item fm.sn is exist - process it [11:26:32]wFMCommunicate request_size=4 [11:26:32]MH_SAM_APDU [11:26:32]CAPDU: 80 11 00 00 [11:26:32]Write to MH i2c: E2 08 00 18 4C 80 11 00 00 00 00 00 00 DE [11:26:32]Write i2c OK [11:26:32]MH_I2C_Read... [11:26:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:32]Read from MH i2c: E2 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 17 00 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 17 00 18 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 39 [11:26:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:26:32]wFMCommunicate OK [11:26:32]requested_item fd.num is exist - process it [11:26:32]SAM_PROTO_GetFieldsCounters [11:26:32]wFMCommunicate request_size=4 [11:26:32]MH_SAM_APDU [11:26:32]CAPDU: 80 13 00 00 [11:26:32]Write to MH i2c: E2 08 00 19 4C 80 13 00 00 00 00 00 00 E1 [11:26:32]Write i2c OK [11:26:32]MH_I2C_Read... [11:26:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:32]Read from MH i2c: E2 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 62 00 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 62 00 19 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D8 CF 01 00 0E 04 04 00 B2 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 CB [11:26:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D8 CF 01 00 0E 04 04 00 B2 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 [11:26:32]wFMCommunicate OK [11:26:32]SAM_PROTO_GetFieldsCounters done [11:26:32]requested_item shift.num is exist - process it [11:26:32]requested_item shift.opened is exist - process it [11:26:32]req_shift_opened [11:26:32]FM_GetShiftState [11:26:32]SAM_PROTO_GetShiftState [11:26:32]wFMCommunicate request_size=4 [11:26:32]MH_SAM_APDU [11:26:32]CAPDU: 80 13 01 00 [11:26:32]Write to MH i2c: E2 08 00 1A 4C 80 13 01 00 00 00 00 00 E3 [11:26:32]Write i2c OK [11:26:32]MH_I2C_Read... [11:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:32]Read from MH i2c: E2 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 0E 00 [11:26:32]MH_I2C_Read... [11:26:32]Read from MH i2c: E2 0E 00 1A 4C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 11 [11:26:32]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:26:32]wFMCommunicate OK [11:26:32]SAM_PROTO_GetShiftState done [11:26:32]FM_GetShiftState done [11:26:32]req_shift_opened done [11:26:32]requested_item shift.open_date is exist - process it [11:26:32]req_shift_open_date [11:26:32]req_shift_open_date done [11:26:32]produce_requested_data done [11:26:32]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118744,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [11:26:32]process_action_free close_receipt [11:26:32]json_value_free [11:26:32]json_value_free done [11:26:32]process_json_proto returns [11:26:32]Send response to host [11:26:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118744,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [11:26:32]free response buf [11:26:32]execute_script done [11:26:32]execute_script returns [11:26:32]free content buf [11:26:32]Sock 9.Close socket [11:26:32]Sock 9.Thread stoped [11:26:36]OFD Sender: No OFD packet to send [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:28:11]OFD Sender: No OFD packet to send [11:28:16]OFD Sender: No OFD packet to send [11:28:21]OFD Sender: No OFD packet to send [11:28:26]OFD Sender: No OFD packet to send [11:28:31]OFD Sender: No OFD packet to send [11:28:36]OFD Sender: No OFD packet to send [11:28:41]OFD Sender: No OFD packet to send [11:28:46]OFD Sender: No OFD packet to send [11:28:51]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:00]accept exits with 7 [11:30:00]New connection [11:30:00]New thread 3067383140 created [11:30:00]Thread 3067239780 joined [11:30:00]Waiting for new connection... [11:30:00] Sock 7.Parse request [11:30:00]Sock 7.Check first char [11:30:00]Sock 7.First char is OK [11:30:00]request: POST /json_proto HTTP/1.0 [11:30:00]Method: POST [11:30:00]URL: /json_proto [11:30:00]Method is POST - this is cgi request [11:30:00]url: /json_proto [11:30:00]query_string will be loaded in cgi processing [11:30:00]execute_cgi json_proto POST (null) [11:30:00]execute_cgi path=json_proto method=POST [11:30:00]POST find Content-Length [11:30:00]Host: 172.17.45.7:8080 [11:30:00]Content-Length: 682 [11:30:00]Content-Type: application/json [11:30:00] [11:30:00]POST finish read [11:30:00]Found Content-Length = 682 [11:30:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:00]execute_script... [11:30: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)949630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:00]POST & json_proto [11:30:00]process_json_proto [11:30:00]json parsed OK: [11:30:00]protocol is kg_v1.0 [11:30:00]action value=close_receipt [11:30:00]process_action close_receipt [11:30:00]cmd_close_receipt [11:30:00]MH_GetDate [11:30:00]Write to MH i2c: F0 00 00 1B 4C 56 [11:30:00]Write i2c OK [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: F0 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: F0 09 00 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: F0 09 00 1B 4C 00 3D 7D A7 66 90 0F 3E 66 69 [11:30:00]GetLastDocTimeStamp 1722252394 [11:30:00]current date 1722252605 [11:30:00]FM_GetShiftState [11:30:00]SAM_PROTO_GetShiftState [11:30:00]wFMCommunicate request_size=4 [11:30:00]MH_SAM_APDU [11:30:00]CAPDU: 80 13 01 00 [11:30:00]Write to MH i2c: E2 08 00 1C 4C 80 13 01 00 00 00 00 00 E5 [11:30:00]Write i2c OK [11:30:00]MH_I2C_Read... [11:30:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:00]Read from MH i2c: E2 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 0E 00 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 0E 00 1C 4C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 13 [11:30:00]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:30:00]wFMCommunicate OK [11:30:00]SAM_PROTO_GetShiftState done [11:30:00]FM_GetShiftState done [11:30:00]opened in 1722211641 [11:30:00]opened+sec_in_day 1722298041 [11:30:00]quantity*price = 100005 [11:30:00]sum+1 = 100006 [11:30:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 121 29.07.2024 11:30 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118745 ФПД: 125597347503280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T113005&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118745&fm=125597347503280&tin=02508201610067®Number=0000000000092660&sum=100000 [11:30:01]StoreToDocumentArchive [11:30:01]shift 434 fd 118745 [11:30:01]save to /storage/0434/doc_00118745 [11:30:01]save last doc name /storage/0434/doc_00118745 to /storage/kkm_last_doc_name [11:30:01]save OK [11:30:01]Clear old archive folders... [11:30:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:01]tlvbuf is B6FBEA20 [11:30:01]SAM_PROTO_ClearQueue [11:30:01]wFMCommunicate request_size=4 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 09 00 00 [11:30:01]Write to MH i2c: E2 08 00 29 4C 80 09 00 00 00 00 00 00 E7 [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 29 4C 00 90 00 E9 [11:30:01]RAPDU: 90 00 [11:30:01]wFMCommunicate OK [11:30:01]SAM_PROTO_ClearQueue done [11:30:01]KKMCreateOFDPacket [11:30:01]OFDProtocolAddRootSTLVToBuf [11:30:01]FM_MakeSignedData [11:30:01]FM_MakeSignedData [11:30:01]SAM_PROTO_SignData [11:30:01]wFMCommunicate request_size=4 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 0D 01 02 [11:30:01]Write to MH i2c: E2 08 00 2A 4C 80 0D 01 02 00 00 00 00 EF [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 2A 4C 00 90 00 EA [11:30:01]RAPDU: 90 00 [11:30:01]wFMCommunicate OK [11:30:01]wFMCommunicate request_size=255 [11:30:01]MH_SAM_APDU [11:30: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 3D 7D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D9 CF 01 00 35 04 06 00 72 [11:30:01]Write to MH i2c: E2 02 01 2B 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 3D 7D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D9 CF 01 00 35 04 06 00 72 00 00 10 [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 2B 4C 00 90 00 EB [11:30:01]RAPDU: 90 00 [11:30:01]wFMCommunicate OK [11:30:01]wFMCommunicate request_size=10 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 0D 02 02 05 3A E9 48 5C B0 [11:30:01]Write to MH i2c: E2 0D 00 2C 4C 80 0D 02 02 05 00 3A E9 48 5C B0 00 00 73 [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 2C 4C 00 90 00 EC [11:30:01]RAPDU: 90 00 [11:30:01]wFMCommunicate OK [11:30:01]wFMCommunicate request_size=4 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 0D 03 02 [11:30:01]Write to MH i2c: E2 08 00 2D 4C 80 0D 03 02 00 00 00 00 F4 [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 0B 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 0B 00 2D 4C 00 E2 64 D6 AD FC 6A 7B AB 90 00 4A [11:30:01]RAPDU: E2 64 D6 AD FC 6A 7B AB 90 00 [11:30:01]wFMCommunicate OK [11:30:01]SAM_PROTO_SignData done [11:30:01]FM_MakeSignedData done [11:30:01]CreateOFDProtocolMessage [11:30:01]wFMCommunicate request_size=4 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 11 00 00 [11:30:01]Write to MH i2c: E2 08 00 2E 4C 80 11 00 00 00 00 00 00 F4 [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 17 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 17 00 2E 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4F [11:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:30:01]wFMCommunicate OK [11:30:01]CreateOFDProtocolMessage done [11:30:01]OFDSenderStorePacket 118745 [11:30:01]StoreOFDPacket docnum=118745 [11:30:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AD 27 07 01 1B 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 3D 7D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D9 CF 01 00 35 04 06 00 72 3A E9 48 5C B0 E2 64 D6 AD FC 6A 7B AB [11:30:01]CheckFolder [11:30:01]dirname=/storage/ofd_packets [11:30:01]CheckFolder done [11:30:01]ProducePacketName [11:30:01]name=ofd_packets/00118745 [11:30:01]NVStorageSaveData ofd_packets/00118745 [11:30:01]File name is /storage/ofd_packets/00118745 [11:30:01]Write 301 bytes [11:30:01]NVStorageSaveData done [11:30:01]OFDSenderStorePacket done [11:30:01]KKMCreateOFDPacket done [11:30:01]NVStorageSaveData kkm_last_timestamp [11:30:01]File name is /storage/kkm_last_timestamp [11:30:01]Write 4 bytes [11:30:01]NVStorageSaveData done [11:30:01]ExternCall_PrintAddStr [11:30:01]wPrintStart [11:30:01]Write to MH i2c: 01 00 00 2F 4C 7B [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: 01 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: 01 07 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: 01 07 00 2F 4C 00 00 00 00 00 FF 0F 90 [11:30:01]RasterBufferAndPrint [11:30:01]line Счет N : (1)949630 [11:30:01]line ИНН: 02508201610067 [11:30:01]line Контрольно-Кассовый Чек [11:30:01]line ПРОДАЖА [11:30:01]line ТРК (МРК, ГНК) : 51 [11:30:01]line Товар: 2710124130 [11:30:01]line Аи-92-К-4 [11:30:01]line 14.750 * 67.80 [11:30:01]line = 1000.05 [11:30:01]line НДС 12% НСП 1% [11:30:01]line > о реализуемом товаре [11:30:01]line ОКРУГЛЕНИЕ: -0.05 [11:30:01]line ИТОГО: 1000.00 [11:30:01]line Внесено: 1000.00 [11:30:01]line СДАЧА: 0.00 [11:30:01]line НСП 1% : 8.85 [11:30:01]line НДС 12% : 106.20 [11:30:01]line Наличными: 1000.00 [11:30:01]line Безнал.: 0.00 [11:30:01]line Место: АЗС № 134 "Партнер Нефть" [11:30:01]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:30:01]line СНО: Общий режим [11:30:01]line Чек 121 29.07.2024 11:30 [11:30:01]line Смена: 434 ФФД: 1.0 [11:30:01]line ЗНМ: 0300000044 [11:30:01]line РНМ: 0000000000092660 [11:30:01]line Версия ККМ: 001 [11:30:01]line ФМ: 0000000000874939 [11:30:01]line ФД: 118745 [11:30:01]line ФПД: 125597347503280 [11:30:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T113005&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118745&fm=125597347503280&tin=02508201610067®Number=0000000000092660&sum=100000 [11:30:02]OFD Sender: Processing packet 118745 [packets to send 86, broken 85] [11:30:02]ProducePacketName [11:30:02]name=ofd_packets/00118745 [11:30:02]OFD Sender: To server: pG, [11:30:02]CommunicateWithHost lk.salyk.kg:30040 [11:30:02]ConnectInit lk.salyk.kg [11:30:02]written 0, free lines is 4095 [11:30:02]Connected sock=6 [11:30:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AD 27 07 01 1B 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 3D 7D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D9 CF 01 00 35 04 06 00 72 3A E9 48 5C B0 E2 64 D6 AD FC 6A 7B AB [11:30:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E4 7C 47 00 2F 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 34 39 33 39 10 04 04 00 D9 CF 01 00 F4 03 04 00 CB 2A A7 66 B6 04 01 00 00 C0 0C 3C 4F E6 AF 3A 92 [11:30:02]CommunicateWithHost err = 0 [11:30:02]CheckOFDResponse [11:30:02]1017 (14) - 77093643461234 [11:30:02]1041 (16) - 0000000000874939 [11:30:02]1040 (4) - 118745 [11:30:02]1012 (4) - 29.07.2024 05:38 [11:30:02]1206 (1) - 0 [11:30:02]OFD Sender: Remove packet 118745 [11:30:02]ProducePacketName [11:30:02]name=ofd_packets/00118745 [11:30:02]NVStorageDeleteData [11:30:02]Write to MH i2c: 01 00 00 59 4C A5 [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: 01 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: 01 07 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: 01 07 00 59 4C 00 00 00 00 00 DC 0C 94 [11:30:02]RasterBufferAndPrint [11:30:02]line [11:30:02]line [11:30:02]line [11:30:02]line [11:30:02]line [11:30:02]written 0, free lines is 3301 [11:30:02]MH_Cut [11:30:02]Write to MH i2c: D1 01 00 60 4C 01 7E [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: D1 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: D1 01 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: D1 01 00 60 4C 00 7D [11:30:02]Write to MH i2c: 01 00 00 61 4C AD [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]OFD Sender: No OFD packet to send [11:30:03]*** Cut start [11:30:03]*** Partial cut [11:30:03]*** CUTSNS_PIN = 1 [11:30:03]*** CUTSNS_PIN = 0 [11:30:03]*** Brake cut motor [11:30:03]Read from MH i2c: 01 [11:30:03]MH_I2C_Read... [11:30:03]*** Stop cut motor [11:30:03]*** Cut end [11:30:03]Read from MH i2c: 01 07 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: 01 07 00 61 4C 00 00 00 00 00 FF 0F C2 [11:30:03]process_action close_receipt done [11:30:03]requested_data is exist [11:30:03]produce_requested_data [11:30:03]requested_item fm.sn is exist - process it [11:30:03]wFMCommunicate request_size=4 [11:30:03]MH_SAM_APDU [11:30:03]CAPDU: 80 11 00 00 [11:30:03]Write to MH i2c: E2 08 00 62 4C 80 11 00 00 00 00 00 00 28 [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:03]Read from MH i2c: E2 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 17 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 17 00 62 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 83 [11:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:30:03]wFMCommunicate OK [11:30:03]requested_item fd.num is exist - process it [11:30:03]SAM_PROTO_GetFieldsCounters [11:30:03]wFMCommunicate request_size=4 [11:30:03]MH_SAM_APDU [11:30:03]CAPDU: 80 13 00 00 [11:30:03]Write to MH i2c: E2 08 00 63 4C 80 13 00 00 00 00 00 00 2B [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:04]Read from MH i2c: E2 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 62 00 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 62 00 63 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D9 CF 01 00 0E 04 04 00 B2 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 19 [11:30: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D9 CF 01 00 0E 04 04 00 B2 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 [11:30:04]wFMCommunicate OK [11:30:04]SAM_PROTO_GetFieldsCounters done [11:30:04]requested_item shift.num is exist - process it [11:30:04]requested_item shift.opened is exist - process it [11:30:04]req_shift_opened [11:30:04]FM_GetShiftState [11:30:04]SAM_PROTO_GetShiftState [11:30:04]wFMCommunicate request_size=4 [11:30:04]MH_SAM_APDU [11:30:04]CAPDU: 80 13 01 00 [11:30:04]Write to MH i2c: E2 08 00 64 4C 80 13 01 00 00 00 00 00 2D [11:30:04]Write i2c OK [11:30:04]MH_I2C_Read... [11:30:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:04]Read from MH i2c: E2 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 0E 00 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 0E 00 64 4C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 5B [11:30:04]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:30:04]wFMCommunicate OK [11:30:04]SAM_PROTO_GetShiftState done [11:30:04]FM_GetShiftState done [11:30:04]req_shift_opened done [11:30:04]requested_item shift.open_date is exist - process it [11:30:04]req_shift_open_date [11:30:04]req_shift_open_date done [11:30:04]produce_requested_data done [11:30:04]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118745,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [11:30:04]process_action_free close_receipt [11:30:04]json_value_free [11:30:04]json_value_free done [11:30:04]process_json_proto returns [11:30:04]Send response to host [11:30:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118745,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [11:30:04]free response buf [11:30:04]execute_script done [11:30:04]execute_script returns [11:30:04]free content buf [11:30:04]Sock 7.Close socket [11:30:04]Sock 7.Thread stoped [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:43]OFD Sender: No OFD packet to send [11:31:48]OFD Sender: No OFD packet to send [11:31:53]OFD Sender: No OFD packet to send [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:01]accept exits with 9 [11:37:01]New connection [11:37:01]New thread 3067239780 created [11:37:01]Thread 3067383140 joined [11:37:01]Waiting for new connection... [11:37:01] Sock 9.Parse request [11:37:01]Sock 9.Check first char [11:37:01]Sock 9.First char is OK [11:37:01]request: POST /json_proto HTTP/1.0 [11:37:01]Method: POST [11:37:01]URL: /json_proto [11:37:01]Method is POST - this is cgi request [11:37:01]url: /json_proto [11:37:01]query_string will be loaded in cgi processing [11:37:01]execute_cgi json_proto POST (null) [11:37:01]execute_cgi path=json_proto method=POST [11:37:01]POST find Content-Length [11:37:01]Host: 172.17.45.7:8080 [11:37:01]Content-Length: 678 [11:37:01]Content-Type: application/json [11:37:01] [11:37:01]POST finish read [11:37:01]Found Content-Length = 678 [11:37:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:01]execute_script... [11:37:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:01]POST & json_proto [11:37:01]process_json_proto [11:37:01]json parsed OK: [11:37:01]protocol is kg_v1.0 [11:37:01]action value=close_receipt [11:37:01]process_action close_receipt [11:37:01]cmd_close_receipt [11:37:01]MH_GetDate [11:37:01]Write to MH i2c: F0 00 00 65 4C A0 [11:37:01]Write i2c OK [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: F0 [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: F0 09 00 [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: F0 09 00 65 4C 00 E3 7E A7 66 90 0F 3E 66 5A [11:37:01]GetLastDocTimeStamp 1722252605 [11:37:01]current date 1722253027 [11:37:01]FM_GetShiftState [11:37:01]SAM_PROTO_GetShiftState [11:37:01]wFMCommunicate request_size=4 [11:37:01]MH_SAM_APDU [11:37:01]CAPDU: 80 13 01 00 [11:37:01]Write to MH i2c: E2 08 00 66 4C 80 13 01 00 00 00 00 00 2F [11:37:01]Write i2c OK [11:37:01]MH_I2C_Read... [11:37:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:01]Read from MH i2c: E2 [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: E2 0E 00 [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: E2 0E 00 66 4C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 5D [11:37:01]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:37:01]wFMCommunicate OK [11:37:01]SAM_PROTO_GetShiftState done [11:37:01]FM_GetShiftState done [11:37:01]opened in 1722211641 [11:37:01]opened+sec_in_day 1722298041 [11:37:01]quantity*price = 70037 [11:37:01]sum+1 = 70038 [11:37:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 122 29.07.2024 11:37 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118746 ФПД: 230570074913031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T113707&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118746&fm=230570074913031&tin=02508201610067®Number=0000000000092660&sum=70000 [11:37:02]StoreToDocumentArchive [11:37:02]shift 434 fd 118746 [11:37:02]save to /storage/0434/doc_00118746 [11:37:02]save last doc name /storage/0434/doc_00118746 to /storage/kkm_last_doc_name [11:37:02]save OK [11:37:02]Clear old archive folders... [11:37:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:02]tlvbuf is 01E591C0 [11:37:02]SAM_PROTO_ClearQueue [11:37:02]wFMCommunicate request_size=4 [11:37:02]MH_SAM_APDU [11:37:02]CAPDU: 80 09 00 00 [11:37:02]Write to MH i2c: E2 08 00 73 4C 80 09 00 00 00 00 00 00 31 [11:37:02]Write i2c OK [11:37:02]MH_I2C_Read... [11:37:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:02]Read from MH i2c: E2 [11:37:02]MH_I2C_Read... [11:37:02]Read from MH i2c: E2 03 00 [11:37:02]MH_I2C_Read... [11:37:02]Read from MH i2c: E2 03 00 73 4C 00 90 00 33 [11:37:02]RAPDU: 90 00 [11:37:02]wFMCommunicate OK [11:37:02]SAM_PROTO_ClearQueue done [11:37:02]KKMCreateOFDPacket [11:37:02]OFDProtocolAddRootSTLVToBuf [11:37:02]FM_MakeSignedData [11:37:02]FM_MakeSignedData [11:37:02]SAM_PROTO_SignData [11:37:02]wFMCommunicate request_size=4 [11:37:02]MH_SAM_APDU [11:37:02]CAPDU: 80 0D 01 02 [11:37:02]Write to MH i2c: E2 08 00 74 4C 80 0D 01 02 00 00 00 00 39 [11:37:02]Write i2c OK [11:37:02]MH_I2C_Read... [11:37:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:02]Read from MH i2c: E2 [11:37:02]MH_I2C_Read... [11:37:02]Read from MH i2c: E2 03 00 [11:37:02]MH_I2C_Read... [11:37:02]Read from MH i2c: E2 03 00 74 4C 00 90 00 34 [11:37:02]RAPDU: 90 00 [11:37:02]wFMCommunicate OK [11:37:02]wFMCommunicate request_size=255 [11:37:02]MH_SAM_APDU [11:37:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 E3 7E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA CF 01 00 35 04 06 00 D1 [11:37:03]Write to MH i2c: E2 02 01 75 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 E3 7E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA CF 01 00 35 04 06 00 D1 00 00 BA [11:37:03]Write i2c OK [11:37:03]MH_I2C_Read... [11:37:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:03]Read from MH i2c: E2 [11:37:03]MH_I2C_Read... [11:37:03]Read from MH i2c: E2 03 00 [11:37:03]MH_I2C_Read... [11:37:03]Read from MH i2c: E2 03 00 75 4C 00 90 00 35 [11:37:03]RAPDU: 90 00 [11:37:03]wFMCommunicate OK [11:37:03]wFMCommunicate request_size=10 [11:37:03]MH_SAM_APDU [11:37:03]CAPDU: 80 0D 02 02 05 B3 C7 69 39 07 [11:37:03]Write to MH i2c: E2 0D 00 76 4C 80 0D 02 02 05 00 B3 C7 69 39 07 00 00 69 [11:37:03]Write i2c OK [11:37:03]MH_I2C_Read... [11:37:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:03]Read from MH i2c: E2 [11:37:03]MH_I2C_Read... [11:37:03]Read from MH i2c: E2 03 00 [11:37:03]MH_I2C_Read... [11:37:03]Read from MH i2c: E2 03 00 76 4C 00 90 00 36 [11:37:03]RAPDU: 90 00 [11:37:03]wFMCommunicate OK [11:37:03]wFMCommunicate request_size=4 [11:37:03]MH_SAM_APDU [11:37:03]CAPDU: 80 0D 03 02 [11:37:03]Write to MH i2c: E2 08 00 77 4C 80 0D 03 02 00 00 00 00 3E [11:37:03]Write i2c OK [11:37:03]MH_I2C_Read... [11:37:03]OFD Sender: No OFD packet to send [11:37:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:03]Read from MH i2c: E2 [11:37:03]MH_I2C_Read... [11:37:03]Read from MH i2c: E2 0B 00 [11:37:03]MH_I2C_Read... [11:37:03]Read from MH i2c: E2 0B 00 77 4C 00 3D D1 8F 50 DC 91 9F F2 90 00 2A [11:37:03]RAPDU: 3D D1 8F 50 DC 91 9F F2 90 00 [11:37:03]wFMCommunicate OK [11:37:03]SAM_PROTO_SignData done [11:37:03]FM_MakeSignedData done [11:37:03]CreateOFDProtocolMessage [11:37:03]wFMCommunicate request_size=4 [11:37:03]MH_SAM_APDU [11:37:03]CAPDU: 80 11 00 00 [11:37:03]Write to MH i2c: E2 08 00 78 4C 80 11 00 00 00 00 00 00 3E [11:37:03]Write i2c OK [11:37:03]MH_I2C_Read... [11:37:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:03]Read from MH i2c: E2 [11:37:03]MH_I2C_Read... [11:37:03]Read from MH i2c: E2 17 00 [11:37:03]MH_I2C_Read... [11:37:03]Read from MH i2c: E2 17 00 78 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 99 [11:37:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:37:03]wFMCommunicate OK [11:37:03]CreateOFDProtocolMessage done [11:37:03]OFDSenderStorePacket 118746 [11:37:03]StoreOFDPacket docnum=118746 [11:37:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 48 AE 07 01 19 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 E3 7E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA CF 01 00 35 04 06 00 D1 B3 C7 69 39 07 3D D1 8F 50 DC 91 9F F2 [11:37:03]CheckFolder [11:37:03]dirname=/storage/ofd_packets [11:37:03]CheckFolder done [11:37:03]ProducePacketName [11:37:03]name=ofd_packets/00118746 [11:37:03]NVStorageSaveData ofd_packets/00118746 [11:37:03]File name is /storage/ofd_packets/00118746 [11:37:03]Write 301 bytes [11:37:03]NVStorageSaveData done [11:37:03]OFDSenderStorePacket done [11:37:03]KKMCreateOFDPacket done [11:37:03]NVStorageSaveData kkm_last_timestamp [11:37:03]File name is /storage/kkm_last_timestamp [11:37:03]Write 4 bytes [11:37:03]NVStorageSaveData done [11:37:03]ExternCall_PrintAddStr [11:37:03]wPrintStart [11:37:03]Write to MH i2c: 01 00 00 79 4C C5 [11:37:03]Write i2c OK [11:37:03]MH_I2C_Read... [11:37:03]Read from MH i2c: 01 [11:37:03]MH_I2C_Read... [11:37:03]Read from MH i2c: 01 07 00 [11:37:03]MH_I2C_Read... [11:37:03]Read from MH i2c: 01 07 00 79 4C 00 00 00 00 00 FF 0F DA [11:37:03]RasterBufferAndPrint [11:37:03]line Счет N : (1)949631 [11:37:03]line ИНН: 02508201610067 [11:37:03]line Контрольно-Кассовый Чек [11:37:03]line ПРОДАЖА [11:37:03]line ТРК (МРК, ГНК) : 31 [11:37:03]line Товар: 2710124130 [11:37:03]line Аи-92-К-4 [11:37:03]line 10.330 * 67.80 [11:37:03]line = 700.37 [11:37:03]line НДС 12% НСП 1% [11:37:03]line > о реализуемом товаре [11:37:03]line ОКРУГЛЕНИЕ: -0.37 [11:37:03]line ИТОГО: 700.00 [11:37:03]line Внесено: 700.00 [11:37:03]line СДАЧА: 0.00 [11:37:03]line НСП 1% : 6.20 [11:37:03]line НДС 12% : 74.38 [11:37:03]line Наличными: 700.00 [11:37:03]line Безнал.: 0.00 [11:37:03]line Место: АЗС № 134 "Партнер Нефть" [11:37:03]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:37:03]line СНО: Общий режим [11:37:03]line Чек 122 29.07.2024 11:37 [11:37:03]line Смена: 434 ФФД: 1.0 [11:37:03]line ЗНМ: 0300000044 [11:37:03]line РНМ: 0000000000092660 [11:37:03]line Версия ККМ: 001 [11:37:03]line ФМ: 0000000000874939 [11:37:03]line ФД: 118746 [11:37:03]line ФПД: 230570074913031 [11:37:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T113707&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118746&fm=230570074913031&tin=02508201610067®Number=0000000000092660&sum=70000 [11:37:03]written 0, free lines is 4095 [11:37:03]OFD Sender: Processing packet 118746 [packets to send 86, broken 85] [11:37:03]ProducePacketName [11:37:03]name=ofd_packets/00118746 [11:37:03]OFD Sender: To server: pG, [11:37:03]CommunicateWithHost lk.salyk.kg:30040 [11:37:03]ConnectInit lk.salyk.kg [11:37:03]Connected sock=10 [11:37:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 48 AE 07 01 19 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 E3 7E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA CF 01 00 35 04 06 00 D1 B3 C7 69 39 07 3D D1 8F 50 DC 91 9F F2 [11:37:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C4 82 47 00 E6 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA CF 01 00 F4 03 04 00 71 2C A7 66 B6 04 01 00 00 79 AC BE 85 82 A7 B2 9D [11:37:04]CommunicateWithHost err = 0 [11:37:04]CheckOFDResponse [11:37:04]1017 (14) - 77093643461234 [11:37:04]1041 (16) - 0000000000874939 [11:37:04]1040 (4) - 118746 [11:37:04]1012 (4) - 29.07.2024 05:45 [11:37:04]1206 (1) - 0 [11:37:04]OFD Sender: Remove packet 118746 [11:37:04]ProducePacketName [11:37:04]name=ofd_packets/00118746 [11:37:04]NVStorageDeleteData [11:37:04]Write to MH i2c: 01 00 00 A3 4C EF [11:37:04]Write i2c OK [11:37:04]MH_I2C_Read... [11:37:04]Read from MH i2c: 01 [11:37:04]MH_I2C_Read... [11:37:04]Read from MH i2c: 01 07 00 [11:37:04]MH_I2C_Read... [11:37:04]Read from MH i2c: 01 07 00 A3 4C 00 00 00 00 00 D0 0C D2 [11:37:04]RasterBufferAndPrint [11:37:04]line [11:37:04]line [11:37:04]line [11:37:04]line [11:37:04]line [11:37:04]written 0, free lines is 3287 [11:37:04]MH_Cut [11:37:04]Write to MH i2c: D1 01 00 AA 4C 01 C8 [11:37:04]Write i2c OK [11:37:04]MH_I2C_Read... [11:37:04]Read from MH i2c: D1 [11:37:04]MH_I2C_Read... [11:37:04]Read from MH i2c: D1 01 00 [11:37:04]MH_I2C_Read... [11:37:04]Read from MH i2c: D1 01 00 AA 4C 00 C7 [11:37:04]Write to MH i2c: 01 00 00 AB 4C F7 [11:37:04]Write i2c OK [11:37:04]MH_I2C_Read... [11:37:04]OFD Sender: No OFD packet to send [11:37:04]*** Cut start [11:37:04]*** Partial cut [11:37:04]*** CUTSNS_PIN = 1 [11:37:04]*** CUTSNS_PIN = 0 [11:37:05]*** Brake cut motor [11:37:05]Read from MH i2c: 01 [11:37:05]MH_I2C_Read... [11:37:05]*** Stop cut motor [11:37:05]*** Cut end [11:37:05]Read from MH i2c: 01 07 00 [11:37:05]MH_I2C_Read... [11:37:05]Read from MH i2c: 01 07 00 AB 4C 00 00 00 00 00 FF 0F 0C [11:37:05]process_action close_receipt done [11:37:05]requested_data is exist [11:37:05]produce_requested_data [11:37:05]requested_item fm.sn is exist - process it [11:37:05]wFMCommunicate request_size=4 [11:37:05]MH_SAM_APDU [11:37:05]CAPDU: 80 11 00 00 [11:37:05]Write to MH i2c: E2 08 00 AC 4C 80 11 00 00 00 00 00 00 72 [11:37:05]Write i2c OK [11:37:05]MH_I2C_Read... [11:37:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:05]Read from MH i2c: E2 [11:37:05]MH_I2C_Read... [11:37:05]Read from MH i2c: E2 17 00 [11:37:05]MH_I2C_Read... [11:37:05]Read from MH i2c: E2 17 00 AC 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CD [11:37:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:37:05]wFMCommunicate OK [11:37:05]requested_item fd.num is exist - process it [11:37:05]SAM_PROTO_GetFieldsCounters [11:37:05]wFMCommunicate request_size=4 [11:37:05]MH_SAM_APDU [11:37:05]CAPDU: 80 13 00 00 [11:37:05]Write to MH i2c: E2 08 00 AD 4C 80 13 00 00 00 00 00 00 75 [11:37:05]Write i2c OK [11:37:05]MH_I2C_Read... [11:37:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:05]Read from MH i2c: E2 [11:37:05]MH_I2C_Read... [11:37:05]Read from MH i2c: E2 62 00 [11:37:05]MH_I2C_Read... [11:37:05]Read from MH i2c: E2 62 00 AD 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DA CF 01 00 0E 04 04 00 B2 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 67 [11:37: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DA CF 01 00 0E 04 04 00 B2 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 [11:37:05]wFMCommunicate OK [11:37:05]SAM_PROTO_GetFieldsCounters done [11:37:05]requested_item shift.num is exist - process it [11:37:05]requested_item shift.opened is exist - process it [11:37:05]req_shift_opened [11:37:05]FM_GetShiftState [11:37:05]SAM_PROTO_GetShiftState [11:37:05]wFMCommunicate request_size=4 [11:37:05]MH_SAM_APDU [11:37:05]CAPDU: 80 13 01 00 [11:37:05]Write to MH i2c: E2 08 00 AE 4C 80 13 01 00 00 00 00 00 77 [11:37:05]Write i2c OK [11:37:05]MH_I2C_Read... [11:37:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:05]Read from MH i2c: E2 [11:37:05]MH_I2C_Read... [11:37:05]Read from MH i2c: E2 0E 00 [11:37:05]MH_I2C_Read... [11:37:05]Read from MH i2c: E2 0E 00 AE 4C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A5 [11:37:05]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:37:05]wFMCommunicate OK [11:37:05]SAM_PROTO_GetShiftState done [11:37:05]FM_GetShiftState done [11:37:05]req_shift_opened done [11:37:05]requested_item shift.open_date is exist - process it [11:37:05]req_shift_open_date [11:37:05]req_shift_open_date done [11:37:05]produce_requested_data done [11:37:05]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118746,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [11:37:05]process_action_free close_receipt [11:37:05]json_value_free [11:37:05]json_value_free done [11:37:05]process_json_proto returns [11:37:05]Send response to host [11:37:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118746,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [11:37:05]free response buf [11:37:05]execute_script done [11:37:05]execute_script returns [11:37:05]free content buf [11:37:05]Sock 9.Close socket [11:37:05]Sock 9.Thread stoped [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:25]accept exits with 7 [11:38:25]New connection [11:38:25]New thread 3067383140 created [11:38:25]Thread 3067239780 joined [11:38:25]Waiting for new connection... [11:38:25] Sock 7.Parse request [11:38:25]Sock 7.Check first char [11:38:25]Sock 7.First char is OK [11:38:25]request: POST /json_proto HTTP/1.0 [11:38:25]Method: POST [11:38:25]URL: /json_proto [11:38:25]Method is POST - this is cgi request [11:38:25]url: /json_proto [11:38:25]query_string will be loaded in cgi processing [11:38:25]execute_cgi json_proto POST (null) [11:38:25]execute_cgi path=json_proto method=POST [11:38:25]POST find Content-Length [11:38:25]Host: 172.17.45.7:8080 [11:38:25]Content-Length: 940 [11:38:25]Content-Type: application/json [11:38:25] [11:38:25]POST finish read [11:38:25]Found Content-Length = 940 [11:38:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 100.000, "sum" : 7520.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 134\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 100.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 7520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:25]execute_script... [11:38: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)949632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 100.000, "sum" : 7520.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 134\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 100.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 7520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:25]POST & json_proto [11:38:25]process_json_proto [11:38:25]json parsed OK: [11:38:25]protocol is kg_v1.0 [11:38:25]action value=close_receipt [11:38:25]process_action close_receipt [11:38:25]cmd_close_receipt [11:38:25]MH_GetDate [11:38:25]Write to MH i2c: F0 00 00 AF 4C EA [11:38:25]Write i2c OK [11:38:25]MH_I2C_Read... [11:38:25]Read from MH i2c: F0 [11:38:25]MH_I2C_Read... [11:38:25]Read from MH i2c: F0 09 00 [11:38:25]MH_I2C_Read... [11:38:25]Read from MH i2c: F0 09 00 AF 4C 00 36 7F A7 66 90 0F 3E 66 F8 [11:38:25]GetLastDocTimeStamp 1722253027 [11:38:25]current date 1722253110 [11:38:25]FM_GetShiftState [11:38:25]SAM_PROTO_GetShiftState [11:38:25]wFMCommunicate request_size=4 [11:38:25]MH_SAM_APDU [11:38:25]CAPDU: 80 13 01 00 [11:38:25]Write to MH i2c: E2 08 00 B0 4C 80 13 01 00 00 00 00 00 79 [11:38:25]Write i2c OK [11:38:25]MH_I2C_Read... [11:38:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:25]Read from MH i2c: E2 [11:38:25]MH_I2C_Read... [11:38:25]Read from MH i2c: E2 0E 00 [11:38:25]MH_I2C_Read... [11:38:25]Read from MH i2c: E2 0E 00 B0 4C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A7 [11:38:25]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:38:25]wFMCommunicate OK [11:38:25]SAM_PROTO_GetShiftState done [11:38:25]FM_GetShiftState done [11:38:25]opened in 1722211641 [11:38:25]opened+sec_in_day 1722298041 [11:38:25]quantity*price = 752000 [11:38:25]sum+1 = 752001 [11:38:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7520.00 НСП 1% : 66.55 НДС 12% : 798.58 Наличными: 7520.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 123 29.07.2024 11:38 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Дисконтная программа ДТ номер 134 сэкономлено 100.00 сом ФМ: 0000000000874939 ФД: 118747 ФПД: 12798606838251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T113830&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118747&fm=12798606838251&tin=02508201610067®Number=0000000000092660&sum=752000 [11:38:26]StoreToDocumentArchive [11:38:26]shift 434 fd 118747 [11:38:26]save to /storage/0434/doc_00118747 [11:38:26]save last doc name /storage/0434/doc_00118747 to /storage/kkm_last_doc_name [11:38:26]save OK [11:38:26]Clear old archive folders... [11:38:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:38:26]tlvbuf is B6F434A0 [11:38:26]SAM_PROTO_ClearQueue [11:38:26]wFMCommunicate request_size=4 [11:38:26]MH_SAM_APDU [11:38:26]CAPDU: 80 09 00 00 [11:38:26]Write to MH i2c: E2 08 00 BD 4C 80 09 00 00 00 00 00 00 7B [11:38:26]Write i2c OK [11:38:26]MH_I2C_Read... [11:38:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:26]Read from MH i2c: E2 [11:38:26]MH_I2C_Read... [11:38:26]Read from MH i2c: E2 03 00 [11:38:26]MH_I2C_Read... [11:38:26]Read from MH i2c: E2 03 00 BD 4C 00 90 00 7D [11:38:26]RAPDU: 90 00 [11:38:26]wFMCommunicate OK [11:38:26]SAM_PROTO_ClearQueue done [11:38:26]KKMCreateOFDPacket [11:38:26]OFDProtocolAddRootSTLVToBuf [11:38:26]FM_MakeSignedData [11:38:26]FM_MakeSignedData [11:38:26]SAM_PROTO_SignData [11:38:26]wFMCommunicate request_size=4 [11:38:26]MH_SAM_APDU [11:38:26]CAPDU: 80 0D 01 02 [11:38:26]Write to MH i2c: E2 08 00 BE 4C 80 0D 01 02 00 00 00 00 83 [11:38:26]Write i2c OK [11:38:26]MH_I2C_Read... [11:38:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:26]Read from MH i2c: E2 [11:38:26]MH_I2C_Read... [11:38:26]Read from MH i2c: E2 03 00 [11:38:26]MH_I2C_Read... [11:38:26]Read from MH i2c: E2 03 00 BE 4C 00 90 00 7E [11:38:26]RAPDU: 90 00 [11:38:26]wFMCommunicate OK [11:38:26]wFMCommunicate request_size=255 [11:38:26]MH_SAM_APDU [11:38:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 80 79 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 79 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 37 01 00 00 00 07 04 06 00 80 79 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 36 7F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB CF 01 00 35 04 06 00 0B A3 E8 6A [11:38:26]Write to MH i2c: E2 02 01 BF 4C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 80 79 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 79 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 37 01 00 00 00 07 04 06 00 80 79 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 36 7F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB CF 01 00 35 04 06 00 0B A3 E8 6A 00 00 78 [11:38:26]Write i2c OK [11:38:26]MH_I2C_Read... [11:38:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:26]Read from MH i2c: E2 [11:38:26]MH_I2C_Read... [11:38:26]Read from MH i2c: E2 03 00 [11:38:26]MH_I2C_Read... [11:38:26]Read from MH i2c: E2 03 00 BF 4C 00 90 00 7F [11:38:26]RAPDU: 90 00 [11:38:26]wFMCommunicate OK [11:38:26]wFMCommunicate request_size=7 [11:38:26]MH_SAM_APDU [11:38:26]CAPDU: 80 0D 02 02 02 09 EB [11:38:26]Write to MH i2c: E2 0A 00 C0 4C 80 0D 02 02 02 00 09 EB 00 00 7E [11:38:26]Write i2c OK [11:38:26]MH_I2C_Read... [11:38:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:26]Read from MH i2c: E2 [11:38:26]MH_I2C_Read... [11:38:26]Read from MH i2c: E2 03 00 [11:38:26]MH_I2C_Read... [11:38:26]Read from MH i2c: E2 03 00 C0 4C 00 90 00 80 [11:38:26]RAPDU: 90 00 [11:38:26]wFMCommunicate OK [11:38:26]wFMCommunicate request_size=4 [11:38:26]MH_SAM_APDU [11:38:26]CAPDU: 80 0D 03 02 [11:38:26]Write to MH i2c: E2 08 00 C1 4C 80 0D 03 02 00 00 00 00 88 [11:38:26]Write i2c OK [11:38:26]MH_I2C_Read... [11:38:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:26]Read from MH i2c: E2 [11:38:26]MH_I2C_Read... [11:38:26]Read from MH i2c: E2 0B 00 [11:38:26]MH_I2C_Read... [11:38:26]Read from MH i2c: E2 0B 00 C1 4C 00 56 2E FC 8B E7 13 10 37 90 00 D5 [11:38:26]RAPDU: 56 2E FC 8B E7 13 10 37 90 00 [11:38:26]wFMCommunicate OK [11:38:26]SAM_PROTO_SignData done [11:38:26]FM_MakeSignedData done [11:38:26]CreateOFDProtocolMessage [11:38:26]wFMCommunicate request_size=4 [11:38:26]MH_SAM_APDU [11:38:26]CAPDU: 80 11 00 00 [11:38:26]Write to MH i2c: E2 08 00 C2 4C 80 11 00 00 00 00 00 00 88 [11:38:26]Write i2c OK [11:38:26]MH_I2C_Read... [11:38:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:26]Read from MH i2c: E2 [11:38:26]MH_I2C_Read... [11:38:26]Read from MH i2c: E2 17 00 [11:38:26]MH_I2C_Read... [11:38:26]Read from MH i2c: E2 17 00 C2 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E3 [11:38:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:38:26]wFMCommunicate OK [11:38:26]CreateOFDProtocolMessage done [11:38:26]OFDSenderStorePacket 118747 [11:38:26]StoreOFDPacket docnum=118747 [11:38:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 49 BB 04 01 99 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 80 79 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 79 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 37 01 00 00 00 07 04 06 00 80 79 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 36 7F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB CF 01 00 35 04 06 00 0B A3 E8 6A 09 EB 56 2E FC 8B E7 13 10 37 [11:38:26]CheckFolder [11:38:26]dirname=/storage/ofd_packets [11:38:26]CheckFolder done [11:38:26]ProducePacketName [11:38:26]name=ofd_packets/00118747 [11:38:26]NVStorageSaveData ofd_packets/00118747 [11:38:26]File name is /storage/ofd_packets/00118747 [11:38:26]Write 298 bytes [11:38:26]NVStorageSaveData done [11:38:26]OFDSenderStorePacket done [11:38:26]KKMCreateOFDPacket done [11:38:26]NVStorageSaveData kkm_last_timestamp [11:38:26]File name is /storage/kkm_last_timestamp [11:38:26]Write 4 bytes [11:38:26]NVStorageSaveData done [11:38:26]ExternCall_PrintAddStr [11:38:26]wPrintStart [11:38:26]Write to MH i2c: 01 00 00 C3 4C 0F [11:38:26]Write i2c OK [11:38:26]MH_I2C_Read... [11:38:26]Read from MH i2c: 01 [11:38:26]MH_I2C_Read... [11:38:26]Read from MH i2c: 01 07 00 [11:38:26]MH_I2C_Read... [11:38:26]Read from MH i2c: 01 07 00 C3 4C 00 00 00 00 00 FF 0F 24 [11:38:26]RasterBufferAndPrint [11:38:26]line Счет N : (1)949632 [11:38:26]line ИНН: 02508201610067 [11:38:26]line Контрольно-Кассовый Чек [11:38:26]line ПРОДАЖА [11:38:26]line ТРК (МРК, ГНК) : 44 [11:38:26]line Товар: 2710194800 [11:38:26]line ДТ-К-5 [11:38:26]line 100.000 * 75.20 [11:38:26]line = 7520.00 [11:38:26]line НДС 12% НСП 1% [11:38:26]line > о реализуемом товаре [11:38:26]line ИТОГО: 7520.00 [11:38:26]line НСП 1% : 66.55 [11:38:26]line НДС 12% : 798.58 [11:38:26]line Наличными: 7520.00 [11:38:26]line Безнал.: 0.00 [11:38:26]line Место: АЗС № 134 "Партнер Нефть" [11:38:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:38:26]line СНО: Общий режим [11:38:26]line Чек 123 29.07.2024 11:38 [11:38:26]line Смена: 434 ФФД: 1.0 [11:38:26]line ЗНМ: 0300000044 [11:38:26]line РНМ: 0000000000092660 [11:38:26]line Версия ККМ: 001 [11:38:26]line [11:38:26]line Дисконтная программа [11:38:26]line ДТ [11:38:26]line номер 134 [11:38:26]line сэкономлено 100.00 сом [11:38:26]line ФМ: 0000000000874939 [11:38:26]line ФД: 118747 [11:38:26]line ФПД: 12798606838251 [11:38:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T113830&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118747&fm=12798606838251&tin=02508201610067®Number=0000000000092660&sum=752000 [11:38:27]OFD Sender: Processing packet 118747 [packets to send 86, broken 85] [11:38:27]ProducePacketName [11:38:27]name=ofd_packets/00118747 [11:38:27]OFD Sender: To server: pG, [11:38:27]CommunicateWithHost lk.salyk.kg:30040 [11:38:27]ConnectInit lk.salyk.kg [11:38:27]written 0, free lines is 4095 [11:38:27]Connected sock=10 [11:38:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 49 BB 04 01 99 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 80 79 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 79 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 37 01 00 00 00 07 04 06 00 80 79 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 36 7F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB CF 01 00 35 04 06 00 0B A3 E8 6A 09 EB 56 2E FC 8B E7 13 10 37 [11:38:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3F 1C 47 00 C1 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB CF 01 00 F4 03 04 00 C4 2C A7 66 B6 04 01 00 00 6F 90 DC 95 E8 67 0F EC [11:38:27]CommunicateWithHost err = 0 [11:38:27]CheckOFDResponse [11:38:27]1017 (14) - 77093643461234 [11:38:27]1041 (16) - 0000000000874939 [11:38:27]1040 (4) - 118747 [11:38:27]1012 (4) - 29.07.2024 05:46 [11:38:27]1206 (1) - 0 [11:38:27]OFD Sender: Remove packet 118747 [11:38:27]ProducePacketName [11:38:27]name=ofd_packets/00118747 [11:38:27]NVStorageDeleteData [11:38:27]Write to MH i2c: 01 00 00 EF 4C 3B [11:38:27]Write i2c OK [11:38:27]MH_I2C_Read... [11:38:27]Read from MH i2c: 01 [11:38:27]MH_I2C_Read... [11:38:27]Read from MH i2c: 01 07 00 [11:38:27]MH_I2C_Read... [11:38:27]Read from MH i2c: 01 07 00 EF 4C 00 00 00 00 00 B0 0C FE [11:38:27]RasterBufferAndPrint [11:38:27]line [11:38:27]line [11:38:27]line [11:38:27]line [11:38:27]line [11:38:27]written 0, free lines is 3253 [11:38:27]MH_Cut [11:38:27]Write to MH i2c: D1 01 00 F6 4C 01 14 [11:38:27]Write i2c OK [11:38:27]MH_I2C_Read... [11:38:27]Read from MH i2c: D1 [11:38:27]MH_I2C_Read... [11:38:27]Read from MH i2c: D1 01 00 [11:38:27]MH_I2C_Read... [11:38:27]Read from MH i2c: D1 01 00 F6 4C 00 13 [11:38:27]Write to MH i2c: 01 00 00 F7 4C 43 [11:38:27]Write i2c OK [11:38:27]MH_I2C_Read... [11:38:27]OFD Sender: No OFD packet to send [11:38:28]*** Cut start [11:38:28]*** Partial cut [11:38:28]*** CUTSNS_PIN = 1 [11:38:28]*** CUTSNS_PIN = 0 [11:38:28]*** Brake cut motor [11:38:28]Read from MH i2c: 01 [11:38:28]MH_I2C_Read... [11:38:28]*** Stop cut motor [11:38:28]*** Cut end [11:38:28]Read from MH i2c: 01 07 00 [11:38:28]MH_I2C_Read... [11:38:28]Read from MH i2c: 01 07 00 F7 4C 00 00 00 00 00 FF 0F 58 [11:38:28]process_action close_receipt done [11:38:28]requested_data is exist [11:38:28]produce_requested_data [11:38:28]requested_item fm.sn is exist - process it [11:38:28]wFMCommunicate request_size=4 [11:38:28]MH_SAM_APDU [11:38:28]CAPDU: 80 11 00 00 [11:38:28]Write to MH i2c: E2 08 00 F8 4C 80 11 00 00 00 00 00 00 BE [11:38:28]Write i2c OK [11:38:28]MH_I2C_Read... [11:38:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:28]Read from MH i2c: E2 [11:38:28]MH_I2C_Read... [11:38:28]Read from MH i2c: E2 17 00 [11:38:28]MH_I2C_Read... [11:38:28]Read from MH i2c: E2 17 00 F8 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 19 [11:38:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:38:28]wFMCommunicate OK [11:38:28]requested_item fd.num is exist - process it [11:38:28]SAM_PROTO_GetFieldsCounters [11:38:28]wFMCommunicate request_size=4 [11:38:28]MH_SAM_APDU [11:38:28]CAPDU: 80 13 00 00 [11:38:28]Write to MH i2c: E2 08 00 F9 4C 80 13 00 00 00 00 00 00 C1 [11:38:28]Write i2c OK [11:38:28]MH_I2C_Read... [11:38:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:29]Read from MH i2c: E2 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 62 00 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 62 00 F9 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DB CF 01 00 0E 04 04 00 B2 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 B7 [11:38: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DB CF 01 00 0E 04 04 00 B2 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 [11:38:29]wFMCommunicate OK [11:38:29]SAM_PROTO_GetFieldsCounters done [11:38:29]requested_item shift.num is exist - process it [11:38:29]requested_item shift.opened is exist - process it [11:38:29]req_shift_opened [11:38:29]FM_GetShiftState [11:38:29]SAM_PROTO_GetShiftState [11:38:29]wFMCommunicate request_size=4 [11:38:29]MH_SAM_APDU [11:38:29]CAPDU: 80 13 01 00 [11:38:29]Write to MH i2c: E2 08 00 FA 4C 80 13 01 00 00 00 00 00 C3 [11:38:29]Write i2c OK [11:38:29]MH_I2C_Read... [11:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:29]Read from MH i2c: E2 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 0E 00 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 0E 00 FA 4C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F1 [11:38:29]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:38:29]wFMCommunicate OK [11:38:29]SAM_PROTO_GetShiftState done [11:38:29]FM_GetShiftState done [11:38:29]req_shift_opened done [11:38:29]requested_item shift.open_date is exist - process it [11:38:29]req_shift_open_date [11:38:29]req_shift_open_date done [11:38:29]produce_requested_data done [11:38:29]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118747,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [11:38:29]process_action_free close_receipt [11:38:29]json_value_free [11:38:29]json_value_free done [11:38:29]process_json_proto returns [11:38:29]Send response to host [11:38:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118747,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [11:38:29]free response buf [11:38:29]execute_script done [11:38:29]execute_script returns [11:38:29]free content buf [11:38:29]Sock 7.Close socket [11:38:29]Sock 7.Thread stoped [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:07]accept exits with 9 [11:42:07]New connection [11:42:07]New thread 3067239780 created [11:42:07]Thread 3067383140 joined [11:42:07]Waiting for new connection... [11:42:07] Sock 9.Parse request [11:42:07]Sock 9.Check first char [11:42:07]Sock 9.First char is OK [11:42:07]request: POST /json_proto HTTP/1.0 [11:42:07]Method: POST [11:42:07]URL: /json_proto [11:42:07]Method is POST - this is cgi request [11:42:07]url: /json_proto [11:42:07]query_string will be loaded in cgi processing [11:42:07]execute_cgi json_proto POST (null) [11:42:07]execute_cgi path=json_proto method=POST [11:42:07]POST find Content-Length [11:42:07]Host: 172.17.45.7:8080 [11:42:07]Content-Length: 940 [11:42:07]Content-Type: application/json [11:42:07] [11:42:07]POST finish read [11:42:07]Found Content-Length = 940 [11:42:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 100.000, "sum" : 7520.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 134\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 100.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 7520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:07]execute_script... [11:42:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 100.000, "sum" : 7520.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 134\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 100.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 7520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:07]POST & json_proto [11:42:07]process_json_proto [11:42:07]json parsed OK: [11:42:07]protocol is kg_v1.0 [11:42:07]action value=close_receipt [11:42:07]process_action close_receipt [11:42:07]cmd_close_receipt [11:42:07]MH_GetDate [11:42:07]Write to MH i2c: F0 00 00 FB 4C 36 [11:42:07]Write i2c OK [11:42:07]MH_I2C_Read... [11:42:07]Read from MH i2c: F0 [11:42:07]MH_I2C_Read... [11:42:07]Read from MH i2c: F0 09 00 [11:42:07]MH_I2C_Read... [11:42:07]Read from MH i2c: F0 09 00 FB 4C 00 15 80 A7 66 90 0F 3E 66 24 [11:42:07]GetLastDocTimeStamp 1722253110 [11:42:07]current date 1722253333 [11:42:07]FM_GetShiftState [11:42:07]SAM_PROTO_GetShiftState [11:42:07]wFMCommunicate request_size=4 [11:42:07]MH_SAM_APDU [11:42:07]CAPDU: 80 13 01 00 [11:42:07]Write to MH i2c: E2 08 00 FC 4C 80 13 01 00 00 00 00 00 C5 [11:42:07]Write i2c OK [11:42:07]MH_I2C_Read... [11:42:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:07]Read from MH i2c: E2 [11:42:07]MH_I2C_Read... [11:42:07]Read from MH i2c: E2 0E 00 [11:42:07]MH_I2C_Read... [11:42:07]Read from MH i2c: E2 0E 00 FC 4C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F3 [11:42:07]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:42:07]wFMCommunicate OK [11:42:07]SAM_PROTO_GetShiftState done [11:42:07]FM_GetShiftState done [11:42:07]opened in 1722211641 [11:42:07]opened+sec_in_day 1722298041 [11:42:07]quantity*price = 752000 [11:42:07]sum+1 = 752001 [11:42:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7520.00 НСП 1% : 66.55 НДС 12% : 798.58 Наличными: 7520.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 124 29.07.2024 11:42 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Дисконтная программа ДТ номер 134 сэкономлено 100.00 сом ФМ: 0000000000874939 ФД: 118748 ФПД: 265865367671928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T114213&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118748&fm=265865367671928&tin=02508201610067®Number=0000000000092660&sum=752000 [11:42:08]StoreToDocumentArchive [11:42:08]shift 434 fd 118748 [11:42:08]save to /storage/0434/doc_00118748 [11:42:08]save last doc name /storage/0434/doc_00118748 to /storage/kkm_last_doc_name [11:42:08]save OK [11:42:08]Clear old archive folders... [11:42:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:42:08]tlvbuf is B6F43350 [11:42:08]SAM_PROTO_ClearQueue [11:42:08]wFMCommunicate request_size=4 [11:42:08]MH_SAM_APDU [11:42:08]CAPDU: 80 09 00 00 [11:42:08]Write to MH i2c: E2 08 00 09 4D 80 09 00 00 00 00 00 00 C8 [11:42:08]Write i2c OK [11:42:08]MH_I2C_Read... [11:42:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:08]Read from MH i2c: E2 [11:42:08]MH_I2C_Read... [11:42:08]Read from MH i2c: E2 03 00 [11:42:08]MH_I2C_Read... [11:42:08]Read from MH i2c: E2 03 00 09 4D 00 90 00 CA [11:42:08]RAPDU: 90 00 [11:42:08]wFMCommunicate OK [11:42:08]SAM_PROTO_ClearQueue done [11:42:08]KKMCreateOFDPacket [11:42:08]OFDProtocolAddRootSTLVToBuf [11:42:08]FM_MakeSignedData [11:42:08]FM_MakeSignedData [11:42:08]SAM_PROTO_SignData [11:42:08]wFMCommunicate request_size=4 [11:42:08]MH_SAM_APDU [11:42:08]CAPDU: 80 0D 01 02 [11:42:08]Write to MH i2c: E2 08 00 0A 4D 80 0D 01 02 00 00 00 00 D0 [11:42:08]Write i2c OK [11:42:08]MH_I2C_Read... [11:42:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:08]Read from MH i2c: E2 [11:42:08]MH_I2C_Read... [11:42:08]Read from MH i2c: E2 03 00 [11:42:08]MH_I2C_Read... [11:42:08]Read from MH i2c: E2 03 00 0A 4D 00 90 00 CB [11:42:08]RAPDU: 90 00 [11:42:08]wFMCommunicate OK [11:42:08]wFMCommunicate request_size=255 [11:42:08]MH_SAM_APDU [11:42:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 80 79 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 79 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 37 01 00 00 00 07 04 06 00 80 79 0B 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 15 80 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DC CF 01 00 35 04 06 00 F1 CD 9A CC [11:42:08]Write to MH i2c: E2 02 01 0B 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 80 79 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 79 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 37 01 00 00 00 07 04 06 00 80 79 0B 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 15 80 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DC CF 01 00 35 04 06 00 F1 CD 9A CC 00 00 CB [11:42:08]Write i2c OK [11:42:08]MH_I2C_Read... [11:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:09]Read from MH i2c: E2 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 03 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 03 00 0B 4D 00 90 00 CC [11:42:09]RAPDU: 90 00 [11:42:09]wFMCommunicate OK [11:42:09]wFMCommunicate request_size=7 [11:42:09]MH_SAM_APDU [11:42:09]CAPDU: 80 0D 02 02 02 54 78 [11:42:09]Write to MH i2c: E2 0A 00 0C 4D 80 0D 02 02 02 00 54 78 00 00 A3 [11:42:09]Write i2c OK [11:42:09]MH_I2C_Read... [11:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:09]Read from MH i2c: E2 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 03 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 03 00 0C 4D 00 90 00 CD [11:42:09]RAPDU: 90 00 [11:42:09]wFMCommunicate OK [11:42:09]wFMCommunicate request_size=4 [11:42:09]MH_SAM_APDU [11:42:09]CAPDU: 80 0D 03 02 [11:42:09]Write to MH i2c: E2 08 00 0D 4D 80 0D 03 02 00 00 00 00 D5 [11:42:09]Write i2c OK [11:42:09]MH_I2C_Read... [11:42:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:09]Read from MH i2c: E2 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 0B 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 0B 00 0D 4D 00 07 95 B2 86 A5 2A AB 25 90 00 49 [11:42:09]RAPDU: 07 95 B2 86 A5 2A AB 25 90 00 [11:42:09]wFMCommunicate OK [11:42:09]SAM_PROTO_SignData done [11:42:09]FM_MakeSignedData done [11:42:09]CreateOFDProtocolMessage [11:42:09]wFMCommunicate request_size=4 [11:42:09]MH_SAM_APDU [11:42:09]CAPDU: 80 11 00 00 [11:42:09]Write to MH i2c: E2 08 00 0E 4D 80 11 00 00 00 00 00 00 D5 [11:42:09]Write i2c OK [11:42:09]MH_I2C_Read... [11:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:09]Read from MH i2c: E2 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 17 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: E2 17 00 0E 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 30 [11:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:42:09]wFMCommunicate OK [11:42:09]CreateOFDProtocolMessage done [11:42:09]OFDSenderStorePacket 118748 [11:42:09]StoreOFDPacket docnum=118748 [11:42:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 4F 7D 04 01 52 FF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 80 79 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 79 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 37 01 00 00 00 07 04 06 00 80 79 0B 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 15 80 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DC CF 01 00 35 04 06 00 F1 CD 9A CC 54 78 07 95 B2 86 A5 2A AB 25 [11:42:09]CheckFolder [11:42:09]dirname=/storage/ofd_packets [11:42:09]CheckFolder done [11:42:09]ProducePacketName [11:42:09]name=ofd_packets/00118748 [11:42:09]NVStorageSaveData ofd_packets/00118748 [11:42:09]File name is /storage/ofd_packets/00118748 [11:42:09]Write 298 bytes [11:42:09]NVStorageSaveData done [11:42:09]OFDSenderStorePacket done [11:42:09]KKMCreateOFDPacket done [11:42:09]NVStorageSaveData kkm_last_timestamp [11:42:09]File name is /storage/kkm_last_timestamp [11:42:09]Write 4 bytes [11:42:09]NVStorageSaveData done [11:42:09]ExternCall_PrintAddStr [11:42:09]wPrintStart [11:42:09]Write to MH i2c: 01 00 00 0F 4D 5C [11:42:09]Write i2c OK [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: 01 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: 01 07 00 [11:42:09]MH_I2C_Read... [11:42:09]Read from MH i2c: 01 07 00 0F 4D 00 00 00 00 00 FF 0F 71 [11:42:09]RasterBufferAndPrint [11:42:09]line Счет N : (1)949634 [11:42:09]line ИНН: 02508201610067 [11:42:09]line Контрольно-Кассовый Чек [11:42:09]line ПРОДАЖА [11:42:09]line ТРК (МРК, ГНК) : 44 [11:42:09]line Товар: 2710194800 [11:42:09]line ДТ-К-5 [11:42:09]line 100.000 * 75.20 [11:42:09]line = 7520.00 [11:42:09]line НДС 12% НСП 1% [11:42:09]line > о реализуемом товаре [11:42:09]line ИТОГО: 7520.00 [11:42:09]line НСП 1% : 66.55 [11:42:09]line НДС 12% : 798.58 [11:42:09]line Наличными: 7520.00 [11:42:09]line Безнал.: 0.00 [11:42:09]line Место: АЗС № 134 "Партнер Нефть" [11:42:09]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:42:09]line СНО: Общий режим [11:42:09]line Чек 124 29.07.2024 11:42 [11:42:09]line Смена: 434 ФФД: 1.0 [11:42:09]line ЗНМ: 0300000044 [11:42:09]line РНМ: 0000000000092660 [11:42:09]line Версия ККМ: 001 [11:42:09]line [11:42:09]line Дисконтная программа [11:42:09]line ДТ [11:42:09]line номер 134 [11:42:09]line сэкономлено 100.00 сом [11:42:09]line ФМ: 0000000000874939 [11:42:09]line ФД: 118748 [11:42:09]line ФПД: 265865367671928 [11:42:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T114213&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118748&fm=265865367671928&tin=02508201610067®Number=0000000000092660&sum=752000 [11:42:09]OFD Sender: Processing packet 118748 [packets to send 86, broken 85] [11:42:09]ProducePacketName [11:42:09]name=ofd_packets/00118748 [11:42:09]OFD Sender: To server: pG, [11:42:09]CommunicateWithHost lk.salyk.kg:30040 [11:42:09]ConnectInit lk.salyk.kg [11:42:09]written 0, free lines is 4095 [11:42:09]Connected sock=10 [11:42:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 4F 7D 04 01 52 FF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 80 79 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 79 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 37 01 00 00 00 07 04 06 00 80 79 0B 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 15 80 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DC CF 01 00 35 04 06 00 F1 CD 9A CC 54 78 07 95 B2 86 A5 2A AB 25 [11:42:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 85 82 47 00 B2 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DC CF 01 00 F4 03 04 00 A2 2D A7 66 B6 04 01 00 00 0A 12 33 72 A0 2F 53 6A [11:42:09]CommunicateWithHost err = 0 [11:42:09]CheckOFDResponse [11:42:09]1017 (14) - 77093643461234 [11:42:09]1041 (16) - 0000000000874939 [11:42:09]1040 (4) - 118748 [11:42:09]1012 (4) - 29.07.2024 05:50 [11:42:09]1206 (1) - 0 [11:42:09]OFD Sender: Remove packet 118748 [11:42:09]ProducePacketName [11:42:09]name=ofd_packets/00118748 [11:42:09]NVStorageDeleteData [11:42:10]Write to MH i2c: 01 00 00 3B 4D 88 [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: 01 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: 01 07 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: 01 07 00 3B 4D 00 00 00 00 00 B3 0C 4E [11:42:10]RasterBufferAndPrint [11:42:10]line [11:42:10]line [11:42:10]line [11:42:10]line [11:42:10]line [11:42:10]written 0, free lines is 3258 [11:42:10]MH_Cut [11:42:10]Write to MH i2c: D1 01 00 42 4D 01 61 [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: D1 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: D1 01 00 [11:42:10]MH_I2C_Read... [11:42:10]Read from MH i2c: D1 01 00 42 4D 00 60 [11:42:10]Write to MH i2c: 01 00 00 43 4D 90 [11:42:10]Write i2c OK [11:42:10]MH_I2C_Read... [11:42:10]OFD Sender: No OFD packet to send [11:42:10]*** Cut start [11:42:10]*** Partial cut [11:42:10]*** CUTSNS_PIN = 1 [11:42:10]*** CUTSNS_PIN = 0 [11:42:11]*** Brake cut motor [11:42:11]Read from MH i2c: 01 [11:42:11]MH_I2C_Read... [11:42:11]*** Stop cut motor [11:42:11]*** Cut end [11:42:11]Read from MH i2c: 01 07 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: 01 07 00 43 4D 00 00 00 00 00 FF 0F A5 [11:42:11]process_action close_receipt done [11:42:11]requested_data is exist [11:42:11]produce_requested_data [11:42:11]requested_item fm.sn is exist - process it [11:42:11]wFMCommunicate request_size=4 [11:42:11]MH_SAM_APDU [11:42:11]CAPDU: 80 11 00 00 [11:42:11]Write to MH i2c: E2 08 00 44 4D 80 11 00 00 00 00 00 00 0B [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:11]Read from MH i2c: E2 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 17 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 17 00 44 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 66 [11:42:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:42:11]wFMCommunicate OK [11:42:11]requested_item fd.num is exist - process it [11:42:11]SAM_PROTO_GetFieldsCounters [11:42:11]wFMCommunicate request_size=4 [11:42:11]MH_SAM_APDU [11:42:11]CAPDU: 80 13 00 00 [11:42:11]Write to MH i2c: E2 08 00 45 4D 80 13 00 00 00 00 00 00 0E [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:11]Read from MH i2c: E2 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 62 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 62 00 45 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DC CF 01 00 0E 04 04 00 B2 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 08 [11:42:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DC CF 01 00 0E 04 04 00 B2 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 [11:42:11]wFMCommunicate OK [11:42:11]SAM_PROTO_GetFieldsCounters done [11:42:11]requested_item shift.num is exist - process it [11:42:11]requested_item shift.opened is exist - process it [11:42:11]req_shift_opened [11:42:11]FM_GetShiftState [11:42:11]SAM_PROTO_GetShiftState [11:42:11]wFMCommunicate request_size=4 [11:42:11]MH_SAM_APDU [11:42:11]CAPDU: 80 13 01 00 [11:42:11]Write to MH i2c: E2 08 00 46 4D 80 13 01 00 00 00 00 00 10 [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:11]Read from MH i2c: E2 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 0E 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 0E 00 46 4D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 3E [11:42:11]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:42:11]wFMCommunicate OK [11:42:11]SAM_PROTO_GetShiftState done [11:42:11]FM_GetShiftState done [11:42:11]req_shift_opened done [11:42:11]requested_item shift.open_date is exist - process it [11:42:11]req_shift_open_date [11:42:11]req_shift_open_date done [11:42:11]produce_requested_data done [11:42:11]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118748,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [11:42:11]process_action_free close_receipt [11:42:11]json_value_free [11:42:11]json_value_free done [11:42:11]process_json_proto returns [11:42:11]Send response to host [11:42:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118748,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [11:42:11]free response buf [11:42:11]execute_script done [11:42:11]execute_script returns [11:42:11]free content buf [11:42:11]Sock 9.Close socket [11:42:11]Sock 9.Thread stoped [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42: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:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:38]accept exits with 7 [11:43:38]New connection [11:43:38]New thread 3067383140 created [11:43:38]Thread 3067239780 joined [11:43:38]Waiting for new connection... [11:43:38] Sock 7.Parse request [11:43:38]Sock 7.Check first char [11:43:38]Sock 7.First char is OK [11:43:38]request: POST /json_proto HTTP/1.0 [11:43:38]Method: POST [11:43:38]URL: /json_proto [11:43:38]Method is POST - this is cgi request [11:43:38]url: /json_proto [11:43:38]query_string will be loaded in cgi processing [11:43:38]execute_cgi json_proto POST (null) [11:43:38]execute_cgi path=json_proto method=POST [11:43:38]POST find Content-Length [11:43:38]Host: 172.17.45.7:8080 [11:43:38]Content-Length: 1151 [11:43:38]Content-Type: application/json [11:43:38] [11:43:38]POST finish read [11:43:38]Found Content-Length = 1151 [11:43:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949633\u000A29.07.2024 11:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 40.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 2712.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30108221\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:38]execute_script... [11:43:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949633\u000A29.07.2024 11:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 40.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 2712.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30108221\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:38]POST & json_proto [11:43:38]process_json_proto [11:43:38]json parsed OK: [11:43:38]protocol is kg_v1.0 [11:43:38]action value=print_text [11:43:38]process_action print_text [11:43:38]cmd_print_text [11:43:38]ExternCall_PrintAddStr [11:43:38]wPrintStart [11:43:38]Write to MH i2c: 01 00 00 47 4D 94 [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 07 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 07 00 47 4D 00 00 00 00 00 FF 0F A9 [11:43:38]RasterBufferAndPrint [11:43:38]line *****ТОВАРНЫЙ ЧЕК***** [11:43:38]line АЗС-134 [11:43:38]line Партнер нефть [11:43:38]line 02508201610067 [11:43:38]line Кассир : Казаков Ч. [11:43:38]line Счет N : (1)949633 [11:43:38]line 29.07.2024 11:41 [11:43:38]line ПРОДАЖА [11:43:38]line ТРК (МРК, ГНК): 61 [11:43:38]line Вид ГСМ : 2710124130 [11:43:38]line Аи-92-К-4 [11:43:38]line 40.000 x 67.80 [11:43:38]line ИТОГ: 2712.00 [11:43:38]line Тип оплаты: Талоны: ТК ГПНА Online [11:43:38]line 30108221 [11:43:38]line ______________________ [11:43:38]line (подпись) [11:43:38]written 0, free lines is 4095 [11:43:38]Write to MH i2c: 01 00 00 5B 4D A8 [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 07 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 07 00 5B 4D 00 00 00 00 00 0E 0E CB [11:43:38]RasterBufferAndPrint [11:43:38]line [11:43:38]line [11:43:38]line [11:43:38]line [11:43:38]line [11:43:38]written 0, free lines is 3599 [11:43:38]MH_Cut [11:43:38]Write to MH i2c: D1 01 00 62 4D 01 81 [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: D1 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: D1 01 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: D1 01 00 62 4D 00 80 [11:43:38]Write to MH i2c: 01 00 00 63 4D B0 [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:39]*** Cut start [11:43:39]*** Partial cut [11:43:39]*** CUTSNS_PIN = 1 [11:43:39]*** CUTSNS_PIN = 0 [11:43:39]*** Brake cut motor [11:43:39]Read from MH i2c: 01 [11:43:39]MH_I2C_Read... [11:43:39]*** Stop cut motor [11:43:39]*** Cut end [11:43:39]Read from MH i2c: 01 07 00 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: 01 07 00 63 4D 00 00 00 00 00 FF 0F C5 [11:43:39]process_action print_text done [11:43:39]requested_data is exist [11:43:39]produce_requested_data [11:43:39]requested_item fm.sn is exist - process it [11:43:39]wFMCommunicate request_size=4 [11:43:39]MH_SAM_APDU [11:43:39]CAPDU: 80 11 00 00 [11:43:39]Write to MH i2c: E2 08 00 64 4D 80 11 00 00 00 00 00 00 2B [11:43:39]Write i2c OK [11:43:39]MH_I2C_Read... [11:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:39]Read from MH i2c: E2 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: E2 17 00 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: E2 17 00 64 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 86 [11:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:43:39]wFMCommunicate OK [11:43:39]requested_item fd.num is exist - process it [11:43:39]SAM_PROTO_GetFieldsCounters [11:43:39]wFMCommunicate request_size=4 [11:43:39]MH_SAM_APDU [11:43:39]CAPDU: 80 13 00 00 [11:43:39]Write to MH i2c: E2 08 00 65 4D 80 13 00 00 00 00 00 00 2E [11:43:39]Write i2c OK [11:43:39]MH_I2C_Read... [11:43:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:39]Read from MH i2c: E2 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: E2 62 00 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: E2 62 00 65 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DC CF 01 00 0E 04 04 00 B2 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 28 [11:43:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DC CF 01 00 0E 04 04 00 B2 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 [11:43:39]wFMCommunicate OK [11:43:39]SAM_PROTO_GetFieldsCounters done [11:43:39]requested_item shift.num is exist - process it [11:43:39]requested_item shift.opened is exist - process it [11:43:39]req_shift_opened [11:43:39]FM_GetShiftState [11:43:39]SAM_PROTO_GetShiftState [11:43:39]wFMCommunicate request_size=4 [11:43:39]MH_SAM_APDU [11:43:39]CAPDU: 80 13 01 00 [11:43:39]Write to MH i2c: E2 08 00 66 4D 80 13 01 00 00 00 00 00 30 [11:43:39]Write i2c OK [11:43:39]MH_I2C_Read... [11:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:39]Read from MH i2c: E2 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: E2 0E 00 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: E2 0E 00 66 4D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 5E [11:43:39]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:43:39]wFMCommunicate OK [11:43:39]SAM_PROTO_GetShiftState done [11:43:39]FM_GetShiftState done [11:43:39]req_shift_opened done [11:43:39]requested_item shift.open_date is exist - process it [11:43:39]req_shift_open_date [11:43:39]req_shift_open_date done [11:43:39]produce_requested_data done [11:43:39]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118748,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [11:43:39]process_action_free print_text [11:43:39]json_value_free [11:43:39]json_value_free done [11:43:39]process_json_proto returns [11:43:39]Send response to host [11:43:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118748,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [11:43:39]free response buf [11:43:39]execute_script done [11:43:39]execute_script returns [11:43:39]free content buf [11:43:39]Sock 7.Close socket [11:43:39]Sock 7.Thread stoped [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:47:57]accept exits with 9 [11:47:57]New connection [11:47:57]New thread 3067239780 created [11:47:57]Thread 3067383140 joined [11:47:57]Waiting for new connection... [11:47:57] Sock 9.Parse request [11:47:57]Sock 9.Check first char [11:47:57]Sock 9.First char is OK [11:47:57]request: POST /json_proto HTTP/1.0 [11:47:57]Method: POST [11:47:57]URL: /json_proto [11:47:57]Method is POST - this is cgi request [11:47:57]url: /json_proto [11:47:57]query_string will be loaded in cgi processing [11:47:57]execute_cgi json_proto POST (null) [11:47:57]execute_cgi path=json_proto method=POST [11:47:57]POST find Content-Length [11:47:57]Host: 172.17.45.7:8080 [11:47:57]Content-Length: 677 [11:47:57]Content-Type: application/json [11:47:57] [11:47:57]POST finish read [11:47:57]Found Content-Length = 677 [11:47:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:57]execute_script... [11:47:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:57]POST & json_proto [11:47:57]process_json_proto [11:47:57]json parsed OK: [11:47:57]protocol is kg_v1.0 [11:47:57]action value=close_receipt [11:47:57]process_action close_receipt [11:47:57]cmd_close_receipt [11:47:57]MH_GetDate [11:47:57]Write to MH i2c: F0 00 00 67 4D A3 [11:47:57]Write i2c OK [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: F0 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: F0 09 00 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: F0 09 00 67 4D 00 72 81 A7 66 90 0F 3E 66 EF [11:47:57]GetLastDocTimeStamp 1722253333 [11:47:57]current date 1722253682 [11:47:57]FM_GetShiftState [11:47:57]SAM_PROTO_GetShiftState [11:47:57]wFMCommunicate request_size=4 [11:47:57]MH_SAM_APDU [11:47:57]CAPDU: 80 13 01 00 [11:47:57]Write to MH i2c: E2 08 00 68 4D 80 13 01 00 00 00 00 00 32 [11:47:57]Write i2c OK [11:47:57]MH_I2C_Read... [11:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:57]Read from MH i2c: E2 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 0E 00 [11:47:57]MH_I2C_Read... [11:47:57]Read from MH i2c: E2 0E 00 68 4D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 60 [11:47:57]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:47:57]wFMCommunicate OK [11:47:57]SAM_PROTO_GetShiftState done [11:47:57]FM_GetShiftState done [11:47:57]opened in 1722211641 [11:47:57]opened+sec_in_day 1722298041 [11:47:57]quantity*price = 40002 [11:47:57]sum+1 = 40003 [11:47:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 125 29.07.2024 11:48 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118749 ФПД: 239882142269717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T114802&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118749&fm=239882142269717&tin=02508201610067®Number=0000000000092660&sum=40000 [11:47:58]StoreToDocumentArchive [11:47:58]shift 434 fd 118749 [11:47:58]save to /storage/0434/doc_00118749 [11:47:58]save last doc name /storage/0434/doc_00118749 to /storage/kkm_last_doc_name [11:47:58]save OK [11:47:58]Clear old archive folders... [11:47:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:58]tlvbuf is 01E89DB0 [11:47:58]SAM_PROTO_ClearQueue [11:47:58]wFMCommunicate request_size=4 [11:47:58]MH_SAM_APDU [11:47:58]CAPDU: 80 09 00 00 [11:47:58]Write to MH i2c: E2 08 00 75 4D 80 09 00 00 00 00 00 00 34 [11:47:58]Write i2c OK [11:47:58]MH_I2C_Read... [11:47:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:58]Read from MH i2c: E2 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 03 00 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 03 00 75 4D 00 90 00 36 [11:47:58]RAPDU: 90 00 [11:47:58]wFMCommunicate OK [11:47:58]SAM_PROTO_ClearQueue done [11:47:58]KKMCreateOFDPacket [11:47:58]OFDProtocolAddRootSTLVToBuf [11:47:58]FM_MakeSignedData [11:47:58]FM_MakeSignedData [11:47:58]SAM_PROTO_SignData [11:47:58]wFMCommunicate request_size=4 [11:47:58]MH_SAM_APDU [11:47:58]CAPDU: 80 0D 01 02 [11:47:58]Write to MH i2c: E2 08 00 76 4D 80 0D 01 02 00 00 00 00 3C [11:47:58]Write i2c OK [11:47:58]MH_I2C_Read... [11:47:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:58]Read from MH i2c: E2 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 03 00 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 03 00 76 4D 00 90 00 37 [11:47:58]RAPDU: 90 00 [11:47:58]wFMCommunicate OK [11:47:58]wFMCommunicate request_size=255 [11:47:58]MH_SAM_APDU [11:47:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 72 81 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DD CF 01 00 35 04 06 00 DA [11:47:58]Write to MH i2c: E2 02 01 77 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 72 81 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DD CF 01 00 35 04 06 00 DA 00 00 5C [11:47:58]Write i2c OK [11:47:58]MH_I2C_Read... [11:47:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:58]Read from MH i2c: E2 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 03 00 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 03 00 77 4D 00 90 00 38 [11:47:58]RAPDU: 90 00 [11:47:58]wFMCommunicate OK [11:47:58]wFMCommunicate request_size=10 [11:47:58]MH_SAM_APDU [11:47:58]CAPDU: 80 0D 02 02 05 2B E9 E0 C1 15 [11:47:58]Write to MH i2c: E2 0D 00 78 4D 80 0D 02 02 05 00 2B E9 E0 C1 15 00 00 13 [11:47:58]Write i2c OK [11:47:58]MH_I2C_Read... [11:47:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:58]Read from MH i2c: E2 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 03 00 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 03 00 78 4D 00 90 00 39 [11:47:58]RAPDU: 90 00 [11:47:58]wFMCommunicate OK [11:47:58]wFMCommunicate request_size=4 [11:47:58]MH_SAM_APDU [11:47:58]CAPDU: 80 0D 03 02 [11:47:58]Write to MH i2c: E2 08 00 79 4D 80 0D 03 02 00 00 00 00 41 [11:47:58]Write i2c OK [11:47:58]MH_I2C_Read... [11:47:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:58]Read from MH i2c: E2 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 0B 00 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 0B 00 79 4D 00 B9 23 CD 76 76 F9 84 37 90 00 8B [11:47:58]RAPDU: B9 23 CD 76 76 F9 84 37 90 00 [11:47:58]wFMCommunicate OK [11:47:58]SAM_PROTO_SignData done [11:47:58]FM_MakeSignedData done [11:47:58]CreateOFDProtocolMessage [11:47:58]wFMCommunicate request_size=4 [11:47:58]MH_SAM_APDU [11:47:58]CAPDU: 80 11 00 00 [11:47:58]Write to MH i2c: E2 08 00 7A 4D 80 11 00 00 00 00 00 00 41 [11:47:58]Write i2c OK [11:47:58]MH_I2C_Read... [11:47:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:58]Read from MH i2c: E2 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 17 00 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 17 00 7A 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9C [11:47:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:47:58]wFMCommunicate OK [11:47:58]CreateOFDProtocolMessage done [11:47:58]OFDSenderStorePacket 118749 [11:47:58]StoreOFDPacket docnum=118749 [11:47:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DD F8 07 01 A6 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 72 81 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DD CF 01 00 35 04 06 00 DA 2B E9 E0 C1 15 B9 23 CD 76 76 F9 84 37 [11:47:58]CheckFolder [11:47:58]dirname=/storage/ofd_packets [11:47:58]CheckFolder done [11:47:58]ProducePacketName [11:47:58]name=ofd_packets/00118749 [11:47:58]NVStorageSaveData ofd_packets/00118749 [11:47:58]File name is /storage/ofd_packets/00118749 [11:47:58]Write 301 bytes [11:47:58]NVStorageSaveData done [11:47:58]OFDSenderStorePacket done [11:47:58]KKMCreateOFDPacket done [11:47:58]NVStorageSaveData kkm_last_timestamp [11:47:58]File name is /storage/kkm_last_timestamp [11:47:58]Write 4 bytes [11:47:58]NVStorageSaveData done [11:47:58]ExternCall_PrintAddStr [11:47:58]wPrintStart [11:47:58]Write to MH i2c: 01 00 00 7B 4D C8 [11:47:58]Write i2c OK [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: 01 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: 01 07 00 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: 01 07 00 7B 4D 00 00 00 00 00 FF 0F DD [11:47:58]RasterBufferAndPrint [11:47:58]line Счет N : (1)949635 [11:47:58]line ИНН: 02508201610067 [11:47:58]line Контрольно-Кассовый Чек [11:47:58]line ПРОДАЖА [11:47:58]line ТРК (МРК, ГНК) : 31 [11:47:58]line Товар: 2710124130 [11:47:58]line Аи-92-К-4 [11:47:58]line 5.900 * 67.80 [11:47:58]line = 400.02 [11:47:58]line НДС 12% НСП 1% [11:47:58]line > о реализуемом товаре [11:47:58]line ОКРУГЛЕНИЕ: -0.02 [11:47:58]line ИТОГО: 400.00 [11:47:58]line Внесено: 400.00 [11:47:58]line СДАЧА: 0.00 [11:47:58]line НСП 1% : 3.54 [11:47:58]line НДС 12% : 42.48 [11:47:58]line Наличными: 400.00 [11:47:58]line Безнал.: 0.00 [11:47:58]line Место: АЗС № 134 "Партнер Нефть" [11:47:58]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:47:58]line СНО: Общий режим [11:47:58]line Чек 125 29.07.2024 11:48 [11:47:58]line Смена: 434 ФФД: 1.0 [11:47:58]line ЗНМ: 0300000044 [11:47:58]line РНМ: 0000000000092660 [11:47:58]line Версия ККМ: 001 [11:47:58]line ФМ: 0000000000874939 [11:47:58]line ФД: 118749 [11:47:58]line ФПД: 239882142269717 [11:47:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T114802&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118749&fm=239882142269717&tin=02508201610067®Number=0000000000092660&sum=40000 [11:47:59]OFD Sender: Processing packet 118749 [packets to send 86, broken 85] [11:47:59]ProducePacketName [11:47:59]name=ofd_packets/00118749 [11:47:59]OFD Sender: To server: pG, [11:47:59]CommunicateWithHost lk.salyk.kg:30040 [11:47:59]ConnectInit lk.salyk.kg [11:47:59]written 0, free lines is 4095 [11:47:59]Connected sock=10 [11:47:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DD F8 07 01 A6 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 72 81 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DD CF 01 00 35 04 06 00 DA 2B E9 E0 C1 15 B9 23 CD 76 76 F9 84 37 [11:47:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2E 7C 47 00 E8 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DD CF 01 00 F4 03 04 00 00 2F A7 66 B6 04 01 00 00 30 6A 9F 21 91 ED 42 28 [11:47:59]CommunicateWithHost err = 0 [11:47:59]CheckOFDResponse [11:47:59]1017 (14) - 77093643461234 [11:47:59]1041 (16) - 0000000000874939 [11:47:59]1040 (4) - 118749 [11:47:59]1012 (4) - 29.07.2024 05:56 [11:47:59]1206 (1) - 0 [11:47:59]OFD Sender: Remove packet 118749 [11:47:59]ProducePacketName [11:47:59]name=ofd_packets/00118749 [11:47:59]NVStorageDeleteData [11:47:59]Write to MH i2c: 01 00 00 A5 4D F2 [11:47:59]Write i2c OK [11:47:59]MH_I2C_Read... [11:47:59]Read from MH i2c: 01 [11:47:59]MH_I2C_Read... [11:47:59]Read from MH i2c: 01 07 00 [11:47:59]MH_I2C_Read... [11:47:59]Read from MH i2c: 01 07 00 A5 4D 00 00 00 00 00 E0 0C E5 [11:47:59]RasterBufferAndPrint [11:47:59]line [11:47:59]line [11:47:59]line [11:47:59]line [11:47:59]line [11:47:59]written 0, free lines is 3302 [11:47:59]MH_Cut [11:47:59]Write to MH i2c: D1 01 00 AC 4D 01 CB [11:47:59]Write i2c OK [11:47:59]MH_I2C_Read... [11:47:59]Read from MH i2c: D1 [11:47:59]MH_I2C_Read... [11:47:59]Read from MH i2c: D1 01 00 [11:47:59]MH_I2C_Read... [11:47:59]Read from MH i2c: D1 01 00 AC 4D 00 CA [11:47:59]Write to MH i2c: 01 00 00 AD 4D FA [11:47:59]Write i2c OK [11:47:59]MH_I2C_Read... [11:47:59]OFD Sender: No OFD packet to send [11:48:00]*** Cut start [11:48:00]*** Partial cut [11:48:00]*** CUTSNS_PIN = 1 [11:48:00]*** CUTSNS_PIN = 0 [11:48:00]*** Brake cut motor [11:48:00]Read from MH i2c: 01 [11:48:00]MH_I2C_Read... [11:48:00]*** Stop cut motor [11:48:00]Read from MH i2c: 01 07 00 [11:48:00]MH_I2C_Read... [11:48:00]*** Cut end [11:48:00]Read from MH i2c: 01 07 00 AD 4D 00 00 00 00 00 FF 0F 0F [11:48:00]process_action close_receipt done [11:48:00]requested_data is exist [11:48:00]produce_requested_data [11:48:00]requested_item fm.sn is exist - process it [11:48:00]wFMCommunicate request_size=4 [11:48:00]MH_SAM_APDU [11:48:00]CAPDU: 80 11 00 00 [11:48:00]Write to MH i2c: E2 08 00 AE 4D 80 11 00 00 00 00 00 00 75 [11:48:00]Write i2c OK [11:48:00]MH_I2C_Read... [11:48:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:00]Read from MH i2c: E2 [11:48:00]MH_I2C_Read... [11:48:00]Read from MH i2c: E2 17 00 [11:48:00]MH_I2C_Read... [11:48:00]Read from MH i2c: E2 17 00 AE 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D0 [11:48:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:48:00]wFMCommunicate OK [11:48:00]requested_item fd.num is exist - process it [11:48:00]SAM_PROTO_GetFieldsCounters [11:48:00]wFMCommunicate request_size=4 [11:48:00]MH_SAM_APDU [11:48:00]CAPDU: 80 13 00 00 [11:48:00]Write to MH i2c: E2 08 00 AF 4D 80 13 00 00 00 00 00 00 78 [11:48:00]Write i2c OK [11:48:00]MH_I2C_Read... [11:48:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:01]Read from MH i2c: E2 [11:48:01]MH_I2C_Read... [11:48:01]Read from MH i2c: E2 62 00 [11:48:01]MH_I2C_Read... [11:48:01]Read from MH i2c: E2 62 00 AF 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DD CF 01 00 0E 04 04 00 B2 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 76 [11:48: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DD CF 01 00 0E 04 04 00 B2 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 [11:48:01]wFMCommunicate OK [11:48:01]SAM_PROTO_GetFieldsCounters done [11:48:01]requested_item shift.num is exist - process it [11:48:01]requested_item shift.opened is exist - process it [11:48:01]req_shift_opened [11:48:01]FM_GetShiftState [11:48:01]SAM_PROTO_GetShiftState [11:48:01]wFMCommunicate request_size=4 [11:48:01]MH_SAM_APDU [11:48:01]CAPDU: 80 13 01 00 [11:48:01]Write to MH i2c: E2 08 00 B0 4D 80 13 01 00 00 00 00 00 7A [11:48:01]Write i2c OK [11:48:01]MH_I2C_Read... [11:48:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:01]Read from MH i2c: E2 [11:48:01]MH_I2C_Read... [11:48:01]Read from MH i2c: E2 0E 00 [11:48:01]MH_I2C_Read... [11:48:01]Read from MH i2c: E2 0E 00 B0 4D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A8 [11:48:01]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:48:01]wFMCommunicate OK [11:48:01]SAM_PROTO_GetShiftState done [11:48:01]FM_GetShiftState done [11:48:01]req_shift_opened done [11:48:01]requested_item shift.open_date is exist - process it [11:48:01]req_shift_open_date [11:48:01]req_shift_open_date done [11:48:01]produce_requested_data done [11:48:01]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118749,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [11:48:01]process_action_free close_receipt [11:48:01]json_value_free [11:48:01]json_value_free done [11:48:01]process_json_proto returns [11:48:01]Send response to host [11:48:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118749,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [11:48:01]free response buf [11:48:01]execute_script done [11:48:01]execute_script returns [11:48:01]free content buf [11:48:01]Sock 9.Close socket [11:48:01]Sock 9.Thread stoped [11:48:04]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:19]OFD Sender: No OFD packet to send [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:40]OFD Sender: No OFD packet to send [11:49:45]OFD Sender: No OFD packet to send [11:49:50]OFD Sender: No OFD packet to send [11:49:51]accept exits with 7 [11:49:51]New connection [11:49:51]New thread 3067383140 created [11:49:51]Thread 3067239780 joined [11:49:51]Waiting for new connection... [11:49:51] Sock 7.Parse request [11:49:51]Sock 7.Check first char [11:49:51]Sock 7.First char is OK [11:49:51]request: POST /json_proto HTTP/1.0 [11:49:51]Method: POST [11:49:51]URL: /json_proto [11:49:51]Method is POST - this is cgi request [11:49:51]url: /json_proto [11:49:51]query_string will be loaded in cgi processing [11:49:51]execute_cgi json_proto POST (null) [11:49:51]execute_cgi path=json_proto method=POST [11:49:51]POST find Content-Length [11:49:51]Host: 172.17.45.7:8080 [11:49:51]Content-Length: 682 [11:49:51]Content-Type: application/json [11:49:51] [11:49:51]POST finish read [11:49:51]Found Content-Length = 682 [11:49:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:51]execute_script... [11:49: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)949636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:51]POST & json_proto [11:49:51]process_json_proto [11:49:51]json parsed OK: [11:49:51]protocol is kg_v1.0 [11:49:51]action value=close_receipt [11:49:51]process_action close_receipt [11:49:51]cmd_close_receipt [11:49:51]MH_GetDate [11:49:51]Write to MH i2c: F0 00 00 B1 4D ED [11:49:51]Write i2c OK [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: F0 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: F0 09 00 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: F0 09 00 B1 4D 00 E5 81 A7 66 90 0F 3E 66 AC [11:49:51]GetLastDocTimeStamp 1722253682 [11:49:51]current date 1722253797 [11:49:51]FM_GetShiftState [11:49:51]SAM_PROTO_GetShiftState [11:49:51]wFMCommunicate request_size=4 [11:49:51]MH_SAM_APDU [11:49:51]CAPDU: 80 13 01 00 [11:49:51]Write to MH i2c: E2 08 00 B2 4D 80 13 01 00 00 00 00 00 7C [11:49:51]Write i2c OK [11:49:51]MH_I2C_Read... [11:49:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:51]Read from MH i2c: E2 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: E2 0E 00 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: E2 0E 00 B2 4D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 AA [11:49:51]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:49:51]wFMCommunicate OK [11:49:51]SAM_PROTO_GetShiftState done [11:49:51]FM_GetShiftState done [11:49:51]opened in 1722211641 [11:49:51]opened+sec_in_day 1722298041 [11:49:51]quantity*price = 200043 [11:49:51]sum+1 = 200044 [11:49:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 126 29.07.2024 11:49 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118750 ФПД: 99966821774619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T114957&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118750&fm=99966821774619&tin=02508201610067®Number=0000000000092660&sum=200000 [11:49:52]StoreToDocumentArchive [11:49:52]shift 434 fd 118750 [11:49:52]save to /storage/0434/doc_00118750 [11:49:52]save last doc name /storage/0434/doc_00118750 to /storage/kkm_last_doc_name [11:49:52]save OK [11:49:52]Clear old archive folders... [11:49:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:52]tlvbuf is 01F743B0 [11:49:52]SAM_PROTO_ClearQueue [11:49:52]wFMCommunicate request_size=4 [11:49:52]MH_SAM_APDU [11:49:52]CAPDU: 80 09 00 00 [11:49:52]Write to MH i2c: E2 08 00 BF 4D 80 09 00 00 00 00 00 00 7E [11:49:52]Write i2c OK [11:49:52]MH_I2C_Read... [11:49:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:52]Read from MH i2c: E2 [11:49:52]MH_I2C_Read... [11:49:52]Read from MH i2c: E2 03 00 [11:49:52]MH_I2C_Read... [11:49:52]Read from MH i2c: E2 03 00 BF 4D 00 90 00 80 [11:49:52]RAPDU: 90 00 [11:49:52]wFMCommunicate OK [11:49:52]SAM_PROTO_ClearQueue done [11:49:52]KKMCreateOFDPacket [11:49:52]OFDProtocolAddRootSTLVToBuf [11:49:52]FM_MakeSignedData [11:49:52]FM_MakeSignedData [11:49:52]SAM_PROTO_SignData [11:49:52]wFMCommunicate request_size=4 [11:49:52]MH_SAM_APDU [11:49:52]CAPDU: 80 0D 01 02 [11:49:52]Write to MH i2c: E2 08 00 C0 4D 80 0D 01 02 00 00 00 00 86 [11:49:52]Write i2c OK [11:49:52]MH_I2C_Read... [11:49:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:52]Read from MH i2c: E2 [11:49:52]MH_I2C_Read... [11:49:52]Read from MH i2c: E2 03 00 [11:49:52]MH_I2C_Read... [11:49:52]Read from MH i2c: E2 03 00 C0 4D 00 90 00 81 [11:49:52]RAPDU: 90 00 [11:49:52]wFMCommunicate OK [11:49:52]wFMCommunicate request_size=255 [11:49:52]MH_SAM_APDU [11:49:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 E5 81 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE CF 01 00 35 04 06 00 5A [11:49:52]Write to MH i2c: E2 02 01 C1 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 E5 81 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE CF 01 00 35 04 06 00 5A 00 00 6D [11:49:52]Write i2c OK [11:49:52]MH_I2C_Read... [11:49:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:53]Read from MH i2c: E2 [11:49:53]MH_I2C_Read... [11:49:53]Read from MH i2c: E2 03 00 [11:49:53]MH_I2C_Read... [11:49:53]Read from MH i2c: E2 03 00 C1 4D 00 90 00 82 [11:49:53]RAPDU: 90 00 [11:49:53]wFMCommunicate OK [11:49:53]wFMCommunicate request_size=10 [11:49:53]MH_SAM_APDU [11:49:53]CAPDU: 80 0D 02 02 05 EB 56 E6 B5 1B [11:49:53]Write to MH i2c: E2 0D 00 C2 4D 80 0D 02 02 05 00 EB 56 E6 B5 1B 00 00 8A [11:49:53]Write i2c OK [11:49:53]MH_I2C_Read... [11:49:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:53]Read from MH i2c: E2 [11:49:53]MH_I2C_Read... [11:49:53]Read from MH i2c: E2 03 00 [11:49:53]MH_I2C_Read... [11:49:53]Read from MH i2c: E2 03 00 C2 4D 00 90 00 83 [11:49:53]RAPDU: 90 00 [11:49:53]wFMCommunicate OK [11:49:53]wFMCommunicate request_size=4 [11:49:53]MH_SAM_APDU [11:49:53]CAPDU: 80 0D 03 02 [11:49:53]Write to MH i2c: E2 08 00 C3 4D 80 0D 03 02 00 00 00 00 8B [11:49:53]Write i2c OK [11:49:53]MH_I2C_Read... [11:49:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:53]Read from MH i2c: E2 [11:49:53]MH_I2C_Read... [11:49:53]Read from MH i2c: E2 0B 00 [11:49:53]MH_I2C_Read... [11:49:53]Read from MH i2c: E2 0B 00 C3 4D 00 F7 F5 30 6B 41 C8 78 44 90 00 D8 [11:49:53]RAPDU: F7 F5 30 6B 41 C8 78 44 90 00 [11:49:53]wFMCommunicate OK [11:49:53]SAM_PROTO_SignData done [11:49:53]FM_MakeSignedData done [11:49:53]CreateOFDProtocolMessage [11:49:53]wFMCommunicate request_size=4 [11:49:53]MH_SAM_APDU [11:49:53]CAPDU: 80 11 00 00 [11:49:53]Write to MH i2c: E2 08 00 C4 4D 80 11 00 00 00 00 00 00 8B [11:49:53]Write i2c OK [11:49:53]MH_I2C_Read... [11:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:53]Read from MH i2c: E2 [11:49:53]MH_I2C_Read... [11:49:53]Read from MH i2c: E2 17 00 [11:49:53]MH_I2C_Read... [11:49:53]Read from MH i2c: E2 17 00 C4 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E6 [11:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:49:53]wFMCommunicate OK [11:49:53]CreateOFDProtocolMessage done [11:49:53]OFDSenderStorePacket 118750 [11:49:53]StoreOFDPacket docnum=118750 [11:49:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A5 8C 07 01 CE 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 E5 81 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE CF 01 00 35 04 06 00 5A EB 56 E6 B5 1B F7 F5 30 6B 41 C8 78 44 [11:49:53]CheckFolder [11:49:53]dirname=/storage/ofd_packets [11:49:53]CheckFolder done [11:49:53]ProducePacketName [11:49:53]name=ofd_packets/00118750 [11:49:53]NVStorageSaveData ofd_packets/00118750 [11:49:53]File name is /storage/ofd_packets/00118750 [11:49:53]Write 301 bytes [11:49:53]NVStorageSaveData done [11:49:53]OFDSenderStorePacket done [11:49:53]KKMCreateOFDPacket done [11:49:53]NVStorageSaveData kkm_last_timestamp [11:49:53]File name is /storage/kkm_last_timestamp [11:49:53]Write 4 bytes [11:49:53]NVStorageSaveData done [11:49:53]OFD Sender: Processing packet 118750 [packets to send 86, broken 85] [11:49:53]ProducePacketName [11:49:53]name=ofd_packets/00118750 [11:49:53]OFD Sender: To server: pG, [11:49:53]CommunicateWithHost lk.salyk.kg:30040 [11:49:53]ConnectInit lk.salyk.kg [11:49:53]ExternCall_PrintAddStr [11:49:53]wPrintStart [11:49:53]Write to MH i2c: 01 00 00 C5 4D 12 [11:49:53]Write i2c OK [11:49:53]MH_I2C_Read... [11:49:53]Read from MH i2c: 01 [11:49:53]MH_I2C_Read... [11:49:53]Read from MH i2c: 01 07 00 [11:49:53]MH_I2C_Read... [11:49:53]Read from MH i2c: 01 07 00 C5 4D 00 00 00 00 00 FF 0F 27 [11:49:53]RasterBufferAndPrint [11:49:53]line Счет N : (1)949636 [11:49:53]line ИНН: 02508201610067 [11:49:53]line Контрольно-Кассовый Чек [11:49:53]line ПРОДАЖА [11:49:53]line ТРК (МРК, ГНК) : 43 [11:49:53]line Товар: 2710124500 [11:49:53]line Аи-95-К-3 [11:49:53]line 26.960 * 74.20 [11:49:53]line = 2000.43 [11:49:53]line НДС 12% НСП 1% [11:49:53]line > о реализуемом товаре [11:49:53]line ОКРУГЛЕНИЕ: -0.43 [11:49:53]line ИТОГО: 2000.00 [11:49:53]line Внесено: 2000.00 [11:49:53]line СДАЧА: 0.00 [11:49:53]line НСП 1% : 17.70 [11:49:53]line НДС 12% : 212.43 [11:49:53]line Наличными: 2000.00 [11:49:53]line Безнал.: 0.00 [11:49:53]line Место: АЗС № 134 "Партнер Нефть" [11:49:53]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:49:53]line СНО: Общий режим [11:49:53]line Чек 126 29.07.2024 11:49 [11:49:53]line Смена: 434 ФФД: 1.0 [11:49:53]line ЗНМ: 0300000044 [11:49:53]line РНМ: 0000000000092660 [11:49:53]line Версия ККМ: 001 [11:49:53]line ФМ: 0000000000874939 [11:49:53]line ФД: 118750 [11:49:53]line ФПД: 99966821774619 [11:49:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T114957&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118750&fm=99966821774619&tin=02508201610067®Number=0000000000092660&sum=200000 [11:49:53]Connected sock=11 [11:49:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A5 8C 07 01 CE 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 E5 81 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE CF 01 00 35 04 06 00 5A EB 56 E6 B5 1B F7 F5 30 6B 41 C8 78 44 [11:49:53]written 0, free lines is 4095 [11:49:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D3 9C 47 00 A2 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE CF 01 00 F4 03 04 00 72 2F A7 66 B6 04 01 00 00 4B A0 57 BB A7 08 F5 F5 [11:49:53]CommunicateWithHost err = 0 [11:49:53]CheckOFDResponse [11:49:53]1017 (14) - 77093643461234 [11:49:53]1041 (16) - 0000000000874939 [11:49:53]1040 (4) - 118750 [11:49:53]1012 (4) - 29.07.2024 05:58 [11:49:53]1206 (1) - 0 [11:49:53]OFD Sender: Remove packet 118750 [11:49:53]ProducePacketName [11:49:53]name=ofd_packets/00118750 [11:49:53]NVStorageDeleteData [11:49:54]Write to MH i2c: 01 00 00 EF 4D 3C [11:49:54]Write i2c OK [11:49:54]MH_I2C_Read... [11:49:54]Read from MH i2c: 01 [11:49:54]MH_I2C_Read... [11:49:54]Read from MH i2c: 01 07 00 [11:49:54]MH_I2C_Read... [11:49:54]Read from MH i2c: 01 07 00 EF 4D 00 00 00 00 00 DC 0C 2B [11:49:54]RasterBufferAndPrint [11:49:54]line [11:49:54]line [11:49:54]line [11:49:54]line [11:49:54]line [11:49:54]written 0, free lines is 3301 [11:49:54]MH_Cut [11:49:54]Write to MH i2c: D1 01 00 F6 4D 01 15 [11:49:54]Write i2c OK [11:49:54]MH_I2C_Read... [11:49:54]Read from MH i2c: D1 [11:49:54]MH_I2C_Read... [11:49:54]Read from MH i2c: D1 01 00 [11:49:54]MH_I2C_Read... [11:49:54]Read from MH i2c: D1 01 00 F6 4D 00 14 [11:49:54]Write to MH i2c: 01 00 00 F7 4D 44 [11:49:54]Write i2c OK [11:49:54]MH_I2C_Read... [11:49:54]OFD Sender: No OFD packet to send [11:49:54]*** Cut start [11:49:54]*** Partial cut [11:49:54]*** CUTSNS_PIN = 1 [11:49:54]*** CUTSNS_PIN = 0 [11:49:55]*** Brake cut motor [11:49:55]Read from MH i2c: 01 [11:49:55]MH_I2C_Read... [11:49:55]*** Stop cut motor [11:49:55]*** Cut end [11:49:55]Read from MH i2c: 01 07 00 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: 01 07 00 F7 4D 00 00 00 00 00 FF 0F 59 [11:49:55]process_action close_receipt done [11:49:55]requested_data is exist [11:49:55]produce_requested_data [11:49:55]requested_item fm.sn is exist - process it [11:49:55]wFMCommunicate request_size=4 [11:49:55]MH_SAM_APDU [11:49:55]CAPDU: 80 11 00 00 [11:49:55]Write to MH i2c: E2 08 00 F8 4D 80 11 00 00 00 00 00 00 BF [11:49:55]Write i2c OK [11:49:55]MH_I2C_Read... [11:49:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:55]Read from MH i2c: E2 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 17 00 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 17 00 F8 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1A [11:49:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:49:55]wFMCommunicate OK [11:49:55]requested_item fd.num is exist - process it [11:49:55]SAM_PROTO_GetFieldsCounters [11:49:55]wFMCommunicate request_size=4 [11:49:55]MH_SAM_APDU [11:49:55]CAPDU: 80 13 00 00 [11:49:55]Write to MH i2c: E2 08 00 F9 4D 80 13 00 00 00 00 00 00 C2 [11:49:55]Write i2c OK [11:49:55]MH_I2C_Read... [11:49:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:55]Read from MH i2c: E2 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 62 00 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 62 00 F9 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DE CF 01 00 0E 04 04 00 B2 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 C4 [11:49: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DE CF 01 00 0E 04 04 00 B2 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 [11:49:55]wFMCommunicate OK [11:49:55]SAM_PROTO_GetFieldsCounters done [11:49:55]requested_item shift.num is exist - process it [11:49:55]requested_item shift.opened is exist - process it [11:49:55]req_shift_opened [11:49:55]FM_GetShiftState [11:49:55]SAM_PROTO_GetShiftState [11:49:55]wFMCommunicate request_size=4 [11:49:55]MH_SAM_APDU [11:49:55]CAPDU: 80 13 01 00 [11:49:55]Write to MH i2c: E2 08 00 FA 4D 80 13 01 00 00 00 00 00 C4 [11:49:55]Write i2c OK [11:49:55]MH_I2C_Read... [11:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:55]Read from MH i2c: E2 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 0E 00 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 0E 00 FA 4D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F2 [11:49:55]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:49:55]wFMCommunicate OK [11:49:55]SAM_PROTO_GetShiftState done [11:49:55]FM_GetShiftState done [11:49:55]req_shift_opened done [11:49:55]requested_item shift.open_date is exist - process it [11:49:55]req_shift_open_date [11:49:55]req_shift_open_date done [11:49:55]produce_requested_data done [11:49:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118750,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [11:49:55]process_action_free close_receipt [11:49:55]json_value_free [11:49:55]json_value_free done [11:49:55]process_json_proto returns [11:49:55]Send response to host [11:49:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118750,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [11:49:55]free response buf [11:49:55]execute_script done [11:49:55]execute_script returns [11:49:55]free content buf [11:49:55]Sock 7.Close socket [11:49:55]Sock 7.Thread stoped [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:09]accept exits with 9 [11:50:09]New connection [11:50:09]New thread 3067239780 created [11:50:09]Thread 3067383140 joined [11:50:09]Waiting for new connection... [11:50:09] Sock 9.Parse request [11:50:09]Sock 9.Check first char [11:50:09]Sock 9.First char is OK [11:50:09]request: POST /json_proto HTTP/1.0 [11:50:09]Method: POST [11:50:09]URL: /json_proto [11:50:09]Method is POST - this is cgi request [11:50:09]url: /json_proto [11:50:09]query_string will be loaded in cgi processing [11:50:09]execute_cgi json_proto POST (null) [11:50:09]execute_cgi path=json_proto method=POST [11:50:09]POST find Content-Length [11:50:09]Host: 172.17.45.7:8080 [11:50:09]Content-Length: 677 [11:50:09]Content-Type: application/json [11:50:09] [11:50:09]POST finish read [11:50:09]Found Content-Length = 677 [11:50:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:09]execute_script... [11:50:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:09]POST & json_proto [11:50:09]process_json_proto [11:50:09]json parsed OK: [11:50:09]protocol is kg_v1.0 [11:50:09]action value=close_receipt [11:50:09]process_action close_receipt [11:50:09]cmd_close_receipt [11:50:09]MH_GetDate [11:50:09]Write to MH i2c: F0 00 00 FB 4D 37 [11:50:09]Write i2c OK [11:50:09]MH_I2C_Read... [11:50:09]Read from MH i2c: F0 [11:50:09]MH_I2C_Read... [11:50:09]Read from MH i2c: F0 09 00 [11:50:09]MH_I2C_Read... [11:50:09]Read from MH i2c: F0 09 00 FB 4D 00 F7 81 A7 66 90 0F 3E 66 08 [11:50:09]GetLastDocTimeStamp 1722253797 [11:50:09]current date 1722253815 [11:50:09]FM_GetShiftState [11:50:09]SAM_PROTO_GetShiftState [11:50:09]wFMCommunicate request_size=4 [11:50:09]MH_SAM_APDU [11:50:09]CAPDU: 80 13 01 00 [11:50:09]Write to MH i2c: E2 08 00 FC 4D 80 13 01 00 00 00 00 00 C6 [11:50:09]Write i2c OK [11:50:09]MH_I2C_Read... [11:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:09]Read from MH i2c: E2 [11:50:09]MH_I2C_Read... [11:50:09]Read from MH i2c: E2 0E 00 [11:50:09]MH_I2C_Read... [11:50:09]Read from MH i2c: E2 0E 00 FC 4D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F4 [11:50:09]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:50:09]wFMCommunicate OK [11:50:09]SAM_PROTO_GetShiftState done [11:50:09]FM_GetShiftState done [11:50:09]opened in 1722211641 [11:50:09]opened+sec_in_day 1722298041 [11:50:09]quantity*price = 40002 [11:50:09]sum+1 = 40003 [11:50:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 127 29.07.2024 11:50 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118751 ФПД: 119264372703181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T115015&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118751&fm=119264372703181&tin=02508201610067®Number=0000000000092660&sum=40000 [11:50:11]StoreToDocumentArchive [11:50:11]shift 434 fd 118751 [11:50:11]save to /storage/0434/doc_00118751 [11:50:11]save last doc name /storage/0434/doc_00118751 to /storage/kkm_last_doc_name [11:50:11]save OK [11:50:11]Clear old archive folders... [11:50:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:11]tlvbuf is 01F74600 [11:50:11]SAM_PROTO_ClearQueue [11:50:11]wFMCommunicate request_size=4 [11:50:11]MH_SAM_APDU [11:50:11]CAPDU: 80 09 00 00 [11:50:11]Write to MH i2c: E2 08 00 09 4E 80 09 00 00 00 00 00 00 C9 [11:50:11]Write i2c OK [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 [11:50:11]MH_I2C_Read... [11:50:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:11]Read from MH i2c: E2 03 00 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 03 00 09 4E 00 90 00 CB [11:50:11]RAPDU: 90 00 [11:50:11]wFMCommunicate OK [11:50:11]SAM_PROTO_ClearQueue done [11:50:11]KKMCreateOFDPacket [11:50:11]OFDProtocolAddRootSTLVToBuf [11:50:11]FM_MakeSignedData [11:50:11]FM_MakeSignedData [11:50:11]SAM_PROTO_SignData [11:50:11]wFMCommunicate request_size=4 [11:50:11]MH_SAM_APDU [11:50:11]CAPDU: 80 0D 01 02 [11:50:11]Write to MH i2c: E2 08 00 0A 4E 80 0D 01 02 00 00 00 00 D1 [11:50:11]Write i2c OK [11:50:11]MH_I2C_Read... [11:50:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:11]Read from MH i2c: E2 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 03 00 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 03 00 0A 4E 00 90 00 CC [11:50:11]RAPDU: 90 00 [11:50:11]wFMCommunicate OK [11:50:11]wFMCommunicate request_size=255 [11:50:11]MH_SAM_APDU [11:50:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 F7 81 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF CF 01 00 35 04 06 00 6C [11:50:11]Write to MH i2c: E2 02 01 0B 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 F7 81 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF CF 01 00 35 04 06 00 6C 00 00 0C [11:50:11]Write i2c OK [11:50:11]MH_I2C_Read... [11:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:11]Read from MH i2c: E2 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 03 00 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 03 00 0B 4E 00 90 00 CD [11:50:11]RAPDU: 90 00 [11:50:11]wFMCommunicate OK [11:50:11]wFMCommunicate request_size=10 [11:50:11]MH_SAM_APDU [11:50:11]CAPDU: 80 0D 02 02 05 78 66 91 BF CD [11:50:11]Write to MH i2c: E2 0D 00 0C 4E 80 0D 02 02 05 00 78 66 91 BF CD 00 00 D9 [11:50:11]Write i2c OK [11:50:11]MH_I2C_Read... [11:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:11]Read from MH i2c: E2 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 03 00 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 03 00 0C 4E 00 90 00 CE [11:50:11]RAPDU: 90 00 [11:50:11]wFMCommunicate OK [11:50:11]wFMCommunicate request_size=4 [11:50:11]MH_SAM_APDU [11:50:11]CAPDU: 80 0D 03 02 [11:50:11]Write to MH i2c: E2 08 00 0D 4E 80 0D 03 02 00 00 00 00 D6 [11:50:11]Write i2c OK [11:50:11]MH_I2C_Read... [11:50:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:11]Read from MH i2c: E2 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 0B 00 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 0B 00 0D 4E 00 03 18 39 A4 1A B4 3D 7F 90 00 59 [11:50:11]RAPDU: 03 18 39 A4 1A B4 3D 7F 90 00 [11:50:11]wFMCommunicate OK [11:50:11]SAM_PROTO_SignData done [11:50:11]FM_MakeSignedData done [11:50:11]CreateOFDProtocolMessage [11:50:11]wFMCommunicate request_size=4 [11:50:11]MH_SAM_APDU [11:50:11]CAPDU: 80 11 00 00 [11:50:11]Write to MH i2c: E2 08 00 0E 4E 80 11 00 00 00 00 00 00 D6 [11:50:11]Write i2c OK [11:50:11]MH_I2C_Read... [11:50:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:11]Read from MH i2c: E2 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 17 00 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 17 00 0E 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 31 [11:50:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:50:11]wFMCommunicate OK [11:50:11]CreateOFDProtocolMessage done [11:50:11]OFDSenderStorePacket 118751 [11:50:11]StoreOFDPacket docnum=118751 [11:50:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BC 88 07 01 24 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 F7 81 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF CF 01 00 35 04 06 00 6C 78 66 91 BF CD 03 18 39 A4 1A B4 3D 7F [11:50:11]CheckFolder [11:50:11]dirname=/storage/ofd_packets [11:50:11]CheckFolder done [11:50:11]ProducePacketName [11:50:11]name=ofd_packets/00118751 [11:50:11]NVStorageSaveData ofd_packets/00118751 [11:50:11]File name is /storage/ofd_packets/00118751 [11:50:11]Write 301 bytes [11:50:11]NVStorageSaveData done [11:50:11]OFDSenderStorePacket done [11:50:11]KKMCreateOFDPacket done [11:50:11]NVStorageSaveData kkm_last_timestamp [11:50:11]File name is /storage/kkm_last_timestamp [11:50:11]Write 4 bytes [11:50:11]NVStorageSaveData done [11:50:11]ExternCall_PrintAddStr [11:50:11]wPrintStart [11:50:11]Write to MH i2c: 01 00 00 0F 4E 5D [11:50:11]Write i2c OK [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: 01 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: 01 07 00 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: 01 07 00 0F 4E 00 00 00 00 00 FF 0F 72 [11:50:11]RasterBufferAndPrint [11:50:11]line Счет N : (1)949637 [11:50:11]line ИНН: 02508201610067 [11:50:11]line Контрольно-Кассовый Чек [11:50:11]line ПРОДАЖА [11:50:11]line ТРК (МРК, ГНК) : 31 [11:50:11]line Товар: 2710124130 [11:50:11]line Аи-92-К-4 [11:50:11]line 5.900 * 67.80 [11:50:11]line = 400.02 [11:50:11]line НДС 12% НСП 1% [11:50:11]line > о реализуемом товаре [11:50:11]line ОКРУГЛЕНИЕ: -0.02 [11:50:11]line ИТОГО: 400.00 [11:50:11]line Внесено: 400.00 [11:50:11]line СДАЧА: 0.00 [11:50:11]line НСП 1% : 3.54 [11:50:11]line НДС 12% : 42.48 [11:50:11]line Наличными: 400.00 [11:50:11]line Безнал.: 0.00 [11:50:11]line Место: АЗС № 134 "Партнер Нефть" [11:50:11]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:50:11]line СНО: Общий режим [11:50:11]line Чек 127 29.07.2024 11:50 [11:50:11]line Смена: 434 ФФД: 1.0 [11:50:11]line ЗНМ: 0300000044 [11:50:11]line РНМ: 0000000000092660 [11:50:11]line Версия ККМ: 001 [11:50:11]line ФМ: 0000000000874939 [11:50:11]line ФД: 118751 [11:50:11]line ФПД: 119264372703181 [11:50:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T115015&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118751&fm=119264372703181&tin=02508201610067®Number=0000000000092660&sum=40000 [11:50:11]OFD Sender: Processing packet 118751 [packets to send 86, broken 85] [11:50:11]ProducePacketName [11:50:11]name=ofd_packets/00118751 [11:50:11]OFD Sender: To server: pG, [11:50:11]CommunicateWithHost lk.salyk.kg:30040 [11:50:11]ConnectInit lk.salyk.kg [11:50:11]written 0, free lines is 4095 [11:50:12]Connected sock=10 [11:50:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BC 88 07 01 24 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 F7 81 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF CF 01 00 35 04 06 00 6C 78 66 91 BF CD 03 18 39 A4 1A B4 3D 7F [11:50:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F0 D0 47 00 24 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 34 39 33 39 10 04 04 00 DF CF 01 00 F4 03 04 00 85 2F A7 66 B6 04 01 00 00 C3 87 0B 62 D5 9A E9 12 [11:50:12]CommunicateWithHost err = 0 [11:50:12]CheckOFDResponse [11:50:12]1017 (14) - 77093643461234 [11:50:12]1041 (16) - 0000000000874939 [11:50:12]1040 (4) - 118751 [11:50:12]1012 (4) - 29.07.2024 05:58 [11:50:12]1206 (1) - 0 [11:50:12]OFD Sender: Remove packet 118751 [11:50:12]ProducePacketName [11:50:12]name=ofd_packets/00118751 [11:50:12]NVStorageDeleteData [11:50:12]Write to MH i2c: 01 00 00 39 4E 87 [11:50:12]Write i2c OK [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: 01 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: 01 07 00 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: 01 07 00 39 4E 00 00 00 00 00 D5 0C 6F [11:50:12]RasterBufferAndPrint [11:50:12]line [11:50:12]line [11:50:12]line [11:50:12]line [11:50:12]line [11:50:12]written 0, free lines is 3292 [11:50:12]MH_Cut [11:50:12]Write to MH i2c: D1 01 00 40 4E 01 60 [11:50:12]Write i2c OK [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: D1 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: D1 01 00 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: D1 01 00 40 4E 00 5F [11:50:12]Write to MH i2c: 01 00 00 41 4E 8F [11:50:12]Write i2c OK [11:50:12]MH_I2C_Read... [11:50:12]OFD Sender: No OFD packet to send [11:50:13]*** Cut start [11:50:13]*** Partial cut [11:50:13]*** CUTSNS_PIN = 1 [11:50:13]*** CUTSNS_PIN = 0 [11:50:13]*** Brake cut motor [11:50:13]Read from MH i2c: 01 [11:50:13]MH_I2C_Read... [11:50:13]*** Stop cut motor [11:50:13]*** Cut end [11:50:13]Read from MH i2c: 01 07 00 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: 01 07 00 41 4E 00 00 00 00 00 FF 0F A4 [11:50:13]process_action close_receipt done [11:50:13]requested_data is exist [11:50:13]produce_requested_data [11:50:13]requested_item fm.sn is exist - process it [11:50:13]wFMCommunicate request_size=4 [11:50:13]MH_SAM_APDU [11:50:13]CAPDU: 80 11 00 00 [11:50:13]Write to MH i2c: E2 08 00 42 4E 80 11 00 00 00 00 00 00 0A [11:50:13]Write i2c OK [11:50:13]MH_I2C_Read... [11:50:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:13]Read from MH i2c: E2 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 17 00 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 17 00 42 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 65 [11:50:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:50:13]wFMCommunicate OK [11:50:13]requested_item fd.num is exist - process it [11:50:13]SAM_PROTO_GetFieldsCounters [11:50:13]wFMCommunicate request_size=4 [11:50:13]MH_SAM_APDU [11:50:13]CAPDU: 80 13 00 00 [11:50:13]Write to MH i2c: E2 08 00 43 4E 80 13 00 00 00 00 00 00 0D [11:50:13]Write i2c OK [11:50:13]MH_I2C_Read... [11:50:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:13]Read from MH i2c: E2 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 62 00 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 62 00 43 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DF CF 01 00 0E 04 04 00 B2 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 13 [11:50:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DF CF 01 00 0E 04 04 00 B2 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 [11:50:13]wFMCommunicate OK [11:50:13]SAM_PROTO_GetFieldsCounters done [11:50:13]requested_item shift.num is exist - process it [11:50:13]requested_item shift.opened is exist - process it [11:50:13]req_shift_opened [11:50:13]FM_GetShiftState [11:50:13]SAM_PROTO_GetShiftState [11:50:13]wFMCommunicate request_size=4 [11:50:13]MH_SAM_APDU [11:50:13]CAPDU: 80 13 01 00 [11:50:13]Write to MH i2c: E2 08 00 44 4E 80 13 01 00 00 00 00 00 0F [11:50:13]Write i2c OK [11:50:13]MH_I2C_Read... [11:50:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:13]Read from MH i2c: E2 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 0E 00 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 0E 00 44 4E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 3D [11:50:13]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:50:13]wFMCommunicate OK [11:50:13]SAM_PROTO_GetShiftState done [11:50:13]FM_GetShiftState done [11:50:13]req_shift_opened done [11:50:13]requested_item shift.open_date is exist - process it [11:50:13]req_shift_open_date [11:50:13]req_shift_open_date done [11:50:13]produce_requested_data done [11:50:13]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118751,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [11:50:13]process_action_free close_receipt [11:50:13]json_value_free [11:50:13]json_value_free done [11:50:13]process_json_proto returns [11:50:13]Send response to host [11:50:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118751,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [11:50:13]free response buf [11:50:13]execute_script done [11:50:13]execute_script returns [11:50:13]free content buf [11:50:13]Sock 9.Close socket [11:50:13]Sock 9.Thread stoped [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]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:48]accept exits with 7 [11:54:48]New connection [11:54:48]New thread 3067383140 created [11:54:48]Thread 3067239780 joined [11:54:48]Waiting for new connection... [11:54:48] Sock 7.Parse request [11:54:48]Sock 7.Check first char [11:54:48]Sock 7.First char is OK [11:54:48]request: POST /json_proto HTTP/1.0 [11:54:48]Method: POST [11:54:48]URL: /json_proto [11:54:48]Method is POST - this is cgi request [11:54:48]url: /json_proto [11:54:48]query_string will be loaded in cgi processing [11:54:48]execute_cgi json_proto POST (null) [11:54:48]execute_cgi path=json_proto method=POST [11:54:48]POST find Content-Length [11:54:48]Host: 172.17.45.7:8080 [11:54:48]Content-Length: 677 [11:54:48]Content-Type: application/json [11:54:48] [11:54:48]POST finish read [11:54:48]Found Content-Length = 677 [11:54:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:48]execute_script... [11:54: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)949638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:48]POST & json_proto [11:54:48]process_json_proto [11:54:48]json parsed OK: [11:54:48]protocol is kg_v1.0 [11:54:48]action value=close_receipt [11:54:48]process_action close_receipt [11:54:48]cmd_close_receipt [11:54:48]MH_GetDate [11:54:48]Write to MH i2c: F0 00 00 45 4E 82 [11:54:48]Write i2c OK [11:54:48]MH_I2C_Read... [11:54:48]Read from MH i2c: F0 [11:54:48]MH_I2C_Read... [11:54:48]Read from MH i2c: F0 09 00 [11:54:48]MH_I2C_Read... [11:54:48]Read from MH i2c: F0 09 00 45 4E 00 0E 83 A7 66 90 0F 3E 66 6C [11:54:48]GetLastDocTimeStamp 1722253815 [11:54:48]current date 1722254094 [11:54:48]FM_GetShiftState [11:54:48]SAM_PROTO_GetShiftState [11:54:48]wFMCommunicate request_size=4 [11:54:48]MH_SAM_APDU [11:54:48]CAPDU: 80 13 01 00 [11:54:48]Write to MH i2c: E2 08 00 46 4E 80 13 01 00 00 00 00 00 11 [11:54:48]Write i2c OK [11:54:48]MH_I2C_Read... [11:54:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:48]Read from MH i2c: E2 [11:54:48]MH_I2C_Read... [11:54:48]Read from MH i2c: E2 0E 00 [11:54:48]MH_I2C_Read... [11:54:48]Read from MH i2c: E2 0E 00 46 4E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 3F [11:54:48]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:54:48]wFMCommunicate OK [11:54:48]SAM_PROTO_GetShiftState done [11:54:48]FM_GetShiftState done [11:54:48]opened in 1722211641 [11:54:48]opened+sec_in_day 1722298041 [11:54:48]quantity*price = 70044 [11:54:48]sum+1 = 70046 [11:54:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 128 29.07.2024 11:54 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118752 ФПД: 65079337651575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T115454&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118752&fm=65079337651575&tin=02508201610067®Number=0000000000092660&sum=70000 [11:54:49]StoreToDocumentArchive [11:54:49]shift 434 fd 118752 [11:54:49]save to /storage/0434/doc_00118752 [11:54:49]save last doc name /storage/0434/doc_00118752 to /storage/kkm_last_doc_name [11:54:49]save OK [11:54:49]Clear old archive folders... [11:54:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:49]tlvbuf is 01F699C0 [11:54:49]SAM_PROTO_ClearQueue [11:54:49]wFMCommunicate request_size=4 [11:54:49]MH_SAM_APDU [11:54:49]CAPDU: 80 09 00 00 [11:54:49]Write to MH i2c: E2 08 00 53 4E 80 09 00 00 00 00 00 00 13 [11:54:49]Write i2c OK [11:54:49]MH_I2C_Read... [11:54:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:49]Read from MH i2c: E2 [11:54:49]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 03 00 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 03 00 53 4E 00 90 00 15 [11:54:50]RAPDU: 90 00 [11:54:50]wFMCommunicate OK [11:54:50]SAM_PROTO_ClearQueue done [11:54:50]KKMCreateOFDPacket [11:54:50]OFDProtocolAddRootSTLVToBuf [11:54:50]FM_MakeSignedData [11:54:50]FM_MakeSignedData [11:54:50]SAM_PROTO_SignData [11:54:50]wFMCommunicate request_size=4 [11:54:50]MH_SAM_APDU [11:54:50]CAPDU: 80 0D 01 02 [11:54:50]Write to MH i2c: E2 08 00 54 4E 80 0D 01 02 00 00 00 00 1B [11:54:50]Write i2c OK [11:54:50]MH_I2C_Read... [11:54:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:50]Read from MH i2c: E2 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 03 00 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 03 00 54 4E 00 90 00 16 [11:54:50]RAPDU: 90 00 [11:54:50]wFMCommunicate OK [11:54:50]wFMCommunicate request_size=255 [11:54:50]MH_SAM_APDU [11:54:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 0E 83 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 CF 01 00 35 04 06 00 3B [11:54:50]Write to MH i2c: E2 02 01 55 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 0E 83 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 CF 01 00 35 04 06 00 3B 00 00 51 [11:54:50]Write i2c OK [11:54:50]MH_I2C_Read... [11:54:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:50]Read from MH i2c: E2 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 03 00 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 03 00 55 4E 00 90 00 17 [11:54:50]RAPDU: 90 00 [11:54:50]wFMCommunicate OK [11:54:50]wFMCommunicate request_size=10 [11:54:50]MH_SAM_APDU [11:54:50]CAPDU: 80 0D 02 02 05 30 76 CD 8D 77 [11:54:50]Write to MH i2c: E2 0D 00 56 4E 80 0D 02 02 05 00 30 76 CD 8D 77 00 00 9F [11:54:50]Write i2c OK [11:54:50]MH_I2C_Read... [11:54:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:50]Read from MH i2c: E2 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 03 00 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 03 00 56 4E 00 90 00 18 [11:54:50]RAPDU: 90 00 [11:54:50]wFMCommunicate OK [11:54:50]wFMCommunicate request_size=4 [11:54:50]MH_SAM_APDU [11:54:50]CAPDU: 80 0D 03 02 [11:54:50]Write to MH i2c: E2 08 00 57 4E 80 0D 03 02 00 00 00 00 20 [11:54:50]Write i2c OK [11:54:50]MH_I2C_Read... [11:54:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:50]Read from MH i2c: E2 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 0B 00 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 0B 00 57 4E 00 6A F4 91 D2 0F 57 8A BC 90 00 8E [11:54:50]RAPDU: 6A F4 91 D2 0F 57 8A BC 90 00 [11:54:50]wFMCommunicate OK [11:54:50]SAM_PROTO_SignData done [11:54:50]FM_MakeSignedData done [11:54:50]CreateOFDProtocolMessage [11:54:50]wFMCommunicate request_size=4 [11:54:50]MH_SAM_APDU [11:54:50]CAPDU: 80 11 00 00 [11:54:50]Write to MH i2c: E2 08 00 58 4E 80 11 00 00 00 00 00 00 20 [11:54:50]Write i2c OK [11:54:50]MH_I2C_Read... [11:54:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:50]Read from MH i2c: E2 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 17 00 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: E2 17 00 58 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7B [11:54:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:54:50]wFMCommunicate OK [11:54:50]CreateOFDProtocolMessage done [11:54:50]OFDSenderStorePacket 118752 [11:54:50]StoreOFDPacket docnum=118752 [11:54:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 29 CA 07 01 67 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 0E 83 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 CF 01 00 35 04 06 00 3B 30 76 CD 8D 77 6A F4 91 D2 0F 57 8A BC [11:54:50]CheckFolder [11:54:50]dirname=/storage/ofd_packets [11:54:50]CheckFolder done [11:54:50]ProducePacketName [11:54:50]name=ofd_packets/00118752 [11:54:50]NVStorageSaveData ofd_packets/00118752 [11:54:50]File name is /storage/ofd_packets/00118752 [11:54:50]Write 301 bytes [11:54:50]NVStorageSaveData done [11:54:50]OFDSenderStorePacket done [11:54:50]KKMCreateOFDPacket done [11:54:50]NVStorageSaveData kkm_last_timestamp [11:54:50]File name is /storage/kkm_last_timestamp [11:54:50]Write 4 bytes [11:54:50]NVStorageSaveData done [11:54:50]ExternCall_PrintAddStr [11:54:50]wPrintStart [11:54:50]Write to MH i2c: 01 00 00 59 4E A7 [11:54:50]Write i2c OK [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: 01 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: 01 07 00 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: 01 07 00 59 4E 00 00 00 00 00 FF 0F BC [11:54:50]RasterBufferAndPrint [11:54:50]line Счет N : (1)949638 [11:54:50]line ИНН: 02508201610067 [11:54:50]line Контрольно-Кассовый Чек [11:54:50]line ПРОДАЖА [11:54:50]line ТРК (МРК, ГНК) : 43 [11:54:50]line Товар: 2710124500 [11:54:50]line Аи-95-К-3 [11:54:50]line 9.440 * 74.20 [11:54:50]line = 700.45 [11:54:50]line НДС 12% НСП 1% [11:54:50]line > о реализуемом товаре [11:54:50]line ОКРУГЛЕНИЕ: -0.45 [11:54:50]line ИТОГО: 700.00 [11:54:50]line Внесено: 700.00 [11:54:50]line СДАЧА: 0.00 [11:54:50]line НСП 1% : 6.20 [11:54:50]line НДС 12% : 74.38 [11:54:50]line Наличными: 700.00 [11:54:50]line Безнал.: 0.00 [11:54:50]line Место: АЗС № 134 "Партнер Нефть" [11:54:50]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:54:50]line СНО: Общий режим [11:54:50]line Чек 128 29.07.2024 11:54 [11:54:50]line Смена: 434 ФФД: 1.0 [11:54:50]line ЗНМ: 0300000044 [11:54:50]line РНМ: 0000000000092660 [11:54:50]line Версия ККМ: 001 [11:54:50]line ФМ: 0000000000874939 [11:54:50]line ФД: 118752 [11:54:50]line ФПД: 65079337651575 [11:54:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T115454&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118752&fm=65079337651575&tin=02508201610067®Number=0000000000092660&sum=70000 [11:54:50]OFD Sender: Processing packet 118752 [packets to send 86, broken 85] [11:54:50]ProducePacketName [11:54:50]name=ofd_packets/00118752 [11:54:50]OFD Sender: To server: pG, [11:54:50]CommunicateWithHost lk.salyk.kg:30040 [11:54:50]ConnectInit lk.salyk.kg [11:54:50]written 0, free lines is 4095 [11:54:50]Connected sock=10 [11:54:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 29 CA 07 01 67 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 0E 83 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 CF 01 00 35 04 06 00 3B 30 76 CD 8D 77 6A F4 91 D2 0F 57 8A BC [11:54:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B2 31 47 00 1A 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 34 39 33 39 10 04 04 00 E0 CF 01 00 F4 03 04 00 9C 30 A7 66 B6 04 01 00 00 2B A5 3A 2D A0 E6 FC 90 [11:54:51]CommunicateWithHost err = 0 [11:54:51]CheckOFDResponse [11:54:51]1017 (14) - 77093643461234 [11:54:51]1041 (16) - 0000000000874939 [11:54:51]1040 (4) - 118752 [11:54:51]1012 (4) - 29.07.2024 06:03 [11:54:51]1206 (1) - 0 [11:54:51]OFD Sender: Remove packet 118752 [11:54:51]ProducePacketName [11:54:51]name=ofd_packets/00118752 [11:54:51]NVStorageDeleteData [11:54:51]Write to MH i2c: 01 00 00 83 4E D1 [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: 01 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: 01 07 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: 01 07 00 83 4E 00 00 00 00 00 E2 0C C6 [11:54:51]RasterBufferAndPrint [11:54:51]line [11:54:51]line [11:54:51]line [11:54:51]line [11:54:51]line [11:54:51]written 0, free lines is 3304 [11:54:51]MH_Cut [11:54:51]Write to MH i2c: D1 01 00 8A 4E 01 AA [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: D1 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: D1 01 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: D1 01 00 8A 4E 00 A9 [11:54:51]Write to MH i2c: 01 00 00 8B 4E D9 [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]OFD Sender: No OFD packet to send [11:54:51]*** Cut start [11:54:51]*** Partial cut [11:54:51]*** CUTSNS_PIN = 1 [11:54:52]*** CUTSNS_PIN = 0 [11:54:52]*** Brake cut motor [11:54:52]Read from MH i2c: 01 [11:54:52]MH_I2C_Read... [11:54:52]*** Stop cut motor [11:54:52]*** Cut end [11:54:52]Read from MH i2c: 01 07 00 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: 01 07 00 8B 4E 00 00 00 00 00 FF 0F EE [11:54:52]process_action close_receipt done [11:54:52]requested_data is exist [11:54:52]produce_requested_data [11:54:52]requested_item fm.sn is exist - process it [11:54:52]wFMCommunicate request_size=4 [11:54:52]MH_SAM_APDU [11:54:52]CAPDU: 80 11 00 00 [11:54:52]Write to MH i2c: E2 08 00 8C 4E 80 11 00 00 00 00 00 00 54 [11:54:52]Write i2c OK [11:54:52]MH_I2C_Read... [11:54:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:52]Read from MH i2c: E2 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: E2 17 00 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: E2 17 00 8C 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AF [11:54:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:54:52]wFMCommunicate OK [11:54:52]requested_item fd.num is exist - process it [11:54:52]SAM_PROTO_GetFieldsCounters [11:54:52]wFMCommunicate request_size=4 [11:54:52]MH_SAM_APDU [11:54:52]CAPDU: 80 13 00 00 [11:54:52]Write to MH i2c: E2 08 00 8D 4E 80 13 00 00 00 00 00 00 57 [11:54:52]Write i2c OK [11:54:52]MH_I2C_Read... [11:54:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:52]Read from MH i2c: E2 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: E2 62 00 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: E2 62 00 8D 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E0 CF 01 00 0E 04 04 00 B2 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 61 [11:54: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E0 CF 01 00 0E 04 04 00 B2 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 [11:54:52]wFMCommunicate OK [11:54:52]SAM_PROTO_GetFieldsCounters done [11:54:52]requested_item shift.num is exist - process it [11:54:52]requested_item shift.opened is exist - process it [11:54:52]req_shift_opened [11:54:52]FM_GetShiftState [11:54:52]SAM_PROTO_GetShiftState [11:54:52]wFMCommunicate request_size=4 [11:54:52]MH_SAM_APDU [11:54:52]CAPDU: 80 13 01 00 [11:54:52]Write to MH i2c: E2 08 00 8E 4E 80 13 01 00 00 00 00 00 59 [11:54:52]Write i2c OK [11:54:52]MH_I2C_Read... [11:54:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:52]Read from MH i2c: E2 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: E2 0E 00 [11:54:52]MH_I2C_Read... [11:54:52]Read from MH i2c: E2 0E 00 8E 4E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 87 [11:54:52]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:54:52]wFMCommunicate OK [11:54:52]SAM_PROTO_GetShiftState done [11:54:52]FM_GetShiftState done [11:54:52]req_shift_opened done [11:54:52]requested_item shift.open_date is exist - process it [11:54:52]req_shift_open_date [11:54:52]req_shift_open_date done [11:54:52]produce_requested_data done [11:54:52]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118752,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [11:54:52]process_action_free close_receipt [11:54:52]json_value_free [11:54:52]json_value_free done [11:54:52]process_json_proto returns [11:54:52]Send response to host [11:54:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118752,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [11:54:52]free response buf [11:54:52]execute_script done [11:54:52]execute_script returns [11:54:52]free content buf [11:54:52]Sock 7.Close socket [11:54:52]Sock 7.Thread stoped [11:54:53]accept exits with 9 [11:54:53]New connection [11:54:53]New thread 3067239780 created [11:54:53]Thread 3067383140 joined [11:54:53]Waiting for new connection... [11:54:53] Sock 9.Parse request [11:54:53]Sock 9.Check first char [11:54:53]Sock 9.First char is OK [11:54:53]request: POST /json_proto HTTP/1.0 [11:54:53]Method: POST [11:54:53]URL: /json_proto [11:54:53]Method is POST - this is cgi request [11:54:53]url: /json_proto [11:54:53]query_string will be loaded in cgi processing [11:54:53]execute_cgi json_proto POST (null) [11:54:53]execute_cgi path=json_proto method=POST [11:54:53]POST find Content-Length [11:54:53]Host: 172.17.45.7:8080 [11:54:53]Content-Length: 677 [11:54:53]Content-Type: application/json [11:54:53] [11:54:53]POST finish read [11:54:53]Found Content-Length = 677 [11:54:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:53]execute_script... [11:54: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)949639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:53]POST & json_proto [11:54:53]process_json_proto [11:54:53]json parsed OK: [11:54:53]protocol is kg_v1.0 [11:54:53]action value=close_receipt [11:54:53]process_action close_receipt [11:54:53]cmd_close_receipt [11:54:53]MH_GetDate [11:54:53]Write to MH i2c: F0 00 00 8F 4E CC [11:54:53]Write i2c OK [11:54:53]MH_I2C_Read... [11:54:53]Read from MH i2c: F0 [11:54:53]MH_I2C_Read... [11:54:53]Read from MH i2c: F0 09 00 [11:54:53]MH_I2C_Read... [11:54:53]Read from MH i2c: F0 09 00 8F 4E 00 12 83 A7 66 90 0F 3E 66 BA [11:54:53]GetLastDocTimeStamp 1722254094 [11:54:53]current date 1722254098 [11:54:53]FM_GetShiftState [11:54:53]SAM_PROTO_GetShiftState [11:54:53]wFMCommunicate request_size=4 [11:54:53]MH_SAM_APDU [11:54:53]CAPDU: 80 13 01 00 [11:54:53]Write to MH i2c: E2 08 00 90 4E 80 13 01 00 00 00 00 00 5B [11:54:53]Write i2c OK [11:54:53]MH_I2C_Read... [11:54:53]Read from MH i2c: E2 [11:54:53]MH_I2C_Read... [11:54:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:53]Read from MH i2c: E2 0E 00 [11:54:53]MH_I2C_Read... [11:54:53]Read from MH i2c: E2 0E 00 90 4E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 89 [11:54:53]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:54:53]wFMCommunicate OK [11:54:53]SAM_PROTO_GetShiftState done [11:54:53]FM_GetShiftState done [11:54:53]opened in 1722211641 [11:54:53]opened+sec_in_day 1722298041 [11:54:53]quantity*price = 40002 [11:54:53]sum+1 = 40003 [11:54:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 129 29.07.2024 11:54 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118753 ФПД: 89893583158684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T115458&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118753&fm=89893583158684&tin=02508201610067®Number=0000000000092660&sum=40000 [11:54:54]StoreToDocumentArchive [11:54:54]shift 434 fd 118753 [11:54:54]save to /storage/0434/doc_00118753 [11:54:54]save last doc name /storage/0434/doc_00118753 to /storage/kkm_last_doc_name [11:54:54]save OK [11:54:54]Clear old archive folders... [11:54:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:54]tlvbuf is 01E7E3C0 [11:54:54]SAM_PROTO_ClearQueue [11:54:54]wFMCommunicate request_size=4 [11:54:54]MH_SAM_APDU [11:54:54]CAPDU: 80 09 00 00 [11:54:54]Write to MH i2c: E2 08 00 9D 4E 80 09 00 00 00 00 00 00 5D [11:54:54]Write i2c OK [11:54:54]MH_I2C_Read... [11:54:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:54]Read from MH i2c: E2 [11:54:54]MH_I2C_Read... [11:54:54]Read from MH i2c: E2 03 00 [11:54:54]MH_I2C_Read... [11:54:54]Read from MH i2c: E2 03 00 9D 4E 00 90 00 5F [11:54:54]RAPDU: 90 00 [11:54:54]wFMCommunicate OK [11:54:54]SAM_PROTO_ClearQueue done [11:54:54]KKMCreateOFDPacket [11:54:54]OFDProtocolAddRootSTLVToBuf [11:54:54]FM_MakeSignedData [11:54:54]FM_MakeSignedData [11:54:54]SAM_PROTO_SignData [11:54:54]wFMCommunicate request_size=4 [11:54:54]MH_SAM_APDU [11:54:54]CAPDU: 80 0D 01 02 [11:54:54]Write to MH i2c: E2 08 00 9E 4E 80 0D 01 02 00 00 00 00 65 [11:54:54]Write i2c OK [11:54:54]MH_I2C_Read... [11:54:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:54]Read from MH i2c: E2 [11:54:54]MH_I2C_Read... [11:54:54]Read from MH i2c: E2 03 00 [11:54:54]MH_I2C_Read... [11:54:54]Read from MH i2c: E2 03 00 9E 4E 00 90 00 60 [11:54:54]RAPDU: 90 00 [11:54:54]wFMCommunicate OK [11:54:54]wFMCommunicate request_size=255 [11:54:54]MH_SAM_APDU [11:54: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 12 83 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 CF 01 00 35 04 06 00 51 [11:54:54]Write to MH i2c: E2 02 01 9F 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 12 83 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 CF 01 00 35 04 06 00 51 00 00 A6 [11:54:54]Write i2c OK [11:54:54]MH_I2C_Read... [11:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:55]Read from MH i2c: E2 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 03 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 03 00 9F 4E 00 90 00 61 [11:54:55]RAPDU: 90 00 [11:54:55]wFMCommunicate OK [11:54:55]wFMCommunicate request_size=10 [11:54:55]MH_SAM_APDU [11:54:55]CAPDU: 80 0D 02 02 05 C1 FB 17 7D 9C [11:54:55]Write to MH i2c: E2 0D 00 A0 4E 80 0D 02 02 05 00 C1 FB 17 7D 9C 00 00 5E [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:55]Read from MH i2c: E2 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 03 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 03 00 A0 4E 00 90 00 62 [11:54:55]RAPDU: 90 00 [11:54:55]wFMCommunicate OK [11:54:55]wFMCommunicate request_size=4 [11:54:55]MH_SAM_APDU [11:54:55]CAPDU: 80 0D 03 02 [11:54:55]Write to MH i2c: E2 08 00 A1 4E 80 0D 03 02 00 00 00 00 6A [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:55]Read from MH i2c: E2 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 0B 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 0B 00 A1 4E 00 F3 EF 10 F1 A2 CA 83 21 90 00 5E [11:54:55]RAPDU: F3 EF 10 F1 A2 CA 83 21 90 00 [11:54:55]wFMCommunicate OK [11:54:55]SAM_PROTO_SignData done [11:54:55]FM_MakeSignedData done [11:54:55]CreateOFDProtocolMessage [11:54:55]wFMCommunicate request_size=4 [11:54:55]MH_SAM_APDU [11:54:55]CAPDU: 80 11 00 00 [11:54:55]Write to MH i2c: E2 08 00 A2 4E 80 11 00 00 00 00 00 00 6A [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:55]Read from MH i2c: E2 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 17 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 17 00 A2 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C5 [11:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:54:55]wFMCommunicate OK [11:54:55]CreateOFDProtocolMessage done [11:54:55]OFDSenderStorePacket 118753 [11:54:55]StoreOFDPacket docnum=118753 [11:54:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3E 2D 07 01 35 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 12 83 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 CF 01 00 35 04 06 00 51 C1 FB 17 7D 9C F3 EF 10 F1 A2 CA 83 21 [11:54:55]CheckFolder [11:54:55]dirname=/storage/ofd_packets [11:54:55]CheckFolder done [11:54:55]ProducePacketName [11:54:55]name=ofd_packets/00118753 [11:54:55]NVStorageSaveData ofd_packets/00118753 [11:54:55]File name is /storage/ofd_packets/00118753 [11:54:55]Write 301 bytes [11:54:55]NVStorageSaveData done [11:54:55]OFDSenderStorePacket done [11:54:55]KKMCreateOFDPacket done [11:54:55]NVStorageSaveData kkm_last_timestamp [11:54:55]File name is /storage/kkm_last_timestamp [11:54:55]Write 4 bytes [11:54:55]NVStorageSaveData done [11:54:55]ExternCall_PrintAddStr [11:54:55]wPrintStart [11:54:55]Write to MH i2c: 01 00 00 A3 4E F1 [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: 01 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: 01 07 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: 01 07 00 A3 4E 00 00 00 00 00 FF 0F 06 [11:54:55]RasterBufferAndPrint [11:54:55]line Счет N : (1)949639 [11:54:55]line ИНН: 02508201610067 [11:54:55]line Контрольно-Кассовый Чек [11:54:55]line ПРОДАЖА [11:54:55]line ТРК (МРК, ГНК) : 51 [11:54:55]line Товар: 2710124130 [11:54:55]line Аи-92-К-4 [11:54:55]line 5.900 * 67.80 [11:54:55]line = 400.02 [11:54:55]line НДС 12% НСП 1% [11:54:55]line > о реализуемом товаре [11:54:55]line ОКРУГЛЕНИЕ: -0.02 [11:54:55]line ИТОГО: 400.00 [11:54:55]line Внесено: 400.00 [11:54:55]line СДАЧА: 0.00 [11:54:55]line НСП 1% : 3.54 [11:54:55]line НДС 12% : 42.48 [11:54:55]line Наличными: 400.00 [11:54:55]line Безнал.: 0.00 [11:54:55]line Место: АЗС № 134 "Партнер Нефть" [11:54:55]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:54:55]line СНО: Общий режим [11:54:55]line Чек 129 29.07.2024 11:54 [11:54:55]line Смена: 434 ФФД: 1.0 [11:54:55]line ЗНМ: 0300000044 [11:54:55]line РНМ: 0000000000092660 [11:54:55]line Версия ККМ: 001 [11:54:55]line ФМ: 0000000000874939 [11:54:55]line ФД: 118753 [11:54:55]line ФПД: 89893583158684 [11:54:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T115458&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118753&fm=89893583158684&tin=02508201610067®Number=0000000000092660&sum=40000 [11:54:55]OFD Sender: Processing packet 118753 [packets to send 86, broken 85] [11:54:55]ProducePacketName [11:54:55]name=ofd_packets/00118753 [11:54:55]OFD Sender: To server: pG, [11:54:55]CommunicateWithHost lk.salyk.kg:30040 [11:54:55]ConnectInit lk.salyk.kg [11:54:55]written 0, free lines is 4095 [11:54:55]Connected sock=10 [11:54:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3E 2D 07 01 35 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 12 83 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 CF 01 00 35 04 06 00 51 C1 FB 17 7D 9C F3 EF 10 F1 A2 CA 83 21 [11:54:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 57 FA 47 00 17 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 34 39 33 39 10 04 04 00 E1 CF 01 00 F4 03 04 00 A0 30 A7 66 B6 04 01 00 00 92 48 64 31 87 8B 95 E5 [11:54:55]CommunicateWithHost err = 0 [11:54:55]CheckOFDResponse [11:54:55]1017 (14) - 77093643461234 [11:54:55]1041 (16) - 0000000000874939 [11:54:55]1040 (4) - 118753 [11:54:55]1012 (4) - 29.07.2024 06:03 [11:54:55]1206 (1) - 0 [11:54:55]OFD Sender: Remove packet 118753 [11:54:55]ProducePacketName [11:54:55]name=ofd_packets/00118753 [11:54:55]NVStorageDeleteData [11:54:55]Write to MH i2c: 01 00 00 CD 4E 1B [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: 01 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: 01 07 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: 01 07 00 CD 4E 00 00 00 00 00 E4 0C 12 [11:54:55]RasterBufferAndPrint [11:54:55]line [11:54:55]line [11:54:55]line [11:54:55]line [11:54:55]line [11:54:55]written 0, free lines is 3309 [11:54:55]MH_Cut [11:54:55]Write to MH i2c: D1 01 00 D4 4E 01 F4 [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: D1 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: D1 01 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: D1 01 00 D4 4E 00 F3 [11:54:55]Write to MH i2c: 01 00 00 D5 4E 23 [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:56]OFD Sender: No OFD packet to send [11:54:56]*** Cut start [11:54:56]*** Partial cut [11:54:56]*** CUTSNS_PIN = 1 [11:54:56]*** CUTSNS_PIN = 0 [11:54:56]*** Brake cut motor [11:54:57]Read from MH i2c: 01 [11:54:57]MH_I2C_Read... [11:54:57]*** Stop cut motor [11:54:57]*** Cut end [11:54:57]Read from MH i2c: 01 07 00 [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: 01 07 00 D5 4E 00 00 00 00 00 FF 0F 38 [11:54:57]process_action close_receipt done [11:54:57]requested_data is exist [11:54:57]produce_requested_data [11:54:57]requested_item fm.sn is exist - process it [11:54:57]wFMCommunicate request_size=4 [11:54:57]MH_SAM_APDU [11:54:57]CAPDU: 80 11 00 00 [11:54:57]Write to MH i2c: E2 08 00 D6 4E 80 11 00 00 00 00 00 00 9E [11:54:57]Write i2c OK [11:54:57]MH_I2C_Read... [11:54:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:57]Read from MH i2c: E2 [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: E2 17 00 [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: E2 17 00 D6 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F9 [11:54:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:54:57]wFMCommunicate OK [11:54:57]requested_item fd.num is exist - process it [11:54:57]SAM_PROTO_GetFieldsCounters [11:54:57]wFMCommunicate request_size=4 [11:54:57]MH_SAM_APDU [11:54:57]CAPDU: 80 13 00 00 [11:54:57]Write to MH i2c: E2 08 00 D7 4E 80 13 00 00 00 00 00 00 A1 [11:54:57]Write i2c OK [11:54:57]MH_I2C_Read... [11:54:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:57]Read from MH i2c: E2 [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: E2 62 00 [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: E2 62 00 D7 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E1 CF 01 00 0E 04 04 00 B2 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 AF [11:54: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E1 CF 01 00 0E 04 04 00 B2 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 [11:54:57]wFMCommunicate OK [11:54:57]SAM_PROTO_GetFieldsCounters done [11:54:57]requested_item shift.num is exist - process it [11:54:57]requested_item shift.opened is exist - process it [11:54:57]req_shift_opened [11:54:57]FM_GetShiftState [11:54:57]SAM_PROTO_GetShiftState [11:54:57]wFMCommunicate request_size=4 [11:54:57]MH_SAM_APDU [11:54:57]CAPDU: 80 13 01 00 [11:54:57]Write to MH i2c: E2 08 00 D8 4E 80 13 01 00 00 00 00 00 A3 [11:54:57]Write i2c OK [11:54:57]MH_I2C_Read... [11:54:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:57]Read from MH i2c: E2 [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: E2 0E 00 [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: E2 0E 00 D8 4E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D1 [11:54:57]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:54:57]wFMCommunicate OK [11:54:57]SAM_PROTO_GetShiftState done [11:54:57]FM_GetShiftState done [11:54:57]req_shift_opened done [11:54:57]requested_item shift.open_date is exist - process it [11:54:57]req_shift_open_date [11:54:57]req_shift_open_date done [11:54:57]produce_requested_data done [11:54:57]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118753,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [11:54:57]process_action_free close_receipt [11:54:57]json_value_free [11:54:57]json_value_free done [11:54:57]process_json_proto returns [11:54:57]Send response to host [11:54:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118753,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [11:54:57]free response buf [11:54:57]execute_script done [11:54:57]execute_script returns [11:54:57]free content buf [11:54:57]Sock 9.Close socket [11:54:57]Sock 9.Thread stoped [11:55:01]OFD Sender: No OFD packet to send [11:55:06]OFD Sender: No OFD packet to send [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:56:11]OFD Sender: No OFD packet to send [11:56:16]OFD Sender: No OFD packet to send [11:56:21]OFD Sender: No OFD packet to send [11:56:26]OFD Sender: No OFD packet to send [11:56:31]OFD Sender: No OFD packet to send [11:56:36]OFD Sender: No OFD packet to send [11:56:41]OFD Sender: No OFD packet to send [11:56:46]OFD Sender: No OFD packet to send [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:11]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:31]OFD Sender: No OFD packet to send [11:57:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:41]accept exits with 7 [11:57:41]New connection [11:57:41]New thread 3067383140 created [11:57:41]Thread 3067239780 joined [11:57:41]Waiting for new connection... [11:57:41] Sock 7.Parse request [11:57:41]Sock 7.Check first char [11:57:41]Sock 7.First char is OK [11:57:41]request: POST /json_proto HTTP/1.0 [11:57:41]Method: POST [11:57:41]URL: /json_proto [11:57:41]Method is POST - this is cgi request [11:57:41]url: /json_proto [11:57:41]query_string will be loaded in cgi processing [11:57:41]execute_cgi json_proto POST (null) [11:57:41]execute_cgi path=json_proto method=POST [11:57:41]POST find Content-Length [11:57:41]Host: 172.17.45.7:8080 [11:57:41]Content-Length: 677 [11:57:41]Content-Type: application/json [11:57:41] [11:57:41]POST finish read [11:57:41]Found Content-Length = 677 [11:57:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:41]execute_script... [11:57:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:41]POST & json_proto [11:57:41]process_json_proto [11:57:41]json parsed OK: [11:57:41]protocol is kg_v1.0 [11:57:41]action value=close_receipt [11:57:41]process_action close_receipt [11:57:41]cmd_close_receipt [11:57:41]MH_GetDate [11:57:41]Write to MH i2c: F0 00 00 D9 4E 16 [11:57:41]Write i2c OK [11:57:41]MH_I2C_Read... [11:57:41]Read from MH i2c: F0 [11:57:41]MH_I2C_Read... [11:57:41]Read from MH i2c: F0 09 00 [11:57:41]MH_I2C_Read... [11:57:41]Read from MH i2c: F0 09 00 D9 4E 00 BB 83 A7 66 90 0F 3E 66 AD [11:57:41]GetLastDocTimeStamp 1722254098 [11:57:41]current date 1722254267 [11:57:41]FM_GetShiftState [11:57:41]SAM_PROTO_GetShiftState [11:57:41]wFMCommunicate request_size=4 [11:57:41]MH_SAM_APDU [11:57:41]CAPDU: 80 13 01 00 [11:57:41]Write to MH i2c: E2 08 00 DA 4E 80 13 01 00 00 00 00 00 A5 [11:57:41]Write i2c OK [11:57:41]MH_I2C_Read... [11:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:41]Read from MH i2c: E2 [11:57:41]MH_I2C_Read... [11:57:41]Read from MH i2c: E2 0E 00 [11:57:41]MH_I2C_Read... [11:57:41]Read from MH i2c: E2 0E 00 DA 4E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D3 [11:57:41]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:57:41]wFMCommunicate OK [11:57:41]SAM_PROTO_GetShiftState done [11:57:41]FM_GetShiftState done [11:57:41]opened in 1722211641 [11:57:41]opened+sec_in_day 1722298041 [11:57:41]quantity*price = 25018 [11:57:41]sum+1 = 25019 [11:57:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 130 29.07.2024 11:57 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118754 ФПД: 51513440611363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T115747&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118754&fm=51513440611363&tin=02508201610067®Number=0000000000092660&sum=25000 [11:57:42]StoreToDocumentArchive [11:57:42]shift 434 fd 118754 [11:57:42]save to /storage/0434/doc_00118754 [11:57:42]save last doc name /storage/0434/doc_00118754 to /storage/kkm_last_doc_name [11:57:42]save OK [11:57:42]Clear old archive folders... [11:57:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:42]tlvbuf is 01EBDE90 [11:57:42]SAM_PROTO_ClearQueue [11:57:42]wFMCommunicate request_size=4 [11:57:42]MH_SAM_APDU [11:57:42]CAPDU: 80 09 00 00 [11:57:42]Write to MH i2c: E2 08 00 E7 4E 80 09 00 00 00 00 00 00 A7 [11:57:42]Write i2c OK [11:57:42]MH_I2C_Read... [11:57:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:42]Read from MH i2c: E2 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 03 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 03 00 E7 4E 00 90 00 A9 [11:57:42]RAPDU: 90 00 [11:57:42]wFMCommunicate OK [11:57:42]SAM_PROTO_ClearQueue done [11:57:42]KKMCreateOFDPacket [11:57:42]OFDProtocolAddRootSTLVToBuf [11:57:42]FM_MakeSignedData [11:57:42]FM_MakeSignedData [11:57:42]SAM_PROTO_SignData [11:57:42]wFMCommunicate request_size=4 [11:57:42]MH_SAM_APDU [11:57:42]CAPDU: 80 0D 01 02 [11:57:42]Write to MH i2c: E2 08 00 E8 4E 80 0D 01 02 00 00 00 00 AF [11:57:42]Write i2c OK [11:57:42]MH_I2C_Read... [11:57:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:42]Read from MH i2c: E2 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 03 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 03 00 E8 4E 00 90 00 AA [11:57:42]RAPDU: 90 00 [11:57:42]wFMCommunicate OK [11:57:42]wFMCommunicate request_size=255 [11:57:42]MH_SAM_APDU [11:57:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 BB 83 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 CF 01 00 35 04 06 00 2E [11:57:42]Write to MH i2c: E2 02 01 E9 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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 BB 83 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 CF 01 00 35 04 06 00 2E 00 00 A1 [11:57:42]Write i2c OK [11:57:42]MH_I2C_Read... [11:57:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:43]Read from MH i2c: E2 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: E2 03 00 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: E2 03 00 E9 4E 00 90 00 AB [11:57:43]RAPDU: 90 00 [11:57:43]wFMCommunicate OK [11:57:43]wFMCommunicate request_size=10 [11:57:43]MH_SAM_APDU [11:57:43]CAPDU: 80 0D 02 02 05 D9 E8 54 2C 23 [11:57:43]Write to MH i2c: E2 0D 00 EA 4E 80 0D 02 02 05 00 D9 E8 54 2C 23 00 00 20 [11:57:43]Write i2c OK [11:57:43]MH_I2C_Read... [11:57:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:43]Read from MH i2c: E2 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: E2 03 00 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: E2 03 00 EA 4E 00 90 00 AC [11:57:43]RAPDU: 90 00 [11:57:43]wFMCommunicate OK [11:57:43]wFMCommunicate request_size=4 [11:57:43]MH_SAM_APDU [11:57:43]CAPDU: 80 0D 03 02 [11:57:43]Write to MH i2c: E2 08 00 EB 4E 80 0D 03 02 00 00 00 00 B4 [11:57:43]Write i2c OK [11:57:43]MH_I2C_Read... [11:57:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:43]Read from MH i2c: E2 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: E2 0B 00 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: E2 0B 00 EB 4E 00 24 4B 39 AF A0 BB D5 14 90 00 50 [11:57:43]RAPDU: 24 4B 39 AF A0 BB D5 14 90 00 [11:57:43]wFMCommunicate OK [11:57:43]SAM_PROTO_SignData done [11:57:43]FM_MakeSignedData done [11:57:43]CreateOFDProtocolMessage [11:57:43]wFMCommunicate request_size=4 [11:57:43]MH_SAM_APDU [11:57:43]CAPDU: 80 11 00 00 [11:57:43]Write to MH i2c: E2 08 00 EC 4E 80 11 00 00 00 00 00 00 B4 [11:57:43]Write i2c OK [11:57:43]MH_I2C_Read... [11:57:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:43]Read from MH i2c: E2 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: E2 17 00 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: E2 17 00 EC 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0F [11:57:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:57:43]wFMCommunicate OK [11:57:43]CreateOFDProtocolMessage done [11:57:43]OFDSenderStorePacket 118754 [11:57:43]StoreOFDPacket docnum=118754 [11:57:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E7 38 07 01 53 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 BB 83 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 CF 01 00 35 04 06 00 2E D9 E8 54 2C 23 24 4B 39 AF A0 BB D5 14 [11:57:43]CheckFolder [11:57:43]dirname=/storage/ofd_packets [11:57:43]CheckFolder done [11:57:43]ProducePacketName [11:57:43]name=ofd_packets/00118754 [11:57:43]NVStorageSaveData ofd_packets/00118754 [11:57:43]File name is /storage/ofd_packets/00118754 [11:57:43]Write 301 bytes [11:57:43]NVStorageSaveData done [11:57:43]OFDSenderStorePacket done [11:57:43]KKMCreateOFDPacket done [11:57:43]NVStorageSaveData kkm_last_timestamp [11:57:43]File name is /storage/kkm_last_timestamp [11:57:43]Write 4 bytes [11:57:43]NVStorageSaveData done [11:57:43]ExternCall_PrintAddStr [11:57:43]wPrintStart [11:57:43]Write to MH i2c: 01 00 00 ED 4E 3B [11:57:43]Write i2c OK [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: 01 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: 01 07 00 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: 01 07 00 ED 4E 00 00 00 00 00 FF 0F 50 [11:57:43]RasterBufferAndPrint [11:57:43]line Счет N : (1)949641 [11:57:43]line ИНН: 02508201610067 [11:57:43]line Контрольно-Кассовый Чек [11:57:43]line ПРОДАЖА [11:57:43]line ТРК (МРК, ГНК) : 61 [11:57:43]line Товар: 2710124130 [11:57:43]line Аи-92-К-4 [11:57:43]line 3.690 * 67.80 [11:57:43]line = 250.18 [11:57:43]line НДС 12% НСП 1% [11:57:43]line > о реализуемом товаре [11:57:43]line ОКРУГЛЕНИЕ: -0.18 [11:57:43]line ИТОГО: 250.00 [11:57:43]line Внесено: 250.00 [11:57:43]line СДАЧА: 0.00 [11:57:43]line НСП 1% : 2.21 [11:57:43]line НДС 12% : 26.57 [11:57:43]line Наличными: 250.00 [11:57:43]line Безнал.: 0.00 [11:57:43]line Место: АЗС № 134 "Партнер Нефть" [11:57:43]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:57:43]line СНО: Общий режим [11:57:43]line Чек 130 29.07.2024 11:57 [11:57:43]line Смена: 434 ФФД: 1.0 [11:57:43]line ЗНМ: 0300000044 [11:57:43]line РНМ: 0000000000092660 [11:57:43]line Версия ККМ: 001 [11:57:43]line ФМ: 0000000000874939 [11:57:43]line ФД: 118754 [11:57:43]line ФПД: 51513440611363 [11:57:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T115747&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118754&fm=51513440611363&tin=02508201610067®Number=0000000000092660&sum=25000 [11:57:43]written 0, free lines is 4095 [11:57:43]OFD Sender: Processing packet 118754 [packets to send 86, broken 85] [11:57:43]ProducePacketName [11:57:43]name=ofd_packets/00118754 [11:57:43]OFD Sender: To server: pG, [11:57:43]CommunicateWithHost lk.salyk.kg:30040 [11:57:43]ConnectInit lk.salyk.kg [11:57:43]Connected sock=10 [11:57:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E7 38 07 01 53 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 BB 83 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 CF 01 00 35 04 06 00 2E D9 E8 54 2C 23 24 4B 39 AF A0 BB D5 14 [11:57:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8B B5 47 00 33 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 34 39 33 39 10 04 04 00 E2 CF 01 00 F4 03 04 00 48 31 A7 66 B6 04 01 00 00 04 09 A0 8F 59 27 F0 8E [11:57:43]CommunicateWithHost err = 0 [11:57:43]CheckOFDResponse [11:57:43]1017 (14) - 77093643461234 [11:57:43]1041 (16) - 0000000000874939 [11:57:43]1040 (4) - 118754 [11:57:43]1012 (4) - 29.07.2024 06:06 [11:57:43]1206 (1) - 0 [11:57:43]OFD Sender: Remove packet 118754 [11:57:43]ProducePacketName [11:57:43]name=ofd_packets/00118754 [11:57:43]NVStorageDeleteData [11:57:43]Write to MH i2c: 01 00 00 17 4F 66 [11:57:43]Write i2c OK [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: 01 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: 01 07 00 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: 01 07 00 17 4F 00 00 00 00 00 EB 0C 64 [11:57:43]RasterBufferAndPrint [11:57:43]line [11:57:43]line [11:57:43]line [11:57:43]line [11:57:43]line [11:57:43]written 0, free lines is 3317 [11:57:43]MH_Cut [11:57:43]Write to MH i2c: D1 01 00 1E 4F 01 3F [11:57:43]Write i2c OK [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: D1 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: D1 01 00 [11:57:43]MH_I2C_Read... [11:57:43]Read from MH i2c: D1 01 00 1E 4F 00 3E [11:57:43]Write to MH i2c: 01 00 00 1F 4F 6E [11:57:43]Write i2c OK [11:57:43]MH_I2C_Read... [11:57:44]OFD Sender: No OFD packet to send [11:57:44]*** Cut start [11:57:44]*** Partial cut [11:57:44]*** CUTSNS_PIN = 1 [11:57:44]*** CUTSNS_PIN = 0 [11:57:44]*** Brake cut motor [11:57:45]Read from MH i2c: 01 [11:57:45]MH_I2C_Read... [11:57:45]*** Stop cut motor [11:57:45]*** Cut end [11:57:45]Read from MH i2c: 01 07 00 [11:57:45]MH_I2C_Read... [11:57:45]Read from MH i2c: 01 07 00 1F 4F 00 00 00 00 00 FF 0F 83 [11:57:45]process_action close_receipt done [11:57:45]requested_data is exist [11:57:45]produce_requested_data [11:57:45]requested_item fm.sn is exist - process it [11:57:45]wFMCommunicate request_size=4 [11:57:45]MH_SAM_APDU [11:57:45]CAPDU: 80 11 00 00 [11:57:45]Write to MH i2c: E2 08 00 20 4F 80 11 00 00 00 00 00 00 E9 [11:57:45]Write i2c OK [11:57:45]MH_I2C_Read... [11:57:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:45]Read from MH i2c: E2 [11:57:45]MH_I2C_Read... [11:57:45]Read from MH i2c: E2 17 00 [11:57:45]MH_I2C_Read... [11:57:45]Read from MH i2c: E2 17 00 20 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 44 [11:57:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:57:45]wFMCommunicate OK [11:57:45]requested_item fd.num is exist - process it [11:57:45]SAM_PROTO_GetFieldsCounters [11:57:45]wFMCommunicate request_size=4 [11:57:45]MH_SAM_APDU [11:57:45]CAPDU: 80 13 00 00 [11:57:45]Write to MH i2c: E2 08 00 21 4F 80 13 00 00 00 00 00 00 EC [11:57:45]Write i2c OK [11:57:45]MH_I2C_Read... [11:57:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:45]Read from MH i2c: E2 [11:57:45]MH_I2C_Read... [11:57:45]Read from MH i2c: E2 62 00 [11:57:45]MH_I2C_Read... [11:57:45]Read from MH i2c: E2 62 00 21 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E2 CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [11:57: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E2 CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:45]wFMCommunicate OK [11:57:45]SAM_PROTO_GetFieldsCounters done [11:57:45]requested_item shift.num is exist - process it [11:57:45]requested_item shift.opened is exist - process it [11:57:45]req_shift_opened [11:57:45]FM_GetShiftState [11:57:45]SAM_PROTO_GetShiftState [11:57:45]wFMCommunicate request_size=4 [11:57:45]MH_SAM_APDU [11:57:45]CAPDU: 80 13 01 00 [11:57:45]Write to MH i2c: E2 08 00 22 4F 80 13 01 00 00 00 00 00 EE [11:57:45]Write i2c OK [11:57:45]MH_I2C_Read... [11:57:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:45]Read from MH i2c: E2 [11:57:45]MH_I2C_Read... [11:57:45]Read from MH i2c: E2 0E 00 [11:57:45]MH_I2C_Read... [11:57:45]Read from MH i2c: E2 0E 00 22 4F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 1C [11:57:45]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:57:45]wFMCommunicate OK [11:57:45]SAM_PROTO_GetShiftState done [11:57:45]FM_GetShiftState done [11:57:45]req_shift_opened done [11:57:45]requested_item shift.open_date is exist - process it [11:57:45]req_shift_open_date [11:57:45]req_shift_open_date done [11:57:45]produce_requested_data done [11:57:45]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118754,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [11:57:45]process_action_free close_receipt [11:57:45]json_value_free [11:57:45]json_value_free done [11:57:45]process_json_proto returns [11:57:45]Send response to host [11:57:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118754,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [11:57:45]free response buf [11:57:45]execute_script done [11:57:45]execute_script returns [11:57:45]free content buf [11:57:45]Sock 7.Close socket [11:57:45]Sock 7.Thread stoped [11:57:49]OFD Sender: No OFD packet to send [11:57:54]OFD Sender: No OFD packet to send [11:57:59]OFD Sender: No OFD packet to send [11:58:02]accept exits with 9 [11:58:02]New connection [11:58:02]New thread 3067239780 created [11:58:02]Thread 3067383140 joined [11:58:02]Waiting for new connection... [11:58:02] Sock 9.Parse request [11:58:02]Sock 9.Check first char [11:58:02]Sock 9.First char is OK [11:58:02]request: POST /json_proto HTTP/1.0 [11:58:02]Method: POST [11:58:02]URL: /json_proto [11:58:02]Method is POST - this is cgi request [11:58:02]url: /json_proto [11:58:02]query_string will be loaded in cgi processing [11:58:02]execute_cgi json_proto POST (null) [11:58:02]execute_cgi path=json_proto method=POST [11:58:02]POST find Content-Length [11:58:02]Host: 172.17.45.7:8080 [11:58:02]Content-Length: 815 [11:58:02]Content-Type: application/json [11:58:02] [11:58:02]POST finish read [11:58:02]Found Content-Length = 815 [11:58:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:02]execute_script... [11:58: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)949640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:02]POST & json_proto [11:58:02]process_json_proto [11:58:02]json parsed OK: [11:58:02]protocol is kg_v1.0 [11:58:02]action value=close_receipt [11:58:02]process_action close_receipt [11:58:02]cmd_close_receipt [11:58:02]MH_GetDate [11:58:02]Write to MH i2c: F0 00 00 23 4F 61 [11:58:02]Write i2c OK [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: F0 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: F0 09 00 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: F0 09 00 23 4F 00 D0 83 A7 66 90 0F 3E 66 0D [11:58:02]GetLastDocTimeStamp 1722254267 [11:58:02]current date 1722254288 [11:58:02]FM_GetShiftState [11:58:02]SAM_PROTO_GetShiftState [11:58:02]wFMCommunicate request_size=4 [11:58:02]MH_SAM_APDU [11:58:02]CAPDU: 80 13 01 00 [11:58:02]Write to MH i2c: E2 08 00 24 4F 80 13 01 00 00 00 00 00 F0 [11:58:02]Write i2c OK [11:58:02]MH_I2C_Read... [11:58:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:02]Read from MH i2c: E2 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: E2 0E 00 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: E2 0E 00 24 4F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 1E [11:58:02]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:58:02]wFMCommunicate OK [11:58:02]SAM_PROTO_GetShiftState done [11:58:02]FM_GetShiftState done [11:58:02]opened in 1722211641 [11:58:02]opened+sec_in_day 1722298041 [11:58:02]quantity*price = 50063 [11:58:02]sum+1 = 50064 [11:58:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 131 29.07.2024 11:58 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118755 ФПД: 171469983238974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T115808&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118755&fm=171469983238974&tin=02508201610067®Number=0000000000092660&sum=50000 [11:58:03]StoreToDocumentArchive [11:58:03]shift 434 fd 118755 [11:58:03]save to /storage/0434/doc_00118755 [11:58:03]save last doc name /storage/0434/doc_00118755 to /storage/kkm_last_doc_name [11:58:03]save OK [11:58:03]Clear old archive folders... [11:58:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:58:03]tlvbuf is 01E97AA0 [11:58:03]SAM_PROTO_ClearQueue [11:58:03]wFMCommunicate request_size=4 [11:58:03]MH_SAM_APDU [11:58:03]CAPDU: 80 09 00 00 [11:58:03]Write to MH i2c: E2 08 00 31 4F 80 09 00 00 00 00 00 00 F2 [11:58:03]Write i2c OK [11:58:03]MH_I2C_Read... [11:58:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:04]Read from MH i2c: E2 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 03 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 03 00 31 4F 00 90 00 F4 [11:58:04]RAPDU: 90 00 [11:58:04]wFMCommunicate OK [11:58:04]SAM_PROTO_ClearQueue done [11:58:04]KKMCreateOFDPacket [11:58:04]OFDProtocolAddRootSTLVToBuf [11:58:04]FM_MakeSignedData [11:58:04]FM_MakeSignedData [11:58:04]SAM_PROTO_SignData [11:58:04]wFMCommunicate request_size=4 [11:58:04]MH_SAM_APDU [11:58:04]CAPDU: 80 0D 01 02 [11:58:04]Write to MH i2c: E2 08 00 32 4F 80 0D 01 02 00 00 00 00 FA [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:04]Read from MH i2c: E2 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 03 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 03 00 32 4F 00 90 00 F5 [11:58:04]RAPDU: 90 00 [11:58:04]wFMCommunicate OK [11:58:04]wFMCommunicate request_size=255 [11:58:04]MH_SAM_APDU [11:58:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 D0 83 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 CF 01 00 35 04 06 00 9B F3 77 70 [11:58:04]Write to MH i2c: E2 02 01 33 4F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 D0 83 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 CF 01 00 35 04 06 00 9B F3 77 70 00 00 D0 [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]OFD Sender: No OFD packet to send [11:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:04]Read from MH i2c: E2 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 03 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 03 00 33 4F 00 90 00 F6 [11:58:04]RAPDU: 90 00 [11:58:04]wFMCommunicate OK [11:58:04]wFMCommunicate request_size=7 [11:58:04]MH_SAM_APDU [11:58:04]CAPDU: 80 0D 02 02 02 CB 3E [11:58:04]Write to MH i2c: E2 0A 00 34 4F 80 0D 02 02 02 00 CB 3E 00 00 0A [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:04]Read from MH i2c: E2 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 03 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 03 00 34 4F 00 90 00 F7 [11:58:04]RAPDU: 90 00 [11:58:04]wFMCommunicate OK [11:58:04]wFMCommunicate request_size=4 [11:58:04]MH_SAM_APDU [11:58:04]CAPDU: 80 0D 03 02 [11:58:04]Write to MH i2c: E2 08 00 35 4F 80 0D 03 02 00 00 00 00 FF [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:04]Read from MH i2c: E2 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 0B 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 0B 00 35 4F 00 A6 88 FC EB 7C 87 9A 1F 90 00 D1 [11:58:04]RAPDU: A6 88 FC EB 7C 87 9A 1F 90 00 [11:58:04]wFMCommunicate OK [11:58:04]SAM_PROTO_SignData done [11:58:04]FM_MakeSignedData done [11:58:04]CreateOFDProtocolMessage [11:58:04]wFMCommunicate request_size=4 [11:58:04]MH_SAM_APDU [11:58:04]CAPDU: 80 11 00 00 [11:58:04]Write to MH i2c: E2 08 00 36 4F 80 11 00 00 00 00 00 00 FF [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:04]Read from MH i2c: E2 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 17 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 17 00 36 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5A [11:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:58:04]wFMCommunicate OK [11:58:04]CreateOFDProtocolMessage done [11:58:04]OFDSenderStorePacket 118755 [11:58:04]StoreOFDPacket docnum=118755 [11:58:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B7 BF 04 01 86 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 D0 83 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 CF 01 00 35 04 06 00 9B F3 77 70 CB 3E A6 88 FC EB 7C 87 9A 1F [11:58:04]CheckFolder [11:58:04]dirname=/storage/ofd_packets [11:58:04]CheckFolder done [11:58:04]ProducePacketName [11:58:04]name=ofd_packets/00118755 [11:58:04]NVStorageSaveData ofd_packets/00118755 [11:58:04]File name is /storage/ofd_packets/00118755 [11:58:04]Write 298 bytes [11:58:04]NVStorageSaveData done [11:58:04]OFDSenderStorePacket done [11:58:04]KKMCreateOFDPacket done [11:58:04]NVStorageSaveData kkm_last_timestamp [11:58:04]File name is /storage/kkm_last_timestamp [11:58:04]Write 4 bytes [11:58:04]NVStorageSaveData done [11:58:04]ExternCall_PrintAddStr [11:58:04]wPrintStart [11:58:04]Write to MH i2c: 01 00 00 37 4F 86 [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: 01 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: 01 07 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: 01 07 00 37 4F 00 00 00 00 00 FF 0F 9B [11:58:04]RasterBufferAndPrint [11:58:04]line Счет N : (1)949640 [11:58:04]line ИНН: 02508201610067 [11:58:04]line Контрольно-Кассовый Чек [11:58:04]line ПРОДАЖА [11:58:04]line ТРК (МРК, ГНК) : 34 [11:58:04]line Товар: 2710194800 [11:58:04]line ДТ-К-5 [11:58:04]line 6.570 * 76.20 [11:58:04]line = 500.63 [11:58:04]line НДС 12% НСП 1% [11:58:04]line > о реализуемом товаре [11:58:04]line ОКРУГЛЕНИЕ: -0.63 [11:58:04]line ИТОГО: 500.00 [11:58:04]line НСП 1% : 4.43 [11:58:04]line НДС 12% : 53.16 [11:58:04]line Наличными: 0.00 [11:58:04]line Безнал.: 500.00 [11:58:04]line Место: АЗС № 134 "Партнер Нефть" [11:58:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:58:04]line СНО: Общий режим [11:58:04]line Чек 131 29.07.2024 11:58 [11:58:04]line Смена: 434 ФФД: 1.0 [11:58:04]line ЗНМ: 0300000044 [11:58:04]line РНМ: 0000000000092660 [11:58:04]line Версия ККМ: 001 [11:58:04]line Платежная система: O! деньги [11:58:04]line ФМ: 0000000000874939 [11:58:04]line ФД: 118755 [11:58:04]line ФПД: 171469983238974 [11:58:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T115808&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118755&fm=171469983238974&tin=02508201610067®Number=0000000000092660&sum=50000 [11:58:04]OFD Sender: Processing packet 118755 [packets to send 86, broken 85] [11:58:04]ProducePacketName [11:58:04]name=ofd_packets/00118755 [11:58:04]OFD Sender: To server: pG, [11:58:04]CommunicateWithHost lk.salyk.kg:30040 [11:58:04]ConnectInit lk.salyk.kg [11:58:04]written 0, free lines is 4095 [11:58:04]Connected sock=10 [11:58:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B7 BF 04 01 86 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 D0 83 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 CF 01 00 35 04 06 00 9B F3 77 70 CB 3E A6 88 FC EB 7C 87 9A 1F [11:58:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 50 F2 47 00 2E 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 CF 01 00 F4 03 04 00 5E 31 A7 66 B6 04 01 00 00 4E 43 3F 23 71 96 23 31 [11:58:05]CommunicateWithHost err = 0 [11:58:05]CheckOFDResponse [11:58:05]1017 (14) - 77093643461234 [11:58:05]1041 (16) - 0000000000874939 [11:58:05]1040 (4) - 118755 [11:58:05]1012 (4) - 29.07.2024 06:06 [11:58:05]1206 (1) - 0 [11:58:05]OFD Sender: Remove packet 118755 [11:58:05]ProducePacketName [11:58:05]name=ofd_packets/00118755 [11:58:05]NVStorageDeleteData [11:58:05]Write to MH i2c: 01 00 00 61 4F B0 [11:58:05]Write i2c OK [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: 01 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: 01 07 00 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: 01 07 00 61 4F 00 00 00 00 00 E6 0C A9 [11:58:05]RasterBufferAndPrint [11:58:05]line [11:58:05]line [11:58:05]line [11:58:05]line [11:58:05]line [11:58:05]written 0, free lines is 3311 [11:58:05]MH_Cut [11:58:05]Write to MH i2c: D1 01 00 68 4F 01 89 [11:58:05]Write i2c OK [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: D1 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: D1 01 00 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: D1 01 00 68 4F 00 88 [11:58:05]Write to MH i2c: 01 00 00 69 4F B8 [11:58:05]Write i2c OK [11:58:05]MH_I2C_Read... [11:58:05]OFD Sender: No OFD packet to send [11:58:06]*** Cut start [11:58:06]*** Partial cut [11:58:06]*** CUTSNS_PIN = 1 [11:58:06]*** CUTSNS_PIN = 0 [11:58:06]*** Brake cut motor [11:58:06]Read from MH i2c: 01 [11:58:06]MH_I2C_Read... [11:58:06]*** Stop cut motor [11:58:06]*** Cut end [11:58:06]Read from MH i2c: 01 07 00 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: 01 07 00 69 4F 00 00 00 00 00 FF 0F CD [11:58:06]process_action close_receipt done [11:58:06]requested_data is exist [11:58:06]produce_requested_data [11:58:06]requested_item fm.sn is exist - process it [11:58:06]wFMCommunicate request_size=4 [11:58:06]MH_SAM_APDU [11:58:06]CAPDU: 80 11 00 00 [11:58:06]Write to MH i2c: E2 08 00 6A 4F 80 11 00 00 00 00 00 00 33 [11:58:06]Write i2c OK [11:58:06]MH_I2C_Read... [11:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:06]Read from MH i2c: E2 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 17 00 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 17 00 6A 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8E [11:58:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:58:06]wFMCommunicate OK [11:58:06]requested_item fd.num is exist - process it [11:58:06]SAM_PROTO_GetFieldsCounters [11:58:06]wFMCommunicate request_size=4 [11:58:06]MH_SAM_APDU [11:58:06]CAPDU: 80 13 00 00 [11:58:06]Write to MH i2c: E2 08 00 6B 4F 80 13 00 00 00 00 00 00 36 [11:58:06]Write i2c OK [11:58:06]MH_I2C_Read... [11:58:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:06]Read from MH i2c: E2 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 62 00 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 62 00 6B 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E3 CF 01 00 0E 04 04 00 B2 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 4C [11:58: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E3 CF 01 00 0E 04 04 00 B2 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 [11:58:06]wFMCommunicate OK [11:58:06]SAM_PROTO_GetFieldsCounters done [11:58:06]requested_item shift.num is exist - process it [11:58:06]requested_item shift.opened is exist - process it [11:58:06]req_shift_opened [11:58:06]FM_GetShiftState [11:58:06]SAM_PROTO_GetShiftState [11:58:06]wFMCommunicate request_size=4 [11:58:06]MH_SAM_APDU [11:58:06]CAPDU: 80 13 01 00 [11:58:06]Write to MH i2c: E2 08 00 6C 4F 80 13 01 00 00 00 00 00 38 [11:58:06]Write i2c OK [11:58:06]MH_I2C_Read... [11:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:06]Read from MH i2c: E2 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 0E 00 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 0E 00 6C 4F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 66 [11:58:06]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [11:58:06]wFMCommunicate OK [11:58:06]SAM_PROTO_GetShiftState done [11:58:06]FM_GetShiftState done [11:58:06]req_shift_opened done [11:58:06]requested_item shift.open_date is exist - process it [11:58:06]req_shift_open_date [11:58:06]req_shift_open_date done [11:58:06]produce_requested_data done [11:58:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118755,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [11:58:06]process_action_free close_receipt [11:58:06]json_value_free [11:58:06]json_value_free done [11:58:06]process_json_proto returns [11:58:06]Send response to host [11:58:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118755,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [11:58:06]free response buf [11:58:06]execute_script done [11:58:06]execute_script returns [11:58:06]free content buf [11:58:06]Sock 9.Close socket [11:58:06]Sock 9.Thread stoped [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:10]OFD Sender: No OFD packet to send [12:00:15]OFD Sender: No OFD packet to send [12:00:20]OFD Sender: No OFD packet to send [12:00:25]OFD Sender: No OFD packet to send [12:00:30]OFD Sender: No OFD packet to send [12:00:35]OFD Sender: No OFD packet to send [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:02]accept exits with 7 [12:01:02]New connection [12:01:02]New thread 3067383140 created [12:01:02]Thread 3067239780 joined [12:01:02]Waiting for new connection... [12:01:02] Sock 7.Parse request [12:01:02]Sock 7.Check first char [12:01:02]Sock 7.First char is OK [12:01:02]request: POST /json_proto HTTP/1.0 [12:01:02]Method: POST [12:01:02]URL: /json_proto [12:01:02]Method is POST - this is cgi request [12:01:02]url: /json_proto [12:01:02]query_string will be loaded in cgi processing [12:01:02]execute_cgi json_proto POST (null) [12:01:02]execute_cgi path=json_proto method=POST [12:01:02]POST find Content-Length [12:01:02]Host: 172.17.45.7:8080 [12:01:02]Content-Length: 816 [12:01:02]Content-Type: application/json [12:01:02] [12:01:02]POST finish read [12:01:02]Found Content-Length = 816 [12:01:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 12.470, "sum" : 950.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 950.00, "payments": [ { "type": 1, "sum" : 950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:02]execute_script... [12:01: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)949642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 12.470, "sum" : 950.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 950.00, "payments": [ { "type": 1, "sum" : 950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:02]POST & json_proto [12:01:02]process_json_proto [12:01:02]json parsed OK: [12:01:02]protocol is kg_v1.0 [12:01:02]action value=close_receipt [12:01:02]process_action close_receipt [12:01:02]cmd_close_receipt [12:01:02]MH_GetDate [12:01:02]Write to MH i2c: F0 00 00 6D 4F AB [12:01:02]Write i2c OK [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: F0 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: F0 09 00 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: F0 09 00 6D 4F 00 84 84 A7 66 90 0F 3E 66 0C [12:01:02]GetLastDocTimeStamp 1722254288 [12:01:02]current date 1722254468 [12:01:02]FM_GetShiftState [12:01:02]SAM_PROTO_GetShiftState [12:01:02]wFMCommunicate request_size=4 [12:01:02]MH_SAM_APDU [12:01:02]CAPDU: 80 13 01 00 [12:01:02]Write to MH i2c: E2 08 00 6E 4F 80 13 01 00 00 00 00 00 3A [12:01:02]Write i2c OK [12:01:02]MH_I2C_Read... [12:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:02]Read from MH i2c: E2 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: E2 0E 00 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: E2 0E 00 6E 4F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 68 [12:01:02]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:01:02]wFMCommunicate OK [12:01:02]SAM_PROTO_GetShiftState done [12:01:02]FM_GetShiftState done [12:01:02]opened in 1722211641 [12:01:02]opened+sec_in_day 1722298041 [12:01:02]quantity*price = 95021 [12:01:02]sum+1 = 95022 [12:01:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 950.00 НСП 1% : 8.41 НДС 12% : 100.91 Наличными: 0.00 Безнал.: 950.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 132 29.07.2024 12:01 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118756 ФПД: 181166575422395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T120108&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118756&fm=181166575422395&tin=02508201610067®Number=0000000000092660&sum=95000 [12:01:03]StoreToDocumentArchive [12:01:03]shift 434 fd 118756 [12:01:03]save to /storage/0434/doc_00118756 [12:01:03]save last doc name /storage/0434/doc_00118756 to /storage/kkm_last_doc_name [12:01:03]save OK [12:01:03]Clear old archive folders... [12:01:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:01:03]tlvbuf is 01E70470 [12:01:03]SAM_PROTO_ClearQueue [12:01:03]wFMCommunicate request_size=4 [12:01:03]MH_SAM_APDU [12:01:03]CAPDU: 80 09 00 00 [12:01:03]Write to MH i2c: E2 08 00 7B 4F 80 09 00 00 00 00 00 00 3C [12:01:03]Write i2c OK [12:01:03]MH_I2C_Read... [12:01:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:03]Read from MH i2c: E2 [12:01:03]MH_I2C_Read... [12:01:03]Read from MH i2c: E2 03 00 [12:01:03]MH_I2C_Read... [12:01:03]Read from MH i2c: E2 03 00 7B 4F 00 90 00 3E [12:01:03]RAPDU: 90 00 [12:01:03]wFMCommunicate OK [12:01:03]SAM_PROTO_ClearQueue done [12:01:03]KKMCreateOFDPacket [12:01:03]OFDProtocolAddRootSTLVToBuf [12:01:03]FM_MakeSignedData [12:01:03]FM_MakeSignedData [12:01:03]SAM_PROTO_SignData [12:01:03]wFMCommunicate request_size=4 [12:01:03]MH_SAM_APDU [12:01:03]CAPDU: 80 0D 01 02 [12:01:03]Write to MH i2c: E2 08 00 7C 4F 80 0D 01 02 00 00 00 00 44 [12:01:03]Write i2c OK [12:01:03]MH_I2C_Read... [12:01:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:04]Read from MH i2c: E2 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 03 00 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 03 00 7C 4F 00 90 00 3F [12:01:04]RAPDU: 90 00 [12:01:04]wFMCommunicate OK [12:01:04]wFMCommunicate request_size=255 [12:01:04]MH_SAM_APDU [12:01:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2D 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 73 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 84 84 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E4 CF 01 00 35 04 06 00 A4 C5 21 5F [12:01:04]Write to MH i2c: E2 02 01 7D 4F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2D 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 73 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 84 84 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E4 CF 01 00 35 04 06 00 A4 C5 21 5F 00 00 F3 [12:01:04]Write i2c OK [12:01:04]MH_I2C_Read... [12:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:04]Read from MH i2c: E2 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 03 00 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 03 00 7D 4F 00 90 00 40 [12:01:04]RAPDU: 90 00 [12:01:04]wFMCommunicate OK [12:01:04]wFMCommunicate request_size=7 [12:01:04]MH_SAM_APDU [12:01:04]CAPDU: 80 0D 02 02 02 8B BB [12:01:04]Write to MH i2c: E2 0A 00 7E 4F 80 0D 02 02 02 00 8B BB 00 00 91 [12:01:04]Write i2c OK [12:01:04]MH_I2C_Read... [12:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:04]Read from MH i2c: E2 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 03 00 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 03 00 7E 4F 00 90 00 41 [12:01:04]RAPDU: 90 00 [12:01:04]wFMCommunicate OK [12:01:04]wFMCommunicate request_size=4 [12:01:04]MH_SAM_APDU [12:01:04]CAPDU: 80 0D 03 02 [12:01:04]Write to MH i2c: E2 08 00 7F 4F 80 0D 03 02 00 00 00 00 49 [12:01:04]Write i2c OK [12:01:04]MH_I2C_Read... [12:01:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:04]Read from MH i2c: E2 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 0B 00 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 0B 00 7F 4F 00 0B E2 AB 8C A2 79 F8 6C 90 00 ED [12:01:04]RAPDU: 0B E2 AB 8C A2 79 F8 6C 90 00 [12:01:04]wFMCommunicate OK [12:01:04]SAM_PROTO_SignData done [12:01:04]FM_MakeSignedData done [12:01:04]CreateOFDProtocolMessage [12:01:04]wFMCommunicate request_size=4 [12:01:04]MH_SAM_APDU [12:01:04]CAPDU: 80 11 00 00 [12:01:04]Write to MH i2c: E2 08 00 80 4F 80 11 00 00 00 00 00 00 49 [12:01:04]Write i2c OK [12:01:04]MH_I2C_Read... [12:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:04]Read from MH i2c: E2 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 17 00 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 17 00 80 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A4 [12:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:01:04]wFMCommunicate OK [12:01:04]CreateOFDProtocolMessage done [12:01:04]OFDSenderStorePacket 118756 [12:01:04]StoreOFDPacket docnum=118756 [12:01:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EB 40 04 01 00 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2D 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 73 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 84 84 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E4 CF 01 00 35 04 06 00 A4 C5 21 5F 8B BB 0B E2 AB 8C A2 79 F8 6C [12:01:04]CheckFolder [12:01:04]dirname=/storage/ofd_packets [12:01:04]CheckFolder done [12:01:04]ProducePacketName [12:01:04]name=ofd_packets/00118756 [12:01:04]NVStorageSaveData ofd_packets/00118756 [12:01:04]File name is /storage/ofd_packets/00118756 [12:01:04]Write 298 bytes [12:01:04]NVStorageSaveData done [12:01:04]OFDSenderStorePacket done [12:01:04]KKMCreateOFDPacket done [12:01:04]NVStorageSaveData kkm_last_timestamp [12:01:04]File name is /storage/kkm_last_timestamp [12:01:04]Write 4 bytes [12:01:04]NVStorageSaveData done [12:01:04]ExternCall_PrintAddStr [12:01:04]wPrintStart [12:01:04]Write to MH i2c: 01 00 00 81 4F D0 [12:01:04]Write i2c OK [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: 01 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: 01 07 00 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: 01 07 00 81 4F 00 00 00 00 00 FF 0F E5 [12:01:04]RasterBufferAndPrint [12:01:04]line Счет N : (1)949642 [12:01:04]line ИНН: 02508201610067 [12:01:04]line Контрольно-Кассовый Чек [12:01:04]line ПРОДАЖА [12:01:04]line ТРК (МРК, ГНК) : 44 [12:01:04]line Товар: 2710194800 [12:01:04]line ДТ-К-5 [12:01:04]line 12.470 * 76.20 [12:01:04]line = 950.21 [12:01:04]line НДС 12% НСП 1% [12:01:04]line > о реализуемом товаре [12:01:04]line ОКРУГЛЕНИЕ: -0.21 [12:01:04]line ИТОГО: 950.00 [12:01:04]line НСП 1% : 8.41 [12:01:04]line НДС 12% : 100.91 [12:01:04]line Наличными: 0.00 [12:01:04]line Безнал.: 950.00 [12:01:04]line Место: АЗС № 134 "Партнер Нефть" [12:01:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:01:04]line СНО: Общий режим [12:01:04]line Чек 132 29.07.2024 12:01 [12:01:04]line Смена: 434 ФФД: 1.0 [12:01:04]line ЗНМ: 0300000044 [12:01:04]line РНМ: 0000000000092660 [12:01:04]line Версия ККМ: 001 [12:01:04]line Платежная система: O! деньги [12:01:04]line ФМ: 0000000000874939 [12:01:04]line ФД: 118756 [12:01:04]line ФПД: 181166575422395 [12:01:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T120108&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118756&fm=181166575422395&tin=02508201610067®Number=0000000000092660&sum=95000 [12:01:04]OFD Sender: Processing packet 118756 [packets to send 86, broken 85] [12:01:04]ProducePacketName [12:01:04]name=ofd_packets/00118756 [12:01:04]OFD Sender: To server: pG, [12:01:04]CommunicateWithHost lk.salyk.kg:30040 [12:01:04]ConnectInit lk.salyk.kg [12:01:04]written 0, free lines is 4095 [12:01:05]Write to MH i2c: 01 00 00 AB 4F FA [12:01:05]Write i2c OK [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: 01 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: 01 07 00 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: 01 07 00 AB 4F 00 00 00 00 00 DA 0C E7 [12:01:05]RasterBufferAndPrint [12:01:05]line [12:01:05]line [12:01:05]line [12:01:05]line [12:01:05]line [12:01:05]written 0, free lines is 3298 [12:01:05]MH_Cut [12:01:05]Write to MH i2c: D1 01 00 B2 4F 01 D3 [12:01:05]Write i2c OK [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: D1 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: D1 01 00 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: D1 01 00 B2 4F 00 D2 [12:01:05]Write to MH i2c: 01 00 00 B3 4F 02 [12:01:05]Write i2c OK [12:01:05]MH_I2C_Read... [12:01:05]*** Cut start [12:01:05]*** Partial cut [12:01:05]*** CUTSNS_PIN = 1 [12:01:06]*** CUTSNS_PIN = 0 [12:01:06]*** Brake cut motor [12:01:06]Read from MH i2c: 01 [12:01:06]MH_I2C_Read... [12:01:06]*** Stop cut motor [12:01:06]*** Cut end [12:01:06]Read from MH i2c: 01 07 00 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: 01 07 00 B3 4F 00 00 00 00 00 FF 0F 17 [12:01:06]process_action close_receipt done [12:01:06]requested_data is exist [12:01:06]produce_requested_data [12:01:06]requested_item fm.sn is exist - process it [12:01:06]wFMCommunicate request_size=4 [12:01:06]MH_SAM_APDU [12:01:06]CAPDU: 80 11 00 00 [12:01:06]Write to MH i2c: E2 08 00 B4 4F 80 11 00 00 00 00 00 00 7D [12:01:06]Write i2c OK [12:01:06]MH_I2C_Read... [12:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:06]Read from MH i2c: E2 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: E2 17 00 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: E2 17 00 B4 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D8 [12:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:01:06]wFMCommunicate OK [12:01:06]requested_item fd.num is exist - process it [12:01:06]SAM_PROTO_GetFieldsCounters [12:01:06]wFMCommunicate request_size=4 [12:01:06]MH_SAM_APDU [12:01:06]CAPDU: 80 13 00 00 [12:01:06]Write to MH i2c: E2 08 00 B5 4F 80 13 00 00 00 00 00 00 80 [12:01:06]Write i2c OK [12:01:06]MH_I2C_Read... [12:01:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:06]Read from MH i2c: E2 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: E2 62 00 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: E2 62 00 B5 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E4 CF 01 00 0E 04 04 00 B2 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 9A [12:01: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E4 CF 01 00 0E 04 04 00 B2 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 [12:01:06]wFMCommunicate OK [12:01:06]SAM_PROTO_GetFieldsCounters done [12:01:06]requested_item shift.num is exist - process it [12:01:06]requested_item shift.opened is exist - process it [12:01:06]req_shift_opened [12:01:06]FM_GetShiftState [12:01:06]SAM_PROTO_GetShiftState [12:01:06]wFMCommunicate request_size=4 [12:01:06]MH_SAM_APDU [12:01:06]CAPDU: 80 13 01 00 [12:01:06]Write to MH i2c: E2 08 00 B6 4F 80 13 01 00 00 00 00 00 82 [12:01:06]Write i2c OK [12:01:06]MH_I2C_Read... [12:01:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:06]Read from MH i2c: E2 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: E2 0E 00 [12:01:06]MH_I2C_Read... [12:01:06]Read from MH i2c: E2 0E 00 B6 4F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B0 [12:01:06]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:01:06]wFMCommunicate OK [12:01:06]SAM_PROTO_GetShiftState done [12:01:06]FM_GetShiftState done [12:01:06]req_shift_opened done [12:01:06]requested_item shift.open_date is exist - process it [12:01:06]req_shift_open_date [12:01:06]req_shift_open_date done [12:01:06]produce_requested_data done [12:01:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118756,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [12:01:06]process_action_free close_receipt [12:01:06]json_value_free [12:01:06]json_value_free done [12:01:06]process_json_proto returns [12:01:06]Send response to host [12:01:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118756,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [12:01:06]free response buf [12:01:06]execute_script done [12:01:06]execute_script returns [12:01:06]free content buf [12:01:06]Sock 7.Close socket [12:01:06]Sock 7.Thread stoped [12:02:47]accept exits with 9 [12:02:47]New connection [12:02:47]New thread 3067239780 created [12:02:47]Thread 3067383140 joined [12:02:47]Waiting for new connection... [12:02:47] Sock 9.Parse request [12:02:47]Sock 9.Check first char [12:02:47]Sock 9.First char is OK [12:02:47]request: POST /json_proto HTTP/1.0 [12:02:47]Method: POST [12:02:47]URL: /json_proto [12:02:47]Method is POST - this is cgi request [12:02:47]url: /json_proto [12:02:47]query_string will be loaded in cgi processing [12:02:47]execute_cgi json_proto POST (null) [12:02:47]execute_cgi path=json_proto method=POST [12:02:47]POST find Content-Length [12:02:47]Host: 172.17.45.7:8080 [12:02:47]Content-Length: 679 [12:02:47]Content-Type: application/json [12:02:47] [12:02:47]POST finish read [12:02:47]Found Content-Length = 679 [12:02:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:47]execute_script... [12:02: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)949645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:47]POST & json_proto [12:02:47]process_json_proto [12:02:47]json parsed OK: [12:02:47]protocol is kg_v1.0 [12:02:47]action value=close_receipt [12:02:47]process_action close_receipt [12:02:47]cmd_close_receipt [12:02:47]MH_GetDate [12:02:47]Write to MH i2c: F0 00 00 B7 4F F5 [12:02:47]Write i2c OK [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: F0 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: F0 09 00 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: F0 09 00 B7 4F 00 EC 84 A7 66 90 0F 3E 66 BE [12:02:47]GetLastDocTimeStamp 1722254468 [12:02:47]current date 1722254572 [12:02:47]FM_GetShiftState [12:02:47]SAM_PROTO_GetShiftState [12:02:47]wFMCommunicate request_size=4 [12:02:47]MH_SAM_APDU [12:02:47]CAPDU: 80 13 01 00 [12:02:47]Write to MH i2c: E2 08 00 B8 4F 80 13 01 00 00 00 00 00 84 [12:02:47]Write i2c OK [12:02:47]MH_I2C_Read... [12:02:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:47]Read from MH i2c: E2 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: E2 0E 00 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: E2 0E 00 B8 4F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B2 [12:02:47]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:02:47]wFMCommunicate OK [12:02:47]SAM_PROTO_GetShiftState done [12:02:47]FM_GetShiftState done [12:02:47]opened in 1722211641 [12:02:47]opened+sec_in_day 1722298041 [12:02:47]quantity*price = 100050 [12:02:47]sum+1 = 100052 [12:02:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 133 29.07.2024 12:02 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118757 ФПД: 125601425102077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T120252&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118757&fm=125601425102077&tin=02508201610067®Number=0000000000092660&sum=100000 [12:02:48]StoreToDocumentArchive [12:02:48]shift 434 fd 118757 [12:02:48]save to /storage/0434/doc_00118757 [12:02:48]save last doc name /storage/0434/doc_00118757 to /storage/kkm_last_doc_name [12:02:48]save OK [12:02:48]Clear old archive folders... [12:02:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:02:48]tlvbuf is 01FC9DC0 [12:02:48]SAM_PROTO_ClearQueue [12:02:48]wFMCommunicate request_size=4 [12:02:48]MH_SAM_APDU [12:02:48]CAPDU: 80 09 00 00 [12:02:48]Write to MH i2c: E2 08 00 C5 4F 80 09 00 00 00 00 00 00 86 [12:02:48]Write i2c OK [12:02:48]MH_I2C_Read... [12:02:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:48]Read from MH i2c: E2 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 03 00 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 03 00 C5 4F 00 90 00 88 [12:02:48]RAPDU: 90 00 [12:02:48]wFMCommunicate OK [12:02:48]SAM_PROTO_ClearQueue done [12:02:48]KKMCreateOFDPacket [12:02:48]OFDProtocolAddRootSTLVToBuf [12:02:48]FM_MakeSignedData [12:02:48]FM_MakeSignedData [12:02:48]SAM_PROTO_SignData [12:02:48]wFMCommunicate request_size=4 [12:02:48]MH_SAM_APDU [12:02:48]CAPDU: 80 0D 01 02 [12:02:48]Write to MH i2c: E2 08 00 C6 4F 80 0D 01 02 00 00 00 00 8E [12:02:48]Write i2c OK [12:02:48]MH_I2C_Read... [12:02:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:48]Read from MH i2c: E2 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 03 00 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 03 00 C6 4F 00 90 00 89 [12:02:48]RAPDU: 90 00 [12:02:48]wFMCommunicate OK [12:02:48]wFMCommunicate request_size=255 [12:02:48]MH_SAM_APDU [12:02:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 EC 84 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E5 CF 01 00 35 04 06 00 72 3B DC 53 [12:02:48]Write to MH i2c: E2 02 01 C7 4F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 EC 84 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E5 CF 01 00 35 04 06 00 72 3B DC 53 00 00 64 [12:02:48]Write i2c OK [12:02:48]MH_I2C_Read... [12:02:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:48]Read from MH i2c: E2 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 03 00 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 03 00 C7 4F 00 90 00 8A [12:02:48]RAPDU: 90 00 [12:02:48]wFMCommunicate OK [12:02:48]wFMCommunicate request_size=7 [12:02:48]MH_SAM_APDU [12:02:48]CAPDU: 80 0D 02 02 02 94 FD [12:02:48]Write to MH i2c: E2 0A 00 C8 4F 80 0D 02 02 02 00 94 FD 00 00 26 [12:02:48]Write i2c OK [12:02:48]MH_I2C_Read... [12:02:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:48]Read from MH i2c: E2 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 03 00 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 03 00 C8 4F 00 90 00 8B [12:02:48]RAPDU: 90 00 [12:02:48]wFMCommunicate OK [12:02:48]wFMCommunicate request_size=4 [12:02:48]MH_SAM_APDU [12:02:48]CAPDU: 80 0D 03 02 [12:02:48]Write to MH i2c: E2 08 00 C9 4F 80 0D 03 02 00 00 00 00 93 [12:02:48]Write i2c OK [12:02:48]MH_I2C_Read... [12:02:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:48]Read from MH i2c: E2 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 0B 00 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 0B 00 C9 4F 00 D2 8B B5 4C 1A B2 BF 0C 90 00 89 [12:02:48]RAPDU: D2 8B B5 4C 1A B2 BF 0C 90 00 [12:02:48]wFMCommunicate OK [12:02:48]SAM_PROTO_SignData done [12:02:48]FM_MakeSignedData done [12:02:48]CreateOFDProtocolMessage [12:02:48]wFMCommunicate request_size=4 [12:02:48]MH_SAM_APDU [12:02:48]CAPDU: 80 11 00 00 [12:02:48]Write to MH i2c: E2 08 00 CA 4F 80 11 00 00 00 00 00 00 93 [12:02:48]Write i2c OK [12:02:48]MH_I2C_Read... [12:02:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:48]Read from MH i2c: E2 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 17 00 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: E2 17 00 CA 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EE [12:02:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:02:48]wFMCommunicate OK [12:02:48]CreateOFDProtocolMessage done [12:02:48]OFDSenderStorePacket 118757 [12:02:48]StoreOFDPacket docnum=118757 [12:02:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 41 75 04 01 8D 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 EC 84 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E5 CF 01 00 35 04 06 00 72 3B DC 53 94 FD D2 8B B5 4C 1A B2 BF 0C [12:02:48]CheckFolder [12:02:48]dirname=/storage/ofd_packets [12:02:48]CheckFolder done [12:02:48]ProducePacketName [12:02:48]name=ofd_packets/00118757 [12:02:48]NVStorageSaveData ofd_packets/00118757 [12:02:48]File name is /storage/ofd_packets/00118757 [12:02:48]Write 298 bytes [12:02:48]NVStorageSaveData done [12:02:48]OFDSenderStorePacket done [12:02:48]KKMCreateOFDPacket done [12:02:48]NVStorageSaveData kkm_last_timestamp [12:02:48]File name is /storage/kkm_last_timestamp [12:02:48]Write 4 bytes [12:02:48]NVStorageSaveData done [12:02:48]ExternCall_PrintAddStr [12:02:48]wPrintStart [12:02:48]Write to MH i2c: 01 00 00 CB 4F 1A [12:02:48]Write i2c OK [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: 01 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: 01 07 00 [12:02:48]MH_I2C_Read... [12:02:48]Read from MH i2c: 01 07 00 CB 4F 00 00 00 00 00 FF 0F 2F [12:02:48]RasterBufferAndPrint [12:02:48]line Счет N : (1)949645 [12:02:48]line ИНН: 02508201610067 [12:02:48]line Контрольно-Кассовый Чек [12:02:48]line ПРОДАЖА [12:02:48]line ТРК (МРК, ГНК) : 54 [12:02:48]line Товар: 2710194800 [12:02:48]line ДТ-К-5 [12:02:48]line 13.130 * 76.20 [12:02:48]line = 1000.51 [12:02:48]line НДС 12% НСП 1% [12:02:48]line > о реализуемом товаре [12:02:48]line ОКРУГЛЕНИЕ: -0.51 [12:02:48]line ИТОГО: 1000.00 [12:02:48]line Внесено: 1000.00 [12:02:48]line СДАЧА: 0.00 [12:02:48]line НСП 1% : 8.85 [12:02:48]line НДС 12% : 106.25 [12:02:48]line Наличными: 1000.00 [12:02:48]line Безнал.: 0.00 [12:02:48]line Место: АЗС № 134 "Партнер Нефть" [12:02:48]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:02:48]line СНО: Общий режим [12:02:48]line Чек 133 29.07.2024 12:02 [12:02:48]line Смена: 434 ФФД: 1.0 [12:02:48]line ЗНМ: 0300000044 [12:02:48]line РНМ: 0000000000092660 [12:02:48]line Версия ККМ: 001 [12:02:48]line ФМ: 0000000000874939 [12:02:48]line ФД: 118757 [12:02:48]line ФПД: 125601425102077 [12:02:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T120252&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118757&fm=125601425102077&tin=02508201610067®Number=0000000000092660&sum=100000 [12:02:49]written 0, free lines is 4095 [12:02:49]Write to MH i2c: 01 00 00 F5 4F 44 [12:02:49]Write i2c OK [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: 01 [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: 01 07 00 [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: 01 07 00 F5 4F 00 00 00 00 00 D3 0C 2A [12:02:49]RasterBufferAndPrint [12:02:49]line [12:02:49]line [12:02:49]line [12:02:49]line [12:02:49]line [12:02:49]written 0, free lines is 3292 [12:02:49]MH_Cut [12:02:49]Write to MH i2c: D1 01 00 FC 4F 01 1D [12:02:49]Write i2c OK [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: D1 [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: D1 01 00 [12:02:49]MH_I2C_Read... [12:02:49]Read from MH i2c: D1 01 00 FC 4F 00 1C [12:02:49]Write to MH i2c: 01 00 00 FD 4F 4C [12:02:49]Write i2c OK [12:02:49]MH_I2C_Read... [12:02:50]*** Cut start [12:02:50]*** Partial cut [12:02:50]*** CUTSNS_PIN = 1 [12:02:50]*** CUTSNS_PIN = 0 [12:02:50]*** Brake cut motor [12:02:50]Read from MH i2c: 01 [12:02:50]MH_I2C_Read... [12:02:50]*** Stop cut motor [12:02:50]*** Cut end [12:02:50]Read from MH i2c: 01 07 00 [12:02:50]MH_I2C_Read... [12:02:50]Read from MH i2c: 01 07 00 FD 4F 00 00 00 00 00 FF 0F 61 [12:02:50]process_action close_receipt done [12:02:50]requested_data is exist [12:02:50]produce_requested_data [12:02:50]requested_item fm.sn is exist - process it [12:02:50]wFMCommunicate request_size=4 [12:02:50]MH_SAM_APDU [12:02:50]CAPDU: 80 11 00 00 [12:02:50]Write to MH i2c: E2 08 00 FE 4F 80 11 00 00 00 00 00 00 C7 [12:02:50]Write i2c OK [12:02:50]MH_I2C_Read... [12:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:50]Read from MH i2c: E2 [12:02:50]MH_I2C_Read... [12:02:50]Read from MH i2c: E2 17 00 [12:02:50]MH_I2C_Read... [12:02:50]Read from MH i2c: E2 17 00 FE 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 22 [12:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:02:50]wFMCommunicate OK [12:02:50]requested_item fd.num is exist - process it [12:02:50]SAM_PROTO_GetFieldsCounters [12:02:50]wFMCommunicate request_size=4 [12:02:50]MH_SAM_APDU [12:02:50]CAPDU: 80 13 00 00 [12:02:50]Write to MH i2c: E2 08 00 FF 4F 80 13 00 00 00 00 00 00 CA [12:02:51]Write i2c OK [12:02:51]MH_I2C_Read... [12:02:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:51]Read from MH i2c: E2 [12:02:51]MH_I2C_Read... [12:02:51]Read from MH i2c: E2 62 00 [12:02:51]MH_I2C_Read... [12:02:51]Read from MH i2c: E2 62 00 FF 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E5 CF 01 00 0E 04 04 00 B2 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 E8 [12:02: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E5 CF 01 00 0E 04 04 00 B2 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 [12:02:51]wFMCommunicate OK [12:02:51]SAM_PROTO_GetFieldsCounters done [12:02:51]requested_item shift.num is exist - process it [12:02:51]requested_item shift.opened is exist - process it [12:02:51]req_shift_opened [12:02:51]FM_GetShiftState [12:02:51]SAM_PROTO_GetShiftState [12:02:51]wFMCommunicate request_size=4 [12:02:51]MH_SAM_APDU [12:02:51]CAPDU: 80 13 01 00 [12:02:51]Write to MH i2c: E2 08 00 00 50 80 13 01 00 00 00 00 00 CD [12:02:51]Write i2c OK [12:02:51]MH_I2C_Read... [12:02:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:51]Read from MH i2c: E2 [12:02:51]MH_I2C_Read... [12:02:51]Read from MH i2c: E2 0E 00 [12:02:51]MH_I2C_Read... [12:02:51]Read from MH i2c: E2 0E 00 00 50 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 FB [12:02:51]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:02:51]wFMCommunicate OK [12:02:51]SAM_PROTO_GetShiftState done [12:02:51]FM_GetShiftState done [12:02:51]req_shift_opened done [12:02:51]requested_item shift.open_date is exist - process it [12:02:51]req_shift_open_date [12:02:51]req_shift_open_date done [12:02:51]produce_requested_data done [12:02:51]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118757,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [12:02:51]process_action_free close_receipt [12:02:51]json_value_free [12:02:51]json_value_free done [12:02:51]process_json_proto returns [12:02:51]Send response to host [12:02:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118757,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [12:02:51]free response buf [12:02:51]execute_script done [12:02:51]execute_script returns [12:02:51]free content buf [12:02:51]Sock 9.Close socket [12:02:51]Sock 9.Thread stoped [12:02:56]accept exits with 7 [12:02:56]New connection [12:02:56]New thread 3067383140 created [12:02:56]Thread 3067239780 joined [12:02:56]Waiting for new connection... [12:02:56] Sock 7.Parse request [12:02:56]Sock 7.Check first char [12:02:56]Sock 7.First char is OK [12:02:56]request: POST /json_proto HTTP/1.0 [12:02:56]Method: POST [12:02:56]URL: /json_proto [12:02:56]Method is POST - this is cgi request [12:02:56]url: /json_proto [12:02:56]query_string will be loaded in cgi processing [12:02:56]execute_cgi json_proto POST (null) [12:02:56]execute_cgi path=json_proto method=POST [12:02:56]POST find Content-Length [12:02:56]Host: 172.17.45.7:8080 [12:02:56]Content-Length: 679 [12:02:56]Content-Type: application/json [12:02:56] [12:02:56]POST finish read [12:02:56]Found Content-Length = 679 [12:02:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:56]execute_script... [12:02:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:56]POST & json_proto [12:02:56]process_json_proto [12:02:56]json parsed OK: [12:02:56]protocol is kg_v1.0 [12:02:56]action value=close_receipt [12:02:56]process_action close_receipt [12:02:56]cmd_close_receipt [12:02:56]MH_GetDate [12:02:56]Write to MH i2c: F0 00 00 01 50 40 [12:02:56]Write i2c OK [12:02:56]MH_I2C_Read... [12:02:56]Read from MH i2c: F0 [12:02:56]MH_I2C_Read... [12:02:56]Read from MH i2c: F0 09 00 [12:02:56]MH_I2C_Read... [12:02:56]Read from MH i2c: F0 09 00 01 50 00 F5 84 A7 66 90 0F 3E 66 12 [12:02:56]GetLastDocTimeStamp 1722254572 [12:02:56]current date 1722254581 [12:02:56]FM_GetShiftState [12:02:56]SAM_PROTO_GetShiftState [12:02:56]wFMCommunicate request_size=4 [12:02:56]MH_SAM_APDU [12:02:56]CAPDU: 80 13 01 00 [12:02:56]Write to MH i2c: E2 08 00 02 50 80 13 01 00 00 00 00 00 CF [12:02:56]Write i2c OK [12:02:56]MH_I2C_Read... [12:02:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:56]Read from MH i2c: E2 [12:02:56]MH_I2C_Read... [12:02:56]Read from MH i2c: E2 0E 00 [12:02:56]MH_I2C_Read... [12:02:56]Read from MH i2c: E2 0E 00 02 50 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 FD [12:02:56]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:02:56]wFMCommunicate OK [12:02:56]SAM_PROTO_GetShiftState done [12:02:56]FM_GetShiftState done [12:02:56]opened in 1722211641 [12:02:56]opened+sec_in_day 1722298041 [12:02:56]quantity*price = 100050 [12:02:56]sum+1 = 100052 [12:02:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 4000.00 СДАЧА: 3000.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 134 29.07.2024 12:03 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118758 ФПД: 21442671937830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T120301&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118758&fm=21442671937830&tin=02508201610067®Number=0000000000092660&sum=100000 [12:02:57]StoreToDocumentArchive [12:02:57]shift 434 fd 118758 [12:02:57]save to /storage/0434/doc_00118758 [12:02:57]save last doc name /storage/0434/doc_00118758 to /storage/kkm_last_doc_name [12:02:57]save OK [12:02:57]Clear old archive folders... [12:02:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:02:57]tlvbuf is B6F434D0 [12:02:57]SAM_PROTO_ClearQueue [12:02:57]wFMCommunicate request_size=4 [12:02:57]MH_SAM_APDU [12:02:57]CAPDU: 80 09 00 00 [12:02:57]Write to MH i2c: E2 08 00 0F 50 80 09 00 00 00 00 00 00 D1 [12:02:57]Write i2c OK [12:02:57]MH_I2C_Read... [12:02:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:57]Read from MH i2c: E2 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: E2 03 00 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: E2 03 00 0F 50 00 90 00 D3 [12:02:57]RAPDU: 90 00 [12:02:57]wFMCommunicate OK [12:02:57]SAM_PROTO_ClearQueue done [12:02:57]KKMCreateOFDPacket [12:02:57]OFDProtocolAddRootSTLVToBuf [12:02:57]FM_MakeSignedData [12:02:57]FM_MakeSignedData [12:02:57]SAM_PROTO_SignData [12:02:57]wFMCommunicate request_size=4 [12:02:57]MH_SAM_APDU [12:02:57]CAPDU: 80 0D 01 02 [12:02:57]Write to MH i2c: E2 08 00 10 50 80 0D 01 02 00 00 00 00 D9 [12:02:57]Write i2c OK [12:02:57]MH_I2C_Read... [12:02:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:57]Read from MH i2c: E2 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: E2 03 00 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: E2 03 00 10 50 00 90 00 D4 [12:02:57]RAPDU: 90 00 [12:02:57]wFMCommunicate OK [12:02:57]wFMCommunicate request_size=255 [12:02:57]MH_SAM_APDU [12:02:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F5 84 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E6 CF 01 00 35 04 06 00 13 80 82 D8 [12:02:57]Write to MH i2c: E2 02 01 11 50 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F5 84 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E6 CF 01 00 35 04 06 00 13 80 82 D8 00 00 CB [12:02:57]Write i2c OK [12:02:57]MH_I2C_Read... [12:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:57]Read from MH i2c: E2 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: E2 03 00 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: E2 03 00 11 50 00 90 00 D5 [12:02:57]RAPDU: 90 00 [12:02:57]wFMCommunicate OK [12:02:57]wFMCommunicate request_size=7 [12:02:57]MH_SAM_APDU [12:02:57]CAPDU: 80 0D 02 02 02 09 26 [12:02:57]Write to MH i2c: E2 0A 00 12 50 80 0D 02 02 02 00 09 26 00 00 0F [12:02:57]Write i2c OK [12:02:57]MH_I2C_Read... [12:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:57]Read from MH i2c: E2 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: E2 03 00 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: E2 03 00 12 50 00 90 00 D6 [12:02:57]RAPDU: 90 00 [12:02:57]wFMCommunicate OK [12:02:57]wFMCommunicate request_size=4 [12:02:57]MH_SAM_APDU [12:02:57]CAPDU: 80 0D 03 02 [12:02:57]Write to MH i2c: E2 08 00 13 50 80 0D 03 02 00 00 00 00 DE [12:02:57]Write i2c OK [12:02:57]MH_I2C_Read... [12:02:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:57]Read from MH i2c: E2 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: E2 0B 00 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: E2 0B 00 13 50 00 98 DC E7 CC 33 8B 65 DA 90 00 03 [12:02:57]RAPDU: 98 DC E7 CC 33 8B 65 DA 90 00 [12:02:57]wFMCommunicate OK [12:02:57]SAM_PROTO_SignData done [12:02:57]FM_MakeSignedData done [12:02:57]CreateOFDProtocolMessage [12:02:57]wFMCommunicate request_size=4 [12:02:57]MH_SAM_APDU [12:02:57]CAPDU: 80 11 00 00 [12:02:57]Write to MH i2c: E2 08 00 14 50 80 11 00 00 00 00 00 00 DE [12:02:57]Write i2c OK [12:02:57]MH_I2C_Read... [12:02:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:57]Read from MH i2c: E2 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: E2 17 00 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: E2 17 00 14 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 39 [12:02:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:02:57]wFMCommunicate OK [12:02:57]CreateOFDProtocolMessage done [12:02:57]OFDSenderStorePacket 118758 [12:02:57]StoreOFDPacket docnum=118758 [12:02:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 84 79 04 01 9B B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F5 84 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E6 CF 01 00 35 04 06 00 13 80 82 D8 09 26 98 DC E7 CC 33 8B 65 DA [12:02:57]CheckFolder [12:02:57]dirname=/storage/ofd_packets [12:02:57]CheckFolder done [12:02:57]ProducePacketName [12:02:57]name=ofd_packets/00118758 [12:02:57]NVStorageSaveData ofd_packets/00118758 [12:02:57]File name is /storage/ofd_packets/00118758 [12:02:57]Write 298 bytes [12:02:57]NVStorageSaveData done [12:02:57]OFDSenderStorePacket done [12:02:57]KKMCreateOFDPacket done [12:02:57]NVStorageSaveData kkm_last_timestamp [12:02:57]File name is /storage/kkm_last_timestamp [12:02:57]Write 4 bytes [12:02:57]NVStorageSaveData done [12:02:57]ExternCall_PrintAddStr [12:02:57]wPrintStart [12:02:57]Write to MH i2c: 01 00 00 15 50 65 [12:02:57]Write i2c OK [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: 01 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: 01 07 00 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: 01 07 00 15 50 00 00 00 00 00 FF 0F 7A [12:02:57]RasterBufferAndPrint [12:02:57]line Счет N : (1)949643 [12:02:57]line ИНН: 02508201610067 [12:02:57]line Контрольно-Кассовый Чек [12:02:57]line ПРОДАЖА [12:02:57]line ТРК (МРК, ГНК) : 64 [12:02:57]line Товар: 2710194800 [12:02:57]line ДТ-К-5 [12:02:57]line 13.130 * 76.20 [12:02:57]line = 1000.51 [12:02:57]line НДС 12% НСП 1% [12:02:57]line > о реализуемом товаре [12:02:57]line ОКРУГЛЕНИЕ: -0.51 [12:02:57]line ИТОГО: 1000.00 [12:02:57]line Внесено: 4000.00 [12:02:57]line СДАЧА: 3000.00 [12:02:57]line НСП 1% : 8.85 [12:02:57]line НДС 12% : 106.25 [12:02:57]line Наличными: 1000.00 [12:02:57]line Безнал.: 0.00 [12:02:57]line Место: АЗС № 134 "Партнер Нефть" [12:02:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:02:57]line СНО: Общий режим [12:02:57]line Чек 134 29.07.2024 12:03 [12:02:57]line Смена: 434 ФФД: 1.0 [12:02:57]line ЗНМ: 0300000044 [12:02:57]line РНМ: 0000000000092660 [12:02:57]line Версия ККМ: 001 [12:02:57]line ФМ: 0000000000874939 [12:02:57]line ФД: 118758 [12:02:57]line ФПД: 21442671937830 [12:02:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T120301&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118758&fm=21442671937830&tin=02508201610067®Number=0000000000092660&sum=100000 [12:02:57]written 0, free lines is 4095 [12:02:58]Write to MH i2c: 01 00 00 3F 50 8F [12:02:58]Write i2c OK [12:02:58]MH_I2C_Read... [12:02:58]Read from MH i2c: 01 [12:02:58]MH_I2C_Read... [12:02:58]Read from MH i2c: 01 07 00 [12:02:58]MH_I2C_Read... [12:02:58]Read from MH i2c: 01 07 00 3F 50 00 00 00 00 00 D3 0C 75 [12:02:58]RasterBufferAndPrint [12:02:58]line [12:02:58]line [12:02:58]line [12:02:58]line [12:02:58]line [12:02:58]written 0, free lines is 3292 [12:02:58]MH_Cut [12:02:58]Write to MH i2c: D1 01 00 46 50 01 68 [12:02:58]Write i2c OK [12:02:58]MH_I2C_Read... [12:02:58]Read from MH i2c: D1 [12:02:58]MH_I2C_Read... [12:02:58]Read from MH i2c: D1 01 00 [12:02:58]MH_I2C_Read... [12:02:58]Read from MH i2c: D1 01 00 46 50 00 67 [12:02:58]Write to MH i2c: 01 00 00 47 50 97 [12:02:58]Write i2c OK [12:02:58]MH_I2C_Read... [12:02:59]*** Cut start [12:02:59]*** Partial cut [12:02:59]*** CUTSNS_PIN = 1 [12:02:59]*** CUTSNS_PIN = 0 [12:02:59]*** Brake cut motor [12:02:59]Read from MH i2c: 01 [12:02:59]MH_I2C_Read... [12:02:59]*** Stop cut motor [12:02:59]*** Cut end [12:02:59]Read from MH i2c: 01 07 00 [12:02:59]MH_I2C_Read... [12:02:59]Read from MH i2c: 01 07 00 47 50 00 00 00 00 00 FF 0F AC [12:02:59]process_action close_receipt done [12:02:59]requested_data is exist [12:02:59]produce_requested_data [12:02:59]requested_item fm.sn is exist - process it [12:02:59]wFMCommunicate request_size=4 [12:02:59]MH_SAM_APDU [12:02:59]CAPDU: 80 11 00 00 [12:02:59]Write to MH i2c: E2 08 00 48 50 80 11 00 00 00 00 00 00 12 [12:02:59]Write i2c OK [12:02:59]MH_I2C_Read... [12:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:59]Read from MH i2c: E2 [12:02:59]MH_I2C_Read... [12:02:59]Read from MH i2c: E2 17 00 [12:02:59]MH_I2C_Read... [12:02:59]Read from MH i2c: E2 17 00 48 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6D [12:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:02:59]wFMCommunicate OK [12:02:59]requested_item fd.num is exist - process it [12:02:59]SAM_PROTO_GetFieldsCounters [12:02:59]wFMCommunicate request_size=4 [12:02:59]MH_SAM_APDU [12:02:59]CAPDU: 80 13 00 00 [12:02:59]Write to MH i2c: E2 08 00 49 50 80 13 00 00 00 00 00 00 15 [12:02:59]Write i2c OK [12:02:59]MH_I2C_Read... [12:02:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:59]Read from MH i2c: E2 [12:02:59]MH_I2C_Read... [12:02:59]Read from MH i2c: E2 62 00 [12:02:59]MH_I2C_Read... [12:02:59]Read from MH i2c: E2 62 00 49 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E6 CF 01 00 0E 04 04 00 B2 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 37 [12:02: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E6 CF 01 00 0E 04 04 00 B2 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 [12:02:59]wFMCommunicate OK [12:02:59]SAM_PROTO_GetFieldsCounters done [12:02:59]requested_item shift.num is exist - process it [12:02:59]requested_item shift.opened is exist - process it [12:02:59]req_shift_opened [12:02:59]FM_GetShiftState [12:02:59]SAM_PROTO_GetShiftState [12:02:59]wFMCommunicate request_size=4 [12:02:59]MH_SAM_APDU [12:02:59]CAPDU: 80 13 01 00 [12:02:59]Write to MH i2c: E2 08 00 4A 50 80 13 01 00 00 00 00 00 17 [12:02:59]Write i2c OK [12:02:59]MH_I2C_Read... [12:02:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:59]Read from MH i2c: E2 [12:02:59]MH_I2C_Read... [12:02:59]Read from MH i2c: E2 0E 00 [12:02:59]MH_I2C_Read... [12:02:59]Read from MH i2c: E2 0E 00 4A 50 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 45 [12:02:59]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:02:59]wFMCommunicate OK [12:02:59]SAM_PROTO_GetShiftState done [12:02:59]FM_GetShiftState done [12:02:59]req_shift_opened done [12:02:59]requested_item shift.open_date is exist - process it [12:02:59]req_shift_open_date [12:02:59]req_shift_open_date done [12:02:59]produce_requested_data done [12:02:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118758,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [12:02:59]process_action_free close_receipt [12:02:59]json_value_free [12:02:59]json_value_free done [12:02:59]process_json_proto returns [12:02:59]Send response to host [12:02:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118758,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [12:02:59]free response buf [12:02:59]execute_script done [12:02:59]execute_script returns [12:02:59]free content buf [12:02:59]Sock 7.Close socket [12:02:59]Sock 7.Thread stoped [12:03:18]ConnectInit Can't connect to host [12:03:18]CommunicateWithHost connect error [12:03:18]CommunicateWithHost err = -1 [12:03:18]OFD Sender: Server communicate error [12:03:18]OFD Sender: Processing packet 118756 [packets to send 88, broken 85] [12:03:18]ProducePacketName [12:03:18]name=ofd_packets/00118756 [12:03:18]OFD Sender: To server: pG, [12:03:18]CommunicateWithHost lk.salyk.kg:30040 [12:03:18]ConnectInit lk.salyk.kg [12:03:18]Connected sock=7 [12:03:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EB 40 04 01 00 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2D 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 73 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 84 84 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E4 CF 01 00 35 04 06 00 A4 C5 21 5F 8B BB 0B E2 AB 8C A2 79 F8 6C [12:03:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 56 19 47 00 1D 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E4 CF 01 00 F4 03 04 00 97 32 A7 66 B6 04 01 00 00 EA 11 F7 15 9D 57 74 23 [12:03:18]CommunicateWithHost err = 0 [12:03:18]CheckOFDResponse [12:03:18]1017 (14) - 77093643461234 [12:03:18]1041 (16) - 0000000000874939 [12:03:18]1040 (4) - 118756 [12:03:18]1012 (4) - 29.07.2024 06:11 [12:03:18]1206 (1) - 0 [12:03:18]OFD Sender: Remove packet 118756 [12:03:18]ProducePacketName [12:03:18]name=ofd_packets/00118756 [12:03:18]NVStorageDeleteData [12:03:19]OFD Sender: Processing packet 118757 [packets to send 87, broken 85] [12:03:19]ProducePacketName [12:03:19]name=ofd_packets/00118757 [12:03:19]OFD Sender: To server: pG, [12:03:19]CommunicateWithHost lk.salyk.kg:30040 [12:03:19]ConnectInit lk.salyk.kg [12:03:19]Connected sock=7 [12:03:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 41 75 04 01 8D 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 EC 84 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E5 CF 01 00 35 04 06 00 72 3B DC 53 94 FD D2 8B B5 4C 1A B2 BF 0C [12:03:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B3 4B 47 00 13 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E5 CF 01 00 F4 03 04 00 98 32 A7 66 B6 04 01 00 00 52 56 B4 EB 8D A6 B2 74 [12:03:19]CommunicateWithHost err = 0 [12:03:19]CheckOFDResponse [12:03:19]1017 (14) - 77093643461234 [12:03:19]1041 (16) - 0000000000874939 [12:03:19]1040 (4) - 118757 [12:03:19]1012 (4) - 29.07.2024 06:11 [12:03:19]1206 (1) - 0 [12:03:19]OFD Sender: Remove packet 118757 [12:03:19]ProducePacketName [12:03:19]name=ofd_packets/00118757 [12:03:19]NVStorageDeleteData [12:03:19]OFD Sender: Processing packet 118758 [packets to send 86, broken 85] [12:03:19]ProducePacketName [12:03:19]name=ofd_packets/00118758 [12:03:19]OFD Sender: To server: pG, [12:03:19]CommunicateWithHost lk.salyk.kg:30040 [12:03:19]ConnectInit lk.salyk.kg [12:03:20]Connected sock=7 [12:03:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 84 79 04 01 9B B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 F5 84 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E6 CF 01 00 35 04 06 00 13 80 82 D8 09 26 98 DC E7 CC 33 8B 65 DA [12:03:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B7 92 47 00 49 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 34 39 33 39 10 04 04 00 E6 CF 01 00 F4 03 04 00 99 32 A7 66 B6 04 01 00 00 21 E0 78 BD 60 29 60 5C [12:03:20]CommunicateWithHost err = 0 [12:03:20]CheckOFDResponse [12:03:20]1017 (14) - 77093643461234 [12:03:20]1041 (16) - 0000000000874939 [12:03:20]1040 (4) - 118758 [12:03:20]1012 (4) - 29.07.2024 06:11 [12:03:20]1206 (1) - 0 [12:03:20]OFD Sender: Remove packet 118758 [12:03:20]ProducePacketName [12:03:20]name=ofd_packets/00118758 [12:03:20]NVStorageDeleteData [12:03:20]accept exits with 11 [12:03:20]New connection [12:03:20]New thread 3067239780 created [12:03:20]Thread 3067383140 joined [12:03:20]Waiting for new connection... [12:03:20] Sock 11.Parse request [12:03:20]Sock 11.Check first char [12:03:20]Sock 11.First char is OK [12:03:20]request: POST /json_proto HTTP/1.0 [12:03:20]Method: POST [12:03:20]URL: /json_proto [12:03:20]Method is POST - this is cgi request [12:03:20]url: /json_proto [12:03:20]query_string will be loaded in cgi processing [12:03:20]execute_cgi json_proto POST (null) [12:03:20]execute_cgi path=json_proto method=POST [12:03:20]POST find Content-Length [12:03:20]Host: 172.17.45.7:8080 [12:03:20]Content-Length: 819 [12:03:20]Content-Type: application/json [12:03:20] [12:03:20]POST finish read [12:03:20]Found Content-Length = 819 [12:03:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:20]execute_script... [12:03:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:20]POST & json_proto [12:03:20]process_json_proto [12:03:20]json parsed OK: [12:03:20]protocol is kg_v1.0 [12:03:20]action value=close_receipt [12:03:20]process_action close_receipt [12:03:20]cmd_close_receipt [12:03:20]MH_GetDate [12:03:20]Write to MH i2c: F0 00 00 4B 50 8A [12:03:20]Write i2c OK [12:03:20]MH_I2C_Read... [12:03:20]Read from MH i2c: F0 [12:03:20]MH_I2C_Read... [12:03:20]Read from MH i2c: F0 09 00 [12:03:20]MH_I2C_Read... [12:03:20]Read from MH i2c: F0 09 00 4B 50 00 0D 85 A7 66 90 0F 3E 66 75 [12:03:20]GetLastDocTimeStamp 1722254581 [12:03:20]current date 1722254605 [12:03:20]FM_GetShiftState [12:03:20]SAM_PROTO_GetShiftState [12:03:20]wFMCommunicate request_size=4 [12:03:20]MH_SAM_APDU [12:03:20]CAPDU: 80 13 01 00 [12:03:20]Write to MH i2c: E2 08 00 4C 50 80 13 01 00 00 00 00 00 19 [12:03:20]Write i2c OK [12:03:20]MH_I2C_Read... [12:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:20]Read from MH i2c: E2 [12:03:20]MH_I2C_Read... [12:03:20]Read from MH i2c: E2 0E 00 [12:03:20]MH_I2C_Read... [12:03:20]Read from MH i2c: E2 0E 00 4C 50 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 47 [12:03:20]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:03:20]wFMCommunicate OK [12:03:20]SAM_PROTO_GetShiftState done [12:03:20]FM_GetShiftState done [12:03:20]opened in 1722211641 [12:03:20]opened+sec_in_day 1722298041 [12:03:20]quantity*price = 300075 [12:03:20]sum+1 = 300077 [12:03:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 135 29.07.2024 12:03 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118759 ФПД: 167111610502441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T120326&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118759&fm=167111610502441&tin=02508201610067®Number=0000000000092660&sum=300000 [12:03:21]StoreToDocumentArchive [12:03:21]shift 434 fd 118759 [12:03:21]save to /storage/0434/doc_00118759 [12:03:21]save last doc name /storage/0434/doc_00118759 to /storage/kkm_last_doc_name [12:03:21]save OK [12:03:21]Clear old archive folders... [12:03:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:03:21]tlvbuf is 01FF8C10 [12:03:21]SAM_PROTO_ClearQueue [12:03:21]wFMCommunicate request_size=4 [12:03:21]MH_SAM_APDU [12:03:21]CAPDU: 80 09 00 00 [12:03:21]Write to MH i2c: E2 08 00 59 50 80 09 00 00 00 00 00 00 1B [12:03:21]Write i2c OK [12:03:21]MH_I2C_Read... [12:03:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:21]Read from MH i2c: E2 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 03 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 03 00 59 50 00 90 00 1D [12:03:21]RAPDU: 90 00 [12:03:21]wFMCommunicate OK [12:03:21]SAM_PROTO_ClearQueue done [12:03:21]KKMCreateOFDPacket [12:03:21]OFDProtocolAddRootSTLVToBuf [12:03:21]FM_MakeSignedData [12:03:21]FM_MakeSignedData [12:03:21]SAM_PROTO_SignData [12:03:21]wFMCommunicate request_size=4 [12:03:21]MH_SAM_APDU [12:03:21]CAPDU: 80 0D 01 02 [12:03:21]Write to MH i2c: E2 08 00 5A 50 80 0D 01 02 00 00 00 00 23 [12:03:21]Write i2c OK [12:03:21]MH_I2C_Read... [12:03:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:21]Read from MH i2c: E2 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 03 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 03 00 5A 50 00 90 00 1E [12:03:21]RAPDU: 90 00 [12:03:21]wFMCommunicate OK [12:03:21]wFMCommunicate request_size=255 [12:03:21]MH_SAM_APDU [12:03:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 0E 85 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 CF 01 00 35 04 06 00 97 FC B4 2E [12:03:21]Write to MH i2c: E2 02 01 5B 50 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 0E 85 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 CF 01 00 35 04 06 00 97 FC B4 2E 00 00 F0 [12:03:21]Write i2c OK [12:03:21]MH_I2C_Read... [12:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:22]Read from MH i2c: E2 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: E2 03 00 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: E2 03 00 5B 50 00 90 00 1F [12:03:22]RAPDU: 90 00 [12:03:22]wFMCommunicate OK [12:03:22]wFMCommunicate request_size=7 [12:03:22]MH_SAM_APDU [12:03:22]CAPDU: 80 0D 02 02 02 8D 29 [12:03:22]Write to MH i2c: E2 0A 00 5C 50 80 0D 02 02 02 00 8D 29 00 00 E0 [12:03:22]Write i2c OK [12:03:22]MH_I2C_Read... [12:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:22]Read from MH i2c: E2 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: E2 03 00 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: E2 03 00 5C 50 00 90 00 20 [12:03:22]RAPDU: 90 00 [12:03:22]wFMCommunicate OK [12:03:22]wFMCommunicate request_size=4 [12:03:22]MH_SAM_APDU [12:03:22]CAPDU: 80 0D 03 02 [12:03:22]Write to MH i2c: E2 08 00 5D 50 80 0D 03 02 00 00 00 00 28 [12:03:22]Write i2c OK [12:03:22]MH_I2C_Read... [12:03:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:22]Read from MH i2c: E2 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: E2 0B 00 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: E2 0B 00 5D 50 00 14 FA 26 51 66 AD FA 93 90 00 4E [12:03:22]RAPDU: 14 FA 26 51 66 AD FA 93 90 00 [12:03:22]wFMCommunicate OK [12:03:22]SAM_PROTO_SignData done [12:03:22]FM_MakeSignedData done [12:03:22]CreateOFDProtocolMessage [12:03:22]wFMCommunicate request_size=4 [12:03:22]MH_SAM_APDU [12:03:22]CAPDU: 80 11 00 00 [12:03:22]Write to MH i2c: E2 08 00 5E 50 80 11 00 00 00 00 00 00 28 [12:03:22]Write i2c OK [12:03:22]MH_I2C_Read... [12:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:22]Read from MH i2c: E2 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: E2 17 00 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: E2 17 00 5E 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 83 [12:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:03:22]wFMCommunicate OK [12:03:22]CreateOFDProtocolMessage done [12:03:22]OFDSenderStorePacket 118759 [12:03:22]StoreOFDPacket docnum=118759 [12:03:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F1 EB 04 01 72 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 0E 85 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 CF 01 00 35 04 06 00 97 FC B4 2E 8D 29 14 FA 26 51 66 AD FA 93 [12:03:22]CheckFolder [12:03:22]dirname=/storage/ofd_packets [12:03:22]CheckFolder done [12:03:22]ProducePacketName [12:03:22]name=ofd_packets/00118759 [12:03:22]NVStorageSaveData ofd_packets/00118759 [12:03:22]File name is /storage/ofd_packets/00118759 [12:03:22]Write 298 bytes [12:03:22]NVStorageSaveData done [12:03:22]OFDSenderStorePacket done [12:03:22]KKMCreateOFDPacket done [12:03:22]NVStorageSaveData kkm_last_timestamp [12:03:22]File name is /storage/kkm_last_timestamp [12:03:22]Write 4 bytes [12:03:22]NVStorageSaveData done [12:03:22]ExternCall_PrintAddStr [12:03:22]wPrintStart [12:03:22]Write to MH i2c: 01 00 00 5F 50 AF [12:03:22]Write i2c OK [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: 01 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: 01 07 00 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: 01 07 00 5F 50 00 00 00 00 00 FF 0F C4 [12:03:22]RasterBufferAndPrint [12:03:22]line Счет N : (1)949644 [12:03:22]line ИНН: 02508201610067 [12:03:22]line Контрольно-Кассовый Чек [12:03:22]line ПРОДАЖА [12:03:22]line ТРК (МРК, ГНК) : 34 [12:03:22]line Товар: 2710194800 [12:03:22]line ДТ-К-5 [12:03:22]line 39.380 * 76.20 [12:03:22]line = 3000.76 [12:03:22]line НДС 12% НСП 1% [12:03:22]line > о реализуемом товаре [12:03:22]line ОКРУГЛЕНИЕ: -0.76 [12:03:22]line ИТОГО: 3000.00 [12:03:22]line НСП 1% : 26.55 [12:03:22]line НДС 12% : 318.66 [12:03:22]line Наличными: 0.00 [12:03:22]line Безнал.: 3000.00 [12:03:22]line Место: АЗС № 134 "Партнер Нефть" [12:03:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:03:22]line СНО: Общий режим [12:03:22]line Чек 135 29.07.2024 12:03 [12:03:22]line Смена: 434 ФФД: 1.0 [12:03:22]line ЗНМ: 0300000044 [12:03:22]line РНМ: 0000000000092660 [12:03:22]line Версия ККМ: 001 [12:03:22]line Платежная система: O! деньги [12:03:22]line ФМ: 0000000000874939 [12:03:22]line ФД: 118759 [12:03:22]line ФПД: 167111610502441 [12:03:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T120326&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118759&fm=167111610502441&tin=02508201610067®Number=0000000000092660&sum=300000 [12:03:22]written 0, free lines is 4095 [12:03:22]OFD Sender: Processing packet 118759 [packets to send 86, broken 85] [12:03:22]ProducePacketName [12:03:22]name=ofd_packets/00118759 [12:03:22]OFD Sender: To server: pG, [12:03:22]CommunicateWithHost lk.salyk.kg:30040 [12:03:22]ConnectInit lk.salyk.kg [12:03:22]Connected sock=10 [12:03:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F1 EB 04 01 72 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 0E 85 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 CF 01 00 35 04 06 00 97 FC B4 2E 8D 29 14 FA 26 51 66 AD FA 93 [12:03:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 16 E2 47 00 33 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 34 39 33 39 10 04 04 00 E7 CF 01 00 F4 03 04 00 9B 32 A7 66 B6 04 01 00 00 BC A6 80 75 93 50 8F 8C [12:03:22]CommunicateWithHost err = 0 [12:03:22]CheckOFDResponse [12:03:22]1017 (14) - 77093643461234 [12:03:22]1041 (16) - 0000000000874939 [12:03:22]1040 (4) - 118759 [12:03:22]1012 (4) - 29.07.2024 06:11 [12:03:22]1206 (1) - 0 [12:03:22]OFD Sender: Remove packet 118759 [12:03:22]ProducePacketName [12:03:22]name=ofd_packets/00118759 [12:03:22]NVStorageDeleteData [12:03:22]Write to MH i2c: 01 00 00 89 50 D9 [12:03:22]Write i2c OK [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: 01 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: 01 07 00 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: 01 07 00 89 50 00 00 00 00 00 E7 0C D3 [12:03:22]RasterBufferAndPrint [12:03:22]line [12:03:22]line [12:03:22]line [12:03:22]line [12:03:22]line [12:03:22]written 0, free lines is 3310 [12:03:22]MH_Cut [12:03:22]Write to MH i2c: D1 01 00 90 50 01 B2 [12:03:22]Write i2c OK [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: D1 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: D1 01 00 [12:03:22]MH_I2C_Read... [12:03:22]Read from MH i2c: D1 01 00 90 50 00 B1 [12:03:22]Write to MH i2c: 01 00 00 91 50 E1 [12:03:22]Write i2c OK [12:03:22]MH_I2C_Read... [12:03:23]OFD Sender: No OFD packet to send [12:03:23]*** Cut start [12:03:23]*** Partial cut [12:03:23]*** CUTSNS_PIN = 1 [12:03:23]*** CUTSNS_PIN = 0 [12:03:23]*** Brake cut motor [12:03:23]Read from MH i2c: 01 [12:03:23]MH_I2C_Read... [12:03:23]*** Stop cut motor [12:03:23]*** Cut end [12:03:23]Read from MH i2c: 01 07 00 [12:03:23]MH_I2C_Read... [12:03:23]Read from MH i2c: 01 07 00 91 50 00 00 00 00 00 FF 0F F6 [12:03:23]process_action close_receipt done [12:03:23]requested_data is exist [12:03:23]produce_requested_data [12:03:23]requested_item fm.sn is exist - process it [12:03:23]wFMCommunicate request_size=4 [12:03:23]MH_SAM_APDU [12:03:23]CAPDU: 80 11 00 00 [12:03:23]Write to MH i2c: E2 08 00 92 50 80 11 00 00 00 00 00 00 5C [12:03:23]Write i2c OK [12:03:23]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 [12:03:24]MH_I2C_Read... [12:03:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:24]Read from MH i2c: E2 17 00 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 17 00 92 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B7 [12:03:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:03:24]wFMCommunicate OK [12:03:24]requested_item fd.num is exist - process it [12:03:24]SAM_PROTO_GetFieldsCounters [12:03:24]wFMCommunicate request_size=4 [12:03:24]MH_SAM_APDU [12:03:24]CAPDU: 80 13 00 00 [12:03:24]Write to MH i2c: E2 08 00 93 50 80 13 00 00 00 00 00 00 5F [12:03:24]Write i2c OK [12:03:24]MH_I2C_Read... [12:03:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:24]Read from MH i2c: E2 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 62 00 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 62 00 93 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E7 CF 01 00 0E 04 04 00 B2 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 85 [12:03: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E7 CF 01 00 0E 04 04 00 B2 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 [12:03:24]wFMCommunicate OK [12:03:24]SAM_PROTO_GetFieldsCounters done [12:03:24]requested_item shift.num is exist - process it [12:03:24]requested_item shift.opened is exist - process it [12:03:24]req_shift_opened [12:03:24]FM_GetShiftState [12:03:24]SAM_PROTO_GetShiftState [12:03:24]wFMCommunicate request_size=4 [12:03:24]MH_SAM_APDU [12:03:24]CAPDU: 80 13 01 00 [12:03:24]Write to MH i2c: E2 08 00 94 50 80 13 01 00 00 00 00 00 61 [12:03:24]Write i2c OK [12:03:24]MH_I2C_Read... [12:03:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:24]Read from MH i2c: E2 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 0E 00 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 0E 00 94 50 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 8F [12:03:24]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:03:24]wFMCommunicate OK [12:03:24]SAM_PROTO_GetShiftState done [12:03:24]FM_GetShiftState done [12:03:24]req_shift_opened done [12:03:24]requested_item shift.open_date is exist - process it [12:03:24]req_shift_open_date [12:03:24]req_shift_open_date done [12:03:24]produce_requested_data done [12:03:24]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118759,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [12:03:24]process_action_free close_receipt [12:03:24]json_value_free [12:03:24]json_value_free done [12:03:24]process_json_proto returns [12:03:24]Send response to host [12:03:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118759,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [12:03:24]free response buf [12:03:24]execute_script done [12:03:24]execute_script returns [12:03:24]free content buf [12:03:24]Sock 11.Close socket [12:03:24]Sock 11.Thread stoped [12:03:28]OFD Sender: No OFD packet to send [12:03:32]accept exits with 7 [12:03:32]New connection [12:03:32]New thread 3067383140 created [12:03:32]Thread 3067239780 joined [12:03:32]Waiting for new connection... [12:03:32] Sock 7.Parse request [12:03:32]Sock 7.Check first char [12:03:32]Sock 7.First char is OK [12:03:32]request: POST /json_proto HTTP/1.0 [12:03:32]Method: POST [12:03:32]URL: /json_proto [12:03:32]Method is POST - this is cgi request [12:03:32]url: /json_proto [12:03:32]query_string will be loaded in cgi processing [12:03:32]execute_cgi json_proto POST (null) [12:03:32]execute_cgi path=json_proto method=POST [12:03:32]POST find Content-Length [12:03:32]Host: 172.17.45.7:8080 [12:03:32]Content-Length: 679 [12:03:32]Content-Type: application/json [12:03:32] [12:03:32]POST finish read [12:03:32]Found Content-Length = 679 [12:03:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:32]execute_script... [12:03:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:32]POST & json_proto [12:03:32]process_json_proto [12:03:32]json parsed OK: [12:03:32]protocol is kg_v1.0 [12:03:32]action value=close_receipt [12:03:32]process_action close_receipt [12:03:32]cmd_close_receipt [12:03:32]MH_GetDate [12:03:32]Write to MH i2c: F0 00 00 95 50 D4 [12:03:32]Write i2c OK [12:03:32]MH_I2C_Read... [12:03:32]Read from MH i2c: F0 [12:03:32]MH_I2C_Read... [12:03:32]Read from MH i2c: F0 09 00 [12:03:32]MH_I2C_Read... [12:03:32]Read from MH i2c: F0 09 00 95 50 00 19 85 A7 66 90 0F 3E 66 CB [12:03:32]GetLastDocTimeStamp 1722254606 [12:03:32]current date 1722254617 [12:03:32]FM_GetShiftState [12:03:32]SAM_PROTO_GetShiftState [12:03:32]wFMCommunicate request_size=4 [12:03:32]MH_SAM_APDU [12:03:32]CAPDU: 80 13 01 00 [12:03:32]Write to MH i2c: E2 08 00 96 50 80 13 01 00 00 00 00 00 63 [12:03:32]Write i2c OK [12:03:32]MH_I2C_Read... [12:03:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:32]Read from MH i2c: E2 [12:03:32]MH_I2C_Read... [12:03:32]Read from MH i2c: E2 0E 00 [12:03:32]MH_I2C_Read... [12:03:32]Read from MH i2c: E2 0E 00 96 50 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 91 [12:03:32]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:03:32]wFMCommunicate OK [12:03:32]SAM_PROTO_GetShiftState done [12:03:32]FM_GetShiftState done [12:03:32]opened in 1722211641 [12:03:32]opened+sec_in_day 1722298041 [12:03:32]quantity*price = 100050 [12:03:32]sum+1 = 100052 [12:03:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 136 29.07.2024 12:03 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118760 ФПД: 279124159563487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T120337&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118760&fm=279124159563487&tin=02508201610067®Number=0000000000092660&sum=100000 [12:03:33]StoreToDocumentArchive [12:03:33]shift 434 fd 118760 [12:03:33]save to /storage/0434/doc_00118760 [12:03:33]save last doc name /storage/0434/doc_00118760 to /storage/kkm_last_doc_name [12:03:33]save OK [12:03:33]Clear old archive folders... [12:03:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:03:33]tlvbuf is B6FC1270 [12:03:33]SAM_PROTO_ClearQueue [12:03:33]wFMCommunicate request_size=4 [12:03:33]MH_SAM_APDU [12:03:33]CAPDU: 80 09 00 00 [12:03:33]Write to MH i2c: E2 08 00 A3 50 80 09 00 00 00 00 00 00 65 [12:03:33]Write i2c OK [12:03:33]MH_I2C_Read... [12:03:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:33]Read from MH i2c: E2 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: E2 03 00 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: E2 03 00 A3 50 00 90 00 67 [12:03:33]RAPDU: 90 00 [12:03:33]wFMCommunicate OK [12:03:33]SAM_PROTO_ClearQueue done [12:03:33]KKMCreateOFDPacket [12:03:33]OFDProtocolAddRootSTLVToBuf [12:03:33]FM_MakeSignedData [12:03:33]FM_MakeSignedData [12:03:33]SAM_PROTO_SignData [12:03:33]wFMCommunicate request_size=4 [12:03:33]MH_SAM_APDU [12:03:33]CAPDU: 80 0D 01 02 [12:03:33]Write to MH i2c: E2 08 00 A4 50 80 0D 01 02 00 00 00 00 6D [12:03:33]Write i2c OK [12:03:33]MH_I2C_Read... [12:03:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:33]Read from MH i2c: E2 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: E2 03 00 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: E2 03 00 A4 50 00 90 00 68 [12:03:33]RAPDU: 90 00 [12:03:33]wFMCommunicate OK [12:03:33]wFMCommunicate request_size=255 [12:03:33]MH_SAM_APDU [12:03:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 19 85 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E8 CF 01 00 35 04 06 00 FD DC A8 61 [12:03:33]Write to MH i2c: E2 02 01 A5 50 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 19 85 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E8 CF 01 00 35 04 06 00 FD DC A8 61 00 00 7D [12:03:33]Write i2c OK [12:03:33]MH_I2C_Read... [12:03:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:33]Read from MH i2c: E2 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: E2 03 00 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: E2 03 00 A5 50 00 90 00 69 [12:03:33]RAPDU: 90 00 [12:03:33]wFMCommunicate OK [12:03:33]wFMCommunicate request_size=7 [12:03:33]MH_SAM_APDU [12:03:33]CAPDU: 80 0D 02 02 02 06 DF [12:03:33]Write to MH i2c: E2 0A 00 A6 50 80 0D 02 02 02 00 06 DF 00 00 59 [12:03:33]Write i2c OK [12:03:33]MH_I2C_Read... [12:03:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:33]Read from MH i2c: E2 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: E2 03 00 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: E2 03 00 A6 50 00 90 00 6A [12:03:33]RAPDU: 90 00 [12:03:33]wFMCommunicate OK [12:03:33]wFMCommunicate request_size=4 [12:03:33]MH_SAM_APDU [12:03:33]CAPDU: 80 0D 03 02 [12:03:33]Write to MH i2c: E2 08 00 A7 50 80 0D 03 02 00 00 00 00 72 [12:03:33]Write i2c OK [12:03:33]MH_I2C_Read... [12:03:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:33]Read from MH i2c: E2 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: E2 0B 00 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: E2 0B 00 A7 50 00 EB 8A A9 83 81 87 E2 C7 90 00 C5 [12:03:33]RAPDU: EB 8A A9 83 81 87 E2 C7 90 00 [12:03:33]wFMCommunicate OK [12:03:33]SAM_PROTO_SignData done [12:03:33]FM_MakeSignedData done [12:03:33]CreateOFDProtocolMessage [12:03:33]wFMCommunicate request_size=4 [12:03:33]MH_SAM_APDU [12:03:33]CAPDU: 80 11 00 00 [12:03:33]Write to MH i2c: E2 08 00 A8 50 80 11 00 00 00 00 00 00 72 [12:03:33]Write i2c OK [12:03:33]MH_I2C_Read... [12:03:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:33]Read from MH i2c: E2 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: E2 17 00 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: E2 17 00 A8 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CD [12:03:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:03:33]wFMCommunicate OK [12:03:33]CreateOFDProtocolMessage done [12:03:33]OFDSenderStorePacket 118760 [12:03:33]StoreOFDPacket docnum=118760 [12:03:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 62 09 04 01 42 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 19 85 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E8 CF 01 00 35 04 06 00 FD DC A8 61 06 DF EB 8A A9 83 81 87 E2 C7 [12:03:33]CheckFolder [12:03:33]dirname=/storage/ofd_packets [12:03:33]CheckFolder done [12:03:33]ProducePacketName [12:03:33]name=ofd_packets/00118760 [12:03:33]NVStorageSaveData ofd_packets/00118760 [12:03:33]File name is /storage/ofd_packets/00118760 [12:03:33]Write 298 bytes [12:03:33]NVStorageSaveData done [12:03:33]OFDSenderStorePacket done [12:03:33]KKMCreateOFDPacket done [12:03:33]NVStorageSaveData kkm_last_timestamp [12:03:33]File name is /storage/kkm_last_timestamp [12:03:33]Write 4 bytes [12:03:33]NVStorageSaveData done [12:03:33]ExternCall_PrintAddStr [12:03:33]wPrintStart [12:03:33]Write to MH i2c: 01 00 00 A9 50 F9 [12:03:33]Write i2c OK [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: 01 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: 01 07 00 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: 01 07 00 A9 50 00 00 00 00 00 FF 0F 0E [12:03:33]RasterBufferAndPrint [12:03:33]line Счет N : (1)949646 [12:03:33]line ИНН: 02508201610067 [12:03:33]line Контрольно-Кассовый Чек [12:03:33]line ПРОДАЖА [12:03:33]line ТРК (МРК, ГНК) : 64 [12:03:33]line Товар: 2710194800 [12:03:33]line ДТ-К-5 [12:03:33]line 13.130 * 76.20 [12:03:33]line = 1000.51 [12:03:33]line НДС 12% НСП 1% [12:03:33]line > о реализуемом товаре [12:03:33]line ОКРУГЛЕНИЕ: -0.51 [12:03:33]line ИТОГО: 1000.00 [12:03:33]line Внесено: 1000.00 [12:03:33]line СДАЧА: 0.00 [12:03:33]line НСП 1% : 8.85 [12:03:33]line НДС 12% : 106.25 [12:03:33]line Наличными: 1000.00 [12:03:33]line Безнал.: 0.00 [12:03:33]line Место: АЗС № 134 "Партнер Нефть" [12:03:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:03:33]line СНО: Общий режим [12:03:33]line Чек 136 29.07.2024 12:03 [12:03:33]line Смена: 434 ФФД: 1.0 [12:03:33]line ЗНМ: 0300000044 [12:03:33]line РНМ: 0000000000092660 [12:03:33]line Версия ККМ: 001 [12:03:33]line ФМ: 0000000000874939 [12:03:33]line ФД: 118760 [12:03:33]line ФПД: 279124159563487 [12:03:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T120337&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118760&fm=279124159563487&tin=02508201610067®Number=0000000000092660&sum=100000 [12:03:33]OFD Sender: Processing packet 118760 [packets to send 86, broken 85] [12:03:33]ProducePacketName [12:03:33]name=ofd_packets/00118760 [12:03:33]OFD Sender: To server: pG, [12:03:33]CommunicateWithHost lk.salyk.kg:30040 [12:03:33]ConnectInit lk.salyk.kg [12:03:33]written 0, free lines is 4095 [12:03:33]Connected sock=10 [12:03:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 62 09 04 01 42 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 19 85 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E8 CF 01 00 35 04 06 00 FD DC A8 61 06 DF EB 8A A9 83 81 87 E2 C7 [12:03:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EE D6 47 00 6D 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 34 39 33 39 10 04 04 00 E8 CF 01 00 F4 03 04 00 A7 32 A7 66 B6 04 01 00 00 9B C0 02 3D 63 44 C1 6F [12:03:34]CommunicateWithHost err = 0 [12:03:34]CheckOFDResponse [12:03:34]1017 (14) - 77093643461234 [12:03:34]1041 (16) - 0000000000874939 [12:03:34]1040 (4) - 118760 [12:03:34]1012 (4) - 29.07.2024 06:11 [12:03:34]1206 (1) - 0 [12:03:34]OFD Sender: Remove packet 118760 [12:03:34]ProducePacketName [12:03:34]name=ofd_packets/00118760 [12:03:34]NVStorageDeleteData [12:03:34]Write to MH i2c: 01 00 00 D3 50 23 [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: 01 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: 01 07 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: 01 07 00 D3 50 00 00 00 00 00 F2 0C 28 [12:03:34]RasterBufferAndPrint [12:03:34]line [12:03:34]line [12:03:34]line [12:03:34]line [12:03:34]line [12:03:34]written 0, free lines is 3326 [12:03:34]MH_Cut [12:03:34]Write to MH i2c: D1 01 00 DA 50 01 FC [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: D1 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: D1 01 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: D1 01 00 DA 50 00 FB [12:03:34]Write to MH i2c: 01 00 00 DB 50 2B [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]OFD Sender: No OFD packet to send [12:03:34]*** Cut start [12:03:34]*** Partial cut [12:03:34]*** CUTSNS_PIN = 1 [12:03:34]*** CUTSNS_PIN = 0 [12:03:35]*** Brake cut motor [12:03:35]Read from MH i2c: 01 [12:03:35]MH_I2C_Read... [12:03:35]*** Stop cut motor [12:03:35]*** Cut end [12:03:35]Read from MH i2c: 01 07 00 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: 01 07 00 DB 50 00 00 00 00 00 FF 0F 40 [12:03:35]process_action close_receipt done [12:03:35]requested_data is exist [12:03:35]produce_requested_data [12:03:35]requested_item fm.sn is exist - process it [12:03:35]wFMCommunicate request_size=4 [12:03:35]MH_SAM_APDU [12:03:35]CAPDU: 80 11 00 00 [12:03:35]Write to MH i2c: E2 08 00 DC 50 80 11 00 00 00 00 00 00 A6 [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:35]Read from MH i2c: E2 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: E2 17 00 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: E2 17 00 DC 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 01 [12:03:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:03:35]wFMCommunicate OK [12:03:35]requested_item fd.num is exist - process it [12:03:35]SAM_PROTO_GetFieldsCounters [12:03:35]wFMCommunicate request_size=4 [12:03:35]MH_SAM_APDU [12:03:35]CAPDU: 80 13 00 00 [12:03:35]Write to MH i2c: E2 08 00 DD 50 80 13 00 00 00 00 00 00 A9 [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:35]Read from MH i2c: E2 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: E2 62 00 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: E2 62 00 DD 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E8 CF 01 00 0E 04 04 00 B2 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 D3 [12:03: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E8 CF 01 00 0E 04 04 00 B2 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 [12:03:35]wFMCommunicate OK [12:03:35]SAM_PROTO_GetFieldsCounters done [12:03:35]requested_item shift.num is exist - process it [12:03:35]requested_item shift.opened is exist - process it [12:03:35]req_shift_opened [12:03:35]FM_GetShiftState [12:03:35]SAM_PROTO_GetShiftState [12:03:35]wFMCommunicate request_size=4 [12:03:35]MH_SAM_APDU [12:03:35]CAPDU: 80 13 01 00 [12:03:35]Write to MH i2c: E2 08 00 DE 50 80 13 01 00 00 00 00 00 AB [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:35]Read from MH i2c: E2 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: E2 0E 00 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: E2 0E 00 DE 50 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D9 [12:03:35]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:03:35]wFMCommunicate OK [12:03:35]SAM_PROTO_GetShiftState done [12:03:35]FM_GetShiftState done [12:03:35]req_shift_opened done [12:03:35]requested_item shift.open_date is exist - process it [12:03:35]req_shift_open_date [12:03:35]req_shift_open_date done [12:03:35]produce_requested_data done [12:03:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118760,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [12:03:35]process_action_free close_receipt [12:03:35]json_value_free [12:03:35]json_value_free done [12:03:35]process_json_proto returns [12:03:35]Send response to host [12:03:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118760,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [12:03:35]free response buf [12:03:35]execute_script done [12:03:35]execute_script returns [12:03:35]free content buf [12:03:35]Sock 7.Close socket [12:03:35]Sock 7.Thread stoped [12:03:37]accept exits with 9 [12:03:37]New connection [12:03:37]New thread 3067239780 created [12:03:37]Thread 3067383140 joined [12:03:37]Waiting for new connection... [12:03:37] Sock 9.Parse request [12:03:37]Sock 9.Check first char [12:03:37]Sock 9.First char is OK [12:03:37]request: POST /json_proto HTTP/1.0 [12:03:37]Method: POST [12:03:37]URL: /json_proto [12:03:37]Method is POST - this is cgi request [12:03:37]url: /json_proto [12:03:37]query_string will be loaded in cgi processing [12:03:37]execute_cgi json_proto POST (null) [12:03:37]execute_cgi path=json_proto method=POST [12:03:37]POST find Content-Length [12:03:37]Host: 172.17.45.7:8080 [12:03:37]Content-Length: 736 [12:03:37]Content-Type: application/json [12:03:37] [12:03:37]POST finish read [12:03:37]Found Content-Length = 736 [12:03:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118760, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:37]execute_script... [12:03:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118760, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:37]POST & json_proto [12:03:37]process_json_proto [12:03:37]json parsed OK: [12:03:37]protocol is kg_v1.0 [12:03:37]action value=close_receipt [12:03:37]process_action close_receipt [12:03:37]cmd_close_receipt [12:03:37]MH_GetDate [12:03:37]Write to MH i2c: F0 00 00 DF 50 1E [12:03:37]Write i2c OK [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: F0 [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: F0 09 00 [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: F0 09 00 DF 50 00 1E 85 A7 66 90 0F 3E 66 1A [12:03:37]GetLastDocTimeStamp 1722254617 [12:03:37]current date 1722254622 [12:03:37]FM_GetShiftState [12:03:37]SAM_PROTO_GetShiftState [12:03:37]wFMCommunicate request_size=4 [12:03:37]MH_SAM_APDU [12:03:37]CAPDU: 80 13 01 00 [12:03:37]Write to MH i2c: E2 08 00 E0 50 80 13 01 00 00 00 00 00 AD [12:03:37]Write i2c OK [12:03:37]MH_I2C_Read... [12:03:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:37]Read from MH i2c: E2 [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: E2 0E 00 [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: E2 0E 00 E0 50 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 DB [12:03:37]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:03:37]wFMCommunicate OK [12:03:37]SAM_PROTO_GetShiftState done [12:03:37]FM_GetShiftState done [12:03:37]opened in 1722211641 [12:03:37]opened+sec_in_day 1722298041 [12:03:37]quantity*price = 100050 [12:03:37]sum+1 = 100052 [12:03:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 137 29.07.2024 12:03 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 118760 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 118761 ФПД: 25540994478788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T120342&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118761&fm=25540994478788&tin=02508201610067®Number=0000000000092660&sum=100000 [12:03:39]StoreToDocumentArchive [12:03:39]shift 434 fd 118761 [12:03:39]save to /storage/0434/doc_00118761 [12:03:39]save last doc name /storage/0434/doc_00118761 to /storage/kkm_last_doc_name [12:03:39]save OK [12:03:39]Clear old archive folders... [12:03:39]ProcessDocumentItem done err = 0, tmpTLVsize=276 [12:03:39]tlvbuf is 01FEE360 [12:03:39]SAM_PROTO_ClearQueue [12:03:39]wFMCommunicate request_size=4 [12:03:39]MH_SAM_APDU [12:03:39]CAPDU: 80 09 00 00 [12:03:39]Write to MH i2c: E2 08 00 EF 50 80 09 00 00 00 00 00 00 B1 [12:03:39]Write i2c OK [12:03:39]MH_I2C_Read... [12:03:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:39]Read from MH i2c: E2 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 03 00 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 03 00 EF 50 00 90 00 B3 [12:03:39]RAPDU: 90 00 [12:03:39]wFMCommunicate OK [12:03:39]SAM_PROTO_ClearQueue done [12:03:39]KKMCreateOFDPacket [12:03:39]OFDProtocolAddRootSTLVToBuf [12:03:39]FM_MakeSignedData [12:03:39]FM_MakeSignedData [12:03:39]SAM_PROTO_SignData [12:03:39]wFMCommunicate request_size=4 [12:03:39]MH_SAM_APDU [12:03:39]CAPDU: 80 0D 01 02 [12:03:39]Write to MH i2c: E2 08 00 F0 50 80 0D 01 02 00 00 00 00 B9 [12:03:39]Write i2c OK [12:03:39]MH_I2C_Read... [12:03:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:39]Read from MH i2c: E2 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 03 00 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 03 00 F0 50 00 90 00 B4 [12:03:39]RAPDU: 90 00 [12:03:39]wFMCommunicate OK [12:03:39]wFMCommunicate request_size=255 [12:03:39]MH_SAM_APDU [12:03:39]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 1E 85 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 E8 CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 [12:03:39]Write to MH i2c: E2 02 01 F1 50 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 1E 85 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 E8 CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 00 00 DF [12:03:39]Write i2c OK [12:03:39]MH_I2C_Read... [12:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:39]Read from MH i2c: E2 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 03 00 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 03 00 F1 50 00 90 00 B5 [12:03:39]RAPDU: 90 00 [12:03:39]wFMCommunicate OK [12:03:39]wFMCommunicate request_size=35 [12:03:39]MH_SAM_APDU [12:03:39]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 CF 01 00 35 04 06 00 17 3A B9 E7 32 C4 [12:03:39]Write to MH i2c: E2 26 00 F2 50 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 CF 01 00 35 04 06 00 17 3A B9 E7 32 C4 00 00 57 [12:03:39]Write i2c OK [12:03:39]MH_I2C_Read... [12:03:39]OFD Sender: No OFD packet to send [12:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:39]Read from MH i2c: E2 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 03 00 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 03 00 F2 50 00 90 00 B6 [12:03:39]RAPDU: 90 00 [12:03:39]wFMCommunicate OK [12:03:39]wFMCommunicate request_size=4 [12:03:39]MH_SAM_APDU [12:03:39]CAPDU: 80 0D 03 02 [12:03:39]Write to MH i2c: E2 08 00 F3 50 80 0D 03 02 00 00 00 00 BE [12:03:39]Write i2c OK [12:03:39]MH_I2C_Read... [12:03:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:39]Read from MH i2c: E2 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 0B 00 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 0B 00 F3 50 00 74 56 A6 B0 4E 47 6E 54 90 00 36 [12:03:39]RAPDU: 74 56 A6 B0 4E 47 6E 54 90 00 [12:03:39]wFMCommunicate OK [12:03:39]SAM_PROTO_SignData done [12:03:39]FM_MakeSignedData done [12:03:39]CreateOFDProtocolMessage [12:03:39]wFMCommunicate request_size=4 [12:03:39]MH_SAM_APDU [12:03:39]CAPDU: 80 11 00 00 [12:03:39]Write to MH i2c: E2 08 00 F4 50 80 11 00 00 00 00 00 00 BE [12:03:39]Write i2c OK [12:03:39]MH_I2C_Read... [12:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:39]Read from MH i2c: E2 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 17 00 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 17 00 F4 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 19 [12:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:03:39]wFMCommunicate OK [12:03:39]CreateOFDProtocolMessage done [12:03:39]OFDSenderStorePacket 118761 [12:03:39]StoreOFDPacket docnum=118761 [12:03:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 F3 C1 20 01 A5 55 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 1E 85 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 E8 CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 CF 01 00 35 04 06 00 17 3A B9 E7 32 C4 74 56 A6 B0 4E 47 6E 54 [12:03:39]CheckFolder [12:03:39]dirname=/storage/ofd_packets [12:03:39]CheckFolder done [12:03:39]ProducePacketName [12:03:39]name=ofd_packets/00118761 [12:03:39]NVStorageSaveData ofd_packets/00118761 [12:03:39]File name is /storage/ofd_packets/00118761 [12:03:39]Write 326 bytes [12:03:39]NVStorageSaveData done [12:03:39]OFDSenderStorePacket done [12:03:39]KKMCreateOFDPacket done [12:03:39]NVStorageSaveData kkm_last_timestamp [12:03:39]File name is /storage/kkm_last_timestamp [12:03:39]Write 4 bytes [12:03:39]NVStorageSaveData done [12:03:39]ExternCall_PrintAddStr [12:03:39]wPrintStart [12:03:39]Write to MH i2c: 01 00 00 F5 50 45 [12:03:39]Write i2c OK [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: 01 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: 01 07 00 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: 01 07 00 F5 50 00 00 00 00 00 FF 0F 5A [12:03:39]RasterBufferAndPrint [12:03:39]line Счет N : (1)949646 [12:03:39]line ИНН: 02508201610067 [12:03:39]line Контрольно-Кассовый Чек [12:03:39]line ВОЗВРАТ ПРОДАЖИ [12:03:39]line ТРК (МРК, ГНК) : 64 [12:03:39]line Товар: 2710194800 [12:03:39]line ДТ-К-5 [12:03:39]line 13.130 * 76.20 [12:03:39]line = 1000.51 [12:03:39]line НДС 12% НСП 1% [12:03:39]line > о реализуемом товаре [12:03:39]line ОКРУГЛЕНИЕ: -0.51 [12:03:39]line ИТОГО: 1000.00 [12:03:39]line НСП 1% : 8.85 [12:03:39]line НДС 12% : 106.25 [12:03:39]line Наличными: 1000.00 [12:03:39]line Безнал.: 0.00 [12:03:39]line Место: АЗС № 134 "Партнер Нефть" [12:03:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:03:39]line СНО: Общий режим [12:03:39]line Чек 137 29.07.2024 12:03 [12:03:39]line Смена: 434 ФФД: 1.0 [12:03:39]line ЗНМ: 0300000044 [12:03:39]line РНМ: 0000000000092660 [12:03:39]line Версия ККМ: 001 [12:03:39]line ФД осн.: 118760 [12:03:39]line ФМ осн.: 0000000000874939 [12:03:39]line ФМ: 0000000000874939 [12:03:39]line ФД: 118761 [12:03:39]line ФПД: 25540994478788 [12:03:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T120342&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118761&fm=25540994478788&tin=02508201610067®Number=0000000000092660&sum=100000 [12:03:39]written 0, free lines is 4095 [12:03:39]OFD Sender: Processing packet 118761 [packets to send 86, broken 85] [12:03:39]ProducePacketName [12:03:39]name=ofd_packets/00118761 [12:03:39]OFD Sender: To server: pG, [12:03:39]CommunicateWithHost lk.salyk.kg:30040 [12:03:39]ConnectInit lk.salyk.kg [12:03:39]Connected sock=10 [12:03:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 F3 C1 20 01 A5 55 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 1E 85 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 E8 CF 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 CF 01 00 35 04 06 00 17 3A B9 E7 32 C4 74 56 A6 B0 4E 47 6E 54 [12:03:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E4 1F 47 00 03 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 34 39 33 39 10 04 04 00 E9 CF 01 00 F4 03 04 00 AD 32 A7 66 B6 04 01 00 00 94 03 8A 8A 9D 14 BC 8E [12:03:40]CommunicateWithHost err = 0 [12:03:40]CheckOFDResponse [12:03:40]1017 (14) - 77093643461234 [12:03:40]1041 (16) - 0000000000874939 [12:03:40]1040 (4) - 118761 [12:03:40]1012 (4) - 29.07.2024 06:11 [12:03:40]1206 (1) - 0 [12:03:40]OFD Sender: Remove packet 118761 [12:03:40]ProducePacketName [12:03:40]name=ofd_packets/00118761 [12:03:40]NVStorageDeleteData [12:03:40]Write to MH i2c: 01 00 00 1F 51 70 [12:03:40]Write i2c OK [12:03:40]MH_I2C_Read... [12:03:40]Read from MH i2c: 01 [12:03:40]MH_I2C_Read... [12:03:40]Read from MH i2c: 01 07 00 [12:03:40]MH_I2C_Read... [12:03:40]Read from MH i2c: 01 07 00 1F 51 00 00 00 00 00 00 0D 84 [12:03:40]RasterBufferAndPrint [12:03:40]line [12:03:40]line [12:03:40]line [12:03:40]line [12:03:40]line [12:03:40]written 0, free lines is 3346 [12:03:40]MH_Cut [12:03:40]Write to MH i2c: D1 01 00 26 51 01 49 [12:03:40]Write i2c OK [12:03:40]MH_I2C_Read... [12:03:40]Read from MH i2c: D1 [12:03:40]MH_I2C_Read... [12:03:40]Read from MH i2c: D1 01 00 [12:03:40]MH_I2C_Read... [12:03:40]Read from MH i2c: D1 01 00 26 51 00 48 [12:03:40]Write to MH i2c: 01 00 00 27 51 78 [12:03:40]Write i2c OK [12:03:40]MH_I2C_Read... [12:03:40]OFD Sender: No OFD packet to send [12:03:40]*** Cut start [12:03:40]*** Partial cut [12:03:40]*** CUTSNS_PIN = 1 [12:03:41]*** CUTSNS_PIN = 0 [12:03:41]*** Brake cut motor [12:03:41]Read from MH i2c: 01 [12:03:41]MH_I2C_Read... [12:03:41]*** Stop cut motor [12:03:41]*** Cut end [12:03:41]Read from MH i2c: 01 07 00 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: 01 07 00 27 51 00 00 00 00 00 FF 0F 8D [12:03:41]process_action close_receipt done [12:03:41]requested_data is exist [12:03:41]produce_requested_data [12:03:41]requested_item fm.sn is exist - process it [12:03:41]wFMCommunicate request_size=4 [12:03:41]MH_SAM_APDU [12:03:41]CAPDU: 80 11 00 00 [12:03:41]Write to MH i2c: E2 08 00 28 51 80 11 00 00 00 00 00 00 F3 [12:03:41]Write i2c OK [12:03:41]MH_I2C_Read... [12:03:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:41]Read from MH i2c: E2 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: E2 17 00 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: E2 17 00 28 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4E [12:03:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:03:41]wFMCommunicate OK [12:03:41]requested_item fd.num is exist - process it [12:03:41]SAM_PROTO_GetFieldsCounters [12:03:41]wFMCommunicate request_size=4 [12:03:41]MH_SAM_APDU [12:03:41]CAPDU: 80 13 00 00 [12:03:41]Write to MH i2c: E2 08 00 29 51 80 13 00 00 00 00 00 00 F6 [12:03:41]Write i2c OK [12:03:41]MH_I2C_Read... [12:03:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:41]Read from MH i2c: E2 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: E2 62 00 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: E2 62 00 29 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E9 CF 01 00 0E 04 04 00 B2 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 24 [12:03:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E9 CF 01 00 0E 04 04 00 B2 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 [12:03:41]wFMCommunicate OK [12:03:41]SAM_PROTO_GetFieldsCounters done [12:03:41]requested_item shift.num is exist - process it [12:03:41]requested_item shift.opened is exist - process it [12:03:41]req_shift_opened [12:03:41]FM_GetShiftState [12:03:41]SAM_PROTO_GetShiftState [12:03:41]wFMCommunicate request_size=4 [12:03:41]MH_SAM_APDU [12:03:41]CAPDU: 80 13 01 00 [12:03:41]Write to MH i2c: E2 08 00 2A 51 80 13 01 00 00 00 00 00 F8 [12:03:41]Write i2c OK [12:03:41]MH_I2C_Read... [12:03:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:41]Read from MH i2c: E2 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: E2 0E 00 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: E2 0E 00 2A 51 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 26 [12:03:41]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:03:41]wFMCommunicate OK [12:03:41]SAM_PROTO_GetShiftState done [12:03:41]FM_GetShiftState done [12:03:41]req_shift_opened done [12:03:41]requested_item shift.open_date is exist - process it [12:03:41]req_shift_open_date [12:03:41]req_shift_open_date done [12:03:41]produce_requested_data done [12:03:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118761,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [12:03:41]process_action_free close_receipt [12:03:41]json_value_free [12:03:41]json_value_free done [12:03:41]process_json_proto returns [12:03:41]Send response to host [12:03:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118761,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [12:03:41]free response buf [12:03:41]execute_script done [12:03:41]execute_script returns [12:03:41]free content buf [12:03:41]Sock 9.Close socket [12:03:41]Sock 9.Thread stoped [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:48]accept exits with 7 [12:06:48]New connection [12:06:48]New thread 3067383140 created [12:06:48]Thread 3067239780 joined [12:06:48]Waiting for new connection... [12:06:48] Sock 7.Parse request [12:06:48]Sock 7.Check first char [12:06:48]Sock 7.First char is OK [12:06:48]request: POST /json_proto HTTP/1.0 [12:06:48]Method: POST [12:06:48]URL: /json_proto [12:06:48]Method is POST - this is cgi request [12:06:48]url: /json_proto [12:06:48]query_string will be loaded in cgi processing [12:06:48]execute_cgi json_proto POST (null) [12:06:48]execute_cgi path=json_proto method=POST [12:06:48]POST find Content-Length [12:06:48]Host: 172.17.45.7:8080 [12:06:48]Content-Length: 682 [12:06:48]Content-Type: application/json [12:06:48] [12:06:48]POST finish read [12:06:48]Found Content-Length = 682 [12:06:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:48]execute_script... [12:06:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:48]POST & json_proto [12:06:48]process_json_proto [12:06:48]json parsed OK: [12:06:48]protocol is kg_v1.0 [12:06:48]action value=close_receipt [12:06:48]process_action close_receipt [12:06:48]cmd_close_receipt [12:06:48]MH_GetDate [12:06:48]Write to MH i2c: F0 00 00 2B 51 6B [12:06:48]Write i2c OK [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: F0 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: F0 09 00 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: F0 09 00 2B 51 00 DE 85 A7 66 90 0F 3E 66 27 [12:06:48]GetLastDocTimeStamp 1722254622 [12:06:48]current date 1722254814 [12:06:48]FM_GetShiftState [12:06:48]SAM_PROTO_GetShiftState [12:06:48]wFMCommunicate request_size=4 [12:06:48]MH_SAM_APDU [12:06:48]CAPDU: 80 13 01 00 [12:06:48]Write to MH i2c: E2 08 00 2C 51 80 13 01 00 00 00 00 00 FA [12:06:48]Write i2c OK [12:06:48]MH_I2C_Read... [12:06:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:48]Read from MH i2c: E2 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: E2 0E 00 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: E2 0E 00 2C 51 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 28 [12:06:48]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:06:48]wFMCommunicate OK [12:06:48]SAM_PROTO_GetShiftState done [12:06:48]FM_GetShiftState done [12:06:48]opened in 1722211641 [12:06:48]opened+sec_in_day 1722298041 [12:06:48]quantity*price = 100005 [12:06:48]sum+1 = 100006 [12:06:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 138 29.07.2024 12:06 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118762 ФПД: 57899182738235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T120654&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118762&fm=57899182738235&tin=02508201610067®Number=0000000000092660&sum=100000 [12:06:49]StoreToDocumentArchive [12:06:49]shift 434 fd 118762 [12:06:49]save to /storage/0434/doc_00118762 [12:06:49]save last doc name /storage/0434/doc_00118762 to /storage/kkm_last_doc_name [12:06:49]save OK [12:06:49]Clear old archive folders... [12:06:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:49]tlvbuf is 01E70AC0 [12:06:49]SAM_PROTO_ClearQueue [12:06:49]wFMCommunicate request_size=4 [12:06:49]MH_SAM_APDU [12:06:49]CAPDU: 80 09 00 00 [12:06:49]Write to MH i2c: E2 08 00 39 51 80 09 00 00 00 00 00 00 FC [12:06:49]Write i2c OK [12:06:49]MH_I2C_Read... [12:06:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:49]Read from MH i2c: E2 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 03 00 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 03 00 39 51 00 90 00 FE [12:06:49]RAPDU: 90 00 [12:06:49]wFMCommunicate OK [12:06:49]SAM_PROTO_ClearQueue done [12:06:49]KKMCreateOFDPacket [12:06:49]OFDProtocolAddRootSTLVToBuf [12:06:49]FM_MakeSignedData [12:06:49]FM_MakeSignedData [12:06:49]SAM_PROTO_SignData [12:06:49]wFMCommunicate request_size=4 [12:06:49]MH_SAM_APDU [12:06:49]CAPDU: 80 0D 01 02 [12:06:49]Write to MH i2c: E2 08 00 3A 51 80 0D 01 02 00 00 00 00 04 [12:06:49]Write i2c OK [12:06:49]MH_I2C_Read... [12:06:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:49]Read from MH i2c: E2 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 03 00 [12:06:49]MH_I2C_Read... [12:06:49]Read from MH i2c: E2 03 00 3A 51 00 90 00 FF [12:06:49]RAPDU: 90 00 [12:06:49]wFMCommunicate OK [12:06:49]wFMCommunicate request_size=255 [12:06:49]MH_SAM_APDU [12:06:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 DE 85 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA CF 01 00 35 04 06 00 34 [12:06:49]Write to MH i2c: E2 02 01 3B 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 DE 85 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA CF 01 00 35 04 06 00 34 00 00 B2 [12:06:49]Write i2c OK [12:06:49]MH_I2C_Read... [12:06:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:50]Read from MH i2c: E2 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 03 00 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 03 00 3B 51 00 90 00 00 [12:06:50]RAPDU: 90 00 [12:06:50]wFMCommunicate OK [12:06:50]wFMCommunicate request_size=10 [12:06:50]MH_SAM_APDU [12:06:50]CAPDU: 80 0D 02 02 05 A8 B4 38 4B 3B [12:06:50]Write to MH i2c: E2 0D 00 3C 51 80 0D 02 02 05 00 A8 B4 38 4B 3B 00 00 2B [12:06:50]Write i2c OK [12:06:50]MH_I2C_Read... [12:06:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:50]Read from MH i2c: E2 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 03 00 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 03 00 3C 51 00 90 00 01 [12:06:50]RAPDU: 90 00 [12:06:50]wFMCommunicate OK [12:06:50]wFMCommunicate request_size=4 [12:06:50]MH_SAM_APDU [12:06:50]CAPDU: 80 0D 03 02 [12:06:50]Write to MH i2c: E2 08 00 3D 51 80 0D 03 02 00 00 00 00 09 [12:06:50]Write i2c OK [12:06:50]MH_I2C_Read... [12:06:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:50]Read from MH i2c: E2 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 0B 00 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 0B 00 3D 51 00 39 11 F0 10 9A D4 4F 07 90 00 18 [12:06:50]RAPDU: 39 11 F0 10 9A D4 4F 07 90 00 [12:06:50]wFMCommunicate OK [12:06:50]SAM_PROTO_SignData done [12:06:50]FM_MakeSignedData done [12:06:50]CreateOFDProtocolMessage [12:06:50]wFMCommunicate request_size=4 [12:06:50]MH_SAM_APDU [12:06:50]CAPDU: 80 11 00 00 [12:06:50]Write to MH i2c: E2 08 00 3E 51 80 11 00 00 00 00 00 00 09 [12:06:50]Write i2c OK [12:06:50]MH_I2C_Read... [12:06:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:50]Read from MH i2c: E2 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 17 00 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 17 00 3E 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 64 [12:06:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:06:50]wFMCommunicate OK [12:06:50]CreateOFDProtocolMessage done [12:06:50]OFDSenderStorePacket 118762 [12:06:50]StoreOFDPacket docnum=118762 [12:06:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FF D3 07 01 D7 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 DE 85 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA CF 01 00 35 04 06 00 34 A8 B4 38 4B 3B 39 11 F0 10 9A D4 4F 07 [12:06:50]CheckFolder [12:06:50]dirname=/storage/ofd_packets [12:06:50]CheckFolder done [12:06:50]ProducePacketName [12:06:50]name=ofd_packets/00118762 [12:06:50]NVStorageSaveData ofd_packets/00118762 [12:06:50]File name is /storage/ofd_packets/00118762 [12:06:50]Write 301 bytes [12:06:50]NVStorageSaveData done [12:06:50]OFDSenderStorePacket done [12:06:50]KKMCreateOFDPacket done [12:06:50]NVStorageSaveData kkm_last_timestamp [12:06:50]File name is /storage/kkm_last_timestamp [12:06:50]Write 4 bytes [12:06:50]NVStorageSaveData done [12:06:50]ExternCall_PrintAddStr [12:06:50]wPrintStart [12:06:50]Write to MH i2c: 01 00 00 3F 51 90 [12:06:50]Write i2c OK [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: 01 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: 01 07 00 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: 01 07 00 3F 51 00 00 00 00 00 FF 0F A5 [12:06:50]RasterBufferAndPrint [12:06:50]line Счет N : (1)949647 [12:06:50]line ИНН: 02508201610067 [12:06:50]line Контрольно-Кассовый Чек [12:06:50]line ПРОДАЖА [12:06:50]line ТРК (МРК, ГНК) : 51 [12:06:50]line Товар: 2710124130 [12:06:50]line Аи-92-К-4 [12:06:50]line 14.750 * 67.80 [12:06:50]line = 1000.05 [12:06:50]line НДС 12% НСП 1% [12:06:50]line > о реализуемом товаре [12:06:50]line ОКРУГЛЕНИЕ: -0.05 [12:06:50]line ИТОГО: 1000.00 [12:06:50]line Внесено: 1000.00 [12:06:50]line СДАЧА: 0.00 [12:06:50]line НСП 1% : 8.85 [12:06:50]line НДС 12% : 106.20 [12:06:50]line Наличными: 1000.00 [12:06:50]line Безнал.: 0.00 [12:06:50]line Место: АЗС № 134 "Партнер Нефть" [12:06:50]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:06:50]line СНО: Общий режим [12:06:50]line Чек 138 29.07.2024 12:06 [12:06:50]line Смена: 434 ФФД: 1.0 [12:06:50]line ЗНМ: 0300000044 [12:06:50]line РНМ: 0000000000092660 [12:06:50]line Версия ККМ: 001 [12:06:50]line ФМ: 0000000000874939 [12:06:50]line ФД: 118762 [12:06:50]line ФПД: 57899182738235 [12:06:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T120654&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118762&fm=57899182738235&tin=02508201610067®Number=0000000000092660&sum=100000 [12:06:50]written 0, free lines is 4095 [12:06:50]OFD Sender: Processing packet 118762 [packets to send 86, broken 85] [12:06:50]ProducePacketName [12:06:50]name=ofd_packets/00118762 [12:06:50]OFD Sender: To server: pG, [12:06:50]CommunicateWithHost lk.salyk.kg:30040 [12:06:50]ConnectInit lk.salyk.kg [12:06:50]Connected sock=10 [12:06:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FF D3 07 01 D7 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 DE 85 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA CF 01 00 35 04 06 00 34 A8 B4 38 4B 3B 39 11 F0 10 9A D4 4F 07 [12:06:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E0 95 47 00 5F 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 34 39 33 39 10 04 04 00 EA CF 01 00 F4 03 04 00 6B 33 A7 66 B6 04 01 00 00 96 D8 0E 03 A5 92 5A 2E [12:06:50]CommunicateWithHost err = 0 [12:06:50]CheckOFDResponse [12:06:50]1017 (14) - 77093643461234 [12:06:50]1041 (16) - 0000000000874939 [12:06:50]1040 (4) - 118762 [12:06:50]1012 (4) - 29.07.2024 06:15 [12:06:50]1206 (1) - 0 [12:06:50]OFD Sender: Remove packet 118762 [12:06:50]ProducePacketName [12:06:50]name=ofd_packets/00118762 [12:06:50]NVStorageDeleteData [12:06:51]Write to MH i2c: 01 00 00 69 51 BA [12:06:51]Write i2c OK [12:06:51]MH_I2C_Read... [12:06:51]Read from MH i2c: 01 [12:06:51]MH_I2C_Read... [12:06:51]Read from MH i2c: 01 07 00 [12:06:51]MH_I2C_Read... [12:06:51]Read from MH i2c: 01 07 00 69 51 00 00 00 00 00 F0 0C BD [12:06:51]RasterBufferAndPrint [12:06:51]line [12:06:51]line [12:06:51]line [12:06:51]line [12:06:51]line [12:06:51]written 0, free lines is 3319 [12:06:51]MH_Cut [12:06:51]Write to MH i2c: D1 01 00 70 51 01 93 [12:06:51]Write i2c OK [12:06:51]MH_I2C_Read... [12:06:51]Read from MH i2c: D1 [12:06:51]MH_I2C_Read... [12:06:51]Read from MH i2c: D1 01 00 [12:06:51]MH_I2C_Read... [12:06:51]Read from MH i2c: D1 01 00 70 51 00 92 [12:06:51]Write to MH i2c: 01 00 00 71 51 C2 [12:06:51]Write i2c OK [12:06:51]MH_I2C_Read... [12:06:51]OFD Sender: No OFD packet to send [12:06:51]*** Cut start [12:06:51]*** Partial cut [12:06:51]*** CUTSNS_PIN = 1 [12:06:51]*** CUTSNS_PIN = 0 [12:06:52]*** Brake cut motor [12:06:52]Read from MH i2c: 01 [12:06:52]MH_I2C_Read... [12:06:52]*** Stop cut motor [12:06:52]*** Cut end [12:06:52]Read from MH i2c: 01 07 00 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: 01 07 00 71 51 00 00 00 00 00 FF 0F D7 [12:06:52]process_action close_receipt done [12:06:52]requested_data is exist [12:06:52]produce_requested_data [12:06:52]requested_item fm.sn is exist - process it [12:06:52]wFMCommunicate request_size=4 [12:06:52]MH_SAM_APDU [12:06:52]CAPDU: 80 11 00 00 [12:06:52]Write to MH i2c: E2 08 00 72 51 80 11 00 00 00 00 00 00 3D [12:06:52]Write i2c OK [12:06:52]MH_I2C_Read... [12:06:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:52]Read from MH i2c: E2 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: E2 17 00 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: E2 17 00 72 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 98 [12:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:06:52]wFMCommunicate OK [12:06:52]requested_item fd.num is exist - process it [12:06:52]SAM_PROTO_GetFieldsCounters [12:06:52]wFMCommunicate request_size=4 [12:06:52]MH_SAM_APDU [12:06:52]CAPDU: 80 13 00 00 [12:06:52]Write to MH i2c: E2 08 00 73 51 80 13 00 00 00 00 00 00 40 [12:06:52]Write i2c OK [12:06:52]MH_I2C_Read... [12:06:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:52]Read from MH i2c: E2 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: E2 62 00 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: E2 62 00 73 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EA CF 01 00 0E 04 04 00 B2 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 72 [12:06:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EA CF 01 00 0E 04 04 00 B2 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 [12:06:52]wFMCommunicate OK [12:06:52]SAM_PROTO_GetFieldsCounters done [12:06:52]requested_item shift.num is exist - process it [12:06:52]requested_item shift.opened is exist - process it [12:06:52]req_shift_opened [12:06:52]FM_GetShiftState [12:06:52]SAM_PROTO_GetShiftState [12:06:52]wFMCommunicate request_size=4 [12:06:52]MH_SAM_APDU [12:06:52]CAPDU: 80 13 01 00 [12:06:52]Write to MH i2c: E2 08 00 74 51 80 13 01 00 00 00 00 00 42 [12:06:52]Write i2c OK [12:06:52]MH_I2C_Read... [12:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:52]Read from MH i2c: E2 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: E2 0E 00 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: E2 0E 00 74 51 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 70 [12:06:52]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:06:52]wFMCommunicate OK [12:06:52]SAM_PROTO_GetShiftState done [12:06:52]FM_GetShiftState done [12:06:52]req_shift_opened done [12:06:52]requested_item shift.open_date is exist - process it [12:06:52]req_shift_open_date [12:06:52]req_shift_open_date done [12:06:52]produce_requested_data done [12:06:52]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118762,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [12:06:52]process_action_free close_receipt [12:06:52]json_value_free [12:06:52]json_value_free done [12:06:52]process_json_proto returns [12:06:52]Send response to host [12:06:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118762,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [12:06:52]free response buf [12:06:52]execute_script done [12:06:52]execute_script returns [12:06:52]free content buf [12:06:52]Sock 7.Close socket [12:06:52]Sock 7.Thread stoped [12:06:56]OFD Sender: No OFD packet to send [12:07:01]OFD Sender: No OFD packet to send [12:07:06]OFD Sender: No OFD packet to send [12:07:11]OFD Sender: No OFD packet to send [12:07:16]OFD Sender: No OFD packet to send [12:07:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:31]OFD Sender: No OFD packet to send [12:07:36]OFD Sender: No OFD packet to send [12:07:41]OFD Sender: No OFD packet to send [12:07:46]OFD Sender: No OFD packet to send [12:07:51]OFD Sender: No OFD packet to send [12:07:56]OFD Sender: No OFD packet to send [12:08:01]OFD Sender: No OFD packet to send [12:08:06]OFD Sender: No OFD packet to send [12:08:11]OFD Sender: No OFD packet to send [12:08:14]accept exits with 9 [12:08:14]New connection [12:08:14]New thread 3067239780 created [12:08:14]Thread 3067383140 joined [12:08:14]Waiting for new connection... [12:08:14] Sock 9.Parse request [12:08:14]Sock 9.Check first char [12:08:14]Sock 9.First char is OK [12:08:14]request: POST /json_proto HTTP/1.0 [12:08:14]Method: POST [12:08:14]URL: /json_proto [12:08:14]Method is POST - this is cgi request [12:08:14]url: /json_proto [12:08:14]query_string will be loaded in cgi processing [12:08:14]execute_cgi json_proto POST (null) [12:08:14]execute_cgi path=json_proto method=POST [12:08:14]POST find Content-Length [12:08:14]Host: 172.17.45.7:8080 [12:08:14]Content-Length: 677 [12:08:14]Content-Type: application/json [12:08:14] [12:08:14]POST finish read [12:08:14]Found Content-Length = 677 [12:08:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:14]execute_script... [12:08:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:14]POST & json_proto [12:08:14]process_json_proto [12:08:14]json parsed OK: [12:08:14]protocol is kg_v1.0 [12:08:14]action value=close_receipt [12:08:14]process_action close_receipt [12:08:14]cmd_close_receipt [12:08:14]MH_GetDate [12:08:14]Write to MH i2c: F0 00 00 75 51 B5 [12:08:14]Write i2c OK [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: F0 [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: F0 09 00 [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: F0 09 00 75 51 00 33 86 A7 66 90 0F 3E 66 C7 [12:08:14]GetLastDocTimeStamp 1722254814 [12:08:14]current date 1722254899 [12:08:14]FM_GetShiftState [12:08:14]SAM_PROTO_GetShiftState [12:08:14]wFMCommunicate request_size=4 [12:08:14]MH_SAM_APDU [12:08:14]CAPDU: 80 13 01 00 [12:08:14]Write to MH i2c: E2 08 00 76 51 80 13 01 00 00 00 00 00 44 [12:08:14]Write i2c OK [12:08:14]MH_I2C_Read... [12:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:14]Read from MH i2c: E2 [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: E2 0E 00 [12:08:14]MH_I2C_Read... [12:08:14]Read from MH i2c: E2 0E 00 76 51 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 72 [12:08:14]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:08:14]wFMCommunicate OK [12:08:14]SAM_PROTO_GetShiftState done [12:08:14]FM_GetShiftState done [12:08:14]opened in 1722211641 [12:08:14]opened+sec_in_day 1722298041 [12:08:14]quantity*price = 30035 [12:08:14]sum+1 = 30036 [12:08:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 139 29.07.2024 12:08 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118763 ФПД: 234021681071879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T120819&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118763&fm=234021681071879&tin=02508201610067®Number=0000000000092660&sum=30000 [12:08:15]StoreToDocumentArchive [12:08:15]shift 434 fd 118763 [12:08:15]save to /storage/0434/doc_00118763 [12:08:15]save last doc name /storage/0434/doc_00118763 to /storage/kkm_last_doc_name [12:08:15]save OK [12:08:15]Clear old archive folders... [12:08:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:08:15]tlvbuf is 01EE7C10 [12:08:15]SAM_PROTO_ClearQueue [12:08:15]wFMCommunicate request_size=4 [12:08:15]MH_SAM_APDU [12:08:15]CAPDU: 80 09 00 00 [12:08:15]Write to MH i2c: E2 08 00 83 51 80 09 00 00 00 00 00 00 46 [12:08:15]Write i2c OK [12:08:15]MH_I2C_Read... [12:08:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:15]Read from MH i2c: E2 [12:08:15]MH_I2C_Read... [12:08:15]Read from MH i2c: E2 03 00 [12:08:15]MH_I2C_Read... [12:08:15]Read from MH i2c: E2 03 00 83 51 00 90 00 48 [12:08:15]RAPDU: 90 00 [12:08:15]wFMCommunicate OK [12:08:15]SAM_PROTO_ClearQueue done [12:08:15]KKMCreateOFDPacket [12:08:15]OFDProtocolAddRootSTLVToBuf [12:08:15]FM_MakeSignedData [12:08:15]FM_MakeSignedData [12:08:15]SAM_PROTO_SignData [12:08:15]wFMCommunicate request_size=4 [12:08:15]MH_SAM_APDU [12:08:15]CAPDU: 80 0D 01 02 [12:08:15]Write to MH i2c: E2 08 00 84 51 80 0D 01 02 00 00 00 00 4E [12:08:15]Write i2c OK [12:08:15]MH_I2C_Read... [12:08:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:15]Read from MH i2c: E2 [12:08:15]MH_I2C_Read... [12:08:15]Read from MH i2c: E2 03 00 [12:08:15]MH_I2C_Read... [12:08:15]Read from MH i2c: E2 03 00 84 51 00 90 00 49 [12:08:15]RAPDU: 90 00 [12:08:15]wFMCommunicate OK [12:08:15]wFMCommunicate request_size=255 [12:08:15]MH_SAM_APDU [12:08:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 33 86 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB CF 01 00 35 04 06 00 D4 [12:08:15]Write to MH i2c: E2 02 01 85 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 33 86 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB CF 01 00 35 04 06 00 D4 00 00 84 [12:08:15]Write i2c OK [12:08:15]MH_I2C_Read... [12:08:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:16]Read from MH i2c: E2 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: E2 03 00 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: E2 03 00 85 51 00 90 00 4A [12:08:16]RAPDU: 90 00 [12:08:16]wFMCommunicate OK [12:08:16]wFMCommunicate request_size=10 [12:08:16]MH_SAM_APDU [12:08:16]CAPDU: 80 0D 02 02 05 D7 6B 2B 87 07 [12:08:16]Write to MH i2c: E2 0D 00 86 51 80 0D 02 02 05 00 D7 6B 2B 87 07 00 00 56 [12:08:16]Write i2c OK [12:08:16]MH_I2C_Read... [12:08:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:16]Read from MH i2c: E2 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: E2 03 00 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: E2 03 00 86 51 00 90 00 4B [12:08:16]RAPDU: 90 00 [12:08:16]wFMCommunicate OK [12:08:16]wFMCommunicate request_size=4 [12:08:16]MH_SAM_APDU [12:08:16]CAPDU: 80 0D 03 02 [12:08:16]Write to MH i2c: E2 08 00 87 51 80 0D 03 02 00 00 00 00 53 [12:08:16]Write i2c OK [12:08:16]MH_I2C_Read... [12:08:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:16]Read from MH i2c: E2 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: E2 0B 00 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: E2 0B 00 87 51 00 E4 6B 68 13 20 0C B4 A6 90 00 A4 [12:08:16]RAPDU: E4 6B 68 13 20 0C B4 A6 90 00 [12:08:16]wFMCommunicate OK [12:08:16]SAM_PROTO_SignData done [12:08:16]FM_MakeSignedData done [12:08:16]CreateOFDProtocolMessage [12:08:16]wFMCommunicate request_size=4 [12:08:16]MH_SAM_APDU [12:08:16]CAPDU: 80 11 00 00 [12:08:16]Write to MH i2c: E2 08 00 88 51 80 11 00 00 00 00 00 00 53 [12:08:16]Write i2c OK [12:08:16]MH_I2C_Read... [12:08:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:16]Read from MH i2c: E2 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: E2 17 00 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: E2 17 00 88 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AE [12:08:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:08:16]wFMCommunicate OK [12:08:16]CreateOFDProtocolMessage done [12:08:16]OFDSenderStorePacket 118763 [12:08:16]StoreOFDPacket docnum=118763 [12:08:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 8E 38 07 01 00 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 33 86 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB CF 01 00 35 04 06 00 D4 D7 6B 2B 87 07 E4 6B 68 13 20 0C B4 A6 [12:08:16]CheckFolder [12:08:16]dirname=/storage/ofd_packets [12:08:16]CheckFolder done [12:08:16]ProducePacketName [12:08:16]name=ofd_packets/00118763 [12:08:16]NVStorageSaveData ofd_packets/00118763 [12:08:16]File name is /storage/ofd_packets/00118763 [12:08:16]Write 301 bytes [12:08:16]NVStorageSaveData done [12:08:16]OFDSenderStorePacket done [12:08:16]KKMCreateOFDPacket done [12:08:16]NVStorageSaveData kkm_last_timestamp [12:08:16]File name is /storage/kkm_last_timestamp [12:08:16]Write 4 bytes [12:08:16]NVStorageSaveData done [12:08:16]ExternCall_PrintAddStr [12:08:16]wPrintStart [12:08:16]Write to MH i2c: 01 00 00 89 51 DA [12:08:16]Write i2c OK [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: 01 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: 01 07 00 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: 01 07 00 89 51 00 00 00 00 00 FF 0F EF [12:08:16]RasterBufferAndPrint [12:08:16]line Счет N : (1)949648 [12:08:16]line ИНН: 02508201610067 [12:08:16]line Контрольно-Кассовый Чек [12:08:16]line ПРОДАЖА [12:08:16]line ТРК (МРК, ГНК) : 41 [12:08:16]line Товар: 2710124130 [12:08:16]line Аи-92-К-4 [12:08:16]line 4.430 * 67.80 [12:08:16]line = 300.35 [12:08:16]line НДС 12% НСП 1% [12:08:16]line > о реализуемом товаре [12:08:16]line ОКРУГЛЕНИЕ: -0.35 [12:08:16]line ИТОГО: 300.00 [12:08:16]line Внесено: 300.00 [12:08:16]line СДАЧА: 0.00 [12:08:16]line НСП 1% : 2.66 [12:08:16]line НДС 12% : 31.90 [12:08:16]line Наличными: 300.00 [12:08:16]line Безнал.: 0.00 [12:08:16]line Место: АЗС № 134 "Партнер Нефть" [12:08:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:08:16]line СНО: Общий режим [12:08:16]line Чек 139 29.07.2024 12:08 [12:08:16]line Смена: 434 ФФД: 1.0 [12:08:16]line ЗНМ: 0300000044 [12:08:16]line РНМ: 0000000000092660 [12:08:16]line Версия ККМ: 001 [12:08:16]line ФМ: 0000000000874939 [12:08:16]line ФД: 118763 [12:08:16]line ФПД: 234021681071879 [12:08:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T120819&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118763&fm=234021681071879&tin=02508201610067®Number=0000000000092660&sum=30000 [12:08:16]written 0, free lines is 4095 [12:08:16]OFD Sender: Processing packet 118763 [packets to send 86, broken 85] [12:08:16]ProducePacketName [12:08:16]name=ofd_packets/00118763 [12:08:16]OFD Sender: To server: pG, [12:08:16]CommunicateWithHost lk.salyk.kg:30040 [12:08:16]ConnectInit lk.salyk.kg [12:08:16]Connected sock=10 [12:08:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 8E 38 07 01 00 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 33 86 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB CF 01 00 35 04 06 00 D4 D7 6B 2B 87 07 E4 6B 68 13 20 0C B4 A6 [12:08:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9A 04 47 00 B8 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB CF 01 00 F4 03 04 00 C1 33 A7 66 B6 04 01 00 00 88 F4 24 6E 0C 27 5E 96 [12:08:16]CommunicateWithHost err = 0 [12:08:16]CheckOFDResponse [12:08:16]1017 (14) - 77093643461234 [12:08:16]1041 (16) - 0000000000874939 [12:08:16]1040 (4) - 118763 [12:08:16]1012 (4) - 29.07.2024 06:16 [12:08:16]1206 (1) - 0 [12:08:16]OFD Sender: Remove packet 118763 [12:08:16]ProducePacketName [12:08:16]name=ofd_packets/00118763 [12:08:16]NVStorageDeleteData [12:08:16]Write to MH i2c: 01 00 00 B3 51 04 [12:08:16]Write i2c OK [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: 01 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: 01 07 00 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: 01 07 00 B3 51 00 00 00 00 00 E5 0C FC [12:08:16]RasterBufferAndPrint [12:08:16]line [12:08:16]line [12:08:16]line [12:08:16]line [12:08:16]line [12:08:16]written 0, free lines is 3307 [12:08:16]MH_Cut [12:08:16]Write to MH i2c: D1 01 00 BA 51 01 DD [12:08:16]Write i2c OK [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: D1 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: D1 01 00 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: D1 01 00 BA 51 00 DC [12:08:16]Write to MH i2c: 01 00 00 BB 51 0C [12:08:16]Write i2c OK [12:08:16]MH_I2C_Read... [12:08:17]OFD Sender: No OFD packet to send [12:08:17]*** Cut start [12:08:17]*** Partial cut [12:08:17]*** CUTSNS_PIN = 1 [12:08:17]*** CUTSNS_PIN = 0 [12:08:17]*** Brake cut motor [12:08:18]Read from MH i2c: 01 [12:08:18]MH_I2C_Read... [12:08:18]*** Stop cut motor [12:08:18]*** Cut end [12:08:18]Read from MH i2c: 01 07 00 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: 01 07 00 BB 51 00 00 00 00 00 FF 0F 21 [12:08:18]process_action close_receipt done [12:08:18]requested_data is exist [12:08:18]produce_requested_data [12:08:18]requested_item fm.sn is exist - process it [12:08:18]wFMCommunicate request_size=4 [12:08:18]MH_SAM_APDU [12:08:18]CAPDU: 80 11 00 00 [12:08:18]Write to MH i2c: E2 08 00 BC 51 80 11 00 00 00 00 00 00 87 [12:08:18]Write i2c OK [12:08:18]MH_I2C_Read... [12:08:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:18]Read from MH i2c: E2 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: E2 17 00 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: E2 17 00 BC 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E2 [12:08:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:08:18]wFMCommunicate OK [12:08:18]requested_item fd.num is exist - process it [12:08:18]SAM_PROTO_GetFieldsCounters [12:08:18]wFMCommunicate request_size=4 [12:08:18]MH_SAM_APDU [12:08:18]CAPDU: 80 13 00 00 [12:08:18]Write to MH i2c: E2 08 00 BD 51 80 13 00 00 00 00 00 00 8A [12:08:18]Write i2c OK [12:08:18]MH_I2C_Read... [12:08:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:18]Read from MH i2c: E2 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: E2 62 00 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: E2 62 00 BD 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EB CF 01 00 0E 04 04 00 B2 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 C0 [12:08: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EB CF 01 00 0E 04 04 00 B2 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 [12:08:18]wFMCommunicate OK [12:08:18]SAM_PROTO_GetFieldsCounters done [12:08:18]requested_item shift.num is exist - process it [12:08:18]requested_item shift.opened is exist - process it [12:08:18]req_shift_opened [12:08:18]FM_GetShiftState [12:08:18]SAM_PROTO_GetShiftState [12:08:18]wFMCommunicate request_size=4 [12:08:18]MH_SAM_APDU [12:08:18]CAPDU: 80 13 01 00 [12:08:18]Write to MH i2c: E2 08 00 BE 51 80 13 01 00 00 00 00 00 8C [12:08:18]Write i2c OK [12:08:18]MH_I2C_Read... [12:08:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:18]Read from MH i2c: E2 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: E2 0E 00 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: E2 0E 00 BE 51 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 BA [12:08:18]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:08:18]wFMCommunicate OK [12:08:18]SAM_PROTO_GetShiftState done [12:08:18]FM_GetShiftState done [12:08:18]req_shift_opened done [12:08:18]requested_item shift.open_date is exist - process it [12:08:18]req_shift_open_date [12:08:18]req_shift_open_date done [12:08:18]produce_requested_data done [12:08:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118763,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [12:08:18]process_action_free close_receipt [12:08:18]json_value_free [12:08:18]json_value_free done [12:08:18]process_json_proto returns [12:08:18]Send response to host [12:08:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118763,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [12:08:18]free response buf [12:08:18]execute_script done [12:08:18]execute_script returns [12:08:18]free content buf [12:08:18]Sock 9.Close socket [12:08:18]Sock 9.Thread stoped [12:08:22]OFD Sender: No OFD packet to send [12:08:27]OFD Sender: No OFD packet to send [12:08:32]OFD Sender: No OFD packet to send [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:47]OFD Sender: No OFD packet to send [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:42]OFD Sender: No OFD packet to send [12:13:47]OFD Sender: No OFD packet to send [12:13:52]OFD Sender: No OFD packet to send [12:13:57]OFD Sender: No OFD packet to send [12:14:02]OFD Sender: No OFD packet to send [12:14:07]OFD Sender: No OFD packet to send [12:14:12]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:22]OFD Sender: No OFD packet to send [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:52]OFD Sender: No OFD packet to send [12:14:57]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:29]accept exits with 7 [12:16:29]New connection [12:16:29]New thread 3067383140 created [12:16:29]Thread 3067239780 joined [12:16:29]Waiting for new connection... [12:16:29] Sock 7.Parse request [12:16:29]Sock 7.Check first char [12:16:29]Sock 7.First char is OK [12:16:29]request: POST /json_proto HTTP/1.0 [12:16:29]Method: POST [12:16:29]URL: /json_proto [12:16:29]Method is POST - this is cgi request [12:16:29]url: /json_proto [12:16:29]query_string will be loaded in cgi processing [12:16:29]execute_cgi json_proto POST (null) [12:16:29]execute_cgi path=json_proto method=POST [12:16:29]POST find Content-Length [12:16:29]Host: 172.17.45.7:8080 [12:16:29]Content-Length: 682 [12:16:29]Content-Type: application/json [12:16:29] [12:16:29]POST finish read [12:16:29]Found Content-Length = 682 [12:16:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:29]execute_script... [12:16:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:29]POST & json_proto [12:16:29]process_json_proto [12:16:29]json parsed OK: [12:16:29]protocol is kg_v1.0 [12:16:29]action value=close_receipt [12:16:29]process_action close_receipt [12:16:29]cmd_close_receipt [12:16:29]MH_GetDate [12:16:29]Write to MH i2c: F0 00 00 BF 51 FF [12:16:29]Write i2c OK [12:16:29]MH_I2C_Read... [12:16:29]Read from MH i2c: F0 [12:16:29]MH_I2C_Read... [12:16:29]Read from MH i2c: F0 09 00 [12:16:29]MH_I2C_Read... [12:16:29]Read from MH i2c: F0 09 00 BF 51 00 22 88 A7 66 90 0F 3E 66 02 [12:16:29]GetLastDocTimeStamp 1722254899 [12:16:29]current date 1722255394 [12:16:29]FM_GetShiftState [12:16:29]SAM_PROTO_GetShiftState [12:16:29]wFMCommunicate request_size=4 [12:16:29]MH_SAM_APDU [12:16:29]CAPDU: 80 13 01 00 [12:16:29]Write to MH i2c: E2 08 00 C0 51 80 13 01 00 00 00 00 00 8E [12:16:29]Write i2c OK [12:16:29]MH_I2C_Read... [12:16:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:29]Read from MH i2c: E2 [12:16:29]MH_I2C_Read... [12:16:29]Read from MH i2c: E2 0E 00 [12:16:29]MH_I2C_Read... [12:16:29]Read from MH i2c: E2 0E 00 C0 51 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 BC [12:16:29]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:16:29]wFMCommunicate OK [12:16:29]SAM_PROTO_GetShiftState done [12:16:29]FM_GetShiftState done [12:16:29]opened in 1722211641 [12:16:29]opened+sec_in_day 1722298041 [12:16:29]quantity*price = 100005 [12:16:29]sum+1 = 100006 [12:16:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 140 29.07.2024 12:16 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118764 ФПД: 153326138379601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T121634&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118764&fm=153326138379601&tin=02508201610067®Number=0000000000092660&sum=100000 [12:16:30]StoreToDocumentArchive [12:16:30]shift 434 fd 118764 [12:16:30]save to /storage/0434/doc_00118764 [12:16:30]save last doc name /storage/0434/doc_00118764 to /storage/kkm_last_doc_name [12:16:30]save OK [12:16:30]Clear old archive folders... [12:16:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:16:30]tlvbuf is 01E59240 [12:16:30]SAM_PROTO_ClearQueue [12:16:30]wFMCommunicate request_size=4 [12:16:30]MH_SAM_APDU [12:16:30]CAPDU: 80 09 00 00 [12:16:30]Write to MH i2c: E2 08 00 CD 51 80 09 00 00 00 00 00 00 90 [12:16:30]Write i2c OK [12:16:30]MH_I2C_Read... [12:16:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:30]Read from MH i2c: E2 [12:16:30]MH_I2C_Read... [12:16:30]Read from MH i2c: E2 03 00 [12:16:30]MH_I2C_Read... [12:16:30]Read from MH i2c: E2 03 00 CD 51 00 90 00 92 [12:16:30]RAPDU: 90 00 [12:16:30]wFMCommunicate OK [12:16:30]SAM_PROTO_ClearQueue done [12:16:30]KKMCreateOFDPacket [12:16:30]OFDProtocolAddRootSTLVToBuf [12:16:30]FM_MakeSignedData [12:16:30]FM_MakeSignedData [12:16:30]SAM_PROTO_SignData [12:16:30]wFMCommunicate request_size=4 [12:16:30]MH_SAM_APDU [12:16:30]CAPDU: 80 0D 01 02 [12:16:30]Write to MH i2c: E2 08 00 CE 51 80 0D 01 02 00 00 00 00 98 [12:16:30]Write i2c OK [12:16:30]MH_I2C_Read... [12:16:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:30]Read from MH i2c: E2 [12:16:30]MH_I2C_Read... [12:16:30]Read from MH i2c: E2 03 00 [12:16:30]MH_I2C_Read... [12:16:30]Read from MH i2c: E2 03 00 CE 51 00 90 00 93 [12:16:30]RAPDU: 90 00 [12:16:30]wFMCommunicate OK [12:16:30]wFMCommunicate request_size=255 [12:16:30]MH_SAM_APDU [12:16:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 22 88 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC CF 01 00 35 04 06 00 8B [12:16:30]Write to MH i2c: E2 02 01 CF 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 22 88 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC CF 01 00 35 04 06 00 8B 00 00 E8 [12:16:30]Write i2c OK [12:16:30]MH_I2C_Read... [12:16:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:30]Read from MH i2c: E2 [12:16:30]MH_I2C_Read... [12:16:30]Read from MH i2c: E2 03 00 [12:16:30]MH_I2C_Read... [12:16:30]Read from MH i2c: E2 03 00 CF 51 00 90 00 94 [12:16:30]RAPDU: 90 00 [12:16:30]wFMCommunicate OK [12:16:30]wFMCommunicate request_size=10 [12:16:30]MH_SAM_APDU [12:16:30]CAPDU: 80 0D 02 02 05 73 06 03 4D 51 [12:16:30]Write to MH i2c: E2 0D 00 D0 51 80 0D 02 02 05 00 73 06 03 4D 51 00 00 BF [12:16:30]Write i2c OK [12:16:30]MH_I2C_Read... [12:16:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:30]Read from MH i2c: E2 [12:16:30]MH_I2C_Read... [12:16:30]Read from MH i2c: E2 03 00 [12:16:30]MH_I2C_Read... [12:16:30]Read from MH i2c: E2 03 00 D0 51 00 90 00 95 [12:16:30]RAPDU: 90 00 [12:16:30]wFMCommunicate OK [12:16:30]wFMCommunicate request_size=4 [12:16:30]MH_SAM_APDU [12:16:30]CAPDU: 80 0D 03 02 [12:16:30]Write to MH i2c: E2 08 00 D1 51 80 0D 03 02 00 00 00 00 9D [12:16:30]Write i2c OK [12:16:30]MH_I2C_Read... [12:16:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:31]Read from MH i2c: E2 [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: E2 0B 00 [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: E2 0B 00 D1 51 00 8C 3C DF 5D 76 47 D5 B0 90 00 E4 [12:16:31]RAPDU: 8C 3C DF 5D 76 47 D5 B0 90 00 [12:16:31]wFMCommunicate OK [12:16:31]SAM_PROTO_SignData done [12:16:31]FM_MakeSignedData done [12:16:31]CreateOFDProtocolMessage [12:16:31]wFMCommunicate request_size=4 [12:16:31]MH_SAM_APDU [12:16:31]CAPDU: 80 11 00 00 [12:16:31]Write to MH i2c: E2 08 00 D2 51 80 11 00 00 00 00 00 00 9D [12:16:31]Write i2c OK [12:16:31]MH_I2C_Read... [12:16:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:31]Read from MH i2c: E2 [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: E2 17 00 [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: E2 17 00 D2 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F8 [12:16:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:16:31]wFMCommunicate OK [12:16:31]CreateOFDProtocolMessage done [12:16:31]OFDSenderStorePacket 118764 [12:16:31]StoreOFDPacket docnum=118764 [12:16:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F5 AE 07 01 93 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 22 88 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC CF 01 00 35 04 06 00 8B 73 06 03 4D 51 8C 3C DF 5D 76 47 D5 B0 [12:16:31]CheckFolder [12:16:31]dirname=/storage/ofd_packets [12:16:31]CheckFolder done [12:16:31]ProducePacketName [12:16:31]name=ofd_packets/00118764 [12:16:31]NVStorageSaveData ofd_packets/00118764 [12:16:31]File name is /storage/ofd_packets/00118764 [12:16:31]Write 301 bytes [12:16:31]NVStorageSaveData done [12:16:31]OFDSenderStorePacket done [12:16:31]KKMCreateOFDPacket done [12:16:31]NVStorageSaveData kkm_last_timestamp [12:16:31]File name is /storage/kkm_last_timestamp [12:16:31]Write 4 bytes [12:16:31]NVStorageSaveData done [12:16:31]ExternCall_PrintAddStr [12:16:31]wPrintStart [12:16:31]Write to MH i2c: 01 00 00 D3 51 24 [12:16:31]Write i2c OK [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: 01 [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: 01 07 00 [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: 01 07 00 D3 51 00 00 00 00 00 FF 0F 39 [12:16:31]RasterBufferAndPrint [12:16:31]line Счет N : (1)949649 [12:16:31]line ИНН: 02508201610067 [12:16:31]line Контрольно-Кассовый Чек [12:16:31]line ПРОДАЖА [12:16:31]line ТРК (МРК, ГНК) : 51 [12:16:31]line Товар: 2710124130 [12:16:31]line Аи-92-К-4 [12:16:31]line 14.750 * 67.80 [12:16:31]line = 1000.05 [12:16:31]line НДС 12% НСП 1% [12:16:31]line > о реализуемом товаре [12:16:31]line ОКРУГЛЕНИЕ: -0.05 [12:16:31]line ИТОГО: 1000.00 [12:16:31]line Внесено: 1000.00 [12:16:31]line СДАЧА: 0.00 [12:16:31]line НСП 1% : 8.85 [12:16:31]line НДС 12% : 106.20 [12:16:31]line Наличными: 1000.00 [12:16:31]line Безнал.: 0.00 [12:16:31]line Место: АЗС № 134 "Партнер Нефть" [12:16:31]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:16:31]line СНО: Общий режим [12:16:31]line Чек 140 29.07.2024 12:16 [12:16:31]line Смена: 434 ФФД: 1.0 [12:16:31]line ЗНМ: 0300000044 [12:16:31]line РНМ: 0000000000092660 [12:16:31]line Версия ККМ: 001 [12:16:31]line ФМ: 0000000000874939 [12:16:31]line ФД: 118764 [12:16:31]line ФПД: 153326138379601 [12:16:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T121634&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118764&fm=153326138379601&tin=02508201610067®Number=0000000000092660&sum=100000 [12:16:31]written 0, free lines is 4095 [12:16:31]OFD Sender: Processing packet 118764 [packets to send 86, broken 85] [12:16:31]ProducePacketName [12:16:31]name=ofd_packets/00118764 [12:16:31]OFD Sender: To server: pG, [12:16:31]CommunicateWithHost lk.salyk.kg:30040 [12:16:31]ConnectInit lk.salyk.kg [12:16:31]Connected sock=10 [12:16:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F5 AE 07 01 93 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 22 88 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC CF 01 00 35 04 06 00 8B 73 06 03 4D 51 8C 3C DF 5D 76 47 D5 B0 [12:16:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 DD B0 47 00 C2 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 34 39 33 39 10 04 04 00 EC CF 01 00 F4 03 04 00 B0 35 A7 66 B6 04 01 00 00 7F 40 79 48 AA 12 6F 81 [12:16:31]CommunicateWithHost err = 0 [12:16:31]CheckOFDResponse [12:16:31]1017 (14) - 77093643461234 [12:16:31]1041 (16) - 0000000000874939 [12:16:31]1040 (4) - 118764 [12:16:31]1012 (4) - 29.07.2024 06:24 [12:16:31]1206 (1) - 0 [12:16:31]OFD Sender: Remove packet 118764 [12:16:31]ProducePacketName [12:16:31]name=ofd_packets/00118764 [12:16:31]NVStorageDeleteData [12:16:31]Write to MH i2c: 01 00 00 FD 51 4E [12:16:31]Write i2c OK [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: 01 [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: 01 07 00 [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: 01 07 00 FD 51 00 00 00 00 00 DD 0C 3E [12:16:31]RasterBufferAndPrint [12:16:31]line [12:16:31]line [12:16:31]line [12:16:31]line [12:16:31]line [12:16:31]written 0, free lines is 3302 [12:16:31]MH_Cut [12:16:31]Write to MH i2c: D1 01 00 04 52 01 28 [12:16:31]Write i2c OK [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: D1 [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: D1 01 00 [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: D1 01 00 04 52 00 27 [12:16:31]Write to MH i2c: 01 00 00 05 52 57 [12:16:31]Write i2c OK [12:16:31]MH_I2C_Read... [12:16:32]OFD Sender: No OFD packet to send [12:16:32]*** Cut start [12:16:32]*** Partial cut [12:16:32]*** CUTSNS_PIN = 1 [12:16:32]*** CUTSNS_PIN = 0 [12:16:32]*** Brake cut motor [12:16:33]Read from MH i2c: 01 [12:16:33]MH_I2C_Read... [12:16:33]*** Stop cut motor [12:16:33]*** Cut end [12:16:33]Read from MH i2c: 01 07 00 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: 01 07 00 05 52 00 00 00 00 00 FF 0F 6C [12:16:33]process_action close_receipt done [12:16:33]requested_data is exist [12:16:33]produce_requested_data [12:16:33]requested_item fm.sn is exist - process it [12:16:33]wFMCommunicate request_size=4 [12:16:33]MH_SAM_APDU [12:16:33]CAPDU: 80 11 00 00 [12:16:33]Write to MH i2c: E2 08 00 06 52 80 11 00 00 00 00 00 00 D2 [12:16:33]Write i2c OK [12:16:33]MH_I2C_Read... [12:16:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:33]Read from MH i2c: E2 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 17 00 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 17 00 06 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2D [12:16:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:16:33]wFMCommunicate OK [12:16:33]requested_item fd.num is exist - process it [12:16:33]SAM_PROTO_GetFieldsCounters [12:16:33]wFMCommunicate request_size=4 [12:16:33]MH_SAM_APDU [12:16:33]CAPDU: 80 13 00 00 [12:16:33]Write to MH i2c: E2 08 00 07 52 80 13 00 00 00 00 00 00 D5 [12:16:33]Write i2c OK [12:16:33]MH_I2C_Read... [12:16:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:33]Read from MH i2c: E2 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 62 00 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 62 00 07 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EC CF 01 00 0E 04 04 00 B2 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 0F [12:16:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EC CF 01 00 0E 04 04 00 B2 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 [12:16:33]wFMCommunicate OK [12:16:33]SAM_PROTO_GetFieldsCounters done [12:16:33]requested_item shift.num is exist - process it [12:16:33]requested_item shift.opened is exist - process it [12:16:33]req_shift_opened [12:16:33]FM_GetShiftState [12:16:33]SAM_PROTO_GetShiftState [12:16:33]wFMCommunicate request_size=4 [12:16:33]MH_SAM_APDU [12:16:33]CAPDU: 80 13 01 00 [12:16:33]Write to MH i2c: E2 08 00 08 52 80 13 01 00 00 00 00 00 D7 [12:16:33]Write i2c OK [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 [12:16:33]MH_I2C_Read... [12:16:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:33]Read from MH i2c: E2 0E 00 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 0E 00 08 52 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 05 [12:16:33]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:16:33]wFMCommunicate OK [12:16:33]SAM_PROTO_GetShiftState done [12:16:33]FM_GetShiftState done [12:16:33]req_shift_opened done [12:16:33]requested_item shift.open_date is exist - process it [12:16:33]req_shift_open_date [12:16:33]req_shift_open_date done [12:16:33]produce_requested_data done [12:16:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118764,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [12:16:33]process_action_free close_receipt [12:16:33]json_value_free [12:16:33]json_value_free done [12:16:33]process_json_proto returns [12:16:33]Send response to host [12:16:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118764,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [12:16:33]free response buf [12:16:33]execute_script done [12:16:33]execute_script returns [12:16:33]free content buf [12:16:33]Sock 7.Close socket [12:16:33]Sock 7.Thread stoped [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:29]accept exits with 9 [12:24:29]New connection [12:24:29]New thread 3067239780 created [12:24:29]Thread 3067383140 joined [12:24:29]Waiting for new connection... [12:24:29] Sock 9.Parse request [12:24:29]Sock 9.Check first char [12:24:29]Sock 9.First char is OK [12:24:29]request: POST /json_proto HTTP/1.0 [12:24:29]Method: POST [12:24:29]URL: /json_proto [12:24:29]Method is POST - this is cgi request [12:24:29]url: /json_proto [12:24:29]query_string will be loaded in cgi processing [12:24:29]execute_cgi json_proto POST (null) [12:24:29]execute_cgi path=json_proto method=POST [12:24:29]POST find Content-Length [12:24:29]Host: 172.17.45.7:8080 [12:24:29]Content-Length: 677 [12:24:29]Content-Type: application/json [12:24:29] [12:24:29]POST finish read [12:24:29]Found Content-Length = 677 [12:24:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.460, "sum" : 370.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:29]execute_script... [12: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 : (1)949650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.460, "sum" : 370.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:29]POST & json_proto [12:24:29]process_json_proto [12:24:29]json parsed OK: [12:24:29]protocol is kg_v1.0 [12:24:29]action value=close_receipt [12:24:29]process_action close_receipt [12:24:29]cmd_close_receipt [12:24:29]MH_GetDate [12:24:29]Write to MH i2c: F0 00 00 09 52 4A [12:24:29]Write i2c OK [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: F0 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: F0 09 00 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: F0 09 00 09 52 00 03 8A A7 66 90 0F 3E 66 30 [12:24:29]GetLastDocTimeStamp 1722255394 [12:24:29]current date 1722255875 [12:24:29]FM_GetShiftState [12:24:29]SAM_PROTO_GetShiftState [12:24:29]wFMCommunicate request_size=4 [12:24:29]MH_SAM_APDU [12:24:29]CAPDU: 80 13 01 00 [12:24:29]Write to MH i2c: E2 08 00 0A 52 80 13 01 00 00 00 00 00 D9 [12:24:29]Write i2c OK [12:24:29]MH_I2C_Read... [12:24:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:29]Read from MH i2c: E2 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: E2 0E 00 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: E2 0E 00 0A 52 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 07 [12:24:29]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:24:29]wFMCommunicate OK [12:24:29]SAM_PROTO_GetShiftState done [12:24:29]FM_GetShiftState done [12:24:29]opened in 1722211641 [12:24:29]opened+sec_in_day 1722298041 [12:24:29]quantity*price = 37018 [12:24:29]sum+1 = 37020 [12:24:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.28 НДС 12% : 39.31 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 141 29.07.2024 12:24 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118765 ФПД: 94275358820669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T122435&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118765&fm=94275358820669&tin=02508201610067®Number=0000000000092660&sum=37000 [12:24:30]StoreToDocumentArchive [12:24:30]shift 434 fd 118765 [12:24:30]save to /storage/0434/doc_00118765 [12:24:30]save last doc name /storage/0434/doc_00118765 to /storage/kkm_last_doc_name [12:24:30]save OK [12:24:30]Clear old archive folders... [12:24:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:30]tlvbuf is 01EC0130 [12:24:30]SAM_PROTO_ClearQueue [12:24:30]wFMCommunicate request_size=4 [12:24:30]MH_SAM_APDU [12:24:30]CAPDU: 80 09 00 00 [12:24:30]Write to MH i2c: E2 08 00 17 52 80 09 00 00 00 00 00 00 DB [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:31]Read from MH i2c: E2 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 03 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 03 00 17 52 00 90 00 DD [12:24:31]RAPDU: 90 00 [12:24:31]wFMCommunicate OK [12:24:31]SAM_PROTO_ClearQueue done [12:24:31]KKMCreateOFDPacket [12:24:31]OFDProtocolAddRootSTLVToBuf [12:24:31]FM_MakeSignedData [12:24:31]FM_MakeSignedData [12:24:31]SAM_PROTO_SignData [12:24:31]wFMCommunicate request_size=4 [12:24:31]MH_SAM_APDU [12:24:31]CAPDU: 80 0D 01 02 [12:24:31]Write to MH i2c: E2 08 00 18 52 80 0D 01 02 00 00 00 00 E3 [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:31]Read from MH i2c: E2 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 03 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 03 00 18 52 00 90 00 DE [12:24:31]RAPDU: 90 00 [12:24:31]wFMCommunicate OK [12:24:31]wFMCommunicate request_size=255 [12:24:31]MH_SAM_APDU [12:24:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 54 15 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 9B 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 03 8A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 ED CF 01 00 35 04 06 00 55 [12:24:31]Write to MH i2c: E2 02 01 19 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 54 15 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 9B 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 03 8A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 ED CF 01 00 35 04 06 00 55 00 00 EB [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:31]Read from MH i2c: E2 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 03 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 03 00 19 52 00 90 00 DF [12:24:31]RAPDU: 90 00 [12:24:31]wFMCommunicate OK [12:24:31]wFMCommunicate request_size=10 [12:24:31]MH_SAM_APDU [12:24:31]CAPDU: 80 0D 02 02 05 BE 31 46 09 3D [12:24:31]Write to MH i2c: E2 0D 00 1A 52 80 0D 02 02 05 00 BE 31 46 09 3D 00 00 6B [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:31]Read from MH i2c: E2 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 03 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 03 00 1A 52 00 90 00 E0 [12:24:31]RAPDU: 90 00 [12:24:31]wFMCommunicate OK [12:24:31]wFMCommunicate request_size=4 [12:24:31]MH_SAM_APDU [12:24:31]CAPDU: 80 0D 03 02 [12:24:31]Write to MH i2c: E2 08 00 1B 52 80 0D 03 02 00 00 00 00 E8 [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:31]Read from MH i2c: E2 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 0B 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 0B 00 1B 52 00 20 D9 51 68 93 60 2B 0D 90 00 C6 [12:24:31]RAPDU: 20 D9 51 68 93 60 2B 0D 90 00 [12:24:31]wFMCommunicate OK [12:24:31]SAM_PROTO_SignData done [12:24:31]FM_MakeSignedData done [12:24:31]CreateOFDProtocolMessage [12:24:31]wFMCommunicate request_size=4 [12:24:31]MH_SAM_APDU [12:24:31]CAPDU: 80 11 00 00 [12:24:31]Write to MH i2c: E2 08 00 1C 52 80 11 00 00 00 00 00 00 E8 [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:31]Read from MH i2c: E2 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 17 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 17 00 1C 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 43 [12:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:24:31]wFMCommunicate OK [12:24:31]CreateOFDProtocolMessage done [12:24:31]OFDSenderStorePacket 118765 [12:24:31]StoreOFDPacket docnum=118765 [12:24:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E6 28 07 01 B7 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 54 15 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 9B 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 03 8A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 ED CF 01 00 35 04 06 00 55 BE 31 46 09 3D 20 D9 51 68 93 60 2B 0D [12:24:31]CheckFolder [12:24:31]dirname=/storage/ofd_packets [12:24:31]CheckFolder done [12:24:31]ProducePacketName [12:24:31]name=ofd_packets/00118765 [12:24:31]NVStorageSaveData ofd_packets/00118765 [12:24:31]File name is /storage/ofd_packets/00118765 [12:24:31]Write 301 bytes [12:24:31]NVStorageSaveData done [12:24:31]OFDSenderStorePacket done [12:24:31]KKMCreateOFDPacket done [12:24:31]NVStorageSaveData kkm_last_timestamp [12:24:31]File name is /storage/kkm_last_timestamp [12:24:31]Write 4 bytes [12:24:31]NVStorageSaveData done [12:24:31]ExternCall_PrintAddStr [12:24:31]wPrintStart [12:24:31]Write to MH i2c: 01 00 00 1D 52 6F [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: 01 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: 01 07 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: 01 07 00 1D 52 00 00 00 00 00 FF 0F 84 [12:24:31]RasterBufferAndPrint [12:24:31]line Счет N : (1)949650 [12:24:31]line ИНН: 02508201610067 [12:24:31]line Контрольно-Кассовый Чек [12:24:31]line ПРОДАЖА [12:24:31]line ТРК (МРК, ГНК) : 41 [12:24:31]line Товар: 2710124130 [12:24:31]line Аи-92-К-4 [12:24:31]line 5.460 * 67.80 [12:24:31]line = 370.19 [12:24:31]line НДС 12% НСП 1% [12:24:31]line > о реализуемом товаре [12:24:31]line ОКРУГЛЕНИЕ: -0.19 [12:24:31]line ИТОГО: 370.00 [12:24:31]line Внесено: 370.00 [12:24:31]line СДАЧА: 0.00 [12:24:31]line НСП 1% : 3.28 [12:24:31]line НДС 12% : 39.31 [12:24:31]line Наличными: 370.00 [12:24:31]line Безнал.: 0.00 [12:24:31]line Место: АЗС № 134 "Партнер Нефть" [12:24:31]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:24:31]line СНО: Общий режим [12:24:31]line Чек 141 29.07.2024 12:24 [12:24:31]line Смена: 434 ФФД: 1.0 [12:24:31]line ЗНМ: 0300000044 [12:24:31]line РНМ: 0000000000092660 [12:24:31]line Версия ККМ: 001 [12:24:31]line ФМ: 0000000000874939 [12:24:31]line ФД: 118765 [12:24:31]line ФПД: 94275358820669 [12:24:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T122435&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118765&fm=94275358820669&tin=02508201610067®Number=0000000000092660&sum=37000 [12:24:31]written 0, free lines is 4095 [12:24:31]OFD Sender: Processing packet 118765 [packets to send 86, broken 85] [12:24:31]ProducePacketName [12:24:31]name=ofd_packets/00118765 [12:24:31]OFD Sender: To server: pG, [12:24:31]CommunicateWithHost lk.salyk.kg:30040 [12:24:31]ConnectInit lk.salyk.kg [12:24:31]Connected sock=10 [12: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 34 39 33 39 0F 01 00 00 E6 28 07 01 B7 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 54 15 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 9B 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 03 8A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 ED CF 01 00 35 04 06 00 55 BE 31 46 09 3D 20 D9 51 68 93 60 2B 0D [12:24:31]Write to MH i2c: 01 00 00 47 52 99 [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: 01 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: 01 07 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: 01 07 00 47 52 00 00 00 00 00 EB 0C 97 [12:24:31]RasterBufferAndPrint [12:24:31]line [12:24:31]line [12:24:31]line [12:24:31]line [12:24:31]line [12:24:31]written 0, free lines is 3313 [12:24:31]MH_Cut [12:24:31]Write to MH i2c: D1 01 00 4E 52 01 72 [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: D1 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: D1 01 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: D1 01 00 4E 52 00 71 [12:24:31]Write to MH i2c: 01 00 00 4F 52 A1 [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 04 48 47 00 BB 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 34 39 33 39 10 04 04 00 ED CF 01 00 F4 03 04 00 91 37 A7 66 B6 04 01 00 00 19 08 32 65 35 7D 2B 88 [12:24:32]CommunicateWithHost err = 0 [12:24:32]CheckOFDResponse [12:24:32]1017 (14) - 77093643461234 [12:24:32]1041 (16) - 0000000000874939 [12:24:32]1040 (4) - 118765 [12:24:32]1012 (4) - 29.07.2024 06:32 [12:24:32]1206 (1) - 0 [12:24:32]OFD Sender: Remove packet 118765 [12:24:32]ProducePacketName [12:24:32]name=ofd_packets/00118765 [12:24:32]NVStorageDeleteData [12:24:32]OFD Sender: No OFD packet to send [12:24:32]*** Cut start [12:24:32]*** Partial cut [12:24:32]*** CUTSNS_PIN = 1 [12:24:32]*** CUTSNS_PIN = 0 [12:24:32]*** Brake cut motor [12:24:33]Read from MH i2c: 01 [12:24:33]MH_I2C_Read... [12:24:33]*** Stop cut motor [12:24:33]*** Cut end [12:24:33]Read from MH i2c: 01 07 00 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: 01 07 00 4F 52 00 00 00 00 00 FF 0F B6 [12:24:33]process_action close_receipt done [12:24:33]requested_data is exist [12:24:33]produce_requested_data [12:24:33]requested_item fm.sn is exist - process it [12:24:33]wFMCommunicate request_size=4 [12:24:33]MH_SAM_APDU [12:24:33]CAPDU: 80 11 00 00 [12:24:33]Write to MH i2c: E2 08 00 50 52 80 11 00 00 00 00 00 00 1C [12:24:33]Write i2c OK [12:24:33]MH_I2C_Read... [12:24:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:33]Read from MH i2c: E2 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: E2 17 00 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: E2 17 00 50 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 77 [12:24:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:24:33]wFMCommunicate OK [12:24:33]requested_item fd.num is exist - process it [12:24:33]SAM_PROTO_GetFieldsCounters [12:24:33]wFMCommunicate request_size=4 [12:24:33]MH_SAM_APDU [12:24:33]CAPDU: 80 13 00 00 [12:24:33]Write to MH i2c: E2 08 00 51 52 80 13 00 00 00 00 00 00 1F [12:24:33]Write i2c OK [12:24:33]MH_I2C_Read... [12:24:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:33]Read from MH i2c: E2 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: E2 62 00 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: E2 62 00 51 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 ED CF 01 00 0E 04 04 00 B2 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 5D [12:24:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 ED CF 01 00 0E 04 04 00 B2 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 [12:24:33]wFMCommunicate OK [12:24:33]SAM_PROTO_GetFieldsCounters done [12:24:33]requested_item shift.num is exist - process it [12:24:33]requested_item shift.opened is exist - process it [12:24:33]req_shift_opened [12:24:33]FM_GetShiftState [12:24:33]SAM_PROTO_GetShiftState [12:24:33]wFMCommunicate request_size=4 [12:24:33]MH_SAM_APDU [12:24:33]CAPDU: 80 13 01 00 [12:24:33]Write to MH i2c: E2 08 00 52 52 80 13 01 00 00 00 00 00 21 [12:24:33]Write i2c OK [12:24:33]MH_I2C_Read... [12:24:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:33]Read from MH i2c: E2 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: E2 0E 00 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: E2 0E 00 52 52 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 4F [12:24:33]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:24:33]wFMCommunicate OK [12:24:33]SAM_PROTO_GetShiftState done [12:24:33]FM_GetShiftState done [12:24:33]req_shift_opened done [12:24:33]requested_item shift.open_date is exist - process it [12:24:33]req_shift_open_date [12:24:33]req_shift_open_date done [12:24:33]produce_requested_data done [12:24:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118765,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [12:24:33]process_action_free close_receipt [12:24:33]json_value_free [12:24:33]json_value_free done [12:24:33]process_json_proto returns [12:24:33]Send response to host [12:24:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118765,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [12:24:33]free response buf [12:24:33]execute_script done [12:24:33]execute_script returns [12:24:33]free content buf [12:24:33]Sock 9.Close socket [12:24:33]Sock 9.Thread stoped [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:47]accept exits with 7 [12:26:47]New connection [12:26:47]New thread 3067383140 created [12:26:47]Thread 3067239780 joined [12:26:47]Waiting for new connection... [12:26:47] Sock 7.Parse request [12:26:47]Sock 7.Check first char [12:26:47]Sock 7.First char is OK [12:26:47]request: POST /json_proto HTTP/1.0 [12:26:47]Method: POST [12:26:47]URL: /json_proto [12:26:47]Method is POST - this is cgi request [12:26:47]url: /json_proto [12:26:47]query_string will be loaded in cgi processing [12:26:47]execute_cgi json_proto POST (null) [12:26:47]execute_cgi path=json_proto method=POST [12:26:47]POST find Content-Length [12:26:47]Host: 172.17.45.7:8080 [12:26:47]Content-Length: 679 [12:26:47]Content-Type: application/json [12:26:47] [12:26:47]POST finish read [12:26:47]Found Content-Length = 679 [12:26:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:47]execute_script... [12:26: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)949651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:47]POST & json_proto [12:26:47]process_json_proto [12:26:47]json parsed OK: [12:26:47]protocol is kg_v1.0 [12:26:47]action value=close_receipt [12:26:47]process_action close_receipt [12:26:47]cmd_close_receipt [12:26:47]MH_GetDate [12:26:47]Write to MH i2c: F0 00 00 53 52 94 [12:26:47]Write i2c OK [12:26:47]MH_I2C_Read... [12:26:47]Read from MH i2c: F0 [12:26:47]MH_I2C_Read... [12:26:47]Read from MH i2c: F0 09 00 [12:26:47]MH_I2C_Read... [12:26:47]Read from MH i2c: F0 09 00 53 52 00 8D 8A A7 66 90 0F 3E 66 04 [12:26:47]GetLastDocTimeStamp 1722255875 [12:26:47]current date 1722256013 [12:26:47]FM_GetShiftState [12:26:47]SAM_PROTO_GetShiftState [12:26:47]wFMCommunicate request_size=4 [12:26:47]MH_SAM_APDU [12:26:47]CAPDU: 80 13 01 00 [12:26:47]Write to MH i2c: E2 08 00 54 52 80 13 01 00 00 00 00 00 23 [12:26:47]Write i2c OK [12:26:47]MH_I2C_Read... [12:26:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:48]Read from MH i2c: E2 [12:26:48]MH_I2C_Read... [12:26:48]Read from MH i2c: E2 0E 00 [12:26:48]MH_I2C_Read... [12:26:48]Read from MH i2c: E2 0E 00 54 52 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 51 [12:26:48]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:26:48]wFMCommunicate OK [12:26:48]SAM_PROTO_GetShiftState done [12:26:48]FM_GetShiftState done [12:26:48]opened in 1722211641 [12:26:48]opened+sec_in_day 1722298041 [12:26:48]quantity*price = 100050 [12:26:48]sum+1 = 100052 [12:26:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 142 29.07.2024 12:26 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118766 ФПД: 746006888281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T122653&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118766&fm=746006888281&tin=02508201610067®Number=0000000000092660&sum=100000 [12:26:49]StoreToDocumentArchive [12:26:49]shift 434 fd 118766 [12:26:49]save to /storage/0434/doc_00118766 [12:26:49]save last doc name /storage/0434/doc_00118766 to /storage/kkm_last_doc_name [12:26:49]save OK [12:26:49]Clear old archive folders... [12:26:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:26:49]tlvbuf is 01FF8EA0 [12:26:49]SAM_PROTO_ClearQueue [12:26:49]wFMCommunicate request_size=4 [12:26:49]MH_SAM_APDU [12:26:49]CAPDU: 80 09 00 00 [12:26:49]Write to MH i2c: E2 08 00 61 52 80 09 00 00 00 00 00 00 25 [12:26:49]Write i2c OK [12:26:49]MH_I2C_Read... [12:26:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:49]Read from MH i2c: E2 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 03 00 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 03 00 61 52 00 90 00 27 [12:26:49]RAPDU: 90 00 [12:26:49]wFMCommunicate OK [12:26:49]SAM_PROTO_ClearQueue done [12:26:49]KKMCreateOFDPacket [12:26:49]OFDProtocolAddRootSTLVToBuf [12:26:49]FM_MakeSignedData [12:26:49]FM_MakeSignedData [12:26:49]SAM_PROTO_SignData [12:26:49]wFMCommunicate request_size=4 [12:26:49]MH_SAM_APDU [12:26:49]CAPDU: 80 0D 01 02 [12:26:49]Write to MH i2c: E2 08 00 62 52 80 0D 01 02 00 00 00 00 2D [12:26:49]Write i2c OK [12:26:49]MH_I2C_Read... [12:26:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:49]Read from MH i2c: E2 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 03 00 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 03 00 62 52 00 90 00 28 [12:26:49]RAPDU: 90 00 [12:26:49]wFMCommunicate OK [12:26:49]wFMCommunicate request_size=255 [12:26:49]MH_SAM_APDU [12:26: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 8D 8A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE CF 01 00 35 04 06 00 00 AD B1 79 [12:26:49]Write to MH i2c: E2 02 01 63 52 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 8D 8A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE CF 01 00 35 04 06 00 00 AD B1 79 00 00 B7 [12:26:49]Write i2c OK [12:26:49]MH_I2C_Read... [12:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:49]Read from MH i2c: E2 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 03 00 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 03 00 63 52 00 90 00 29 [12:26:49]RAPDU: 90 00 [12:26:49]wFMCommunicate OK [12:26:49]wFMCommunicate request_size=7 [12:26:49]MH_SAM_APDU [12:26:49]CAPDU: 80 0D 02 02 02 BF 59 [12:26:49]Write to MH i2c: E2 0A 00 64 52 80 0D 02 02 02 00 BF 59 00 00 4C [12:26:49]Write i2c OK [12:26:49]MH_I2C_Read... [12:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:49]Read from MH i2c: E2 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 03 00 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 03 00 64 52 00 90 00 2A [12:26:49]RAPDU: 90 00 [12:26:49]wFMCommunicate OK [12:26:49]wFMCommunicate request_size=4 [12:26:49]MH_SAM_APDU [12:26:49]CAPDU: 80 0D 03 02 [12:26:49]Write to MH i2c: E2 08 00 65 52 80 0D 03 02 00 00 00 00 32 [12:26:49]Write i2c OK [12:26:49]MH_I2C_Read... [12:26:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:49]Read from MH i2c: E2 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 0B 00 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 0B 00 65 52 00 57 A1 7C 35 6A 58 63 EF 90 00 F0 [12:26:49]RAPDU: 57 A1 7C 35 6A 58 63 EF 90 00 [12:26:49]wFMCommunicate OK [12:26:49]SAM_PROTO_SignData done [12:26:49]FM_MakeSignedData done [12:26:49]CreateOFDProtocolMessage [12:26:49]wFMCommunicate request_size=4 [12:26:49]MH_SAM_APDU [12:26:49]CAPDU: 80 11 00 00 [12:26:49]Write to MH i2c: E2 08 00 66 52 80 11 00 00 00 00 00 00 32 [12:26:49]Write i2c OK [12:26:49]MH_I2C_Read... [12:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:49]Read from MH i2c: E2 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 17 00 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 17 00 66 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8D [12:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:26:49]wFMCommunicate OK [12:26:49]CreateOFDProtocolMessage done [12:26:49]OFDSenderStorePacket 118766 [12:26:49]StoreOFDPacket docnum=118766 [12:26:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 67 C0 04 01 24 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 8D 8A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE CF 01 00 35 04 06 00 00 AD B1 79 BF 59 57 A1 7C 35 6A 58 63 EF [12:26:49]CheckFolder [12:26:49]dirname=/storage/ofd_packets [12:26:49]CheckFolder done [12:26:49]ProducePacketName [12:26:49]name=ofd_packets/00118766 [12:26:49]NVStorageSaveData ofd_packets/00118766 [12:26:49]File name is /storage/ofd_packets/00118766 [12:26:49]Write 298 bytes [12:26:49]NVStorageSaveData done [12:26:49]OFDSenderStorePacket done [12:26:49]KKMCreateOFDPacket done [12:26:49]NVStorageSaveData kkm_last_timestamp [12:26:49]File name is /storage/kkm_last_timestamp [12:26:49]Write 4 bytes [12:26:49]NVStorageSaveData done [12:26:49]ExternCall_PrintAddStr [12:26:49]wPrintStart [12:26:49]Write to MH i2c: 01 00 00 67 52 B9 [12:26:49]Write i2c OK [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: 01 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: 01 07 00 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: 01 07 00 67 52 00 00 00 00 00 FF 0F CE [12:26:49]RasterBufferAndPrint [12:26:49]line Счет N : (1)949651 [12:26:49]line ИНН: 02508201610067 [12:26:49]line Контрольно-Кассовый Чек [12:26:49]line ПРОДАЖА [12:26:49]line ТРК (МРК, ГНК) : 21 [12:26:49]line Товар: 2710194800 [12:26:49]line ДТ-К-5 [12:26:49]line 13.130 * 76.20 [12:26:49]line = 1000.51 [12:26:49]line НДС 12% НСП 1% [12:26:49]line > о реализуемом товаре [12:26:49]line ОКРУГЛЕНИЕ: -0.51 [12:26:49]line ИТОГО: 1000.00 [12:26:49]line Внесено: 1000.00 [12:26:49]line СДАЧА: 0.00 [12:26:49]line НСП 1% : 8.85 [12:26:49]line НДС 12% : 106.25 [12:26:49]line Наличными: 1000.00 [12:26:49]line Безнал.: 0.00 [12:26:49]line Место: АЗС № 134 "Партнер Нефть" [12:26:49]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:26:49]line СНО: Общий режим [12:26:49]line Чек 142 29.07.2024 12:26 [12:26:49]line Смена: 434 ФФД: 1.0 [12:26:49]line ЗНМ: 0300000044 [12:26:49]line РНМ: 0000000000092660 [12:26:49]line Версия ККМ: 001 [12:26:49]line ФМ: 0000000000874939 [12:26:49]line ФД: 118766 [12:26:49]line ФПД: 746006888281 [12:26:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T122653&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118766&fm=746006888281&tin=02508201610067®Number=0000000000092660&sum=100000 [12:26:49]written 0, free lines is 4095 [12:26:49]OFD Sender: Processing packet 118766 [packets to send 86, broken 85] [12:26:49]ProducePacketName [12:26:49]name=ofd_packets/00118766 [12:26:49]OFD Sender: To server: pG, [12:26:49]CommunicateWithHost lk.salyk.kg:30040 [12:26:49]ConnectInit lk.salyk.kg [12:26:49]Connected sock=10 [12:26:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 67 C0 04 01 24 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 8D 8A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE CF 01 00 35 04 06 00 00 AD B1 79 BF 59 57 A1 7C 35 6A 58 63 EF [12:26:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 10 90 47 00 45 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE CF 01 00 F4 03 04 00 1B 38 A7 66 B6 04 01 00 00 0C 6E 0F A2 0F FA FE A2 [12:26:50]CommunicateWithHost err = 0 [12:26:50]CheckOFDResponse [12:26:50]1017 (14) - 77093643461234 [12:26:50]1041 (16) - 0000000000874939 [12:26:50]1040 (4) - 118766 [12:26:50]1012 (4) - 29.07.2024 06:35 [12:26:50]1206 (1) - 0 [12:26:50]OFD Sender: Remove packet 118766 [12:26:50]ProducePacketName [12:26:50]name=ofd_packets/00118766 [12:26:50]NVStorageDeleteData [12:26:50]Write to MH i2c: 01 00 00 91 52 E3 [12:26:50]Write i2c OK [12:26:50]MH_I2C_Read... [12:26:50]Read from MH i2c: 01 [12:26:50]MH_I2C_Read... [12:26:50]Read from MH i2c: 01 07 00 [12:26:50]MH_I2C_Read... [12:26:50]Read from MH i2c: 01 07 00 91 52 00 00 00 00 00 D9 0C CF [12:26:50]RasterBufferAndPrint [12:26:50]line [12:26:50]line [12:26:50]line [12:26:50]line [12:26:50]line [12:26:50]written 0, free lines is 3297 [12:26:50]MH_Cut [12:26:50]Write to MH i2c: D1 01 00 98 52 01 BC [12:26:50]Write i2c OK [12:26:50]MH_I2C_Read... [12:26:50]Read from MH i2c: D1 [12:26:50]MH_I2C_Read... [12:26:50]Read from MH i2c: D1 01 00 [12:26:50]MH_I2C_Read... [12:26:50]Read from MH i2c: D1 01 00 98 52 00 BB [12:26:50]Write to MH i2c: 01 00 00 99 52 EB [12:26:50]Write i2c OK [12:26:50]MH_I2C_Read... [12:26:50]OFD Sender: No OFD packet to send [12:26:50]*** Cut start [12:26:50]*** Partial cut [12:26:50]*** CUTSNS_PIN = 1 [12:26:50]*** CUTSNS_PIN = 0 [12:26:51]*** Brake cut motor [12:26:51]Read from MH i2c: 01 [12:26:51]MH_I2C_Read... [12:26:51]*** Stop cut motor [12:26:51]*** Cut end [12:26:51]Read from MH i2c: 01 07 00 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: 01 07 00 99 52 00 00 00 00 00 FF 0F 00 [12:26:51]process_action close_receipt done [12:26:51]requested_data is exist [12:26:51]produce_requested_data [12:26:51]requested_item fm.sn is exist - process it [12:26:51]wFMCommunicate request_size=4 [12:26:51]MH_SAM_APDU [12:26:51]CAPDU: 80 11 00 00 [12:26:51]Write to MH i2c: E2 08 00 9A 52 80 11 00 00 00 00 00 00 66 [12:26:51]Write i2c OK [12:26:51]MH_I2C_Read... [12:26:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:51]Read from MH i2c: E2 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 17 00 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 17 00 9A 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C1 [12:26:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:26:51]wFMCommunicate OK [12:26:51]requested_item fd.num is exist - process it [12:26:51]SAM_PROTO_GetFieldsCounters [12:26:51]wFMCommunicate request_size=4 [12:26:51]MH_SAM_APDU [12:26:51]CAPDU: 80 13 00 00 [12:26:51]Write to MH i2c: E2 08 00 9B 52 80 13 00 00 00 00 00 00 69 [12:26:51]Write i2c OK [12:26:51]MH_I2C_Read... [12:26:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:51]Read from MH i2c: E2 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 62 00 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 62 00 9B 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EE CF 01 00 0E 04 04 00 B2 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 AB [12:26: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EE CF 01 00 0E 04 04 00 B2 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 [12:26:51]wFMCommunicate OK [12:26:51]SAM_PROTO_GetFieldsCounters done [12:26:51]requested_item shift.num is exist - process it [12:26:51]requested_item shift.opened is exist - process it [12:26:51]req_shift_opened [12:26:51]FM_GetShiftState [12:26:51]SAM_PROTO_GetShiftState [12:26:51]wFMCommunicate request_size=4 [12:26:51]MH_SAM_APDU [12:26:51]CAPDU: 80 13 01 00 [12:26:51]Write to MH i2c: E2 08 00 9C 52 80 13 01 00 00 00 00 00 6B [12:26:51]Write i2c OK [12:26:51]MH_I2C_Read... [12:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:51]Read from MH i2c: E2 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 0E 00 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 0E 00 9C 52 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 99 [12:26:51]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:26:51]wFMCommunicate OK [12:26:51]SAM_PROTO_GetShiftState done [12:26:51]FM_GetShiftState done [12:26:51]req_shift_opened done [12:26:51]requested_item shift.open_date is exist - process it [12:26:51]req_shift_open_date [12:26:51]req_shift_open_date done [12:26:51]produce_requested_data done [12:26:51]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118766,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [12:26:51]process_action_free close_receipt [12:26:51]json_value_free [12:26:51]json_value_free done [12:26:51]process_json_proto returns [12:26:51]Send response to host [12:26:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118766,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [12:26:51]free response buf [12:26:51]execute_script done [12:26:51]execute_script returns [12:26:51]free content buf [12:26:51]Sock 7.Close socket [12:26:51]Sock 7.Thread stoped [12:26:55]OFD Sender: No OFD packet to send [12:27:00]OFD Sender: No OFD packet to send [12:27:05]OFD Sender: No OFD packet to send [12:27:10]OFD Sender: No OFD packet to send [12:27:15]OFD Sender: No OFD packet to send [12:27:20]OFD Sender: No OFD packet to send [12:27:25]OFD Sender: No OFD packet to send [12:27:30]OFD Sender: No OFD packet to send [12:27:35]OFD Sender: No OFD packet to send [12:27:40]OFD Sender: No OFD packet to send [12:27:45]OFD Sender: No OFD packet to send [12:27:50]OFD Sender: No OFD packet to send [12:27:55]OFD Sender: No OFD packet to send [12:28:00]OFD Sender: No OFD packet to send [12:28:05]OFD Sender: No OFD packet to send [12:28:10]OFD Sender: No OFD packet to send [12:28:15]OFD Sender: No OFD packet to send [12:28:20]OFD Sender: No OFD packet to send [12:28:25]OFD Sender: No OFD packet to send [12:28:30]OFD Sender: No OFD packet to send [12:28:35]OFD Sender: No OFD packet to send [12:28:40]OFD Sender: No OFD packet to send [12:28:45]OFD Sender: No OFD packet to send [12:28:50]OFD Sender: No OFD packet to send [12:28:55]OFD Sender: No OFD packet to send [12:29:00]OFD Sender: No OFD packet to send [12:29:05]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30: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:20]OFD Sender: No OFD packet to send [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:31]accept exits with 9 [12:33:31]New connection [12:33:31]New thread 3067239780 created [12:33:31]Thread 3067383140 joined [12:33:31]Waiting for new connection... [12:33:31] Sock 9.Parse request [12:33:31]Sock 9.Check first char [12:33:31]Sock 9.First char is OK [12:33:31]request: POST /json_proto HTTP/1.0 [12:33:31]Method: POST [12:33:31]URL: /json_proto [12:33:31]Method is POST - this is cgi request [12:33:31]url: /json_proto [12:33:31]query_string will be loaded in cgi processing [12:33:31]execute_cgi json_proto POST (null) [12:33:31]execute_cgi path=json_proto method=POST [12:33:31]POST find Content-Length [12:33:31]Host: 172.17.45.7:8080 [12:33:31]Content-Length: 677 [12:33:31]Content-Type: application/json [12:33:31] [12:33:31]POST finish read [12:33:31]Found Content-Length = 677 [12:33:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:31]execute_script... [12: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 : (1)949652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:31]POST & json_proto [12:33:31]process_json_proto [12:33:31]json parsed OK: [12:33:31]protocol is kg_v1.0 [12:33:31]action value=close_receipt [12:33:31]process_action close_receipt [12:33:31]cmd_close_receipt [12:33:31]MH_GetDate [12:33:31]Write to MH i2c: F0 00 00 9D 52 DE [12:33:31]Write i2c OK [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: F0 [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: F0 09 00 [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: F0 09 00 9D 52 00 20 8C A7 66 90 0F 3E 66 E3 [12:33:31]GetLastDocTimeStamp 1722256013 [12:33:31]current date 1722256416 [12:33:31]FM_GetShiftState [12:33:31]SAM_PROTO_GetShiftState [12:33:31]wFMCommunicate request_size=4 [12:33:31]MH_SAM_APDU [12:33:31]CAPDU: 80 13 01 00 [12:33:31]Write to MH i2c: E2 08 00 9E 52 80 13 01 00 00 00 00 00 6D [12:33:31]Write i2c OK [12:33:31]MH_I2C_Read... [12:33:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:31]Read from MH i2c: E2 [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: E2 0E 00 [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: E2 0E 00 9E 52 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 9B [12:33:31]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:33:31]wFMCommunicate OK [12:33:31]SAM_PROTO_GetShiftState done [12:33:31]FM_GetShiftState done [12:33:31]opened in 1722211641 [12:33:31]opened+sec_in_day 1722298041 [12:33:31]quantity*price = 60003 [12:33:31]sum+1 = 60004 [12:33:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 143 29.07.2024 12:33 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118767 ФПД: 86663699320207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T123336&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118767&fm=86663699320207&tin=02508201610067®Number=0000000000092660&sum=60000 [12:33:32]StoreToDocumentArchive [12:33:32]shift 434 fd 118767 [12:33:32]save to /storage/0434/doc_00118767 [12:33:32]save last doc name /storage/0434/doc_00118767 to /storage/kkm_last_doc_name [12:33:32]save OK [12:33:32]Clear old archive folders... [12:33:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:32]tlvbuf is 01E4DC50 [12:33:32]SAM_PROTO_ClearQueue [12:33:32]wFMCommunicate request_size=4 [12:33:32]MH_SAM_APDU [12:33:32]CAPDU: 80 09 00 00 [12:33:32]Write to MH i2c: E2 08 00 AB 52 80 09 00 00 00 00 00 00 6F [12:33:32]Write i2c OK [12:33:32]MH_I2C_Read... [12:33:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:32]Read from MH i2c: E2 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 03 00 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 03 00 AB 52 00 90 00 71 [12:33:32]RAPDU: 90 00 [12:33:32]wFMCommunicate OK [12:33:32]SAM_PROTO_ClearQueue done [12:33:32]KKMCreateOFDPacket [12:33:32]OFDProtocolAddRootSTLVToBuf [12:33:32]FM_MakeSignedData [12:33:32]FM_MakeSignedData [12:33:32]SAM_PROTO_SignData [12:33:32]wFMCommunicate request_size=4 [12:33:32]MH_SAM_APDU [12:33:32]CAPDU: 80 0D 01 02 [12:33:32]Write to MH i2c: E2 08 00 AC 52 80 0D 01 02 00 00 00 00 77 [12:33:32]Write i2c OK [12:33:32]MH_I2C_Read... [12:33:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:32]Read from MH i2c: E2 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 03 00 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 03 00 AC 52 00 90 00 72 [12:33:32]RAPDU: 90 00 [12:33:32]wFMCommunicate OK [12:33:32]wFMCommunicate request_size=255 [12:33:32]MH_SAM_APDU [12:33:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 20 8C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF CF 01 00 35 04 06 00 4E [12:33:32]Write to MH i2c: E2 02 01 AD 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 20 8C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF CF 01 00 35 04 06 00 4E 00 00 CA [12:33:32]Write i2c OK [12:33:32]MH_I2C_Read... [12:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:32]Read from MH i2c: E2 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 03 00 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 03 00 AD 52 00 90 00 73 [12:33:32]RAPDU: 90 00 [12:33:32]wFMCommunicate OK [12:33:32]wFMCommunicate request_size=10 [12:33:32]MH_SAM_APDU [12:33:32]CAPDU: 80 0D 02 02 05 D1 F7 03 4D 8F [12:33:32]Write to MH i2c: E2 0D 00 AE 52 80 0D 02 02 05 00 D1 F7 03 4D 8F 00 00 2B [12:33:32]Write i2c OK [12:33:32]MH_I2C_Read... [12:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:32]Read from MH i2c: E2 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 03 00 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 03 00 AE 52 00 90 00 74 [12:33:32]RAPDU: 90 00 [12:33:32]wFMCommunicate OK [12:33:32]wFMCommunicate request_size=4 [12:33:32]MH_SAM_APDU [12:33:32]CAPDU: 80 0D 03 02 [12:33:32]Write to MH i2c: E2 08 00 AF 52 80 0D 03 02 00 00 00 00 7C [12:33:32]Write i2c OK [12:33:32]MH_I2C_Read... [12:33:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:32]Read from MH i2c: E2 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 0B 00 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 0B 00 AF 52 00 3C 60 91 B3 64 E9 D1 E3 90 00 5E [12:33:32]RAPDU: 3C 60 91 B3 64 E9 D1 E3 90 00 [12:33:32]wFMCommunicate OK [12:33:32]SAM_PROTO_SignData done [12:33:32]FM_MakeSignedData done [12:33:32]CreateOFDProtocolMessage [12:33:32]wFMCommunicate request_size=4 [12:33:32]MH_SAM_APDU [12:33:32]CAPDU: 80 11 00 00 [12:33:32]Write to MH i2c: E2 08 00 B0 52 80 11 00 00 00 00 00 00 7C [12:33:32]Write i2c OK [12:33:32]MH_I2C_Read... [12:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:33]Read from MH i2c: E2 [12:33:33]MH_I2C_Read... [12:33:33]Read from MH i2c: E2 17 00 [12:33:33]MH_I2C_Read... [12:33:33]Read from MH i2c: E2 17 00 B0 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D7 [12:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:33:33]wFMCommunicate OK [12:33:33]CreateOFDProtocolMessage done [12:33:33]OFDSenderStorePacket 118767 [12:33:33]StoreOFDPacket docnum=118767 [12:33:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F7 0F 07 01 28 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 20 8C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF CF 01 00 35 04 06 00 4E D1 F7 03 4D 8F 3C 60 91 B3 64 E9 D1 E3 [12:33:33]CheckFolder [12:33:33]dirname=/storage/ofd_packets [12:33:33]CheckFolder done [12:33:33]ProducePacketName [12:33:33]name=ofd_packets/00118767 [12:33:33]NVStorageSaveData ofd_packets/00118767 [12:33:33]File name is /storage/ofd_packets/00118767 [12:33:33]Write 301 bytes [12:33:33]NVStorageSaveData done [12:33:33]OFDSenderStorePacket done [12:33:33]KKMCreateOFDPacket done [12:33:33]NVStorageSaveData kkm_last_timestamp [12:33:33]File name is /storage/kkm_last_timestamp [12:33:33]Write 4 bytes [12:33:33]NVStorageSaveData done [12:33:33]ExternCall_PrintAddStr [12:33:33]wPrintStart [12:33:33]Write to MH i2c: 01 00 00 B1 52 03 [12:33:33]Write i2c OK [12:33:33]MH_I2C_Read... [12:33:33]Read from MH i2c: 01 [12:33:33]MH_I2C_Read... [12:33:33]Read from MH i2c: 01 07 00 [12:33:33]MH_I2C_Read... [12:33:33]Read from MH i2c: 01 07 00 B1 52 00 00 00 00 00 FF 0F 18 [12:33:33]RasterBufferAndPrint [12:33:33]line Счет N : (1)949652 [12:33:33]line ИНН: 02508201610067 [12:33:33]line Контрольно-Кассовый Чек [12:33:33]line ПРОДАЖА [12:33:33]line ТРК (МРК, ГНК) : 41 [12:33:33]line Товар: 2710124130 [12:33:33]line Аи-92-К-4 [12:33:33]line 8.850 * 67.80 [12:33:33]line = 600.03 [12:33:33]line НДС 12% НСП 1% [12:33:33]line > о реализуемом товаре [12:33:33]line ОКРУГЛЕНИЕ: -0.03 [12:33:33]line ИТОГО: 600.00 [12:33:33]line Внесено: 600.00 [12:33:33]line СДАЧА: 0.00 [12:33:33]line НСП 1% : 5.31 [12:33:33]line НДС 12% : 63.72 [12:33:33]line Наличными: 600.00 [12:33:33]line Безнал.: 0.00 [12:33:33]line Место: АЗС № 134 "Партнер Нефть" [12:33:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:33:33]line СНО: Общий режим [12:33:33]line Чек 143 29.07.2024 12:33 [12:33:33]line Смена: 434 ФФД: 1.0 [12:33:33]line ЗНМ: 0300000044 [12:33:33]line РНМ: 0000000000092660 [12:33:33]line Версия ККМ: 001 [12:33:33]line ФМ: 0000000000874939 [12:33:33]line ФД: 118767 [12:33:33]line ФПД: 86663699320207 [12:33:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T123336&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118767&fm=86663699320207&tin=02508201610067®Number=0000000000092660&sum=60000 [12:33:33]OFD Sender: Processing packet 118767 [packets to send 86, broken 85] [12:33:33]ProducePacketName [12:33:33]name=ofd_packets/00118767 [12:33:33]OFD Sender: To server: pG, [12:33:33]CommunicateWithHost lk.salyk.kg:30040 [12:33:33]ConnectInit lk.salyk.kg [12:33:33]written 0, free lines is 4095 [12:33:33]Connected sock=10 [12: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 34 39 33 39 0F 01 00 00 F7 0F 07 01 28 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 20 8C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF CF 01 00 35 04 06 00 4E D1 F7 03 4D 8F 3C 60 91 B3 64 E9 D1 E3 [12:33:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 92 55 47 00 24 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF CF 01 00 F4 03 04 00 AE 39 A7 66 B6 04 01 00 00 3D A2 0E 91 B2 D3 38 CB [12:33:33]CommunicateWithHost err = 0 [12:33:33]CheckOFDResponse [12:33:33]1017 (14) - 77093643461234 [12:33:33]1041 (16) - 0000000000874939 [12:33:33]1040 (4) - 118767 [12:33:33]1012 (4) - 29.07.2024 06:41 [12:33:33]1206 (1) - 0 [12:33:33]OFD Sender: Remove packet 118767 [12:33:33]ProducePacketName [12:33:33]name=ofd_packets/00118767 [12:33:33]NVStorageDeleteData [12:33:33]Write to MH i2c: 01 00 00 DB 52 2D [12:33:33]Write i2c OK [12:33:33]MH_I2C_Read... [12:33:33]Read from MH i2c: 01 [12:33:33]MH_I2C_Read... [12:33:33]Read from MH i2c: 01 07 00 [12:33:33]MH_I2C_Read... [12:33:33]Read from MH i2c: 01 07 00 DB 52 00 00 00 00 00 E3 0C 23 [12:33:33]RasterBufferAndPrint [12:33:33]line [12:33:33]line [12:33:33]line [12:33:33]line [12:33:33]line [12:33:33]written 0, free lines is 3305 [12:33:33]MH_Cut [12:33:33]Write to MH i2c: D1 01 00 E2 52 01 06 [12:33:33]Write i2c OK [12:33:33]MH_I2C_Read... [12:33:33]Read from MH i2c: D1 [12:33:33]MH_I2C_Read... [12:33:33]Read from MH i2c: D1 01 00 [12:33:33]MH_I2C_Read... [12:33:33]Read from MH i2c: D1 01 00 E2 52 00 05 [12:33:33]Write to MH i2c: 01 00 00 E3 52 35 [12:33:33]Write i2c OK [12:33:33]MH_I2C_Read... [12:33:34]OFD Sender: No OFD packet to send [12:33:34]*** Cut start [12:33:34]*** Partial cut [12:33:34]*** CUTSNS_PIN = 1 [12:33:34]*** CUTSNS_PIN = 0 [12:33:34]*** Brake cut motor [12:33:35]Read from MH i2c: 01 [12:33:35]MH_I2C_Read... [12:33:35]*** Stop cut motor [12:33:35]*** Cut end [12:33:35]Read from MH i2c: 01 07 00 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: 01 07 00 E3 52 00 00 00 00 00 FF 0F 4A [12:33:35]process_action close_receipt done [12:33:35]requested_data is exist [12:33:35]produce_requested_data [12:33:35]requested_item fm.sn is exist - process it [12:33:35]wFMCommunicate request_size=4 [12:33:35]MH_SAM_APDU [12:33:35]CAPDU: 80 11 00 00 [12:33:35]Write to MH i2c: E2 08 00 E4 52 80 11 00 00 00 00 00 00 B0 [12:33:35]Write i2c OK [12:33:35]MH_I2C_Read... [12:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:35]Read from MH i2c: E2 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: E2 17 00 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: E2 17 00 E4 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0B [12:33:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:33:35]wFMCommunicate OK [12:33:35]requested_item fd.num is exist - process it [12:33:35]SAM_PROTO_GetFieldsCounters [12:33:35]wFMCommunicate request_size=4 [12:33:35]MH_SAM_APDU [12:33:35]CAPDU: 80 13 00 00 [12:33:35]Write to MH i2c: E2 08 00 E5 52 80 13 00 00 00 00 00 00 B3 [12:33:35]Write i2c OK [12:33:35]MH_I2C_Read... [12:33:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:35]Read from MH i2c: E2 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: E2 62 00 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: E2 62 00 E5 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EF CF 01 00 0E 04 04 00 B2 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 F9 [12: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EF CF 01 00 0E 04 04 00 B2 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 [12:33:35]wFMCommunicate OK [12:33:35]SAM_PROTO_GetFieldsCounters done [12:33:35]requested_item shift.num is exist - process it [12:33:35]requested_item shift.opened is exist - process it [12:33:35]req_shift_opened [12:33:35]FM_GetShiftState [12:33:35]SAM_PROTO_GetShiftState [12:33:35]wFMCommunicate request_size=4 [12:33:35]MH_SAM_APDU [12:33:35]CAPDU: 80 13 01 00 [12:33:35]Write to MH i2c: E2 08 00 E6 52 80 13 01 00 00 00 00 00 B5 [12:33:35]Write i2c OK [12:33:35]MH_I2C_Read... [12:33:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:35]Read from MH i2c: E2 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: E2 0E 00 [12:33:35]MH_I2C_Read... [12:33:35]Read from MH i2c: E2 0E 00 E6 52 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E3 [12:33:35]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:33:35]wFMCommunicate OK [12:33:35]SAM_PROTO_GetShiftState done [12:33:35]FM_GetShiftState done [12:33:35]req_shift_opened done [12:33:35]requested_item shift.open_date is exist - process it [12:33:35]req_shift_open_date [12:33:35]req_shift_open_date done [12:33:35]produce_requested_data done [12:33:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118767,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [12:33:35]process_action_free close_receipt [12:33:35]json_value_free [12:33:35]json_value_free done [12:33:35]process_json_proto returns [12:33:35]Send response to host [12:33:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118767,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [12:33:35]free response buf [12:33:35]execute_script done [12:33:35]execute_script returns [12:33:35]free content buf [12:33:35]Sock 9.Close socket [12:33:35]Sock 9.Thread stoped [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:09]OFD Sender: No OFD packet to send [12:38:14]OFD Sender: No OFD packet to send [12:38:19]OFD Sender: No OFD packet to send [12:38:24]OFD Sender: No OFD packet to send [12:38:29]OFD Sender: No OFD packet to send [12:38:34]OFD Sender: No OFD packet to send [12:38:39]OFD Sender: No OFD packet to send [12:38:44]OFD Sender: No OFD packet to send [12:38:49]OFD Sender: No OFD packet to send [12:38:54]OFD Sender: No OFD packet to send [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]OFD Sender: No OFD packet to send [12:39:24]OFD Sender: No OFD packet to send [12:39:29]OFD Sender: No OFD packet to send [12:39:34]OFD Sender: No OFD packet to send [12:39:39]OFD Sender: No OFD packet to send [12:39:44]OFD Sender: No OFD packet to send [12:39:49]OFD Sender: No OFD packet to send [12:39:54]OFD Sender: No OFD packet to send [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]OFD Sender: No OFD packet to send [12:42:54]OFD Sender: No OFD packet to send [12:42:59]OFD Sender: No OFD packet to send [12:43:04]OFD Sender: No OFD packet to send [12:43:09]OFD Sender: No OFD packet to send [12:43:14]OFD Sender: No OFD packet to send [12:43:19]OFD Sender: No OFD packet to send [12:43:24]OFD Sender: No OFD packet to send [12:43:29]OFD Sender: No OFD packet to send [12:43:34]OFD Sender: No OFD packet to send [12:43:39]OFD Sender: No OFD packet to send [12:43:44]OFD Sender: No OFD packet to send [12:43:49]OFD Sender: No OFD packet to send [12:43:52]accept exits with 7 [12:43:52]New connection [12:43:52]New thread 3067383140 created [12:43:52]Thread 3067239780 joined [12:43:52]Waiting for new connection... [12:43:52] Sock 7.Parse request [12:43:52]Sock 7.Check first char [12:43:52]Sock 7.First char is OK [12:43:52]request: POST /json_proto HTTP/1.0 [12:43:52]Method: POST [12:43:52]URL: /json_proto [12:43:52]Method is POST - this is cgi request [12:43:52]url: /json_proto [12:43:52]query_string will be loaded in cgi processing [12:43:52]execute_cgi json_proto POST (null) [12:43:52]execute_cgi path=json_proto method=POST [12:43:52]POST find Content-Length [12:43:52]Host: 172.17.45.7:8080 [12:43:52]Content-Length: 677 [12:43:52]Content-Type: application/json [12:43:52] [12:43:52]POST finish read [12:43:52]Found Content-Length = 677 [12:43:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:52]execute_script... [12:43: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)949653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:52]POST & json_proto [12:43:52]process_json_proto [12:43:52]json parsed OK: [12:43:52]protocol is kg_v1.0 [12:43:52]action value=close_receipt [12:43:52]process_action close_receipt [12:43:52]cmd_close_receipt [12:43:52]MH_GetDate [12:43:52]Write to MH i2c: F0 00 00 E7 52 28 [12:43:52]Write i2c OK [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: F0 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: F0 09 00 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: F0 09 00 E7 52 00 8E 8E A7 66 90 0F 3E 66 9D [12:43:52]GetLastDocTimeStamp 1722256416 [12:43:52]current date 1722257038 [12:43:52]FM_GetShiftState [12:43:52]SAM_PROTO_GetShiftState [12:43:52]wFMCommunicate request_size=4 [12:43:52]MH_SAM_APDU [12:43:52]CAPDU: 80 13 01 00 [12:43:52]Write to MH i2c: E2 08 00 E8 52 80 13 01 00 00 00 00 00 B7 [12:43:52]Write i2c OK [12:43:52]MH_I2C_Read... [12:43:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:52]Read from MH i2c: E2 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: E2 0E 00 [12:43:52]MH_I2C_Read... [12:43:52]Read from MH i2c: E2 0E 00 E8 52 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E5 [12:43:52]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:43:52]wFMCommunicate OK [12:43:52]SAM_PROTO_GetShiftState done [12:43:52]FM_GetShiftState done [12:43:52]opened in 1722211641 [12:43:52]opened+sec_in_day 1722298041 [12:43:52]quantity*price = 50036 [12:43:52]sum+1 = 50037 [12:43:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 144 29.07.2024 12:43 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118768 ФПД: 66313435388416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T124358&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118768&fm=66313435388416&tin=02508201610067®Number=0000000000092660&sum=50000 [12:43:53]StoreToDocumentArchive [12:43:53]shift 434 fd 118768 [12:43:53]save to /storage/0434/doc_00118768 [12:43:53]save last doc name /storage/0434/doc_00118768 to /storage/kkm_last_doc_name [12:43:53]save OK [12:43:53]Clear old archive folders... [12:43:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:43:53]tlvbuf is 01E4D960 [12:43:53]SAM_PROTO_ClearQueue [12:43:53]wFMCommunicate request_size=4 [12:43:53]MH_SAM_APDU [12:43:53]CAPDU: 80 09 00 00 [12:43:53]Write to MH i2c: E2 08 00 F5 52 80 09 00 00 00 00 00 00 B9 [12:43:53]Write i2c OK [12:43:53]MH_I2C_Read... [12:43:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:53]Read from MH i2c: E2 [12:43:53]MH_I2C_Read... [12:43:53]Read from MH i2c: E2 03 00 [12:43:53]MH_I2C_Read... [12:43:53]Read from MH i2c: E2 03 00 F5 52 00 90 00 BB [12:43:53]RAPDU: 90 00 [12:43:53]wFMCommunicate OK [12:43:53]SAM_PROTO_ClearQueue done [12:43:53]KKMCreateOFDPacket [12:43:53]OFDProtocolAddRootSTLVToBuf [12:43:53]FM_MakeSignedData [12:43:53]FM_MakeSignedData [12:43:53]SAM_PROTO_SignData [12:43:53]wFMCommunicate request_size=4 [12:43:53]MH_SAM_APDU [12:43:53]CAPDU: 80 0D 01 02 [12:43:53]Write to MH i2c: E2 08 00 F6 52 80 0D 01 02 00 00 00 00 C1 [12:43:53]Write i2c OK [12:43:53]MH_I2C_Read... [12:43:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:53]Read from MH i2c: E2 [12:43:53]MH_I2C_Read... [12:43:53]Read from MH i2c: E2 03 00 [12:43:53]MH_I2C_Read... [12:43:53]Read from MH i2c: E2 03 00 F6 52 00 90 00 BC [12:43:53]RAPDU: 90 00 [12:43:53]wFMCommunicate OK [12:43:53]wFMCommunicate request_size=255 [12:43:53]MH_SAM_APDU [12:43:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 8E 8E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 CF 01 00 35 04 06 00 3C [12:43:53]Write to MH i2c: E2 02 01 F7 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 8E 8E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 CF 01 00 35 04 06 00 3C 00 00 AD [12:43:53]Write i2c OK [12:43:53]MH_I2C_Read... [12:43:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:53]Read from MH i2c: E2 [12:43:53]MH_I2C_Read... [12:43:53]Read from MH i2c: E2 03 00 [12:43:53]MH_I2C_Read... [12:43:53]Read from MH i2c: E2 03 00 F7 52 00 90 00 BD [12:43:53]RAPDU: 90 00 [12:43:53]wFMCommunicate OK [12:43:53]wFMCommunicate request_size=10 [12:43:53]MH_SAM_APDU [12:43:53]CAPDU: 80 0D 02 02 05 4F CC C2 9A 00 [12:43:53]Write to MH i2c: E2 0D 00 F8 52 80 0D 02 02 05 00 4F CC C2 9A 00 00 00 45 [12:43:53]Write i2c OK [12:43:53]MH_I2C_Read... [12:43:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:54]Read from MH i2c: E2 [12:43:54]MH_I2C_Read... [12:43:54]Read from MH i2c: E2 03 00 [12:43:54]MH_I2C_Read... [12:43:54]Read from MH i2c: E2 03 00 F8 52 00 90 00 BE [12:43:54]RAPDU: 90 00 [12:43:54]wFMCommunicate OK [12:43:54]wFMCommunicate request_size=4 [12:43:54]MH_SAM_APDU [12:43:54]CAPDU: 80 0D 03 02 [12:43:54]Write to MH i2c: E2 08 00 F9 52 80 0D 03 02 00 00 00 00 C6 [12:43:54]Write i2c OK [12:43:54]MH_I2C_Read... [12:43:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:54]Read from MH i2c: E2 [12:43:54]MH_I2C_Read... [12:43:54]Read from MH i2c: E2 0B 00 [12:43:54]MH_I2C_Read... [12:43:54]Read from MH i2c: E2 0B 00 F9 52 00 D0 7B 0D 12 0F D8 2F 65 90 00 AC [12:43:54]RAPDU: D0 7B 0D 12 0F D8 2F 65 90 00 [12:43:54]wFMCommunicate OK [12:43:54]SAM_PROTO_SignData done [12:43:54]FM_MakeSignedData done [12:43:54]CreateOFDProtocolMessage [12:43:54]wFMCommunicate request_size=4 [12:43:54]MH_SAM_APDU [12:43:54]CAPDU: 80 11 00 00 [12:43:54]Write to MH i2c: E2 08 00 FA 52 80 11 00 00 00 00 00 00 C6 [12:43:54]Write i2c OK [12:43:54]MH_I2C_Read... [12:43:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:54]Read from MH i2c: E2 [12:43:54]MH_I2C_Read... [12:43:54]Read from MH i2c: E2 17 00 [12:43:54]MH_I2C_Read... [12:43:54]Read from MH i2c: E2 17 00 FA 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 21 [12:43:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:43:54]wFMCommunicate OK [12:43:54]CreateOFDProtocolMessage done [12:43:54]OFDSenderStorePacket 118768 [12:43:54]StoreOFDPacket docnum=118768 [12:43:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 0D 93 07 01 E6 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 8E 8E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 CF 01 00 35 04 06 00 3C 4F CC C2 9A 00 D0 7B 0D 12 0F D8 2F 65 [12:43:54]CheckFolder [12:43:54]dirname=/storage/ofd_packets [12:43:54]CheckFolder done [12:43:54]ProducePacketName [12:43:54]name=ofd_packets/00118768 [12:43:54]NVStorageSaveData ofd_packets/00118768 [12:43:54]File name is /storage/ofd_packets/00118768 [12:43:54]Write 301 bytes [12:43:54]NVStorageSaveData done [12:43:54]OFDSenderStorePacket done [12:43:54]KKMCreateOFDPacket done [12:43:54]NVStorageSaveData kkm_last_timestamp [12:43:54]File name is /storage/kkm_last_timestamp [12:43:54]Write 4 bytes [12:43:54]NVStorageSaveData done [12:43:54]ExternCall_PrintAddStr [12:43:54]wPrintStart [12:43:54]Write to MH i2c: 01 00 00 FB 52 4D [12:43:54]Write i2c OK [12:43:54]MH_I2C_Read... [12:43:54]Read from MH i2c: 01 [12:43:54]MH_I2C_Read... [12:43:54]Read from MH i2c: 01 07 00 [12:43:54]MH_I2C_Read... [12:43:54]Read from MH i2c: 01 07 00 FB 52 00 00 00 00 00 FF 0F 62 [12:43:54]RasterBufferAndPrint [12:43:54]line Счет N : (1)949653 [12:43:54]line ИНН: 02508201610067 [12:43:54]line Контрольно-Кассовый Чек [12:43:54]line ПРОДАЖА [12:43:54]line ТРК (МРК, ГНК) : 41 [12:43:54]line Товар: 2710124130 [12:43:54]line Аи-92-К-4 [12:43:54]line 7.380 * 67.80 [12:43:54]line = 500.36 [12:43:54]line НДС 12% НСП 1% [12:43:54]line > о реализуемом товаре [12:43:54]line ОКРУГЛЕНИЕ: -0.36 [12:43:54]line ИТОГО: 500.00 [12:43:54]line Внесено: 500.00 [12:43:54]line СДАЧА: 0.00 [12:43:54]line НСП 1% : 4.43 [12:43:54]line НДС 12% : 53.14 [12:43:54]line Наличными: 500.00 [12:43:54]line Безнал.: 0.00 [12:43:54]line Место: АЗС № 134 "Партнер Нефть" [12:43:54]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:43:54]line СНО: Общий режим [12:43:54]line Чек 144 29.07.2024 12:43 [12:43:54]line Смена: 434 ФФД: 1.0 [12:43:54]line ЗНМ: 0300000044 [12:43:54]line РНМ: 0000000000092660 [12:43:54]line Версия ККМ: 001 [12:43:54]line ФМ: 0000000000874939 [12:43:54]line ФД: 118768 [12:43:54]line ФПД: 66313435388416 [12:43:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T124358&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118768&fm=66313435388416&tin=02508201610067®Number=0000000000092660&sum=50000 [12:43:54]written 0, free lines is 4095 [12:43:54]OFD Sender: Processing packet 118768 [packets to send 86, broken 85] [12:43:54]ProducePacketName [12:43:54]name=ofd_packets/00118768 [12:43:54]OFD Sender: To server: pG, [12:43:54]CommunicateWithHost lk.salyk.kg:30040 [12:43:54]ConnectInit lk.salyk.kg [12:43:54]Connected sock=10 [12:43:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 0D 93 07 01 E6 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 8E 8E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 CF 01 00 35 04 06 00 3C 4F CC C2 9A 00 D0 7B 0D 12 0F D8 2F 65 [12:43:54]Write to MH i2c: 01 00 00 25 53 78 [12:43:54]Write i2c OK [12:43:54]MH_I2C_Read... [12:43:54]Read from MH i2c: 01 [12:43:54]MH_I2C_Read... [12:43:54]Read from MH i2c: 01 07 00 [12:43:54]MH_I2C_Read... [12:43:54]Read from MH i2c: 01 07 00 25 53 00 00 00 00 00 E2 0C 6D [12:43:54]RasterBufferAndPrint [12:43:54]line [12:43:54]line [12:43:54]line [12:43:54]line [12:43:54]line [12:43:54]written 0, free lines is 3306 [12:43:54]MH_Cut [12:43:54]Write to MH i2c: D1 01 00 2C 53 01 51 [12:43:54]Write i2c OK [12:43:54]MH_I2C_Read... [12:43:54]Read from MH i2c: D1 [12:43:54]MH_I2C_Read... [12:43:54]Read from MH i2c: D1 01 00 [12:43:54]MH_I2C_Read... [12:43:54]Read from MH i2c: D1 01 00 2C 53 00 50 [12:43:54]Write to MH i2c: 01 00 00 2D 53 80 [12:43:54]Write i2c OK [12:43:54]MH_I2C_Read... [12:43:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E7 E5 47 00 ED 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 CF 01 00 F4 03 04 00 1B 3C A7 66 B6 04 01 00 00 43 96 FD 85 28 B1 F5 74 [12:43:54]CommunicateWithHost err = 0 [12:43:54]CheckOFDResponse [12:43:54]1017 (14) - 77093643461234 [12:43:54]1041 (16) - 0000000000874939 [12:43:54]1040 (4) - 118768 [12:43:54]1012 (4) - 29.07.2024 06:52 [12:43:54]1206 (1) - 0 [12:43:54]OFD Sender: Remove packet 118768 [12:43:54]ProducePacketName [12:43:54]name=ofd_packets/00118768 [12:43:54]NVStorageDeleteData [12:43:55]OFD Sender: No OFD packet to send [12:43:55]*** Cut start [12:43:55]*** Partial cut [12:43:55]*** CUTSNS_PIN = 1 [12:43:55]*** CUTSNS_PIN = 0 [12:43:55]*** Brake cut motor [12:43:55]Read from MH i2c: 01 [12:43:55]MH_I2C_Read... [12:43:55]*** Stop cut motor [12:43:55]*** Cut end [12:43:55]Read from MH i2c: 01 07 00 [12:43:55]MH_I2C_Read... [12:43:55]Read from MH i2c: 01 07 00 2D 53 00 00 00 00 00 FF 0F 95 [12:43:55]process_action close_receipt done [12:43:55]requested_data is exist [12:43:55]produce_requested_data [12:43:55]requested_item fm.sn is exist - process it [12:43:55]wFMCommunicate request_size=4 [12:43:55]MH_SAM_APDU [12:43:55]CAPDU: 80 11 00 00 [12:43:55]Write to MH i2c: E2 08 00 2E 53 80 11 00 00 00 00 00 00 FB [12:43:55]Write i2c OK [12:43:55]MH_I2C_Read... [12:43:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:55]Read from MH i2c: E2 [12:43:55]MH_I2C_Read... [12:43:55]Read from MH i2c: E2 17 00 [12:43:55]MH_I2C_Read... [12:43:55]Read from MH i2c: E2 17 00 2E 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 56 [12:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:43:55]wFMCommunicate OK [12:43:55]requested_item fd.num is exist - process it [12:43:55]SAM_PROTO_GetFieldsCounters [12:43:55]wFMCommunicate request_size=4 [12:43:55]MH_SAM_APDU [12:43:55]CAPDU: 80 13 00 00 [12:43:55]Write to MH i2c: E2 08 00 2F 53 80 13 00 00 00 00 00 00 FE [12:43:55]Write i2c OK [12:43:55]MH_I2C_Read... [12:43:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:56]Read from MH i2c: E2 [12:43:56]MH_I2C_Read... [12:43:56]Read from MH i2c: E2 62 00 [12:43:56]MH_I2C_Read... [12:43:56]Read from MH i2c: E2 62 00 2F 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F0 CF 01 00 0E 04 04 00 B2 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 48 [12:43: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F0 CF 01 00 0E 04 04 00 B2 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 [12:43:56]wFMCommunicate OK [12:43:56]SAM_PROTO_GetFieldsCounters done [12:43:56]requested_item shift.num is exist - process it [12:43:56]requested_item shift.opened is exist - process it [12:43:56]req_shift_opened [12:43:56]FM_GetShiftState [12:43:56]SAM_PROTO_GetShiftState [12:43:56]wFMCommunicate request_size=4 [12:43:56]MH_SAM_APDU [12:43:56]CAPDU: 80 13 01 00 [12:43:56]Write to MH i2c: E2 08 00 30 53 80 13 01 00 00 00 00 00 00 [12:43:56]Write i2c OK [12:43:56]MH_I2C_Read... [12:43:56]Read from MH i2c: E2 [12:43:56]MH_I2C_Read... [12:43:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:56]Read from MH i2c: E2 0E 00 [12:43:56]MH_I2C_Read... [12:43:56]Read from MH i2c: E2 0E 00 30 53 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 2E [12:43:56]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:43:56]wFMCommunicate OK [12:43:56]SAM_PROTO_GetShiftState done [12:43:56]FM_GetShiftState done [12:43:56]req_shift_opened done [12:43:56]requested_item shift.open_date is exist - process it [12:43:56]req_shift_open_date [12:43:56]req_shift_open_date done [12:43:56]produce_requested_data done [12:43:56]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118768,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [12:43:56]process_action_free close_receipt [12:43:56]json_value_free [12:43:56]json_value_free done [12:43:56]process_json_proto returns [12:43:56]Send response to host [12:43:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118768,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [12:43:56]free response buf [12:43:56]execute_script done [12:43:56]execute_script returns [12:43:56]free content buf [12:43:56]Sock 7.Close socket [12:43:56]Sock 7.Thread stoped [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:10]accept exits with 9 [12:44:10]New connection [12:44:10]New thread 3067239780 created [12:44:10]Thread 3067383140 joined [12:44:10]Waiting for new connection... [12:44:10] Sock 9.Parse request [12:44:10]Sock 9.Check first char [12:44:10]Sock 9.First char is OK [12:44:10]request: POST /json_proto HTTP/1.0 [12:44:10]Method: POST [12:44:10]URL: /json_proto [12:44:10]Method is POST - this is cgi request [12:44:10]url: /json_proto [12:44:10]query_string will be loaded in cgi processing [12:44:10]execute_cgi json_proto POST (null) [12:44:10]execute_cgi path=json_proto method=POST [12:44:10]POST find Content-Length [12:44:10]Host: 172.17.45.7:8080 [12:44:10]Content-Length: 682 [12:44:10]Content-Type: application/json [12:44:10] [12:44:10]POST finish read [12:44:10]Found Content-Length = 682 [12:44:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:10]execute_script... [12:44:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:10]POST & json_proto [12:44:10]process_json_proto [12:44:10]json parsed OK: [12:44:10]protocol is kg_v1.0 [12:44:10]action value=close_receipt [12:44:10]process_action close_receipt [12:44:10]cmd_close_receipt [12:44:10]MH_GetDate [12:44:10]Write to MH i2c: F0 00 00 31 53 73 [12:44:10]Write i2c OK [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: F0 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: F0 09 00 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: F0 09 00 31 53 00 A0 8E A7 66 90 0F 3E 66 FA [12:44:10]GetLastDocTimeStamp 1722257038 [12:44:10]current date 1722257056 [12:44:10]FM_GetShiftState [12:44:10]SAM_PROTO_GetShiftState [12:44:10]wFMCommunicate request_size=4 [12:44:10]MH_SAM_APDU [12:44:10]CAPDU: 80 13 01 00 [12:44:10]Write to MH i2c: E2 08 00 32 53 80 13 01 00 00 00 00 00 02 [12:44:10]Write i2c OK [12:44:10]MH_I2C_Read... [12:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:10]Read from MH i2c: E2 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: E2 0E 00 [12:44:10]MH_I2C_Read... [12:44:10]Read from MH i2c: E2 0E 00 32 53 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 30 [12:44:10]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:44:10]wFMCommunicate OK [12:44:10]SAM_PROTO_GetShiftState done [12:44:10]FM_GetShiftState done [12:44:10]opened in 1722211641 [12:44:10]opened+sec_in_day 1722298041 [12:44:10]quantity*price = 100021 [12:44:10]sum+1 = 100023 [12:44:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 145 29.07.2024 12:44 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118769 ФПД: 135435620021595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T124416&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118769&fm=135435620021595&tin=02508201610067®Number=0000000000092660&sum=100000 [12:44:12]StoreToDocumentArchive [12:44:12]shift 434 fd 118769 [12:44:12]save to /storage/0434/doc_00118769 [12:44:12]save last doc name /storage/0434/doc_00118769 to /storage/kkm_last_doc_name [12:44:12]save OK [12:44:12]Clear old archive folders... [12:44:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:12]tlvbuf is B6F43E80 [12:44:12]SAM_PROTO_ClearQueue [12:44:12]wFMCommunicate request_size=4 [12:44:12]MH_SAM_APDU [12:44:12]CAPDU: 80 09 00 00 [12:44:12]Write to MH i2c: E2 08 00 3F 53 80 09 00 00 00 00 00 00 04 [12:44:12]Write i2c OK [12:44:12]MH_I2C_Read... [12:44:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:12]Read from MH i2c: E2 [12:44:12]MH_I2C_Read... [12:44:12]Read from MH i2c: E2 03 00 [12:44:12]MH_I2C_Read... [12:44:12]Read from MH i2c: E2 03 00 3F 53 00 90 00 06 [12:44:12]RAPDU: 90 00 [12:44:12]wFMCommunicate OK [12:44:12]SAM_PROTO_ClearQueue done [12:44:12]KKMCreateOFDPacket [12:44:12]OFDProtocolAddRootSTLVToBuf [12:44:12]FM_MakeSignedData [12:44:12]FM_MakeSignedData [12:44:12]SAM_PROTO_SignData [12:44:12]wFMCommunicate request_size=4 [12:44:12]MH_SAM_APDU [12:44:12]CAPDU: 80 0D 01 02 [12:44:12]Write to MH i2c: E2 08 00 40 53 80 0D 01 02 00 00 00 00 0C [12:44:12]Write i2c OK [12:44:12]MH_I2C_Read... [12:44:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:12]Read from MH i2c: E2 [12:44:12]MH_I2C_Read... [12:44:12]Read from MH i2c: E2 03 00 [12:44:12]MH_I2C_Read... [12:44:12]Read from MH i2c: E2 03 00 40 53 00 90 00 07 [12:44:12]RAPDU: 90 00 [12:44:12]wFMCommunicate OK [12:44:12]wFMCommunicate request_size=255 [12:44:12]MH_SAM_APDU [12:44:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 A0 8E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 CF 01 00 35 04 06 00 7B [12:44:12]Write to MH i2c: E2 02 01 41 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 A0 8E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 CF 01 00 35 04 06 00 7B 00 00 77 [12:44:12]Write i2c OK [12:44:12]MH_I2C_Read... [12:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:12]Read from MH i2c: E2 [12:44:12]MH_I2C_Read... [12:44:12]Read from MH i2c: E2 03 00 [12:44:12]MH_I2C_Read... [12:44:12]Read from MH i2c: E2 03 00 41 53 00 90 00 08 [12:44:12]RAPDU: 90 00 [12:44:12]wFMCommunicate OK [12:44:12]wFMCommunicate request_size=10 [12:44:12]MH_SAM_APDU [12:44:12]CAPDU: 80 0D 02 02 05 2D 90 05 75 5B [12:44:12]Write to MH i2c: E2 0D 00 42 53 80 0D 02 02 05 00 2D 90 05 75 5B 00 00 AB [12:44:12]Write i2c OK [12:44:12]MH_I2C_Read... [12:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:12]Read from MH i2c: E2 [12:44:12]MH_I2C_Read... [12:44:12]Read from MH i2c: E2 03 00 [12:44:12]MH_I2C_Read... [12:44:12]Read from MH i2c: E2 03 00 42 53 00 90 00 09 [12:44:12]RAPDU: 90 00 [12:44:12]wFMCommunicate OK [12:44:12]wFMCommunicate request_size=4 [12:44:12]MH_SAM_APDU [12:44:12]CAPDU: 80 0D 03 02 [12:44:12]Write to MH i2c: E2 08 00 43 53 80 0D 03 02 00 00 00 00 11 [12:44:12]Write i2c OK [12:44:12]MH_I2C_Read... [12:44:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:12]Read from MH i2c: E2 [12:44:12]MH_I2C_Read... [12:44:12]Read from MH i2c: E2 0B 00 [12:44:12]MH_I2C_Read... [12:44:12]Read from MH i2c: E2 0B 00 43 53 00 8A 54 02 D6 3E A6 43 C1 90 00 B0 [12:44:12]RAPDU: 8A 54 02 D6 3E A6 43 C1 90 00 [12:44:12]wFMCommunicate OK [12:44:12]SAM_PROTO_SignData done [12:44:12]FM_MakeSignedData done [12:44:12]CreateOFDProtocolMessage [12:44:12]wFMCommunicate request_size=4 [12:44:12]MH_SAM_APDU [12:44:12]CAPDU: 80 11 00 00 [12:44:12]Write to MH i2c: E2 08 00 44 53 80 11 00 00 00 00 00 00 11 [12:44:12]Write i2c OK [12:44:12]MH_I2C_Read... [12:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:12]Read from MH i2c: E2 [12:44:12]MH_I2C_Read... [12:44:12]Read from MH i2c: E2 17 00 [12:44:12]MH_I2C_Read... [12:44:12]Read from MH i2c: E2 17 00 44 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6C [12:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:44:12]wFMCommunicate OK [12:44:12]CreateOFDProtocolMessage done [12:44:12]OFDSenderStorePacket 118769 [12:44:12]StoreOFDPacket docnum=118769 [12:44:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 15 EE 07 01 56 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 A0 8E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 CF 01 00 35 04 06 00 7B 2D 90 05 75 5B 8A 54 02 D6 3E A6 43 C1 [12:44:12]CheckFolder [12:44:12]dirname=/storage/ofd_packets [12:44:12]CheckFolder done [12:44:12]ProducePacketName [12:44:12]name=ofd_packets/00118769 [12:44:12]NVStorageSaveData ofd_packets/00118769 [12:44:12]File name is /storage/ofd_packets/00118769 [12:44:12]Write 301 bytes [12:44:12]NVStorageSaveData done [12:44:12]OFDSenderStorePacket done [12:44:12]KKMCreateOFDPacket done [12:44:12]NVStorageSaveData kkm_last_timestamp [12:44:12]File name is /storage/kkm_last_timestamp [12:44:12]Write 4 bytes [12:44:12]NVStorageSaveData done [12:44:12]ExternCall_PrintAddStr [12:44:12]wPrintStart [12:44:12]Write to MH i2c: 01 00 00 45 53 98 [12:44:12]Write i2c OK [12:44:12]MH_I2C_Read... [12:44:12]Read from MH i2c: 01 [12:44:12]MH_I2C_Read... [12:44:12]Read from MH i2c: 01 07 00 [12:44:12]MH_I2C_Read... [12:44:12]Read from MH i2c: 01 07 00 45 53 00 00 00 00 00 FF 0F AD [12:44:12]RasterBufferAndPrint [12:44:12]line Счет N : (1)949654 [12:44:12]line ИНН: 02508201610067 [12:44:12]line Контрольно-Кассовый Чек [12:44:12]line ПРОДАЖА [12:44:12]line ТРК (МРК, ГНК) : 33 [12:44:12]line Товар: 2710124500 [12:44:12]line Аи-95-К-3 [12:44:12]line 13.480 * 74.20 [12:44:12]line = 1000.22 [12:44:12]line НДС 12% НСП 1% [12:44:12]line > о реализуемом товаре [12:44:12]line ОКРУГЛЕНИЕ: -0.22 [12:44:12]line ИТОГО: 1000.00 [12:44:12]line Внесено: 1000.00 [12:44:12]line СДАЧА: 0.00 [12:44:12]line НСП 1% : 8.85 [12:44:12]line НДС 12% : 106.22 [12:44:12]line Наличными: 1000.00 [12:44:12]line Безнал.: 0.00 [12:44:12]line Место: АЗС № 134 "Партнер Нефть" [12:44:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:44:12]line СНО: Общий режим [12:44:12]line Чек 145 29.07.2024 12:44 [12:44:12]line Смена: 434 ФФД: 1.0 [12:44:12]line ЗНМ: 0300000044 [12:44:12]line РНМ: 0000000000092660 [12:44:12]line Версия ККМ: 001 [12:44:12]line ФМ: 0000000000874939 [12:44:12]line ФД: 118769 [12:44:12]line ФПД: 135435620021595 [12:44:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T124416&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118769&fm=135435620021595&tin=02508201610067®Number=0000000000092660&sum=100000 [12:44:12]OFD Sender: Processing packet 118769 [packets to send 86, broken 85] [12:44:12]ProducePacketName [12:44:12]name=ofd_packets/00118769 [12:44:12]OFD Sender: To server: pG, [12:44:12]CommunicateWithHost lk.salyk.kg:30040 [12:44:12]ConnectInit lk.salyk.kg [12:44:12]written 0, free lines is 4095 [12:44:13]Connected sock=10 [12:44:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 15 EE 07 01 56 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 A0 8E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 CF 01 00 35 04 06 00 7B 2D 90 05 75 5B 8A 54 02 D6 3E A6 43 C1 [12:44:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 28 79 47 00 BC 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 34 39 33 39 10 04 04 00 F1 CF 01 00 F4 03 04 00 2E 3C A7 66 B6 04 01 00 00 00 13 0D B8 C1 DA CE AE [12:44:13]CommunicateWithHost err = 0 [12:44:13]CheckOFDResponse [12:44:13]1017 (14) - 77093643461234 [12:44:13]1041 (16) - 0000000000874939 [12:44:13]1040 (4) - 118769 [12:44:13]1012 (4) - 29.07.2024 06:52 [12:44:13]1206 (1) - 0 [12:44:13]OFD Sender: Remove packet 118769 [12:44:13]ProducePacketName [12:44:13]name=ofd_packets/00118769 [12:44:13]NVStorageDeleteData [12:44:13]Write to MH i2c: 01 00 00 6F 53 C2 [12:44:13]Write i2c OK [12:44:13]MH_I2C_Read... [12:44:13]Read from MH i2c: 01 [12:44:13]MH_I2C_Read... [12:44:13]Read from MH i2c: 01 07 00 [12:44:13]MH_I2C_Read... [12:44:13]Read from MH i2c: 01 07 00 6F 53 00 00 00 00 00 EC 0C C1 [12:44:13]RasterBufferAndPrint [12:44:13]line [12:44:13]line [12:44:13]line [12:44:13]line [12:44:13]line [12:44:13]written 0, free lines is 3315 [12:44:13]MH_Cut [12:44:13]Write to MH i2c: D1 01 00 76 53 01 9B [12:44:13]Write i2c OK [12:44:13]MH_I2C_Read... [12:44:13]Read from MH i2c: D1 [12:44:13]MH_I2C_Read... [12:44:13]Read from MH i2c: D1 01 00 [12:44:13]MH_I2C_Read... [12:44:13]Read from MH i2c: D1 01 00 76 53 00 9A [12:44:13]Write to MH i2c: 01 00 00 77 53 CA [12:44:13]Write i2c OK [12:44:13]MH_I2C_Read... [12:44:13]OFD Sender: No OFD packet to send [12:44:14]*** Cut start [12:44:14]*** Partial cut [12:44:14]*** CUTSNS_PIN = 1 [12:44:14]*** CUTSNS_PIN = 0 [12:44:14]*** Brake cut motor [12:44:14]Read from MH i2c: 01 [12:44:14]MH_I2C_Read... [12:44:14]*** Stop cut motor [12:44:14]*** Cut end [12:44:14]Read from MH i2c: 01 07 00 [12:44:14]MH_I2C_Read... [12:44:14]Read from MH i2c: 01 07 00 77 53 00 00 00 00 00 FF 0F DF [12:44:14]process_action close_receipt done [12:44:14]requested_data is exist [12:44:14]produce_requested_data [12:44:14]requested_item fm.sn is exist - process it [12:44:14]wFMCommunicate request_size=4 [12:44:14]MH_SAM_APDU [12:44:14]CAPDU: 80 11 00 00 [12:44:14]Write to MH i2c: E2 08 00 78 53 80 11 00 00 00 00 00 00 45 [12:44:14]Write i2c OK [12:44:14]MH_I2C_Read... [12:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:14]Read from MH i2c: E2 [12:44:14]MH_I2C_Read... [12:44:14]Read from MH i2c: E2 17 00 [12:44:14]MH_I2C_Read... [12:44:14]Read from MH i2c: E2 17 00 78 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A0 [12:44:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:44:14]wFMCommunicate OK [12:44:14]requested_item fd.num is exist - process it [12:44:14]SAM_PROTO_GetFieldsCounters [12:44:14]wFMCommunicate request_size=4 [12:44:14]MH_SAM_APDU [12:44:14]CAPDU: 80 13 00 00 [12:44:14]Write to MH i2c: E2 08 00 79 53 80 13 00 00 00 00 00 00 48 [12:44:14]Write i2c OK [12:44:14]MH_I2C_Read... [12:44:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:14]Read from MH i2c: E2 [12:44:14]MH_I2C_Read... [12:44:14]Read from MH i2c: E2 62 00 [12:44:14]MH_I2C_Read... [12:44:14]Read from MH i2c: E2 62 00 79 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F1 CF 01 00 0E 04 04 00 B2 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 96 [12:44:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F1 CF 01 00 0E 04 04 00 B2 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 [12:44:14]wFMCommunicate OK [12:44:14]SAM_PROTO_GetFieldsCounters done [12:44:14]requested_item shift.num is exist - process it [12:44:14]requested_item shift.opened is exist - process it [12:44:14]req_shift_opened [12:44:14]FM_GetShiftState [12:44:14]SAM_PROTO_GetShiftState [12:44:14]wFMCommunicate request_size=4 [12:44:14]MH_SAM_APDU [12:44:14]CAPDU: 80 13 01 00 [12:44:14]Write to MH i2c: E2 08 00 7A 53 80 13 01 00 00 00 00 00 4A [12:44:14]Write i2c OK [12:44:14]MH_I2C_Read... [12:44:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:14]Read from MH i2c: E2 [12:44:14]MH_I2C_Read... [12:44:14]Read from MH i2c: E2 0E 00 [12:44:14]MH_I2C_Read... [12:44:14]Read from MH i2c: E2 0E 00 7A 53 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 78 [12:44:14]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:44:14]wFMCommunicate OK [12:44:14]SAM_PROTO_GetShiftState done [12:44:14]FM_GetShiftState done [12:44:14]req_shift_opened done [12:44:14]requested_item shift.open_date is exist - process it [12:44:14]req_shift_open_date [12:44:14]req_shift_open_date done [12:44:14]produce_requested_data done [12:44:14]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118769,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [12:44:14]process_action_free close_receipt [12:44:14]json_value_free [12:44:14]json_value_free done [12:44:14]process_json_proto returns [12:44:14]Send response to host [12:44:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118769,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [12:44:14]free response buf [12:44:14]execute_script done [12:44:14]execute_script returns [12:44:14]free content buf [12:44:14]Sock 9.Close socket [12:44:14]Sock 9.Thread stoped [12:44:18]OFD Sender: No OFD packet to send [12:44:19]accept exits with 7 [12:44:19]New connection [12:44:19]New thread 3067383140 created [12:44:19]Thread 3067239780 joined [12:44:19]Waiting for new connection... [12:44:19] Sock 7.Parse request [12:44:19]Sock 7.Check first char [12:44:19]Sock 7.First char is OK [12:44:19]request: POST /json_proto HTTP/1.0 [12:44:19]Method: POST [12:44:19]URL: /json_proto [12:44:19]Method is POST - this is cgi request [12:44:19]url: /json_proto [12:44:19]query_string will be loaded in cgi processing [12:44:19]execute_cgi json_proto POST (null) [12:44:19]execute_cgi path=json_proto method=POST [12:44:19]POST find Content-Length [12:44:19]Host: 172.17.45.7:8080 [12:44:19]Content-Length: 677 [12:44:19]Content-Type: application/json [12:44:19] [12:44:19]POST finish read [12:44:19]Found Content-Length = 677 [12:44:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:19]execute_script... [12:44:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:19]POST & json_proto [12:44:19]process_json_proto [12:44:19]json parsed OK: [12:44:19]protocol is kg_v1.0 [12:44:19]action value=close_receipt [12:44:19]process_action close_receipt [12:44:19]cmd_close_receipt [12:44:19]MH_GetDate [12:44:19]Write to MH i2c: F0 00 00 7B 53 BD [12:44:19]Write i2c OK [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: F0 [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: F0 09 00 [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: F0 09 00 7B 53 00 A9 8E A7 66 90 0F 3E 66 4D [12:44:19]GetLastDocTimeStamp 1722257056 [12:44:19]current date 1722257065 [12:44:19]FM_GetShiftState [12:44:19]SAM_PROTO_GetShiftState [12:44:19]wFMCommunicate request_size=4 [12:44:19]MH_SAM_APDU [12:44:19]CAPDU: 80 13 01 00 [12:44:19]Write to MH i2c: E2 08 00 7C 53 80 13 01 00 00 00 00 00 4C [12:44:19]Write i2c OK [12:44:19]MH_I2C_Read... [12:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:19]Read from MH i2c: E2 [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: E2 0E 00 [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: E2 0E 00 7C 53 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 7A [12:44:19]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:44:19]wFMCommunicate OK [12:44:19]SAM_PROTO_GetShiftState done [12:44:19]FM_GetShiftState done [12:44:19]opened in 1722211641 [12:44:19]opened+sec_in_day 1722298041 [12:44:19]quantity*price = 50036 [12:44:19]sum+1 = 50037 [12:44:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 146 29.07.2024 12:44 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118770 ФПД: 186764533390238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T124425&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118770&fm=186764533390238&tin=02508201610067®Number=0000000000092660&sum=50000 [12:44:20]StoreToDocumentArchive [12:44:20]shift 434 fd 118770 [12:44:20]save to /storage/0434/doc_00118770 [12:44:20]save last doc name /storage/0434/doc_00118770 to /storage/kkm_last_doc_name [12:44:20]save OK [12:44:20]Clear old archive folders... [12:44:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:20]tlvbuf is B6F43B20 [12:44:20]SAM_PROTO_ClearQueue [12:44:20]wFMCommunicate request_size=4 [12:44:20]MH_SAM_APDU [12:44:20]CAPDU: 80 09 00 00 [12:44:20]Write to MH i2c: E2 08 00 89 53 80 09 00 00 00 00 00 00 4E [12:44:20]Write i2c OK [12:44:20]MH_I2C_Read... [12:44:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:21]Read from MH i2c: E2 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 03 00 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 03 00 89 53 00 90 00 50 [12:44:21]RAPDU: 90 00 [12:44:21]wFMCommunicate OK [12:44:21]SAM_PROTO_ClearQueue done [12:44:21]KKMCreateOFDPacket [12:44:21]OFDProtocolAddRootSTLVToBuf [12:44:21]FM_MakeSignedData [12:44:21]FM_MakeSignedData [12:44:21]SAM_PROTO_SignData [12:44:21]wFMCommunicate request_size=4 [12:44:21]MH_SAM_APDU [12:44:21]CAPDU: 80 0D 01 02 [12:44:21]Write to MH i2c: E2 08 00 8A 53 80 0D 01 02 00 00 00 00 56 [12:44:21]Write i2c OK [12:44:21]MH_I2C_Read... [12:44:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:21]Read from MH i2c: E2 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 03 00 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 03 00 8A 53 00 90 00 51 [12:44:21]RAPDU: 90 00 [12:44:21]wFMCommunicate OK [12:44:21]wFMCommunicate request_size=255 [12:44:21]MH_SAM_APDU [12:44:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 A9 8E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 CF 01 00 35 04 06 00 A9 [12:44:21]Write to MH i2c: E2 02 01 8B 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 A9 8E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 CF 01 00 35 04 06 00 A9 00 00 CE [12:44:21]Write i2c OK [12:44:21]MH_I2C_Read... [12:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:21]Read from MH i2c: E2 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 03 00 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 03 00 8B 53 00 90 00 52 [12:44:21]RAPDU: 90 00 [12:44:21]wFMCommunicate OK [12:44:21]wFMCommunicate request_size=10 [12:44:21]MH_SAM_APDU [12:44:21]CAPDU: 80 0D 02 02 05 DC 81 AB 5B 9E [12:44:21]Write to MH i2c: E2 0D 00 8C 53 80 0D 02 02 05 00 DC 81 AB 5B 9E 00 00 64 [12:44:21]Write i2c OK [12:44:21]MH_I2C_Read... [12:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:21]Read from MH i2c: E2 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 03 00 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 03 00 8C 53 00 90 00 53 [12:44:21]RAPDU: 90 00 [12:44:21]wFMCommunicate OK [12:44:21]wFMCommunicate request_size=4 [12:44:21]MH_SAM_APDU [12:44:21]CAPDU: 80 0D 03 02 [12:44:21]Write to MH i2c: E2 08 00 8D 53 80 0D 03 02 00 00 00 00 5B [12:44:21]Write i2c OK [12:44:21]MH_I2C_Read... [12:44:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:21]Read from MH i2c: E2 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 0B 00 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 0B 00 8D 53 00 70 B9 FF C0 46 E5 AB 9C 90 00 B6 [12:44:21]RAPDU: 70 B9 FF C0 46 E5 AB 9C 90 00 [12:44:21]wFMCommunicate OK [12:44:21]SAM_PROTO_SignData done [12:44:21]FM_MakeSignedData done [12:44:21]CreateOFDProtocolMessage [12:44:21]wFMCommunicate request_size=4 [12:44:21]MH_SAM_APDU [12:44:21]CAPDU: 80 11 00 00 [12:44:21]Write to MH i2c: E2 08 00 8E 53 80 11 00 00 00 00 00 00 5B [12:44:21]Write i2c OK [12:44:21]MH_I2C_Read... [12:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:21]Read from MH i2c: E2 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 17 00 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: E2 17 00 8E 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B6 [12:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:44:21]wFMCommunicate OK [12:44:21]CreateOFDProtocolMessage done [12:44:21]OFDSenderStorePacket 118770 [12:44:21]StoreOFDPacket docnum=118770 [12:44:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D9 F6 07 01 D5 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 A9 8E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 CF 01 00 35 04 06 00 A9 DC 81 AB 5B 9E 70 B9 FF C0 46 E5 AB 9C [12:44:21]CheckFolder [12:44:21]dirname=/storage/ofd_packets [12:44:21]CheckFolder done [12:44:21]ProducePacketName [12:44:21]name=ofd_packets/00118770 [12:44:21]NVStorageSaveData ofd_packets/00118770 [12:44:21]File name is /storage/ofd_packets/00118770 [12:44:21]Write 301 bytes [12:44:21]NVStorageSaveData done [12:44:21]OFDSenderStorePacket done [12:44:21]KKMCreateOFDPacket done [12:44:21]NVStorageSaveData kkm_last_timestamp [12:44:21]File name is /storage/kkm_last_timestamp [12:44:21]Write 4 bytes [12:44:21]NVStorageSaveData done [12:44:21]ExternCall_PrintAddStr [12:44:21]wPrintStart [12:44:21]Write to MH i2c: 01 00 00 8F 53 E2 [12:44:21]Write i2c OK [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: 01 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: 01 07 00 [12:44:21]MH_I2C_Read... [12:44:21]Read from MH i2c: 01 07 00 8F 53 00 00 00 00 00 FF 0F F7 [12:44:21]RasterBufferAndPrint [12:44:21]line Счет N : (1)949655 [12:44:21]line ИНН: 02508201610067 [12:44:21]line Контрольно-Кассовый Чек [12:44:21]line ПРОДАЖА [12:44:21]line ТРК (МРК, ГНК) : 61 [12:44:21]line Товар: 2710124130 [12:44:21]line Аи-92-К-4 [12:44:21]line 7.380 * 67.80 [12:44:21]line = 500.36 [12:44:21]line НДС 12% НСП 1% [12:44:21]line > о реализуемом товаре [12:44:21]line ОКРУГЛЕНИЕ: -0.36 [12:44:21]line ИТОГО: 500.00 [12:44:21]line Внесено: 500.00 [12:44:21]line СДАЧА: 0.00 [12:44:21]line НСП 1% : 4.43 [12:44:21]line НДС 12% : 53.14 [12:44:21]line Наличными: 500.00 [12:44:21]line Безнал.: 0.00 [12:44:21]line Место: АЗС № 134 "Партнер Нефть" [12:44:21]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:44:21]line СНО: Общий режим [12:44:21]line Чек 146 29.07.2024 12:44 [12:44:21]line Смена: 434 ФФД: 1.0 [12:44:21]line ЗНМ: 0300000044 [12:44:21]line РНМ: 0000000000092660 [12:44:21]line Версия ККМ: 001 [12:44:21]line ФМ: 0000000000874939 [12:44:21]line ФД: 118770 [12:44:21]line ФПД: 186764533390238 [12:44:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T124425&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118770&fm=186764533390238&tin=02508201610067®Number=0000000000092660&sum=50000 [12:44:21]written 0, free lines is 4095 [12:44:21]OFD Sender: Processing packet 118770 [packets to send 86, broken 85] [12:44:21]ProducePacketName [12:44:21]name=ofd_packets/00118770 [12:44:21]OFD Sender: To server: pG, [12:44:21]CommunicateWithHost lk.salyk.kg:30040 [12:44:21]ConnectInit lk.salyk.kg [12:44:21]Connected sock=10 [12:44:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D9 F6 07 01 D5 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 A9 8E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 CF 01 00 35 04 06 00 A9 DC 81 AB 5B 9E 70 B9 FF C0 46 E5 AB 9C [12:44:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4F F5 47 00 74 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 34 39 33 39 10 04 04 00 F2 CF 01 00 F4 03 04 00 36 3C A7 66 B6 04 01 00 00 FF 02 D0 C8 52 6C A5 E7 [12:44:21]CommunicateWithHost err = 0 [12:44:21]CheckOFDResponse [12:44:21]1017 (14) - 77093643461234 [12:44:21]1041 (16) - 0000000000874939 [12:44:21]1040 (4) - 118770 [12:44:21]1012 (4) - 29.07.2024 06:52 [12:44:21]1206 (1) - 0 [12:44:21]OFD Sender: Remove packet 118770 [12:44:21]ProducePacketName [12:44:21]name=ofd_packets/00118770 [12:44:21]NVStorageDeleteData [12:44:22]Write to MH i2c: 01 00 00 B9 53 0C [12:44:22]Write i2c OK [12:44:22]MH_I2C_Read... [12:44:22]Read from MH i2c: 01 [12:44:22]MH_I2C_Read... [12:44:22]Read from MH i2c: 01 07 00 [12:44:22]MH_I2C_Read... [12:44:22]Read from MH i2c: 01 07 00 B9 53 00 00 00 00 00 0B 0D 2B [12:44:22]RasterBufferAndPrint [12:44:22]line [12:44:22]line [12:44:22]line [12:44:22]line [12:44:22]line [12:44:22]written 0, free lines is 3351 [12:44:22]MH_Cut [12:44:22]Write to MH i2c: D1 01 00 C0 53 01 E5 [12:44:22]Write i2c OK [12:44:22]MH_I2C_Read... [12:44:22]Read from MH i2c: D1 [12:44:22]MH_I2C_Read... [12:44:22]Read from MH i2c: D1 01 00 [12:44:22]MH_I2C_Read... [12:44:22]Read from MH i2c: D1 01 00 C0 53 00 E4 [12:44:22]Write to MH i2c: 01 00 00 C1 53 14 [12:44:22]Write i2c OK [12:44:22]MH_I2C_Read... [12:44:22]OFD Sender: No OFD packet to send [12:44:22]*** Cut start [12:44:22]*** Partial cut [12:44:22]*** CUTSNS_PIN = 1 [12:44:22]*** CUTSNS_PIN = 0 [12:44:22]*** Brake cut motor [12:44:23]Read from MH i2c: 01 [12:44:23]MH_I2C_Read... [12:44:23]*** Stop cut motor [12:44:23]*** Cut end [12:44:23]Read from MH i2c: 01 07 00 [12:44:23]MH_I2C_Read... [12:44:23]Read from MH i2c: 01 07 00 C1 53 00 00 00 00 00 FF 0F 29 [12:44:23]process_action close_receipt done [12:44:23]requested_data is exist [12:44:23]produce_requested_data [12:44:23]requested_item fm.sn is exist - process it [12:44:23]wFMCommunicate request_size=4 [12:44:23]MH_SAM_APDU [12:44:23]CAPDU: 80 11 00 00 [12:44:23]Write to MH i2c: E2 08 00 C2 53 80 11 00 00 00 00 00 00 8F [12:44:23]Write i2c OK [12:44:23]MH_I2C_Read... [12:44:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:23]Read from MH i2c: E2 [12:44:23]MH_I2C_Read... [12:44:23]Read from MH i2c: E2 17 00 [12:44:23]MH_I2C_Read... [12:44:23]Read from MH i2c: E2 17 00 C2 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EA [12:44:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:44:23]wFMCommunicate OK [12:44:23]requested_item fd.num is exist - process it [12:44:23]SAM_PROTO_GetFieldsCounters [12:44:23]wFMCommunicate request_size=4 [12:44:23]MH_SAM_APDU [12:44:23]CAPDU: 80 13 00 00 [12:44:23]Write to MH i2c: E2 08 00 C3 53 80 13 00 00 00 00 00 00 92 [12:44:23]Write i2c OK [12:44:23]MH_I2C_Read... [12:44:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:23]Read from MH i2c: E2 [12:44:23]MH_I2C_Read... [12:44:23]Read from MH i2c: E2 62 00 [12:44:23]MH_I2C_Read... [12:44:23]Read from MH i2c: E2 62 00 C3 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F2 CF 01 00 0E 04 04 00 B2 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 E4 [12:44: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F2 CF 01 00 0E 04 04 00 B2 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 [12:44:23]wFMCommunicate OK [12:44:23]SAM_PROTO_GetFieldsCounters done [12:44:23]requested_item shift.num is exist - process it [12:44:23]requested_item shift.opened is exist - process it [12:44:23]req_shift_opened [12:44:23]FM_GetShiftState [12:44:23]SAM_PROTO_GetShiftState [12:44:23]wFMCommunicate request_size=4 [12:44:23]MH_SAM_APDU [12:44:23]CAPDU: 80 13 01 00 [12:44:23]Write to MH i2c: E2 08 00 C4 53 80 13 01 00 00 00 00 00 94 [12:44:23]Write i2c OK [12:44:23]MH_I2C_Read... [12:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:23]Read from MH i2c: E2 [12:44:23]MH_I2C_Read... [12:44:23]Read from MH i2c: E2 0E 00 [12:44:23]MH_I2C_Read... [12:44:23]Read from MH i2c: E2 0E 00 C4 53 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C2 [12:44:23]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:44:23]wFMCommunicate OK [12:44:23]SAM_PROTO_GetShiftState done [12:44:23]FM_GetShiftState done [12:44:23]req_shift_opened done [12:44:23]requested_item shift.open_date is exist - process it [12:44:23]req_shift_open_date [12:44:23]req_shift_open_date done [12:44:23]produce_requested_data done [12:44:23]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118770,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [12:44:23]process_action_free close_receipt [12:44:23]json_value_free [12:44:23]json_value_free done [12:44:23]process_json_proto returns [12:44:23]Send response to host [12:44:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118770,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [12:44:23]free response buf [12:44:23]execute_script done [12:44:23]execute_script returns [12:44:23]free content buf [12:44:23]Sock 7.Close socket [12:44:23]Sock 7.Thread stoped [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:37]OFD Sender: No OFD packet to send [12:45:42]OFD Sender: No OFD packet to send [12:45:47]OFD Sender: No OFD packet to send [12:45:52]OFD Sender: No OFD packet to send [12:45:57]OFD Sender: No OFD packet to send [12:46:02]OFD Sender: No OFD packet to send [12:46:07]OFD Sender: No OFD packet to send [12:46:12]OFD Sender: No OFD packet to send [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:25]accept exits with 9 [12:46:25]New connection [12:46:25]New thread 3067239780 created [12:46:25]Thread 3067383140 joined [12:46:25]Waiting for new connection... [12:46:25] Sock 9.Parse request [12:46:25]Sock 9.Check first char [12:46:25]Sock 9.First char is OK [12:46:25]request: POST /json_proto HTTP/1.0 [12:46:25]Method: POST [12:46:25]URL: /json_proto [12:46:25]Method is POST - this is cgi request [12:46:25]url: /json_proto [12:46:25]query_string will be loaded in cgi processing [12:46:25]execute_cgi json_proto POST (null) [12:46:25]execute_cgi path=json_proto method=POST [12:46:25]POST find Content-Length [12:46:25]Host: 172.17.45.7:8080 [12:46:25]Content-Length: 677 [12:46:25]Content-Type: application/json [12:46:25] [12:46:25]POST finish read [12:46:25]Found Content-Length = 677 [12:46:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.250, "sum" : 220.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:25]execute_script... [12:46:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.250, "sum" : 220.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:25]POST & json_proto [12:46:25]process_json_proto [12:46:25]json parsed OK: [12:46:25]protocol is kg_v1.0 [12:46:25]action value=close_receipt [12:46:25]process_action close_receipt [12:46:25]cmd_close_receipt [12:46:25]MH_GetDate [12:46:25]Write to MH i2c: F0 00 00 C5 53 07 [12:46:25]Write i2c OK [12:46:25]MH_I2C_Read... [12:46:25]Read from MH i2c: F0 [12:46:25]MH_I2C_Read... [12:46:25]Read from MH i2c: F0 09 00 [12:46:25]MH_I2C_Read... [12:46:25]Read from MH i2c: F0 09 00 C5 53 00 27 8F A7 66 90 0F 3E 66 16 [12:46:25]GetLastDocTimeStamp 1722257065 [12:46:25]current date 1722257191 [12:46:25]FM_GetShiftState [12:46:25]SAM_PROTO_GetShiftState [12:46:25]wFMCommunicate request_size=4 [12:46:25]MH_SAM_APDU [12:46:25]CAPDU: 80 13 01 00 [12:46:25]Write to MH i2c: E2 08 00 C6 53 80 13 01 00 00 00 00 00 96 [12:46:25]Write i2c OK [12:46:25]MH_I2C_Read... [12:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:25]Read from MH i2c: E2 [12:46:25]MH_I2C_Read... [12:46:25]Read from MH i2c: E2 0E 00 [12:46:25]MH_I2C_Read... [12:46:25]Read from MH i2c: E2 0E 00 C6 53 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C4 [12:46:25]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:46:25]wFMCommunicate OK [12:46:25]SAM_PROTO_GetShiftState done [12:46:25]FM_GetShiftState done [12:46:25]opened in 1722211641 [12:46:25]opened+sec_in_day 1722298041 [12:46:25]quantity*price = 22035 [12:46:25]sum+1 = 22036 [12:46:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.40 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 147 29.07.2024 12:46 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118771 ФПД: 274029772148958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T124631&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118771&fm=274029772148958&tin=02508201610067®Number=0000000000092660&sum=22000 [12:46:26]StoreToDocumentArchive [12:46:26]shift 434 fd 118771 [12:46:26]save to /storage/0434/doc_00118771 [12:46:26]save last doc name /storage/0434/doc_00118771 to /storage/kkm_last_doc_name [12:46:26]save OK [12:46:26]Clear old archive folders... [12:46:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:26]tlvbuf is 01E82EF0 [12:46:26]SAM_PROTO_ClearQueue [12:46:26]wFMCommunicate request_size=4 [12:46:26]MH_SAM_APDU [12:46:26]CAPDU: 80 09 00 00 [12:46:26]Write to MH i2c: E2 08 00 D3 53 80 09 00 00 00 00 00 00 98 [12:46:26]Write i2c OK [12:46:26]MH_I2C_Read... [12:46:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:26]Read from MH i2c: E2 [12:46:26]MH_I2C_Read... [12:46:26]Read from MH i2c: E2 03 00 [12:46:26]MH_I2C_Read... [12:46:26]Read from MH i2c: E2 03 00 D3 53 00 90 00 9A [12:46:26]RAPDU: 90 00 [12:46:26]wFMCommunicate OK [12:46:26]SAM_PROTO_ClearQueue done [12:46:26]KKMCreateOFDPacket [12:46:26]OFDProtocolAddRootSTLVToBuf [12:46:26]FM_MakeSignedData [12:46:26]FM_MakeSignedData [12:46:26]SAM_PROTO_SignData [12:46:26]wFMCommunicate request_size=4 [12:46:26]MH_SAM_APDU [12:46:26]CAPDU: 80 0D 01 02 [12:46:26]Write to MH i2c: E2 08 00 D4 53 80 0D 01 02 00 00 00 00 A0 [12:46:26]Write i2c OK [12:46:26]MH_I2C_Read... [12:46:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:26]Read from MH i2c: E2 [12:46:26]MH_I2C_Read... [12:46:26]Read from MH i2c: E2 03 00 [12:46:26]MH_I2C_Read... [12:46:26]Read from MH i2c: E2 03 00 D4 53 00 90 00 9B [12:46:26]RAPDU: 90 00 [12:46:26]wFMCommunicate OK [12:46:26]wFMCommunicate request_size=255 [12:46:26]MH_SAM_APDU [12:46:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 56 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 24 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 93 00 00 00 F4 03 04 00 27 8F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 CF 01 00 35 04 06 00 F9 [12:46:26]Write to MH i2c: E2 02 01 D5 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 56 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 24 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 93 00 00 00 F4 03 04 00 27 8F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 CF 01 00 35 04 06 00 F9 00 00 AB [12:46:27]Write i2c OK [12:46:27]MH_I2C_Read... [12:46:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:27]Read from MH i2c: E2 [12:46:27]MH_I2C_Read... [12:46:27]Read from MH i2c: E2 03 00 [12:46:27]MH_I2C_Read... [12:46:27]Read from MH i2c: E2 03 00 D5 53 00 90 00 9C [12:46:27]RAPDU: 90 00 [12:46:27]wFMCommunicate OK [12:46:27]wFMCommunicate request_size=10 [12:46:27]MH_SAM_APDU [12:46:27]CAPDU: 80 0D 02 02 05 3A 87 3A 10 DE [12:46:27]Write to MH i2c: E2 0D 00 D6 53 80 0D 02 02 05 00 3A 87 3A 10 DE 00 00 96 [12:46:27]Write i2c OK [12:46:27]MH_I2C_Read... [12:46:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:27]Read from MH i2c: E2 [12:46:27]MH_I2C_Read... [12:46:27]Read from MH i2c: E2 03 00 [12:46:27]MH_I2C_Read... [12:46:27]Read from MH i2c: E2 03 00 D6 53 00 90 00 9D [12:46:27]RAPDU: 90 00 [12:46:27]wFMCommunicate OK [12:46:27]wFMCommunicate request_size=4 [12:46:27]MH_SAM_APDU [12:46:27]CAPDU: 80 0D 03 02 [12:46:27]Write to MH i2c: E2 08 00 D7 53 80 0D 03 02 00 00 00 00 A5 [12:46:27]Write i2c OK [12:46:27]MH_I2C_Read... [12:46:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:27]Read from MH i2c: E2 [12:46:27]MH_I2C_Read... [12:46:27]Read from MH i2c: E2 0B 00 [12:46:27]MH_I2C_Read... [12:46:27]Read from MH i2c: E2 0B 00 D7 53 00 AB B8 A7 D4 47 89 30 5B 90 00 DF [12:46:27]RAPDU: AB B8 A7 D4 47 89 30 5B 90 00 [12:46:27]wFMCommunicate OK [12:46:27]SAM_PROTO_SignData done [12:46:27]FM_MakeSignedData done [12:46:27]CreateOFDProtocolMessage [12:46:27]wFMCommunicate request_size=4 [12:46:27]MH_SAM_APDU [12:46:27]CAPDU: 80 11 00 00 [12:46:27]Write to MH i2c: E2 08 00 D8 53 80 11 00 00 00 00 00 00 A5 [12:46:27]Write i2c OK [12:46:27]MH_I2C_Read... [12:46:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:27]Read from MH i2c: E2 [12:46:27]MH_I2C_Read... [12:46:27]Read from MH i2c: E2 17 00 [12:46:27]MH_I2C_Read... [12:46:27]Read from MH i2c: E2 17 00 D8 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 00 [12:46:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:46:27]wFMCommunicate OK [12:46:27]CreateOFDProtocolMessage done [12:46:27]OFDSenderStorePacket 118771 [12:46:27]StoreOFDPacket docnum=118771 [12:46:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A7 03 07 01 14 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 56 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 24 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 93 00 00 00 F4 03 04 00 27 8F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 CF 01 00 35 04 06 00 F9 3A 87 3A 10 DE AB B8 A7 D4 47 89 30 5B [12:46:27]CheckFolder [12:46:27]dirname=/storage/ofd_packets [12:46:27]CheckFolder done [12:46:27]ProducePacketName [12:46:27]name=ofd_packets/00118771 [12:46:27]NVStorageSaveData ofd_packets/00118771 [12:46:27]File name is /storage/ofd_packets/00118771 [12:46:27]Write 301 bytes [12:46:27]NVStorageSaveData done [12:46:27]OFDSenderStorePacket done [12:46:27]KKMCreateOFDPacket done [12:46:27]NVStorageSaveData kkm_last_timestamp [12:46:27]File name is /storage/kkm_last_timestamp [12:46:27]Write 4 bytes [12:46:27]NVStorageSaveData done [12:46:27]ExternCall_PrintAddStr [12:46:27]wPrintStart [12:46:27]Write to MH i2c: 01 00 00 D9 53 2C [12:46:27]Write i2c OK [12:46:27]MH_I2C_Read... [12:46:27]Read from MH i2c: 01 [12:46:27]MH_I2C_Read... [12:46:27]Read from MH i2c: 01 07 00 [12:46:27]MH_I2C_Read... [12:46:27]Read from MH i2c: 01 07 00 D9 53 00 00 00 00 00 FF 0F 41 [12:46:27]RasterBufferAndPrint [12:46:27]line Счет N : (1)949656 [12:46:27]line ИНН: 02508201610067 [12:46:27]line Контрольно-Кассовый Чек [12:46:27]line ПРОДАЖА [12:46:27]line ТРК (МРК, ГНК) : 41 [12:46:27]line Товар: 2710124130 [12:46:27]line Аи-92-К-4 [12:46:27]line 3.250 * 67.80 [12:46:27]line = 220.35 [12:46:27]line НДС 12% НСП 1% [12:46:27]line > о реализуемом товаре [12:46:27]line ОКРУГЛЕНИЕ: -0.35 [12:46:27]line ИТОГО: 220.00 [12:46:27]line Внесено: 220.00 [12:46:27]line СДАЧА: 0.00 [12:46:27]line НСП 1% : 1.95 [12:46:27]line НДС 12% : 23.40 [12:46:27]line Наличными: 220.00 [12:46:27]line Безнал.: 0.00 [12:46:27]line Место: АЗС № 134 "Партнер Нефть" [12:46:27]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:46:27]line СНО: Общий режим [12:46:27]line Чек 147 29.07.2024 12:46 [12:46:27]line Смена: 434 ФФД: 1.0 [12:46:27]line ЗНМ: 0300000044 [12:46:27]line РНМ: 0000000000092660 [12:46:27]line Версия ККМ: 001 [12:46:27]line ФМ: 0000000000874939 [12:46:27]line ФД: 118771 [12:46:27]line ФПД: 274029772148958 [12:46:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T124631&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118771&fm=274029772148958&tin=02508201610067®Number=0000000000092660&sum=22000 [12:46:27]written 0, free lines is 4095 [12:46:27]OFD Sender: Processing packet 118771 [packets to send 86, broken 85] [12:46:27]ProducePacketName [12:46:27]name=ofd_packets/00118771 [12:46:27]OFD Sender: To server: pG, [12:46:27]CommunicateWithHost lk.salyk.kg:30040 [12:46:27]ConnectInit lk.salyk.kg [12:46:27]Connected sock=11 [12:46:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A7 03 07 01 14 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 56 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 24 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 93 00 00 00 F4 03 04 00 27 8F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 CF 01 00 35 04 06 00 F9 3A 87 3A 10 DE AB B8 A7 D4 47 89 30 5B [12:46:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 59 34 47 00 28 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 CF 01 00 F4 03 04 00 B5 3C A7 66 B6 04 01 00 00 34 21 B4 3F 95 BF EA 23 [12:46:28]CommunicateWithHost err = 0 [12:46:28]CheckOFDResponse [12:46:28]1017 (14) - 77093643461234 [12:46:28]1041 (16) - 0000000000874939 [12:46:28]1040 (4) - 118771 [12:46:28]1012 (4) - 29.07.2024 06:54 [12:46:28]1206 (1) - 0 [12:46:28]OFD Sender: Remove packet 118771 [12:46:28]ProducePacketName [12:46:28]name=ofd_packets/00118771 [12:46:28]NVStorageDeleteData [12:46:28]Write to MH i2c: 01 00 00 03 54 57 [12:46:28]Write i2c OK [12:46:28]MH_I2C_Read... [12:46:28]Read from MH i2c: 01 [12:46:28]MH_I2C_Read... [12:46:28]Read from MH i2c: 01 07 00 [12:46:28]MH_I2C_Read... [12:46:28]Read from MH i2c: 01 07 00 03 54 00 00 00 00 00 E5 0C 4F [12:46:28]RasterBufferAndPrint [12:46:28]line [12:46:28]line [12:46:28]line [12:46:28]line [12:46:28]line [12:46:28]written 0, free lines is 3306 [12:46:28]MH_Cut [12:46:28]Write to MH i2c: D1 01 00 0A 54 01 30 [12:46:28]Write i2c OK [12:46:28]MH_I2C_Read... [12:46:28]Read from MH i2c: D1 [12:46:28]MH_I2C_Read... [12:46:28]Read from MH i2c: D1 01 00 [12:46:28]MH_I2C_Read... [12:46:28]Read from MH i2c: D1 01 00 0A 54 00 2F [12:46:28]Write to MH i2c: 01 00 00 0B 54 5F [12:46:28]Write i2c OK [12:46:28]MH_I2C_Read... [12:46:28]OFD Sender: No OFD packet to send [12:46:28]*** Cut start [12:46:28]*** Partial cut [12:46:28]*** CUTSNS_PIN = 1 [12:46:28]*** CUTSNS_PIN = 0 [12:46:29]*** Brake cut motor [12:46:29]Read from MH i2c: 01 [12:46:29]MH_I2C_Read... [12:46:29]*** Stop cut motor [12:46:29]*** Cut end [12:46:29]Read from MH i2c: 01 07 00 [12:46:29]MH_I2C_Read... [12:46:29]Read from MH i2c: 01 07 00 0B 54 00 00 00 00 00 FF 0F 74 [12:46:29]process_action close_receipt done [12:46:29]requested_data is exist [12:46:29]produce_requested_data [12:46:29]requested_item fm.sn is exist - process it [12:46:29]wFMCommunicate request_size=4 [12:46:29]MH_SAM_APDU [12:46:29]CAPDU: 80 11 00 00 [12:46:29]Write to MH i2c: E2 08 00 0C 54 80 11 00 00 00 00 00 00 DA [12:46:29]Write i2c OK [12:46:29]MH_I2C_Read... [12:46:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:29]Read from MH i2c: E2 [12:46:29]MH_I2C_Read... [12:46:29]Read from MH i2c: E2 17 00 [12:46:29]MH_I2C_Read... [12:46:29]Read from MH i2c: E2 17 00 0C 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 35 [12:46:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:46:29]wFMCommunicate OK [12:46:29]requested_item fd.num is exist - process it [12:46:29]SAM_PROTO_GetFieldsCounters [12:46:29]wFMCommunicate request_size=4 [12:46:29]MH_SAM_APDU [12:46:29]CAPDU: 80 13 00 00 [12:46:29]Write to MH i2c: E2 08 00 0D 54 80 13 00 00 00 00 00 00 DD [12:46:29]Write i2c OK [12:46:29]MH_I2C_Read... [12:46:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:29]Read from MH i2c: E2 [12:46:29]MH_I2C_Read... [12:46:29]Read from MH i2c: E2 62 00 [12:46:29]MH_I2C_Read... [12:46:29]Read from MH i2c: E2 62 00 0D 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F3 CF 01 00 0E 04 04 00 B2 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 33 [12:46: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F3 CF 01 00 0E 04 04 00 B2 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 [12:46:29]wFMCommunicate OK [12:46:29]SAM_PROTO_GetFieldsCounters done [12:46:29]requested_item shift.num is exist - process it [12:46:29]requested_item shift.opened is exist - process it [12:46:29]req_shift_opened [12:46:29]FM_GetShiftState [12:46:29]SAM_PROTO_GetShiftState [12:46:29]wFMCommunicate request_size=4 [12:46:29]MH_SAM_APDU [12:46:29]CAPDU: 80 13 01 00 [12:46:29]Write to MH i2c: E2 08 00 0E 54 80 13 01 00 00 00 00 00 DF [12:46:29]Write i2c OK [12:46:29]MH_I2C_Read... [12:46:29]Read from MH i2c: E2 [12:46:29]MH_I2C_Read... [12:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:29]Read from MH i2c: E2 0E 00 [12:46:29]MH_I2C_Read... [12:46:29]Read from MH i2c: E2 0E 00 0E 54 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 0D [12:46:29]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:46:29]wFMCommunicate OK [12:46:29]SAM_PROTO_GetShiftState done [12:46:29]FM_GetShiftState done [12:46:29]req_shift_opened done [12:46:29]requested_item shift.open_date is exist - process it [12:46:29]req_shift_open_date [12:46:29]req_shift_open_date done [12:46:29]produce_requested_data done [12:46:29]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118771,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [12:46:29]process_action_free close_receipt [12:46:29]json_value_free [12:46:29]json_value_free done [12:46:29]process_json_proto returns [12:46:29]Send response to host [12:46:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118771,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [12:46:29]free response buf [12:46:29]execute_script done [12:46:29]execute_script returns [12:46:29]free content buf [12:46:29]Sock 9.Close socket [12:46:29]Sock 9.Thread stoped [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:54]accept exits with 7 [12:47:54]New connection [12:47:54]New thread 3067383140 created [12:47:54]Thread 3067239780 joined [12:47:54]Waiting for new connection... [12:47:54] Sock 7.Parse request [12:47:54]Sock 7.Check first char [12:47:54]Sock 7.First char is OK [12:47:54]request: POST /json_proto HTTP/1.0 [12:47:54]Method: POST [12:47:54]URL: /json_proto [12:47:54]Method is POST - this is cgi request [12:47:54]url: /json_proto [12:47:54]query_string will be loaded in cgi processing [12:47:54]execute_cgi json_proto POST (null) [12:47:54]execute_cgi path=json_proto method=POST [12:47:54]POST find Content-Length [12:47:54]Host: 172.17.45.7:8080 [12:47:54]Content-Length: 682 [12:47:54]Content-Type: application/json [12:47:54] [12:47:54]POST finish read [12:47:54]Found Content-Length = 682 [12:47:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 23.600, "sum" : 1600.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:54]execute_script... [12:47: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)949657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 23.600, "sum" : 1600.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:54]POST & json_proto [12:47:54]process_json_proto [12:47:54]json parsed OK: [12:47:54]protocol is kg_v1.0 [12:47:54]action value=close_receipt [12:47:54]process_action close_receipt [12:47:54]cmd_close_receipt [12:47:54]MH_GetDate [12:47:54]Write to MH i2c: F0 00 00 0F 54 52 [12:47:54]Write i2c OK [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: F0 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: F0 09 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: F0 09 00 0F 54 00 7F 8F A7 66 90 0F 3E 66 B9 [12:47:54]GetLastDocTimeStamp 1722257191 [12:47:54]current date 1722257279 [12:47:54]FM_GetShiftState [12:47:54]SAM_PROTO_GetShiftState [12:47:54]wFMCommunicate request_size=4 [12:47:54]MH_SAM_APDU [12:47:54]CAPDU: 80 13 01 00 [12:47:54]Write to MH i2c: E2 08 00 10 54 80 13 01 00 00 00 00 00 E1 [12:47:54]Write i2c OK [12:47:54]MH_I2C_Read... [12:47:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:54]Read from MH i2c: E2 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 0E 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 0E 00 10 54 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 0F [12:47:54]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:47:54]wFMCommunicate OK [12:47:54]SAM_PROTO_GetShiftState done [12:47:54]FM_GetShiftState done [12:47:54]opened in 1722211641 [12:47:54]opened+sec_in_day 1722298041 [12:47:54]quantity*price = 160008 [12:47:54]sum+1 = 160009 [12:47:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.92 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 148 29.07.2024 12:47 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118772 ФПД: 239778203159270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T124759&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118772&fm=239778203159270&tin=02508201610067®Number=0000000000092660&sum=160000 [12:47:55]StoreToDocumentArchive [12:47:55]shift 434 fd 118772 [12:47:55]save to /storage/0434/doc_00118772 [12:47:55]save last doc name /storage/0434/doc_00118772 to /storage/kkm_last_doc_name [12:47:55]save OK [12:47:55]Clear old archive folders... [12:47:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:55]tlvbuf is B6F433B0 [12:47:55]SAM_PROTO_ClearQueue [12:47:55]wFMCommunicate request_size=4 [12:47:55]MH_SAM_APDU [12:47:55]CAPDU: 80 09 00 00 [12:47:55]Write to MH i2c: E2 08 00 1D 54 80 09 00 00 00 00 00 00 E3 [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:55]Read from MH i2c: E2 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 03 00 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 03 00 1D 54 00 90 00 E5 [12:47:55]RAPDU: 90 00 [12:47:55]wFMCommunicate OK [12:47:55]SAM_PROTO_ClearQueue done [12:47:55]KKMCreateOFDPacket [12:47:55]OFDProtocolAddRootSTLVToBuf [12:47:55]FM_MakeSignedData [12:47:55]FM_MakeSignedData [12:47:55]SAM_PROTO_SignData [12:47:55]wFMCommunicate request_size=4 [12:47:55]MH_SAM_APDU [12:47:55]CAPDU: 80 0D 01 02 [12:47:55]Write to MH i2c: E2 08 00 1E 54 80 0D 01 02 00 00 00 00 EB [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:55]Read from MH i2c: E2 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 03 00 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 03 00 1E 54 00 90 00 E6 [12:47:55]RAPDU: 90 00 [12:47:55]wFMCommunicate OK [12:47:55]wFMCommunicate request_size=255 [12:47:55]MH_SAM_APDU [12:47:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 7F 8F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F4 CF 01 00 35 04 06 00 DA [12:47:55]Write to MH i2c: E2 02 01 1F 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 7F 8F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F4 CF 01 00 35 04 06 00 DA 00 00 AC [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:55]Read from MH i2c: E2 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 03 00 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 03 00 1F 54 00 90 00 E7 [12:47:55]RAPDU: 90 00 [12:47:55]wFMCommunicate OK [12:47:55]wFMCommunicate request_size=10 [12:47:55]MH_SAM_APDU [12:47:55]CAPDU: 80 0D 02 02 05 13 B6 9F CA E6 [12:47:55]Write to MH i2c: E2 0D 00 20 54 80 0D 02 02 05 00 13 B6 9F CA E6 00 00 10 [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:55]Read from MH i2c: E2 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 03 00 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 03 00 20 54 00 90 00 E8 [12:47:55]RAPDU: 90 00 [12:47:55]wFMCommunicate OK [12:47:55]wFMCommunicate request_size=4 [12:47:55]MH_SAM_APDU [12:47:55]CAPDU: 80 0D 03 02 [12:47:55]Write to MH i2c: E2 08 00 21 54 80 0D 03 02 00 00 00 00 F0 [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:55]Read from MH i2c: E2 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 0B 00 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 0B 00 21 54 00 01 8B 60 21 C1 18 A8 21 90 00 A0 [12:47:55]RAPDU: 01 8B 60 21 C1 18 A8 21 90 00 [12:47:55]wFMCommunicate OK [12:47:55]SAM_PROTO_SignData done [12:47:55]FM_MakeSignedData done [12:47:55]CreateOFDProtocolMessage [12:47:55]wFMCommunicate request_size=4 [12:47:55]MH_SAM_APDU [12:47:55]CAPDU: 80 11 00 00 [12:47:55]Write to MH i2c: E2 08 00 22 54 80 11 00 00 00 00 00 00 F0 [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:55]Read from MH i2c: E2 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 17 00 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 17 00 22 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4B [12:47:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:47:55]wFMCommunicate OK [12:47:55]CreateOFDProtocolMessage done [12:47:55]OFDSenderStorePacket 118772 [12:47:55]StoreOFDPacket docnum=118772 [12:47:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 71 64 07 01 7F A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 7F 8F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F4 CF 01 00 35 04 06 00 DA 13 B6 9F CA E6 01 8B 60 21 C1 18 A8 21 [12:47:55]CheckFolder [12:47:55]dirname=/storage/ofd_packets [12:47:55]CheckFolder done [12:47:55]ProducePacketName [12:47:55]name=ofd_packets/00118772 [12:47:55]NVStorageSaveData ofd_packets/00118772 [12:47:55]File name is /storage/ofd_packets/00118772 [12:47:55]Write 301 bytes [12:47:55]NVStorageSaveData done [12:47:55]OFDSenderStorePacket done [12:47:55]KKMCreateOFDPacket done [12:47:55]NVStorageSaveData kkm_last_timestamp [12:47:55]File name is /storage/kkm_last_timestamp [12:47:55]Write 4 bytes [12:47:55]NVStorageSaveData done [12:47:55]ExternCall_PrintAddStr [12:47:55]wPrintStart [12:47:55]Write to MH i2c: 01 00 00 23 54 77 [12:47:55]OFD Sender: Processing packet 118772 [packets to send 86, broken 85] [12:47:55]ProducePacketName [12:47:55]name=ofd_packets/00118772 [12:47:55]OFD Sender: To server: pG, [12:47:55]CommunicateWithHost lk.salyk.kg:30040 [12:47:55]ConnectInit lk.salyk.kg [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: 01 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: 01 07 00 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: 01 07 00 23 54 00 00 00 00 00 FF 0F 8C [12:47:55]RasterBufferAndPrint [12:47:55]line Счет N : (1)949657 [12:47:55]line ИНН: 02508201610067 [12:47:55]line Контрольно-Кассовый Чек [12:47:55]line ПРОДАЖА [12:47:55]line ТРК (МРК, ГНК) : 51 [12:47:55]line Товар: 2710124130 [12:47:55]line Аи-92-К-4 [12:47:55]line 23.600 * 67.80 [12:47:55]line = 1600.08 [12:47:55]line НДС 12% НСП 1% [12:47:55]line > о реализуемом товаре [12:47:55]line ОКРУГЛЕНИЕ: -0.08 [12:47:55]line ИТОГО: 1600.00 [12:47:55]line Внесено: 1600.00 [12:47:55]line СДАЧА: 0.00 [12:47:55]line НСП 1% : 14.16 [12:47:55]line НДС 12% : 169.92 [12:47:55]line Наличными: 1600.00 [12:47:55]line Безнал.: 0.00 [12:47:55]line Место: АЗС № 134 "Партнер Нефть" [12:47:55]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:47:55]line СНО: Общий режим [12:47:55]line Чек 148 29.07.2024 12:47 [12:47:55]line Смена: 434 ФФД: 1.0 [12:47:55]line ЗНМ: 0300000044 [12:47:55]line РНМ: 0000000000092660 [12:47:55]line Версия ККМ: 001 [12:47:55]line ФМ: 0000000000874939 [12:47:55]line ФД: 118772 [12:47:55]line ФПД: 239778203159270 [12:47:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T124759&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118772&fm=239778203159270&tin=02508201610067®Number=0000000000092660&sum=160000 [12:47:55]written 0, free lines is 4095 [12:47:55]Connected sock=10 [12:47:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 71 64 07 01 7F A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 7F 8F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F4 CF 01 00 35 04 06 00 DA 13 B6 9F CA E6 01 8B 60 21 C1 18 A8 21 [12:47:56]Write to MH i2c: 01 00 00 4D 54 A1 [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: 01 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: 01 07 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: 01 07 00 4D 54 00 00 00 00 00 EC 0C A0 [12:47:56]RasterBufferAndPrint [12:47:56]line [12:47:56]line [12:47:56]line [12:47:56]line [12:47:56]line [12:47:56]written 0, free lines is 3315 [12:47:56]MH_Cut [12:47:56]Write to MH i2c: D1 01 00 54 54 01 7A [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: D1 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: D1 01 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: D1 01 00 54 54 00 79 [12:47:56]Write to MH i2c: 01 00 00 55 54 A9 [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 16 B1 47 00 35 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 34 39 33 39 10 04 04 00 F4 CF 01 00 F4 03 04 00 0D 3D A7 66 B6 04 01 00 00 AB A8 63 88 45 20 8D C9 [12:47:56]CommunicateWithHost err = 0 [12:47:56]CheckOFDResponse [12:47:56]1017 (14) - 77093643461234 [12:47:56]1041 (16) - 0000000000874939 [12:47:56]1040 (4) - 118772 [12:47:56]1012 (4) - 29.07.2024 06:56 [12:47:56]1206 (1) - 0 [12:47:56]OFD Sender: Remove packet 118772 [12:47:56]ProducePacketName [12:47:56]name=ofd_packets/00118772 [12:47:56]NVStorageDeleteData [12:47:56]OFD Sender: No OFD packet to send [12:47:57]*** Cut start [12:47:57]*** Partial cut [12:47:57]*** CUTSNS_PIN = 1 [12:47:57]*** CUTSNS_PIN = 0 [12:47:57]*** Brake cut motor [12:47:57]Read from MH i2c: 01 [12:47:57]MH_I2C_Read... [12:47:57]*** Stop cut motor [12:47:57]*** Cut end [12:47:57]Read from MH i2c: 01 07 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: 01 07 00 55 54 00 00 00 00 00 FF 0F BE [12:47:57]process_action close_receipt done [12:47:57]requested_data is exist [12:47:57]produce_requested_data [12:47:57]requested_item fm.sn is exist - process it [12:47:57]wFMCommunicate request_size=4 [12:47:57]MH_SAM_APDU [12:47:57]CAPDU: 80 11 00 00 [12:47:57]Write to MH i2c: E2 08 00 56 54 80 11 00 00 00 00 00 00 24 [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:57]Read from MH i2c: E2 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 17 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 17 00 56 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7F [12:47:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:47:57]wFMCommunicate OK [12:47:57]requested_item fd.num is exist - process it [12:47:57]SAM_PROTO_GetFieldsCounters [12:47:57]wFMCommunicate request_size=4 [12:47:57]MH_SAM_APDU [12:47:57]CAPDU: 80 13 00 00 [12:47:57]Write to MH i2c: E2 08 00 57 54 80 13 00 00 00 00 00 00 27 [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:57]Read from MH i2c: E2 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 62 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 62 00 57 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F4 CF 01 00 0E 04 04 00 B2 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 81 [12:47: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F4 CF 01 00 0E 04 04 00 B2 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 [12:47:57]wFMCommunicate OK [12:47:57]SAM_PROTO_GetFieldsCounters done [12:47:57]requested_item shift.num is exist - process it [12:47:57]requested_item shift.opened is exist - process it [12:47:57]req_shift_opened [12:47:57]FM_GetShiftState [12:47:57]SAM_PROTO_GetShiftState [12:47:57]wFMCommunicate request_size=4 [12:47:57]MH_SAM_APDU [12:47:57]CAPDU: 80 13 01 00 [12:47:57]Write to MH i2c: E2 08 00 58 54 80 13 01 00 00 00 00 00 29 [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:57]Read from MH i2c: E2 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 0E 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 0E 00 58 54 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 57 [12:47:57]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:47:57]wFMCommunicate OK [12:47:57]SAM_PROTO_GetShiftState done [12:47:57]FM_GetShiftState done [12:47:57]req_shift_opened done [12:47:57]requested_item shift.open_date is exist - process it [12:47:57]req_shift_open_date [12:47:57]req_shift_open_date done [12:47:57]produce_requested_data done [12:47:57]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118772,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [12:47:57]process_action_free close_receipt [12:47:57]json_value_free [12:47:57]json_value_free done [12:47:57]process_json_proto returns [12:47:57]Send response to host [12:47:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118772,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [12:47:57]free response buf [12:47:57]execute_script done [12:47:57]execute_script returns [12:47:57]free content buf [12:47:57]Sock 7.Close socket [12:47:57]Sock 7.Thread stoped [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:22]accept exits with 9 [12:48:22]New connection [12:48:22]New thread 3067239780 created [12:48:22]Thread 3067383140 joined [12:48:22]Waiting for new connection... [12:48:22] Sock 9.Parse request [12:48:22]Sock 9.Check first char [12:48:22]Sock 9.First char is OK [12:48:22]request: POST /json_proto HTTP/1.0 [12:48:22]Method: POST [12:48:22]URL: /json_proto [12:48:22]Method is POST - this is cgi request [12:48:22]url: /json_proto [12:48:22]query_string will be loaded in cgi processing [12:48:22]execute_cgi json_proto POST (null) [12:48:22]execute_cgi path=json_proto method=POST [12:48:22]POST find Content-Length [12:48:22]Host: 172.17.45.7:8080 [12:48:22]Content-Length: 677 [12:48:22]Content-Type: application/json [12:48:22] [12:48:22]POST finish read [12:48:22]Found Content-Length = 677 [12:48:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:22]execute_script... [12:48: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)949658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:22]POST & json_proto [12:48:22]process_json_proto [12:48:22]json parsed OK: [12:48:22]protocol is kg_v1.0 [12:48:22]action value=close_receipt [12:48:22]process_action close_receipt [12:48:22]cmd_close_receipt [12:48:22]MH_GetDate [12:48:22]Write to MH i2c: F0 00 00 59 54 9C [12:48:22]Write i2c OK [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: F0 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: F0 09 00 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: F0 09 00 59 54 00 9C 8F A7 66 90 0F 3E 66 20 [12:48:22]GetLastDocTimeStamp 1722257279 [12:48:22]current date 1722257308 [12:48:22]FM_GetShiftState [12:48:22]SAM_PROTO_GetShiftState [12:48:22]wFMCommunicate request_size=4 [12:48:22]MH_SAM_APDU [12:48:22]CAPDU: 80 13 01 00 [12:48:22]Write to MH i2c: E2 08 00 5A 54 80 13 01 00 00 00 00 00 2B [12:48:22]Write i2c OK [12:48:22]MH_I2C_Read... [12:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:22]Read from MH i2c: E2 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: E2 0E 00 [12:48:22]MH_I2C_Read... [12:48:22]Read from MH i2c: E2 0E 00 5A 54 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 59 [12:48:22]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:48:22]wFMCommunicate OK [12:48:22]SAM_PROTO_GetShiftState done [12:48:22]FM_GetShiftState done [12:48:22]opened in 1722211641 [12:48:22]opened+sec_in_day 1722298041 [12:48:22]quantity*price = 10034 [12:48:22]sum+1 = 10035 [12:48:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 149 29.07.2024 12:48 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118773 ФПД: 24930471474962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T124828&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118773&fm=24930471474962&tin=02508201610067®Number=0000000000092660&sum=10000 [12:48:24]StoreToDocumentArchive [12:48:24]shift 434 fd 118773 [12:48:24]save to /storage/0434/doc_00118773 [12:48:24]save last doc name /storage/0434/doc_00118773 to /storage/kkm_last_doc_name [12:48:24]save OK [12:48:24]Clear old archive folders... [12:48:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:48:24]tlvbuf is 01E54290 [12:48:24]SAM_PROTO_ClearQueue [12:48:24]wFMCommunicate request_size=4 [12:48:24]MH_SAM_APDU [12:48:24]CAPDU: 80 09 00 00 [12:48:24]Write to MH i2c: E2 08 00 67 54 80 09 00 00 00 00 00 00 2D [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:24]Read from MH i2c: E2 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 03 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 03 00 67 54 00 90 00 2F [12:48:24]RAPDU: 90 00 [12:48:24]wFMCommunicate OK [12:48:24]SAM_PROTO_ClearQueue done [12:48:24]KKMCreateOFDPacket [12:48:24]OFDProtocolAddRootSTLVToBuf [12:48:24]FM_MakeSignedData [12:48:24]FM_MakeSignedData [12:48:24]SAM_PROTO_SignData [12:48:24]wFMCommunicate request_size=4 [12:48:24]MH_SAM_APDU [12:48:24]CAPDU: 80 0D 01 02 [12:48:24]Write to MH i2c: E2 08 00 68 54 80 0D 01 02 00 00 00 00 35 [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:24]Read from MH i2c: E2 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 03 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 03 00 68 54 00 90 00 30 [12:48:24]RAPDU: 90 00 [12:48:24]wFMCommunicate OK [12:48:24]wFMCommunicate request_size=255 [12:48:24]MH_SAM_APDU [12:48:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 9C 8F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 CF 01 00 35 04 06 00 16 [12:48:24]Write to MH i2c: E2 02 01 69 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 9C 8F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 CF 01 00 35 04 06 00 16 00 00 50 [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:24]Read from MH i2c: E2 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 03 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 03 00 69 54 00 90 00 31 [12:48:24]RAPDU: 90 00 [12:48:24]wFMCommunicate OK [12:48:24]wFMCommunicate request_size=10 [12:48:24]MH_SAM_APDU [12:48:24]CAPDU: 80 0D 02 02 05 AC 93 E5 77 12 [12:48:24]Write to MH i2c: E2 0D 00 6A 54 80 0D 02 02 05 00 AC 93 E5 77 12 00 00 EF [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:24]Read from MH i2c: E2 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 03 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 03 00 6A 54 00 90 00 32 [12:48:24]RAPDU: 90 00 [12:48:24]wFMCommunicate OK [12:48:24]wFMCommunicate request_size=4 [12:48:24]MH_SAM_APDU [12:48:24]CAPDU: 80 0D 03 02 [12:48:24]Write to MH i2c: E2 08 00 6B 54 80 0D 03 02 00 00 00 00 3A [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:24]Read from MH i2c: E2 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 0B 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 0B 00 6B 54 00 36 C1 4F 2E 56 21 55 19 90 00 94 [12:48:24]RAPDU: 36 C1 4F 2E 56 21 55 19 90 00 [12:48:24]wFMCommunicate OK [12:48:24]SAM_PROTO_SignData done [12:48:24]FM_MakeSignedData done [12:48:24]CreateOFDProtocolMessage [12:48:24]wFMCommunicate request_size=4 [12:48:24]MH_SAM_APDU [12:48:24]CAPDU: 80 11 00 00 [12:48:24]Write to MH i2c: E2 08 00 6C 54 80 11 00 00 00 00 00 00 3A [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:24]Read from MH i2c: E2 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 17 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 17 00 6C 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 95 [12:48:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:48:24]wFMCommunicate OK [12:48:24]CreateOFDProtocolMessage done [12:48:24]OFDSenderStorePacket 118773 [12:48:24]StoreOFDPacket docnum=118773 [12:48:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 6C A8 07 01 EF BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 9C 8F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 CF 01 00 35 04 06 00 16 AC 93 E5 77 12 36 C1 4F 2E 56 21 55 19 [12:48:24]CheckFolder [12:48:24]dirname=/storage/ofd_packets [12:48:24]CheckFolder done [12:48:24]ProducePacketName [12:48:24]name=ofd_packets/00118773 [12:48:24]NVStorageSaveData ofd_packets/00118773 [12:48:24]File name is /storage/ofd_packets/00118773 [12:48:24]Write 301 bytes [12:48:24]NVStorageSaveData done [12:48:24]OFDSenderStorePacket done [12:48:24]KKMCreateOFDPacket done [12:48:24]NVStorageSaveData kkm_last_timestamp [12:48:24]File name is /storage/kkm_last_timestamp [12:48:24]Write 4 bytes [12:48:24]NVStorageSaveData done [12:48:24]ExternCall_PrintAddStr [12:48:24]wPrintStart [12:48:24]Write to MH i2c: 01 00 00 6D 54 C1 [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: 01 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: 01 07 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: 01 07 00 6D 54 00 00 00 00 00 FF 0F D6 [12:48:24]RasterBufferAndPrint [12:48:24]line Счет N : (1)949658 [12:48:24]line ИНН: 02508201610067 [12:48:24]line Контрольно-Кассовый Чек [12:48:24]line ПРОДАЖА [12:48:24]line ТРК (МРК, ГНК) : 61 [12:48:24]line Товар: 2710124130 [12:48:24]line Аи-92-К-4 [12:48:24]line 1.480 * 67.80 [12:48:24]line = 100.34 [12:48:24]line НДС 12% НСП 1% [12:48:24]line > о реализуемом товаре [12:48:24]line ОКРУГЛЕНИЕ: -0.34 [12:48:24]line ИТОГО: 100.00 [12:48:24]line Внесено: 100.00 [12:48:24]line СДАЧА: 0.00 [12:48:24]line НСП 1% : 0.89 [12:48:24]line НДС 12% : 10.66 [12:48:24]line Наличными: 100.00 [12:48:24]line Безнал.: 0.00 [12:48:24]line Место: АЗС № 134 "Партнер Нефть" [12:48:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:48:24]line СНО: Общий режим [12:48:24]line Чек 149 29.07.2024 12:48 [12:48:24]line Смена: 434 ФФД: 1.0 [12:48:24]line ЗНМ: 0300000044 [12:48:24]line РНМ: 0000000000092660 [12:48:24]line Версия ККМ: 001 [12:48:24]line ФМ: 0000000000874939 [12:48:24]line ФД: 118773 [12:48:24]line ФПД: 24930471474962 [12:48:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T124828&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118773&fm=24930471474962&tin=02508201610067®Number=0000000000092660&sum=10000 [12:48:24]OFD Sender: Processing packet 118773 [packets to send 86, broken 85] [12:48:24]ProducePacketName [12:48:24]name=ofd_packets/00118773 [12:48:24]OFD Sender: To server: pG, [12:48:24]CommunicateWithHost lk.salyk.kg:30040 [12:48:24]ConnectInit lk.salyk.kg [12:48:24]written 0, free lines is 4095 [12:48:24]Connected sock=10 [12:48:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 6C A8 07 01 EF BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 9C 8F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 CF 01 00 35 04 06 00 16 AC 93 E5 77 12 36 C1 4F 2E 56 21 55 19 [12:48:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 31 33 47 00 13 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 CF 01 00 F4 03 04 00 2A 3D A7 66 B6 04 01 00 00 F1 24 76 F0 88 5C FB 29 [12:48:25]CommunicateWithHost err = 0 [12:48:25]CheckOFDResponse [12:48:25]1017 (14) - 77093643461234 [12:48:25]1041 (16) - 0000000000874939 [12:48:25]1040 (4) - 118773 [12:48:25]1012 (4) - 29.07.2024 06:56 [12:48:25]1206 (1) - 0 [12:48:25]OFD Sender: Remove packet 118773 [12:48:25]ProducePacketName [12:48:25]name=ofd_packets/00118773 [12:48:25]NVStorageDeleteData [12:48:25]Write to MH i2c: 01 00 00 97 54 EB [12:48:25]Write i2c OK [12:48:25]MH_I2C_Read... [12:48:25]Read from MH i2c: 01 [12:48:25]MH_I2C_Read... [12:48:25]Read from MH i2c: 01 07 00 [12:48:25]MH_I2C_Read... [12:48:25]Read from MH i2c: 01 07 00 97 54 00 00 00 00 00 D7 0C D5 [12:48:25]RasterBufferAndPrint [12:48:25]line [12:48:25]line [12:48:25]line [12:48:25]line [12:48:25]line [12:48:25]written 0, free lines is 3294 [12:48:25]MH_Cut [12:48:25]Write to MH i2c: D1 01 00 9E 54 01 C4 [12:48:25]Write i2c OK [12:48:25]MH_I2C_Read... [12:48:25]Read from MH i2c: D1 [12:48:25]MH_I2C_Read... [12:48:25]Read from MH i2c: D1 01 00 [12:48:25]MH_I2C_Read... [12:48:25]Read from MH i2c: D1 01 00 9E 54 00 C3 [12:48:25]Write to MH i2c: 01 00 00 9F 54 F3 [12:48:25]Write i2c OK [12:48:25]MH_I2C_Read... [12:48:25]OFD Sender: No OFD packet to send [12:48:26]*** Cut start [12:48:26]*** Partial cut [12:48:26]*** CUTSNS_PIN = 1 [12:48:26]*** CUTSNS_PIN = 0 [12:48:26]*** Brake cut motor [12:48:26]Read from MH i2c: 01 [12:48:26]MH_I2C_Read... [12:48:26]*** Stop cut motor [12:48:26]*** Cut end [12:48:26]Read from MH i2c: 01 07 00 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: 01 07 00 9F 54 00 00 00 00 00 FF 0F 08 [12:48:26]process_action close_receipt done [12:48:26]requested_data is exist [12:48:26]produce_requested_data [12:48:26]requested_item fm.sn is exist - process it [12:48:26]wFMCommunicate request_size=4 [12:48:26]MH_SAM_APDU [12:48:26]CAPDU: 80 11 00 00 [12:48:26]Write to MH i2c: E2 08 00 A0 54 80 11 00 00 00 00 00 00 6E [12:48:26]Write i2c OK [12:48:26]MH_I2C_Read... [12:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:26]Read from MH i2c: E2 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 17 00 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 17 00 A0 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C9 [12:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:48:26]wFMCommunicate OK [12:48:26]requested_item fd.num is exist - process it [12:48:26]SAM_PROTO_GetFieldsCounters [12:48:26]wFMCommunicate request_size=4 [12:48:26]MH_SAM_APDU [12:48:26]CAPDU: 80 13 00 00 [12:48:26]Write to MH i2c: E2 08 00 A1 54 80 13 00 00 00 00 00 00 71 [12:48:26]Write i2c OK [12:48:26]MH_I2C_Read... [12:48:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:26]Read from MH i2c: E2 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 62 00 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 62 00 A1 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F5 CF 01 00 0E 04 04 00 B2 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 CF [12:48: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F5 CF 01 00 0E 04 04 00 B2 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 [12:48:26]wFMCommunicate OK [12:48:26]SAM_PROTO_GetFieldsCounters done [12:48:26]requested_item shift.num is exist - process it [12:48:26]requested_item shift.opened is exist - process it [12:48:26]req_shift_opened [12:48:26]FM_GetShiftState [12:48:26]SAM_PROTO_GetShiftState [12:48:26]wFMCommunicate request_size=4 [12:48:26]MH_SAM_APDU [12:48:26]CAPDU: 80 13 01 00 [12:48:26]Write to MH i2c: E2 08 00 A2 54 80 13 01 00 00 00 00 00 73 [12:48:26]Write i2c OK [12:48:26]MH_I2C_Read... [12:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:26]Read from MH i2c: E2 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 0E 00 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 0E 00 A2 54 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A1 [12:48:26]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:48:26]wFMCommunicate OK [12:48:26]SAM_PROTO_GetShiftState done [12:48:26]FM_GetShiftState done [12:48:26]req_shift_opened done [12:48:26]requested_item shift.open_date is exist - process it [12:48:26]req_shift_open_date [12:48:26]req_shift_open_date done [12:48:26]produce_requested_data done [12:48:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118773,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [12:48:26]process_action_free close_receipt [12:48:26]json_value_free [12:48:26]json_value_free done [12:48:26]process_json_proto returns [12:48:26]Send response to host [12:48:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118773,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [12:48:26]free response buf [12:48:26]execute_script done [12:48:26]execute_script returns [12:48:26]free content buf [12:48:26]Sock 9.Close socket [12:48:26]Sock 9.Thread stoped [12:48:30]accept exits with 7 [12:48:30]New connection [12:48:30]New thread 3067383140 created [12:48:30]Thread 3067239780 joined [12:48:30]Waiting for new connection... [12:48:30] Sock 7.Parse request [12:48:30]Sock 7.Check first char [12:48:30]Sock 7.First char is OK [12:48:30]request: POST /json_proto HTTP/1.0 [12:48:30]Method: POST [12:48:30]URL: /json_proto [12:48:30]Method is POST - this is cgi request [12:48:30]url: /json_proto [12:48:30]query_string will be loaded in cgi processing [12:48:30]execute_cgi json_proto POST (null) [12:48:30]execute_cgi path=json_proto method=POST [12:48:30]POST find Content-Length [12:48:30]Host: 172.17.45.7:8080 [12:48:30]Content-Length: 679 [12:48:30]Content-Type: application/json [12:48:30] [12:48:30]POST finish read [12:48:30]Found Content-Length = 679 [12:48:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:30]execute_script... [12:48:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:30]POST & json_proto [12:48:30]process_json_proto [12:48:30]json parsed OK: [12:48:30]protocol is kg_v1.0 [12:48:30]action value=close_receipt [12:48:30]process_action close_receipt [12:48:30]cmd_close_receipt [12:48:30]MH_GetDate [12:48:30]Write to MH i2c: F0 00 00 A3 54 E6 [12:48:30]Write i2c OK [12:48:30]MH_I2C_Read... [12:48:30]Read from MH i2c: F0 [12:48:30]MH_I2C_Read... [12:48:30]Read from MH i2c: F0 09 00 [12:48:30]MH_I2C_Read... [12:48:30]Read from MH i2c: F0 09 00 A3 54 00 A3 8F A7 66 90 0F 3E 66 71 [12:48:30]GetLastDocTimeStamp 1722257308 [12:48:30]current date 1722257315 [12:48:30]FM_GetShiftState [12:48:30]SAM_PROTO_GetShiftState [12:48:30]wFMCommunicate request_size=4 [12:48:30]MH_SAM_APDU [12:48:30]CAPDU: 80 13 01 00 [12:48:30]Write to MH i2c: E2 08 00 A4 54 80 13 01 00 00 00 00 00 75 [12:48:30]Write i2c OK [12:48:30]MH_I2C_Read... [12:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:30]Read from MH i2c: E2 [12:48:30]MH_I2C_Read... [12:48:30]Read from MH i2c: E2 0E 00 [12:48:30]MH_I2C_Read... [12:48:30]Read from MH i2c: E2 0E 00 A4 54 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A3 [12:48:30]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:48:30]wFMCommunicate OK [12:48:30]SAM_PROTO_GetShiftState done [12:48:30]FM_GetShiftState done [12:48:30]opened in 1722211641 [12:48:30]opened+sec_in_day 1722298041 [12:48:30]quantity*price = 100050 [12:48:30]sum+1 = 100052 [12:48:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 150 29.07.2024 12:48 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118774 ФПД: 92134759793649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T124835&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118774&fm=92134759793649&tin=02508201610067®Number=0000000000092660&sum=100000 [12:48:31]StoreToDocumentArchive [12:48:31]shift 434 fd 118774 [12:48:31]save to /storage/0434/doc_00118774 [12:48:31]save last doc name /storage/0434/doc_00118774 to /storage/kkm_last_doc_name [12:48:31]save OK [12:48:31]Clear old archive folders... [12:48:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:48:31]tlvbuf is B6F111E0 [12:48:31]SAM_PROTO_ClearQueue [12:48:31]wFMCommunicate request_size=4 [12:48:31]MH_SAM_APDU [12:48:31]CAPDU: 80 09 00 00 [12:48:31]Write to MH i2c: E2 08 00 B1 54 80 09 00 00 00 00 00 00 77 [12:48:31]Write i2c OK [12:48:31]MH_I2C_Read... [12:48:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:31]Read from MH i2c: E2 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 03 00 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 03 00 B1 54 00 90 00 79 [12:48:31]RAPDU: 90 00 [12:48:31]wFMCommunicate OK [12:48:31]SAM_PROTO_ClearQueue done [12:48:31]KKMCreateOFDPacket [12:48:31]OFDProtocolAddRootSTLVToBuf [12:48:31]FM_MakeSignedData [12:48:31]FM_MakeSignedData [12:48:31]SAM_PROTO_SignData [12:48:31]wFMCommunicate request_size=4 [12:48:31]MH_SAM_APDU [12:48:31]CAPDU: 80 0D 01 02 [12:48:31]Write to MH i2c: E2 08 00 B2 54 80 0D 01 02 00 00 00 00 7F [12:48:31]Write i2c OK [12:48:31]MH_I2C_Read... [12:48:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:31]Read from MH i2c: E2 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 03 00 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 03 00 B2 54 00 90 00 7A [12:48:31]RAPDU: 90 00 [12:48:31]wFMCommunicate OK [12:48:31]wFMCommunicate request_size=255 [12:48:31]MH_SAM_APDU [12:48:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 A3 8F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 CF 01 00 35 04 06 00 53 CB CB A1 [12:48:31]Write to MH i2c: E2 02 01 B3 54 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 A3 8F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 CF 01 00 35 04 06 00 53 CB CB A1 00 00 E7 [12:48:31]Write i2c OK [12:48:31]MH_I2C_Read... [12:48:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:31]Read from MH i2c: E2 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 03 00 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 03 00 B3 54 00 90 00 7B [12:48:31]RAPDU: 90 00 [12:48:31]wFMCommunicate OK [12:48:31]wFMCommunicate request_size=7 [12:48:31]MH_SAM_APDU [12:48:31]CAPDU: 80 0D 02 02 02 03 F1 [12:48:31]Write to MH i2c: E2 0A 00 B4 54 80 0D 02 02 02 00 03 F1 00 00 7A [12:48:31]Write i2c OK [12:48:31]MH_I2C_Read... [12:48:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:31]Read from MH i2c: E2 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 03 00 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 03 00 B4 54 00 90 00 7C [12:48:31]RAPDU: 90 00 [12:48:31]wFMCommunicate OK [12:48:31]wFMCommunicate request_size=4 [12:48:31]MH_SAM_APDU [12:48:31]CAPDU: 80 0D 03 02 [12:48:31]Write to MH i2c: E2 08 00 B5 54 80 0D 03 02 00 00 00 00 84 [12:48:31]Write i2c OK [12:48:31]MH_I2C_Read... [12:48:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:31]Read from MH i2c: E2 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 0B 00 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 0B 00 B5 54 00 6B 10 F7 DD 83 A2 43 F7 90 00 33 [12:48:31]RAPDU: 6B 10 F7 DD 83 A2 43 F7 90 00 [12:48:31]wFMCommunicate OK [12:48:31]SAM_PROTO_SignData done [12:48:31]FM_MakeSignedData done [12:48:31]CreateOFDProtocolMessage [12:48:31]wFMCommunicate request_size=4 [12:48:31]MH_SAM_APDU [12:48:31]CAPDU: 80 11 00 00 [12:48:31]Write to MH i2c: E2 08 00 B6 54 80 11 00 00 00 00 00 00 84 [12:48:31]Write i2c OK [12:48:31]MH_I2C_Read... [12:48:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:31]Read from MH i2c: E2 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 17 00 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: E2 17 00 B6 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DF [12:48:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:48:31]wFMCommunicate OK [12:48:31]CreateOFDProtocolMessage done [12:48:31]OFDSenderStorePacket 118774 [12:48:31]StoreOFDPacket docnum=118774 [12:48:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 35 31 04 01 07 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 A3 8F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 CF 01 00 35 04 06 00 53 CB CB A1 03 F1 6B 10 F7 DD 83 A2 43 F7 [12:48:31]CheckFolder [12:48:31]dirname=/storage/ofd_packets [12:48:31]CheckFolder done [12:48:31]ProducePacketName [12:48:31]name=ofd_packets/00118774 [12:48:31]NVStorageSaveData ofd_packets/00118774 [12:48:31]File name is /storage/ofd_packets/00118774 [12:48:31]Write 298 bytes [12:48:31]NVStorageSaveData done [12:48:31]OFDSenderStorePacket done [12:48:31]KKMCreateOFDPacket done [12:48:31]NVStorageSaveData kkm_last_timestamp [12:48:31]File name is /storage/kkm_last_timestamp [12:48:31]Write 4 bytes [12:48:31]NVStorageSaveData done [12:48:31]ExternCall_PrintAddStr [12:48:31]wPrintStart [12:48:31]Write to MH i2c: 01 00 00 B7 54 0B [12:48:31]Write i2c OK [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: 01 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: 01 07 00 [12:48:31]MH_I2C_Read... [12:48:31]Read from MH i2c: 01 07 00 B7 54 00 00 00 00 00 FF 0F 20 [12:48:31]RasterBufferAndPrint [12:48:31]line Счет N : (1)949659 [12:48:31]line ИНН: 02508201610067 [12:48:31]line Контрольно-Кассовый Чек [12:48:31]line ПРОДАЖА [12:48:31]line ТРК (МРК, ГНК) : 34 [12:48:31]line Товар: 2710194800 [12:48:31]line ДТ-К-5 [12:48:31]line 13.130 * 76.20 [12:48:31]line = 1000.51 [12:48:31]line НДС 12% НСП 1% [12:48:31]line > о реализуемом товаре [12:48:31]line ОКРУГЛЕНИЕ: -0.51 [12:48:31]line ИТОГО: 1000.00 [12:48:31]line Внесено: 1000.00 [12:48:31]line СДАЧА: 0.00 [12:48:31]line НСП 1% : 8.85 [12:48:31]line НДС 12% : 106.25 [12:48:31]line Наличными: 1000.00 [12:48:31]line Безнал.: 0.00 [12:48:31]line Место: АЗС № 134 "Партнер Нефть" [12:48:31]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:48:31]line СНО: Общий режим [12:48:31]line Чек 150 29.07.2024 12:48 [12:48:31]line Смена: 434 ФФД: 1.0 [12:48:31]line ЗНМ: 0300000044 [12:48:31]line РНМ: 0000000000092660 [12:48:31]line Версия ККМ: 001 [12:48:31]line ФМ: 0000000000874939 [12:48:31]line ФД: 118774 [12:48:31]line ФПД: 92134759793649 [12:48:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T124835&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118774&fm=92134759793649&tin=02508201610067®Number=0000000000092660&sum=100000 [12:48:31]written 0, free lines is 4095 [12:48:31]OFD Sender: Processing packet 118774 [packets to send 86, broken 85] [12:48:31]ProducePacketName [12:48:31]name=ofd_packets/00118774 [12:48:31]OFD Sender: To server: pG, [12:48:31]CommunicateWithHost lk.salyk.kg:30040 [12:48:31]ConnectInit lk.salyk.kg [12:48:32]Connected sock=10 [12:48:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 35 31 04 01 07 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 A3 8F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 CF 01 00 35 04 06 00 53 CB CB A1 03 F1 6B 10 F7 DD 83 A2 43 F7 [12:48:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E7 86 47 00 A4 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 CF 01 00 F4 03 04 00 31 3D A7 66 B6 04 01 00 00 E9 94 D8 54 E1 E1 46 79 [12:48:32]CommunicateWithHost err = 0 [12:48:32]CheckOFDResponse [12:48:32]1017 (14) - 77093643461234 [12:48:32]1041 (16) - 0000000000874939 [12:48:32]1040 (4) - 118774 [12:48:32]1012 (4) - 29.07.2024 06:56 [12:48:32]1206 (1) - 0 [12:48:32]OFD Sender: Remove packet 118774 [12:48:32]ProducePacketName [12:48:32]name=ofd_packets/00118774 [12:48:32]NVStorageDeleteData [12:48:32]Write to MH i2c: 01 00 00 E1 54 35 [12:48:32]Write i2c OK [12:48:32]MH_I2C_Read... [12:48:32]Read from MH i2c: 01 [12:48:32]MH_I2C_Read... [12:48:32]Read from MH i2c: 01 07 00 [12:48:32]MH_I2C_Read... [12:48:32]Read from MH i2c: 01 07 00 E1 54 00 00 00 00 00 F2 0C 3A [12:48:32]RasterBufferAndPrint [12:48:32]line [12:48:32]line [12:48:32]line [12:48:32]line [12:48:32]line [12:48:32]written 0, free lines is 3326 [12:48:32]MH_Cut [12:48:32]Write to MH i2c: D1 01 00 E8 54 01 0E [12:48:32]Write i2c OK [12:48:32]MH_I2C_Read... [12:48:32]Read from MH i2c: D1 [12:48:32]MH_I2C_Read... [12:48:32]Read from MH i2c: D1 01 00 [12:48:32]MH_I2C_Read... [12:48:32]Read from MH i2c: D1 01 00 E8 54 00 0D [12:48:32]Write to MH i2c: 01 00 00 E9 54 3D [12:48:32]Write i2c OK [12:48:32]MH_I2C_Read... [12:48:32]OFD Sender: No OFD packet to send [12:48:33]*** Cut start [12:48:33]*** Partial cut [12:48:33]*** CUTSNS_PIN = 1 [12:48:33]*** CUTSNS_PIN = 0 [12:48:33]*** Brake cut motor [12:48:33]Read from MH i2c: 01 [12:48:33]MH_I2C_Read... [12:48:33]*** Stop cut motor [12:48:33]*** Cut end [12:48:33]Read from MH i2c: 01 07 00 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: 01 07 00 E9 54 00 00 00 00 00 FF 0F 52 [12:48:33]process_action close_receipt done [12:48:33]requested_data is exist [12:48:33]produce_requested_data [12:48:33]requested_item fm.sn is exist - process it [12:48:33]wFMCommunicate request_size=4 [12:48:33]MH_SAM_APDU [12:48:33]CAPDU: 80 11 00 00 [12:48:33]Write to MH i2c: E2 08 00 EA 54 80 11 00 00 00 00 00 00 B8 [12:48:33]Write i2c OK [12:48:33]MH_I2C_Read... [12:48:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:33]Read from MH i2c: E2 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: E2 17 00 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: E2 17 00 EA 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 13 [12:48:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:48:33]wFMCommunicate OK [12:48:33]requested_item fd.num is exist - process it [12:48:33]SAM_PROTO_GetFieldsCounters [12:48:33]wFMCommunicate request_size=4 [12:48:33]MH_SAM_APDU [12:48:33]CAPDU: 80 13 00 00 [12:48:33]Write to MH i2c: E2 08 00 EB 54 80 13 00 00 00 00 00 00 BB [12:48:33]Write i2c OK [12:48:33]MH_I2C_Read... [12:48:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:33]Read from MH i2c: E2 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: E2 62 00 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: E2 62 00 EB 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F6 CF 01 00 0E 04 04 00 B2 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 1D [12:48:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F6 CF 01 00 0E 04 04 00 B2 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 [12:48:33]wFMCommunicate OK [12:48:33]SAM_PROTO_GetFieldsCounters done [12:48:33]requested_item shift.num is exist - process it [12:48:33]requested_item shift.opened is exist - process it [12:48:33]req_shift_opened [12:48:33]FM_GetShiftState [12:48:33]SAM_PROTO_GetShiftState [12:48:33]wFMCommunicate request_size=4 [12:48:33]MH_SAM_APDU [12:48:33]CAPDU: 80 13 01 00 [12:48:33]Write to MH i2c: E2 08 00 EC 54 80 13 01 00 00 00 00 00 BD [12:48:33]Write i2c OK [12:48:33]MH_I2C_Read... [12:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:34]Read from MH i2c: E2 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 0E 00 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 0E 00 EC 54 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 EB [12:48:34]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:48:34]wFMCommunicate OK [12:48:34]SAM_PROTO_GetShiftState done [12:48:34]FM_GetShiftState done [12:48:34]req_shift_opened done [12:48:34]requested_item shift.open_date is exist - process it [12:48:34]req_shift_open_date [12:48:34]req_shift_open_date done [12:48:34]produce_requested_data done [12:48:34]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118774,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [12:48:34]process_action_free close_receipt [12:48:34]json_value_free [12:48:34]json_value_free done [12:48:34]process_json_proto returns [12:48:34]Send response to host [12:48:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118774,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [12:48:34]free response buf [12:48:34]execute_script done [12:48:34]execute_script returns [12:48:34]free content buf [12:48:34]Sock 7.Close socket [12:48:34]Sock 7.Thread stoped [12:48:37]OFD Sender: No OFD packet to send [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:49:02]OFD Sender: No OFD packet to send [12:49:07]OFD Sender: No OFD packet to send [12:49:12]OFD Sender: No OFD packet to send [12:49:17]OFD Sender: No OFD packet to send [12:49:22]OFD Sender: No OFD packet to send [12:49:27]OFD Sender: No OFD packet to send [12:49:32]OFD Sender: No OFD packet to send [12:49:37]OFD Sender: No OFD packet to send [12:49:42]OFD Sender: No OFD packet to send [12:49:47]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:56]accept exits with 9 [12:51:56]New connection [12:51:56]New thread 3067239780 created [12:51:56]Thread 3067383140 joined [12:51:56]Waiting for new connection... [12:51:56] Sock 9.Parse request [12:51:56]Sock 9.Check first char [12:51:56]Sock 9.First char is OK [12:51:56]request: POST /json_proto HTTP/1.0 [12:51:56]Method: POST [12:51:56]URL: /json_proto [12:51:56]Method is POST - this is cgi request [12:51:56]url: /json_proto [12:51:56]query_string will be loaded in cgi processing [12:51:56]execute_cgi json_proto POST (null) [12:51:56]execute_cgi path=json_proto method=POST [12:51:56]POST find Content-Length [12:51:56]Host: 172.17.45.7:8080 [12:51:56]Content-Length: 675 [12:51:56]Content-Type: application/json [12:51:56] [12:51:56]POST finish read [12:51:56]Found Content-Length = 675 [12:51:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:56]execute_script... [12:51:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:56]POST & json_proto [12:51:56]process_json_proto [12:51:56]json parsed OK: [12:51:56]protocol is kg_v1.0 [12:51:56]action value=close_receipt [12:51:56]process_action close_receipt [12:51:56]cmd_close_receipt [12:51:56]MH_GetDate [12:51:56]Write to MH i2c: F0 00 00 ED 54 30 [12:51:56]Write i2c OK [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: F0 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: F0 09 00 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: F0 09 00 ED 54 00 72 90 A7 66 90 0F 3E 66 8B [12:51:56]GetLastDocTimeStamp 1722257315 [12:51:56]current date 1722257522 [12:51:56]FM_GetShiftState [12:51:56]SAM_PROTO_GetShiftState [12:51:56]wFMCommunicate request_size=4 [12:51:56]MH_SAM_APDU [12:51:56]CAPDU: 80 13 01 00 [12:51:56]Write to MH i2c: E2 08 00 EE 54 80 13 01 00 00 00 00 00 BF [12:51:56]Write i2c OK [12:51:56]MH_I2C_Read... [12:51:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:56]Read from MH i2c: E2 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: E2 0E 00 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: E2 0E 00 EE 54 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 ED [12:51:56]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:51:56]wFMCommunicate OK [12:51:56]SAM_PROTO_GetShiftState done [12:51:56]FM_GetShiftState done [12:51:56]opened in 1722211641 [12:51:56]opened+sec_in_day 1722298041 [12:51:56]quantity*price = 80010 [12:51:56]sum+1 = 80011 [12:51:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 151 29.07.2024 12:52 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118775 ФПД: 186363133661486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T125202&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118775&fm=186363133661486&tin=02508201610067®Number=0000000000092660&sum=80000 [12:51:57]StoreToDocumentArchive [12:51:57]shift 434 fd 118775 [12:51:57]save to /storage/0434/doc_00118775 [12:51:57]save last doc name /storage/0434/doc_00118775 to /storage/kkm_last_doc_name [12:51:57]save OK [12:51:57]Clear old archive folders... [12:51:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:51:57]tlvbuf is 01F98420 [12:51:57]SAM_PROTO_ClearQueue [12:51:57]wFMCommunicate request_size=4 [12:51:57]MH_SAM_APDU [12:51:57]CAPDU: 80 09 00 00 [12:51:57]Write to MH i2c: E2 08 00 FB 54 80 09 00 00 00 00 00 00 C1 [12:51:57]Write i2c OK [12:51:57]MH_I2C_Read... [12:51:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:57]Read from MH i2c: E2 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: E2 03 00 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: E2 03 00 FB 54 00 90 00 C3 [12:51:57]RAPDU: 90 00 [12:51:57]wFMCommunicate OK [12:51:57]SAM_PROTO_ClearQueue done [12:51:57]KKMCreateOFDPacket [12:51:57]OFDProtocolAddRootSTLVToBuf [12:51:57]FM_MakeSignedData [12:51:57]FM_MakeSignedData [12:51:57]SAM_PROTO_SignData [12:51:57]wFMCommunicate request_size=4 [12:51:57]MH_SAM_APDU [12:51:57]CAPDU: 80 0D 01 02 [12:51:57]Write to MH i2c: E2 08 00 FC 54 80 0D 01 02 00 00 00 00 C9 [12:51:57]Write i2c OK [12:51:57]MH_I2C_Read... [12:51:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:57]Read from MH i2c: E2 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: E2 03 00 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: E2 03 00 FC 54 00 90 00 C4 [12:51:57]RAPDU: 90 00 [12:51:57]wFMCommunicate OK [12:51:57]wFMCommunicate request_size=255 [12:51:57]MH_SAM_APDU [12:51:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 72 90 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 CF 01 00 35 04 06 00 A9 7F 0C 61 [12:51:57]Write to MH i2c: E2 02 01 FD 54 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 72 90 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 CF 01 00 35 04 06 00 A9 7F 0C 61 00 00 41 [12:51:57]Write i2c OK [12:51:57]MH_I2C_Read... [12:51:58]OFD Sender: No OFD packet to send [12:51:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:58]Read from MH i2c: E2 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: E2 03 00 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: E2 03 00 FD 54 00 90 00 C5 [12:51:58]RAPDU: 90 00 [12:51:58]wFMCommunicate OK [12:51:58]wFMCommunicate request_size=7 [12:51:58]MH_SAM_APDU [12:51:58]CAPDU: 80 0D 02 02 02 91 2E [12:51:58]Write to MH i2c: E2 0A 00 FE 54 80 0D 02 02 02 00 91 2E 00 00 8F [12:51:58]Write i2c OK [12:51:58]MH_I2C_Read... [12:51:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:58]Read from MH i2c: E2 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: E2 03 00 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: E2 03 00 FE 54 00 90 00 C6 [12:51:58]RAPDU: 90 00 [12:51:58]wFMCommunicate OK [12:51:58]wFMCommunicate request_size=4 [12:51:58]MH_SAM_APDU [12:51:58]CAPDU: 80 0D 03 02 [12:51:58]Write to MH i2c: E2 08 00 FF 54 80 0D 03 02 00 00 00 00 CE [12:51:58]Write i2c OK [12:51:58]MH_I2C_Read... [12:51:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:58]Read from MH i2c: E2 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: E2 0B 00 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: E2 0B 00 FF 54 00 BE 14 FE 59 C9 58 69 5C 90 00 DE [12:51:58]RAPDU: BE 14 FE 59 C9 58 69 5C 90 00 [12:51:58]wFMCommunicate OK [12:51:58]SAM_PROTO_SignData done [12:51:58]FM_MakeSignedData done [12:51:58]CreateOFDProtocolMessage [12:51:58]wFMCommunicate request_size=4 [12:51:58]MH_SAM_APDU [12:51:58]CAPDU: 80 11 00 00 [12:51:58]Write to MH i2c: E2 08 00 00 55 80 11 00 00 00 00 00 00 CF [12:51:58]Write i2c OK [12:51:58]MH_I2C_Read... [12:51:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:58]Read from MH i2c: E2 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: E2 17 00 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: E2 17 00 00 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2A [12:51:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:51:58]wFMCommunicate OK [12:51:58]CreateOFDProtocolMessage done [12:51:58]OFDSenderStorePacket 118775 [12:51:58]StoreOFDPacket docnum=118775 [12:51:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 47 DA 04 01 2D 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 72 90 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 CF 01 00 35 04 06 00 A9 7F 0C 61 91 2E BE 14 FE 59 C9 58 69 5C [12:51:58]CheckFolder [12:51:58]dirname=/storage/ofd_packets [12:51:58]CheckFolder done [12:51:58]ProducePacketName [12:51:58]name=ofd_packets/00118775 [12:51:58]NVStorageSaveData ofd_packets/00118775 [12:51:58]File name is /storage/ofd_packets/00118775 [12:51:58]Write 298 bytes [12:51:58]NVStorageSaveData done [12:51:58]OFDSenderStorePacket done [12:51:58]KKMCreateOFDPacket done [12:51:58]NVStorageSaveData kkm_last_timestamp [12:51:58]File name is /storage/kkm_last_timestamp [12:51:58]Write 4 bytes [12:51:58]NVStorageSaveData done [12:51:58]ExternCall_PrintAddStr [12:51:58]wPrintStart [12:51:58]Write to MH i2c: 01 00 00 01 55 56 [12:51:58]Write i2c OK [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: 01 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: 01 07 00 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: 01 07 00 01 55 00 00 00 00 00 FF 0F 6B [12:51:58]RasterBufferAndPrint [12:51:58]line Счет N : (1)949660 [12:51:58]line ИНН: 02508201610067 [12:51:58]line Контрольно-Кассовый Чек [12:51:58]line ПРОДАЖА [12:51:58]line ТРК (МРК, ГНК) : 44 [12:51:58]line Товар: 2710194800 [12:51:58]line ДТ-К-5 [12:51:58]line 10.500 * 76.20 [12:51:58]line = 800.10 [12:51:58]line НДС 12% НСП 1% [12:51:58]line > о реализуемом товаре [12:51:58]line ОКРУГЛЕНИЕ: -0.10 [12:51:58]line ИТОГО: 800.00 [12:51:58]line Внесено: 800.00 [12:51:58]line СДАЧА: 0.00 [12:51:58]line НСП 1% : 7.08 [12:51:58]line НДС 12% : 84.97 [12:51:58]line Наличными: 800.00 [12:51:58]line Безнал.: 0.00 [12:51:58]line Место: АЗС № 134 "Партнер Нефть" [12:51:58]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:51:58]line СНО: Общий режим [12:51:58]line Чек 151 29.07.2024 12:52 [12:51:58]line Смена: 434 ФФД: 1.0 [12:51:58]line ЗНМ: 0300000044 [12:51:58]line РНМ: 0000000000092660 [12:51:58]line Версия ККМ: 001 [12:51:58]line ФМ: 0000000000874939 [12:51:58]line ФД: 118775 [12:51:58]line ФПД: 186363133661486 [12:51:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T125202&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118775&fm=186363133661486&tin=02508201610067®Number=0000000000092660&sum=80000 [12:51:58]OFD Sender: Processing packet 118775 [packets to send 86, broken 85] [12:51:58]ProducePacketName [12:51:58]name=ofd_packets/00118775 [12:51:58]OFD Sender: To server: pG, [12:51:58]CommunicateWithHost lk.salyk.kg:30040 [12:51:58]ConnectInit lk.salyk.kg [12:51:58]written 0, free lines is 4095 [12:51:58]Connected sock=10 [12:51:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 47 DA 04 01 2D 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 72 90 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 CF 01 00 35 04 06 00 A9 7F 0C 61 91 2E BE 14 FE 59 C9 58 69 5C [12:51:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F8 95 47 00 95 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 CF 01 00 F4 03 04 00 00 3E A7 66 B6 04 01 00 00 C6 22 49 FE F4 48 FE C5 [12:51:58]CommunicateWithHost err = 0 [12:51:58]CheckOFDResponse [12:51:58]1017 (14) - 77093643461234 [12:51:58]1041 (16) - 0000000000874939 [12:51:58]1040 (4) - 118775 [12:51:58]1012 (4) - 29.07.2024 07:00 [12:51:58]1206 (1) - 0 [12:51:58]OFD Sender: Remove packet 118775 [12:51:58]ProducePacketName [12:51:58]name=ofd_packets/00118775 [12:51:58]NVStorageDeleteData [12:51:59]Write to MH i2c: 01 00 00 2B 55 80 [12:51:59]Write i2c OK [12:51:59]MH_I2C_Read... [12:51:59]Read from MH i2c: 01 [12:51:59]MH_I2C_Read... [12:51:59]Read from MH i2c: 01 07 00 [12:51:59]MH_I2C_Read... [12:51:59]Read from MH i2c: 01 07 00 2B 55 00 00 00 00 00 EC 0C 7F [12:51:59]RasterBufferAndPrint [12:51:59]line [12:51:59]line [12:51:59]line [12:51:59]line [12:51:59]line [12:51:59]written 0, free lines is 3315 [12:51:59]MH_Cut [12:51:59]Write to MH i2c: D1 01 00 32 55 01 59 [12:51:59]Write i2c OK [12:51:59]MH_I2C_Read... [12:51:59]Read from MH i2c: D1 [12:51:59]MH_I2C_Read... [12:51:59]Read from MH i2c: D1 01 00 [12:51:59]MH_I2C_Read... [12:51:59]Read from MH i2c: D1 01 00 32 55 00 58 [12:51:59]Write to MH i2c: 01 00 00 33 55 88 [12:51:59]Write i2c OK [12:51:59]MH_I2C_Read... [12:51:59]OFD Sender: No OFD packet to send [12:51:59]*** Cut start [12:51:59]*** Partial cut [12:51:59]*** CUTSNS_PIN = 1 [12:51:59]*** CUTSNS_PIN = 0 [12:52:00]*** Brake cut motor [12:52:00]Read from MH i2c: 01 [12:52:00]MH_I2C_Read... [12:52:00]*** Stop cut motor [12:52:00]*** Cut end [12:52:00]Read from MH i2c: 01 07 00 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: 01 07 00 33 55 00 00 00 00 00 FF 0F 9D [12:52:00]process_action close_receipt done [12:52:00]requested_data is exist [12:52:00]produce_requested_data [12:52:00]requested_item fm.sn is exist - process it [12:52:00]wFMCommunicate request_size=4 [12:52:00]MH_SAM_APDU [12:52:00]CAPDU: 80 11 00 00 [12:52:00]Write to MH i2c: E2 08 00 34 55 80 11 00 00 00 00 00 00 03 [12:52:00]Write i2c OK [12:52:00]MH_I2C_Read... [12:52:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:00]Read from MH i2c: E2 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: E2 17 00 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: E2 17 00 34 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5E [12:52:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:52:00]wFMCommunicate OK [12:52:00]requested_item fd.num is exist - process it [12:52:00]SAM_PROTO_GetFieldsCounters [12:52:00]wFMCommunicate request_size=4 [12:52:00]MH_SAM_APDU [12:52:00]CAPDU: 80 13 00 00 [12:52:00]Write to MH i2c: E2 08 00 35 55 80 13 00 00 00 00 00 00 06 [12:52:00]Write i2c OK [12:52:00]MH_I2C_Read... [12:52:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:00]Read from MH i2c: E2 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: E2 62 00 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: E2 62 00 35 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F7 CF 01 00 0E 04 04 00 B2 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 6C [12: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F7 CF 01 00 0E 04 04 00 B2 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 [12:52:00]wFMCommunicate OK [12:52:00]SAM_PROTO_GetFieldsCounters done [12:52:00]requested_item shift.num is exist - process it [12:52:00]requested_item shift.opened is exist - process it [12:52:00]req_shift_opened [12:52:00]FM_GetShiftState [12:52:00]SAM_PROTO_GetShiftState [12:52:00]wFMCommunicate request_size=4 [12:52:00]MH_SAM_APDU [12:52:00]CAPDU: 80 13 01 00 [12:52:00]Write to MH i2c: E2 08 00 36 55 80 13 01 00 00 00 00 00 08 [12:52:00]Write i2c OK [12:52:00]MH_I2C_Read... [12:52:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:00]Read from MH i2c: E2 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: E2 0E 00 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: E2 0E 00 36 55 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 36 [12:52:00]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:52:00]wFMCommunicate OK [12:52:00]SAM_PROTO_GetShiftState done [12:52:00]FM_GetShiftState done [12:52:00]req_shift_opened done [12:52:00]requested_item shift.open_date is exist - process it [12:52:00]req_shift_open_date [12:52:00]req_shift_open_date done [12:52:00]produce_requested_data done [12:52:00]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118775,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [12:52:00]process_action_free close_receipt [12:52:00]json_value_free [12:52:00]json_value_free done [12:52:00]process_json_proto returns [12:52:00]Send response to host [12:52:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118775,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [12:52:00]free response buf [12:52:00]execute_script done [12:52:00]execute_script returns [12:52:00]free content buf [12:52:00]Sock 9.Close socket [12:52:00]Sock 9.Thread stoped [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]accept exits with 7 [12:53:54]New connection [12:53:54]New thread 3067383140 created [12:53:54]Thread 3067239780 joined [12:53:54]Waiting for new connection... [12:53:54] Sock 7.Parse request [12:53:54]Sock 7.Check first char [12:53:54]Sock 7.First char is OK [12:53:54]request: POST /json_proto HTTP/1.0 [12:53:54]Method: POST [12:53:54]URL: /json_proto [12:53:54]Method is POST - this is cgi request [12:53:54]url: /json_proto [12:53:54]query_string will be loaded in cgi processing [12:53:54]execute_cgi json_proto POST (null) [12:53:54]execute_cgi path=json_proto method=POST [12:53:54]POST find Content-Length [12:53:54]Host: 172.17.45.7:8080 [12:53:54]Content-Length: 682 [12:53:54]Content-Type: application/json [12:53:54] [12:53:54]POST finish read [12:53:54]Found Content-Length = 682 [12:53:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:54]execute_script... [12:53: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)949661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:54]POST & json_proto [12:53:54]process_json_proto [12:53:54]json parsed OK: [12:53:54]protocol is kg_v1.0 [12:53:54]action value=close_receipt [12:53:54]process_action close_receipt [12:53:54]cmd_close_receipt [12:53:54]MH_GetDate [12:53:54]Write to MH i2c: F0 00 00 37 55 7B [12:53:54]Write i2c OK [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: F0 [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: F0 09 00 [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: F0 09 00 37 55 00 E7 90 A7 66 90 0F 3E 66 4B [12:53:54]GetLastDocTimeStamp 1722257522 [12:53:54]current date 1722257639 [12:53:54]FM_GetShiftState [12:53:54]SAM_PROTO_GetShiftState [12:53:54]wFMCommunicate request_size=4 [12:53:54]MH_SAM_APDU [12:53:54]CAPDU: 80 13 01 00 [12:53:54]Write to MH i2c: E2 08 00 38 55 80 13 01 00 00 00 00 00 0A [12:53:54]Write i2c OK [12:53:54]MH_I2C_Read... [12:53:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:54]Read from MH i2c: E2 [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: E2 0E 00 [12:53:54]MH_I2C_Read... [12:53:54]Read from MH i2c: E2 0E 00 38 55 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 38 [12:53:54]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:53:54]wFMCommunicate OK [12:53:54]SAM_PROTO_GetShiftState done [12:53:54]FM_GetShiftState done [12:53:54]opened in 1722211641 [12:53:54]opened+sec_in_day 1722298041 [12:53:54]quantity*price = 100005 [12:53:54]sum+1 = 100006 [12:53:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 152 29.07.2024 12:53 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118776 ФПД: 279745155912322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T125359&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118776&fm=279745155912322&tin=02508201610067®Number=0000000000092660&sum=100000 [12:53:55]StoreToDocumentArchive [12:53:55]shift 434 fd 118776 [12:53:55]save to /storage/0434/doc_00118776 [12:53:55]save last doc name /storage/0434/doc_00118776 to /storage/kkm_last_doc_name [12:53:55]save OK [12:53:55]Clear old archive folders... [12:53:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:55]tlvbuf is 01E53E70 [12:53:55]SAM_PROTO_ClearQueue [12:53:55]wFMCommunicate request_size=4 [12:53:55]MH_SAM_APDU [12:53:55]CAPDU: 80 09 00 00 [12:53:55]Write to MH i2c: E2 08 00 45 55 80 09 00 00 00 00 00 00 0C [12:53:55]Write i2c OK [12:53:55]MH_I2C_Read... [12:53:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:55]Read from MH i2c: E2 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 03 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 03 00 45 55 00 90 00 0E [12:53:55]RAPDU: 90 00 [12:53:55]wFMCommunicate OK [12:53:55]SAM_PROTO_ClearQueue done [12:53:55]KKMCreateOFDPacket [12:53:55]OFDProtocolAddRootSTLVToBuf [12:53:55]FM_MakeSignedData [12:53:55]FM_MakeSignedData [12:53:55]SAM_PROTO_SignData [12:53:55]wFMCommunicate request_size=4 [12:53:55]MH_SAM_APDU [12:53:55]CAPDU: 80 0D 01 02 [12:53:55]Write to MH i2c: E2 08 00 46 55 80 0D 01 02 00 00 00 00 14 [12:53:55]Write i2c OK [12:53:55]MH_I2C_Read... [12:53:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:55]Read from MH i2c: E2 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 03 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 03 00 46 55 00 90 00 0F [12:53:55]RAPDU: 90 00 [12:53:55]wFMCommunicate OK [12:53:55]wFMCommunicate request_size=255 [12:53:55]MH_SAM_APDU [12:53:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 E7 90 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 CF 01 00 35 04 06 00 FE [12:53:55]Write to MH i2c: E2 02 01 47 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 E7 90 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 CF 01 00 35 04 06 00 FE 00 00 BC [12:53:55]Write i2c OK [12:53:55]MH_I2C_Read... [12:53:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:55]Read from MH i2c: E2 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 03 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 03 00 47 55 00 90 00 10 [12:53:55]RAPDU: 90 00 [12:53:55]wFMCommunicate OK [12:53:55]wFMCommunicate request_size=10 [12:53:55]MH_SAM_APDU [12:53:55]CAPDU: 80 0D 02 02 05 6D 3E A5 52 82 [12:53:55]Write to MH i2c: E2 0D 00 48 55 80 0D 02 02 05 00 6D 3E A5 52 82 00 00 45 [12:53:55]Write i2c OK [12:53:55]MH_I2C_Read... [12:53:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:55]Read from MH i2c: E2 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 03 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 03 00 48 55 00 90 00 11 [12:53:55]RAPDU: 90 00 [12:53:55]wFMCommunicate OK [12:53:55]wFMCommunicate request_size=4 [12:53:55]MH_SAM_APDU [12:53:55]CAPDU: 80 0D 03 02 [12:53:55]Write to MH i2c: E2 08 00 49 55 80 0D 03 02 00 00 00 00 19 [12:53:55]Write i2c OK [12:53:55]MH_I2C_Read... [12:53:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:55]Read from MH i2c: E2 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 0B 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 0B 00 49 55 00 5D 8E 67 96 9D CF 0F 93 90 00 10 [12:53:55]RAPDU: 5D 8E 67 96 9D CF 0F 93 90 00 [12:53:55]wFMCommunicate OK [12:53:55]SAM_PROTO_SignData done [12:53:55]FM_MakeSignedData done [12:53:55]CreateOFDProtocolMessage [12:53:55]wFMCommunicate request_size=4 [12:53:55]MH_SAM_APDU [12:53:55]CAPDU: 80 11 00 00 [12:53:55]Write to MH i2c: E2 08 00 4A 55 80 11 00 00 00 00 00 00 19 [12:53:55]Write i2c OK [12:53:55]MH_I2C_Read... [12:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:55]Read from MH i2c: E2 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 17 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: E2 17 00 4A 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 74 [12:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:53:55]wFMCommunicate OK [12:53:55]CreateOFDProtocolMessage done [12:53:55]OFDSenderStorePacket 118776 [12:53:55]StoreOFDPacket docnum=118776 [12:53:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 8C 56 07 01 C4 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 E7 90 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 CF 01 00 35 04 06 00 FE 6D 3E A5 52 82 5D 8E 67 96 9D CF 0F 93 [12:53:55]CheckFolder [12:53:55]dirname=/storage/ofd_packets [12:53:55]CheckFolder done [12:53:55]ProducePacketName [12:53:55]name=ofd_packets/00118776 [12:53:55]NVStorageSaveData ofd_packets/00118776 [12:53:55]File name is /storage/ofd_packets/00118776 [12:53:55]Write 301 bytes [12:53:55]NVStorageSaveData done [12:53:55]OFDSenderStorePacket done [12:53:55]KKMCreateOFDPacket done [12:53:55]NVStorageSaveData kkm_last_timestamp [12:53:55]File name is /storage/kkm_last_timestamp [12:53:55]Write 4 bytes [12:53:55]NVStorageSaveData done [12:53:55]ExternCall_PrintAddStr [12:53:55]wPrintStart [12:53:55]Write to MH i2c: 01 00 00 4B 55 A0 [12:53:55]Write i2c OK [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: 01 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: 01 07 00 [12:53:55]MH_I2C_Read... [12:53:55]Read from MH i2c: 01 07 00 4B 55 00 00 00 00 00 FF 0F B5 [12:53:55]RasterBufferAndPrint [12:53:55]line Счет N : (1)949661 [12:53:55]line ИНН: 02508201610067 [12:53:55]line Контрольно-Кассовый Чек [12:53:55]line ПРОДАЖА [12:53:55]line ТРК (МРК, ГНК) : 51 [12:53:55]line Товар: 2710124130 [12:53:55]line Аи-92-К-4 [12:53:55]line 14.750 * 67.80 [12:53:55]line = 1000.05 [12:53:55]line НДС 12% НСП 1% [12:53:55]line > о реализуемом товаре [12:53:55]line ОКРУГЛЕНИЕ: -0.05 [12:53:55]line ИТОГО: 1000.00 [12:53:55]line Внесено: 1000.00 [12:53:55]line СДАЧА: 0.00 [12:53:55]line НСП 1% : 8.85 [12:53:55]line НДС 12% : 106.20 [12:53:55]line Наличными: 1000.00 [12:53:55]line Безнал.: 0.00 [12:53:55]line Место: АЗС № 134 "Партнер Нефть" [12:53:55]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:53:55]line СНО: Общий режим [12:53:55]line Чек 152 29.07.2024 12:53 [12:53:55]line Смена: 434 ФФД: 1.0 [12:53:55]line ЗНМ: 0300000044 [12:53:55]line РНМ: 0000000000092660 [12:53:55]line Версия ККМ: 001 [12:53:55]line ФМ: 0000000000874939 [12:53:55]line ФД: 118776 [12:53:55]line ФПД: 279745155912322 [12:53:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T125359&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118776&fm=279745155912322&tin=02508201610067®Number=0000000000092660&sum=100000 [12:53:56]written 0, free lines is 4095 [12:53:56]OFD Sender: Processing packet 118776 [packets to send 86, broken 85] [12:53:56]ProducePacketName [12:53:56]name=ofd_packets/00118776 [12:53:56]OFD Sender: To server: pG, [12:53:56]CommunicateWithHost lk.salyk.kg:30040 [12:53:56]ConnectInit lk.salyk.kg [12:53:56]Connected sock=11 [12:53:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 8C 56 07 01 C4 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 E7 90 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 CF 01 00 35 04 06 00 FE 6D 3E A5 52 82 5D 8E 67 96 9D CF 0F 93 [12:53:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 84 E0 47 00 CB A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 CF 01 00 F4 03 04 00 75 3E A7 66 B6 04 01 00 00 91 45 69 A9 09 80 3C 31 [12:53:56]CommunicateWithHost err = 0 [12:53:56]CheckOFDResponse [12:53:56]1017 (14) - 77093643461234 [12:53:56]1041 (16) - 0000000000874939 [12:53:56]1040 (4) - 118776 [12:53:56]1012 (4) - 29.07.2024 07:02 [12:53:56]1206 (1) - 0 [12:53:56]OFD Sender: Remove packet 118776 [12:53:56]ProducePacketName [12:53:56]name=ofd_packets/00118776 [12:53:56]NVStorageDeleteData [12:53:56]Write to MH i2c: 01 00 00 75 55 CA [12:53:56]Write i2c OK [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: 01 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: 01 07 00 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: 01 07 00 75 55 00 00 00 00 00 E4 0C C1 [12:53:56]RasterBufferAndPrint [12:53:56]line [12:53:56]line [12:53:56]line [12:53:56]line [12:53:56]line [12:53:56]written 0, free lines is 3306 [12:53:56]MH_Cut [12:53:56]Write to MH i2c: D1 01 00 7C 55 01 A3 [12:53:56]Write i2c OK [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: D1 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: D1 01 00 [12:53:56]MH_I2C_Read... [12:53:56]Read from MH i2c: D1 01 00 7C 55 00 A2 [12:53:56]Write to MH i2c: 01 00 00 7D 55 D2 [12:53:56]Write i2c OK [12:53:56]MH_I2C_Read... [12:53:57]OFD Sender: No OFD packet to send [12:53:57]*** Cut start [12:53:57]*** Partial cut [12:53:57]*** CUTSNS_PIN = 1 [12:53:57]*** CUTSNS_PIN = 0 [12:53:57]*** Brake cut motor [12:53:58]Read from MH i2c: 01 [12:53:58]MH_I2C_Read... [12:53:58]*** Stop cut motor [12:53:58]*** Cut end [12:53:58]Read from MH i2c: 01 07 00 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: 01 07 00 7D 55 00 00 00 00 00 FF 0F E7 [12:53:58]process_action close_receipt done [12:53:58]requested_data is exist [12:53:58]produce_requested_data [12:53:58]requested_item fm.sn is exist - process it [12:53:58]wFMCommunicate request_size=4 [12:53:58]MH_SAM_APDU [12:53:58]CAPDU: 80 11 00 00 [12:53:58]Write to MH i2c: E2 08 00 7E 55 80 11 00 00 00 00 00 00 4D [12:53:58]Write i2c OK [12:53:58]MH_I2C_Read... [12:53:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:58]Read from MH i2c: E2 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 17 00 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 17 00 7E 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A8 [12:53:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:53:58]wFMCommunicate OK [12:53:58]requested_item fd.num is exist - process it [12:53:58]SAM_PROTO_GetFieldsCounters [12:53:58]wFMCommunicate request_size=4 [12:53:58]MH_SAM_APDU [12:53:58]CAPDU: 80 13 00 00 [12:53:58]Write to MH i2c: E2 08 00 7F 55 80 13 00 00 00 00 00 00 50 [12:53:58]Write i2c OK [12:53:58]MH_I2C_Read... [12:53:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:58]Read from MH i2c: E2 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 62 00 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 62 00 7F 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F8 CF 01 00 0E 04 04 00 B2 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 BA [12:53: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F8 CF 01 00 0E 04 04 00 B2 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 [12:53:58]wFMCommunicate OK [12:53:58]SAM_PROTO_GetFieldsCounters done [12:53:58]requested_item shift.num is exist - process it [12:53:58]requested_item shift.opened is exist - process it [12:53:58]req_shift_opened [12:53:58]FM_GetShiftState [12:53:58]SAM_PROTO_GetShiftState [12:53:58]wFMCommunicate request_size=4 [12:53:58]MH_SAM_APDU [12:53:58]CAPDU: 80 13 01 00 [12:53:58]Write to MH i2c: E2 08 00 80 55 80 13 01 00 00 00 00 00 52 [12:53:58]Write i2c OK [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 [12:53:58]MH_I2C_Read... [12:53:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:58]Read from MH i2c: E2 0E 00 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 0E 00 80 55 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 80 [12:53:58]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [12:53:58]wFMCommunicate OK [12:53:58]SAM_PROTO_GetShiftState done [12:53:58]FM_GetShiftState done [12:53:58]req_shift_opened done [12:53:58]requested_item shift.open_date is exist - process it [12:53:58]req_shift_open_date [12:53:58]req_shift_open_date done [12:53:58]produce_requested_data done [12:53:58]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118776,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [12:53:58]process_action_free close_receipt [12:53:58]json_value_free [12:53:58]json_value_free done [12:53:58]process_json_proto returns [12:53:58]Send response to host [12:53:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118776,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [12:53:58]free response buf [12:53:58]execute_script done [12:53:58]execute_script returns [12:53:58]free content buf [12:53:58]Sock 7.Close socket [12:53:58]Sock 7.Thread stoped [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:22]OFD Sender: No OFD packet to send [13:03:27]OFD Sender: No OFD packet to send [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]accept exits with 9 [13:04:27]New connection [13:04:27]New thread 3067239780 created [13:04:27]Thread 3067383140 joined [13:04:27]Waiting for new connection... [13:04:27] Sock 9.Parse request [13:04:27]Sock 9.Check first char [13:04:27]Sock 9.First char is OK [13:04:27]request: POST /json_proto HTTP/1.0 [13:04:27]Method: POST [13:04:27]URL: /json_proto [13:04:27]Method is POST - this is cgi request [13:04:27]url: /json_proto [13:04:27]query_string will be loaded in cgi processing [13:04:27]execute_cgi json_proto POST (null) [13:04:27]execute_cgi path=json_proto method=POST [13:04:27]POST find Content-Length [13:04:27]Host: 172.17.45.7:8080 [13:04:27]Content-Length: 819 [13:04:27]Content-Type: application/json [13:04:27] [13:04:27]POST finish read [13:04:27]Found Content-Length = 819 [13:04:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:27]execute_script... [13:04:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:27]POST & json_proto [13:04:27]process_json_proto [13:04:27]json parsed OK: [13:04:27]protocol is kg_v1.0 [13:04:27]action value=close_receipt [13:04:27]process_action close_receipt [13:04:27]cmd_close_receipt [13:04:27]MH_GetDate [13:04:27]Write to MH i2c: F0 00 00 81 55 C5 [13:04:27]Write i2c OK [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: F0 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: F0 09 00 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: F0 09 00 81 55 00 61 93 A7 66 90 0F 3E 66 12 [13:04:27]GetLastDocTimeStamp 1722257639 [13:04:27]current date 1722258273 [13:04:27]FM_GetShiftState [13:04:27]SAM_PROTO_GetShiftState [13:04:27]wFMCommunicate request_size=4 [13:04:27]MH_SAM_APDU [13:04:27]CAPDU: 80 13 01 00 [13:04:27]Write to MH i2c: E2 08 00 82 55 80 13 01 00 00 00 00 00 54 [13:04:27]Write i2c OK [13:04:27]MH_I2C_Read... [13:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:27]Read from MH i2c: E2 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E2 0E 00 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E2 0E 00 82 55 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 82 [13:04:27]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:04:27]wFMCommunicate OK [13:04:27]SAM_PROTO_GetShiftState done [13:04:27]FM_GetShiftState done [13:04:27]opened in 1722211641 [13:04:27]opened+sec_in_day 1722298041 [13:04:27]quantity*price = 300075 [13:04:27]sum+1 = 300077 [13:04:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 153 29.07.2024 13:04 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118777 ФПД: 52463674743201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T130433&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118777&fm=52463674743201&tin=02508201610067®Number=0000000000092660&sum=300000 [13:04:28]StoreToDocumentArchive [13:04:28]shift 434 fd 118777 [13:04:28]save to /storage/0434/doc_00118777 [13:04:28]save last doc name /storage/0434/doc_00118777 to /storage/kkm_last_doc_name [13:04:28]save OK [13:04:28]Clear old archive folders... [13:04:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:04:28]tlvbuf is 01EE78E0 [13:04:28]SAM_PROTO_ClearQueue [13:04:28]wFMCommunicate request_size=4 [13:04:28]MH_SAM_APDU [13:04:28]CAPDU: 80 09 00 00 [13:04:28]Write to MH i2c: E2 08 00 8F 55 80 09 00 00 00 00 00 00 56 [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:28]Read from MH i2c: E2 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 03 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 03 00 8F 55 00 90 00 58 [13:04:28]RAPDU: 90 00 [13:04:28]wFMCommunicate OK [13:04:28]SAM_PROTO_ClearQueue done [13:04:28]KKMCreateOFDPacket [13:04:28]OFDProtocolAddRootSTLVToBuf [13:04:28]FM_MakeSignedData [13:04:28]FM_MakeSignedData [13:04:28]SAM_PROTO_SignData [13:04:28]wFMCommunicate request_size=4 [13:04:28]MH_SAM_APDU [13:04:28]CAPDU: 80 0D 01 02 [13:04:28]Write to MH i2c: E2 08 00 90 55 80 0D 01 02 00 00 00 00 5E [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:28]Read from MH i2c: E2 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 03 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 03 00 90 55 00 90 00 59 [13:04:28]RAPDU: 90 00 [13:04:28]wFMCommunicate OK [13:04:28]wFMCommunicate request_size=255 [13:04:28]MH_SAM_APDU [13:04:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 61 93 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 CF 01 00 35 04 06 00 2F B7 26 B2 [13:04:28]Write to MH i2c: E2 02 01 91 55 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 61 93 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 CF 01 00 35 04 06 00 2F B7 26 B2 00 00 F9 [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:29]Read from MH i2c: E2 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 03 00 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 03 00 91 55 00 90 00 5A [13:04:29]RAPDU: 90 00 [13:04:29]wFMCommunicate OK [13:04:29]wFMCommunicate request_size=7 [13:04:29]MH_SAM_APDU [13:04:29]CAPDU: 80 0D 02 02 02 59 A1 [13:04:29]Write to MH i2c: E2 0A 00 92 55 80 0D 02 02 02 00 59 A1 00 00 5F [13:04:29]Write i2c OK [13:04:29]MH_I2C_Read... [13:04:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:29]Read from MH i2c: E2 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 03 00 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 03 00 92 55 00 90 00 5B [13:04:29]RAPDU: 90 00 [13:04:29]wFMCommunicate OK [13:04:29]wFMCommunicate request_size=4 [13:04:29]MH_SAM_APDU [13:04:29]CAPDU: 80 0D 03 02 [13:04:29]Write to MH i2c: E2 08 00 93 55 80 0D 03 02 00 00 00 00 63 [13:04:29]Write i2c OK [13:04:29]MH_I2C_Read... [13:04:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:29]Read from MH i2c: E2 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 0B 00 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 0B 00 93 55 00 98 5A EA 0D 7E A4 2E 37 90 00 D4 [13:04:29]RAPDU: 98 5A EA 0D 7E A4 2E 37 90 00 [13:04:29]wFMCommunicate OK [13:04:29]SAM_PROTO_SignData done [13:04:29]FM_MakeSignedData done [13:04:29]CreateOFDProtocolMessage [13:04:29]wFMCommunicate request_size=4 [13:04:29]MH_SAM_APDU [13:04:29]CAPDU: 80 11 00 00 [13:04:29]Write to MH i2c: E2 08 00 94 55 80 11 00 00 00 00 00 00 63 [13:04:29]Write i2c OK [13:04:29]MH_I2C_Read... [13:04:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:29]Read from MH i2c: E2 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 17 00 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: E2 17 00 94 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BE [13:04:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:04:29]wFMCommunicate OK [13:04:29]CreateOFDProtocolMessage done [13:04:29]OFDSenderStorePacket 118777 [13:04:29]StoreOFDPacket docnum=118777 [13:04:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 11 37 04 01 75 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 61 93 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 CF 01 00 35 04 06 00 2F B7 26 B2 59 A1 98 5A EA 0D 7E A4 2E 37 [13:04:29]CheckFolder [13:04:29]dirname=/storage/ofd_packets [13:04:29]CheckFolder done [13:04:29]ProducePacketName [13:04:29]name=ofd_packets/00118777 [13:04:29]NVStorageSaveData ofd_packets/00118777 [13:04:29]File name is /storage/ofd_packets/00118777 [13:04:29]Write 298 bytes [13:04:29]NVStorageSaveData done [13:04:29]OFDSenderStorePacket done [13:04:29]KKMCreateOFDPacket done [13:04:29]NVStorageSaveData kkm_last_timestamp [13:04:29]File name is /storage/kkm_last_timestamp [13:04:29]Write 4 bytes [13:04:29]NVStorageSaveData done [13:04:29]ExternCall_PrintAddStr [13:04:29]wPrintStart [13:04:29]Write to MH i2c: 01 00 00 95 55 EA [13:04:29]Write i2c OK [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: 01 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: 01 07 00 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: 01 07 00 95 55 00 00 00 00 00 FF 0F FF [13:04:29]RasterBufferAndPrint [13:04:29]line Счет N : (1)949662 [13:04:29]line ИНН: 02508201610067 [13:04:29]line Контрольно-Кассовый Чек [13:04:29]line ПРОДАЖА [13:04:29]line ТРК (МРК, ГНК) : 44 [13:04:29]line Товар: 2710194800 [13:04:29]line ДТ-К-5 [13:04:29]line 39.380 * 76.20 [13:04:29]line = 3000.76 [13:04:29]line НДС 12% НСП 1% [13:04:29]line > о реализуемом товаре [13:04:29]line ОКРУГЛЕНИЕ: -0.76 [13:04:29]line ИТОГО: 3000.00 [13:04:29]line НСП 1% : 26.55 [13:04:29]line НДС 12% : 318.66 [13:04:29]line Наличными: 0.00 [13:04:29]line Безнал.: 3000.00 [13:04:29]line Место: АЗС № 134 "Партнер Нефть" [13:04:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:04:29]line СНО: Общий режим [13:04:29]line Чек 153 29.07.2024 13:04 [13:04:29]line Смена: 434 ФФД: 1.0 [13:04:29]line ЗНМ: 0300000044 [13:04:29]line РНМ: 0000000000092660 [13:04:29]line Версия ККМ: 001 [13:04:29]line Платежная система: O! деньги [13:04:29]line ФМ: 0000000000874939 [13:04:29]line ФД: 118777 [13:04:29]line ФПД: 52463674743201 [13:04:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T130433&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118777&fm=52463674743201&tin=02508201610067®Number=0000000000092660&sum=300000 [13:04:29]OFD Sender: Processing packet 118777 [packets to send 86, broken 85] [13:04:29]ProducePacketName [13:04:29]name=ofd_packets/00118777 [13:04:29]OFD Sender: To server: pG, [13:04:29]CommunicateWithHost lk.salyk.kg:30040 [13:04:29]ConnectInit lk.salyk.kg [13:04:29]written 0, free lines is 4095 [13:04:29]Connected sock=10 [13:04:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 11 37 04 01 75 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 61 93 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 CF 01 00 35 04 06 00 2F B7 26 B2 59 A1 98 5A EA 0D 7E A4 2E 37 [13:04:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9C 79 47 00 21 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 34 39 33 39 10 04 04 00 F9 CF 01 00 F4 03 04 00 EE 40 A7 66 B6 04 01 00 00 8A 2A 24 E8 A6 0E 6E 61 [13:04:29]CommunicateWithHost err = 0 [13:04:29]CheckOFDResponse [13:04:29]1017 (14) - 77093643461234 [13:04:29]1041 (16) - 0000000000874939 [13:04:29]1040 (4) - 118777 [13:04:29]1012 (4) - 29.07.2024 07:12 [13:04:29]1206 (1) - 0 [13:04:29]OFD Sender: Remove packet 118777 [13:04:29]ProducePacketName [13:04:29]name=ofd_packets/00118777 [13:04:29]NVStorageDeleteData [13:04:29]Write to MH i2c: 01 00 00 BF 55 14 [13:04:29]Write i2c OK [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: 01 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: 01 07 00 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: 01 07 00 BF 55 00 00 00 00 00 ED 0C 14 [13:04:29]RasterBufferAndPrint [13:04:29]line [13:04:29]line [13:04:29]line [13:04:29]line [13:04:29]line [13:04:29]written 0, free lines is 3316 [13:04:30]MH_Cut [13:04:30]Write to MH i2c: D1 01 00 C6 55 01 ED [13:04:30]Write i2c OK [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: D1 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: D1 01 00 [13:04:30]MH_I2C_Read... [13:04:30]Read from MH i2c: D1 01 00 C6 55 00 EC [13:04:30]Write to MH i2c: 01 00 00 C7 55 1C [13:04:30]Write i2c OK [13:04:30]MH_I2C_Read... [13:04:30]OFD Sender: No OFD packet to send [13:04:30]*** Cut start [13:04:30]*** Partial cut [13:04:30]*** CUTSNS_PIN = 1 [13:04:30]*** CUTSNS_PIN = 0 [13:04:30]*** Brake cut motor [13:04:31]Read from MH i2c: 01 [13:04:31]MH_I2C_Read... [13:04:31]*** Stop cut motor [13:04:31]*** Cut end [13:04:31]Read from MH i2c: 01 07 00 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: 01 07 00 C7 55 00 00 00 00 00 FF 0F 31 [13:04:31]process_action close_receipt done [13:04:31]requested_data is exist [13:04:31]produce_requested_data [13:04:31]requested_item fm.sn is exist - process it [13:04:31]wFMCommunicate request_size=4 [13:04:31]MH_SAM_APDU [13:04:31]CAPDU: 80 11 00 00 [13:04:31]Write to MH i2c: E2 08 00 C8 55 80 11 00 00 00 00 00 00 97 [13:04:31]Write i2c OK [13:04:31]MH_I2C_Read... [13:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:31]Read from MH i2c: E2 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 17 00 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 17 00 C8 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F2 [13:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:04:31]wFMCommunicate OK [13:04:31]requested_item fd.num is exist - process it [13:04:31]SAM_PROTO_GetFieldsCounters [13:04:31]wFMCommunicate request_size=4 [13:04:31]MH_SAM_APDU [13:04:31]CAPDU: 80 13 00 00 [13:04:31]Write to MH i2c: E2 08 00 C9 55 80 13 00 00 00 00 00 00 9A [13:04:31]Write i2c OK [13:04:31]MH_I2C_Read... [13:04:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:31]Read from MH i2c: E2 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 62 00 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 62 00 C9 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F9 CF 01 00 0E 04 04 00 B2 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 08 [13:04: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F9 CF 01 00 0E 04 04 00 B2 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 [13:04:31]wFMCommunicate OK [13:04:31]SAM_PROTO_GetFieldsCounters done [13:04:31]requested_item shift.num is exist - process it [13:04:31]requested_item shift.opened is exist - process it [13:04:31]req_shift_opened [13:04:31]FM_GetShiftState [13:04:31]SAM_PROTO_GetShiftState [13:04:31]wFMCommunicate request_size=4 [13:04:31]MH_SAM_APDU [13:04:31]CAPDU: 80 13 01 00 [13:04:31]Write to MH i2c: E2 08 00 CA 55 80 13 01 00 00 00 00 00 9C [13:04:31]Write i2c OK [13:04:31]MH_I2C_Read... [13:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:31]Read from MH i2c: E2 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 0E 00 [13:04:31]MH_I2C_Read... [13:04:31]Read from MH i2c: E2 0E 00 CA 55 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 CA [13:04:31]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:04:31]wFMCommunicate OK [13:04:31]SAM_PROTO_GetShiftState done [13:04:31]FM_GetShiftState done [13:04:31]req_shift_opened done [13:04:31]requested_item shift.open_date is exist - process it [13:04:31]req_shift_open_date [13:04:31]req_shift_open_date done [13:04:31]produce_requested_data done [13:04:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118777,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [13:04:31]process_action_free close_receipt [13:04:31]json_value_free [13:04:31]json_value_free done [13:04:31]process_json_proto returns [13:04:31]Send response to host [13:04:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118777,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [13:04:31]free response buf [13:04:31]execute_script done [13:04:31]execute_script returns [13:04:31]free content buf [13:04:31]Sock 9.Close socket [13:04:31]Sock 9.Thread stoped [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:44]accept exits with 7 [13:05:44]New connection [13:05:44]New thread 3067383140 created [13:05:44]Thread 3067239780 joined [13:05:44]Waiting for new connection... [13:05:44] Sock 7.Parse request [13:05:44]Sock 7.Check first char [13:05:44]Sock 7.First char is OK [13:05:44]request: POST /json_proto HTTP/1.0 [13:05:44]Method: POST [13:05:44]URL: /json_proto [13:05:44]Method is POST - this is cgi request [13:05:44]url: /json_proto [13:05:44]query_string will be loaded in cgi processing [13:05:44]execute_cgi json_proto POST (null) [13:05:44]execute_cgi path=json_proto method=POST [13:05:44]POST find Content-Length [13:05:44]Host: 172.17.45.7:8080 [13:05:44]Content-Length: 1196 [13:05:44]Content-Type: application/json [13:05:44] [13:05:44]POST finish read [13:05:44]Found Content-Length = 1196 [13:05:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949663\u000A29.07.2024 13:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 678.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3839231\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:44]execute_script... [13:05:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949663\u000A29.07.2024 13:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 678.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3839231\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:44]POST & json_proto [13:05:44]process_json_proto [13:05:44]json parsed OK: [13:05:44]protocol is kg_v1.0 [13:05:44]action value=print_text [13:05:44]process_action print_text [13:05:44]cmd_print_text [13:05:44]ExternCall_PrintAddStr [13:05:44]wPrintStart [13:05:44]Write to MH i2c: 01 00 00 CB 55 20 [13:05:44]Write i2c OK [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: 01 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: 01 07 00 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: 01 07 00 CB 55 00 00 00 00 00 FF 0F 35 [13:05:44]RasterBufferAndPrint [13:05:44]line *****ТОВАРНЫЙ ЧЕК***** [13:05:44]line АЗС-134 [13:05:44]line Партнер нефть [13:05:44]line 02508201610067 [13:05:44]line Кассир : Казаков Ч. [13:05:44]line Счет N : (1)949663 [13:05:44]line 29.07.2024 13:03 [13:05:44]line ПРОДАЖА [13:05:44]line ТРК (МРК, ГНК): 61 [13:05:44]line Вид ГСМ : 2710124130 [13:05:44]line Аи-92-К-4 [13:05:44]line 10.000 x 67.80 [13:05:44]line ИТОГ: 678.00 [13:05:44]line Тип оплаты: Талоны: Топливные Талоны [13:05:44]line 3839231 [13:05:44]line ______________________ [13:05:44]line (подпись) [13:05:44]written 0, free lines is 4095 [13:05:44]Write to MH i2c: 01 00 00 DF 55 34 [13:05:44]Write i2c OK [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: 01 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: 01 07 00 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: 01 07 00 DF 55 00 00 00 00 00 11 0E 5A [13:05:44]RasterBufferAndPrint [13:05:44]line [13:05:44]line [13:05:44]line [13:05:44]line [13:05:44]line [13:05:44]written 0, free lines is 3603 [13:05:44]MH_Cut [13:05:44]Write to MH i2c: D1 01 00 E6 55 01 0D [13:05:44]Write i2c OK [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: D1 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: D1 01 00 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: D1 01 00 E6 55 00 0C [13:05:44]Write to MH i2c: 01 00 00 E7 55 3C [13:05:44]Write i2c OK [13:05:44]MH_I2C_Read... [13:05:45]*** Cut start [13:05:45]*** Partial cut [13:05:45]*** CUTSNS_PIN = 1 [13:05:45]*** CUTSNS_PIN = 0 [13:05:45]OFD Sender: No OFD packet to send [13:05:45]*** Brake cut motor [13:05:45]Read from MH i2c: 01 [13:05:45]MH_I2C_Read... [13:05:45]*** Stop cut motor [13:05:45]*** Cut end [13:05:45]Read from MH i2c: 01 07 00 [13:05:45]MH_I2C_Read... [13:05:45]Read from MH i2c: 01 07 00 E7 55 00 00 00 00 00 FF 0F 51 [13:05:45]process_action print_text done [13:05:45]requested_data is exist [13:05:45]produce_requested_data [13:05:45]requested_item fm.sn is exist - process it [13:05:45]wFMCommunicate request_size=4 [13:05:45]MH_SAM_APDU [13:05:45]CAPDU: 80 11 00 00 [13:05:45]Write to MH i2c: E2 08 00 E8 55 80 11 00 00 00 00 00 00 B7 [13:05:45]Write i2c OK [13:05:45]MH_I2C_Read... [13:05:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:45]Read from MH i2c: E2 [13:05:45]MH_I2C_Read... [13:05:45]Read from MH i2c: E2 17 00 [13:05:45]MH_I2C_Read... [13:05:45]Read from MH i2c: E2 17 00 E8 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 12 [13:05:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:05:45]wFMCommunicate OK [13:05:45]requested_item fd.num is exist - process it [13:05:45]SAM_PROTO_GetFieldsCounters [13:05:45]wFMCommunicate request_size=4 [13:05:45]MH_SAM_APDU [13:05:45]CAPDU: 80 13 00 00 [13:05:45]Write to MH i2c: E2 08 00 E9 55 80 13 00 00 00 00 00 00 BA [13:05:45]Write i2c OK [13:05:45]MH_I2C_Read... [13:05:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:46]Read from MH i2c: E2 [13:05:46]MH_I2C_Read... [13:05:46]Read from MH i2c: E2 62 00 [13:05:46]MH_I2C_Read... [13:05:46]Read from MH i2c: E2 62 00 E9 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F9 CF 01 00 0E 04 04 00 B2 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 28 [13:05: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F9 CF 01 00 0E 04 04 00 B2 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 [13:05:46]wFMCommunicate OK [13:05:46]SAM_PROTO_GetFieldsCounters done [13:05:46]requested_item shift.num is exist - process it [13:05:46]requested_item shift.opened is exist - process it [13:05:46]req_shift_opened [13:05:46]FM_GetShiftState [13:05:46]SAM_PROTO_GetShiftState [13:05:46]wFMCommunicate request_size=4 [13:05:46]MH_SAM_APDU [13:05:46]CAPDU: 80 13 01 00 [13:05:46]Write to MH i2c: E2 08 00 EA 55 80 13 01 00 00 00 00 00 BC [13:05:46]Write i2c OK [13:05:46]MH_I2C_Read... [13:05:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:46]Read from MH i2c: E2 [13:05:46]MH_I2C_Read... [13:05:46]Read from MH i2c: E2 0E 00 [13:05:46]MH_I2C_Read... [13:05:46]Read from MH i2c: E2 0E 00 EA 55 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 EA [13:05:46]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:05:46]wFMCommunicate OK [13:05:46]SAM_PROTO_GetShiftState done [13:05:46]FM_GetShiftState done [13:05:46]req_shift_opened done [13:05:46]requested_item shift.open_date is exist - process it [13:05:46]req_shift_open_date [13:05:46]req_shift_open_date done [13:05:46]produce_requested_data done [13:05:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118777,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [13:05:46]process_action_free print_text [13:05:46]json_value_free [13:05:46]json_value_free done [13:05:46]process_json_proto returns [13:05:46]Send response to host [13:05:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118777,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [13:05:46]free response buf [13:05:46]execute_script done [13:05:46]execute_script returns [13:05:46]free content buf [13:05:46]Sock 7.Close socket [13:05:46]Sock 7.Thread stoped [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]accept exits with 9 [13:06:50]New connection [13:06:50]New thread 3067239780 created [13:06:50]Thread 3067383140 joined [13:06:50]Waiting for new connection... [13:06:50] Sock 9.Parse request [13:06:50]Sock 9.Check first char [13:06:50]Sock 9.First char is OK [13:06:50]request: POST /json_proto HTTP/1.0 [13:06:50]Method: POST [13:06:50]URL: /json_proto [13:06:50]Method is POST - this is cgi request [13:06:50]url: /json_proto [13:06:50]query_string will be loaded in cgi processing [13:06:50]execute_cgi json_proto POST (null) [13:06:50]execute_cgi path=json_proto method=POST [13:06:50]POST find Content-Length [13:06:50]Host: 172.17.45.7:8080 [13:06:50]Content-Length: 677 [13:06:50]Content-Type: application/json [13:06:50] [13:06:50]POST finish read [13:06:50]Found Content-Length = 677 [13:06:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.750, "sum" : 322.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 322.00, "total" : 322.00, "payments": [ { "type": 0, "sum" : 322.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:50]execute_script... [13:06:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.750, "sum" : 322.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 322.00, "total" : 322.00, "payments": [ { "type": 0, "sum" : 322.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:50]POST & json_proto [13:06:50]process_json_proto [13:06:50]json parsed OK: [13:06:50]protocol is kg_v1.0 [13:06:50]action value=close_receipt [13:06:50]process_action close_receipt [13:06:50]cmd_close_receipt [13:06:50]MH_GetDate [13:06:50]Write to MH i2c: F0 00 00 EB 55 2F [13:06:50]Write i2c OK [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: F0 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: F0 09 00 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: F0 09 00 EB 55 00 EF 93 A7 66 90 0F 3E 66 0A [13:06:50]GetLastDocTimeStamp 1722258273 [13:06:50]current date 1722258415 [13:06:50]FM_GetShiftState [13:06:50]SAM_PROTO_GetShiftState [13:06:50]wFMCommunicate request_size=4 [13:06:50]MH_SAM_APDU [13:06:50]CAPDU: 80 13 01 00 [13:06:50]Write to MH i2c: E2 08 00 EC 55 80 13 01 00 00 00 00 00 BE [13:06:50]Write i2c OK [13:06:50]MH_I2C_Read... [13:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:50]Read from MH i2c: E2 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 0E 00 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 0E 00 EC 55 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 EC [13:06:50]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:06:50]wFMCommunicate OK [13:06:50]SAM_PROTO_GetShiftState done [13:06:50]FM_GetShiftState done [13:06:50]opened in 1722211641 [13:06:50]opened+sec_in_day 1722298041 [13:06:50]quantity*price = 32205 [13:06:50]sum+1 = 32206 [13:06:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 322.00 Внесено: 322.00 СДАЧА: 0.00 НСП 1% : 2.85 НДС 12% : 34.20 Наличными: 322.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 154 29.07.2024 13:06 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118778 ФПД: 253178617392998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T130656&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118778&fm=253178617392998&tin=02508201610067®Number=0000000000092660&sum=32200 [13:06:51]StoreToDocumentArchive [13:06:51]shift 434 fd 118778 [13:06:51]save to /storage/0434/doc_00118778 [13:06:51]save last doc name /storage/0434/doc_00118778 to /storage/kkm_last_doc_name [13:06:51]save OK [13:06:51]Clear old archive folders... [13:06:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:06:51]tlvbuf is 01E693F0 [13:06:51]SAM_PROTO_ClearQueue [13:06:51]wFMCommunicate request_size=4 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 09 00 00 [13:06:51]Write to MH i2c: E2 08 00 F9 55 80 09 00 00 00 00 00 00 C0 [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 03 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 03 00 F9 55 00 90 00 C2 [13:06:51]RAPDU: 90 00 [13:06:51]wFMCommunicate OK [13:06:51]SAM_PROTO_ClearQueue done [13:06:51]KKMCreateOFDPacket [13:06:51]OFDProtocolAddRootSTLVToBuf [13:06:51]FM_MakeSignedData [13:06:51]FM_MakeSignedData [13:06:51]SAM_PROTO_SignData [13:06:51]wFMCommunicate request_size=4 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 0D 01 02 [13:06:51]Write to MH i2c: E2 08 00 FA 55 80 0D 01 02 00 00 00 00 C8 [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 03 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 03 00 FA 55 00 90 00 C3 [13:06:51]RAPDU: 90 00 [13:06:51]wFMCommunicate OK [13:06:51]wFMCommunicate request_size=255 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 12 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CD 7D 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 5C 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 9A 00 00 00 F4 03 04 00 F0 93 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA CF 01 00 35 04 06 00 E6 [13:06:51]Write to MH i2c: E2 02 01 FB 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 8E 12 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CD 7D 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 5C 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 9A 00 00 00 F4 03 04 00 F0 93 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA CF 01 00 35 04 06 00 E6 00 00 F5 [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 03 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 03 00 FB 55 00 90 00 C4 [13:06:51]RAPDU: 90 00 [13:06:51]wFMCommunicate OK [13:06:51]wFMCommunicate request_size=10 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 0D 02 02 05 43 BD 8D EF 66 [13:06:51]Write to MH i2c: E2 0D 00 FC 55 80 0D 02 02 05 00 43 BD 8D EF 66 00 00 B7 [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 03 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 03 00 FC 55 00 90 00 C5 [13:06:51]RAPDU: 90 00 [13:06:51]wFMCommunicate OK [13:06:51]wFMCommunicate request_size=4 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 0D 03 02 [13:06:51]Write to MH i2c: E2 08 00 FD 55 80 0D 03 02 00 00 00 00 CD [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 0B 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 0B 00 FD 55 00 DC 33 63 57 95 4B 95 26 90 00 32 [13:06:51]RAPDU: DC 33 63 57 95 4B 95 26 90 00 [13:06:51]wFMCommunicate OK [13:06:51]SAM_PROTO_SignData done [13:06:51]FM_MakeSignedData done [13:06:51]CreateOFDProtocolMessage [13:06:51]wFMCommunicate request_size=4 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 11 00 00 [13:06:51]Write to MH i2c: E2 08 00 FE 55 80 11 00 00 00 00 00 00 CD [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 17 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 17 00 FE 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 28 [13:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:06:51]wFMCommunicate OK [13:06:51]CreateOFDProtocolMessage done [13:06:51]OFDSenderStorePacket 118778 [13:06:51]StoreOFDPacket docnum=118778 [13:06:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9D 55 07 01 52 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 12 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CD 7D 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 5C 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 9A 00 00 00 F4 03 04 00 F0 93 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA CF 01 00 35 04 06 00 E6 43 BD 8D EF 66 DC 33 63 57 95 4B 95 26 [13:06:51]CheckFolder [13:06:51]dirname=/storage/ofd_packets [13:06:51]CheckFolder done [13:06:51]ProducePacketName [13:06:51]name=ofd_packets/00118778 [13:06:51]NVStorageSaveData ofd_packets/00118778 [13:06:51]File name is /storage/ofd_packets/00118778 [13:06:51]Write 301 bytes [13:06:51]NVStorageSaveData done [13:06:51]OFDSenderStorePacket done [13:06:51]KKMCreateOFDPacket done [13:06:51]NVStorageSaveData kkm_last_timestamp [13:06:51]File name is /storage/kkm_last_timestamp [13:06:51]Write 4 bytes [13:06:51]NVStorageSaveData done [13:06:51]ExternCall_PrintAddStr [13:06:51]wPrintStart [13:06:51]Write to MH i2c: 01 00 00 FF 55 54 [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: 01 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: 01 07 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: 01 07 00 FF 55 00 00 00 00 00 FF 0F 69 [13:06:51]RasterBufferAndPrint [13:06:51]line Счет N : (1)949664 [13:06:51]line ИНН: 02508201610067 [13:06:51]line Контрольно-Кассовый Чек [13:06:51]line ПРОДАЖА [13:06:51]line ТРК (МРК, ГНК) : 61 [13:06:51]line Товар: 2710124130 [13:06:51]line Аи-92-К-4 [13:06:51]line 4.750 * 67.80 [13:06:51]line = 322.05 [13:06:51]line НДС 12% НСП 1% [13:06:51]line > о реализуемом товаре [13:06:51]line ОКРУГЛЕНИЕ: -0.05 [13:06:51]line ИТОГО: 322.00 [13:06:51]line Внесено: 322.00 [13:06:51]line СДАЧА: 0.00 [13:06:51]line НСП 1% : 2.85 [13:06:51]line НДС 12% : 34.20 [13:06:51]line Наличными: 322.00 [13:06:51]line Безнал.: 0.00 [13:06:51]line Место: АЗС № 134 "Партнер Нефть" [13:06:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:06:51]line СНО: Общий режим [13:06:51]line Чек 154 29.07.2024 13:06 [13:06:51]line Смена: 434 ФФД: 1.0 [13:06:51]line ЗНМ: 0300000044 [13:06:51]line РНМ: 0000000000092660 [13:06:51]line Версия ККМ: 001 [13:06:51]line ФМ: 0000000000874939 [13:06:51]line ФД: 118778 [13:06:51]line ФПД: 253178617392998 [13:06:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T130656&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118778&fm=253178617392998&tin=02508201610067®Number=0000000000092660&sum=32200 [13:06:52]OFD Sender: Processing packet 118778 [packets to send 86, broken 85] [13:06:52]ProducePacketName [13:06:52]name=ofd_packets/00118778 [13:06:52]OFD Sender: To server: pG, [13:06:52]CommunicateWithHost lk.salyk.kg:30040 [13:06:52]ConnectInit lk.salyk.kg [13:06:52]written 0, free lines is 4095 [13:06:52]Connected sock=10 [13:06:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9D 55 07 01 52 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 12 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CD 7D 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 5C 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 9A 00 00 00 F4 03 04 00 F0 93 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA CF 01 00 35 04 06 00 E6 43 BD 8D EF 66 DC 33 63 57 95 4B 95 26 [13:06:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 49 3A 47 00 06 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA CF 01 00 F4 03 04 00 7D 41 A7 66 B6 04 01 00 00 06 92 E9 5F B9 BC 1B 1A [13:06:52]CommunicateWithHost err = 0 [13:06:52]CheckOFDResponse [13:06:52]1017 (14) - 77093643461234 [13:06:52]1041 (16) - 0000000000874939 [13:06:52]1040 (4) - 118778 [13:06:52]1012 (4) - 29.07.2024 07:15 [13:06:52]1206 (1) - 0 [13:06:52]OFD Sender: Remove packet 118778 [13:06:52]ProducePacketName [13:06:52]name=ofd_packets/00118778 [13:06:52]NVStorageDeleteData [13:06:52]Write to MH i2c: 01 00 00 29 56 7F [13:06:52]Write i2c OK [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: 01 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: 01 07 00 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: 01 07 00 29 56 00 00 00 00 00 E3 0C 75 [13:06:52]RasterBufferAndPrint [13:06:52]line [13:06:52]line [13:06:52]line [13:06:52]line [13:06:52]line [13:06:52]written 0, free lines is 3305 [13:06:52]MH_Cut [13:06:52]Write to MH i2c: D1 01 00 30 56 01 58 [13:06:52]Write i2c OK [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: D1 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: D1 01 00 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: D1 01 00 30 56 00 57 [13:06:52]Write to MH i2c: 01 00 00 31 56 87 [13:06:52]Write i2c OK [13:06:52]MH_I2C_Read... [13:06:53]OFD Sender: No OFD packet to send [13:06:53]*** Cut start [13:06:53]*** Partial cut [13:06:53]*** CUTSNS_PIN = 1 [13:06:53]*** CUTSNS_PIN = 0 [13:06:53]*** Brake cut motor [13:06:54]Read from MH i2c: 01 [13:06:54]MH_I2C_Read... [13:06:54]*** Stop cut motor [13:06:54]*** Cut end [13:06:54]Read from MH i2c: 01 07 00 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: 01 07 00 31 56 00 00 00 00 00 FF 0F 9C [13:06:54]process_action close_receipt done [13:06:54]requested_data is exist [13:06:54]produce_requested_data [13:06:54]requested_item fm.sn is exist - process it [13:06:54]wFMCommunicate request_size=4 [13:06:54]MH_SAM_APDU [13:06:54]CAPDU: 80 11 00 00 [13:06:54]Write to MH i2c: E2 08 00 32 56 80 11 00 00 00 00 00 00 02 [13:06:54]Write i2c OK [13:06:54]MH_I2C_Read... [13:06:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:54]Read from MH i2c: E2 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: E2 17 00 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: E2 17 00 32 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5D [13:06:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:06:54]wFMCommunicate OK [13:06:54]requested_item fd.num is exist - process it [13:06:54]SAM_PROTO_GetFieldsCounters [13:06:54]wFMCommunicate request_size=4 [13:06:54]MH_SAM_APDU [13:06:54]CAPDU: 80 13 00 00 [13:06:54]Write to MH i2c: E2 08 00 33 56 80 13 00 00 00 00 00 00 05 [13:06:54]Write i2c OK [13:06:54]MH_I2C_Read... [13:06:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:54]Read from MH i2c: E2 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: E2 62 00 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: E2 62 00 33 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FA CF 01 00 0E 04 04 00 B2 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 77 [13:06: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FA CF 01 00 0E 04 04 00 B2 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 [13:06:54]wFMCommunicate OK [13:06:54]SAM_PROTO_GetFieldsCounters done [13:06:54]requested_item shift.num is exist - process it [13:06:54]requested_item shift.opened is exist - process it [13:06:54]req_shift_opened [13:06:54]FM_GetShiftState [13:06:54]SAM_PROTO_GetShiftState [13:06:54]wFMCommunicate request_size=4 [13:06:54]MH_SAM_APDU [13:06:54]CAPDU: 80 13 01 00 [13:06:54]Write to MH i2c: E2 08 00 34 56 80 13 01 00 00 00 00 00 07 [13:06:54]Write i2c OK [13:06:54]MH_I2C_Read... [13:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:54]Read from MH i2c: E2 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: E2 0E 00 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: E2 0E 00 34 56 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 35 [13:06:54]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:06:54]wFMCommunicate OK [13:06:54]SAM_PROTO_GetShiftState done [13:06:54]FM_GetShiftState done [13:06:54]req_shift_opened done [13:06:54]requested_item shift.open_date is exist - process it [13:06:54]req_shift_open_date [13:06:54]req_shift_open_date done [13:06:54]produce_requested_data done [13:06:54]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118778,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [13:06:54]process_action_free close_receipt [13:06:54]json_value_free [13:06:54]json_value_free done [13:06:54]process_json_proto returns [13:06:54]Send response to host [13:06:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118778,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [13:06:54]free response buf [13:06:54]execute_script done [13:06:54]execute_script returns [13:06:54]free content buf [13:06:54]Sock 9.Close socket [13:06:54]Sock 9.Thread stoped [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]accept exits with 7 [13:07:23]New connection [13:07:23]New thread 3067383140 created [13:07:23]Thread 3067239780 joined [13:07:23]Waiting for new connection... [13:07:23] Sock 7.Parse request [13:07:23]Sock 7.Check first char [13:07:23]Sock 7.First char is OK [13:07:23]request: POST /json_proto HTTP/1.0 [13:07:23]Method: POST [13:07:23]URL: /json_proto [13:07:23]Method is POST - this is cgi request [13:07:23]url: /json_proto [13:07:23]query_string will be loaded in cgi processing [13:07:23]execute_cgi json_proto POST (null) [13:07:23]execute_cgi path=json_proto method=POST [13:07:23]POST find Content-Length [13:07:23]Host: 172.17.45.7:8080 [13:07:23]Content-Length: 679 [13:07:23]Content-Type: application/json [13:07:23] [13:07:23]POST finish read [13:07:23]Found Content-Length = 679 [13:07:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:23]execute_script... [13:07:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:23]POST & json_proto [13:07:23]process_json_proto [13:07:23]json parsed OK: [13:07:23]protocol is kg_v1.0 [13:07:23]action value=close_receipt [13:07:23]process_action close_receipt [13:07:23]cmd_close_receipt [13:07:23]MH_GetDate [13:07:23]Write to MH i2c: F0 00 00 35 56 7A [13:07:23]Write i2c OK [13:07:23]MH_I2C_Read... [13:07:23]Read from MH i2c: F0 [13:07:23]MH_I2C_Read... [13:07:23]Read from MH i2c: F0 09 00 [13:07:23]MH_I2C_Read... [13:07:23]Read from MH i2c: F0 09 00 35 56 00 10 94 A7 66 90 0F 3E 66 77 [13:07:23]GetLastDocTimeStamp 1722258416 [13:07:23]current date 1722258448 [13:07:23]FM_GetShiftState [13:07:23]SAM_PROTO_GetShiftState [13:07:23]wFMCommunicate request_size=4 [13:07:23]MH_SAM_APDU [13:07:23]CAPDU: 80 13 01 00 [13:07:23]Write to MH i2c: E2 08 00 36 56 80 13 01 00 00 00 00 00 09 [13:07:23]Write i2c OK [13:07:23]MH_I2C_Read... [13:07:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:23]Read from MH i2c: E2 [13:07:23]MH_I2C_Read... [13:07:23]Read from MH i2c: E2 0E 00 [13:07:23]MH_I2C_Read... [13:07:23]Read from MH i2c: E2 0E 00 36 56 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 37 [13:07:23]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:07:23]wFMCommunicate OK [13:07:23]SAM_PROTO_GetShiftState done [13:07:23]FM_GetShiftState done [13:07:23]opened in 1722211641 [13:07:23]opened+sec_in_day 1722298041 [13:07:23]quantity*price = 150037 [13:07:23]sum+1 = 150039 [13:07:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 155 29.07.2024 13:07 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118779 ФПД: 516778861116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T130728&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118779&fm=516778861116&tin=02508201610067®Number=0000000000092660&sum=150000 [13:07:24]StoreToDocumentArchive [13:07:24]shift 434 fd 118779 [13:07:24]save to /storage/0434/doc_00118779 [13:07:24]save last doc name /storage/0434/doc_00118779 to /storage/kkm_last_doc_name [13:07:24]save OK [13:07:24]Clear old archive folders... [13:07:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:07:24]tlvbuf is 01E97D60 [13:07:24]SAM_PROTO_ClearQueue [13:07:24]wFMCommunicate request_size=4 [13:07:24]MH_SAM_APDU [13:07:24]CAPDU: 80 09 00 00 [13:07:24]Write to MH i2c: E2 08 00 43 56 80 09 00 00 00 00 00 00 0B [13:07:24]Write i2c OK [13:07:24]MH_I2C_Read... [13:07:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:24]Read from MH i2c: E2 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 03 00 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 03 00 43 56 00 90 00 0D [13:07:24]RAPDU: 90 00 [13:07:24]wFMCommunicate OK [13:07:24]SAM_PROTO_ClearQueue done [13:07:24]KKMCreateOFDPacket [13:07:24]OFDProtocolAddRootSTLVToBuf [13:07:24]FM_MakeSignedData [13:07:24]FM_MakeSignedData [13:07:24]SAM_PROTO_SignData [13:07:24]wFMCommunicate request_size=4 [13:07:24]MH_SAM_APDU [13:07:24]CAPDU: 80 0D 01 02 [13:07:24]Write to MH i2c: E2 08 00 44 56 80 0D 01 02 00 00 00 00 13 [13:07:24]Write i2c OK [13:07:24]MH_I2C_Read... [13:07:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:24]Read from MH i2c: E2 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 03 00 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 03 00 44 56 00 90 00 0E [13:07:24]RAPDU: 90 00 [13:07:24]wFMCommunicate OK [13:07:24]wFMCommunicate request_size=255 [13:07:24]MH_SAM_APDU [13:07:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 10 94 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FB CF 01 00 35 04 06 00 00 78 52 6B [13:07:24]Write to MH i2c: E2 02 01 45 56 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 10 94 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FB CF 01 00 35 04 06 00 00 78 52 6B 00 00 19 [13:07:24]Write i2c OK [13:07:24]MH_I2C_Read... [13:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:24]Read from MH i2c: E2 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 03 00 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 03 00 45 56 00 90 00 0F [13:07:24]RAPDU: 90 00 [13:07:24]wFMCommunicate OK [13:07:24]wFMCommunicate request_size=7 [13:07:24]MH_SAM_APDU [13:07:24]CAPDU: 80 0D 02 02 02 A2 3C [13:07:24]Write to MH i2c: E2 0A 00 46 56 80 0D 02 02 02 00 A2 3C 00 00 F8 [13:07:24]Write i2c OK [13:07:24]MH_I2C_Read... [13:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:24]Read from MH i2c: E2 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 03 00 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 03 00 46 56 00 90 00 10 [13:07:24]RAPDU: 90 00 [13:07:24]wFMCommunicate OK [13:07:24]wFMCommunicate request_size=4 [13:07:24]MH_SAM_APDU [13:07:24]CAPDU: 80 0D 03 02 [13:07:24]Write to MH i2c: E2 08 00 47 56 80 0D 03 02 00 00 00 00 18 [13:07:24]Write i2c OK [13:07:24]MH_I2C_Read... [13:07:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:24]Read from MH i2c: E2 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 0B 00 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 0B 00 47 56 00 D1 81 D7 2D CE 8E 4F C3 90 00 DD [13:07:24]RAPDU: D1 81 D7 2D CE 8E 4F C3 90 00 [13:07:24]wFMCommunicate OK [13:07:24]SAM_PROTO_SignData done [13:07:24]FM_MakeSignedData done [13:07:24]CreateOFDProtocolMessage [13:07:24]wFMCommunicate request_size=4 [13:07:24]MH_SAM_APDU [13:07:24]CAPDU: 80 11 00 00 [13:07:24]Write to MH i2c: E2 08 00 48 56 80 11 00 00 00 00 00 00 18 [13:07:24]Write i2c OK [13:07:24]MH_I2C_Read... [13:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:24]Read from MH i2c: E2 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 17 00 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 17 00 48 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 73 [13:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:07:24]wFMCommunicate OK [13:07:24]CreateOFDProtocolMessage done [13:07:24]OFDSenderStorePacket 118779 [13:07:24]StoreOFDPacket docnum=118779 [13:07:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 00 9B 04 01 CD D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 10 94 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FB CF 01 00 35 04 06 00 00 78 52 6B A2 3C D1 81 D7 2D CE 8E 4F C3 [13:07:24]CheckFolder [13:07:24]dirname=/storage/ofd_packets [13:07:24]CheckFolder done [13:07:24]ProducePacketName [13:07:24]name=ofd_packets/00118779 [13:07:24]NVStorageSaveData ofd_packets/00118779 [13:07:24]File name is /storage/ofd_packets/00118779 [13:07:24]Write 298 bytes [13:07:24]NVStorageSaveData done [13:07:24]OFDSenderStorePacket done [13:07:24]KKMCreateOFDPacket done [13:07:24]NVStorageSaveData kkm_last_timestamp [13:07:24]File name is /storage/kkm_last_timestamp [13:07:24]Write 4 bytes [13:07:24]NVStorageSaveData done [13:07:24]ExternCall_PrintAddStr [13:07:24]wPrintStart [13:07:24]Write to MH i2c: 01 00 00 49 56 9F [13:07:24]Write i2c OK [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: 01 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: 01 07 00 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: 01 07 00 49 56 00 00 00 00 00 FF 0F B4 [13:07:24]RasterBufferAndPrint [13:07:24]line Счет N : (1)949665 [13:07:24]line ИНН: 02508201610067 [13:07:24]line Контрольно-Кассовый Чек [13:07:24]line ПРОДАЖА [13:07:24]line ТРК (МРК, ГНК) : 34 [13:07:24]line Товар: 2710194800 [13:07:24]line ДТ-К-5 [13:07:24]line 19.690 * 76.20 [13:07:24]line = 1500.38 [13:07:24]line НДС 12% НСП 1% [13:07:24]line > о реализуемом товаре [13:07:24]line ОКРУГЛЕНИЕ: -0.38 [13:07:24]line ИТОГО: 1500.00 [13:07:24]line Внесено: 1500.00 [13:07:24]line СДАЧА: 0.00 [13:07:24]line НСП 1% : 13.28 [13:07:24]line НДС 12% : 159.33 [13:07:24]line Наличными: 1500.00 [13:07:24]line Безнал.: 0.00 [13:07:24]line Место: АЗС № 134 "Партнер Нефть" [13:07:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:07:24]line СНО: Общий режим [13:07:24]line Чек 155 29.07.2024 13:07 [13:07:24]line Смена: 434 ФФД: 1.0 [13:07:24]line ЗНМ: 0300000044 [13:07:24]line РНМ: 0000000000092660 [13:07:24]line Версия ККМ: 001 [13:07:24]line ФМ: 0000000000874939 [13:07:24]line ФД: 118779 [13:07:24]line ФПД: 516778861116 [13:07:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T130728&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118779&fm=516778861116&tin=02508201610067®Number=0000000000092660&sum=150000 [13:07:25]OFD Sender: Processing packet 118779 [packets to send 86, broken 85] [13:07:25]ProducePacketName [13:07:25]name=ofd_packets/00118779 [13:07:25]OFD Sender: To server: pG, [13:07:25]CommunicateWithHost lk.salyk.kg:30040 [13:07:25]ConnectInit lk.salyk.kg [13:07:25]written 0, free lines is 4095 [13:07:25]Connected sock=10 [13:07:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 00 9B 04 01 CD D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 10 94 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FB CF 01 00 35 04 06 00 00 78 52 6B A2 3C D1 81 D7 2D CE 8E 4F C3 [13:07:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8B 9E 47 00 DB 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 34 39 33 39 10 04 04 00 FB CF 01 00 F4 03 04 00 9E 41 A7 66 B6 04 01 00 00 04 91 C1 DE CA 66 1F 49 [13:07:25]CommunicateWithHost err = 0 [13:07:25]CheckOFDResponse [13:07:25]1017 (14) - 77093643461234 [13:07:25]1041 (16) - 0000000000874939 [13:07:25]1040 (4) - 118779 [13:07:25]1012 (4) - 29.07.2024 07:15 [13:07:25]1206 (1) - 0 [13:07:25]OFD Sender: Remove packet 118779 [13:07:25]ProducePacketName [13:07:25]name=ofd_packets/00118779 [13:07:25]NVStorageDeleteData [13:07:25]Write to MH i2c: 01 00 00 73 56 C9 [13:07:25]Write i2c OK [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: 01 [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: 01 07 00 [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: 01 07 00 73 56 00 00 00 00 00 ED 0C C9 [13:07:25]RasterBufferAndPrint [13:07:25]line [13:07:25]line [13:07:25]line [13:07:25]line [13:07:25]line [13:07:25]written 0, free lines is 3316 [13:07:25]MH_Cut [13:07:25]Write to MH i2c: D1 01 00 7A 56 01 A2 [13:07:25]Write i2c OK [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: D1 [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: D1 01 00 [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: D1 01 00 7A 56 00 A1 [13:07:25]Write to MH i2c: 01 00 00 7B 56 D1 [13:07:25]Write i2c OK [13:07:25]MH_I2C_Read... [13:07:25]OFD Sender: No OFD packet to send [13:07:26]*** Cut start [13:07:26]*** Partial cut [13:07:26]*** CUTSNS_PIN = 1 [13:07:26]*** CUTSNS_PIN = 0 [13:07:26]*** Brake cut motor [13:07:26]Read from MH i2c: 01 [13:07:26]MH_I2C_Read... [13:07:26]*** Stop cut motor [13:07:26]*** Cut end [13:07:26]Read from MH i2c: 01 07 00 [13:07:26]MH_I2C_Read... [13:07:26]Read from MH i2c: 01 07 00 7B 56 00 00 00 00 00 FF 0F E6 [13:07:26]process_action close_receipt done [13:07:26]requested_data is exist [13:07:26]produce_requested_data [13:07:26]requested_item fm.sn is exist - process it [13:07:26]wFMCommunicate request_size=4 [13:07:26]MH_SAM_APDU [13:07:26]CAPDU: 80 11 00 00 [13:07:26]Write to MH i2c: E2 08 00 7C 56 80 11 00 00 00 00 00 00 4C [13:07:26]Write i2c OK [13:07:26]MH_I2C_Read... [13:07:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:26]Read from MH i2c: E2 [13:07:26]MH_I2C_Read... [13:07:26]Read from MH i2c: E2 17 00 [13:07:26]MH_I2C_Read... [13:07:26]Read from MH i2c: E2 17 00 7C 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A7 [13:07:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:07:26]wFMCommunicate OK [13:07:26]requested_item fd.num is exist - process it [13:07:26]SAM_PROTO_GetFieldsCounters [13:07:26]wFMCommunicate request_size=4 [13:07:26]MH_SAM_APDU [13:07:26]CAPDU: 80 13 00 00 [13:07:26]Write to MH i2c: E2 08 00 7D 56 80 13 00 00 00 00 00 00 4F [13:07:26]Write i2c OK [13:07:26]MH_I2C_Read... [13:07:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:27]Read from MH i2c: E2 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: E2 62 00 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: E2 62 00 7D 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FB CF 01 00 0E 04 04 00 B2 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 C5 [13:07: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FB CF 01 00 0E 04 04 00 B2 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 [13:07:27]wFMCommunicate OK [13:07:27]SAM_PROTO_GetFieldsCounters done [13:07:27]requested_item shift.num is exist - process it [13:07:27]requested_item shift.opened is exist - process it [13:07:27]req_shift_opened [13:07:27]FM_GetShiftState [13:07:27]SAM_PROTO_GetShiftState [13:07:27]wFMCommunicate request_size=4 [13:07:27]MH_SAM_APDU [13:07:27]CAPDU: 80 13 01 00 [13:07:27]Write to MH i2c: E2 08 00 7E 56 80 13 01 00 00 00 00 00 51 [13:07:27]Write i2c OK [13:07:27]MH_I2C_Read... [13:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:27]Read from MH i2c: E2 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: E2 0E 00 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: E2 0E 00 7E 56 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 7F [13:07:27]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:07:27]wFMCommunicate OK [13:07:27]SAM_PROTO_GetShiftState done [13:07:27]FM_GetShiftState done [13:07:27]req_shift_opened done [13:07:27]requested_item shift.open_date is exist - process it [13:07:27]req_shift_open_date [13:07:27]req_shift_open_date done [13:07:27]produce_requested_data done [13:07:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118779,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [13:07:27]process_action_free close_receipt [13:07:27]json_value_free [13:07:27]json_value_free done [13:07:27]process_json_proto returns [13:07:27]Send response to host [13:07:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118779,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [13:07:27]free response buf [13:07:27]execute_script done [13:07:27]execute_script returns [13:07:27]free content buf [13:07:27]Sock 7.Close socket [13:07:27]Sock 7.Thread stoped [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:51]OFD Sender: No OFD packet to send [13:08:56]OFD Sender: No OFD packet to send [13:09:01]OFD Sender: No OFD packet to send [13:09:06]OFD Sender: No OFD packet to send [13:09:11]OFD Sender: No OFD packet to send [13:09:16]OFD Sender: No OFD packet to send [13:09:21]OFD Sender: No OFD packet to send [13:09:26]OFD Sender: No OFD packet to send [13:09:31]OFD Sender: No OFD packet to send [13:09:36]OFD Sender: No OFD packet to send [13:09:41]OFD Sender: No OFD packet to send [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:02]accept exits with 9 [13:10:02]New connection [13:10:02]New thread 3067239780 created [13:10:02]Thread 3067383140 joined [13:10:02]Waiting for new connection... [13:10:02] Sock 9.Parse request [13:10:02]Sock 9.Check first char [13:10:02]Sock 9.First char is OK [13:10:02]request: POST /json_proto HTTP/1.0 [13:10:02]Method: POST [13:10:02]URL: /json_proto [13:10:02]Method is POST - this is cgi request [13:10:02]url: /json_proto [13:10:02]query_string will be loaded in cgi processing [13:10:02]execute_cgi json_proto POST (null) [13:10:02]execute_cgi path=json_proto method=POST [13:10:02]POST find Content-Length [13:10:02]Host: 172.17.45.7:8080 [13:10:02]Content-Length: 679 [13:10:02]Content-Type: application/json [13:10:02] [13:10:02]POST finish read [13:10:02]Found Content-Length = 679 [13:10:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:02]execute_script... [13:10:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:02]POST & json_proto [13:10:02]process_json_proto [13:10:02]json parsed OK: [13:10:02]protocol is kg_v1.0 [13:10:02]action value=close_receipt [13:10:02]process_action close_receipt [13:10:02]cmd_close_receipt [13:10:02]MH_GetDate [13:10:02]Write to MH i2c: F0 00 00 7F 56 C4 [13:10:02]Write i2c OK [13:10:02]MH_I2C_Read... [13:10:02]Read from MH i2c: F0 [13:10:02]MH_I2C_Read... [13:10:02]Read from MH i2c: F0 09 00 [13:10:02]MH_I2C_Read... [13:10:02]Read from MH i2c: F0 09 00 7F 56 00 B0 94 A7 66 90 0F 3E 66 61 [13:10:02]GetLastDocTimeStamp 1722258448 [13:10:02]current date 1722258608 [13:10:02]FM_GetShiftState [13:10:02]SAM_PROTO_GetShiftState [13:10:02]wFMCommunicate request_size=4 [13:10:02]MH_SAM_APDU [13:10:02]CAPDU: 80 13 01 00 [13:10:02]Write to MH i2c: E2 08 00 80 56 80 13 01 00 00 00 00 00 53 [13:10:02]Write i2c OK [13:10:02]MH_I2C_Read... [13:10:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:02]Read from MH i2c: E2 [13:10:02]MH_I2C_Read... [13:10:02]Read from MH i2c: E2 0E 00 [13:10:02]MH_I2C_Read... [13:10:02]Read from MH i2c: E2 0E 00 80 56 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 81 [13:10:02]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:10:02]wFMCommunicate OK [13:10:02]SAM_PROTO_GetShiftState done [13:10:02]FM_GetShiftState done [13:10:02]opened in 1722211641 [13:10:02]opened+sec_in_day 1722298041 [13:10:02]quantity*price = 150037 [13:10:02]sum+1 = 150039 [13:10:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 156 29.07.2024 13:10 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118780 ФПД: 49806273677308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131008&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118780&fm=49806273677308&tin=02508201610067®Number=0000000000092660&sum=150000 [13:10:03]StoreToDocumentArchive [13:10:03]shift 434 fd 118780 [13:10:03]save to /storage/0434/doc_00118780 [13:10:03]save last doc name /storage/0434/doc_00118780 to /storage/kkm_last_doc_name [13:10:03]save OK [13:10:03]Clear old archive folders... [13:10:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:10:03]tlvbuf is 01F34310 [13:10:03]SAM_PROTO_ClearQueue [13:10:03]wFMCommunicate request_size=4 [13:10:03]MH_SAM_APDU [13:10:03]CAPDU: 80 09 00 00 [13:10:03]Write to MH i2c: E2 08 00 8D 56 80 09 00 00 00 00 00 00 55 [13:10:03]Write i2c OK [13:10:03]MH_I2C_Read... [13:10:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:03]Read from MH i2c: E2 [13:10:03]MH_I2C_Read... [13:10:03]Read from MH i2c: E2 03 00 [13:10:03]MH_I2C_Read... [13:10:03]Read from MH i2c: E2 03 00 8D 56 00 90 00 57 [13:10:03]RAPDU: 90 00 [13:10:03]wFMCommunicate OK [13:10:03]SAM_PROTO_ClearQueue done [13:10:03]KKMCreateOFDPacket [13:10:03]OFDProtocolAddRootSTLVToBuf [13:10:03]FM_MakeSignedData [13:10:03]FM_MakeSignedData [13:10:03]SAM_PROTO_SignData [13:10:03]wFMCommunicate request_size=4 [13:10:03]MH_SAM_APDU [13:10:03]CAPDU: 80 0D 01 02 [13:10:03]Write to MH i2c: E2 08 00 8E 56 80 0D 01 02 00 00 00 00 5D [13:10:03]Write i2c OK [13:10:03]MH_I2C_Read... [13:10:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:03]Read from MH i2c: E2 [13:10:03]MH_I2C_Read... [13:10:03]Read from MH i2c: E2 03 00 [13:10:03]MH_I2C_Read... [13:10:03]Read from MH i2c: E2 03 00 8E 56 00 90 00 58 [13:10:03]RAPDU: 90 00 [13:10:03]wFMCommunicate OK [13:10:03]wFMCommunicate request_size=255 [13:10:03]MH_SAM_APDU [13:10:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 B0 94 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FC CF 01 00 35 04 06 00 2D 4C 6D 40 [13:10:03]Write to MH i2c: E2 02 01 8F 56 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 B0 94 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FC CF 01 00 35 04 06 00 2D 4C 6D 40 00 00 F6 [13:10:03]Write i2c OK [13:10:03]MH_I2C_Read... [13:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:04]Read from MH i2c: E2 [13:10:04]MH_I2C_Read... [13:10:04]Read from MH i2c: E2 03 00 [13:10:04]MH_I2C_Read... [13:10:04]Read from MH i2c: E2 03 00 8F 56 00 90 00 59 [13:10:04]RAPDU: 90 00 [13:10:04]wFMCommunicate OK [13:10:04]wFMCommunicate request_size=7 [13:10:04]MH_SAM_APDU [13:10:04]CAPDU: 80 0D 02 02 02 07 FC [13:10:04]Write to MH i2c: E2 0A 00 90 56 80 0D 02 02 02 00 07 FC 00 00 67 [13:10:04]Write i2c OK [13:10:04]MH_I2C_Read... [13:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:04]Read from MH i2c: E2 [13:10:04]MH_I2C_Read... [13:10:04]Read from MH i2c: E2 03 00 [13:10:04]MH_I2C_Read... [13:10:04]Read from MH i2c: E2 03 00 90 56 00 90 00 5A [13:10:04]RAPDU: 90 00 [13:10:04]wFMCommunicate OK [13:10:04]wFMCommunicate request_size=4 [13:10:04]MH_SAM_APDU [13:10:04]CAPDU: 80 0D 03 02 [13:10:04]Write to MH i2c: E2 08 00 91 56 80 0D 03 02 00 00 00 00 62 [13:10:04]Write i2c OK [13:10:04]MH_I2C_Read... [13:10:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:04]Read from MH i2c: E2 [13:10:04]MH_I2C_Read... [13:10:04]Read from MH i2c: E2 0B 00 [13:10:04]MH_I2C_Read... [13:10:04]Read from MH i2c: E2 0B 00 91 56 00 5B 08 FC 42 AF F6 2A 4F 90 00 22 [13:10:04]RAPDU: 5B 08 FC 42 AF F6 2A 4F 90 00 [13:10:04]wFMCommunicate OK [13:10:04]SAM_PROTO_SignData done [13:10:04]FM_MakeSignedData done [13:10:04]CreateOFDProtocolMessage [13:10:04]wFMCommunicate request_size=4 [13:10:04]MH_SAM_APDU [13:10:04]CAPDU: 80 11 00 00 [13:10:04]Write to MH i2c: E2 08 00 92 56 80 11 00 00 00 00 00 00 62 [13:10:04]Write i2c OK [13:10:04]MH_I2C_Read... [13:10:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:04]Read from MH i2c: E2 [13:10:04]MH_I2C_Read... [13:10:04]Read from MH i2c: E2 17 00 [13:10:04]MH_I2C_Read... [13:10:04]Read from MH i2c: E2 17 00 92 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BD [13:10:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:10:04]wFMCommunicate OK [13:10:04]CreateOFDProtocolMessage done [13:10:04]OFDSenderStorePacket 118780 [13:10:04]StoreOFDPacket docnum=118780 [13:10:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 6A 6B 04 01 73 E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 B0 94 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FC CF 01 00 35 04 06 00 2D 4C 6D 40 07 FC 5B 08 FC 42 AF F6 2A 4F [13:10:04]CheckFolder [13:10:04]dirname=/storage/ofd_packets [13:10:04]CheckFolder done [13:10:04]ProducePacketName [13:10:04]name=ofd_packets/00118780 [13:10:04]NVStorageSaveData ofd_packets/00118780 [13:10:04]File name is /storage/ofd_packets/00118780 [13:10:04]Write 298 bytes [13:10:04]NVStorageSaveData done [13:10:04]OFDSenderStorePacket done [13:10:04]KKMCreateOFDPacket done [13:10:04]NVStorageSaveData kkm_last_timestamp [13:10:04]File name is /storage/kkm_last_timestamp [13:10:04]Write 4 bytes [13:10:04]NVStorageSaveData done [13:10:04]ExternCall_PrintAddStr [13:10:04]wPrintStart [13:10:04]Write to MH i2c: 01 00 00 93 56 E9 [13:10:04]Write i2c OK [13:10:04]MH_I2C_Read... [13:10:04]Read from MH i2c: 01 [13:10:04]MH_I2C_Read... [13:10:04]Read from MH i2c: 01 07 00 [13:10:04]MH_I2C_Read... [13:10:04]Read from MH i2c: 01 07 00 93 56 00 00 00 00 00 FF 0F FE [13:10:04]RasterBufferAndPrint [13:10:04]line Счет N : (1)949666 [13:10:04]line ИНН: 02508201610067 [13:10:04]line Контрольно-Кассовый Чек [13:10:04]line ПРОДАЖА [13:10:04]line ТРК (МРК, ГНК) : 44 [13:10:04]line Товар: 2710194800 [13:10:04]line ДТ-К-5 [13:10:04]line 19.690 * 76.20 [13:10:04]line = 1500.38 [13:10:04]line НДС 12% НСП 1% [13:10:04]line > о реализуемом товаре [13:10:04]line ОКРУГЛЕНИЕ: -0.38 [13:10:04]line ИТОГО: 1500.00 [13:10:04]line Внесено: 1500.00 [13:10:04]line СДАЧА: 0.00 [13:10:04]line НСП 1% : 13.28 [13:10:04]line НДС 12% : 159.33 [13:10:04]line Наличными: 1500.00 [13:10:04]line Безнал.: 0.00 [13:10:04]line Место: АЗС № 134 "Партнер Нефть" [13:10:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:10:04]line СНО: Общий режим [13:10:04]line Чек 156 29.07.2024 13:10 [13:10:04]line Смена: 434 ФФД: 1.0 [13:10:04]line ЗНМ: 0300000044 [13:10:04]line РНМ: 0000000000092660 [13:10:04]line Версия ККМ: 001 [13:10:04]line ФМ: 0000000000874939 [13:10:04]line ФД: 118780 [13:10:04]line ФПД: 49806273677308 [13:10:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131008&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118780&fm=49806273677308&tin=02508201610067®Number=0000000000092660&sum=150000 [13:10:04]OFD Sender: Processing packet 118780 [packets to send 86, broken 85] [13:10:04]ProducePacketName [13:10:04]name=ofd_packets/00118780 [13:10:04]OFD Sender: To server: pG, [13:10:04]CommunicateWithHost lk.salyk.kg:30040 [13:10:04]ConnectInit lk.salyk.kg [13:10:04]written 0, free lines is 4095 [13:10:04]Connected sock=10 [13:10:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 6A 6B 04 01 73 E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 B0 94 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FC CF 01 00 35 04 06 00 2D 4C 6D 40 07 FC 5B 08 FC 42 AF F6 2A 4F [13:10:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AA 0E 47 00 70 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 34 39 33 39 10 04 04 00 FC CF 01 00 F4 03 04 00 3E 42 A7 66 B6 04 01 00 00 7F 13 CE 21 6D CF 33 62 [13:10:04]CommunicateWithHost err = 0 [13:10:04]CheckOFDResponse [13:10:04]1017 (14) - 77093643461234 [13:10:04]1041 (16) - 0000000000874939 [13:10:04]1040 (4) - 118780 [13:10:04]1012 (4) - 29.07.2024 07:18 [13:10:04]1206 (1) - 0 [13:10:04]OFD Sender: Remove packet 118780 [13:10:04]ProducePacketName [13:10:04]name=ofd_packets/00118780 [13:10:04]NVStorageDeleteData [13:10:05]Write to MH i2c: 01 00 00 BD 56 13 [13:10:05]Write i2c OK [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: 01 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: 01 07 00 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: 01 07 00 BD 56 00 00 00 00 00 E5 0C 0B [13:10:05]RasterBufferAndPrint [13:10:05]line [13:10:05]line [13:10:05]line [13:10:05]line [13:10:05]line [13:10:05]written 0, free lines is 3307 [13:10:05]MH_Cut [13:10:05]Write to MH i2c: D1 01 00 C4 56 01 EC [13:10:05]Write i2c OK [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: D1 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: D1 01 00 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: D1 01 00 C4 56 00 EB [13:10:05]Write to MH i2c: 01 00 00 C5 56 1B [13:10:05]Write i2c OK [13:10:05]MH_I2C_Read... [13:10:05]OFD Sender: No OFD packet to send [13:10:05]*** Cut start [13:10:05]*** Partial cut [13:10:05]*** CUTSNS_PIN = 1 [13:10:05]*** CUTSNS_PIN = 0 [13:10:06]*** Brake cut motor [13:10:06]Read from MH i2c: 01 [13:10:06]MH_I2C_Read... [13:10:06]*** Stop cut motor [13:10:06]*** Cut end [13:10:06]Read from MH i2c: 01 07 00 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: 01 07 00 C5 56 00 00 00 00 00 FF 0F 30 [13:10:06]process_action close_receipt done [13:10:06]requested_data is exist [13:10:06]produce_requested_data [13:10:06]requested_item fm.sn is exist - process it [13:10:06]wFMCommunicate request_size=4 [13:10:06]MH_SAM_APDU [13:10:06]CAPDU: 80 11 00 00 [13:10:06]Write to MH i2c: E2 08 00 C6 56 80 11 00 00 00 00 00 00 96 [13:10:06]Write i2c OK [13:10:06]MH_I2C_Read... [13:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:06]Read from MH i2c: E2 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: E2 17 00 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: E2 17 00 C6 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F1 [13:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:10:06]wFMCommunicate OK [13:10:06]requested_item fd.num is exist - process it [13:10:06]SAM_PROTO_GetFieldsCounters [13:10:06]wFMCommunicate request_size=4 [13:10:06]MH_SAM_APDU [13:10:06]CAPDU: 80 13 00 00 [13:10:06]Write to MH i2c: E2 08 00 C7 56 80 13 00 00 00 00 00 00 99 [13:10:06]Write i2c OK [13:10:06]MH_I2C_Read... [13:10:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:06]Read from MH i2c: E2 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: E2 62 00 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: E2 62 00 C7 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FC CF 01 00 0E 04 04 00 B2 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 13 [13:10: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FC CF 01 00 0E 04 04 00 B2 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 [13:10:06]wFMCommunicate OK [13:10:06]SAM_PROTO_GetFieldsCounters done [13:10:06]requested_item shift.num is exist - process it [13:10:06]requested_item shift.opened is exist - process it [13:10:06]req_shift_opened [13:10:06]FM_GetShiftState [13:10:06]SAM_PROTO_GetShiftState [13:10:06]wFMCommunicate request_size=4 [13:10:06]MH_SAM_APDU [13:10:06]CAPDU: 80 13 01 00 [13:10:06]Write to MH i2c: E2 08 00 C8 56 80 13 01 00 00 00 00 00 9B [13:10:06]Write i2c OK [13:10:06]MH_I2C_Read... [13:10:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:06]Read from MH i2c: E2 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: E2 0E 00 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: E2 0E 00 C8 56 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C9 [13:10:06]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:10:06]wFMCommunicate OK [13:10:06]SAM_PROTO_GetShiftState done [13:10:06]FM_GetShiftState done [13:10:06]req_shift_opened done [13:10:06]requested_item shift.open_date is exist - process it [13:10:06]req_shift_open_date [13:10:06]req_shift_open_date done [13:10:06]produce_requested_data done [13:10:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118780,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [13:10:06]process_action_free close_receipt [13:10:06]json_value_free [13:10:06]json_value_free done [13:10:06]process_json_proto returns [13:10:06]Send response to host [13:10:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118780,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [13:10:06]free response buf [13:10:06]execute_script done [13:10:06]execute_script returns [13:10:06]free content buf [13:10:06]Sock 9.Close socket [13:10:06]Sock 9.Thread stoped [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:40]OFD Sender: No OFD packet to send [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:55]OFD Sender: No OFD packet to send [13:11:00]OFD Sender: No OFD packet to send [13:11:05]OFD Sender: No OFD packet to send [13:11:10]OFD Sender: No OFD packet to send [13:11:15]OFD Sender: No OFD packet to send [13:11:20]OFD Sender: No OFD packet to send [13:11:25]OFD Sender: No OFD packet to send [13:11:30]OFD Sender: No OFD packet to send [13:11:35]OFD Sender: No OFD packet to send [13:11:40]OFD Sender: No OFD packet to send [13:11:45]OFD Sender: No OFD packet to send [13:11:50]OFD Sender: No OFD packet to send [13:11:55]OFD Sender: No OFD packet to send [13:12:00]OFD Sender: No OFD packet to send [13:12:05]OFD Sender: No OFD packet to send [13:12:10]OFD Sender: No OFD packet to send [13:12:15]OFD Sender: No OFD packet to send [13:12:20]OFD Sender: No OFD packet to send [13:12:25]OFD Sender: No OFD packet to send [13:12:30]OFD Sender: No OFD packet to send [13:12:35]OFD Sender: No OFD packet to send [13:12:40]OFD Sender: No OFD packet to send [13:12:45]OFD Sender: No OFD packet to send [13:12:50]OFD Sender: No OFD packet to send [13:12:55]OFD Sender: No OFD packet to send [13:13:00]OFD Sender: No OFD packet to send [13:13:05]OFD Sender: No OFD packet to send [13:13:10]OFD Sender: No OFD packet to send [13:13:15]OFD Sender: No OFD packet to send [13:13:20]OFD Sender: No OFD packet to send [13:13:25]OFD Sender: No OFD packet to send [13:13:30]OFD Sender: No OFD packet to send [13:13:35]OFD Sender: No OFD packet to send [13:13:40]OFD Sender: No OFD packet to send [13:13:45]OFD Sender: No OFD packet to send [13:13:50]OFD Sender: No OFD packet to send [13:13:55]OFD Sender: No OFD packet to send [13:14:00]OFD Sender: No OFD packet to send [13:14:05]OFD Sender: No OFD packet to send [13:14:10]OFD Sender: No OFD packet to send [13:14:15]OFD Sender: No OFD packet to send [13:14:20]OFD Sender: No OFD packet to send [13:14:25]OFD Sender: No OFD packet to send [13:14:30]OFD Sender: No OFD packet to send [13:14:35]OFD Sender: No OFD packet to send [13:14:40]OFD Sender: No OFD packet to send [13:14:45]OFD Sender: No OFD packet to send [13:14:50]OFD Sender: No OFD packet to send [13:14:55]OFD Sender: No OFD packet to send [13:15:00]OFD Sender: No OFD packet to send [13:15:05]OFD Sender: No OFD packet to send [13:15:06]accept exits with 7 [13:15:06]New connection [13:15:06]New thread 3067383140 created [13:15:06]Thread 3067239780 joined [13:15:06]Waiting for new connection... [13:15:06] Sock 7.Parse request [13:15:06]Sock 7.Check first char [13:15:06]Sock 7.First char is OK [13:15:06]request: POST /json_proto HTTP/1.0 [13:15:06]Method: POST [13:15:06]URL: /json_proto [13:15:06]Method is POST - this is cgi request [13:15:06]url: /json_proto [13:15:06]query_string will be loaded in cgi processing [13:15:06]execute_cgi json_proto POST (null) [13:15:06]execute_cgi path=json_proto method=POST [13:15:06]POST find Content-Length [13:15:06]Host: 172.17.45.7:8080 [13:15:06]Content-Length: 682 [13:15:06]Content-Type: application/json [13:15:06] [13:15:06]POST finish read [13:15:06]Found Content-Length = 682 [13:15:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 28.990, "sum" : 1965.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1965.00, "total" : 1965.00, "payments": [ { "type": 0, "sum" : 1965.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:06]execute_script... [13:15:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 28.990, "sum" : 1965.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1965.00, "total" : 1965.00, "payments": [ { "type": 0, "sum" : 1965.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:06]POST & json_proto [13:15:06]process_json_proto [13:15:06]json parsed OK: [13:15:06]protocol is kg_v1.0 [13:15:06]action value=close_receipt [13:15:06]process_action close_receipt [13:15:06]cmd_close_receipt [13:15:06]MH_GetDate [13:15:06]Write to MH i2c: F0 00 00 C9 56 0E [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: F0 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: F0 09 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: F0 09 00 C9 56 00 DF 95 A7 66 90 0F 3E 66 DB [13:15:06]GetLastDocTimeStamp 1722258608 [13:15:06]current date 1722258911 [13:15:06]FM_GetShiftState [13:15:06]SAM_PROTO_GetShiftState [13:15:06]wFMCommunicate request_size=4 [13:15:06]MH_SAM_APDU [13:15:06]CAPDU: 80 13 01 00 [13:15:06]Write to MH i2c: E2 08 00 CA 56 80 13 01 00 00 00 00 00 9D [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:06]Read from MH i2c: E2 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 0E 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 0E 00 CA 56 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 CB [13:15:06]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:15:06]wFMCommunicate OK [13:15:06]SAM_PROTO_GetShiftState done [13:15:06]FM_GetShiftState done [13:15:06]opened in 1722211641 [13:15:06]opened+sec_in_day 1722298041 [13:15:06]quantity*price = 196552 [13:15:06]sum+1 = 196553 [13:15:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 1965.00 Внесено: 1965.00 СДАЧА: 0.00 НСП 1% : 17.39 НДС 12% : 208.73 Наличными: 1965.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 157 29.07.2024 13:15 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118781 ФПД: 76604711140627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131511&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118781&fm=76604711140627&tin=02508201610067®Number=0000000000092660&sum=196500 [13:15:07]StoreToDocumentArchive [13:15:07]shift 434 fd 118781 [13:15:07]save to /storage/0434/doc_00118781 [13:15:07]save last doc name /storage/0434/doc_00118781 to /storage/kkm_last_doc_name [13:15:07]save OK [13:15:07]Clear old archive folders... [13:15:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:07]tlvbuf is 01FD3470 [13:15:07]SAM_PROTO_ClearQueue [13:15:07]wFMCommunicate request_size=4 [13:15:07]MH_SAM_APDU [13:15:07]CAPDU: 80 09 00 00 [13:15:07]Write to MH i2c: E2 08 00 D7 56 80 09 00 00 00 00 00 00 9F [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:07]Read from MH i2c: E2 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 D7 56 00 90 00 A1 [13:15:07]RAPDU: 90 00 [13:15:07]wFMCommunicate OK [13:15:07]SAM_PROTO_ClearQueue done [13:15:07]KKMCreateOFDPacket [13:15:07]OFDProtocolAddRootSTLVToBuf [13:15:07]FM_MakeSignedData [13:15:07]FM_MakeSignedData [13:15:07]SAM_PROTO_SignData [13:15:07]wFMCommunicate request_size=4 [13:15:07]MH_SAM_APDU [13:15:07]CAPDU: 80 0D 01 02 [13:15:07]Write to MH i2c: E2 08 00 D8 56 80 0D 01 02 00 00 00 00 A7 [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:07]Read from MH i2c: E2 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 D8 56 00 90 00 A2 [13:15:07]RAPDU: 90 00 [13:15:07]wFMCommunicate OK [13:15:07]wFMCommunicate request_size=255 [13:15:07]MH_SAM_APDU [13:15: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 3E 71 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C8 FF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 FF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 51 00 00 00 00 07 04 06 00 94 FF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 DF 95 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FD CF 01 00 35 04 06 00 45 [13:15:07]Write to MH i2c: E2 02 01 D9 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3E 71 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C8 FF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 FF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 51 00 00 00 00 07 04 06 00 94 FF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 DF 95 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FD CF 01 00 35 04 06 00 45 00 00 7C [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:07]Read from MH i2c: E2 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 D9 56 00 90 00 A3 [13:15:07]RAPDU: 90 00 [13:15:07]wFMCommunicate OK [13:15:07]wFMCommunicate request_size=10 [13:15:07]MH_SAM_APDU [13:15:07]CAPDU: 80 0D 02 02 05 AB EC 98 7D 13 [13:15:07]Write to MH i2c: E2 0D 00 DA 56 80 0D 02 02 05 00 AB EC 98 7D 13 00 00 73 [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:07]Read from MH i2c: E2 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 DA 56 00 90 00 A4 [13:15:07]RAPDU: 90 00 [13:15:07]wFMCommunicate OK [13:15:07]wFMCommunicate request_size=4 [13:15:07]MH_SAM_APDU [13:15:07]CAPDU: 80 0D 03 02 [13:15:07]Write to MH i2c: E2 08 00 DB 56 80 0D 03 02 00 00 00 00 AC [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:07]Read from MH i2c: E2 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 0B 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 0B 00 DB 56 00 C3 78 C0 1C CF DB 36 FF 90 00 A3 [13:15:07]RAPDU: C3 78 C0 1C CF DB 36 FF 90 00 [13:15:07]wFMCommunicate OK [13:15:07]SAM_PROTO_SignData done [13:15:07]FM_MakeSignedData done [13:15:07]CreateOFDProtocolMessage [13:15:07]wFMCommunicate request_size=4 [13:15:07]MH_SAM_APDU [13:15:07]CAPDU: 80 11 00 00 [13:15:07]Write to MH i2c: E2 08 00 DC 56 80 11 00 00 00 00 00 00 AC [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:07]Read from MH i2c: E2 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 17 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 17 00 DC 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 07 [13:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:15:07]wFMCommunicate OK [13:15:07]CreateOFDProtocolMessage done [13:15:07]OFDSenderStorePacket 118781 [13:15:07]StoreOFDPacket docnum=118781 [13:15:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3D 39 07 01 32 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3E 71 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C8 FF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 FF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 51 00 00 00 00 07 04 06 00 94 FF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 DF 95 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FD CF 01 00 35 04 06 00 45 AB EC 98 7D 13 C3 78 C0 1C CF DB 36 FF [13:15:07]CheckFolder [13:15:07]dirname=/storage/ofd_packets [13:15:07]CheckFolder done [13:15:07]ProducePacketName [13:15:07]name=ofd_packets/00118781 [13:15:07]NVStorageSaveData ofd_packets/00118781 [13:15:07]File name is /storage/ofd_packets/00118781 [13:15:07]Write 301 bytes [13:15:07]NVStorageSaveData done [13:15:07]OFDSenderStorePacket done [13:15:07]KKMCreateOFDPacket done [13:15:07]NVStorageSaveData kkm_last_timestamp [13:15:07]File name is /storage/kkm_last_timestamp [13:15:07]Write 4 bytes [13:15:07]NVStorageSaveData done [13:15:07]ExternCall_PrintAddStr [13:15:07]wPrintStart [13:15:07]Write to MH i2c: 01 00 00 DD 56 33 [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: 01 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: 01 07 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: 01 07 00 DD 56 00 00 00 00 00 FF 0F 48 [13:15:07]RasterBufferAndPrint [13:15:07]line Счет N : (1)949667 [13:15:07]line ИНН: 02508201610067 [13:15:07]line Контрольно-Кассовый Чек [13:15:07]line ПРОДАЖА [13:15:07]line ТРК (МРК, ГНК) : 41 [13:15:07]line Товар: 2710124130 [13:15:07]line Аи-92-К-4 [13:15:07]line 28.990 * 67.80 [13:15:07]line = 1965.52 [13:15:07]line НДС 12% НСП 1% [13:15:07]line > о реализуемом товаре [13:15:07]line ОКРУГЛЕНИЕ: -0.52 [13:15:07]line ИТОГО: 1965.00 [13:15:07]line Внесено: 1965.00 [13:15:07]line СДАЧА: 0.00 [13:15:07]line НСП 1% : 17.39 [13:15:07]line НДС 12% : 208.73 [13:15:07]line Наличными: 1965.00 [13:15:07]line Безнал.: 0.00 [13:15:07]line Место: АЗС № 134 "Партнер Нефть" [13:15:07]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:15:07]line СНО: Общий режим [13:15:07]line Чек 157 29.07.2024 13:15 [13:15:07]line Смена: 434 ФФД: 1.0 [13:15:07]line ЗНМ: 0300000044 [13:15:07]line РНМ: 0000000000092660 [13:15:07]line Версия ККМ: 001 [13:15:07]line ФМ: 0000000000874939 [13:15:07]line ФД: 118781 [13:15:07]line ФПД: 76604711140627 [13:15:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131511&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118781&fm=76604711140627&tin=02508201610067®Number=0000000000092660&sum=196500 [13:15:08]OFD Sender: Processing packet 118781 [packets to send 86, broken 85] [13:15:08]ProducePacketName [13:15:08]name=ofd_packets/00118781 [13:15:08]OFD Sender: To server: pG, [13:15:08]CommunicateWithHost lk.salyk.kg:30040 [13:15:08]ConnectInit lk.salyk.kg [13:15:08]written 0, free lines is 4095 [13:15:08]Connected sock=10 [13:15:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3D 39 07 01 32 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3E 71 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C8 FF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 FF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 51 00 00 00 00 07 04 06 00 94 FF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 DF 95 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FD CF 01 00 35 04 06 00 45 AB EC 98 7D 13 C3 78 C0 1C CF DB 36 FF [13:15:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 DD 5E 47 00 86 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 34 39 33 39 10 04 04 00 FD CF 01 00 F4 03 04 00 6D 43 A7 66 B6 04 01 00 00 A5 94 D2 1B 8F 38 BE E8 [13:15:08]CommunicateWithHost err = 0 [13:15:08]CheckOFDResponse [13:15:08]1017 (14) - 77093643461234 [13:15:08]1041 (16) - 0000000000874939 [13:15:08]1040 (4) - 118781 [13:15:08]1012 (4) - 29.07.2024 07:23 [13:15:08]1206 (1) - 0 [13:15:08]OFD Sender: Remove packet 118781 [13:15:08]ProducePacketName [13:15:08]name=ofd_packets/00118781 [13:15:08]NVStorageDeleteData [13:15:08]Write to MH i2c: 01 00 00 07 57 5E [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: 01 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: 01 07 00 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: 01 07 00 07 57 00 00 00 00 00 EA 0C 5B [13:15:08]RasterBufferAndPrint [13:15:08]line [13:15:08]line [13:15:08]line [13:15:08]line [13:15:08]line [13:15:08]written 0, free lines is 3311 [13:15:08]MH_Cut [13:15:08]Write to MH i2c: D1 01 00 0E 57 01 37 [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: D1 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: D1 01 00 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: D1 01 00 0E 57 00 36 [13:15:08]Write to MH i2c: 01 00 00 0F 57 66 [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:09]OFD Sender: No OFD packet to send [13:15:09]*** Cut start [13:15:09]*** Partial cut [13:15:09]*** CUTSNS_PIN = 1 [13:15:09]*** CUTSNS_PIN = 0 [13:15:09]*** Brake cut motor [13:15:10]Read from MH i2c: 01 [13:15:10]MH_I2C_Read... [13:15:10]*** Stop cut motor [13:15:10]*** Cut end [13:15:10]Read from MH i2c: 01 07 00 [13:15:10]MH_I2C_Read... [13:15:10]Read from MH i2c: 01 07 00 0F 57 00 00 00 00 00 FF 0F 7B [13:15:10]process_action close_receipt done [13:15:10]requested_data is exist [13:15:10]produce_requested_data [13:15:10]requested_item fm.sn is exist - process it [13:15:10]wFMCommunicate request_size=4 [13:15:10]MH_SAM_APDU [13:15:10]CAPDU: 80 11 00 00 [13:15:10]Write to MH i2c: E2 08 00 10 57 80 11 00 00 00 00 00 00 E1 [13:15:10]Write i2c OK [13:15:10]MH_I2C_Read... [13:15:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:10]Read from MH i2c: E2 [13:15:10]MH_I2C_Read... [13:15:10]Read from MH i2c: E2 17 00 [13:15:10]MH_I2C_Read... [13:15:10]Read from MH i2c: E2 17 00 10 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3C [13:15:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:15:10]wFMCommunicate OK [13:15:10]requested_item fd.num is exist - process it [13:15:10]SAM_PROTO_GetFieldsCounters [13:15:10]wFMCommunicate request_size=4 [13:15:10]MH_SAM_APDU [13:15:10]CAPDU: 80 13 00 00 [13:15:10]Write to MH i2c: E2 08 00 11 57 80 13 00 00 00 00 00 00 E4 [13:15:10]Write i2c OK [13:15:10]MH_I2C_Read... [13:15:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:10]Read from MH i2c: E2 [13:15:10]MH_I2C_Read... [13:15:10]Read from MH i2c: E2 62 00 [13:15:10]MH_I2C_Read... [13:15:10]Read from MH i2c: E2 62 00 11 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FD CF 01 00 0E 04 04 00 B2 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 62 [13: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FD CF 01 00 0E 04 04 00 B2 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 [13:15:10]wFMCommunicate OK [13:15:10]SAM_PROTO_GetFieldsCounters done [13:15:10]requested_item shift.num is exist - process it [13:15:10]requested_item shift.opened is exist - process it [13:15:10]req_shift_opened [13:15:10]FM_GetShiftState [13:15:10]SAM_PROTO_GetShiftState [13:15:10]wFMCommunicate request_size=4 [13:15:10]MH_SAM_APDU [13:15:10]CAPDU: 80 13 01 00 [13:15:10]Write to MH i2c: E2 08 00 12 57 80 13 01 00 00 00 00 00 E6 [13:15:10]Write i2c OK [13:15:10]MH_I2C_Read... [13:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:10]Read from MH i2c: E2 [13:15:10]MH_I2C_Read... [13:15:10]Read from MH i2c: E2 0E 00 [13:15:10]MH_I2C_Read... [13:15:10]Read from MH i2c: E2 0E 00 12 57 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 14 [13:15:10]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:15:10]wFMCommunicate OK [13:15:10]SAM_PROTO_GetShiftState done [13:15:10]FM_GetShiftState done [13:15:10]req_shift_opened done [13:15:10]requested_item shift.open_date is exist - process it [13:15:10]req_shift_open_date [13:15:10]req_shift_open_date done [13:15:10]produce_requested_data done [13:15:10]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118781,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [13:15:10]process_action_free close_receipt [13:15:10]json_value_free [13:15:10]json_value_free done [13:15:10]process_json_proto returns [13:15:10]Send response to host [13:15:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118781,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [13:15:10]free response buf [13:15:10]execute_script done [13:15:10]execute_script returns [13:15:10]free content buf [13:15:10]Sock 7.Close socket [13:15:10]Sock 7.Thread stoped [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]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:04]accept exits with 9 [13:18:04]New connection [13:18:04]New thread 3067239780 created [13:18:04]Thread 3067383140 joined [13:18:04]Waiting for new connection... [13:18:04] Sock 9.Parse request [13:18:04]Sock 9.Check first char [13:18:04]Sock 9.First char is OK [13:18:04]request: POST /json_proto HTTP/1.0 [13:18:04]Method: POST [13:18:04]URL: /json_proto [13:18:04]Method is POST - this is cgi request [13:18:04]url: /json_proto [13:18:04]query_string will be loaded in cgi processing [13:18:04]execute_cgi json_proto POST (null) [13:18:04]execute_cgi path=json_proto method=POST [13:18:04]POST find Content-Length [13:18:04]Host: 172.17.45.7:8080 [13:18:04]Content-Length: 677 [13:18:04]Content-Type: application/json [13:18:04] [13:18:04]POST finish read [13:18:04]Found Content-Length = 677 [13:18:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:04]execute_script... [13:18:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:04]POST & json_proto [13:18:04]process_json_proto [13:18:04]json parsed OK: [13:18:04]protocol is kg_v1.0 [13:18:04]action value=close_receipt [13:18:04]process_action close_receipt [13:18:04]cmd_close_receipt [13:18:04]MH_GetDate [13:18:04]Write to MH i2c: F0 00 00 13 57 59 [13:18:04]Write i2c OK [13:18:04]MH_I2C_Read... [13:18:04]Read from MH i2c: F0 [13:18:04]MH_I2C_Read... [13:18:04]Read from MH i2c: F0 09 00 [13:18:04]MH_I2C_Read... [13:18:04]Read from MH i2c: F0 09 00 13 57 00 92 96 A7 66 90 0F 3E 66 DA [13:18:04]GetLastDocTimeStamp 1722258911 [13:18:04]current date 1722259090 [13:18:04]FM_GetShiftState [13:18:04]SAM_PROTO_GetShiftState [13:18:04]wFMCommunicate request_size=4 [13:18:04]MH_SAM_APDU [13:18:04]CAPDU: 80 13 01 00 [13:18:04]Write to MH i2c: E2 08 00 14 57 80 13 01 00 00 00 00 00 E8 [13:18:04]Write i2c OK [13:18:04]MH_I2C_Read... [13:18:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:04]Read from MH i2c: E2 [13:18:04]MH_I2C_Read... [13:18:04]Read from MH i2c: E2 0E 00 [13:18:04]MH_I2C_Read... [13:18:04]Read from MH i2c: E2 0E 00 14 57 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 16 [13:18:04]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:18:04]wFMCommunicate OK [13:18:04]SAM_PROTO_GetShiftState done [13:18:04]FM_GetShiftState done [13:18:04]opened in 1722211641 [13:18:04]opened+sec_in_day 1722298041 [13:18:04]quantity*price = 40002 [13:18:04]sum+1 = 40003 [13:18:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 158 29.07.2024 13:18 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118782 ФПД: 149779474807914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131810&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118782&fm=149779474807914&tin=02508201610067®Number=0000000000092660&sum=40000 [13:18:06]StoreToDocumentArchive [13:18:06]shift 434 fd 118782 [13:18:06]save to /storage/0434/doc_00118782 [13:18:06]save last doc name /storage/0434/doc_00118782 to /storage/kkm_last_doc_name [13:18:06]save OK [13:18:06]Clear old archive folders... [13:18:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:06]tlvbuf is 01F69C30 [13:18:06]SAM_PROTO_ClearQueue [13:18:06]wFMCommunicate request_size=4 [13:18:06]MH_SAM_APDU [13:18:06]CAPDU: 80 09 00 00 [13:18:06]Write to MH i2c: E2 08 00 21 57 80 09 00 00 00 00 00 00 EA [13:18:06]Write i2c OK [13:18:06]MH_I2C_Read... [13:18:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:06]Read from MH i2c: E2 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: E2 03 00 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: E2 03 00 21 57 00 90 00 EC [13:18:06]RAPDU: 90 00 [13:18:06]wFMCommunicate OK [13:18:06]SAM_PROTO_ClearQueue done [13:18:06]KKMCreateOFDPacket [13:18:06]OFDProtocolAddRootSTLVToBuf [13:18:06]FM_MakeSignedData [13:18:06]FM_MakeSignedData [13:18:06]SAM_PROTO_SignData [13:18:06]wFMCommunicate request_size=4 [13:18:06]MH_SAM_APDU [13:18:06]CAPDU: 80 0D 01 02 [13:18:06]Write to MH i2c: E2 08 00 22 57 80 0D 01 02 00 00 00 00 F2 [13:18:06]Write i2c OK [13:18:06]MH_I2C_Read... [13:18:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:06]Read from MH i2c: E2 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: E2 03 00 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: E2 03 00 22 57 00 90 00 ED [13:18:06]RAPDU: 90 00 [13:18:06]wFMCommunicate OK [13:18:06]wFMCommunicate request_size=255 [13:18:06]MH_SAM_APDU [13:18:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 92 96 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE CF 01 00 35 04 06 00 88 [13:18:06]Write to MH i2c: E2 02 01 23 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 92 96 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE CF 01 00 35 04 06 00 88 00 00 37 [13:18:06]Write i2c OK [13:18:06]MH_I2C_Read... [13:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:06]Read from MH i2c: E2 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: E2 03 00 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: E2 03 00 23 57 00 90 00 EE [13:18:06]RAPDU: 90 00 [13:18:06]wFMCommunicate OK [13:18:06]wFMCommunicate request_size=10 [13:18:06]MH_SAM_APDU [13:18:06]CAPDU: 80 0D 02 02 05 39 40 63 FC 6A [13:18:06]Write to MH i2c: E2 0D 00 24 57 80 0D 02 02 05 00 39 40 63 FC 6A 00 00 41 [13:18:06]Write i2c OK [13:18:06]MH_I2C_Read... [13:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:06]Read from MH i2c: E2 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: E2 03 00 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: E2 03 00 24 57 00 90 00 EF [13:18:06]RAPDU: 90 00 [13:18:06]wFMCommunicate OK [13:18:06]wFMCommunicate request_size=4 [13:18:06]MH_SAM_APDU [13:18:06]CAPDU: 80 0D 03 02 [13:18:06]Write to MH i2c: E2 08 00 25 57 80 0D 03 02 00 00 00 00 F7 [13:18:06]Write i2c OK [13:18:06]MH_I2C_Read... [13:18:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:06]Read from MH i2c: E2 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: E2 0B 00 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: E2 0B 00 25 57 00 1E 88 8B 4F 9F F0 58 8B 90 00 EA [13:18:06]RAPDU: 1E 88 8B 4F 9F F0 58 8B 90 00 [13:18:06]wFMCommunicate OK [13:18:06]SAM_PROTO_SignData done [13:18:06]FM_MakeSignedData done [13:18:06]CreateOFDProtocolMessage [13:18:06]wFMCommunicate request_size=4 [13:18:06]MH_SAM_APDU [13:18:06]CAPDU: 80 11 00 00 [13:18:06]Write to MH i2c: E2 08 00 26 57 80 11 00 00 00 00 00 00 F7 [13:18:06]Write i2c OK [13:18:06]MH_I2C_Read... [13:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:06]Read from MH i2c: E2 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: E2 17 00 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: E2 17 00 26 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 52 [13:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:18:06]wFMCommunicate OK [13:18:06]CreateOFDProtocolMessage done [13:18:06]OFDSenderStorePacket 118782 [13:18:06]StoreOFDPacket docnum=118782 [13:18:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 25 A6 07 01 05 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 92 96 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE CF 01 00 35 04 06 00 88 39 40 63 FC 6A 1E 88 8B 4F 9F F0 58 8B [13:18:06]CheckFolder [13:18:06]dirname=/storage/ofd_packets [13:18:06]CheckFolder done [13:18:06]ProducePacketName [13:18:06]name=ofd_packets/00118782 [13:18:06]NVStorageSaveData ofd_packets/00118782 [13:18:06]File name is /storage/ofd_packets/00118782 [13:18:06]Write 301 bytes [13:18:06]NVStorageSaveData done [13:18:06]OFDSenderStorePacket done [13:18:06]KKMCreateOFDPacket done [13:18:06]NVStorageSaveData kkm_last_timestamp [13:18:06]File name is /storage/kkm_last_timestamp [13:18:06]Write 4 bytes [13:18:06]NVStorageSaveData done [13:18:06]ExternCall_PrintAddStr [13:18:06]wPrintStart [13:18:06]Write to MH i2c: 01 00 00 27 57 7E [13:18:06]Write i2c OK [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: 01 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: 01 07 00 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: 01 07 00 27 57 00 00 00 00 00 FF 0F 93 [13:18:06]RasterBufferAndPrint [13:18:06]line Счет N : (1)949670 [13:18:06]line ИНН: 02508201610067 [13:18:06]line Контрольно-Кассовый Чек [13:18:06]line ПРОДАЖА [13:18:06]line ТРК (МРК, ГНК) : 31 [13:18:06]line Товар: 2710124130 [13:18:06]line Аи-92-К-4 [13:18:06]line 5.900 * 67.80 [13:18:06]line = 400.02 [13:18:06]line НДС 12% НСП 1% [13:18:06]line > о реализуемом товаре [13:18:06]line ОКРУГЛЕНИЕ: -0.02 [13:18:06]line ИТОГО: 400.00 [13:18:06]line Внесено: 400.00 [13:18:06]line СДАЧА: 0.00 [13:18:06]line НСП 1% : 3.54 [13:18:06]line НДС 12% : 42.48 [13:18:06]line Наличными: 400.00 [13:18:06]line Безнал.: 0.00 [13:18:06]line Место: АЗС № 134 "Партнер Нефть" [13:18:06]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:18:06]line СНО: Общий режим [13:18:06]line Чек 158 29.07.2024 13:18 [13:18:06]line Смена: 434 ФФД: 1.0 [13:18:06]line ЗНМ: 0300000044 [13:18:06]line РНМ: 0000000000092660 [13:18:06]line Версия ККМ: 001 [13:18:06]line ФМ: 0000000000874939 [13:18:06]line ФД: 118782 [13:18:06]line ФПД: 149779474807914 [13:18:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131810&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118782&fm=149779474807914&tin=02508201610067®Number=0000000000092660&sum=40000 [13:18:06]written 0, free lines is 4095 [13:18:06]OFD Sender: Processing packet 118782 [packets to send 86, broken 85] [13:18:06]ProducePacketName [13:18:06]name=ofd_packets/00118782 [13:18:06]OFD Sender: To server: pG, [13:18:06]CommunicateWithHost lk.salyk.kg:30040 [13:18:06]ConnectInit lk.salyk.kg [13:18:06]Connected sock=10 [13:18:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 25 A6 07 01 05 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 92 96 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE CF 01 00 35 04 06 00 88 39 40 63 FC 6A 1E 88 8B 4F 9F F0 58 8B [13:18:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 98 4D 47 00 E8 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 34 39 33 39 10 04 04 00 FE CF 01 00 F4 03 04 00 20 44 A7 66 B6 04 01 00 00 91 DF 6F 44 7F BE E6 CE [13:18:07]CommunicateWithHost err = 0 [13:18:07]CheckOFDResponse [13:18:07]1017 (14) - 77093643461234 [13:18:07]1041 (16) - 0000000000874939 [13:18:07]1040 (4) - 118782 [13:18:07]1012 (4) - 29.07.2024 07:26 [13:18:07]1206 (1) - 0 [13:18:07]OFD Sender: Remove packet 118782 [13:18:07]ProducePacketName [13:18:07]name=ofd_packets/00118782 [13:18:07]NVStorageDeleteData [13:18:07]Write to MH i2c: 01 00 00 51 57 A8 [13:18:07]Write i2c OK [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: 01 [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: 01 07 00 [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: 01 07 00 51 57 00 00 00 00 00 D8 0C 93 [13:18:07]RasterBufferAndPrint [13:18:07]line [13:18:07]line [13:18:07]line [13:18:07]line [13:18:07]line [13:18:07]written 0, free lines is 3296 [13:18:07]MH_Cut [13:18:07]Write to MH i2c: D1 01 00 58 57 01 81 [13:18:07]Write i2c OK [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: D1 [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: D1 01 00 [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: D1 01 00 58 57 00 80 [13:18:07]Write to MH i2c: 01 00 00 59 57 B0 [13:18:07]Write i2c OK [13:18:07]MH_I2C_Read... [13:18:07]OFD Sender: No OFD packet to send [13:18:07]*** Cut start [13:18:07]*** Partial cut [13:18:07]*** CUTSNS_PIN = 1 [13:18:07]*** CUTSNS_PIN = 0 [13:18:08]*** Brake cut motor [13:18:08]Read from MH i2c: 01 [13:18:08]MH_I2C_Read... [13:18:08]*** Stop cut motor [13:18:08]*** Cut end [13:18:08]Read from MH i2c: 01 07 00 [13:18:08]MH_I2C_Read... [13:18:08]Read from MH i2c: 01 07 00 59 57 00 00 00 00 00 FF 0F C5 [13:18:08]process_action close_receipt done [13:18:08]requested_data is exist [13:18:08]produce_requested_data [13:18:08]requested_item fm.sn is exist - process it [13:18:08]wFMCommunicate request_size=4 [13:18:08]MH_SAM_APDU [13:18:08]CAPDU: 80 11 00 00 [13:18:08]Write to MH i2c: E2 08 00 5A 57 80 11 00 00 00 00 00 00 2B [13:18:08]Write i2c OK [13:18:08]MH_I2C_Read... [13:18:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:08]Read from MH i2c: E2 [13:18:08]MH_I2C_Read... [13:18:08]Read from MH i2c: E2 17 00 [13:18:08]MH_I2C_Read... [13:18:08]Read from MH i2c: E2 17 00 5A 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 86 [13:18:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:18:08]wFMCommunicate OK [13:18:08]requested_item fd.num is exist - process it [13:18:08]SAM_PROTO_GetFieldsCounters [13:18:08]wFMCommunicate request_size=4 [13:18:08]MH_SAM_APDU [13:18:08]CAPDU: 80 13 00 00 [13:18:08]Write to MH i2c: E2 08 00 5B 57 80 13 00 00 00 00 00 00 2E [13:18:08]Write i2c OK [13:18:08]MH_I2C_Read... [13:18:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:08]Read from MH i2c: E2 [13:18:08]MH_I2C_Read... [13:18:08]Read from MH i2c: E2 62 00 [13:18:08]MH_I2C_Read... [13:18:08]Read from MH i2c: E2 62 00 5B 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FE CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [13:18: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FE CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:08]wFMCommunicate OK [13:18:08]SAM_PROTO_GetFieldsCounters done [13:18:08]requested_item shift.num is exist - process it [13:18:08]requested_item shift.opened is exist - process it [13:18:08]req_shift_opened [13:18:08]FM_GetShiftState [13:18:08]SAM_PROTO_GetShiftState [13:18:08]wFMCommunicate request_size=4 [13:18:08]MH_SAM_APDU [13:18:08]CAPDU: 80 13 01 00 [13:18:08]Write to MH i2c: E2 08 00 5C 57 80 13 01 00 00 00 00 00 30 [13:18:08]Write i2c OK [13:18:08]MH_I2C_Read... [13:18:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:08]Read from MH i2c: E2 [13:18:08]MH_I2C_Read... [13:18:08]Read from MH i2c: E2 0E 00 [13:18:08]MH_I2C_Read... [13:18:08]Read from MH i2c: E2 0E 00 5C 57 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 5E [13:18:08]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:18:08]wFMCommunicate OK [13:18:08]SAM_PROTO_GetShiftState done [13:18:08]FM_GetShiftState done [13:18:08]req_shift_opened done [13:18:08]requested_item shift.open_date is exist - process it [13:18:08]req_shift_open_date [13:18:08]req_shift_open_date done [13:18:08]produce_requested_data done [13:18:08]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118782,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [13:18:08]process_action_free close_receipt [13:18:08]json_value_free [13:18:08]json_value_free done [13:18:08]process_json_proto returns [13:18:08]Send response to host [13:18:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118782,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [13:18:08]free response buf [13:18:08]execute_script done [13:18:08]execute_script returns [13:18:08]free content buf [13:18:08]Sock 9.Close socket [13:18:08]Sock 9.Thread stoped [13:18:08]accept exits with 7 [13:18:08]New connection [13:18:08]New thread 3067383140 created [13:18:08]Thread 3067239780 joined [13:18:08]Waiting for new connection... [13:18:08] Sock 7.Parse request [13:18:08]Sock 7.Check first char [13:18:08]Sock 7.First char is OK [13:18:08]request: POST /json_proto HTTP/1.0 [13:18:08]Method: POST [13:18:08]URL: /json_proto [13:18:08]Method is POST - this is cgi request [13:18:08]url: /json_proto [13:18:08]query_string will be loaded in cgi processing [13:18:08]execute_cgi json_proto POST (null) [13:18:08]execute_cgi path=json_proto method=POST [13:18:08]POST find Content-Length [13:18:08]Host: 172.17.45.7:8080 [13:18:08]Content-Length: 677 [13:18:08]Content-Type: application/json [13:18:08] [13:18:08]POST finish read [13:18:08]Found Content-Length = 677 [13:18:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:08]execute_script... [13:18: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)949669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:08]POST & json_proto [13:18:08]process_json_proto [13:18:08]json parsed OK: [13:18:08]protocol is kg_v1.0 [13:18:08]action value=close_receipt [13:18:08]process_action close_receipt [13:18:08]cmd_close_receipt [13:18:08]MH_GetDate [13:18:08]Write to MH i2c: F0 00 00 5D 57 A3 [13:18:08]Write i2c OK [13:18:08]MH_I2C_Read... [13:18:08]Read from MH i2c: F0 [13:18:08]MH_I2C_Read... [13:18:08]Read from MH i2c: F0 09 00 [13:18:08]MH_I2C_Read... [13:18:08]Read from MH i2c: F0 09 00 5D 57 00 96 96 A7 66 90 0F 3E 66 28 [13:18:08]GetLastDocTimeStamp 1722259090 [13:18:08]current date 1722259094 [13:18:08]FM_GetShiftState [13:18:08]SAM_PROTO_GetShiftState [13:18:08]wFMCommunicate request_size=4 [13:18:08]MH_SAM_APDU [13:18:08]CAPDU: 80 13 01 00 [13:18:08]Write to MH i2c: E2 08 00 5E 57 80 13 01 00 00 00 00 00 32 [13:18:08]Write i2c OK [13:18:08]MH_I2C_Read... [13:18:08]Read from MH i2c: E2 [13:18:08]MH_I2C_Read... [13:18:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:08]Read from MH i2c: E2 0E 00 [13:18:08]MH_I2C_Read... [13:18:08]Read from MH i2c: E2 0E 00 5E 57 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 60 [13:18:08]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:18:08]wFMCommunicate OK [13:18:08]SAM_PROTO_GetShiftState done [13:18:08]FM_GetShiftState done [13:18:08]opened in 1722211641 [13:18:08]opened+sec_in_day 1722298041 [13:18:08]quantity*price = 50036 [13:18:08]sum+1 = 50037 [13:18:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 159 29.07.2024 13:18 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118783 ФПД: 135206241582200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131814&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118783&fm=135206241582200&tin=02508201610067®Number=0000000000092660&sum=50000 [13:18:10]StoreToDocumentArchive [13:18:10]shift 434 fd 118783 [13:18:10]save to /storage/0434/doc_00118783 [13:18:10]save last doc name /storage/0434/doc_00118783 to /storage/kkm_last_doc_name [13:18:10]save OK [13:18:10]Clear old archive folders... [13:18:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:10]tlvbuf is B6FC17F0 [13:18:10]SAM_PROTO_ClearQueue [13:18:10]wFMCommunicate request_size=4 [13:18:10]MH_SAM_APDU [13:18:10]CAPDU: 80 09 00 00 [13:18:10]Write to MH i2c: E2 08 00 6B 57 80 09 00 00 00 00 00 00 34 [13:18:10]Write i2c OK [13:18:10]MH_I2C_Read... [13:18:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:10]Read from MH i2c: E2 [13:18:10]MH_I2C_Read... [13:18:10]Read from MH i2c: E2 03 00 [13:18:10]MH_I2C_Read... [13:18:10]Read from MH i2c: E2 03 00 6B 57 00 90 00 36 [13:18:10]RAPDU: 90 00 [13:18:10]wFMCommunicate OK [13:18:10]SAM_PROTO_ClearQueue done [13:18:10]KKMCreateOFDPacket [13:18:10]OFDProtocolAddRootSTLVToBuf [13:18:10]FM_MakeSignedData [13:18:10]FM_MakeSignedData [13:18:10]SAM_PROTO_SignData [13:18:10]wFMCommunicate request_size=4 [13:18:10]MH_SAM_APDU [13:18:10]CAPDU: 80 0D 01 02 [13:18:10]Write to MH i2c: E2 08 00 6C 57 80 0D 01 02 00 00 00 00 3C [13:18:10]Write i2c OK [13:18:10]MH_I2C_Read... [13:18:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:10]Read from MH i2c: E2 [13:18:10]MH_I2C_Read... [13:18:10]Read from MH i2c: E2 03 00 [13:18:10]MH_I2C_Read... [13:18:10]Read from MH i2c: E2 03 00 6C 57 00 90 00 37 [13:18:10]RAPDU: 90 00 [13:18:10]wFMCommunicate OK [13:18:10]wFMCommunicate request_size=255 [13:18:10]MH_SAM_APDU [13:18: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 96 96 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF CF 01 00 35 04 06 00 7A [13:18:10]Write to MH i2c: E2 02 01 6D 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 96 96 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF CF 01 00 35 04 06 00 7A 00 00 94 [13:18:10]Write i2c OK [13:18:10]MH_I2C_Read... [13:18:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:10]Read from MH i2c: E2 [13:18:10]MH_I2C_Read... [13:18:10]Read from MH i2c: E2 03 00 [13:18:10]MH_I2C_Read... [13:18:10]Read from MH i2c: E2 03 00 6D 57 00 90 00 38 [13:18:10]RAPDU: 90 00 [13:18:10]wFMCommunicate OK [13:18:10]wFMCommunicate request_size=10 [13:18:10]MH_SAM_APDU [13:18:10]CAPDU: 80 0D 02 02 05 F8 28 00 3C 78 [13:18:10]Write to MH i2c: E2 0D 00 6E 57 80 0D 02 02 05 00 F8 28 00 3C 78 00 00 1D [13:18:10]Write i2c OK [13:18:10]MH_I2C_Read... [13:18:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:10]Read from MH i2c: E2 [13:18:10]MH_I2C_Read... [13:18:10]Read from MH i2c: E2 03 00 [13:18:10]MH_I2C_Read... [13:18:10]Read from MH i2c: E2 03 00 6E 57 00 90 00 39 [13:18:10]RAPDU: 90 00 [13:18:10]wFMCommunicate OK [13:18:10]wFMCommunicate request_size=4 [13:18:10]MH_SAM_APDU [13:18:10]CAPDU: 80 0D 03 02 [13:18:10]Write to MH i2c: E2 08 00 6F 57 80 0D 03 02 00 00 00 00 41 [13:18:10]Write i2c OK [13:18:10]MH_I2C_Read... [13:18:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:11]Read from MH i2c: E2 [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: E2 0B 00 [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: E2 0B 00 6F 57 00 C4 D7 54 AA 39 90 C7 41 90 00 AC [13:18:11]RAPDU: C4 D7 54 AA 39 90 C7 41 90 00 [13:18:11]wFMCommunicate OK [13:18:11]SAM_PROTO_SignData done [13:18:11]FM_MakeSignedData done [13:18:11]CreateOFDProtocolMessage [13:18:11]wFMCommunicate request_size=4 [13:18:11]MH_SAM_APDU [13:18:11]CAPDU: 80 11 00 00 [13:18:11]Write to MH i2c: E2 08 00 70 57 80 11 00 00 00 00 00 00 41 [13:18:11]Write i2c OK [13:18:11]MH_I2C_Read... [13:18:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:11]Read from MH i2c: E2 [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: E2 17 00 [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: E2 17 00 70 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9C [13:18:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:18:11]wFMCommunicate OK [13:18:11]CreateOFDProtocolMessage done [13:18:11]OFDSenderStorePacket 118783 [13:18:11]StoreOFDPacket docnum=118783 [13:18:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7E C2 07 01 BB 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 96 96 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF CF 01 00 35 04 06 00 7A F8 28 00 3C 78 C4 D7 54 AA 39 90 C7 41 [13:18:11]CheckFolder [13:18:11]dirname=/storage/ofd_packets [13:18:11]CheckFolder done [13:18:11]ProducePacketName [13:18:11]name=ofd_packets/00118783 [13:18:11]NVStorageSaveData ofd_packets/00118783 [13:18:11]File name is /storage/ofd_packets/00118783 [13:18:11]Write 301 bytes [13:18:11]NVStorageSaveData done [13:18:11]OFDSenderStorePacket done [13:18:11]KKMCreateOFDPacket done [13:18:11]NVStorageSaveData kkm_last_timestamp [13:18:11]File name is /storage/kkm_last_timestamp [13:18:11]Write 4 bytes [13:18:11]NVStorageSaveData done [13:18:11]ExternCall_PrintAddStr [13:18:11]wPrintStart [13:18:11]Write to MH i2c: 01 00 00 71 57 C8 [13:18:11]Write i2c OK [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: 01 [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: 01 07 00 [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: 01 07 00 71 57 00 00 00 00 00 FF 0F DD [13:18:11]RasterBufferAndPrint [13:18:11]line Счет N : (1)949669 [13:18:11]line ИНН: 02508201610067 [13:18:11]line Контрольно-Кассовый Чек [13:18:11]line ПРОДАЖА [13:18:11]line ТРК (МРК, ГНК) : 51 [13:18:11]line Товар: 2710124130 [13:18:11]line Аи-92-К-4 [13:18:11]line 7.380 * 67.80 [13:18:11]line = 500.36 [13:18:11]line НДС 12% НСП 1% [13:18:11]line > о реализуемом товаре [13:18:11]line ОКРУГЛЕНИЕ: -0.36 [13:18:11]line ИТОГО: 500.00 [13:18:11]line Внесено: 500.00 [13:18:11]line СДАЧА: 0.00 [13:18:11]line НСП 1% : 4.43 [13:18:11]line НДС 12% : 53.14 [13:18:11]line Наличными: 500.00 [13:18:11]line Безнал.: 0.00 [13:18:11]line Место: АЗС № 134 "Партнер Нефть" [13:18:11]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:18:11]line СНО: Общий режим [13:18:11]line Чек 159 29.07.2024 13:18 [13:18:11]line Смена: 434 ФФД: 1.0 [13:18:11]line ЗНМ: 0300000044 [13:18:11]line РНМ: 0000000000092660 [13:18:11]line Версия ККМ: 001 [13:18:11]line ФМ: 0000000000874939 [13:18:11]line ФД: 118783 [13:18:11]line ФПД: 135206241582200 [13:18:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131814&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118783&fm=135206241582200&tin=02508201610067®Number=0000000000092660&sum=50000 [13:18:11]OFD Sender: Processing packet 118783 [packets to send 86, broken 85] [13:18:11]ProducePacketName [13:18:11]name=ofd_packets/00118783 [13:18:11]OFD Sender: To server: pG, [13:18:11]CommunicateWithHost lk.salyk.kg:30040 [13:18:11]ConnectInit lk.salyk.kg [13:18:11]written 0, free lines is 4095 [13:18:11]Connected sock=10 [13:18:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7E C2 07 01 BB 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 96 96 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF CF 01 00 35 04 06 00 7A F8 28 00 3C 78 C4 D7 54 AA 39 90 C7 41 [13:18:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1A 0A 47 00 48 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 34 39 33 39 10 04 04 00 FF CF 01 00 F4 03 04 00 24 44 A7 66 B6 04 01 00 00 AA 29 EF F1 07 D7 02 CF [13:18:11]CommunicateWithHost err = 0 [13:18:11]CheckOFDResponse [13:18:11]1017 (14) - 77093643461234 [13:18:11]1041 (16) - 0000000000874939 [13:18:11]1040 (4) - 118783 [13:18:11]1012 (4) - 29.07.2024 07:26 [13:18:11]1206 (1) - 0 [13:18:11]OFD Sender: Remove packet 118783 [13:18:11]ProducePacketName [13:18:11]name=ofd_packets/00118783 [13:18:11]NVStorageDeleteData [13:18:11]Write to MH i2c: 01 00 00 9B 57 F2 [13:18:11]Write i2c OK [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: 01 [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: 01 07 00 [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: 01 07 00 9B 57 00 00 00 00 00 FB 0C 00 [13:18:11]RasterBufferAndPrint [13:18:11]line [13:18:11]line [13:18:11]line [13:18:11]line [13:18:11]line [13:18:11]written 0, free lines is 3332 [13:18:11]MH_Cut [13:18:11]Write to MH i2c: D1 01 00 A2 57 01 CB [13:18:11]Write i2c OK [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: D1 [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: D1 01 00 [13:18:11]MH_I2C_Read... [13:18:11]Read from MH i2c: D1 01 00 A2 57 00 CA [13:18:11]Write to MH i2c: 01 00 00 A3 57 FA [13:18:11]Write i2c OK [13:18:11]MH_I2C_Read... [13:18:12]OFD Sender: No OFD packet to send [13:18:12]*** Cut start [13:18:12]*** Partial cut [13:18:12]*** CUTSNS_PIN = 1 [13:18:12]*** CUTSNS_PIN = 0 [13:18:12]*** Brake cut motor [13:18:13]Read from MH i2c: 01 [13:18:13]MH_I2C_Read... [13:18:13]*** Stop cut motor [13:18:13]*** Cut end [13:18:13]Read from MH i2c: 01 07 00 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: 01 07 00 A3 57 00 00 00 00 00 FF 0F 0F [13:18:13]process_action close_receipt done [13:18:13]requested_data is exist [13:18:13]produce_requested_data [13:18:13]requested_item fm.sn is exist - process it [13:18:13]wFMCommunicate request_size=4 [13:18:13]MH_SAM_APDU [13:18:13]CAPDU: 80 11 00 00 [13:18:13]Write to MH i2c: E2 08 00 A4 57 80 11 00 00 00 00 00 00 75 [13:18:13]Write i2c OK [13:18:13]MH_I2C_Read... [13:18:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:13]Read from MH i2c: E2 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: E2 17 00 [13:18:13]MH_I2C_Read... [13:18:13]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 34 39 33 39 90 00 D0 [13:18:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:18:13]wFMCommunicate OK [13:18:13]requested_item fd.num is exist - process it [13:18:13]SAM_PROTO_GetFieldsCounters [13:18:13]wFMCommunicate request_size=4 [13:18:13]MH_SAM_APDU [13:18:13]CAPDU: 80 13 00 00 [13:18:13]Write to MH i2c: E2 08 00 A5 57 80 13 00 00 00 00 00 00 78 [13:18:13]Write i2c OK [13:18:13]MH_I2C_Read... [13:18:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:13]Read from MH i2c: E2 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: E2 62 00 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: E2 62 00 A5 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FF CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [13:18:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FF CF 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:13]wFMCommunicate OK [13:18:13]SAM_PROTO_GetFieldsCounters done [13:18:13]requested_item shift.num is exist - process it [13:18:13]requested_item shift.opened is exist - process it [13:18:13]req_shift_opened [13:18:13]FM_GetShiftState [13:18:13]SAM_PROTO_GetShiftState [13:18:13]wFMCommunicate request_size=4 [13:18:13]MH_SAM_APDU [13:18:13]CAPDU: 80 13 01 00 [13:18:13]Write to MH i2c: E2 08 00 A6 57 80 13 01 00 00 00 00 00 7A [13:18:13]Write i2c OK [13:18:13]MH_I2C_Read... [13:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:13]Read from MH i2c: E2 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: E2 0E 00 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: E2 0E 00 A6 57 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A8 [13:18:13]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:18:13]wFMCommunicate OK [13:18:13]SAM_PROTO_GetShiftState done [13:18:13]FM_GetShiftState done [13:18:13]req_shift_opened done [13:18:13]requested_item shift.open_date is exist - process it [13:18:13]req_shift_open_date [13:18:13]req_shift_open_date done [13:18:13]produce_requested_data done [13:18:13]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118783,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [13:18:13]process_action_free close_receipt [13:18:13]json_value_free [13:18:13]json_value_free done [13:18:13]process_json_proto returns [13:18:13]Send response to host [13:18:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118783,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [13:18:13]free response buf [13:18:13]execute_script done [13:18:13]execute_script returns [13:18:13]free content buf [13:18:13]Sock 7.Close socket [13:18:13]Sock 7.Thread stoped [13:18:13]accept exits with 9 [13:18:13]New connection [13:18:13]New thread 3067239780 created [13:18:13]Thread 3067383140 joined [13:18:13]Waiting for new connection... [13:18:13] Sock 9.Parse request [13:18:13]Sock 9.Check first char [13:18:13]Sock 9.First char is OK [13:18:13]request: POST /json_proto HTTP/1.0 [13:18:13]Method: POST [13:18:13]URL: /json_proto [13:18:13]Method is POST - this is cgi request [13:18:13]url: /json_proto [13:18:13]query_string will be loaded in cgi processing [13:18:13]execute_cgi json_proto POST (null) [13:18:13]execute_cgi path=json_proto method=POST [13:18:13]POST find Content-Length [13:18:13]Host: 172.17.45.7:8080 [13:18:13]Content-Length: 679 [13:18:13]Content-Type: application/json [13:18:13] [13:18:13]POST finish read [13:18:13]Found Content-Length = 679 [13:18:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:13]execute_script... [13:18:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:13]POST & json_proto [13:18:13]process_json_proto [13:18:13]json parsed OK: [13:18:13]protocol is kg_v1.0 [13:18:13]action value=close_receipt [13:18:13]process_action close_receipt [13:18:13]cmd_close_receipt [13:18:13]MH_GetDate [13:18:13]Write to MH i2c: F0 00 00 A7 57 ED [13:18:13]Write i2c OK [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: F0 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: F0 09 00 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: F0 09 00 A7 57 00 9B 96 A7 66 90 0F 3E 66 77 [13:18:13]GetLastDocTimeStamp 1722259094 [13:18:13]current date 1722259099 [13:18:13]FM_GetShiftState [13:18:13]SAM_PROTO_GetShiftState [13:18:13]wFMCommunicate request_size=4 [13:18:13]MH_SAM_APDU [13:18:13]CAPDU: 80 13 01 00 [13:18:13]Write to MH i2c: E2 08 00 A8 57 80 13 01 00 00 00 00 00 7C [13:18:13]Write i2c OK [13:18:13]MH_I2C_Read... [13:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:13]Read from MH i2c: E2 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: E2 0E 00 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: E2 0E 00 A8 57 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 AA [13:18:13]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:18:13]wFMCommunicate OK [13:18:13]SAM_PROTO_GetShiftState done [13:18:13]FM_GetShiftState done [13:18:13]opened in 1722211641 [13:18:13]opened+sec_in_day 1722298041 [13:18:13]quantity*price = 100050 [13:18:13]sum+1 = 100052 [13:18:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 160 29.07.2024 13:18 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118784 ФПД: 128076684480038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131819&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118784&fm=128076684480038&tin=02508201610067®Number=0000000000092660&sum=100000 [13:18:14]StoreToDocumentArchive [13:18:14]shift 434 fd 118784 [13:18:14]save to /storage/0434/doc_00118784 [13:18:14]save last doc name /storage/0434/doc_00118784 to /storage/kkm_last_doc_name [13:18:14]save OK [13:18:14]Clear old archive folders... [13:18:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:18:14]tlvbuf is 02049440 [13:18:14]SAM_PROTO_ClearQueue [13:18:14]wFMCommunicate request_size=4 [13:18:14]MH_SAM_APDU [13:18:14]CAPDU: 80 09 00 00 [13:18:14]Write to MH i2c: E2 08 00 B5 57 80 09 00 00 00 00 00 00 7E [13:18:14]Write i2c OK [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: E2 [13:18:14]MH_I2C_Read... [13:18:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:14]Read from MH i2c: E2 03 00 [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: E2 03 00 B5 57 00 90 00 80 [13:18:14]RAPDU: 90 00 [13:18:14]wFMCommunicate OK [13:18:14]SAM_PROTO_ClearQueue done [13:18:14]KKMCreateOFDPacket [13:18:14]OFDProtocolAddRootSTLVToBuf [13:18:14]FM_MakeSignedData [13:18:14]FM_MakeSignedData [13:18:14]SAM_PROTO_SignData [13:18:14]wFMCommunicate request_size=4 [13:18:14]MH_SAM_APDU [13:18:14]CAPDU: 80 0D 01 02 [13:18:14]Write to MH i2c: E2 08 00 B6 57 80 0D 01 02 00 00 00 00 86 [13:18:14]Write i2c OK [13:18:14]MH_I2C_Read... [13:18:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:14]Read from MH i2c: E2 [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: E2 03 00 [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: E2 03 00 B6 57 00 90 00 81 [13:18:14]RAPDU: 90 00 [13:18:14]wFMCommunicate OK [13:18:14]wFMCommunicate request_size=255 [13:18:14]MH_SAM_APDU [13:18:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 9B 96 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 D0 01 00 35 04 06 00 74 7C 2D 48 [13:18:14]Write to MH i2c: E2 02 01 B7 57 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 9B 96 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 D0 01 00 35 04 06 00 74 7C 2D 48 00 00 DD [13:18:15]Write i2c OK [13:18:15]MH_I2C_Read... [13:18:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:15]Read from MH i2c: E2 [13:18:15]MH_I2C_Read... [13:18:15]Read from MH i2c: E2 03 00 [13:18:15]MH_I2C_Read... [13:18:15]Read from MH i2c: E2 03 00 B7 57 00 90 00 82 [13:18:15]RAPDU: 90 00 [13:18:15]wFMCommunicate OK [13:18:15]wFMCommunicate request_size=7 [13:18:15]MH_SAM_APDU [13:18:15]CAPDU: 80 0D 02 02 02 4E 26 [13:18:15]Write to MH i2c: E2 0A 00 B8 57 80 0D 02 02 02 00 4E 26 00 00 01 [13:18:15]Write i2c OK [13:18:15]MH_I2C_Read... [13:18:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:15]Read from MH i2c: E2 [13:18:15]MH_I2C_Read... [13:18:15]Read from MH i2c: E2 03 00 [13:18:15]MH_I2C_Read... [13:18:15]Read from MH i2c: E2 03 00 B8 57 00 90 00 83 [13:18:15]RAPDU: 90 00 [13:18:15]wFMCommunicate OK [13:18:15]wFMCommunicate request_size=4 [13:18:15]MH_SAM_APDU [13:18:15]CAPDU: 80 0D 03 02 [13:18:15]Write to MH i2c: E2 08 00 B9 57 80 0D 03 02 00 00 00 00 8B [13:18:15]Write i2c OK [13:18:15]MH_I2C_Read... [13:18:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:15]Read from MH i2c: E2 [13:18:15]MH_I2C_Read... [13:18:15]Read from MH i2c: E2 0B 00 [13:18:15]MH_I2C_Read... [13:18:15]Read from MH i2c: E2 0B 00 B9 57 00 78 5A 80 B9 C3 A1 41 89 90 00 C5 [13:18:15]RAPDU: 78 5A 80 B9 C3 A1 41 89 90 00 [13:18:15]wFMCommunicate OK [13:18:15]SAM_PROTO_SignData done [13:18:15]FM_MakeSignedData done [13:18:15]CreateOFDProtocolMessage [13:18:15]wFMCommunicate request_size=4 [13:18:15]MH_SAM_APDU [13:18:15]CAPDU: 80 11 00 00 [13:18:15]Write to MH i2c: E2 08 00 BA 57 80 11 00 00 00 00 00 00 8B [13:18:15]Write i2c OK [13:18:15]MH_I2C_Read... [13:18:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:15]Read from MH i2c: E2 [13:18:15]MH_I2C_Read... [13:18:15]Read from MH i2c: E2 17 00 [13:18:15]MH_I2C_Read... [13:18:15]Read from MH i2c: E2 17 00 BA 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E6 [13:18:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:18:15]wFMCommunicate OK [13:18:15]CreateOFDProtocolMessage done [13:18:15]OFDSenderStorePacket 118784 [13:18:15]StoreOFDPacket docnum=118784 [13:18:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E2 B5 04 01 F9 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 9B 96 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 D0 01 00 35 04 06 00 74 7C 2D 48 4E 26 78 5A 80 B9 C3 A1 41 89 [13:18:15]CheckFolder [13:18:15]dirname=/storage/ofd_packets [13:18:15]CheckFolder done [13:18:15]ProducePacketName [13:18:15]name=ofd_packets/00118784 [13:18:15]NVStorageSaveData ofd_packets/00118784 [13:18:15]File name is /storage/ofd_packets/00118784 [13:18:15]Write 298 bytes [13:18:15]NVStorageSaveData done [13:18:15]OFDSenderStorePacket done [13:18:15]KKMCreateOFDPacket done [13:18:15]NVStorageSaveData kkm_last_timestamp [13:18:15]File name is /storage/kkm_last_timestamp [13:18:15]Write 4 bytes [13:18:15]NVStorageSaveData done [13:18:15]ExternCall_PrintAddStr [13:18:15]wPrintStart [13:18:15]Write to MH i2c: 01 00 00 BB 57 12 [13:18:15]Write i2c OK [13:18:15]MH_I2C_Read... [13:18:15]Read from MH i2c: 01 [13:18:15]MH_I2C_Read... [13:18:15]Read from MH i2c: 01 07 00 [13:18:15]MH_I2C_Read... [13:18:15]Read from MH i2c: 01 07 00 BB 57 00 00 00 00 00 FF 0F 27 [13:18:15]RasterBufferAndPrint [13:18:15]line Счет N : (1)949668 [13:18:15]line ИНН: 02508201610067 [13:18:15]line Контрольно-Кассовый Чек [13:18:15]line ПРОДАЖА [13:18:15]line ТРК (МРК, ГНК) : 21 [13:18:15]line Товар: 2710194800 [13:18:15]line ДТ-К-5 [13:18:15]line 13.130 * 76.20 [13:18:15]line = 1000.51 [13:18:15]line НДС 12% НСП 1% [13:18:15]line > о реализуемом товаре [13:18:15]line ОКРУГЛЕНИЕ: -0.51 [13:18:15]line ИТОГО: 1000.00 [13:18:15]line Внесено: 1000.00 [13:18:15]line СДАЧА: 0.00 [13:18:15]line НСП 1% : 8.85 [13:18:15]line НДС 12% : 106.25 [13:18:15]line Наличными: 1000.00 [13:18:15]line Безнал.: 0.00 [13:18:15]line Место: АЗС № 134 "Партнер Нефть" [13:18:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:18:15]line СНО: Общий режим [13:18:15]line Чек 160 29.07.2024 13:18 [13:18:15]line Смена: 434 ФФД: 1.0 [13:18:15]line ЗНМ: 0300000044 [13:18:15]line РНМ: 0000000000092660 [13:18:15]line Версия ККМ: 001 [13:18:15]line ФМ: 0000000000874939 [13:18:15]line ФД: 118784 [13:18:15]line ФПД: 128076684480038 [13:18:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131819&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118784&fm=128076684480038&tin=02508201610067®Number=0000000000092660&sum=100000 [13:18:15]written 0, free lines is 4095 [13:18:15]OFD Sender: Processing packet 118784 [packets to send 86, broken 85] [13:18:15]ProducePacketName [13:18:15]name=ofd_packets/00118784 [13:18:15]OFD Sender: To server: pG, [13:18:15]CommunicateWithHost lk.salyk.kg:30040 [13:18:15]ConnectInit lk.salyk.kg [13:18:16]Connected sock=10 [13:18:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E2 B5 04 01 F9 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 9B 96 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 D0 01 00 35 04 06 00 74 7C 2D 48 4E 26 78 5A 80 B9 C3 A1 41 89 [13:18:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B1 2A 47 00 5F 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 34 39 33 39 10 04 04 00 00 D0 01 00 F4 03 04 00 29 44 A7 66 B6 04 01 00 00 91 95 3E 19 D9 7E 5F FF [13:18:16]CommunicateWithHost err = 0 [13:18:16]CheckOFDResponse [13:18:16]1017 (14) - 77093643461234 [13:18:16]1041 (16) - 0000000000874939 [13:18:16]1040 (4) - 118784 [13:18:16]1012 (4) - 29.07.2024 07:26 [13:18:16]1206 (1) - 0 [13:18:16]OFD Sender: Remove packet 118784 [13:18:16]ProducePacketName [13:18:16]name=ofd_packets/00118784 [13:18:16]NVStorageDeleteData [13:18:16]Write to MH i2c: 01 00 00 E5 57 3C [13:18:16]Write i2c OK [13:18:16]MH_I2C_Read... [13:18:16]Read from MH i2c: 01 [13:18:16]MH_I2C_Read... [13:18:16]Read from MH i2c: 01 07 00 [13:18:16]MH_I2C_Read... [13:18:16]Read from MH i2c: 01 07 00 E5 57 00 00 00 00 00 01 0D 51 [13:18:16]RasterBufferAndPrint [13:18:16]line [13:18:16]line [13:18:16]line [13:18:16]line [13:18:16]line [13:18:16]written 0, free lines is 3354 [13:18:16]MH_Cut [13:18:16]Write to MH i2c: D1 01 00 EC 57 01 15 [13:18:16]Write i2c OK [13:18:16]MH_I2C_Read... [13:18:16]Read from MH i2c: D1 [13:18:16]MH_I2C_Read... [13:18:16]Read from MH i2c: D1 01 00 [13:18:16]MH_I2C_Read... [13:18:16]Read from MH i2c: D1 01 00 EC 57 00 14 [13:18:16]Write to MH i2c: 01 00 00 ED 57 44 [13:18:16]Write i2c OK [13:18:16]MH_I2C_Read... [13:18:16]OFD Sender: No OFD packet to send [13:18:17]*** Cut start [13:18:17]*** Partial cut [13:18:17]*** CUTSNS_PIN = 1 [13:18:17]*** CUTSNS_PIN = 0 [13:18:17]*** Brake cut motor [13:18:17]Read from MH i2c: 01 [13:18:17]MH_I2C_Read... [13:18:17]*** Stop cut motor [13:18:17]*** Cut end [13:18:17]Read from MH i2c: 01 07 00 [13:18:17]MH_I2C_Read... [13:18:17]Read from MH i2c: 01 07 00 ED 57 00 00 00 00 00 FF 0F 59 [13:18:17]process_action close_receipt done [13:18:17]requested_data is exist [13:18:17]produce_requested_data [13:18:17]requested_item fm.sn is exist - process it [13:18:17]wFMCommunicate request_size=4 [13:18:17]MH_SAM_APDU [13:18:17]CAPDU: 80 11 00 00 [13:18:17]Write to MH i2c: E2 08 00 EE 57 80 11 00 00 00 00 00 00 BF [13:18:17]Write i2c OK [13:18:17]MH_I2C_Read... [13:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:17]Read from MH i2c: E2 [13:18:17]MH_I2C_Read... [13:18:17]Read from MH i2c: E2 17 00 [13:18:17]MH_I2C_Read... [13:18:17]Read from MH i2c: E2 17 00 EE 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1A [13:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:18:17]wFMCommunicate OK [13:18:17]requested_item fd.num is exist - process it [13:18:17]SAM_PROTO_GetFieldsCounters [13:18:17]wFMCommunicate request_size=4 [13:18:17]MH_SAM_APDU [13:18:17]CAPDU: 80 13 00 00 [13:18:17]Write to MH i2c: E2 08 00 EF 57 80 13 00 00 00 00 00 00 C2 [13:18:17]Write i2c OK [13:18:17]MH_I2C_Read... [13:18:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:17]Read from MH i2c: E2 [13:18:17]MH_I2C_Read... [13:18:17]Read from MH i2c: E2 62 00 [13:18:17]MH_I2C_Read... [13:18:17]Read from MH i2c: E2 62 00 EF 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 00 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [13:18: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 00 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:17]wFMCommunicate OK [13:18:17]SAM_PROTO_GetFieldsCounters done [13:18:17]requested_item shift.num is exist - process it [13:18:17]requested_item shift.opened is exist - process it [13:18:17]req_shift_opened [13:18:17]FM_GetShiftState [13:18:17]SAM_PROTO_GetShiftState [13:18:17]wFMCommunicate request_size=4 [13:18:17]MH_SAM_APDU [13:18:17]CAPDU: 80 13 01 00 [13:18:17]Write to MH i2c: E2 08 00 F0 57 80 13 01 00 00 00 00 00 C4 [13:18:17]Write i2c OK [13:18:17]MH_I2C_Read... [13:18:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:18]Read from MH i2c: E2 [13:18:18]MH_I2C_Read... [13:18:18]Read from MH i2c: E2 0E 00 [13:18:18]MH_I2C_Read... [13:18:18]Read from MH i2c: E2 0E 00 F0 57 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F2 [13:18:18]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:18:18]wFMCommunicate OK [13:18:18]SAM_PROTO_GetShiftState done [13:18:18]FM_GetShiftState done [13:18:18]req_shift_opened done [13:18:18]requested_item shift.open_date is exist - process it [13:18:18]req_shift_open_date [13:18:18]req_shift_open_date done [13:18:18]produce_requested_data done [13:18:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118784,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [13:18:18]process_action_free close_receipt [13:18:18]json_value_free [13:18:18]json_value_free done [13:18:18]process_json_proto returns [13:18:18]Send response to host [13:18:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118784,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [13:18:18]free response buf [13:18:18]execute_script done [13:18:18]execute_script returns [13:18:18]free content buf [13:18:18]Sock 9.Close socket [13:18:18]Sock 9.Thread stoped [13:18:21]OFD Sender: No OFD packet to send [13:18:26]OFD Sender: No OFD packet to send [13:18:31]OFD Sender: No OFD packet to send [13:18:36]OFD Sender: No OFD packet to send [13:18:41]OFD Sender: No OFD packet to send [13:18:46]OFD Sender: No OFD packet to send [13:18:51]OFD Sender: No OFD packet to send [13:18:56]OFD Sender: No OFD packet to send [13:19:01]OFD Sender: No OFD packet to send [13:19:06]OFD Sender: No OFD packet to send [13:19:11]OFD Sender: No OFD packet to send [13:19:16]OFD Sender: No OFD packet to send [13:19:21]OFD Sender: No OFD packet to send [13:19:26]OFD Sender: No OFD packet to send [13:19:31]OFD Sender: No OFD packet to send [13:19:36]OFD Sender: No OFD packet to send [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:32]OFD Sender: No OFD packet to send [13:20:37]OFD Sender: No OFD packet to send [13:20:42]OFD Sender: No OFD packet to send [13:20:47]OFD Sender: No OFD packet to send [13:20:52]OFD Sender: No OFD packet to send [13:20:57]OFD Sender: No OFD packet to send [13:21:02]OFD Sender: No OFD packet to send [13:21:07]OFD Sender: No OFD packet to send [13:21:12]OFD Sender: No OFD packet to send [13:21:17]OFD Sender: No OFD packet to send [13:21:22]OFD Sender: No OFD packet to send [13:21:23]accept exits with 7 [13:21:23]New connection [13:21:23]New thread 3067383140 created [13:21:23]Thread 3067239780 joined [13:21:23]Waiting for new connection... [13:21:23] Sock 7.Parse request [13:21:23]Sock 7.Check first char [13:21:23]Sock 7.First char is OK [13:21:23]request: POST /json_proto HTTP/1.0 [13:21:23]Method: POST [13:21:23]URL: /json_proto [13:21:23]Method is POST - this is cgi request [13:21:23]url: /json_proto [13:21:23]query_string will be loaded in cgi processing [13:21:23]execute_cgi json_proto POST (null) [13:21:23]execute_cgi path=json_proto method=POST [13:21:23]POST find Content-Length [13:21:23]Host: 172.17.45.7:8080 [13:21:23]Content-Length: 677 [13:21:23]Content-Type: application/json [13:21:23] [13:21:23]POST finish read [13:21:23]Found Content-Length = 677 [13:21:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:23]execute_script... [13:21:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:23]POST & json_proto [13:21:23]process_json_proto [13:21:23]json parsed OK: [13:21:23]protocol is kg_v1.0 [13:21:23]action value=close_receipt [13:21:23]process_action close_receipt [13:21:23]cmd_close_receipt [13:21:23]MH_GetDate [13:21:23]Write to MH i2c: F0 00 00 F1 57 37 [13:21:23]Write i2c OK [13:21:23]MH_I2C_Read... [13:21:23]Read from MH i2c: F0 [13:21:23]MH_I2C_Read... [13:21:23]Read from MH i2c: F0 09 00 [13:21:23]MH_I2C_Read... [13:21:23]Read from MH i2c: F0 09 00 F1 57 00 59 97 A7 66 90 0F 3E 66 80 [13:21:23]GetLastDocTimeStamp 1722259099 [13:21:23]current date 1722259289 [13:21:23]FM_GetShiftState [13:21:23]SAM_PROTO_GetShiftState [13:21:23]wFMCommunicate request_size=4 [13:21:23]MH_SAM_APDU [13:21:23]CAPDU: 80 13 01 00 [13:21:23]Write to MH i2c: E2 08 00 F2 57 80 13 01 00 00 00 00 00 C6 [13:21:23]Write i2c OK [13:21:23]MH_I2C_Read... [13:21:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:23]Read from MH i2c: E2 [13:21:23]MH_I2C_Read... [13:21:23]Read from MH i2c: E2 0E 00 [13:21:23]MH_I2C_Read... [13:21:23]Read from MH i2c: E2 0E 00 F2 57 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F4 [13:21:23]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:21:23]wFMCommunicate OK [13:21:23]SAM_PROTO_GetShiftState done [13:21:23]FM_GetShiftState done [13:21:23]opened in 1722211641 [13:21:23]opened+sec_in_day 1722298041 [13:21:23]quantity*price = 60003 [13:21:23]sum+1 = 60004 [13:21:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 161 29.07.2024 13:21 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118785 ФПД: 212843752490286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T132129&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118785&fm=212843752490286&tin=02508201610067®Number=0000000000092660&sum=60000 [13:21:24]StoreToDocumentArchive [13:21:24]shift 434 fd 118785 [13:21:24]save to /storage/0434/doc_00118785 [13:21:24]save last doc name /storage/0434/doc_00118785 to /storage/kkm_last_doc_name [13:21:24]save OK [13:21:24]Clear old archive folders... [13:21:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:21:24]tlvbuf is 02052810 [13:21:24]SAM_PROTO_ClearQueue [13:21:24]wFMCommunicate request_size=4 [13:21:24]MH_SAM_APDU [13:21:24]CAPDU: 80 09 00 00 [13:21:24]Write to MH i2c: E2 08 00 FF 57 80 09 00 00 00 00 00 00 C8 [13:21:24]Write i2c OK [13:21:24]MH_I2C_Read... [13:21:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:24]Read from MH i2c: E2 [13:21:24]MH_I2C_Read... [13:21:24]Read from MH i2c: E2 03 00 [13:21:24]MH_I2C_Read... [13:21:24]Read from MH i2c: E2 03 00 FF 57 00 90 00 CA [13:21:24]RAPDU: 90 00 [13:21:24]wFMCommunicate OK [13:21:24]SAM_PROTO_ClearQueue done [13:21:24]KKMCreateOFDPacket [13:21:24]OFDProtocolAddRootSTLVToBuf [13:21:24]FM_MakeSignedData [13:21:24]FM_MakeSignedData [13:21:24]SAM_PROTO_SignData [13:21:24]wFMCommunicate request_size=4 [13:21:24]MH_SAM_APDU [13:21:24]CAPDU: 80 0D 01 02 [13:21:24]Write to MH i2c: E2 08 00 00 58 80 0D 01 02 00 00 00 00 D1 [13:21:24]Write i2c OK [13:21:24]MH_I2C_Read... [13:21:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:24]Read from MH i2c: E2 [13:21:24]MH_I2C_Read... [13:21:24]Read from MH i2c: E2 03 00 [13:21:24]MH_I2C_Read... [13:21:24]Read from MH i2c: E2 03 00 00 58 00 90 00 CC [13:21:24]RAPDU: 90 00 [13:21:24]wFMCommunicate OK [13:21:24]wFMCommunicate request_size=255 [13:21:24]MH_SAM_APDU [13:21:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 59 97 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 01 D0 01 00 35 04 06 00 C1 [13:21:24]Write to MH i2c: E2 02 01 01 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 59 97 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 01 D0 01 00 35 04 06 00 C1 00 00 00 [13:21:24]Write i2c OK [13:21:24]MH_I2C_Read... [13:21:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:25]Read from MH i2c: E2 [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: E2 03 00 [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: E2 03 00 01 58 00 90 00 CD [13:21:25]RAPDU: 90 00 [13:21:25]wFMCommunicate OK [13:21:25]wFMCommunicate request_size=10 [13:21:25]MH_SAM_APDU [13:21:25]CAPDU: 80 0D 02 02 05 94 8C 42 85 2E [13:21:25]Write to MH i2c: E2 0D 00 02 58 80 0D 02 02 05 00 94 8C 42 85 2E 00 00 F3 [13:21:25]Write i2c OK [13:21:25]MH_I2C_Read... [13:21:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:25]Read from MH i2c: E2 [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: E2 03 00 [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: E2 03 00 02 58 00 90 00 CE [13:21:25]RAPDU: 90 00 [13:21:25]wFMCommunicate OK [13:21:25]wFMCommunicate request_size=4 [13:21:25]MH_SAM_APDU [13:21:25]CAPDU: 80 0D 03 02 [13:21:25]Write to MH i2c: E2 08 00 03 58 80 0D 03 02 00 00 00 00 D6 [13:21:25]Write i2c OK [13:21:25]MH_I2C_Read... [13:21:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:25]Read from MH i2c: E2 [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: E2 0B 00 [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: E2 0B 00 03 58 00 E5 1F 1A CC 98 89 F4 9A 90 00 70 [13:21:25]RAPDU: E5 1F 1A CC 98 89 F4 9A 90 00 [13:21:25]wFMCommunicate OK [13:21:25]SAM_PROTO_SignData done [13:21:25]FM_MakeSignedData done [13:21:25]CreateOFDProtocolMessage [13:21:25]wFMCommunicate request_size=4 [13:21:25]MH_SAM_APDU [13:21:25]CAPDU: 80 11 00 00 [13:21:25]Write to MH i2c: E2 08 00 04 58 80 11 00 00 00 00 00 00 D6 [13:21:25]Write i2c OK [13:21:25]MH_I2C_Read... [13:21:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:25]Read from MH i2c: E2 [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: E2 17 00 [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: E2 17 00 04 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 31 [13:21:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:21:25]wFMCommunicate OK [13:21:25]CreateOFDProtocolMessage done [13:21:25]OFDSenderStorePacket 118785 [13:21:25]StoreOFDPacket docnum=118785 [13:21:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4E C2 07 01 7D 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 59 97 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 01 D0 01 00 35 04 06 00 C1 94 8C 42 85 2E E5 1F 1A CC 98 89 F4 9A [13:21:25]CheckFolder [13:21:25]dirname=/storage/ofd_packets [13:21:25]CheckFolder done [13:21:25]ProducePacketName [13:21:25]name=ofd_packets/00118785 [13:21:25]NVStorageSaveData ofd_packets/00118785 [13:21:25]File name is /storage/ofd_packets/00118785 [13:21:25]Write 301 bytes [13:21:25]NVStorageSaveData done [13:21:25]OFDSenderStorePacket done [13:21:25]KKMCreateOFDPacket done [13:21:25]NVStorageSaveData kkm_last_timestamp [13:21:25]File name is /storage/kkm_last_timestamp [13:21:25]Write 4 bytes [13:21:25]NVStorageSaveData done [13:21:25]ExternCall_PrintAddStr [13:21:25]wPrintStart [13:21:25]Write to MH i2c: 01 00 00 05 58 5D [13:21:25]Write i2c OK [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: 01 [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: 01 07 00 [13:21:25]MH_I2C_Read... [13:21:25]Read from MH i2c: 01 07 00 05 58 00 00 00 00 00 FF 0F 72 [13:21:25]RasterBufferAndPrint [13:21:25]line Счет N : (1)949671 [13:21:25]line ИНН: 02508201610067 [13:21:25]line Контрольно-Кассовый Чек [13:21:25]line ПРОДАЖА [13:21:25]line ТРК (МРК, ГНК) : 41 [13:21:25]line Товар: 2710124130 [13:21:25]line Аи-92-К-4 [13:21:25]line 8.850 * 67.80 [13:21:25]line = 600.03 [13:21:25]line НДС 12% НСП 1% [13:21:25]line > о реализуемом товаре [13:21:25]line ОКРУГЛЕНИЕ: -0.03 [13:21:25]line ИТОГО: 600.00 [13:21:25]line Внесено: 600.00 [13:21:25]line СДАЧА: 0.00 [13:21:25]line НСП 1% : 5.31 [13:21:25]line НДС 12% : 63.72 [13:21:25]line Наличными: 600.00 [13:21:25]line Безнал.: 0.00 [13:21:25]line Место: АЗС № 134 "Партнер Нефть" [13:21:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:21:25]line СНО: Общий режим [13:21:25]line Чек 161 29.07.2024 13:21 [13:21:25]line Смена: 434 ФФД: 1.0 [13:21:25]line ЗНМ: 0300000044 [13:21:25]line РНМ: 0000000000092660 [13:21:25]line Версия ККМ: 001 [13:21:25]line ФМ: 0000000000874939 [13:21:25]line ФД: 118785 [13:21:25]line ФПД: 212843752490286 [13:21:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T132129&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118785&fm=212843752490286&tin=02508201610067®Number=0000000000092660&sum=60000 [13:21:25]OFD Sender: Processing packet 118785 [packets to send 86, broken 85] [13:21:25]ProducePacketName [13:21:25]name=ofd_packets/00118785 [13:21:25]OFD Sender: To server: pG, [13:21:25]CommunicateWithHost lk.salyk.kg:30040 [13:21:25]ConnectInit lk.salyk.kg [13:21:25]written 0, free lines is 4095 [13:21:25]Connected sock=10 [13:21:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4E C2 07 01 7D 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 59 97 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 01 D0 01 00 35 04 06 00 C1 94 8C 42 85 2E E5 1F 1A CC 98 89 F4 9A [13:21:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7F 55 47 00 42 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 34 39 33 39 10 04 04 00 01 D0 01 00 F4 03 04 00 E7 44 A7 66 B6 04 01 00 00 EB DB 54 BF F8 27 95 59 [13:21:25]CommunicateWithHost err = 0 [13:21:25]CheckOFDResponse [13:21:25]1017 (14) - 77093643461234 [13:21:25]1041 (16) - 0000000000874939 [13:21:25]1040 (4) - 118785 [13:21:25]1012 (4) - 29.07.2024 07:29 [13:21:25]1206 (1) - 0 [13:21:25]OFD Sender: Remove packet 118785 [13:21:25]ProducePacketName [13:21:25]name=ofd_packets/00118785 [13:21:25]NVStorageDeleteData [13:21:26]Write to MH i2c: 01 00 00 2F 58 87 [13:21:26]Write i2c OK [13:21:26]MH_I2C_Read... [13:21:26]Read from MH i2c: 01 [13:21:26]MH_I2C_Read... [13:21:26]Read from MH i2c: 01 07 00 [13:21:26]MH_I2C_Read... [13:21:26]Read from MH i2c: 01 07 00 2F 58 00 00 00 00 00 D5 0C 6F [13:21:26]RasterBufferAndPrint [13:21:26]line [13:21:26]line [13:21:26]line [13:21:26]line [13:21:26]line [13:21:26]written 0, free lines is 3293 [13:21:26]MH_Cut [13:21:26]Write to MH i2c: D1 01 00 36 58 01 60 [13:21:26]Write i2c OK [13:21:26]MH_I2C_Read... [13:21:26]Read from MH i2c: D1 [13:21:26]MH_I2C_Read... [13:21:26]Read from MH i2c: D1 01 00 [13:21:26]MH_I2C_Read... [13:21:26]Read from MH i2c: D1 01 00 36 58 00 5F [13:21:26]Write to MH i2c: 01 00 00 37 58 8F [13:21:26]Write i2c OK [13:21:26]MH_I2C_Read... [13:21:26]OFD Sender: No OFD packet to send [13:21:26]*** Cut start [13:21:26]*** Partial cut [13:21:26]*** CUTSNS_PIN = 1 [13:21:26]*** CUTSNS_PIN = 0 [13:21:27]*** Brake cut motor [13:21:27]Read from MH i2c: 01 [13:21:27]MH_I2C_Read... [13:21:27]*** Stop cut motor [13:21:27]*** Cut end [13:21:27]Read from MH i2c: 01 07 00 [13:21:27]MH_I2C_Read... [13:21:27]Read from MH i2c: 01 07 00 37 58 00 00 00 00 00 FF 0F A4 [13:21:27]process_action close_receipt done [13:21:27]requested_data is exist [13:21:27]produce_requested_data [13:21:27]requested_item fm.sn is exist - process it [13:21:27]wFMCommunicate request_size=4 [13:21:27]MH_SAM_APDU [13:21:27]CAPDU: 80 11 00 00 [13:21:27]Write to MH i2c: E2 08 00 38 58 80 11 00 00 00 00 00 00 0A [13:21:27]Write i2c OK [13:21:27]MH_I2C_Read... [13:21:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:27]Read from MH i2c: E2 [13:21:27]MH_I2C_Read... [13:21:27]Read from MH i2c: E2 17 00 [13:21:27]MH_I2C_Read... [13:21:27]Read from MH i2c: E2 17 00 38 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 65 [13:21:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:21:27]wFMCommunicate OK [13:21:27]requested_item fd.num is exist - process it [13:21:27]SAM_PROTO_GetFieldsCounters [13:21:27]wFMCommunicate request_size=4 [13:21:27]MH_SAM_APDU [13:21:27]CAPDU: 80 13 00 00 [13:21:27]Write to MH i2c: E2 08 00 39 58 80 13 00 00 00 00 00 00 0D [13:21:27]Write i2c OK [13:21:27]MH_I2C_Read... [13:21:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:27]Read from MH i2c: E2 [13:21:27]MH_I2C_Read... [13:21:27]Read from MH i2c: E2 62 00 [13:21:27]MH_I2C_Read... [13:21:27]Read from MH i2c: E2 62 00 39 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 01 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [13:21: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 01 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:21:27]wFMCommunicate OK [13:21:27]SAM_PROTO_GetFieldsCounters done [13:21:27]requested_item shift.num is exist - process it [13:21:27]requested_item shift.opened is exist - process it [13:21:27]req_shift_opened [13:21:27]FM_GetShiftState [13:21:27]SAM_PROTO_GetShiftState [13:21:27]wFMCommunicate request_size=4 [13:21:27]MH_SAM_APDU [13:21:27]CAPDU: 80 13 01 00 [13:21:27]Write to MH i2c: E2 08 00 3A 58 80 13 01 00 00 00 00 00 0F [13:21:27]Write i2c OK [13:21:27]MH_I2C_Read... [13:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:27]Read from MH i2c: E2 [13:21:27]MH_I2C_Read... [13:21:27]Read from MH i2c: E2 0E 00 [13:21:27]MH_I2C_Read... [13:21:27]Read from MH i2c: E2 0E 00 3A 58 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 3D [13:21:27]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:21:27]wFMCommunicate OK [13:21:27]SAM_PROTO_GetShiftState done [13:21:27]FM_GetShiftState done [13:21:27]req_shift_opened done [13:21:27]requested_item shift.open_date is exist - process it [13:21:27]req_shift_open_date [13:21:27]req_shift_open_date done [13:21:27]produce_requested_data done [13:21:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118785,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [13:21:27]process_action_free close_receipt [13:21:27]json_value_free [13:21:27]json_value_free done [13:21:27]process_json_proto returns [13:21:27]Send response to host [13:21:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118785,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [13:21:27]free response buf [13:21:27]execute_script done [13:21:27]execute_script returns [13:21:27]free content buf [13:21:27]Sock 7.Close socket [13:21:27]Sock 7.Thread stoped [13:21:31]OFD Sender: No OFD packet to send [13:21:36]OFD Sender: No OFD packet to send [13:21:41]OFD Sender: No OFD packet to send [13:21:46]OFD Sender: No OFD packet to send [13:21:51]OFD Sender: No OFD packet to send [13:21:56]OFD Sender: No OFD packet to send [13:22:01]OFD Sender: No OFD packet to send [13:22:06]OFD Sender: No OFD packet to send [13:22:11]OFD Sender: No OFD packet to send [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:31]OFD Sender: No OFD packet to send [13:24:36]OFD Sender: No OFD packet to send [13:24:41]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:11]OFD Sender: No OFD packet to send [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]accept exits with 9 [13:29:16]New connection [13:29:16]New thread 3067239780 created [13:29:16]Thread 3067383140 joined [13:29:16]Waiting for new connection... [13:29:16] Sock 9.Parse request [13:29:16]Sock 9.Check first char [13:29:16]Sock 9.First char is OK [13:29:16]request: POST /json_proto HTTP/1.0 [13:29:16]Method: POST [13:29:16]URL: /json_proto [13:29:16]Method is POST - this is cgi request [13:29:16]url: /json_proto [13:29:16]query_string will be loaded in cgi processing [13:29:16]execute_cgi json_proto POST (null) [13:29:16]execute_cgi path=json_proto method=POST [13:29:16]POST find Content-Length [13:29:16]Host: 172.17.45.7:8080 [13:29:16]Content-Length: 819 [13:29:16]Content-Type: application/json [13:29:16] [13:29:16]POST finish read [13:29:16]Found Content-Length = 819 [13:29:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 34.650, "sum" : 2640.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 2640.00, "payments": [ { "type": 1, "sum" : 2640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:16]execute_script... [13:29: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)949672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 34.650, "sum" : 2640.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 2640.00, "payments": [ { "type": 1, "sum" : 2640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:16]POST & json_proto [13:29:16]process_json_proto [13:29:16]json parsed OK: [13:29:16]protocol is kg_v1.0 [13:29:16]action value=close_receipt [13:29:16]process_action close_receipt [13:29:16]cmd_close_receipt [13:29:16]MH_GetDate [13:29:16]Write to MH i2c: F0 00 00 3B 58 82 [13:29:16]Write i2c OK [13:29:16]MH_I2C_Read... [13:29:16]Read from MH i2c: F0 [13:29:16]MH_I2C_Read... [13:29:16]Read from MH i2c: F0 09 00 [13:29:16]MH_I2C_Read... [13:29:16]Read from MH i2c: F0 09 00 3B 58 00 31 99 A7 66 90 0F 3E 66 A5 [13:29:16]GetLastDocTimeStamp 1722259289 [13:29:16]current date 1722259761 [13:29:16]FM_GetShiftState [13:29:16]SAM_PROTO_GetShiftState [13:29:16]wFMCommunicate request_size=4 [13:29:16]MH_SAM_APDU [13:29:16]CAPDU: 80 13 01 00 [13:29:16]Write to MH i2c: E2 08 00 3C 58 80 13 01 00 00 00 00 00 11 [13:29:16]Write i2c OK [13:29:16]MH_I2C_Read... [13:29:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:16]Read from MH i2c: E2 [13:29:16]MH_I2C_Read... [13:29:16]Read from MH i2c: E2 0E 00 [13:29:16]MH_I2C_Read... [13:29:16]Read from MH i2c: E2 0E 00 3C 58 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 3F [13:29:16]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:29:16]wFMCommunicate OK [13:29:16]SAM_PROTO_GetShiftState done [13:29:16]FM_GetShiftState done [13:29:16]opened in 1722211641 [13:29:16]opened+sec_in_day 1722298041 [13:29:16]quantity*price = 264033 [13:29:16]sum+1 = 264034 [13:29:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 2640.00 НСП 1% : 23.37 НДС 12% : 280.39 Наличными: 0.00 Безнал.: 2640.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 162 29.07.2024 13:29 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118786 ФПД: 1395158789739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T132922&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118786&fm=1395158789739&tin=02508201610067®Number=0000000000092660&sum=264000 [13:29:17]StoreToDocumentArchive [13:29:17]shift 434 fd 118786 [13:29:17]save to /storage/0434/doc_00118786 [13:29:17]save last doc name /storage/0434/doc_00118786 to /storage/kkm_last_doc_name [13:29:17]save OK [13:29:17]Clear old archive folders... [13:29:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:29:17]tlvbuf is 01F74320 [13:29:17]SAM_PROTO_ClearQueue [13:29:17]wFMCommunicate request_size=4 [13:29:17]MH_SAM_APDU [13:29:17]CAPDU: 80 09 00 00 [13:29:17]Write to MH i2c: E2 08 00 49 58 80 09 00 00 00 00 00 00 13 [13:29:17]Write i2c OK [13:29:17]MH_I2C_Read... [13:29:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:17]Read from MH i2c: E2 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 03 00 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 03 00 49 58 00 90 00 15 [13:29:17]RAPDU: 90 00 [13:29:17]wFMCommunicate OK [13:29:17]SAM_PROTO_ClearQueue done [13:29:17]KKMCreateOFDPacket [13:29:17]OFDProtocolAddRootSTLVToBuf [13:29:17]FM_MakeSignedData [13:29:17]FM_MakeSignedData [13:29:17]SAM_PROTO_SignData [13:29:17]wFMCommunicate request_size=4 [13:29:17]MH_SAM_APDU [13:29:17]CAPDU: 80 0D 01 02 [13:29:17]Write to MH i2c: E2 08 00 4A 58 80 0D 01 02 00 00 00 00 1B [13:29:17]Write i2c OK [13:29:17]MH_I2C_Read... [13:29:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:17]Read from MH i2c: E2 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 03 00 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 03 00 4A 58 00 90 00 16 [13:29:17]RAPDU: 90 00 [13:29:17]wFMCommunicate OK [13:29:17]wFMCommunicate request_size=255 [13:29:17]MH_SAM_APDU [13:29:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 87 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 61 07 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 07 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 6D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 07 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 32 99 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 D0 01 00 35 04 06 00 01 44 D5 F1 [13:29:17]Write to MH i2c: E2 02 01 4B 58 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 87 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 61 07 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 07 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 6D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 07 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 32 99 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 D0 01 00 35 04 06 00 01 44 D5 F1 00 00 70 [13:29:17]Write i2c OK [13:29:17]MH_I2C_Read... [13:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:17]Read from MH i2c: E2 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 03 00 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 03 00 4B 58 00 90 00 17 [13:29:17]RAPDU: 90 00 [13:29:17]wFMCommunicate OK [13:29:17]wFMCommunicate request_size=7 [13:29:17]MH_SAM_APDU [13:29:17]CAPDU: 80 0D 02 02 02 AE 6B [13:29:17]Write to MH i2c: E2 0A 00 4C 58 80 0D 02 02 02 00 AE 6B 00 00 3B [13:29:17]Write i2c OK [13:29:17]MH_I2C_Read... [13:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:17]Read from MH i2c: E2 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 03 00 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 03 00 4C 58 00 90 00 18 [13:29:17]RAPDU: 90 00 [13:29:17]wFMCommunicate OK [13:29:17]wFMCommunicate request_size=4 [13:29:17]MH_SAM_APDU [13:29:17]CAPDU: 80 0D 03 02 [13:29:17]Write to MH i2c: E2 08 00 4D 58 80 0D 03 02 00 00 00 00 20 [13:29:17]Write i2c OK [13:29:17]MH_I2C_Read... [13:29:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:17]Read from MH i2c: E2 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 0B 00 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 0B 00 4D 58 00 5B A0 42 B9 77 8C E6 F3 90 00 F3 [13:29:17]RAPDU: 5B A0 42 B9 77 8C E6 F3 90 00 [13:29:17]wFMCommunicate OK [13:29:17]SAM_PROTO_SignData done [13:29:17]FM_MakeSignedData done [13:29:17]CreateOFDProtocolMessage [13:29:17]wFMCommunicate request_size=4 [13:29:17]MH_SAM_APDU [13:29:17]CAPDU: 80 11 00 00 [13:29:17]Write to MH i2c: E2 08 00 4E 58 80 11 00 00 00 00 00 00 20 [13:29:17]Write i2c OK [13:29:17]MH_I2C_Read... [13:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:17]Read from MH i2c: E2 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 17 00 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 17 00 4E 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7B [13:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:29:17]wFMCommunicate OK [13:29:17]CreateOFDProtocolMessage done [13:29:17]OFDSenderStorePacket 118786 [13:29:17]StoreOFDPacket docnum=118786 [13:29:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 16 74 04 01 2F FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 87 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 61 07 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 07 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 6D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 07 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 32 99 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 D0 01 00 35 04 06 00 01 44 D5 F1 AE 6B 5B A0 42 B9 77 8C E6 F3 [13:29:17]CheckFolder [13:29:17]dirname=/storage/ofd_packets [13:29:17]CheckFolder done [13:29:17]ProducePacketName [13:29:17]name=ofd_packets/00118786 [13:29:17]NVStorageSaveData ofd_packets/00118786 [13:29:17]File name is /storage/ofd_packets/00118786 [13:29:17]Write 298 bytes [13:29:17]NVStorageSaveData done [13:29:17]OFDSenderStorePacket done [13:29:17]KKMCreateOFDPacket done [13:29:17]NVStorageSaveData kkm_last_timestamp [13:29:17]File name is /storage/kkm_last_timestamp [13:29:17]Write 4 bytes [13:29:17]NVStorageSaveData done [13:29:17]ExternCall_PrintAddStr [13:29:17]wPrintStart [13:29:17]Write to MH i2c: 01 00 00 4F 58 A7 [13:29:17]Write i2c OK [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: 01 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: 01 07 00 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: 01 07 00 4F 58 00 00 00 00 00 FF 0F BC [13:29:17]RasterBufferAndPrint [13:29:17]line Счет N : (1)949672 [13:29:17]line ИНН: 02508201610067 [13:29:17]line Контрольно-Кассовый Чек [13:29:17]line ПРОДАЖА [13:29:17]line ТРК (МРК, ГНК) : 44 [13:29:17]line Товар: 2710194800 [13:29:17]line ДТ-К-5 [13:29:17]line 34.650 * 76.20 [13:29:17]line = 2640.33 [13:29:17]line НДС 12% НСП 1% [13:29:17]line > о реализуемом товаре [13:29:17]line ОКРУГЛЕНИЕ: -0.33 [13:29:17]line ИТОГО: 2640.00 [13:29:17]line НСП 1% : 23.37 [13:29:17]line НДС 12% : 280.39 [13:29:17]line Наличными: 0.00 [13:29:17]line Безнал.: 2640.00 [13:29:17]line Место: АЗС № 134 "Партнер Нефть" [13:29:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:29:17]line СНО: Общий режим [13:29:17]line Чек 162 29.07.2024 13:29 [13:29:17]line Смена: 434 ФФД: 1.0 [13:29:17]line ЗНМ: 0300000044 [13:29:17]line РНМ: 0000000000092660 [13:29:17]line Версия ККМ: 001 [13:29:17]line Платежная система: O! деньги [13:29:17]line ФМ: 0000000000874939 [13:29:17]line ФД: 118786 [13:29:17]line ФПД: 1395158789739 [13:29:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T132922&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118786&fm=1395158789739&tin=02508201610067®Number=0000000000092660&sum=264000 [13:29:18]OFD Sender: Processing packet 118786 [packets to send 86, broken 85] [13:29:18]ProducePacketName [13:29:18]name=ofd_packets/00118786 [13:29:18]OFD Sender: To server: pG, [13:29:18]CommunicateWithHost lk.salyk.kg:30040 [13:29:18]ConnectInit lk.salyk.kg [13:29:18]written 0, free lines is 4095 [13:29:18]Connected sock=10 [13:29:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 16 74 04 01 2F FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 87 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 61 07 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 07 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 6D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 07 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 32 99 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 D0 01 00 35 04 06 00 01 44 D5 F1 AE 6B 5B A0 42 B9 77 8C E6 F3 [13:29:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E9 27 47 00 AC 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 34 39 33 39 10 04 04 00 02 D0 01 00 F4 03 04 00 BF 46 A7 66 B6 04 01 00 00 46 D6 2F 63 07 DB DD F8 [13:29:18]CommunicateWithHost err = 0 [13:29:18]CheckOFDResponse [13:29:18]1017 (14) - 77093643461234 [13:29:18]1041 (16) - 0000000000874939 [13:29:18]1040 (4) - 118786 [13:29:18]1012 (4) - 29.07.2024 07:37 [13:29:18]1206 (1) - 0 [13:29:18]OFD Sender: Remove packet 118786 [13:29:18]ProducePacketName [13:29:18]name=ofd_packets/00118786 [13:29:18]NVStorageDeleteData [13:29:18]Write to MH i2c: 01 00 00 79 58 D1 [13:29:18]Write i2c OK [13:29:18]MH_I2C_Read... [13:29:18]Read from MH i2c: 01 [13:29:18]MH_I2C_Read... [13:29:18]Read from MH i2c: 01 07 00 [13:29:18]MH_I2C_Read... [13:29:18]Read from MH i2c: 01 07 00 79 58 00 00 00 00 00 DC 0C C0 [13:29:18]RasterBufferAndPrint [13:29:18]line [13:29:18]line [13:29:18]line [13:29:18]line [13:29:18]line [13:29:18]written 0, free lines is 3298 [13:29:18]MH_Cut [13:29:18]Write to MH i2c: D1 01 00 80 58 01 AA [13:29:18]Write i2c OK [13:29:18]MH_I2C_Read... [13:29:18]Read from MH i2c: D1 [13:29:18]MH_I2C_Read... [13:29:18]Read from MH i2c: D1 01 00 [13:29:18]MH_I2C_Read... [13:29:18]Read from MH i2c: D1 01 00 80 58 00 A9 [13:29:18]Write to MH i2c: 01 00 00 81 58 D9 [13:29:18]Write i2c OK [13:29:18]MH_I2C_Read... [13:29:19]OFD Sender: No OFD packet to send [13:29:19]*** Cut start [13:29:19]*** Partial cut [13:29:19]*** CUTSNS_PIN = 1 [13:29:19]*** CUTSNS_PIN = 0 [13:29:19]*** Brake cut motor [13:29:20]Read from MH i2c: 01 [13:29:20]MH_I2C_Read... [13:29:20]*** Stop cut motor [13:29:20]*** Cut end [13:29:20]Read from MH i2c: 01 07 00 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: 01 07 00 81 58 00 00 00 00 00 FF 0F EE [13:29:20]process_action close_receipt done [13:29:20]requested_data is exist [13:29:20]produce_requested_data [13:29:20]requested_item fm.sn is exist - process it [13:29:20]wFMCommunicate request_size=4 [13:29:20]MH_SAM_APDU [13:29:20]CAPDU: 80 11 00 00 [13:29:20]Write to MH i2c: E2 08 00 82 58 80 11 00 00 00 00 00 00 54 [13:29:20]Write i2c OK [13:29:20]MH_I2C_Read... [13:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:20]Read from MH i2c: E2 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 17 00 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 17 00 82 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AF [13:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:29:20]wFMCommunicate OK [13:29:20]requested_item fd.num is exist - process it [13:29:20]SAM_PROTO_GetFieldsCounters [13:29:20]wFMCommunicate request_size=4 [13:29:20]MH_SAM_APDU [13:29:20]CAPDU: 80 13 00 00 [13:29:20]Write to MH i2c: E2 08 00 83 58 80 13 00 00 00 00 00 00 57 [13:29:20]Write i2c OK [13:29:20]MH_I2C_Read... [13:29:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:20]Read from MH i2c: E2 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 62 00 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 62 00 83 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 02 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [13:29: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 02 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:29:20]wFMCommunicate OK [13:29:20]SAM_PROTO_GetFieldsCounters done [13:29:20]requested_item shift.num is exist - process it [13:29:20]requested_item shift.opened is exist - process it [13:29:20]req_shift_opened [13:29:20]FM_GetShiftState [13:29:20]SAM_PROTO_GetShiftState [13:29:20]wFMCommunicate request_size=4 [13:29:20]MH_SAM_APDU [13:29:20]CAPDU: 80 13 01 00 [13:29:20]Write to MH i2c: E2 08 00 84 58 80 13 01 00 00 00 00 00 59 [13:29:20]Write i2c OK [13:29:20]MH_I2C_Read... [13:29:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:20]Read from MH i2c: E2 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 0E 00 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 0E 00 84 58 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 87 [13:29:20]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:29:20]wFMCommunicate OK [13:29:20]SAM_PROTO_GetShiftState done [13:29:20]FM_GetShiftState done [13:29:20]req_shift_opened done [13:29:20]requested_item shift.open_date is exist - process it [13:29:20]req_shift_open_date [13:29:20]req_shift_open_date done [13:29:20]produce_requested_data done [13:29:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118786,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [13:29:20]process_action_free close_receipt [13:29:20]json_value_free [13:29:20]json_value_free done [13:29:20]process_json_proto returns [13:29:20]Send response to host [13:29:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118786,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [13:29:20]free response buf [13:29:20]execute_script done [13:29:20]execute_script returns [13:29:20]free content buf [13:29:20]Sock 9.Close socket [13:29:20]Sock 9.Thread stoped [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:29]accept exits with 7 [13:29:29]New connection [13:29:29]New thread 3067383140 created [13:29:29]Thread 3067239780 joined [13:29:29]Waiting for new connection... [13:29:29] Sock 7.Parse request [13:29:29]Sock 7.Check first char [13:29:29]Sock 7.First char is OK [13:29:29]request: POST /json_proto HTTP/1.0 [13:29:29]Method: POST [13:29:29]URL: /json_proto [13:29:29]Method is POST - this is cgi request [13:29:29]url: /json_proto [13:29:29]query_string will be loaded in cgi processing [13:29:29]execute_cgi json_proto POST (null) [13:29:29]execute_cgi path=json_proto method=POST [13:29:29]POST find Content-Length [13:29:29]Host: 172.17.45.7:8080 [13:29:29]Content-Length: 679 [13:29:29]Content-Type: application/json [13:29:29] [13:29:29]POST finish read [13:29:29]Found Content-Length = 679 [13:29:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.640, "sum" : 1420.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1420.00, "total" : 1420.00, "payments": [ { "type": 0, "sum" : 1420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:29]execute_script... [13:29:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.640, "sum" : 1420.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1420.00, "total" : 1420.00, "payments": [ { "type": 0, "sum" : 1420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:29]POST & json_proto [13:29:29]process_json_proto [13:29:29]json parsed OK: [13:29:29]protocol is kg_v1.0 [13:29:29]action value=close_receipt [13:29:29]process_action close_receipt [13:29:29]cmd_close_receipt [13:29:29]MH_GetDate [13:29:29]Write to MH i2c: F0 00 00 85 58 CC [13:29:29]Write i2c OK [13:29:29]MH_I2C_Read... [13:29:29]Read from MH i2c: F0 [13:29:29]MH_I2C_Read... [13:29:29]Read from MH i2c: F0 09 00 [13:29:29]MH_I2C_Read... [13:29:29]Read from MH i2c: F0 09 00 85 58 00 3F 99 A7 66 90 0F 3E 66 FD [13:29:29]GetLastDocTimeStamp 1722259762 [13:29:29]current date 1722259775 [13:29:29]FM_GetShiftState [13:29:29]SAM_PROTO_GetShiftState [13:29:29]wFMCommunicate request_size=4 [13:29:29]MH_SAM_APDU [13:29:29]CAPDU: 80 13 01 00 [13:29:29]Write to MH i2c: E2 08 00 86 58 80 13 01 00 00 00 00 00 5B [13:29:29]Write i2c OK [13:29:29]MH_I2C_Read... [13:29:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:29]Read from MH i2c: E2 [13:29:29]MH_I2C_Read... [13:29:29]Read from MH i2c: E2 0E 00 [13:29:29]MH_I2C_Read... [13:29:29]Read from MH i2c: E2 0E 00 86 58 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 89 [13:29:29]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:29:29]wFMCommunicate OK [13:29:29]SAM_PROTO_GetShiftState done [13:29:29]FM_GetShiftState done [13:29:29]opened in 1722211641 [13:29:29]opened+sec_in_day 1722298041 [13:29:29]quantity*price = 142036 [13:29:29]sum+1 = 142038 [13:29:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1420.00 Внесено: 1420.00 СДАЧА: 0.00 НСП 1% : 12.57 НДС 12% : 150.84 Наличными: 1420.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 163 29.07.2024 13:29 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118787 ФПД: 249584627519437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T132935&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118787&fm=249584627519437&tin=02508201610067®Number=0000000000092660&sum=142000 [13:29:30]StoreToDocumentArchive [13:29:30]shift 434 fd 118787 [13:29:30]save to /storage/0434/doc_00118787 [13:29:30]save last doc name /storage/0434/doc_00118787 to /storage/kkm_last_doc_name [13:29:30]save OK [13:29:30]Clear old archive folders... [13:29:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:29:30]tlvbuf is 02042630 [13:29:30]SAM_PROTO_ClearQueue [13:29:30]wFMCommunicate request_size=4 [13:29:30]MH_SAM_APDU [13:29:30]CAPDU: 80 09 00 00 [13:29:30]Write to MH i2c: E2 08 00 93 58 80 09 00 00 00 00 00 00 5D [13:29:30]Write i2c OK [13:29:30]MH_I2C_Read... [13:29:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:30]Read from MH i2c: E2 [13:29:30]MH_I2C_Read... [13:29:30]Read from MH i2c: E2 03 00 [13:29:30]MH_I2C_Read... [13:29:30]Read from MH i2c: E2 03 00 93 58 00 90 00 5F [13:29:30]RAPDU: 90 00 [13:29:30]wFMCommunicate OK [13:29:30]SAM_PROTO_ClearQueue done [13:29:30]KKMCreateOFDPacket [13:29:30]OFDProtocolAddRootSTLVToBuf [13:29:30]FM_MakeSignedData [13:29:30]FM_MakeSignedData [13:29:30]SAM_PROTO_SignData [13:29:30]wFMCommunicate request_size=4 [13:29:30]MH_SAM_APDU [13:29:30]CAPDU: 80 0D 01 02 [13:29:30]Write to MH i2c: E2 08 00 94 58 80 0D 01 02 00 00 00 00 65 [13:29:30]Write i2c OK [13:29:30]MH_I2C_Read... [13:29:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:30]Read from MH i2c: E2 [13:29:30]MH_I2C_Read... [13:29:30]Read from MH i2c: E2 03 00 [13:29:30]MH_I2C_Read... [13:29:30]Read from MH i2c: E2 03 00 94 58 00 90 00 60 [13:29:30]RAPDU: 90 00 [13:29:30]wFMCommunicate OK [13:29:30]wFMCommunicate request_size=255 [13:29:30]MH_SAM_APDU [13:29:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 48 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 2A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 2A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 3A 00 00 00 00 07 04 06 00 B0 2A 02 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 3F 99 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 D0 01 00 35 04 06 00 E2 FE F3 10 [13:29:30]Write to MH i2c: E2 02 01 95 58 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 48 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 2A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 2A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 3A 00 00 00 00 07 04 06 00 B0 2A 02 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 3F 99 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 D0 01 00 35 04 06 00 E2 FE F3 10 00 00 84 [13:29:31]Write i2c OK [13:29:31]MH_I2C_Read... [13:29:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:31]Read from MH i2c: E2 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: E2 03 00 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: E2 03 00 95 58 00 90 00 61 [13:29:31]RAPDU: 90 00 [13:29:31]wFMCommunicate OK [13:29:31]wFMCommunicate request_size=7 [13:29:31]MH_SAM_APDU [13:29:31]CAPDU: 80 0D 02 02 02 8F CD [13:29:31]Write to MH i2c: E2 0A 00 96 58 80 0D 02 02 02 00 8F CD 00 00 C8 [13:29:31]Write i2c OK [13:29:31]MH_I2C_Read... [13:29:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:31]Read from MH i2c: E2 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: E2 03 00 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: E2 03 00 96 58 00 90 00 62 [13:29:31]RAPDU: 90 00 [13:29:31]wFMCommunicate OK [13:29:31]wFMCommunicate request_size=4 [13:29:31]MH_SAM_APDU [13:29:31]CAPDU: 80 0D 03 02 [13:29:31]Write to MH i2c: E2 08 00 97 58 80 0D 03 02 00 00 00 00 6A [13:29:31]Write i2c OK [13:29:31]MH_I2C_Read... [13:29:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:31]Read from MH i2c: E2 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: E2 0B 00 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: E2 0B 00 97 58 00 CD C7 6B AD FA AF B5 B7 90 00 2C [13:29:31]RAPDU: CD C7 6B AD FA AF B5 B7 90 00 [13:29:31]wFMCommunicate OK [13:29:31]SAM_PROTO_SignData done [13:29:31]FM_MakeSignedData done [13:29:31]CreateOFDProtocolMessage [13:29:31]wFMCommunicate request_size=4 [13:29:31]MH_SAM_APDU [13:29:31]CAPDU: 80 11 00 00 [13:29:31]Write to MH i2c: E2 08 00 98 58 80 11 00 00 00 00 00 00 6A [13:29:31]Write i2c OK [13:29:31]MH_I2C_Read... [13:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:31]Read from MH i2c: E2 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: E2 17 00 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: E2 17 00 98 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C5 [13:29:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:29:31]wFMCommunicate OK [13:29:31]CreateOFDProtocolMessage done [13:29:31]OFDSenderStorePacket 118787 [13:29:31]StoreOFDPacket docnum=118787 [13:29:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 CE 2D 04 01 13 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 48 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 2A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 2A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 3A 00 00 00 00 07 04 06 00 B0 2A 02 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 3F 99 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 D0 01 00 35 04 06 00 E2 FE F3 10 8F CD CD C7 6B AD FA AF B5 B7 [13:29:31]CheckFolder [13:29:31]dirname=/storage/ofd_packets [13:29:31]CheckFolder done [13:29:31]ProducePacketName [13:29:31]name=ofd_packets/00118787 [13:29:31]NVStorageSaveData ofd_packets/00118787 [13:29:31]File name is /storage/ofd_packets/00118787 [13:29:31]Write 298 bytes [13:29:31]NVStorageSaveData done [13:29:31]OFDSenderStorePacket done [13:29:31]KKMCreateOFDPacket done [13:29:31]NVStorageSaveData kkm_last_timestamp [13:29:31]File name is /storage/kkm_last_timestamp [13:29:31]Write 4 bytes [13:29:31]NVStorageSaveData done [13:29:31]ExternCall_PrintAddStr [13:29:31]wPrintStart [13:29:31]Write to MH i2c: 01 00 00 99 58 F1 [13:29:31]Write i2c OK [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: 01 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: 01 07 00 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: 01 07 00 99 58 00 00 00 00 00 FF 0F 06 [13:29:31]RasterBufferAndPrint [13:29:31]line Счет N : (1)949673 [13:29:31]line ИНН: 02508201610067 [13:29:31]line Контрольно-Кассовый Чек [13:29:31]line ПРОДАЖА [13:29:31]line ТРК (МРК, ГНК) : 34 [13:29:31]line Товар: 2710194800 [13:29:31]line ДТ-К-5 [13:29:31]line 18.640 * 76.20 [13:29:31]line = 1420.37 [13:29:31]line НДС 12% НСП 1% [13:29:31]line > о реализуемом товаре [13:29:31]line ОКРУГЛЕНИЕ: -0.37 [13:29:31]line ИТОГО: 1420.00 [13:29:31]line Внесено: 1420.00 [13:29:31]line СДАЧА: 0.00 [13:29:31]line НСП 1% : 12.57 [13:29:31]line НДС 12% : 150.84 [13:29:31]line Наличными: 1420.00 [13:29:31]line Безнал.: 0.00 [13:29:31]line Место: АЗС № 134 "Партнер Нефть" [13:29:31]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:29:31]line СНО: Общий режим [13:29:31]line Чек 163 29.07.2024 13:29 [13:29:31]line Смена: 434 ФФД: 1.0 [13:29:31]line ЗНМ: 0300000044 [13:29:31]line РНМ: 0000000000092660 [13:29:31]line Версия ККМ: 001 [13:29:31]line ФМ: 0000000000874939 [13:29:31]line ФД: 118787 [13:29:31]line ФПД: 249584627519437 [13:29:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T132935&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118787&fm=249584627519437&tin=02508201610067®Number=0000000000092660&sum=142000 [13:29:31]written 0, free lines is 4095 [13:29:31]OFD Sender: Processing packet 118787 [packets to send 86, broken 85] [13:29:31]ProducePacketName [13:29:31]name=ofd_packets/00118787 [13:29:31]OFD Sender: To server: pG, [13:29:31]CommunicateWithHost lk.salyk.kg:30040 [13:29:31]ConnectInit lk.salyk.kg [13:29:31]Connected sock=10 [13:29:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 CE 2D 04 01 13 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 48 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 2A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 2A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 3A 00 00 00 00 07 04 06 00 B0 2A 02 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 3F 99 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 D0 01 00 35 04 06 00 E2 FE F3 10 8F CD CD C7 6B AD FA AF B5 B7 [13:29:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 71 51 47 00 3E 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 D0 01 00 F4 03 04 00 CD 46 A7 66 B6 04 01 00 00 70 A6 0E CA D0 9C A7 14 [13:29:31]CommunicateWithHost err = 0 [13:29:31]CheckOFDResponse [13:29:31]1017 (14) - 77093643461234 [13:29:31]1041 (16) - 0000000000874939 [13:29:31]1040 (4) - 118787 [13:29:31]1012 (4) - 29.07.2024 07:37 [13:29:31]1206 (1) - 0 [13:29:31]OFD Sender: Remove packet 118787 [13:29:31]ProducePacketName [13:29:31]name=ofd_packets/00118787 [13:29:31]NVStorageDeleteData [13:29:31]Write to MH i2c: 01 00 00 C3 58 1B [13:29:31]Write i2c OK [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: 01 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: 01 07 00 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: 01 07 00 C3 58 00 00 00 00 00 E1 0C 0F [13:29:31]RasterBufferAndPrint [13:29:31]line [13:29:31]line [13:29:31]line [13:29:31]line [13:29:31]line [13:29:31]written 0, free lines is 3306 [13:29:31]MH_Cut [13:29:31]Write to MH i2c: D1 01 00 CA 58 01 F4 [13:29:31]Write i2c OK [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: D1 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: D1 01 00 [13:29:31]MH_I2C_Read... [13:29:31]Read from MH i2c: D1 01 00 CA 58 00 F3 [13:29:31]Write to MH i2c: 01 00 00 CB 58 23 [13:29:31]Write i2c OK [13:29:31]MH_I2C_Read... [13:29:32]OFD Sender: No OFD packet to send [13:29:32]*** Cut start [13:29:32]*** Partial cut [13:29:32]*** CUTSNS_PIN = 1 [13:29:32]*** CUTSNS_PIN = 0 [13:29:32]*** Brake cut motor [13:29:33]Read from MH i2c: 01 [13:29:33]MH_I2C_Read... [13:29:33]*** Stop cut motor [13:29:33]*** Cut end [13:29:33]Read from MH i2c: 01 07 00 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: 01 07 00 CB 58 00 00 00 00 00 FF 0F 38 [13:29:33]process_action close_receipt done [13:29:33]requested_data is exist [13:29:33]produce_requested_data [13:29:33]requested_item fm.sn is exist - process it [13:29:33]wFMCommunicate request_size=4 [13:29:33]MH_SAM_APDU [13:29:33]CAPDU: 80 11 00 00 [13:29:33]Write to MH i2c: E2 08 00 CC 58 80 11 00 00 00 00 00 00 9E [13:29:33]Write i2c OK [13:29:33]MH_I2C_Read... [13:29:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:33]Read from MH i2c: E2 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: E2 17 00 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: E2 17 00 CC 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F9 [13:29:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:29:33]wFMCommunicate OK [13:29:33]requested_item fd.num is exist - process it [13:29:33]SAM_PROTO_GetFieldsCounters [13:29:33]wFMCommunicate request_size=4 [13:29:33]MH_SAM_APDU [13:29:33]CAPDU: 80 13 00 00 [13:29:33]Write to MH i2c: E2 08 00 CD 58 80 13 00 00 00 00 00 00 A1 [13:29:33]Write i2c OK [13:29:33]MH_I2C_Read... [13:29:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:33]Read from MH i2c: E2 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: E2 62 00 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: E2 62 00 CD 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 03 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [13:29:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 03 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:29:33]wFMCommunicate OK [13:29:33]SAM_PROTO_GetFieldsCounters done [13:29:33]requested_item shift.num is exist - process it [13:29:33]requested_item shift.opened is exist - process it [13:29:33]req_shift_opened [13:29:33]FM_GetShiftState [13:29:33]SAM_PROTO_GetShiftState [13:29:33]wFMCommunicate request_size=4 [13:29:33]MH_SAM_APDU [13:29:33]CAPDU: 80 13 01 00 [13:29:33]Write to MH i2c: E2 08 00 CE 58 80 13 01 00 00 00 00 00 A3 [13:29:33]Write i2c OK [13:29:33]MH_I2C_Read... [13:29:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:33]Read from MH i2c: E2 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: E2 0E 00 [13:29:33]MH_I2C_Read... [13:29:33]Read from MH i2c: E2 0E 00 CE 58 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D1 [13:29:33]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:29:33]wFMCommunicate OK [13:29:33]SAM_PROTO_GetShiftState done [13:29:33]FM_GetShiftState done [13:29:33]req_shift_opened done [13:29:33]requested_item shift.open_date is exist - process it [13:29:33]req_shift_open_date [13:29:33]req_shift_open_date done [13:29:33]produce_requested_data done [13:29:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118787,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [13:29:33]process_action_free close_receipt [13:29:33]json_value_free [13:29:33]json_value_free done [13:29:33]process_json_proto returns [13:29:33]Send response to host [13:29:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118787,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [13:29:33]free response buf [13:29:33]execute_script done [13:29:33]execute_script returns [13:29:33]free content buf [13:29:33]Sock 7.Close socket [13:29:33]Sock 7.Thread stoped [13:29:37]OFD Sender: No OFD packet to send [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [13:29:52]OFD Sender: No OFD packet to send [13:29:57]OFD Sender: No OFD packet to send [13:30:02]OFD Sender: No OFD packet to send [13:30:07]OFD Sender: No OFD packet to send [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:49]accept exits with 9 [13:30:49]New connection [13:30:49]New thread 3067239780 created [13:30:49]Thread 3067383140 joined [13:30:49]Waiting for new connection... [13:30:49] Sock 9.Parse request [13:30:49]Sock 9.Check first char [13:30:49]Sock 9.First char is OK [13:30:49]request: POST /json_proto HTTP/1.0 [13:30:49]Method: POST [13:30:49]URL: /json_proto [13:30:49]Method is POST - this is cgi request [13:30:49]url: /json_proto [13:30:49]query_string will be loaded in cgi processing [13:30:49]execute_cgi json_proto POST (null) [13:30:49]execute_cgi path=json_proto method=POST [13:30:49]POST find Content-Length [13:30:49]Host: 172.17.45.7:8080 [13:30:49]Content-Length: 818 [13:30:49]Content-Type: application/json [13:30:49] [13:30:49]POST finish read [13:30:49]Found Content-Length = 818 [13:30:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:49]execute_script... [13:30:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:49]POST & json_proto [13:30:49]process_json_proto [13:30:49]json parsed OK: [13:30:49]protocol is kg_v1.0 [13:30:49]action value=close_receipt [13:30:49]process_action close_receipt [13:30:49]cmd_close_receipt [13:30:49]MH_GetDate [13:30:49]Write to MH i2c: F0 00 00 CF 58 16 [13:30:49]Write i2c OK [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: F0 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: F0 09 00 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: F0 09 00 CF 58 00 8F 99 A7 66 90 0F 3E 66 97 [13:30:49]GetLastDocTimeStamp 1722259775 [13:30:49]current date 1722259855 [13:30:49]FM_GetShiftState [13:30:49]SAM_PROTO_GetShiftState [13:30:49]wFMCommunicate request_size=4 [13:30:49]MH_SAM_APDU [13:30:49]CAPDU: 80 13 01 00 [13:30:49]Write to MH i2c: E2 08 00 D0 58 80 13 01 00 00 00 00 00 A5 [13:30:49]Write i2c OK [13:30:49]MH_I2C_Read... [13:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:49]Read from MH i2c: E2 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 0E 00 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 0E 00 D0 58 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D3 [13:30:49]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:30:49]wFMCommunicate OK [13:30:49]SAM_PROTO_GetShiftState done [13:30:49]FM_GetShiftState done [13:30:49]opened in 1722211641 [13:30:49]opened+sec_in_day 1722298041 [13:30:49]quantity*price = 50036 [13:30:49]sum+1 = 50037 [13:30:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 164 29.07.2024 13:30 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118788 ФПД: 129649400412008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T133055&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118788&fm=129649400412008&tin=02508201610067®Number=0000000000092660&sum=50000 [13:30:50]StoreToDocumentArchive [13:30:50]shift 434 fd 118788 [13:30:50]save to /storage/0434/doc_00118788 [13:30:50]save last doc name /storage/0434/doc_00118788 to /storage/kkm_last_doc_name [13:30:50]save OK [13:30:50]Clear old archive folders... [13:30:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:50]tlvbuf is 01ED6310 [13:30:50]SAM_PROTO_ClearQueue [13:30:50]wFMCommunicate request_size=4 [13:30:50]MH_SAM_APDU [13:30:50]CAPDU: 80 09 00 00 [13:30:50]Write to MH i2c: E2 08 00 DD 58 80 09 00 00 00 00 00 00 A7 [13:30:50]Write i2c OK [13:30:50]MH_I2C_Read... [13:30:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:50]Read from MH i2c: E2 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 03 00 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 03 00 DD 58 00 90 00 A9 [13:30:50]RAPDU: 90 00 [13:30:50]wFMCommunicate OK [13:30:50]SAM_PROTO_ClearQueue done [13:30:50]KKMCreateOFDPacket [13:30:50]OFDProtocolAddRootSTLVToBuf [13:30:50]FM_MakeSignedData [13:30:50]FM_MakeSignedData [13:30:50]SAM_PROTO_SignData [13:30:50]wFMCommunicate request_size=4 [13:30:50]MH_SAM_APDU [13:30:50]CAPDU: 80 0D 01 02 [13:30:50]Write to MH i2c: E2 08 00 DE 58 80 0D 01 02 00 00 00 00 AF [13:30:50]Write i2c OK [13:30:50]MH_I2C_Read... [13:30:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:50]Read from MH i2c: E2 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 03 00 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 03 00 DE 58 00 90 00 AA [13:30:50]RAPDU: 90 00 [13:30:50]wFMCommunicate OK [13:30:50]wFMCommunicate request_size=255 [13:30:50]MH_SAM_APDU [13:30:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 8F 99 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 04 D0 01 00 35 04 06 00 75 [13:30:50]Write to MH i2c: E2 02 01 DF 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 8F 99 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 04 D0 01 00 35 04 06 00 75 00 00 09 [13:30:50]Write i2c OK [13:30:50]MH_I2C_Read... [13:30:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:50]Read from MH i2c: E2 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 03 00 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 03 00 DF 58 00 90 00 AB [13:30:50]RAPDU: 90 00 [13:30:50]wFMCommunicate OK [13:30:50]wFMCommunicate request_size=10 [13:30:50]MH_SAM_APDU [13:30:50]CAPDU: 80 0D 02 02 05 EA 5A 74 F7 68 [13:30:50]Write to MH i2c: E2 0D 00 E0 58 80 0D 02 02 05 00 EA 5A 74 F7 68 00 00 D3 [13:30:50]Write i2c OK [13:30:50]MH_I2C_Read... [13:30:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:51]Read from MH i2c: E2 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: E2 03 00 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: E2 03 00 E0 58 00 90 00 AC [13:30:51]RAPDU: 90 00 [13:30:51]wFMCommunicate OK [13:30:51]wFMCommunicate request_size=4 [13:30:51]MH_SAM_APDU [13:30:51]CAPDU: 80 0D 03 02 [13:30:51]Write to MH i2c: E2 08 00 E1 58 80 0D 03 02 00 00 00 00 B4 [13:30:51]Write i2c OK [13:30:51]MH_I2C_Read... [13:30:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:51]Read from MH i2c: E2 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: E2 0B 00 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: E2 0B 00 E1 58 00 31 B8 E0 9D 94 E4 A0 4B 90 00 7E [13:30:51]RAPDU: 31 B8 E0 9D 94 E4 A0 4B 90 00 [13:30:51]wFMCommunicate OK [13:30:51]SAM_PROTO_SignData done [13:30:51]FM_MakeSignedData done [13:30:51]CreateOFDProtocolMessage [13:30:51]wFMCommunicate request_size=4 [13:30:51]MH_SAM_APDU [13:30:51]CAPDU: 80 11 00 00 [13:30:51]Write to MH i2c: E2 08 00 E2 58 80 11 00 00 00 00 00 00 B4 [13:30:51]Write i2c OK [13:30:51]MH_I2C_Read... [13:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:51]Read from MH i2c: E2 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: E2 17 00 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: E2 17 00 E2 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0F [13:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:30:51]wFMCommunicate OK [13:30:51]CreateOFDProtocolMessage done [13:30:51]OFDSenderStorePacket 118788 [13:30:51]StoreOFDPacket docnum=118788 [13:30:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E6 F6 07 01 91 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 8F 99 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 04 D0 01 00 35 04 06 00 75 EA 5A 74 F7 68 31 B8 E0 9D 94 E4 A0 4B [13:30:51]CheckFolder [13:30:51]dirname=/storage/ofd_packets [13:30:51]CheckFolder done [13:30:51]ProducePacketName [13:30:51]name=ofd_packets/00118788 [13:30:51]NVStorageSaveData ofd_packets/00118788 [13:30:51]File name is /storage/ofd_packets/00118788 [13:30:51]Write 301 bytes [13:30:51]NVStorageSaveData done [13:30:51]OFDSenderStorePacket done [13:30:51]KKMCreateOFDPacket done [13:30:51]NVStorageSaveData kkm_last_timestamp [13:30:51]File name is /storage/kkm_last_timestamp [13:30:51]Write 4 bytes [13:30:51]NVStorageSaveData done [13:30:51]ExternCall_PrintAddStr [13:30:51]wPrintStart [13:30:51]Write to MH i2c: 01 00 00 E3 58 3B [13:30:51]Write i2c OK [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: 01 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: 01 07 00 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: 01 07 00 E3 58 00 00 00 00 00 FF 0F 50 [13:30:51]RasterBufferAndPrint [13:30:51]line Счет N : (1)949674 [13:30:51]line ИНН: 02508201610067 [13:30:51]line Контрольно-Кассовый Чек [13:30:51]line ПРОДАЖА [13:30:51]line ТРК (МРК, ГНК) : 51 [13:30:51]line Товар: 2710124130 [13:30:51]line Аи-92-К-4 [13:30:51]line 7.380 * 67.80 [13:30:51]line = 500.36 [13:30:51]line НДС 12% НСП 1% [13:30:51]line > о реализуемом товаре [13:30:51]line ОКРУГЛЕНИЕ: -0.36 [13:30:51]line ИТОГО: 500.00 [13:30:51]line НСП 1% : 4.43 [13:30:51]line НДС 12% : 53.14 [13:30:51]line Наличными: 0.00 [13:30:51]line Безнал.: 500.00 [13:30:51]line Место: АЗС № 134 "Партнер Нефть" [13:30:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:30:51]line СНО: Общий режим [13:30:51]line Чек 164 29.07.2024 13:30 [13:30:51]line Смена: 434 ФФД: 1.0 [13:30:51]line ЗНМ: 0300000044 [13:30:51]line РНМ: 0000000000092660 [13:30:51]line Версия ККМ: 001 [13:30:51]line Платежная система: O! деньги [13:30:51]line ФМ: 0000000000874939 [13:30:51]line ФД: 118788 [13:30:51]line ФПД: 129649400412008 [13:30:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T133055&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118788&fm=129649400412008&tin=02508201610067®Number=0000000000092660&sum=50000 [13:30:51]OFD Sender: Processing packet 118788 [packets to send 86, broken 85] [13:30:51]ProducePacketName [13:30:51]name=ofd_packets/00118788 [13:30:51]OFD Sender: To server: pG, [13:30:51]CommunicateWithHost lk.salyk.kg:30040 [13:30:51]ConnectInit lk.salyk.kg [13:30:51]written 0, free lines is 4095 [13:30:51]Connected sock=10 [13: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 34 39 33 39 0F 01 00 00 E6 F6 07 01 91 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 8F 99 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 04 D0 01 00 35 04 06 00 75 EA 5A 74 F7 68 31 B8 E0 9D 94 E4 A0 4B [13:30:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D0 55 47 00 B1 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 34 39 33 39 10 04 04 00 04 D0 01 00 F4 03 04 00 1C 47 A7 66 B6 04 01 00 00 C2 E5 2B 53 FF 12 EA 7A [13:30:51]CommunicateWithHost err = 0 [13:30:51]CheckOFDResponse [13:30:51]1017 (14) - 77093643461234 [13:30:51]1041 (16) - 0000000000874939 [13:30:51]1040 (4) - 118788 [13:30:51]1012 (4) - 29.07.2024 07:39 [13:30:51]1206 (1) - 0 [13:30:51]OFD Sender: Remove packet 118788 [13:30:51]ProducePacketName [13:30:51]name=ofd_packets/00118788 [13:30:51]NVStorageDeleteData [13:30:51]Write to MH i2c: 01 00 00 0D 59 66 [13:30:51]Write i2c OK [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: 01 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: 01 07 00 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: 01 07 00 0D 59 00 00 00 00 00 EB 0C 64 [13:30:51]RasterBufferAndPrint [13:30:51]line [13:30:51]line [13:30:51]line [13:30:51]line [13:30:51]line [13:30:51]written 0, free lines is 3316 [13:30:51]MH_Cut [13:30:51]Write to MH i2c: D1 01 00 14 59 01 3F [13:30:51]Write i2c OK [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: D1 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: D1 01 00 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: D1 01 00 14 59 00 3E [13:30:51]Write to MH i2c: 01 00 00 15 59 6E [13:30:51]Write i2c OK [13:30:51]MH_I2C_Read... [13:30:52]OFD Sender: No OFD packet to send [13:30:52]*** Cut start [13:30:52]*** Partial cut [13:30:52]*** CUTSNS_PIN = 1 [13:30:52]*** CUTSNS_PIN = 0 [13:30:52]*** Brake cut motor [13:30:53]Read from MH i2c: 01 [13:30:53]MH_I2C_Read... [13:30:53]*** Stop cut motor [13:30:53]*** Cut end [13:30:53]Read from MH i2c: 01 07 00 [13:30:53]MH_I2C_Read... [13:30:53]Read from MH i2c: 01 07 00 15 59 00 00 00 00 00 FF 0F 83 [13:30:53]process_action close_receipt done [13:30:53]requested_data is exist [13:30:53]produce_requested_data [13:30:53]requested_item fm.sn is exist - process it [13:30:53]wFMCommunicate request_size=4 [13:30:53]MH_SAM_APDU [13:30:53]CAPDU: 80 11 00 00 [13:30:53]Write to MH i2c: E2 08 00 16 59 80 11 00 00 00 00 00 00 E9 [13:30:53]Write i2c OK [13:30:53]MH_I2C_Read... [13:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:53]Read from MH i2c: E2 [13:30:53]MH_I2C_Read... [13:30:53]Read from MH i2c: E2 17 00 [13:30:53]MH_I2C_Read... [13:30:53]Read from MH i2c: E2 17 00 16 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 44 [13:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:30:53]wFMCommunicate OK [13:30:53]requested_item fd.num is exist - process it [13:30:53]SAM_PROTO_GetFieldsCounters [13:30:53]wFMCommunicate request_size=4 [13:30:53]MH_SAM_APDU [13:30:53]CAPDU: 80 13 00 00 [13:30:53]Write to MH i2c: E2 08 00 17 59 80 13 00 00 00 00 00 00 EC [13:30:53]Write i2c OK [13:30:53]MH_I2C_Read... [13:30:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:53]Read from MH i2c: E2 [13:30:53]MH_I2C_Read... [13:30:53]Read from MH i2c: E2 62 00 [13:30:53]MH_I2C_Read... [13:30:53]Read from MH i2c: E2 62 00 17 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 04 D0 01 00 0E 04 04 00 B2 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 87 [13: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 04 D0 01 00 0E 04 04 00 B2 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 [13:30:53]wFMCommunicate OK [13:30:53]SAM_PROTO_GetFieldsCounters done [13:30:53]requested_item shift.num is exist - process it [13:30:53]requested_item shift.opened is exist - process it [13:30:53]req_shift_opened [13:30:53]FM_GetShiftState [13:30:53]SAM_PROTO_GetShiftState [13:30:53]wFMCommunicate request_size=4 [13:30:53]MH_SAM_APDU [13:30:53]CAPDU: 80 13 01 00 [13:30:53]Write to MH i2c: E2 08 00 18 59 80 13 01 00 00 00 00 00 EE [13:30:53]Write i2c OK [13:30:53]MH_I2C_Read... [13:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:53]Read from MH i2c: E2 [13:30:53]MH_I2C_Read... [13:30:53]Read from MH i2c: E2 0E 00 [13:30:53]MH_I2C_Read... [13:30:53]Read from MH i2c: E2 0E 00 18 59 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 1C [13:30:53]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:30:53]wFMCommunicate OK [13:30:53]SAM_PROTO_GetShiftState done [13:30:53]FM_GetShiftState done [13:30:53]req_shift_opened done [13:30:53]requested_item shift.open_date is exist - process it [13:30:53]req_shift_open_date [13:30:53]req_shift_open_date done [13:30:53]produce_requested_data done [13:30:53]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118788,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [13:30:53]process_action_free close_receipt [13:30:53]json_value_free [13:30:53]json_value_free done [13:30:53]process_json_proto returns [13:30:53]Send response to host [13:30:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118788,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [13:30:53]free response buf [13:30:53]execute_script done [13:30:53]execute_script returns [13:30:53]free content buf [13:30:53]Sock 9.Close socket [13:30:53]Sock 9.Thread stoped [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:57]OFD Sender: No OFD packet to send [13:34:02]OFD Sender: No OFD packet to send [13:34:07]OFD Sender: No OFD packet to send [13:34:12]OFD Sender: No OFD packet to send [13:34:17]OFD Sender: No OFD packet to send [13:34:22]OFD Sender: No OFD packet to send [13:34:27]OFD Sender: No OFD packet to send [13:34:32]OFD Sender: No OFD packet to send [13:34:37]OFD Sender: No OFD packet to send [13:34:42]OFD Sender: No OFD packet to send [13:34:47]OFD Sender: No OFD packet to send [13:34:52]OFD Sender: No OFD packet to send [13:34:57]OFD Sender: No OFD packet to send [13:35:02]OFD Sender: No OFD packet to send [13:35:07]OFD Sender: No OFD packet to send [13:35:12]OFD Sender: No OFD packet to send [13:35:17]OFD Sender: No OFD packet to send [13:35:22]OFD Sender: No OFD packet to send [13:35:27]OFD Sender: No OFD packet to send [13:35:32]OFD Sender: No OFD packet to send [13:35:37]OFD Sender: No OFD packet to send [13:35:42]OFD Sender: No OFD packet to send [13:35:47]OFD Sender: No OFD packet to send [13:35:52]OFD Sender: No OFD packet to send [13:35:57]OFD Sender: No OFD packet to send [13:36:02]OFD Sender: No OFD packet to send [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:37]OFD Sender: No OFD packet to send [13:36:42]OFD Sender: No OFD packet to send [13:36:47]OFD Sender: No OFD packet to send [13:36:52]OFD Sender: No OFD packet to send [13:36:57]OFD Sender: No OFD packet to send [13:37:02]OFD Sender: No OFD packet to send [13:37:07]OFD Sender: No OFD packet to send [13:37:12]OFD Sender: No OFD packet to send [13:37:17]OFD Sender: No OFD packet to send [13:37:22]OFD Sender: No OFD packet to send [13:37:27]OFD Sender: No OFD packet to send [13:37:32]OFD Sender: No OFD packet to send [13:37:37]OFD Sender: No OFD packet to send [13:37:42]OFD Sender: No OFD packet to send [13:37:47]OFD Sender: No OFD packet to send [13:37:52]OFD Sender: No OFD packet to send [13:37:57]OFD Sender: No OFD packet to send [13:38:02]OFD Sender: No OFD packet to send [13:38:07]OFD Sender: No OFD packet to send [13:38:12]OFD Sender: No OFD packet to send [13:38:17]OFD Sender: No OFD packet to send [13:38:22]OFD Sender: No OFD packet to send [13:38:27]OFD Sender: No OFD packet to send [13:38:32]OFD Sender: No OFD packet to send [13:38:37]OFD Sender: No OFD packet to send [13:38:42]OFD Sender: No OFD packet to send [13:38:43]accept exits with 7 [13:38:43]New connection [13:38:43]New thread 3067383140 created [13:38:43]Thread 3067239780 joined [13:38:43]Waiting for new connection... [13:38:43] Sock 7.Parse request [13:38:43]Sock 7.Check first char [13:38:43]Sock 7.First char is OK [13:38:43]request: POST /json_proto HTTP/1.0 [13:38:43]Method: POST [13:38:43]URL: /json_proto [13:38:43]Method is POST - this is cgi request [13:38:43]url: /json_proto [13:38:43]query_string will be loaded in cgi processing [13:38:43]execute_cgi json_proto POST (null) [13:38:43]execute_cgi path=json_proto method=POST [13:38:43]POST find Content-Length [13:38:43]Host: 172.17.45.7:8080 [13:38:43]Content-Length: 677 [13:38:43]Content-Type: application/json [13:38:43] [13:38:43]POST finish read [13:38:43]Found Content-Length = 677 [13:38:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:43]execute_script... [13:38: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)949675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:43]POST & json_proto [13:38:43]process_json_proto [13:38:43]json parsed OK: [13:38:43]protocol is kg_v1.0 [13:38:43]action value=close_receipt [13:38:43]process_action close_receipt [13:38:43]cmd_close_receipt [13:38:43]MH_GetDate [13:38:43]Write to MH i2c: F0 00 00 19 59 61 [13:38:43]Write i2c OK [13:38:43]MH_I2C_Read... [13:38:43]Read from MH i2c: F0 [13:38:43]MH_I2C_Read... [13:38:43]Read from MH i2c: F0 09 00 [13:38:43]MH_I2C_Read... [13:38:43]Read from MH i2c: F0 09 00 19 59 00 69 9B A7 66 90 0F 3E 66 BE [13:38:43]GetLastDocTimeStamp 1722259855 [13:38:43]current date 1722260329 [13:38:43]FM_GetShiftState [13:38:43]SAM_PROTO_GetShiftState [13:38:43]wFMCommunicate request_size=4 [13:38:43]MH_SAM_APDU [13:38:43]CAPDU: 80 13 01 00 [13:38:43]Write to MH i2c: E2 08 00 1A 59 80 13 01 00 00 00 00 00 F0 [13:38:43]Write i2c OK [13:38:43]MH_I2C_Read... [13:38:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:43]Read from MH i2c: E2 [13:38:43]MH_I2C_Read... [13:38:43]Read from MH i2c: E2 0E 00 [13:38:43]MH_I2C_Read... [13:38:43]Read from MH i2c: E2 0E 00 1A 59 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 1E [13:38:43]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:38:43]wFMCommunicate OK [13:38:43]SAM_PROTO_GetShiftState done [13:38:43]FM_GetShiftState done [13:38:43]opened in 1722211641 [13:38:43]opened+sec_in_day 1722298041 [13:38:43]quantity*price = 50036 [13:38:43]sum+1 = 50037 [13:38:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 165 29.07.2024 13:38 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118789 ФПД: 143135883942389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T133849&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118789&fm=143135883942389&tin=02508201610067®Number=0000000000092660&sum=50000 [13:38:44]StoreToDocumentArchive [13:38:44]shift 434 fd 118789 [13:38:44]save to /storage/0434/doc_00118789 [13:38:44]save last doc name /storage/0434/doc_00118789 to /storage/kkm_last_doc_name [13:38:44]save OK [13:38:44]Clear old archive folders... [13:38:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:44]tlvbuf is 0203E290 [13:38:44]SAM_PROTO_ClearQueue [13:38:44]wFMCommunicate request_size=4 [13:38:44]MH_SAM_APDU [13:38:44]CAPDU: 80 09 00 00 [13:38:44]Write to MH i2c: E2 08 00 27 59 80 09 00 00 00 00 00 00 F2 [13:38:44]Write i2c OK [13:38:44]MH_I2C_Read... [13:38:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:44]Read from MH i2c: E2 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: E2 03 00 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: E2 03 00 27 59 00 90 00 F4 [13:38:44]RAPDU: 90 00 [13:38:44]wFMCommunicate OK [13:38:44]SAM_PROTO_ClearQueue done [13:38:44]KKMCreateOFDPacket [13:38:44]OFDProtocolAddRootSTLVToBuf [13:38:44]FM_MakeSignedData [13:38:44]FM_MakeSignedData [13:38:44]SAM_PROTO_SignData [13:38:44]wFMCommunicate request_size=4 [13:38:44]MH_SAM_APDU [13:38:44]CAPDU: 80 0D 01 02 [13:38:44]Write to MH i2c: E2 08 00 28 59 80 0D 01 02 00 00 00 00 FA [13:38:44]Write i2c OK [13:38:44]MH_I2C_Read... [13:38:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:44]Read from MH i2c: E2 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: E2 03 00 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: E2 03 00 28 59 00 90 00 F5 [13:38:44]RAPDU: 90 00 [13:38:44]wFMCommunicate OK [13:38:44]wFMCommunicate request_size=255 [13:38:44]MH_SAM_APDU [13: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 69 9B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 D0 01 00 35 04 06 00 82 [13:38:44]Write to MH i2c: E2 02 01 29 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 69 9B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 D0 01 00 35 04 06 00 82 00 00 3F [13:38:44]Write i2c OK [13:38:44]MH_I2C_Read... [13:38:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:45]Read from MH i2c: E2 [13:38:45]MH_I2C_Read... [13:38:45]Read from MH i2c: E2 03 00 [13:38:45]MH_I2C_Read... [13:38:45]Read from MH i2c: E2 03 00 29 59 00 90 00 F6 [13:38:45]RAPDU: 90 00 [13:38:45]wFMCommunicate OK [13:38:45]wFMCommunicate request_size=10 [13:38:45]MH_SAM_APDU [13:38:45]CAPDU: 80 0D 02 02 05 2E 6B 84 59 F5 [13:38:45]Write to MH i2c: E2 0D 00 2A 59 80 0D 02 02 05 00 2E 6B 84 59 F5 00 00 72 [13:38:45]Write i2c OK [13:38:45]MH_I2C_Read... [13:38:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:45]Read from MH i2c: E2 [13:38:45]MH_I2C_Read... [13:38:45]Read from MH i2c: E2 03 00 [13:38:45]MH_I2C_Read... [13:38:45]Read from MH i2c: E2 03 00 2A 59 00 90 00 F7 [13:38:45]RAPDU: 90 00 [13:38:45]wFMCommunicate OK [13:38:45]wFMCommunicate request_size=4 [13:38:45]MH_SAM_APDU [13:38:45]CAPDU: 80 0D 03 02 [13:38:45]Write to MH i2c: E2 08 00 2B 59 80 0D 03 02 00 00 00 00 FF [13:38:45]Write i2c OK [13:38:45]MH_I2C_Read... [13:38:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:45]Read from MH i2c: E2 [13:38:45]MH_I2C_Read... [13:38:45]Read from MH i2c: E2 0B 00 [13:38:45]MH_I2C_Read... [13:38:45]Read from MH i2c: E2 0B 00 2B 59 00 9B F5 31 82 8C 48 4B 7F 90 00 E1 [13:38:45]RAPDU: 9B F5 31 82 8C 48 4B 7F 90 00 [13:38:45]wFMCommunicate OK [13:38:45]SAM_PROTO_SignData done [13:38:45]FM_MakeSignedData done [13:38:45]CreateOFDProtocolMessage [13:38:45]wFMCommunicate request_size=4 [13:38:45]MH_SAM_APDU [13:38:45]CAPDU: 80 11 00 00 [13:38:45]Write to MH i2c: E2 08 00 2C 59 80 11 00 00 00 00 00 00 FF [13:38:45]Write i2c OK [13:38:45]MH_I2C_Read... [13:38:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:45]Read from MH i2c: E2 [13:38:45]MH_I2C_Read... [13:38:45]Read from MH i2c: E2 17 00 [13:38:45]MH_I2C_Read... [13:38:45]Read from MH i2c: E2 17 00 2C 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5A [13:38:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:38:45]wFMCommunicate OK [13:38:45]CreateOFDProtocolMessage done [13:38:45]OFDSenderStorePacket 118789 [13:38:45]StoreOFDPacket docnum=118789 [13:38:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DB BC 07 01 18 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 69 9B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 D0 01 00 35 04 06 00 82 2E 6B 84 59 F5 9B F5 31 82 8C 48 4B 7F [13:38:45]CheckFolder [13:38:45]dirname=/storage/ofd_packets [13:38:45]CheckFolder done [13:38:45]ProducePacketName [13:38:45]name=ofd_packets/00118789 [13:38:45]NVStorageSaveData ofd_packets/00118789 [13:38:45]File name is /storage/ofd_packets/00118789 [13:38:45]Write 301 bytes [13:38:45]NVStorageSaveData done [13:38:45]OFDSenderStorePacket done [13:38:45]KKMCreateOFDPacket done [13:38:45]NVStorageSaveData kkm_last_timestamp [13:38:45]File name is /storage/kkm_last_timestamp [13:38:45]Write 4 bytes [13:38:45]NVStorageSaveData done [13:38:45]ExternCall_PrintAddStr [13:38:45]wPrintStart [13:38:45]Write to MH i2c: 01 00 00 2D 59 86 [13:38:45]OFD Sender: Processing packet 118789 [packets to send 86, broken 85] [13:38:45]ProducePacketName [13:38:45]name=ofd_packets/00118789 [13:38:45]OFD Sender: To server: pG, [13:38:45]CommunicateWithHost lk.salyk.kg:30040 [13:38:45]ConnectInit lk.salyk.kg [13:38:45]Write i2c OK [13:38:45]MH_I2C_Read... [13:38:45]Read from MH i2c: 01 [13:38:45]MH_I2C_Read... [13:38:45]Read from MH i2c: 01 07 00 [13:38:45]MH_I2C_Read... [13:38:45]Read from MH i2c: 01 07 00 2D 59 00 00 00 00 00 FF 0F 9B [13:38:45]RasterBufferAndPrint [13:38:45]line Счет N : (1)949675 [13:38:45]line ИНН: 02508201610067 [13:38:45]line Контрольно-Кассовый Чек [13:38:45]line ПРОДАЖА [13:38:45]line ТРК (МРК, ГНК) : 31 [13:38:45]line Товар: 2710124130 [13:38:45]line Аи-92-К-4 [13:38:45]line 7.380 * 67.80 [13:38:45]line = 500.36 [13:38:45]line НДС 12% НСП 1% [13:38:45]line > о реализуемом товаре [13:38:45]line ОКРУГЛЕНИЕ: -0.36 [13:38:45]line ИТОГО: 500.00 [13:38:45]line Внесено: 500.00 [13:38:45]line СДАЧА: 0.00 [13:38:45]line НСП 1% : 4.43 [13:38:45]line НДС 12% : 53.14 [13:38:45]line Наличными: 500.00 [13:38:45]line Безнал.: 0.00 [13:38:45]line Место: АЗС № 134 "Партнер Нефть" [13:38:45]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:38:45]line СНО: Общий режим [13:38:45]line Чек 165 29.07.2024 13:38 [13:38:45]line Смена: 434 ФФД: 1.0 [13:38:45]line ЗНМ: 0300000044 [13:38:45]line РНМ: 0000000000092660 [13:38:45]line Версия ККМ: 001 [13:38:45]line ФМ: 0000000000874939 [13:38:45]line ФД: 118789 [13:38:45]line ФПД: 143135883942389 [13:38:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T133849&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118789&fm=143135883942389&tin=02508201610067®Number=0000000000092660&sum=50000 [13:38:45]written 0, free lines is 4095 [13:38:45]Connected sock=10 [13:38:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DB BC 07 01 18 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 69 9B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 D0 01 00 35 04 06 00 82 2E 6B 84 59 F5 9B F5 31 82 8C 48 4B 7F [13:38:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E1 A4 47 00 45 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 34 39 33 39 10 04 04 00 05 D0 01 00 F4 03 04 00 F6 48 A7 66 B6 04 01 00 00 D2 DD 97 6B BF A6 7C C7 [13:38:45]CommunicateWithHost err = 0 [13:38:45]CheckOFDResponse [13:38:45]1017 (14) - 77093643461234 [13:38:45]1041 (16) - 0000000000874939 [13:38:45]1040 (4) - 118789 [13:38:45]1012 (4) - 29.07.2024 07:47 [13:38:45]1206 (1) - 0 [13:38:45]OFD Sender: Remove packet 118789 [13:38:45]ProducePacketName [13:38:45]name=ofd_packets/00118789 [13:38:45]NVStorageDeleteData [13:38:45]Write to MH i2c: 01 00 00 57 59 B0 [13:38:45]Write i2c OK [13:38:45]MH_I2C_Read... [13:38:45]Read from MH i2c: 01 [13:38:45]MH_I2C_Read... [13:38:45]Read from MH i2c: 01 07 00 [13:38:45]MH_I2C_Read... [13:38:45]Read from MH i2c: 01 07 00 57 59 00 00 00 00 00 EB 0C AE [13:38:45]RasterBufferAndPrint [13:38:45]line [13:38:45]line [13:38:45]line [13:38:45]line [13:38:45]line [13:38:45]written 0, free lines is 3314 [13:38:45]MH_Cut [13:38:45]Write to MH i2c: D1 01 00 5E 59 01 89 [13:38:45]Write i2c OK [13:38:45]MH_I2C_Read... [13:38:45]Read from MH i2c: D1 [13:38:45]MH_I2C_Read... [13:38:45]Read from MH i2c: D1 01 00 [13:38:45]MH_I2C_Read... [13:38:45]Read from MH i2c: D1 01 00 5E 59 00 88 [13:38:45]Write to MH i2c: 01 00 00 5F 59 B8 [13:38:45]Write i2c OK [13:38:45]MH_I2C_Read... [13:38:46]OFD Sender: No OFD packet to send [13:38:46]*** Cut start [13:38:46]*** Partial cut [13:38:46]*** CUTSNS_PIN = 1 [13:38:46]*** CUTSNS_PIN = 0 [13:38:46]*** Brake cut motor [13:38:47]Read from MH i2c: 01 [13:38:47]MH_I2C_Read... [13:38:47]*** Stop cut motor [13:38:47]*** Cut end [13:38:47]Read from MH i2c: 01 07 00 [13:38:47]MH_I2C_Read... [13:38:47]Read from MH i2c: 01 07 00 5F 59 00 00 00 00 00 FF 0F CD [13:38:47]process_action close_receipt done [13:38:47]requested_data is exist [13:38:47]produce_requested_data [13:38:47]requested_item fm.sn is exist - process it [13:38:47]wFMCommunicate request_size=4 [13:38:47]MH_SAM_APDU [13:38:47]CAPDU: 80 11 00 00 [13:38:47]Write to MH i2c: E2 08 00 60 59 80 11 00 00 00 00 00 00 33 [13:38:47]Write i2c OK [13:38:47]MH_I2C_Read... [13:38:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:47]Read from MH i2c: E2 [13:38:47]MH_I2C_Read... [13:38:47]Read from MH i2c: E2 17 00 [13:38:47]MH_I2C_Read... [13:38:47]Read from MH i2c: E2 17 00 60 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8E [13:38:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:38:47]wFMCommunicate OK [13:38:47]requested_item fd.num is exist - process it [13:38:47]SAM_PROTO_GetFieldsCounters [13:38:47]wFMCommunicate request_size=4 [13:38:47]MH_SAM_APDU [13:38:47]CAPDU: 80 13 00 00 [13:38:47]Write to MH i2c: E2 08 00 61 59 80 13 00 00 00 00 00 00 36 [13:38:47]Write i2c OK [13:38:47]MH_I2C_Read... [13:38:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:47]Read from MH i2c: E2 [13:38:47]MH_I2C_Read... [13:38:47]Read from MH i2c: E2 62 00 [13:38:47]MH_I2C_Read... [13:38:47]Read from MH i2c: E2 62 00 61 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 05 D0 01 00 0E 04 04 00 B2 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 D5 [13:38: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 05 D0 01 00 0E 04 04 00 B2 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 [13:38:47]wFMCommunicate OK [13:38:47]SAM_PROTO_GetFieldsCounters done [13:38:47]requested_item shift.num is exist - process it [13:38:47]requested_item shift.opened is exist - process it [13:38:47]req_shift_opened [13:38:47]FM_GetShiftState [13:38:47]SAM_PROTO_GetShiftState [13:38:47]wFMCommunicate request_size=4 [13:38:47]MH_SAM_APDU [13:38:47]CAPDU: 80 13 01 00 [13:38:47]Write to MH i2c: E2 08 00 62 59 80 13 01 00 00 00 00 00 38 [13:38:47]Write i2c OK [13:38:47]MH_I2C_Read... [13:38:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:47]Read from MH i2c: E2 [13:38:47]MH_I2C_Read... [13:38:47]Read from MH i2c: E2 0E 00 [13:38:47]MH_I2C_Read... [13:38:47]Read from MH i2c: E2 0E 00 62 59 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 66 [13:38:47]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:38:47]wFMCommunicate OK [13:38:47]SAM_PROTO_GetShiftState done [13:38:47]FM_GetShiftState done [13:38:47]req_shift_opened done [13:38:47]requested_item shift.open_date is exist - process it [13:38:47]req_shift_open_date [13:38:47]req_shift_open_date done [13:38:47]produce_requested_data done [13:38:47]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118789,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [13:38:47]process_action_free close_receipt [13:38:47]json_value_free [13:38:47]json_value_free done [13:38:47]process_json_proto returns [13:38:47]Send response to host [13:38:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118789,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [13:38:47]free response buf [13:38:47]execute_script done [13:38:47]execute_script returns [13:38:47]free content buf [13:38:47]Sock 7.Close socket [13:38:47]Sock 7.Thread stoped [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:55]accept exits with 9 [13:39:55]New connection [13:39:55]New thread 3067239780 created [13:39:55]Thread 3067383140 joined [13:39:55]Waiting for new connection... [13:39:55] Sock 9.Parse request [13:39:55]Sock 9.Check first char [13:39:55]Sock 9.First char is OK [13:39:55]request: POST /json_proto HTTP/1.0 [13:39:55]Method: POST [13:39:55]URL: /json_proto [13:39:55]Method is POST - this is cgi request [13:39:55]url: /json_proto [13:39:55]query_string will be loaded in cgi processing [13:39:55]execute_cgi json_proto POST (null) [13:39:55]execute_cgi path=json_proto method=POST [13:39:55]POST find Content-Length [13:39:55]Host: 172.17.45.7:8080 [13:39:55]Content-Length: 679 [13:39:55]Content-Type: application/json [13:39:55] [13:39:55]POST finish read [13:39:55]Found Content-Length = 679 [13:39:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:55]execute_script... [13:39:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:55]POST & json_proto [13:39:55]process_json_proto [13:39:55]json parsed OK: [13:39:55]protocol is kg_v1.0 [13:39:55]action value=close_receipt [13:39:55]process_action close_receipt [13:39:55]cmd_close_receipt [13:39:55]MH_GetDate [13:39:55]Write to MH i2c: F0 00 00 63 59 AB [13:39:55]Write i2c OK [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: F0 [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: F0 09 00 [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: F0 09 00 63 59 00 B0 9B A7 66 90 0F 3E 66 4F [13:39:55]GetLastDocTimeStamp 1722260329 [13:39:55]current date 1722260400 [13:39:55]FM_GetShiftState [13:39:55]SAM_PROTO_GetShiftState [13:39:55]wFMCommunicate request_size=4 [13:39:55]MH_SAM_APDU [13:39:55]CAPDU: 80 13 01 00 [13:39:55]Write to MH i2c: E2 08 00 64 59 80 13 01 00 00 00 00 00 3A [13:39:55]Write i2c OK [13:39:55]MH_I2C_Read... [13:39:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:55]Read from MH i2c: E2 [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: E2 0E 00 [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: E2 0E 00 64 59 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 68 [13:39:55]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:39:55]wFMCommunicate OK [13:39:55]SAM_PROTO_GetShiftState done [13:39:55]FM_GetShiftState done [13:39:55]opened in 1722211641 [13:39:55]opened+sec_in_day 1722298041 [13:39:55]quantity*price = 140055 [13:39:55]sum+1 = 140057 [13:39:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.73 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 166 29.07.2024 13:40 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118790 ФПД: 213773715150507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T134000&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118790&fm=213773715150507&tin=02508201610067®Number=0000000000092660&sum=140000 [13:39:56]StoreToDocumentArchive [13:39:56]shift 434 fd 118790 [13:39:56]save to /storage/0434/doc_00118790 [13:39:56]save last doc name /storage/0434/doc_00118790 to /storage/kkm_last_doc_name [13:39:56]save OK [13:39:56]Clear old archive folders... [13:39:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:39:56]tlvbuf is B6E11430 [13:39:56]SAM_PROTO_ClearQueue [13:39:56]wFMCommunicate request_size=4 [13:39:56]MH_SAM_APDU [13:39:56]CAPDU: 80 09 00 00 [13:39:56]Write to MH i2c: E2 08 00 71 59 80 09 00 00 00 00 00 00 3C [13:39:56]Write i2c OK [13:39:56]MH_I2C_Read... [13:39:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:56]Read from MH i2c: E2 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 03 00 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 03 00 71 59 00 90 00 3E [13:39:56]RAPDU: 90 00 [13:39:56]wFMCommunicate OK [13:39:56]SAM_PROTO_ClearQueue done [13:39:56]KKMCreateOFDPacket [13:39:56]OFDProtocolAddRootSTLVToBuf [13:39:56]FM_MakeSignedData [13:39:56]FM_MakeSignedData [13:39:56]SAM_PROTO_SignData [13:39:56]wFMCommunicate request_size=4 [13:39:56]MH_SAM_APDU [13:39:56]CAPDU: 80 0D 01 02 [13:39:56]Write to MH i2c: E2 08 00 72 59 80 0D 01 02 00 00 00 00 44 [13:39:56]Write i2c OK [13:39:56]MH_I2C_Read... [13:39:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:56]Read from MH i2c: E2 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 03 00 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 03 00 72 59 00 90 00 3F [13:39:56]RAPDU: 90 00 [13:39:56]wFMCommunicate OK [13:39:56]wFMCommunicate request_size=255 [13:39:56]MH_SAM_APDU [13:39: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 B0 9B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 D0 01 00 35 04 06 00 C2 6D 12 5A [13:39:56]Write to MH i2c: E2 02 01 73 59 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 B0 9B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 D0 01 00 35 04 06 00 C2 6D 12 5A 00 00 36 [13:39:56]Write i2c OK [13:39:56]MH_I2C_Read... [13:39:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:56]Read from MH i2c: E2 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 03 00 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 03 00 73 59 00 90 00 40 [13:39:56]RAPDU: 90 00 [13:39:56]wFMCommunicate OK [13:39:56]wFMCommunicate request_size=7 [13:39:56]MH_SAM_APDU [13:39:56]CAPDU: 80 0D 02 02 02 96 AB [13:39:56]Write to MH i2c: E2 0A 00 74 59 80 0D 02 02 02 00 96 AB 00 00 8C [13:39:56]Write i2c OK [13:39:56]MH_I2C_Read... [13:39:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:56]Read from MH i2c: E2 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 03 00 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 03 00 74 59 00 90 00 41 [13:39:56]RAPDU: 90 00 [13:39:56]wFMCommunicate OK [13:39:56]wFMCommunicate request_size=4 [13:39:56]MH_SAM_APDU [13:39:56]CAPDU: 80 0D 03 02 [13:39:56]Write to MH i2c: E2 08 00 75 59 80 0D 03 02 00 00 00 00 49 [13:39:56]Write i2c OK [13:39:56]MH_I2C_Read... [13:39:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:56]Read from MH i2c: E2 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 0B 00 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 0B 00 75 59 00 26 10 4E 37 AC DF 91 3E 90 00 5F [13:39:56]RAPDU: 26 10 4E 37 AC DF 91 3E 90 00 [13:39:56]wFMCommunicate OK [13:39:56]SAM_PROTO_SignData done [13:39:56]FM_MakeSignedData done [13:39:56]CreateOFDProtocolMessage [13:39:56]wFMCommunicate request_size=4 [13:39:56]MH_SAM_APDU [13:39:56]CAPDU: 80 11 00 00 [13:39:56]Write to MH i2c: E2 08 00 76 59 80 11 00 00 00 00 00 00 49 [13:39:56]Write i2c OK [13:39:56]MH_I2C_Read... [13:39:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:56]Read from MH i2c: E2 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 17 00 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 17 00 76 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A4 [13:39:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:39:56]wFMCommunicate OK [13:39:56]CreateOFDProtocolMessage done [13:39:56]OFDSenderStorePacket 118790 [13:39:56]StoreOFDPacket docnum=118790 [13:39:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B9 59 04 01 EA 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 B0 9B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 D0 01 00 35 04 06 00 C2 6D 12 5A 96 AB 26 10 4E 37 AC DF 91 3E [13:39:56]CheckFolder [13:39:56]dirname=/storage/ofd_packets [13:39:56]CheckFolder done [13:39:56]ProducePacketName [13:39:56]name=ofd_packets/00118790 [13:39:56]NVStorageSaveData ofd_packets/00118790 [13:39:56]File name is /storage/ofd_packets/00118790 [13:39:56]Write 298 bytes [13:39:56]NVStorageSaveData done [13:39:56]OFDSenderStorePacket done [13:39:56]KKMCreateOFDPacket done [13:39:56]NVStorageSaveData kkm_last_timestamp [13:39:56]File name is /storage/kkm_last_timestamp [13:39:56]Write 4 bytes [13:39:56]NVStorageSaveData done [13:39:56]ExternCall_PrintAddStr [13:39:56]wPrintStart [13:39:56]Write to MH i2c: 01 00 00 77 59 D0 [13:39:56]Write i2c OK [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: 01 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: 01 07 00 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: 01 07 00 77 59 00 00 00 00 00 FF 0F E5 [13:39:56]RasterBufferAndPrint [13:39:56]line Счет N : (1)949676 [13:39:56]line ИНН: 02508201610067 [13:39:56]line Контрольно-Кассовый Чек [13:39:56]line ПРОДАЖА [13:39:56]line ТРК (МРК, ГНК) : 54 [13:39:56]line Товар: 2710194800 [13:39:56]line ДТ-К-5 [13:39:56]line 18.380 * 76.20 [13:39:56]line = 1400.56 [13:39:56]line НДС 12% НСП 1% [13:39:56]line > о реализуемом товаре [13:39:56]line ОКРУГЛЕНИЕ: -0.56 [13:39:56]line ИТОГО: 1400.00 [13:39:56]line Внесено: 1400.00 [13:39:56]line СДАЧА: 0.00 [13:39:56]line НСП 1% : 12.39 [13:39:56]line НДС 12% : 148.73 [13:39:56]line Наличными: 1400.00 [13:39:56]line Безнал.: 0.00 [13:39:56]line Место: АЗС № 134 "Партнер Нефть" [13:39:56]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:39:56]line СНО: Общий режим [13:39:56]line Чек 166 29.07.2024 13:40 [13:39:56]line Смена: 434 ФФД: 1.0 [13:39:56]line ЗНМ: 0300000044 [13:39:56]line РНМ: 0000000000092660 [13:39:56]line Версия ККМ: 001 [13:39:56]line ФМ: 0000000000874939 [13:39:56]line ФД: 118790 [13:39:56]line ФПД: 213773715150507 [13:39:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T134000&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118790&fm=213773715150507&tin=02508201610067®Number=0000000000092660&sum=140000 [13:39:57]OFD Sender: Processing packet 118790 [packets to send 86, broken 85] [13:39:57]ProducePacketName [13:39:57]name=ofd_packets/00118790 [13:39:57]OFD Sender: To server: pG, [13:39:57]CommunicateWithHost lk.salyk.kg:30040 [13:39:57]ConnectInit lk.salyk.kg [13:39:57]written 0, free lines is 4095 [13:39:57]Connected sock=10 [13:39:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B9 59 04 01 EA 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 B0 9B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 D0 01 00 35 04 06 00 C2 6D 12 5A 96 AB 26 10 4E 37 AC DF 91 3E [13:39:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E0 8D 47 00 2F AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 D0 01 00 F4 03 04 00 3E 49 A7 66 B6 04 01 00 00 F3 72 A5 D1 1B 3A ED 01 [13:39:57]CommunicateWithHost err = 0 [13:39:57]CheckOFDResponse [13:39:57]1017 (14) - 77093643461234 [13:39:57]1041 (16) - 0000000000874939 [13:39:57]1040 (4) - 118790 [13:39:57]1012 (4) - 29.07.2024 07:48 [13:39:57]1206 (1) - 0 [13:39:57]OFD Sender: Remove packet 118790 [13:39:57]ProducePacketName [13:39:57]name=ofd_packets/00118790 [13:39:57]NVStorageDeleteData [13:39:57]Write to MH i2c: 01 00 00 A1 59 FA [13:39:57]Write i2c OK [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: 01 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: 01 07 00 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: 01 07 00 A1 59 00 00 00 00 00 F2 0C FF [13:39:57]RasterBufferAndPrint [13:39:57]line [13:39:57]line [13:39:57]line [13:39:57]line [13:39:57]line [13:39:57]written 0, free lines is 3322 [13:39:57]MH_Cut [13:39:57]Write to MH i2c: D1 01 00 A8 59 01 D3 [13:39:57]Write i2c OK [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: D1 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: D1 01 00 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: D1 01 00 A8 59 00 D2 [13:39:57]Write to MH i2c: 01 00 00 A9 59 02 [13:39:57]Write i2c OK [13:39:57]MH_I2C_Read... [13:39:57]OFD Sender: No OFD packet to send [13:39:58]*** Cut start [13:39:58]*** Partial cut [13:39:58]*** CUTSNS_PIN = 1 [13:39:58]*** CUTSNS_PIN = 0 [13:39:58]*** Brake cut motor [13:39:58]Read from MH i2c: 01 [13:39:58]MH_I2C_Read... [13:39:58]*** Stop cut motor [13:39:58]*** Cut end [13:39:58]Read from MH i2c: 01 07 00 [13:39:58]MH_I2C_Read... [13:39:58]Read from MH i2c: 01 07 00 A9 59 00 00 00 00 00 FF 0F 17 [13:39:58]process_action close_receipt done [13:39:58]requested_data is exist [13:39:58]produce_requested_data [13:39:58]requested_item fm.sn is exist - process it [13:39:58]wFMCommunicate request_size=4 [13:39:58]MH_SAM_APDU [13:39:58]CAPDU: 80 11 00 00 [13:39:58]Write to MH i2c: E2 08 00 AA 59 80 11 00 00 00 00 00 00 7D [13:39:58]Write i2c OK [13:39:58]MH_I2C_Read... [13:39:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:58]Read from MH i2c: E2 [13:39:58]MH_I2C_Read... [13:39:58]Read from MH i2c: E2 17 00 [13:39:58]MH_I2C_Read... [13:39:58]Read from MH i2c: E2 17 00 AA 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D8 [13:39:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:39:58]wFMCommunicate OK [13:39:58]requested_item fd.num is exist - process it [13:39:58]SAM_PROTO_GetFieldsCounters [13:39:58]wFMCommunicate request_size=4 [13:39:58]MH_SAM_APDU [13:39:58]CAPDU: 80 13 00 00 [13:39:58]Write to MH i2c: E2 08 00 AB 59 80 13 00 00 00 00 00 00 80 [13:39:58]Write i2c OK [13:39:58]MH_I2C_Read... [13:39:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:59]Read from MH i2c: E2 [13:39:59]MH_I2C_Read... [13:39:59]Read from MH i2c: E2 62 00 [13:39:59]MH_I2C_Read... [13:39:59]Read from MH i2c: E2 62 00 AB 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 06 D0 01 00 0E 04 04 00 B2 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 23 [13:39: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 06 D0 01 00 0E 04 04 00 B2 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 [13:39:59]wFMCommunicate OK [13:39:59]SAM_PROTO_GetFieldsCounters done [13:39:59]requested_item shift.num is exist - process it [13:39:59]requested_item shift.opened is exist - process it [13:39:59]req_shift_opened [13:39:59]FM_GetShiftState [13:39:59]SAM_PROTO_GetShiftState [13:39:59]wFMCommunicate request_size=4 [13:39:59]MH_SAM_APDU [13:39:59]CAPDU: 80 13 01 00 [13:39:59]Write to MH i2c: E2 08 00 AC 59 80 13 01 00 00 00 00 00 82 [13:39:59]Write i2c OK [13:39:59]MH_I2C_Read... [13:39:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:59]Read from MH i2c: E2 [13:39:59]MH_I2C_Read... [13:39:59]Read from MH i2c: E2 0E 00 [13:39:59]MH_I2C_Read... [13:39:59]Read from MH i2c: E2 0E 00 AC 59 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B0 [13:39:59]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:39:59]wFMCommunicate OK [13:39:59]SAM_PROTO_GetShiftState done [13:39:59]FM_GetShiftState done [13:39:59]req_shift_opened done [13:39:59]requested_item shift.open_date is exist - process it [13:39:59]req_shift_open_date [13:39:59]req_shift_open_date done [13:39:59]produce_requested_data done [13:39:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118790,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [13:39:59]process_action_free close_receipt [13:39:59]json_value_free [13:39:59]json_value_free done [13:39:59]process_json_proto returns [13:39:59]Send response to host [13:39:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118790,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [13:39:59]free response buf [13:39:59]execute_script done [13:39:59]execute_script returns [13:39:59]free content buf [13:39:59]Sock 9.Close socket [13:39:59]Sock 9.Thread stoped [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:16]accept exits with 7 [13:40:16]New connection [13:40:16]New thread 3067383140 created [13:40:16]Thread 3067239780 joined [13:40:16]Waiting for new connection... [13:40:16] Sock 7.Parse request [13:40:16]Sock 7.Check first char [13:40:16]Sock 7.First char is OK [13:40:16]request: POST /json_proto HTTP/1.0 [13:40:16]Method: POST [13:40:16]URL: /json_proto [13:40:16]Method is POST - this is cgi request [13:40:16]url: /json_proto [13:40:16]query_string will be loaded in cgi processing [13:40:16]execute_cgi json_proto POST (null) [13:40:16]execute_cgi path=json_proto method=POST [13:40:16]POST find Content-Length [13:40:16]Host: 172.17.45.7:8080 [13:40:16]Content-Length: 835 [13:40:16]Content-Type: application/json [13:40:16] [13:40:16]POST finish read [13:40:16]Found Content-Length = 835 [13:40:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 26.480, "sum" : 2000.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:16]execute_script... [13:40: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)949677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 26.480, "sum" : 2000.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:16]POST & json_proto [13:40:16]process_json_proto [13:40:16]json parsed OK: [13:40:16]protocol is kg_v1.0 [13:40:16]action value=close_receipt [13:40:16]process_action close_receipt [13:40:16]cmd_close_receipt [13:40:16]MH_GetDate [13:40:16]Write to MH i2c: F0 00 00 AD 59 F5 [13:40:16]Write i2c OK [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: F0 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: F0 09 00 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: F0 09 00 AD 59 00 C6 9B A7 66 90 0F 3E 66 AF [13:40:16]GetLastDocTimeStamp 1722260400 [13:40:16]current date 1722260422 [13:40:16]FM_GetShiftState [13:40:16]SAM_PROTO_GetShiftState [13:40:16]wFMCommunicate request_size=4 [13:40:16]MH_SAM_APDU [13:40:16]CAPDU: 80 13 01 00 [13:40:16]Write to MH i2c: E2 08 00 AE 59 80 13 01 00 00 00 00 00 84 [13:40:16]Write i2c OK [13:40:16]MH_I2C_Read... [13:40:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:17]Read from MH i2c: E2 [13:40:17]MH_I2C_Read... [13:40:17]Read from MH i2c: E2 0E 00 [13:40:17]MH_I2C_Read... [13:40:17]Read from MH i2c: E2 0E 00 AE 59 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B2 [13:40:17]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:40:17]wFMCommunicate OK [13:40:17]SAM_PROTO_GetShiftState done [13:40:17]FM_GetShiftState done [13:40:17]opened in 1722211641 [13:40:17]opened+sec_in_day 1722298041 [13:40:17]quantity*price = 200003 [13:40:17]sum+1 = 200004 [13:40:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 167 29.07.2024 13:40 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 118791 ФПД: 141105797596208 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T134022&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118791&fm=141105797596208&tin=02508201610067®Number=0000000000092660&sum=200000 [13:40:18]StoreToDocumentArchive [13:40:18]shift 434 fd 118791 [13:40:18]save to /storage/0434/doc_00118791 [13:40:18]save last doc name /storage/0434/doc_00118791 to /storage/kkm_last_doc_name [13:40:18]save OK [13:40:18]Clear old archive folders... [13:40:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:40:18]tlvbuf is 01E82C40 [13:40:18]SAM_PROTO_ClearQueue [13:40:18]wFMCommunicate request_size=4 [13:40:18]MH_SAM_APDU [13:40:18]CAPDU: 80 09 00 00 [13:40:18]Write to MH i2c: E2 08 00 BB 59 80 09 00 00 00 00 00 00 86 [13:40:18]Write i2c OK [13:40:18]MH_I2C_Read... [13:40:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:18]Read from MH i2c: E2 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 03 00 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 03 00 BB 59 00 90 00 88 [13:40:18]RAPDU: 90 00 [13:40:18]wFMCommunicate OK [13:40:18]SAM_PROTO_ClearQueue done [13:40:18]KKMCreateOFDPacket [13:40:18]OFDProtocolAddRootSTLVToBuf [13:40:18]FM_MakeSignedData [13:40:18]FM_MakeSignedData [13:40:18]SAM_PROTO_SignData [13:40:18]wFMCommunicate request_size=4 [13:40:18]MH_SAM_APDU [13:40:18]CAPDU: 80 0D 01 02 [13:40:18]Write to MH i2c: E2 08 00 BC 59 80 0D 01 02 00 00 00 00 8E [13:40:18]Write i2c OK [13:40:18]MH_I2C_Read... [13:40:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:18]Read from MH i2c: E2 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 03 00 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 03 00 BC 59 00 90 00 89 [13:40:18]RAPDU: 90 00 [13:40:18]wFMCommunicate OK [13:40:18]wFMCommunicate request_size=255 [13:40:18]MH_SAM_APDU [13:40:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 67 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 43 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 C6 9B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 D0 01 00 35 04 06 00 80 55 C0 F1 [13:40:18]Write to MH i2c: E2 02 01 BD 59 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 67 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 43 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 C6 9B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 D0 01 00 35 04 06 00 80 55 C0 F1 00 00 BD [13:40:18]Write i2c OK [13:40:18]MH_I2C_Read... [13:40:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:18]Read from MH i2c: E2 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 03 00 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 03 00 BD 59 00 90 00 8A [13:40:18]RAPDU: 90 00 [13:40:18]wFMCommunicate OK [13:40:18]wFMCommunicate request_size=7 [13:40:18]MH_SAM_APDU [13:40:18]CAPDU: 80 0D 02 02 02 04 30 [13:40:18]Write to MH i2c: E2 0A 00 BE 59 80 0D 02 02 02 00 04 30 00 00 C9 [13:40:18]Write i2c OK [13:40:18]MH_I2C_Read... [13:40:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:18]Read from MH i2c: E2 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 03 00 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 03 00 BE 59 00 90 00 8B [13:40:18]RAPDU: 90 00 [13:40:18]wFMCommunicate OK [13:40:18]wFMCommunicate request_size=4 [13:40:18]MH_SAM_APDU [13:40:18]CAPDU: 80 0D 03 02 [13:40:18]Write to MH i2c: E2 08 00 BF 59 80 0D 03 02 00 00 00 00 93 [13:40:18]Write i2c OK [13:40:18]MH_I2C_Read... [13:40:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:18]Read from MH i2c: E2 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 0B 00 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 0B 00 BF 59 00 05 4C 41 5A EE 0D 46 0F 90 00 D0 [13:40:18]RAPDU: 05 4C 41 5A EE 0D 46 0F 90 00 [13:40:18]wFMCommunicate OK [13:40:18]SAM_PROTO_SignData done [13:40:18]FM_MakeSignedData done [13:40:18]CreateOFDProtocolMessage [13:40:18]wFMCommunicate request_size=4 [13:40:18]MH_SAM_APDU [13:40:18]CAPDU: 80 11 00 00 [13:40:18]Write to MH i2c: E2 08 00 C0 59 80 11 00 00 00 00 00 00 93 [13:40:18]Write i2c OK [13:40:18]MH_I2C_Read... [13:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:18]Read from MH i2c: E2 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 17 00 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 17 00 C0 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EE [13:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:40:18]wFMCommunicate OK [13:40:18]CreateOFDProtocolMessage done [13:40:18]OFDSenderStorePacket 118791 [13:40:18]StoreOFDPacket docnum=118791 [13:40:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 3D 3A 04 01 5D 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 67 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 43 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 C6 9B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 D0 01 00 35 04 06 00 80 55 C0 F1 04 30 05 4C 41 5A EE 0D 46 0F [13:40:18]CheckFolder [13:40:18]dirname=/storage/ofd_packets [13:40:18]CheckFolder done [13:40:18]ProducePacketName [13:40:18]name=ofd_packets/00118791 [13:40:18]NVStorageSaveData ofd_packets/00118791 [13:40:18]File name is /storage/ofd_packets/00118791 [13:40:18]Write 298 bytes [13:40:18]NVStorageSaveData done [13:40:18]OFDSenderStorePacket done [13:40:18]KKMCreateOFDPacket done [13:40:18]NVStorageSaveData kkm_last_timestamp [13:40:18]File name is /storage/kkm_last_timestamp [13:40:18]Write 4 bytes [13:40:18]NVStorageSaveData done [13:40:18]ExternCall_PrintAddStr [13:40:18]wPrintStart [13:40:18]Write to MH i2c: 01 00 00 C1 59 1A [13:40:18]Write i2c OK [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: 01 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: 01 07 00 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: 01 07 00 C1 59 00 00 00 00 00 FF 0F 2F [13:40:18]RasterBufferAndPrint [13:40:18]line Счет N : (1)949677 [13:40:18]line ИНН: 02508201610067 [13:40:18]line Контрольно-Кассовый Чек [13:40:18]line ПРОДАЖА [13:40:18]line ТРК (МРК, ГНК) : 21 [13:40:18]line Товар: 2710194800 [13:40:18]line ДТ-К-5 [13:40:18]line 26.480 * 75.53 [13:40:18]line = 2000.03 [13:40:18]line НДС 12% НСП 1% [13:40:18]line > о реализуемом товаре [13:40:18]line ОКРУГЛЕНИЕ: -0.03 [13:40:18]line ИТОГО: 2000.00 [13:40:18]line НСП 1% : 17.70 [13:40:18]line НДС 12% : 212.39 [13:40:18]line Наличными: 0.00 [13:40:18]line Безнал.: 2000.00 [13:40:18]line Место: АЗС № 134 "Партнер Нефть" [13:40:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:40:18]line СНО: Общий режим [13:40:18]line Чек 167 29.07.2024 13:40 [13:40:18]line Смена: 434 ФФД: 1.0 [13:40:18]line ЗНМ: 0300000044 [13:40:18]line РНМ: 0000000000092660 [13:40:18]line Версия ККМ: 001 [13:40:18]line Платежная система: Бакай Банк [13:40:18]line ФМ: 0000000000874939 [13:40:18]line ФД: 118791 [13:40:18]line ФПД: 141105797596208 [13:40:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T134022&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118791&fm=141105797596208&tin=02508201610067®Number=0000000000092660&sum=200000 [13:40:19]OFD Sender: Processing packet 118791 [packets to send 86, broken 85] [13:40:19]ProducePacketName [13:40:19]name=ofd_packets/00118791 [13:40:19]OFD Sender: To server: pG, [13:40:19]CommunicateWithHost lk.salyk.kg:30040 [13:40:19]ConnectInit lk.salyk.kg [13:40:19]written 0, free lines is 4095 [13:40:19]Connected sock=10 [13:40:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 3D 3A 04 01 5D 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 67 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 43 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 C6 9B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 D0 01 00 35 04 06 00 80 55 C0 F1 04 30 05 4C 41 5A EE 0D 46 0F [13:40:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9A D5 47 00 5C 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 34 39 33 39 10 04 04 00 07 D0 01 00 F4 03 04 00 54 49 A7 66 B6 04 01 00 00 C3 76 64 82 1C 63 43 F2 [13:40:19]CommunicateWithHost err = 0 [13:40:19]CheckOFDResponse [13:40:19]1017 (14) - 77093643461234 [13:40:19]1041 (16) - 0000000000874939 [13:40:19]1040 (4) - 118791 [13:40:19]1012 (4) - 29.07.2024 07:48 [13:40:19]1206 (1) - 0 [13:40:19]OFD Sender: Remove packet 118791 [13:40:19]ProducePacketName [13:40:19]name=ofd_packets/00118791 [13:40:19]NVStorageDeleteData [13:40:19]Write to MH i2c: 01 00 00 EB 59 44 [13:40:19]Write i2c OK [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: 01 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: 01 07 00 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: 01 07 00 EB 59 00 00 00 00 00 E1 0C 38 [13:40:19]RasterBufferAndPrint [13:40:19]line [13:40:19]line [13:40:19]line [13:40:19]line [13:40:19]line [13:40:19]written 0, free lines is 3303 [13:40:19]MH_Cut [13:40:19]Write to MH i2c: D1 01 00 F2 59 01 1D [13:40:19]Write i2c OK [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: D1 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: D1 01 00 [13:40:19]MH_I2C_Read... [13:40:19]Read from MH i2c: D1 01 00 F2 59 00 1C [13:40:19]Write to MH i2c: 01 00 00 F3 59 4C [13:40:19]Write i2c OK [13:40:19]MH_I2C_Read... [13:40:19]OFD Sender: No OFD packet to send [13:40:20]*** Cut start [13:40:20]*** Partial cut [13:40:20]*** CUTSNS_PIN = 1 [13:40:20]*** CUTSNS_PIN = 0 [13:40:20]*** Brake cut motor [13:40:20]Read from MH i2c: 01 [13:40:20]MH_I2C_Read... [13:40:20]*** Stop cut motor [13:40:20]*** Cut end [13:40:20]Read from MH i2c: 01 07 00 [13:40:20]MH_I2C_Read... [13:40:20]Read from MH i2c: 01 07 00 F3 59 00 00 00 00 00 FF 0F 61 [13:40:20]process_action close_receipt done [13:40:20]requested_data is exist [13:40:20]produce_requested_data [13:40:20]requested_item fm.sn is exist - process it [13:40:20]wFMCommunicate request_size=4 [13:40:20]MH_SAM_APDU [13:40:20]CAPDU: 80 11 00 00 [13:40:20]Write to MH i2c: E2 08 00 F4 59 80 11 00 00 00 00 00 00 C7 [13:40:20]Write i2c OK [13:40:20]MH_I2C_Read... [13:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:20]Read from MH i2c: E2 [13:40:20]MH_I2C_Read... [13:40:20]Read from MH i2c: E2 17 00 [13:40:20]MH_I2C_Read... [13:40:20]Read from MH i2c: E2 17 00 F4 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 22 [13:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:40:20]wFMCommunicate OK [13:40:20]requested_item fd.num is exist - process it [13:40:20]SAM_PROTO_GetFieldsCounters [13:40:20]wFMCommunicate request_size=4 [13:40:20]MH_SAM_APDU [13:40:20]CAPDU: 80 13 00 00 [13:40:20]Write to MH i2c: E2 08 00 F5 59 80 13 00 00 00 00 00 00 CA [13:40:20]Write i2c OK [13:40:20]MH_I2C_Read... [13:40:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:20]Read from MH i2c: E2 [13:40:20]MH_I2C_Read... [13:40:20]Read from MH i2c: E2 62 00 [13:40:20]MH_I2C_Read... [13:40:20]Read from MH i2c: E2 62 00 F5 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 07 D0 01 00 0E 04 04 00 B2 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 71 [13:40: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 07 D0 01 00 0E 04 04 00 B2 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 [13:40:21]wFMCommunicate OK [13:40:21]SAM_PROTO_GetFieldsCounters done [13:40:21]requested_item shift.num is exist - process it [13:40:21]requested_item shift.opened is exist - process it [13:40:21]req_shift_opened [13:40:21]FM_GetShiftState [13:40:21]SAM_PROTO_GetShiftState [13:40:21]wFMCommunicate request_size=4 [13:40:21]MH_SAM_APDU [13:40:21]CAPDU: 80 13 01 00 [13:40:21]Write to MH i2c: E2 08 00 F6 59 80 13 01 00 00 00 00 00 CC [13:40:21]Write i2c OK [13:40:21]MH_I2C_Read... [13:40:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:21]Read from MH i2c: E2 [13:40:21]MH_I2C_Read... [13:40:21]Read from MH i2c: E2 0E 00 [13:40:21]MH_I2C_Read... [13:40:21]Read from MH i2c: E2 0E 00 F6 59 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 FA [13:40:21]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:40:21]wFMCommunicate OK [13:40:21]SAM_PROTO_GetShiftState done [13:40:21]FM_GetShiftState done [13:40:21]req_shift_opened done [13:40:21]requested_item shift.open_date is exist - process it [13:40:21]req_shift_open_date [13:40:21]req_shift_open_date done [13:40:21]produce_requested_data done [13:40:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118791,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [13:40:21]process_action_free close_receipt [13:40:21]json_value_free [13:40:21]json_value_free done [13:40:21]process_json_proto returns [13:40:21]Send response to host [13:40:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118791,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [13:40:21]free response buf [13:40:21]execute_script done [13:40:21]execute_script returns [13:40:21]free content buf [13:40:21]Sock 7.Close socket [13:40:21]Sock 7.Thread stoped [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:44]OFD Sender: No OFD packet to send [13:40:49]OFD Sender: No OFD packet to send [13:40:54]OFD Sender: No OFD packet to send [13:40:59]OFD Sender: No OFD packet to send [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42: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:37]accept exits with 9 [13:48:37]New connection [13:48:37]New thread 3067239780 created [13:48:37]Thread 3067383140 joined [13:48:37]Waiting for new connection... [13:48:37] Sock 9.Parse request [13:48:37]Sock 9.Check first char [13:48:37]Sock 9.First char is OK [13:48:37]request: POST /json_proto HTTP/1.0 [13:48:37]Method: POST [13:48:37]URL: /json_proto [13:48:37]Method is POST - this is cgi request [13:48:37]url: /json_proto [13:48:37]query_string will be loaded in cgi processing [13:48:37]execute_cgi json_proto POST (null) [13:48:37]execute_cgi path=json_proto method=POST [13:48:37]POST find Content-Length [13:48:37]Host: 172.17.45.7:8080 [13:48:37]Content-Length: 822 [13:48:37]Content-Type: application/json [13:48:37] [13:48:37]POST finish read [13:48:37]Found Content-Length = 822 [13:48:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 52.360, "sum" : 3550.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3550.00, "payments": [ { "type": 1, "sum" : 3550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:37]execute_script... [13: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 : (1)949678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 52.360, "sum" : 3550.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3550.00, "payments": [ { "type": 1, "sum" : 3550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:37]POST & json_proto [13:48:37]process_json_proto [13:48:37]json parsed OK: [13:48:37]protocol is kg_v1.0 [13:48:37]action value=close_receipt [13:48:37]process_action close_receipt [13:48:37]cmd_close_receipt [13:48:37]MH_GetDate [13:48:37]Write to MH i2c: F0 00 00 F7 59 3F [13:48:37]Write i2c OK [13:48:37]MH_I2C_Read... [13:48:37]Read from MH i2c: F0 [13:48:37]MH_I2C_Read... [13:48:37]Read from MH i2c: F0 09 00 [13:48:37]MH_I2C_Read... [13:48:37]Read from MH i2c: F0 09 00 F7 59 00 BB 9D A7 66 90 0F 3E 66 F0 [13:48:37]GetLastDocTimeStamp 1722260422 [13:48:37]current date 1722260923 [13:48:37]FM_GetShiftState [13:48:37]SAM_PROTO_GetShiftState [13:48:37]wFMCommunicate request_size=4 [13:48:37]MH_SAM_APDU [13:48:37]CAPDU: 80 13 01 00 [13:48:37]Write to MH i2c: E2 08 00 F8 59 80 13 01 00 00 00 00 00 CE [13:48:37]Write i2c OK [13:48:37]MH_I2C_Read... [13:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:38]Read from MH i2c: E2 [13:48:38]MH_I2C_Read... [13:48:38]Read from MH i2c: E2 0E 00 [13:48:38]MH_I2C_Read... [13:48:38]Read from MH i2c: E2 0E 00 F8 59 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 FC [13:48:38]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:48:38]wFMCommunicate OK [13:48:38]SAM_PROTO_GetShiftState done [13:48:38]FM_GetShiftState done [13:48:38]opened in 1722211641 [13:48:38]opened+sec_in_day 1722298041 [13:48:38]quantity*price = 355000 [13:48:38]sum+1 = 355002 [13:48:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 3550.00 НСП 1% : 31.42 НДС 12% : 376.99 Наличными: 0.00 Безнал.: 3550.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 168 29.07.2024 13:48 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118792 ФПД: 178118537761414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T134843&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118792&fm=178118537761414&tin=02508201610067®Number=0000000000092660&sum=355000 [13:48:39]StoreToDocumentArchive [13:48:39]shift 434 fd 118792 [13:48:39]save to /storage/0434/doc_00118792 [13:48:39]save last doc name /storage/0434/doc_00118792 to /storage/kkm_last_doc_name [13:48:39]save OK [13:48:39]Clear old archive folders... [13:48:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:48:39]tlvbuf is 02015B30 [13:48:39]SAM_PROTO_ClearQueue [13:48:39]wFMCommunicate request_size=4 [13:48:39]MH_SAM_APDU [13:48:39]CAPDU: 80 09 00 00 [13:48:39]Write to MH i2c: E2 08 00 05 5A 80 09 00 00 00 00 00 00 D1 [13:48:39]Write i2c OK [13:48:39]MH_I2C_Read... [13:48:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:39]Read from MH i2c: E2 [13:48:39]MH_I2C_Read... [13:48:39]Read from MH i2c: E2 03 00 [13:48:39]MH_I2C_Read... [13:48:39]Read from MH i2c: E2 03 00 05 5A 00 90 00 D3 [13:48:39]RAPDU: 90 00 [13:48:39]wFMCommunicate OK [13:48:39]SAM_PROTO_ClearQueue done [13:48:39]KKMCreateOFDPacket [13:48:39]OFDProtocolAddRootSTLVToBuf [13:48:39]FM_MakeSignedData [13:48:39]FM_MakeSignedData [13:48:39]SAM_PROTO_SignData [13:48:39]wFMCommunicate request_size=4 [13:48:39]MH_SAM_APDU [13:48:39]CAPDU: 80 0D 01 02 [13:48:39]Write to MH i2c: E2 08 00 06 5A 80 0D 01 02 00 00 00 00 D9 [13:48:39]Write i2c OK [13:48:39]MH_I2C_Read... [13:48:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:39]Read from MH i2c: E2 [13:48:39]MH_I2C_Read... [13:48:39]Read from MH i2c: E2 03 00 [13:48:39]MH_I2C_Read... [13:48:39]Read from MH i2c: E2 03 00 06 5A 00 90 00 D4 [13:48:39]RAPDU: 90 00 [13:48:39]wFMCommunicate OK [13:48:39]wFMCommunicate request_size=255 [13:48:39]MH_SAM_APDU [13:48:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 CC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B9 6A 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 6A 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 93 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 6A 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 BB 9D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 08 D0 01 00 35 04 06 00 A1 [13:48:39]Write to MH i2c: E2 02 01 07 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 CC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B9 6A 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 6A 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 93 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 6A 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 BB 9D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 08 D0 01 00 35 04 06 00 A1 00 00 AA [13:48:39]Write i2c OK [13:48:39]MH_I2C_Read... [13:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:39]Read from MH i2c: E2 [13:48:39]MH_I2C_Read... [13:48:39]Read from MH i2c: E2 03 00 [13:48:39]MH_I2C_Read... [13:48:39]Read from MH i2c: E2 03 00 07 5A 00 90 00 D5 [13:48:39]RAPDU: 90 00 [13:48:39]wFMCommunicate OK [13:48:39]wFMCommunicate request_size=10 [13:48:39]MH_SAM_APDU [13:48:39]CAPDU: 80 0D 02 02 05 FF 74 2B D2 86 [13:48:39]Write to MH i2c: E2 0D 00 08 5A 80 0D 02 02 05 00 FF 74 2B D2 86 00 00 DC [13:48:39]Write i2c OK [13:48:39]MH_I2C_Read... [13:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:39]Read from MH i2c: E2 [13:48:39]MH_I2C_Read... [13:48:39]Read from MH i2c: E2 03 00 [13:48:39]MH_I2C_Read... [13:48:39]Read from MH i2c: E2 03 00 08 5A 00 90 00 D6 [13:48:39]RAPDU: 90 00 [13:48:39]wFMCommunicate OK [13:48:39]wFMCommunicate request_size=4 [13:48:39]MH_SAM_APDU [13:48:39]CAPDU: 80 0D 03 02 [13:48:39]Write to MH i2c: E2 08 00 09 5A 80 0D 03 02 00 00 00 00 DE [13:48:39]Write i2c OK [13:48:39]MH_I2C_Read... [13:48:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:39]Read from MH i2c: E2 [13:48:39]MH_I2C_Read... [13:48:39]Read from MH i2c: E2 0B 00 [13:48:39]MH_I2C_Read... [13:48:39]Read from MH i2c: E2 0B 00 09 5A 00 E4 3A B8 59 45 51 F6 0B 90 00 A5 [13:48:39]RAPDU: E4 3A B8 59 45 51 F6 0B 90 00 [13:48:39]wFMCommunicate OK [13:48:39]SAM_PROTO_SignData done [13:48:39]FM_MakeSignedData done [13:48:39]CreateOFDProtocolMessage [13:48:39]wFMCommunicate request_size=4 [13:48:39]MH_SAM_APDU [13:48:39]CAPDU: 80 11 00 00 [13:48:39]Write to MH i2c: E2 08 00 0A 5A 80 11 00 00 00 00 00 00 DE [13:48:39]Write i2c OK [13:48:39]MH_I2C_Read... [13:48:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:39]Read from MH i2c: E2 [13:48:39]MH_I2C_Read... [13:48:39]Read from MH i2c: E2 17 00 [13:48:39]MH_I2C_Read... [13:48:39]Read from MH i2c: E2 17 00 0A 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 39 [13:48:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:48:39]wFMCommunicate OK [13:48:39]CreateOFDProtocolMessage done [13:48:39]OFDSenderStorePacket 118792 [13:48:39]StoreOFDPacket docnum=118792 [13:48:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 89 2D 07 01 B9 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 CC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B9 6A 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 6A 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 93 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 6A 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 BB 9D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 08 D0 01 00 35 04 06 00 A1 FF 74 2B D2 86 E4 3A B8 59 45 51 F6 0B [13:48:39]CheckFolder [13:48:39]dirname=/storage/ofd_packets [13:48:39]CheckFolder done [13:48:39]ProducePacketName [13:48:39]name=ofd_packets/00118792 [13:48:39]NVStorageSaveData ofd_packets/00118792 [13:48:39]File name is /storage/ofd_packets/00118792 [13:48:39]Write 301 bytes [13:48:39]NVStorageSaveData done [13:48:39]OFDSenderStorePacket done [13:48:39]KKMCreateOFDPacket done [13:48:39]NVStorageSaveData kkm_last_timestamp [13:48:39]File name is /storage/kkm_last_timestamp [13:48:39]Write 4 bytes [13:48:39]NVStorageSaveData done [13:48:39]ExternCall_PrintAddStr [13:48:39]wPrintStart [13:48:39]Write to MH i2c: 01 00 00 0B 5A 65 [13:48:39]Write i2c OK [13:48:39]MH_I2C_Read... [13:48:39]Read from MH i2c: 01 [13:48:39]MH_I2C_Read... [13:48:39]Read from MH i2c: 01 07 00 [13:48:39]MH_I2C_Read... [13:48:39]Read from MH i2c: 01 07 00 0B 5A 00 00 00 00 00 FF 0F 7A [13:48:39]RasterBufferAndPrint [13:48:39]line Счет N : (1)949678 [13:48:39]line ИНН: 02508201610067 [13:48:39]line Контрольно-Кассовый Чек [13:48:39]line ПРОДАЖА [13:48:39]line ТРК (МРК, ГНК) : 41 [13:48:39]line Товар: 2710124130 [13:48:39]line Аи-92-К-4 [13:48:39]line 52.360 * 67.80 [13:48:39]line = 3550.01 [13:48:39]line НДС 12% НСП 1% [13:48:39]line > о реализуемом товаре [13:48:39]line ОКРУГЛЕНИЕ: -0.01 [13:48:39]line ИТОГО: 3550.00 [13:48:39]line НСП 1% : 31.42 [13:48:39]line НДС 12% : 376.99 [13:48:39]line Наличными: 0.00 [13:48:39]line Безнал.: 3550.00 [13:48:39]line Место: АЗС № 134 "Партнер Нефть" [13:48:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:48:39]line СНО: Общий режим [13:48:39]line Чек 168 29.07.2024 13:48 [13:48:39]line Смена: 434 ФФД: 1.0 [13:48:39]line ЗНМ: 0300000044 [13:48:39]line РНМ: 0000000000092660 [13:48:39]line Версия ККМ: 001 [13:48:39]line Платежная система: O! деньги [13:48:39]line ФМ: 0000000000874939 [13:48:39]line ФД: 118792 [13:48:39]line ФПД: 178118537761414 [13:48:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T134843&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118792&fm=178118537761414&tin=02508201610067®Number=0000000000092660&sum=355000 [13:48:40]OFD Sender: Processing packet 118792 [packets to send 86, broken 85] [13:48:40]ProducePacketName [13:48:40]name=ofd_packets/00118792 [13:48:40]OFD Sender: To server: pG, [13:48:40]CommunicateWithHost lk.salyk.kg:30040 [13:48:40]ConnectInit lk.salyk.kg [13:48:40]written 0, free lines is 4095 [13:48:40]Connected sock=10 [13: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 34 39 33 39 0F 01 00 00 89 2D 07 01 B9 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 CC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B9 6A 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 6A 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 93 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 6A 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 BB 9D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 08 D0 01 00 35 04 06 00 A1 FF 74 2B D2 86 E4 3A B8 59 45 51 F6 0B [13:48:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 64 CF 47 00 BE 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 34 39 33 39 10 04 04 00 08 D0 01 00 F4 03 04 00 49 4B A7 66 B6 04 01 00 00 21 61 B1 0D 06 0E 1E E5 [13:48:40]CommunicateWithHost err = 0 [13:48:40]CheckOFDResponse [13:48:40]1017 (14) - 77093643461234 [13:48:40]1041 (16) - 0000000000874939 [13:48:40]1040 (4) - 118792 [13:48:40]1012 (4) - 29.07.2024 07:56 [13:48:40]1206 (1) - 0 [13:48:40]OFD Sender: Remove packet 118792 [13:48:40]ProducePacketName [13:48:40]name=ofd_packets/00118792 [13:48:40]NVStorageDeleteData [13:48:40]Write to MH i2c: 01 00 00 35 5A 8F [13:48:40]Write i2c OK [13:48:40]MH_I2C_Read... [13:48:40]Read from MH i2c: 01 [13:48:40]MH_I2C_Read... [13:48:40]Read from MH i2c: 01 07 00 [13:48:40]MH_I2C_Read... [13:48:40]Read from MH i2c: 01 07 00 35 5A 00 00 00 00 00 EE 0C 90 [13:48:40]RasterBufferAndPrint [13:48:40]line [13:48:40]line [13:48:40]line [13:48:40]line [13:48:40]line [13:48:40]written 0, free lines is 3316 [13:48:40]MH_Cut [13:48:40]Write to MH i2c: D1 01 00 3C 5A 01 68 [13:48:40]Write i2c OK [13:48:40]MH_I2C_Read... [13:48:40]Read from MH i2c: D1 [13:48:40]MH_I2C_Read... [13:48:40]Read from MH i2c: D1 01 00 [13:48:40]MH_I2C_Read... [13:48:40]Read from MH i2c: D1 01 00 3C 5A 00 67 [13:48:40]Write to MH i2c: 01 00 00 3D 5A 97 [13:48:40]Write i2c OK [13:48:40]MH_I2C_Read... [13:48:40]OFD Sender: No OFD packet to send [13:48:41]*** Cut start [13:48:41]*** Partial cut [13:48:41]*** CUTSNS_PIN = 1 [13:48:41]*** CUTSNS_PIN = 0 [13:48:41]*** Brake cut motor [13:48:41]Read from MH i2c: 01 [13:48:41]MH_I2C_Read... [13:48:41]*** Stop cut motor [13:48:41]*** Cut end [13:48:41]Read from MH i2c: 01 07 00 [13:48:41]MH_I2C_Read... [13:48:41]Read from MH i2c: 01 07 00 3D 5A 00 00 00 00 00 FF 0F AC [13:48:41]process_action close_receipt done [13:48:41]requested_data is exist [13:48:41]produce_requested_data [13:48:41]requested_item fm.sn is exist - process it [13:48:41]wFMCommunicate request_size=4 [13:48:41]MH_SAM_APDU [13:48:41]CAPDU: 80 11 00 00 [13:48:41]Write to MH i2c: E2 08 00 3E 5A 80 11 00 00 00 00 00 00 12 [13:48:41]Write i2c OK [13:48:41]MH_I2C_Read... [13:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:41]Read from MH i2c: E2 [13:48:41]MH_I2C_Read... [13:48:41]Read from MH i2c: E2 17 00 [13:48:41]MH_I2C_Read... [13:48:41]Read from MH i2c: E2 17 00 3E 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6D [13:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:48:41]wFMCommunicate OK [13:48:41]requested_item fd.num is exist - process it [13:48:41]SAM_PROTO_GetFieldsCounters [13:48:41]wFMCommunicate request_size=4 [13:48:41]MH_SAM_APDU [13:48:41]CAPDU: 80 13 00 00 [13:48:41]Write to MH i2c: E2 08 00 3F 5A 80 13 00 00 00 00 00 00 15 [13:48:41]Write i2c OK [13:48:41]MH_I2C_Read... [13:48:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:41]Read from MH i2c: E2 [13:48:41]MH_I2C_Read... [13:48:41]Read from MH i2c: E2 62 00 [13:48:41]MH_I2C_Read... [13:48:41]Read from MH i2c: E2 62 00 3F 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 08 D0 01 00 0E 04 04 00 B2 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 C0 [13:48: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 08 D0 01 00 0E 04 04 00 B2 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 [13:48:42]wFMCommunicate OK [13:48:42]SAM_PROTO_GetFieldsCounters done [13:48:42]requested_item shift.num is exist - process it [13:48:42]requested_item shift.opened is exist - process it [13:48:42]req_shift_opened [13:48:42]FM_GetShiftState [13:48:42]SAM_PROTO_GetShiftState [13:48:42]wFMCommunicate request_size=4 [13:48:42]MH_SAM_APDU [13:48:42]CAPDU: 80 13 01 00 [13:48:42]Write to MH i2c: E2 08 00 40 5A 80 13 01 00 00 00 00 00 17 [13:48:42]Write i2c OK [13:48:42]MH_I2C_Read... [13:48:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:42]Read from MH i2c: E2 [13:48:42]MH_I2C_Read... [13:48:42]Read from MH i2c: E2 0E 00 [13:48:42]MH_I2C_Read... [13:48:42]Read from MH i2c: E2 0E 00 40 5A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 45 [13:48:42]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:48:42]wFMCommunicate OK [13:48:42]SAM_PROTO_GetShiftState done [13:48:42]FM_GetShiftState done [13:48:42]req_shift_opened done [13:48:42]requested_item shift.open_date is exist - process it [13:48:42]req_shift_open_date [13:48:42]req_shift_open_date done [13:48:42]produce_requested_data done [13:48:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118792,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [13:48:42]process_action_free close_receipt [13:48:42]json_value_free [13:48:42]json_value_free done [13:48:42]process_json_proto returns [13:48:42]Send response to host [13:48:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118792,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [13:48:42]free response buf [13:48:42]execute_script done [13:48:42]execute_script returns [13:48:42]free content buf [13:48:42]Sock 9.Close socket [13:48:42]Sock 9.Thread stoped [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:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:05]accept exits with 7 [13:53:05]New connection [13:53:05]New thread 3067383140 created [13:53:05]Thread 3067239780 joined [13:53:05]Waiting for new connection... [13:53:05] Sock 7.Parse request [13:53:05]Sock 7.Check first char [13:53:05]Sock 7.First char is OK [13:53:05]request: POST /json_proto HTTP/1.0 [13:53:05]Method: POST [13:53:05]URL: /json_proto [13:53:05]Method is POST - this is cgi request [13:53:05]url: /json_proto [13:53:05]query_string will be loaded in cgi processing [13:53:05]execute_cgi json_proto POST (null) [13:53:05]execute_cgi path=json_proto method=POST [13:53:05]POST find Content-Length [13:53:05]Host: 172.17.45.7:8080 [13:53:05]Content-Length: 678 [13:53:05]Content-Type: application/json [13:53:05] [13:53:05]POST finish read [13:53:05]Found Content-Length = 678 [13:53:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:05]execute_script... [13:53:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:05]POST & json_proto [13:53:05]process_json_proto [13:53:05]json parsed OK: [13:53:05]protocol is kg_v1.0 [13:53:05]action value=close_receipt [13:53:05]process_action close_receipt [13:53:05]cmd_close_receipt [13:53:05]MH_GetDate [13:53:05]Write to MH i2c: F0 00 00 41 5A 8A [13:53:05]Write i2c OK [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: F0 [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: F0 09 00 [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: F0 09 00 41 5A 00 C7 9E A7 66 90 0F 3E 66 48 [13:53:05]GetLastDocTimeStamp 1722260923 [13:53:05]current date 1722261191 [13:53:05]FM_GetShiftState [13:53:05]SAM_PROTO_GetShiftState [13:53:05]wFMCommunicate request_size=4 [13:53:05]MH_SAM_APDU [13:53:05]CAPDU: 80 13 01 00 [13:53:05]Write to MH i2c: E2 08 00 42 5A 80 13 01 00 00 00 00 00 19 [13:53:05]Write i2c OK [13:53:05]MH_I2C_Read... [13:53:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:05]Read from MH i2c: E2 [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: E2 0E 00 [13:53:05]MH_I2C_Read... [13:53:05]Read from MH i2c: E2 0E 00 42 5A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 47 [13:53:05]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:53:05]wFMCommunicate OK [13:53:05]SAM_PROTO_GetShiftState done [13:53:05]FM_GetShiftState done [13:53:05]opened in 1722211641 [13:53:05]opened+sec_in_day 1722298041 [13:53:05]quantity*price = 80004 [13:53:05]sum+1 = 80005 [13:53:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 169 29.07.2024 13:53 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118793 ФПД: 128063509123533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T135311&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118793&fm=128063509123533&tin=02508201610067®Number=0000000000092660&sum=80000 [13:53:06]StoreToDocumentArchive [13:53:06]shift 434 fd 118793 [13:53:06]save to /storage/0434/doc_00118793 [13:53:06]save last doc name /storage/0434/doc_00118793 to /storage/kkm_last_doc_name [13:53:06]save OK [13:53:06]Clear old archive folders... [13:53:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:53:06]tlvbuf is 01FF90D0 [13:53:06]SAM_PROTO_ClearQueue [13:53:06]wFMCommunicate request_size=4 [13:53:06]MH_SAM_APDU [13:53:06]CAPDU: 80 09 00 00 [13:53:06]Write to MH i2c: E2 08 00 4F 5A 80 09 00 00 00 00 00 00 1B [13:53:06]Write i2c OK [13:53:06]MH_I2C_Read... [13:53:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:06]Read from MH i2c: E2 [13:53:06]MH_I2C_Read... [13:53:06]Read from MH i2c: E2 03 00 [13:53:06]MH_I2C_Read... [13:53:06]Read from MH i2c: E2 03 00 4F 5A 00 90 00 1D [13:53:06]RAPDU: 90 00 [13:53:06]wFMCommunicate OK [13:53:06]SAM_PROTO_ClearQueue done [13:53:06]KKMCreateOFDPacket [13:53:06]OFDProtocolAddRootSTLVToBuf [13:53:06]FM_MakeSignedData [13:53:06]FM_MakeSignedData [13:53:06]SAM_PROTO_SignData [13:53:06]wFMCommunicate request_size=4 [13:53:06]MH_SAM_APDU [13:53:06]CAPDU: 80 0D 01 02 [13:53:06]Write to MH i2c: E2 08 00 50 5A 80 0D 01 02 00 00 00 00 23 [13:53:06]Write i2c OK [13:53:06]MH_I2C_Read... [13:53:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:06]Read from MH i2c: E2 [13:53:06]MH_I2C_Read... [13:53:06]Read from MH i2c: E2 03 00 [13:53:06]MH_I2C_Read... [13:53:06]Read from MH i2c: E2 03 00 50 5A 00 90 00 1E [13:53:06]RAPDU: 90 00 [13:53:06]wFMCommunicate OK [13:53:06]wFMCommunicate request_size=255 [13:53:06]MH_SAM_APDU [13:53:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 C7 9E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 D0 01 00 35 04 06 00 74 [13:53:06]Write to MH i2c: E2 02 01 51 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 C7 9E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 D0 01 00 35 04 06 00 74 00 00 70 [13:53:06]Write i2c OK [13:53:06]MH_I2C_Read... [13:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:07]Read from MH i2c: E2 [13:53:07]MH_I2C_Read... [13:53:07]Read from MH i2c: E2 03 00 [13:53:07]MH_I2C_Read... [13:53:07]Read from MH i2c: E2 03 00 51 5A 00 90 00 1F [13:53:07]RAPDU: 90 00 [13:53:07]wFMCommunicate OK [13:53:07]wFMCommunicate request_size=10 [13:53:07]MH_SAM_APDU [13:53:07]CAPDU: 80 0D 02 02 05 79 1B F8 51 CD [13:53:07]Write to MH i2c: E2 0D 00 52 5A 80 0D 02 02 05 00 79 1B F8 51 CD 00 00 DA [13:53:07]Write i2c OK [13:53:07]MH_I2C_Read... [13:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:07]Read from MH i2c: E2 [13:53:07]MH_I2C_Read... [13:53:07]Read from MH i2c: E2 03 00 [13:53:07]MH_I2C_Read... [13:53:07]Read from MH i2c: E2 03 00 52 5A 00 90 00 20 [13:53:07]RAPDU: 90 00 [13:53:07]wFMCommunicate OK [13:53:07]wFMCommunicate request_size=4 [13:53:07]MH_SAM_APDU [13:53:07]CAPDU: 80 0D 03 02 [13:53:07]Write to MH i2c: E2 08 00 53 5A 80 0D 03 02 00 00 00 00 28 [13:53:07]Write i2c OK [13:53:07]MH_I2C_Read... [13:53:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:07]Read from MH i2c: E2 [13:53:07]MH_I2C_Read... [13:53:07]Read from MH i2c: E2 0B 00 [13:53:07]MH_I2C_Read... [13:53:07]Read from MH i2c: E2 0B 00 53 5A 00 9A 4B 76 73 5F 0C 55 BC 90 00 73 [13:53:07]RAPDU: 9A 4B 76 73 5F 0C 55 BC 90 00 [13:53:07]wFMCommunicate OK [13:53:07]SAM_PROTO_SignData done [13:53:07]FM_MakeSignedData done [13:53:07]CreateOFDProtocolMessage [13:53:07]wFMCommunicate request_size=4 [13:53:07]MH_SAM_APDU [13:53:07]CAPDU: 80 11 00 00 [13:53:07]Write to MH i2c: E2 08 00 54 5A 80 11 00 00 00 00 00 00 28 [13:53:07]Write i2c OK [13:53:07]MH_I2C_Read... [13:53:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:07]Read from MH i2c: E2 [13:53:07]MH_I2C_Read... [13:53:07]Read from MH i2c: E2 17 00 [13:53:07]MH_I2C_Read... [13:53:07]Read from MH i2c: E2 17 00 54 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 83 [13:53:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:53:07]wFMCommunicate OK [13:53:07]CreateOFDProtocolMessage done [13:53:07]OFDSenderStorePacket 118793 [13:53:07]StoreOFDPacket docnum=118793 [13:53:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C1 BE 07 01 35 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 C7 9E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 D0 01 00 35 04 06 00 74 79 1B F8 51 CD 9A 4B 76 73 5F 0C 55 BC [13:53:07]CheckFolder [13:53:07]dirname=/storage/ofd_packets [13:53:07]CheckFolder done [13:53:07]ProducePacketName [13:53:07]name=ofd_packets/00118793 [13:53:07]NVStorageSaveData ofd_packets/00118793 [13:53:07]File name is /storage/ofd_packets/00118793 [13:53:07]Write 301 bytes [13:53:07]NVStorageSaveData done [13:53:07]OFDSenderStorePacket done [13:53:07]KKMCreateOFDPacket done [13:53:07]NVStorageSaveData kkm_last_timestamp [13:53:07]File name is /storage/kkm_last_timestamp [13:53:07]Write 4 bytes [13:53:07]NVStorageSaveData done [13:53:07]ExternCall_PrintAddStr [13:53:07]wPrintStart [13:53:07]Write to MH i2c: 01 00 00 55 5A AF [13:53:07]Write i2c OK [13:53:07]MH_I2C_Read... [13:53:07]Read from MH i2c: 01 [13:53:07]MH_I2C_Read... [13:53:07]Read from MH i2c: 01 07 00 [13:53:07]MH_I2C_Read... [13:53:07]Read from MH i2c: 01 07 00 55 5A 00 00 00 00 00 FF 0F C4 [13:53:07]RasterBufferAndPrint [13:53:07]line Счет N : (1)949679 [13:53:07]line ИНН: 02508201610067 [13:53:07]line Контрольно-Кассовый Чек [13:53:07]line ПРОДАЖА [13:53:07]line ТРК (МРК, ГНК) : 41 [13:53:07]line Товар: 2710124130 [13:53:07]line Аи-92-К-4 [13:53:07]line 11.800 * 67.80 [13:53:07]line = 800.04 [13:53:07]line НДС 12% НСП 1% [13:53:07]line > о реализуемом товаре [13:53:07]line ОКРУГЛЕНИЕ: -0.04 [13:53:07]line ИТОГО: 800.00 [13:53:07]line Внесено: 800.00 [13:53:07]line СДАЧА: 0.00 [13:53:07]line НСП 1% : 7.08 [13:53:07]line НДС 12% : 84.96 [13:53:07]line Наличными: 800.00 [13:53:07]line Безнал.: 0.00 [13:53:07]line Место: АЗС № 134 "Партнер Нефть" [13:53:07]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:53:07]line СНО: Общий режим [13:53:07]line Чек 169 29.07.2024 13:53 [13:53:07]line Смена: 434 ФФД: 1.0 [13:53:07]line ЗНМ: 0300000044 [13:53:07]line РНМ: 0000000000092660 [13:53:07]line Версия ККМ: 001 [13:53:07]line ФМ: 0000000000874939 [13:53:07]line ФД: 118793 [13:53:07]line ФПД: 128063509123533 [13:53:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T135311&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118793&fm=128063509123533&tin=02508201610067®Number=0000000000092660&sum=80000 [13:53:07]written 0, free lines is 4095 [13:53:07]OFD Sender: Processing packet 118793 [packets to send 86, broken 85] [13:53:07]ProducePacketName [13:53:07]name=ofd_packets/00118793 [13:53:07]OFD Sender: To server: pG, [13:53:07]CommunicateWithHost lk.salyk.kg:30040 [13:53:07]ConnectInit lk.salyk.kg [13:53:07]Connected sock=10 [13:53:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C1 BE 07 01 35 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 C7 9E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 D0 01 00 35 04 06 00 74 79 1B F8 51 CD 9A 4B 76 73 5F 0C 55 BC [13:53:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 71 80 47 00 DA 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 34 39 33 39 10 04 04 00 09 D0 01 00 F4 03 04 00 55 4C A7 66 B6 04 01 00 00 35 7C 08 32 FE 5F D0 61 [13:53:07]CommunicateWithHost err = 0 [13:53:07]CheckOFDResponse [13:53:07]1017 (14) - 77093643461234 [13:53:07]1041 (16) - 0000000000874939 [13:53:07]1040 (4) - 118793 [13:53:07]1012 (4) - 29.07.2024 08:01 [13:53:07]1206 (1) - 0 [13:53:07]OFD Sender: Remove packet 118793 [13:53:07]ProducePacketName [13:53:07]name=ofd_packets/00118793 [13:53:07]NVStorageDeleteData [13:53:07]Write to MH i2c: 01 00 00 7F 5A D9 [13:53:07]Write i2c OK [13:53:07]MH_I2C_Read... [13:53:07]Read from MH i2c: 01 [13:53:07]MH_I2C_Read... [13:53:07]Read from MH i2c: 01 07 00 [13:53:07]MH_I2C_Read... [13:53:07]Read from MH i2c: 01 07 00 7F 5A 00 00 00 00 00 E1 0C CD [13:53:07]RasterBufferAndPrint [13:53:07]line [13:53:07]line [13:53:07]line [13:53:07]line [13:53:07]line [13:53:07]written 0, free lines is 3306 [13:53:08]MH_Cut [13:53:08]Write to MH i2c: D1 01 00 86 5A 01 B2 [13:53:08]Write i2c OK [13:53:08]MH_I2C_Read... [13:53:08]Read from MH i2c: D1 [13:53:08]MH_I2C_Read... [13:53:08]Read from MH i2c: D1 01 00 [13:53:08]MH_I2C_Read... [13:53:08]Read from MH i2c: D1 01 00 86 5A 00 B1 [13:53:08]Write to MH i2c: 01 00 00 87 5A E1 [13:53:08]Write i2c OK [13:53:08]MH_I2C_Read... [13:53:08]OFD Sender: No OFD packet to send [13:53:08]*** Cut start [13:53:08]*** Partial cut [13:53:08]*** CUTSNS_PIN = 1 [13:53:08]*** CUTSNS_PIN = 0 [13:53:08]*** Brake cut motor [13:53:09]Read from MH i2c: 01 [13:53:09]MH_I2C_Read... [13:53:09]*** Stop cut motor [13:53:09]*** Cut end [13:53:09]Read from MH i2c: 01 07 00 [13:53:09]MH_I2C_Read... [13:53:09]Read from MH i2c: 01 07 00 87 5A 00 00 00 00 00 FF 0F F6 [13:53:09]process_action close_receipt done [13:53:09]requested_data is exist [13:53:09]produce_requested_data [13:53:09]requested_item fm.sn is exist - process it [13:53:09]wFMCommunicate request_size=4 [13:53:09]MH_SAM_APDU [13:53:09]CAPDU: 80 11 00 00 [13:53:09]Write to MH i2c: E2 08 00 88 5A 80 11 00 00 00 00 00 00 5C [13:53:09]Write i2c OK [13:53:09]MH_I2C_Read... [13:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:09]Read from MH i2c: E2 [13:53:09]MH_I2C_Read... [13:53:09]Read from MH i2c: E2 17 00 [13:53:09]MH_I2C_Read... [13:53:09]Read from MH i2c: E2 17 00 88 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B7 [13:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:53:09]wFMCommunicate OK [13:53:09]requested_item fd.num is exist - process it [13:53:09]SAM_PROTO_GetFieldsCounters [13:53:09]wFMCommunicate request_size=4 [13:53:09]MH_SAM_APDU [13:53:09]CAPDU: 80 13 00 00 [13:53:09]Write to MH i2c: E2 08 00 89 5A 80 13 00 00 00 00 00 00 5F [13:53:09]Write i2c OK [13:53:09]MH_I2C_Read... [13:53:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:09]Read from MH i2c: E2 [13:53:09]MH_I2C_Read... [13:53:09]Read from MH i2c: E2 62 00 [13:53:09]MH_I2C_Read... [13:53:09]Read from MH i2c: E2 62 00 89 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 09 D0 01 00 0E 04 04 00 B2 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 0E [13:53: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 09 D0 01 00 0E 04 04 00 B2 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 [13:53:09]wFMCommunicate OK [13:53:09]SAM_PROTO_GetFieldsCounters done [13:53:09]requested_item shift.num is exist - process it [13:53:09]requested_item shift.opened is exist - process it [13:53:09]req_shift_opened [13:53:09]FM_GetShiftState [13:53:09]SAM_PROTO_GetShiftState [13:53:09]wFMCommunicate request_size=4 [13:53:09]MH_SAM_APDU [13:53:09]CAPDU: 80 13 01 00 [13:53:09]Write to MH i2c: E2 08 00 8A 5A 80 13 01 00 00 00 00 00 61 [13:53:09]Write i2c OK [13:53:09]MH_I2C_Read... [13:53:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:09]Read from MH i2c: E2 [13:53:09]MH_I2C_Read... [13:53:09]Read from MH i2c: E2 0E 00 [13:53:09]MH_I2C_Read... [13:53:09]Read from MH i2c: E2 0E 00 8A 5A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 8F [13:53:09]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:53:09]wFMCommunicate OK [13:53:09]SAM_PROTO_GetShiftState done [13:53:09]FM_GetShiftState done [13:53:09]req_shift_opened done [13:53:09]requested_item shift.open_date is exist - process it [13:53:09]req_shift_open_date [13:53:09]req_shift_open_date done [13:53:09]produce_requested_data done [13:53:09]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118793,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [13:53:09]process_action_free close_receipt [13:53:09]json_value_free [13:53:09]json_value_free done [13:53:09]process_json_proto returns [13:53:09]Send response to host [13:53:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118793,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [13:53:09]free response buf [13:53:09]execute_script done [13:53:09]execute_script returns [13:53:09]free content buf [13:53:09]Sock 7.Close socket [13:53:09]Sock 7.Thread stoped [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53:43]OFD Sender: No OFD packet to send [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:13]OFD Sender: No OFD packet to send [13:54:18]OFD Sender: No OFD packet to send [13:54:23]OFD Sender: No OFD packet to send [13:54:28]OFD Sender: No OFD packet to send [13:54:33]OFD Sender: No OFD packet to send [13:54:38]OFD Sender: No OFD packet to send [13:54:43]OFD Sender: No OFD packet to send [13:54:48]OFD Sender: No OFD packet to send [13:54:53]OFD Sender: No OFD packet to send [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:23]OFD Sender: No OFD packet to send [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]accept exits with 9 [13:57:18]New connection [13:57:18]New thread 3067239780 created [13:57:18]Thread 3067383140 joined [13:57:18]Waiting for new connection... [13:57:18] Sock 9.Parse request [13:57:18]Sock 9.Check first char [13:57:18]Sock 9.First char is OK [13:57:18]request: POST /json_proto HTTP/1.0 [13:57:18]Method: POST [13:57:18]URL: /json_proto [13:57:18]Method is POST - this is cgi request [13:57:18]url: /json_proto [13:57:18]query_string will be loaded in cgi processing [13:57:18]execute_cgi json_proto POST (null) [13:57:18]execute_cgi path=json_proto method=POST [13:57:18]POST find Content-Length [13:57:18]Host: 172.17.45.7:8080 [13:57:18]Content-Length: 678 [13:57:18]Content-Type: application/json [13:57:18] [13:57:18]POST finish read [13:57:18]Found Content-Length = 678 [13:57:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.920, "sum" : 740.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:18]execute_script... [13:57:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.920, "sum" : 740.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:18]POST & json_proto [13:57:18]process_json_proto [13:57:18]json parsed OK: [13:57:18]protocol is kg_v1.0 [13:57:18]action value=close_receipt [13:57:18]process_action close_receipt [13:57:18]cmd_close_receipt [13:57:18]MH_GetDate [13:57:18]Write to MH i2c: F0 00 00 8B 5A D4 [13:57:18]Write i2c OK [13:57:18]MH_I2C_Read... [13:57:18]Read from MH i2c: F0 [13:57:18]MH_I2C_Read... [13:57:18]Read from MH i2c: F0 09 00 [13:57:18]MH_I2C_Read... [13:57:18]Read from MH i2c: F0 09 00 8B 5A 00 C4 9F A7 66 90 0F 3E 66 90 [13:57:18]GetLastDocTimeStamp 1722261191 [13:57:18]current date 1722261444 [13:57:18]FM_GetShiftState [13:57:18]SAM_PROTO_GetShiftState [13:57:18]wFMCommunicate request_size=4 [13:57:18]MH_SAM_APDU [13:57:18]CAPDU: 80 13 01 00 [13:57:18]Write to MH i2c: E2 08 00 8C 5A 80 13 01 00 00 00 00 00 63 [13:57:18]Write i2c OK [13:57:18]MH_I2C_Read... [13:57:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:18]Read from MH i2c: E2 [13:57:18]MH_I2C_Read... [13:57:18]Read from MH i2c: E2 0E 00 [13:57:18]MH_I2C_Read... [13:57:18]Read from MH i2c: E2 0E 00 8C 5A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 91 [13:57:18]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:57:18]wFMCommunicate OK [13:57:18]SAM_PROTO_GetShiftState done [13:57:18]FM_GetShiftState done [13:57:18]opened in 1722211641 [13:57:18]opened+sec_in_day 1722298041 [13:57:18]quantity*price = 74037 [13:57:18]sum+1 = 74039 [13:57:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 740.00 Внесено: 740.00 СДАЧА: 0.00 НСП 1% : 6.55 НДС 12% : 78.62 Наличными: 740.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 170 29.07.2024 13:57 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118794 ФПД: 74842094607509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T135724&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118794&fm=74842094607509&tin=02508201610067®Number=0000000000092660&sum=74000 [13:57:19]StoreToDocumentArchive [13:57:19]shift 434 fd 118794 [13:57:19]save to /storage/0434/doc_00118794 [13:57:19]save last doc name /storage/0434/doc_00118794 to /storage/kkm_last_doc_name [13:57:19]save OK [13:57:19]Clear old archive folders... [13:57:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:57:19]tlvbuf is 01FC98A0 [13:57:19]SAM_PROTO_ClearQueue [13:57:19]wFMCommunicate request_size=4 [13:57:19]MH_SAM_APDU [13:57:19]CAPDU: 80 09 00 00 [13:57:19]Write to MH i2c: E2 08 00 99 5A 80 09 00 00 00 00 00 00 65 [13:57:19]Write i2c OK [13:57:19]MH_I2C_Read... [13:57:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:19]Read from MH i2c: E2 [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: E2 03 00 [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: E2 03 00 99 5A 00 90 00 67 [13:57:19]RAPDU: 90 00 [13:57:19]wFMCommunicate OK [13:57:19]SAM_PROTO_ClearQueue done [13:57:19]KKMCreateOFDPacket [13:57:19]OFDProtocolAddRootSTLVToBuf [13:57:19]FM_MakeSignedData [13:57:19]FM_MakeSignedData [13:57:19]SAM_PROTO_SignData [13:57:19]wFMCommunicate request_size=4 [13:57:19]MH_SAM_APDU [13:57:19]CAPDU: 80 0D 01 02 [13:57:19]Write to MH i2c: E2 08 00 9A 5A 80 0D 01 02 00 00 00 00 6D [13:57:19]Write i2c OK [13:57:19]MH_I2C_Read... [13:57:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:19]Read from MH i2c: E2 [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: E2 03 00 [13:57:19]MH_I2C_Read... [13:57:19]Read from MH i2c: E2 03 00 9A 5A 00 90 00 68 [13:57:19]RAPDU: 90 00 [13:57:19]wFMCommunicate OK [13:57:19]wFMCommunicate request_size=255 [13:57:19]MH_SAM_APDU [13:57:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A8 2A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 36 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 1E 00 00 00 00 07 04 06 00 10 21 01 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 C4 9F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A D0 01 00 35 04 06 00 44 [13:57:19]Write to MH i2c: E2 02 01 9B 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A8 2A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 36 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 1E 00 00 00 00 07 04 06 00 10 21 01 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 C4 9F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A D0 01 00 35 04 06 00 44 00 00 F1 [13:57:19]Write i2c OK [13:57:19]MH_I2C_Read... [13:57:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:20]Read from MH i2c: E2 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: E2 03 00 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: E2 03 00 9B 5A 00 90 00 69 [13:57:20]RAPDU: 90 00 [13:57:20]wFMCommunicate OK [13:57:20]wFMCommunicate request_size=10 [13:57:20]MH_SAM_APDU [13:57:20]CAPDU: 80 0D 02 02 05 11 88 76 9C 95 [13:57:20]Write to MH i2c: E2 0D 00 9C 5A 80 0D 02 02 05 00 11 88 76 9C 95 00 00 BA [13:57:20]Write i2c OK [13:57:20]MH_I2C_Read... [13:57:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:20]Read from MH i2c: E2 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: E2 03 00 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: E2 03 00 9C 5A 00 90 00 6A [13:57:20]RAPDU: 90 00 [13:57:20]wFMCommunicate OK [13:57:20]wFMCommunicate request_size=4 [13:57:20]MH_SAM_APDU [13:57:20]CAPDU: 80 0D 03 02 [13:57:20]Write to MH i2c: E2 08 00 9D 5A 80 0D 03 02 00 00 00 00 72 [13:57:20]Write i2c OK [13:57:20]MH_I2C_Read... [13:57:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:20]Read from MH i2c: E2 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: E2 0B 00 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: E2 0B 00 9D 5A 00 56 7F EE 56 59 80 DE AA 90 00 ED [13:57:20]RAPDU: 56 7F EE 56 59 80 DE AA 90 00 [13:57:20]wFMCommunicate OK [13:57:20]SAM_PROTO_SignData done [13:57:20]FM_MakeSignedData done [13:57:20]CreateOFDProtocolMessage [13:57:20]wFMCommunicate request_size=4 [13:57:20]MH_SAM_APDU [13:57:20]CAPDU: 80 11 00 00 [13:57:20]Write to MH i2c: E2 08 00 9E 5A 80 11 00 00 00 00 00 00 72 [13:57:20]Write i2c OK [13:57:20]MH_I2C_Read... [13:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:20]Read from MH i2c: E2 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: E2 17 00 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: E2 17 00 9E 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CD [13:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:57:20]wFMCommunicate OK [13:57:20]CreateOFDProtocolMessage done [13:57:20]OFDSenderStorePacket 118794 [13:57:20]StoreOFDPacket docnum=118794 [13:57:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 30 4C 07 01 C2 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A8 2A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 36 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 1E 00 00 00 00 07 04 06 00 10 21 01 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 C4 9F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A D0 01 00 35 04 06 00 44 11 88 76 9C 95 56 7F EE 56 59 80 DE AA [13:57:20]CheckFolder [13:57:20]dirname=/storage/ofd_packets [13:57:20]CheckFolder done [13:57:20]ProducePacketName [13:57:20]name=ofd_packets/00118794 [13:57:20]NVStorageSaveData ofd_packets/00118794 [13:57:20]File name is /storage/ofd_packets/00118794 [13:57:20]Write 301 bytes [13:57:20]NVStorageSaveData done [13:57:20]OFDSenderStorePacket done [13:57:20]KKMCreateOFDPacket done [13:57:20]NVStorageSaveData kkm_last_timestamp [13:57:20]File name is /storage/kkm_last_timestamp [13:57:20]Write 4 bytes [13:57:20]NVStorageSaveData done [13:57:20]ExternCall_PrintAddStr [13:57:20]wPrintStart [13:57:20]Write to MH i2c: 01 00 00 9F 5A F9 [13:57:20]Write i2c OK [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: 01 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: 01 07 00 [13:57:20]MH_I2C_Read... [13:57:20]Read from MH i2c: 01 07 00 9F 5A 00 00 00 00 00 FF 0F 0E [13:57:20]RasterBufferAndPrint [13:57:20]line Счет N : (1)949680 [13:57:20]line ИНН: 02508201610067 [13:57:20]line Контрольно-Кассовый Чек [13:57:20]line ПРОДАЖА [13:57:20]line ТРК (МРК, ГНК) : 51 [13:57:20]line Товар: 2710124130 [13:57:20]line Аи-92-К-4 [13:57:20]line 10.920 * 67.80 [13:57:20]line = 740.38 [13:57:20]line НДС 12% НСП 1% [13:57:20]line > о реализуемом товаре [13:57:20]line ОКРУГЛЕНИЕ: -0.38 [13:57:20]line ИТОГО: 740.00 [13:57:20]line Внесено: 740.00 [13:57:20]line СДАЧА: 0.00 [13:57:20]line НСП 1% : 6.55 [13:57:20]line НДС 12% : 78.62 [13:57:20]line Наличными: 740.00 [13:57:20]line Безнал.: 0.00 [13:57:20]line Место: АЗС № 134 "Партнер Нефть" [13:57:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:57:20]line СНО: Общий режим [13:57:20]line Чек 170 29.07.2024 13:57 [13:57:20]line Смена: 434 ФФД: 1.0 [13:57:20]line ЗНМ: 0300000044 [13:57:20]line РНМ: 0000000000092660 [13:57:20]line Версия ККМ: 001 [13:57:20]line ФМ: 0000000000874939 [13:57:20]line ФД: 118794 [13:57:20]line ФПД: 74842094607509 [13:57:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T135724&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118794&fm=74842094607509&tin=02508201610067®Number=0000000000092660&sum=74000 [13:57:20]OFD Sender: Processing packet 118794 [packets to send 86, broken 85] [13:57:20]ProducePacketName [13:57:20]name=ofd_packets/00118794 [13:57:20]OFD Sender: To server: pG, [13:57:20]CommunicateWithHost lk.salyk.kg:30040 [13:57:20]ConnectInit lk.salyk.kg [13:57:20]written 0, free lines is 4095 [13:57:20]Connected sock=10 [13:57:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 30 4C 07 01 C2 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A8 2A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 36 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 1E 00 00 00 00 07 04 06 00 10 21 01 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 C4 9F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A D0 01 00 35 04 06 00 44 11 88 76 9C 95 56 7F EE 56 59 80 DE AA [13:57:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8E 29 47 00 E3 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A D0 01 00 F4 03 04 00 52 4D A7 66 B6 04 01 00 00 F6 95 2D B8 5B 11 70 D8 [13:57:20]CommunicateWithHost err = 0 [13:57:20]CheckOFDResponse [13:57:20]1017 (14) - 77093643461234 [13:57:20]1041 (16) - 0000000000874939 [13:57:20]1040 (4) - 118794 [13:57:20]1012 (4) - 29.07.2024 08:05 [13:57:20]1206 (1) - 0 [13:57:20]OFD Sender: Remove packet 118794 [13:57:20]ProducePacketName [13:57:20]name=ofd_packets/00118794 [13:57:20]NVStorageDeleteData [13:57:21]Write to MH i2c: 01 00 00 C9 5A 23 [13:57:21]Write i2c OK [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: 01 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: 01 07 00 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: 01 07 00 C9 5A 00 00 00 00 00 ED 0C 23 [13:57:21]RasterBufferAndPrint [13:57:21]line [13:57:21]line [13:57:21]line [13:57:21]line [13:57:21]line [13:57:21]written 0, free lines is 3317 [13:57:21]MH_Cut [13:57:21]Write to MH i2c: D1 01 00 D0 5A 01 FC [13:57:21]Write i2c OK [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: D1 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: D1 01 00 [13:57:21]MH_I2C_Read... [13:57:21]Read from MH i2c: D1 01 00 D0 5A 00 FB [13:57:21]Write to MH i2c: 01 00 00 D1 5A 2B [13:57:21]Write i2c OK [13:57:21]MH_I2C_Read... [13:57:21]OFD Sender: No OFD packet to send [13:57:21]*** Cut start [13:57:21]*** Partial cut [13:57:21]*** CUTSNS_PIN = 1 [13:57:21]*** CUTSNS_PIN = 0 [13:57:22]*** Brake cut motor [13:57:22]Read from MH i2c: 01 [13:57:22]MH_I2C_Read... [13:57:22]*** Stop cut motor [13:57:22]*** Cut end [13:57:22]Read from MH i2c: 01 07 00 [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: 01 07 00 D1 5A 00 00 00 00 00 FF 0F 40 [13:57:22]process_action close_receipt done [13:57:22]requested_data is exist [13:57:22]produce_requested_data [13:57:22]requested_item fm.sn is exist - process it [13:57:22]wFMCommunicate request_size=4 [13:57:22]MH_SAM_APDU [13:57:22]CAPDU: 80 11 00 00 [13:57:22]Write to MH i2c: E2 08 00 D2 5A 80 11 00 00 00 00 00 00 A6 [13:57:22]Write i2c OK [13:57:22]MH_I2C_Read... [13:57:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:22]Read from MH i2c: E2 [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: E2 17 00 [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: E2 17 00 D2 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 01 [13:57:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:57:22]wFMCommunicate OK [13:57:22]requested_item fd.num is exist - process it [13:57:22]SAM_PROTO_GetFieldsCounters [13:57:22]wFMCommunicate request_size=4 [13:57:22]MH_SAM_APDU [13:57:22]CAPDU: 80 13 00 00 [13:57:22]Write to MH i2c: E2 08 00 D3 5A 80 13 00 00 00 00 00 00 A9 [13:57:22]Write i2c OK [13:57:22]MH_I2C_Read... [13:57:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:22]Read from MH i2c: E2 [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: E2 62 00 [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: E2 62 00 D3 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0A D0 01 00 0E 04 04 00 B2 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 5C [13:57: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0A D0 01 00 0E 04 04 00 B2 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 [13:57:22]wFMCommunicate OK [13:57:22]SAM_PROTO_GetFieldsCounters done [13:57:22]requested_item shift.num is exist - process it [13:57:22]requested_item shift.opened is exist - process it [13:57:22]req_shift_opened [13:57:22]FM_GetShiftState [13:57:22]SAM_PROTO_GetShiftState [13:57:22]wFMCommunicate request_size=4 [13:57:22]MH_SAM_APDU [13:57:22]CAPDU: 80 13 01 00 [13:57:22]Write to MH i2c: E2 08 00 D4 5A 80 13 01 00 00 00 00 00 AB [13:57:22]Write i2c OK [13:57:22]MH_I2C_Read... [13:57:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:22]Read from MH i2c: E2 [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: E2 0E 00 [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: E2 0E 00 D4 5A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D9 [13:57:22]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:57:22]wFMCommunicate OK [13:57:22]SAM_PROTO_GetShiftState done [13:57:22]FM_GetShiftState done [13:57:22]req_shift_opened done [13:57:22]requested_item shift.open_date is exist - process it [13:57:22]req_shift_open_date [13:57:22]req_shift_open_date done [13:57:22]produce_requested_data done [13:57:22]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118794,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [13:57:22]process_action_free close_receipt [13:57:22]json_value_free [13:57:22]json_value_free done [13:57:22]process_json_proto returns [13:57:22]Send response to host [13:57:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118794,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [13:57:22]free response buf [13:57:22]execute_script done [13:57:22]execute_script returns [13:57:22]free content buf [13:57:22]Sock 9.Close socket [13:57:22]Sock 9.Thread stoped [13:57:26]OFD Sender: No OFD packet to send [13:57:31]OFD Sender: No OFD packet to send [13:57:36]OFD Sender: No OFD packet to send [13:57:41]OFD Sender: No OFD packet to send [13:57:46]OFD Sender: No OFD packet to send [13:57:51]OFD Sender: No OFD packet to send [13:57:56]OFD Sender: No OFD packet to send [13:58:01]OFD Sender: No OFD packet to send [13:58:06]OFD Sender: No OFD packet to send [13:58:11]OFD Sender: No OFD packet to send [13:58:16]OFD Sender: No OFD packet to send [13:58:21]OFD Sender: No OFD packet to send [13:58:26]OFD Sender: No OFD packet to send [13:58:31]OFD Sender: No OFD packet to send [13:58:36]OFD Sender: No OFD packet to send [13:58:41]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:48]accept exits with 7 [13:59:48]New connection [13:59:48]New thread 3067383140 created [13:59:48]Thread 3067239780 joined [13:59:48]Waiting for new connection... [13:59:48] Sock 7.Parse request [13:59:48]Sock 7.Check first char [13:59:48]Sock 7.First char is OK [13:59:48]request: POST /json_proto HTTP/1.0 [13:59:48]Method: POST [13:59:48]URL: /json_proto [13:59:48]Method is POST - this is cgi request [13:59:48]url: /json_proto [13:59:48]query_string will be loaded in cgi processing [13:59:48]execute_cgi json_proto POST (null) [13:59:48]execute_cgi path=json_proto method=POST [13:59:48]POST find Content-Length [13:59:48]Host: 172.17.45.7:8080 [13:59:48]Content-Length: 674 [13:59:48]Content-Type: application/json [13:59:48] [13:59:48]POST finish read [13:59:48]Found Content-Length = 674 [13:59:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:48]execute_script... [13:59: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)949681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:48]POST & json_proto [13:59:48]process_json_proto [13:59:48]json parsed OK: [13:59:48]protocol is kg_v1.0 [13:59:48]action value=close_receipt [13:59:48]process_action close_receipt [13:59:48]cmd_close_receipt [13:59:48]MH_GetDate [13:59:48]Write to MH i2c: F0 00 00 D5 5A 1E [13:59:48]Write i2c OK [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: F0 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: F0 09 00 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: F0 09 00 D5 5A 00 5A A0 A7 66 90 0F 3E 66 71 [13:59:48]GetLastDocTimeStamp 1722261444 [13:59:48]current date 1722261594 [13:59:48]FM_GetShiftState [13:59:48]SAM_PROTO_GetShiftState [13:59:48]wFMCommunicate request_size=4 [13:59:48]MH_SAM_APDU [13:59:48]CAPDU: 80 13 01 00 [13:59:48]Write to MH i2c: E2 08 00 D6 5A 80 13 01 00 00 00 00 00 AD [13:59:48]Write i2c OK [13:59:48]MH_I2C_Read... [13:59:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:48]Read from MH i2c: E2 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: E2 0E 00 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: E2 0E 00 D6 5A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 DB [13:59:48]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:59:48]wFMCommunicate OK [13:59:48]SAM_PROTO_GetShiftState done [13:59:48]FM_GetShiftState done [13:59:48]opened in 1722211641 [13:59:48]opened+sec_in_day 1722298041 [13:59:48]quantity*price = 70027 [13:59:48]sum+1 = 70029 [13:59:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 171 29.07.2024 13:59 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118795 ФПД: 64494536772576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T135954&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118795&fm=64494536772576&tin=02508201610067®Number=0000000000092660&sum=70000 [13:59:49]StoreToDocumentArchive [13:59:49]shift 434 fd 118795 [13:59:49]save to /storage/0434/doc_00118795 [13:59:49]save last doc name /storage/0434/doc_00118795 to /storage/kkm_last_doc_name [13:59:49]save OK [13:59:49]Clear old archive folders... [13:59:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:59:49]tlvbuf is 01E93F10 [13:59:49]SAM_PROTO_ClearQueue [13:59:49]wFMCommunicate request_size=4 [13:59:49]MH_SAM_APDU [13:59:49]CAPDU: 80 09 00 00 [13:59:49]Write to MH i2c: E2 08 00 E3 5A 80 09 00 00 00 00 00 00 AF [13:59:49]Write i2c OK [13:59:49]MH_I2C_Read... [13:59:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:49]Read from MH i2c: E2 [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: E2 03 00 [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: E2 03 00 E3 5A 00 90 00 B1 [13:59:49]RAPDU: 90 00 [13:59:49]wFMCommunicate OK [13:59:49]SAM_PROTO_ClearQueue done [13:59:49]KKMCreateOFDPacket [13:59:49]OFDProtocolAddRootSTLVToBuf [13:59:49]FM_MakeSignedData [13:59:49]FM_MakeSignedData [13:59:49]SAM_PROTO_SignData [13:59:49]wFMCommunicate request_size=4 [13:59:49]MH_SAM_APDU [13:59:49]CAPDU: 80 0D 01 02 [13:59:49]Write to MH i2c: E2 08 00 E4 5A 80 0D 01 02 00 00 00 00 B7 [13:59:49]Write i2c OK [13:59:49]MH_I2C_Read... [13:59:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:49]Read from MH i2c: E2 [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: E2 03 00 [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: E2 03 00 E4 5A 00 90 00 B2 [13:59:49]RAPDU: 90 00 [13:59:49]wFMCommunicate OK [13:59:49]wFMCommunicate request_size=255 [13:59:49]MH_SAM_APDU [13:59: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 5A A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B D0 01 00 35 04 06 00 3A A8 4D F4 [13:59:49]Write to MH i2c: E2 02 01 E5 5A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 5A A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B D0 01 00 35 04 06 00 3A A8 4D F4 00 00 A7 [13:59:49]Write i2c OK [13:59:49]MH_I2C_Read... [13:59:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:50]Read from MH i2c: E2 [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: E2 03 00 [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: E2 03 00 E5 5A 00 90 00 B3 [13:59:50]RAPDU: 90 00 [13:59:50]wFMCommunicate OK [13:59:50]wFMCommunicate request_size=7 [13:59:50]MH_SAM_APDU [13:59:50]CAPDU: 80 0D 02 02 02 4B E0 [13:59:50]Write to MH i2c: E2 0A 00 E6 5A 80 0D 02 02 02 00 4B E0 00 00 E9 [13:59:50]Write i2c OK [13:59:50]MH_I2C_Read... [13:59:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:50]Read from MH i2c: E2 [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: E2 03 00 [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: E2 03 00 E6 5A 00 90 00 B4 [13:59:50]RAPDU: 90 00 [13:59:50]wFMCommunicate OK [13:59:50]wFMCommunicate request_size=4 [13:59:50]MH_SAM_APDU [13:59:50]CAPDU: 80 0D 03 02 [13:59:50]Write to MH i2c: E2 08 00 E7 5A 80 0D 03 02 00 00 00 00 BC [13:59:50]Write i2c OK [13:59:50]MH_I2C_Read... [13:59:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:50]Read from MH i2c: E2 [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: E2 0B 00 [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: E2 0B 00 E7 5A 00 9A 63 D6 34 0C A1 BF 17 90 00 47 [13:59:50]RAPDU: 9A 63 D6 34 0C A1 BF 17 90 00 [13:59:50]wFMCommunicate OK [13:59:50]SAM_PROTO_SignData done [13:59:50]FM_MakeSignedData done [13:59:50]CreateOFDProtocolMessage [13:59:50]wFMCommunicate request_size=4 [13:59:50]MH_SAM_APDU [13:59:50]CAPDU: 80 11 00 00 [13:59:50]Write to MH i2c: E2 08 00 E8 5A 80 11 00 00 00 00 00 00 BC [13:59:50]Write i2c OK [13:59:50]MH_I2C_Read... [13:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:50]Read from MH i2c: E2 [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: E2 17 00 [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: E2 17 00 E8 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 17 [13:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:59:50]wFMCommunicate OK [13:59:50]CreateOFDProtocolMessage done [13:59:50]OFDSenderStorePacket 118795 [13:59:50]StoreOFDPacket docnum=118795 [13:59:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 FF CB 04 01 A8 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 5A A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B D0 01 00 35 04 06 00 3A A8 4D F4 4B E0 9A 63 D6 34 0C A1 BF 17 [13:59:50]CheckFolder [13:59:50]dirname=/storage/ofd_packets [13:59:50]CheckFolder done [13:59:50]ProducePacketName [13:59:50]name=ofd_packets/00118795 [13:59:50]NVStorageSaveData ofd_packets/00118795 [13:59:50]File name is /storage/ofd_packets/00118795 [13:59:50]Write 298 bytes [13:59:50]NVStorageSaveData done [13:59:50]OFDSenderStorePacket done [13:59:50]KKMCreateOFDPacket done [13:59:50]NVStorageSaveData kkm_last_timestamp [13:59:50]File name is /storage/kkm_last_timestamp [13:59:50]Write 4 bytes [13:59:50]OFD Sender: Processing packet 118795 [packets to send 86, broken 85] [13:59:50]ProducePacketName [13:59:50]name=ofd_packets/00118795 [13:59:50]OFD Sender: To server: pG, [13:59:50]CommunicateWithHost lk.salyk.kg:30040 [13:59:50]ConnectInit lk.salyk.kg [13:59:50]NVStorageSaveData done [13:59:50]ExternCall_PrintAddStr [13:59:50]wPrintStart [13:59:50]Write to MH i2c: 01 00 00 E9 5A 43 [13:59:50]Write i2c OK [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: 01 [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: 01 07 00 [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: 01 07 00 E9 5A 00 00 00 00 00 FF 0F 58 [13:59:50]RasterBufferAndPrint [13:59:50]line Счет N : (1)949681 [13:59:50]line ИНН: 02508201610067 [13:59:50]line Контрольно-Кассовый Чек [13:59:50]line ПРОДАЖА [13:59:50]line ТРК (МРК, ГНК) : 21 [13:59:50]line Товар: 2710194800 [13:59:50]line ДТ-К-5 [13:59:50]line 9.190 * 76.20 [13:59:50]line = 700.28 [13:59:50]line НДС 12% НСП 1% [13:59:50]line > о реализуемом товаре [13:59:50]line ОКРУГЛЕНИЕ: -0.28 [13:59:50]line ИТОГО: 700.00 [13:59:50]line Внесено: 700.00 [13:59:50]line СДАЧА: 0.00 [13:59:50]line НСП 1% : 6.20 [13:59:50]line НДС 12% : 74.37 [13:59:50]line Наличными: 700.00 [13:59:50]line Безнал.: 0.00 [13:59:50]line Место: АЗС № 134 "Партнер Нефть" [13:59:50]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:59:50]line СНО: Общий режим [13:59:50]line Чек 171 29.07.2024 13:59 [13:59:50]line Смена: 434 ФФД: 1.0 [13:59:50]line ЗНМ: 0300000044 [13:59:50]line РНМ: 0000000000092660 [13:59:50]line Версия ККМ: 001 [13:59:50]line ФМ: 0000000000874939 [13:59:50]line ФД: 118795 [13:59:50]line ФПД: 64494536772576 [13:59:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T135954&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118795&fm=64494536772576&tin=02508201610067®Number=0000000000092660&sum=70000 [13:59:50]written 0, free lines is 4095 [13:59:50]Connected sock=11 [13:59:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 FF CB 04 01 A8 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 5A A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B D0 01 00 35 04 06 00 3A A8 4D F4 4B E0 9A 63 D6 34 0C A1 BF 17 [13:59:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 DD E3 47 00 C4 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 34 39 33 39 10 04 04 00 0B D0 01 00 F4 03 04 00 E7 4D A7 66 B6 04 01 00 00 8D E5 FA A9 46 4A E7 F6 [13:59:50]CommunicateWithHost err = 0 [13:59:50]CheckOFDResponse [13:59:50]1017 (14) - 77093643461234 [13:59:50]1041 (16) - 0000000000874939 [13:59:50]1040 (4) - 118795 [13:59:50]1012 (4) - 29.07.2024 08:08 [13:59:50]1206 (1) - 0 [13:59:50]OFD Sender: Remove packet 118795 [13:59:50]ProducePacketName [13:59:50]name=ofd_packets/00118795 [13:59:50]NVStorageDeleteData [13:59:50]Write to MH i2c: 01 00 00 13 5B 6E [13:59:50]Write i2c OK [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: 01 [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: 01 07 00 [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: 01 07 00 13 5B 00 00 00 00 00 DC 0C 5D [13:59:50]RasterBufferAndPrint [13:59:50]line [13:59:50]line [13:59:50]line [13:59:50]line [13:59:50]line [13:59:50]written 0, free lines is 3298 [13:59:50]MH_Cut [13:59:50]Write to MH i2c: D1 01 00 1A 5B 01 47 [13:59:50]Write i2c OK [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: D1 [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: D1 01 00 [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: D1 01 00 1A 5B 00 46 [13:59:50]Write to MH i2c: 01 00 00 1B 5B 76 [13:59:50]Write i2c OK [13:59:50]MH_I2C_Read... [13:59:51]OFD Sender: No OFD packet to send [13:59:51]*** Cut start [13:59:51]*** Partial cut [13:59:51]*** CUTSNS_PIN = 1 [13:59:51]*** CUTSNS_PIN = 0 [13:59:51]*** Brake cut motor [13:59:52]Read from MH i2c: 01 [13:59:52]MH_I2C_Read... [13:59:52]*** Stop cut motor [13:59:52]*** Cut end [13:59:52]Read from MH i2c: 01 07 00 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: 01 07 00 1B 5B 00 00 00 00 00 FF 0F 8B [13:59:52]process_action close_receipt done [13:59:52]requested_data is exist [13:59:52]produce_requested_data [13:59:52]requested_item fm.sn is exist - process it [13:59:52]wFMCommunicate request_size=4 [13:59:52]MH_SAM_APDU [13:59:52]CAPDU: 80 11 00 00 [13:59:52]Write to MH i2c: E2 08 00 1C 5B 80 11 00 00 00 00 00 00 F1 [13:59:52]Write i2c OK [13:59:52]MH_I2C_Read... [13:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:52]Read from MH i2c: E2 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 17 00 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 17 00 1C 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4C [13:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:59:52]wFMCommunicate OK [13:59:52]requested_item fd.num is exist - process it [13:59:52]SAM_PROTO_GetFieldsCounters [13:59:52]wFMCommunicate request_size=4 [13:59:52]MH_SAM_APDU [13:59:52]CAPDU: 80 13 00 00 [13:59:52]Write to MH i2c: E2 08 00 1D 5B 80 13 00 00 00 00 00 00 F4 [13:59:52]Write i2c OK [13:59:52]MH_I2C_Read... [13:59:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:52]Read from MH i2c: E2 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 62 00 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 62 00 1D 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0B D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [13:59: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0B D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:59:52]wFMCommunicate OK [13:59:52]SAM_PROTO_GetFieldsCounters done [13:59:52]requested_item shift.num is exist - process it [13:59:52]requested_item shift.opened is exist - process it [13:59:52]req_shift_opened [13:59:52]FM_GetShiftState [13:59:52]SAM_PROTO_GetShiftState [13:59:52]wFMCommunicate request_size=4 [13:59:52]MH_SAM_APDU [13:59:52]CAPDU: 80 13 01 00 [13:59:52]Write to MH i2c: E2 08 00 1E 5B 80 13 01 00 00 00 00 00 F6 [13:59:52]Write i2c OK [13:59:52]MH_I2C_Read... [13:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:52]Read from MH i2c: E2 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 0E 00 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 0E 00 1E 5B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 24 [13:59:52]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [13:59:52]wFMCommunicate OK [13:59:52]SAM_PROTO_GetShiftState done [13:59:52]FM_GetShiftState done [13:59:52]req_shift_opened done [13:59:52]requested_item shift.open_date is exist - process it [13:59:52]req_shift_open_date [13:59:52]req_shift_open_date done [13:59:52]produce_requested_data done [13:59:52]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118795,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [13:59:52]process_action_free close_receipt [13:59:52]json_value_free [13:59:52]json_value_free done [13:59:52]process_json_proto returns [13:59:52]Send response to host [13:59:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118795,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [13:59:52]free response buf [13:59:52]execute_script done [13:59:52]execute_script returns [13:59:52]free content buf [13:59:52]Sock 7.Close socket [13:59:52]Sock 7.Thread stoped [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:21]accept exits with 9 [14:02:21]New connection [14:02:21]New thread 3067239780 created [14:02:21]Thread 3067383140 joined [14:02:21]Waiting for new connection... [14:02:21] Sock 9.Parse request [14:02:21]Sock 9.Check first char [14:02:21]Sock 9.First char is OK [14:02:21]request: POST /json_proto HTTP/1.0 [14:02:21]Method: POST [14:02:21]URL: /json_proto [14:02:21]Method is POST - this is cgi request [14:02:21]url: /json_proto [14:02:21]query_string will be loaded in cgi processing [14:02:21]execute_cgi json_proto POST (null) [14:02:21]execute_cgi path=json_proto method=POST [14:02:21]POST find Content-Length [14:02:21]Host: 172.17.45.7:8080 [14:02:21]Content-Length: 682 [14:02:21]Content-Type: application/json [14:02:21] [14:02:21]POST finish read [14:02:21]Found Content-Length = 682 [14:02:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:21]execute_script... [14:02:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:21]POST & json_proto [14:02:21]process_json_proto [14:02:21]json parsed OK: [14:02:21]protocol is kg_v1.0 [14:02:21]action value=close_receipt [14:02:21]process_action close_receipt [14:02:21]cmd_close_receipt [14:02:21]MH_GetDate [14:02:21]Write to MH i2c: F0 00 00 1F 5B 69 [14:02:21]Write i2c OK [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: F0 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: F0 09 00 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: F0 09 00 1F 5B 00 F3 A0 A7 66 90 0F 3E 66 55 [14:02:21]GetLastDocTimeStamp 1722261594 [14:02:21]current date 1722261747 [14:02:21]FM_GetShiftState [14:02:21]SAM_PROTO_GetShiftState [14:02:21]wFMCommunicate request_size=4 [14:02:21]MH_SAM_APDU [14:02:21]CAPDU: 80 13 01 00 [14:02:21]Write to MH i2c: E2 08 00 20 5B 80 13 01 00 00 00 00 00 F8 [14:02:21]Write i2c OK [14:02:21]MH_I2C_Read... [14:02:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:21]Read from MH i2c: E2 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 0E 00 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 0E 00 20 5B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 26 [14:02:21]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [14:02:21]wFMCommunicate OK [14:02:21]SAM_PROTO_GetShiftState done [14:02:21]FM_GetShiftState done [14:02:21]opened in 1722211641 [14:02:21]opened+sec_in_day 1722298041 [14:02:21]quantity*price = 150041 [14:02:21]sum+1 = 150042 [14:02:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 172 29.07.2024 14:02 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118796 ФПД: 42254128777022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T140227&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118796&fm=42254128777022&tin=02508201610067®Number=0000000000092660&sum=150000 [14:02:22]StoreToDocumentArchive [14:02:22]shift 434 fd 118796 [14:02:22]save to /storage/0434/doc_00118796 [14:02:22]save last doc name /storage/0434/doc_00118796 to /storage/kkm_last_doc_name [14:02:22]save OK [14:02:22]Clear old archive folders... [14:02:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:02:22]tlvbuf is 01E52130 [14:02:22]SAM_PROTO_ClearQueue [14:02:22]wFMCommunicate request_size=4 [14:02:22]MH_SAM_APDU [14:02:22]CAPDU: 80 09 00 00 [14:02:22]Write to MH i2c: E2 08 00 2D 5B 80 09 00 00 00 00 00 00 FA [14:02:22]Write i2c OK [14:02:22]MH_I2C_Read... [14:02:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:22]Read from MH i2c: E2 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 03 00 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 03 00 2D 5B 00 90 00 FC [14:02:22]RAPDU: 90 00 [14:02:22]wFMCommunicate OK [14:02:22]SAM_PROTO_ClearQueue done [14:02:22]KKMCreateOFDPacket [14:02:22]OFDProtocolAddRootSTLVToBuf [14:02:22]FM_MakeSignedData [14:02:22]FM_MakeSignedData [14:02:22]SAM_PROTO_SignData [14:02:22]wFMCommunicate request_size=4 [14:02:22]MH_SAM_APDU [14:02:22]CAPDU: 80 0D 01 02 [14:02:22]Write to MH i2c: E2 08 00 2E 5B 80 0D 01 02 00 00 00 00 02 [14:02:22]Write i2c OK [14:02:22]MH_I2C_Read... [14:02:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:22]Read from MH i2c: E2 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 03 00 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 03 00 2E 5B 00 90 00 FD [14:02:22]RAPDU: 90 00 [14:02:22]wFMCommunicate OK [14:02:22]wFMCommunicate request_size=255 [14:02:22]MH_SAM_APDU [14:02:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 F3 A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C D0 01 00 35 04 06 00 26 [14:02:22]Write to MH i2c: E2 02 01 2F 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 F3 A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C D0 01 00 35 04 06 00 26 00 00 FD [14:02:22]Write i2c OK [14:02:22]MH_I2C_Read... [14:02:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:22]Read from MH i2c: E2 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 03 00 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 03 00 2F 5B 00 90 00 FE [14:02:22]RAPDU: 90 00 [14:02:22]wFMCommunicate OK [14:02:22]wFMCommunicate request_size=10 [14:02:22]MH_SAM_APDU [14:02:22]CAPDU: 80 0D 02 02 05 6E 0E 56 07 3E [14:02:22]Write to MH i2c: E2 0D 00 30 5B 80 0D 02 02 05 00 6E 0E 56 07 3E 00 00 26 [14:02:22]Write i2c OK [14:02:22]MH_I2C_Read... [14:02:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:22]Read from MH i2c: E2 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 03 00 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 03 00 30 5B 00 90 00 FF [14:02:22]RAPDU: 90 00 [14:02:22]wFMCommunicate OK [14:02:22]wFMCommunicate request_size=4 [14:02:22]MH_SAM_APDU [14:02:22]CAPDU: 80 0D 03 02 [14:02:22]Write to MH i2c: E2 08 00 31 5B 80 0D 03 02 00 00 00 00 07 [14:02:22]Write i2c OK [14:02:22]MH_I2C_Read... [14:02:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:22]Read from MH i2c: E2 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 0B 00 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 0B 00 31 5B 00 0E 81 5A 3A A9 24 0B E9 90 00 EC [14:02:22]RAPDU: 0E 81 5A 3A A9 24 0B E9 90 00 [14:02:22]wFMCommunicate OK [14:02:22]SAM_PROTO_SignData done [14:02:22]FM_MakeSignedData done [14:02:22]CreateOFDProtocolMessage [14:02:22]wFMCommunicate request_size=4 [14:02:22]MH_SAM_APDU [14:02:22]CAPDU: 80 11 00 00 [14:02:22]Write to MH i2c: E2 08 00 32 5B 80 11 00 00 00 00 00 00 07 [14:02:22]Write i2c OK [14:02:22]MH_I2C_Read... [14:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:22]Read from MH i2c: E2 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 17 00 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: E2 17 00 32 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 62 [14:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:02:22]wFMCommunicate OK [14:02:22]CreateOFDProtocolMessage done [14:02:22]OFDSenderStorePacket 118796 [14:02:22]StoreOFDPacket docnum=118796 [14:02:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 45 22 07 01 5F 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 F3 A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C D0 01 00 35 04 06 00 26 6E 0E 56 07 3E 0E 81 5A 3A A9 24 0B E9 [14:02:22]CheckFolder [14:02:22]dirname=/storage/ofd_packets [14:02:22]CheckFolder done [14:02:22]ProducePacketName [14:02:22]name=ofd_packets/00118796 [14:02:22]NVStorageSaveData ofd_packets/00118796 [14:02:22]File name is /storage/ofd_packets/00118796 [14:02:22]Write 301 bytes [14:02:22]NVStorageSaveData done [14:02:22]OFDSenderStorePacket done [14:02:22]KKMCreateOFDPacket done [14:02:22]NVStorageSaveData kkm_last_timestamp [14:02:22]File name is /storage/kkm_last_timestamp [14:02:22]Write 4 bytes [14:02:22]NVStorageSaveData done [14:02:22]ExternCall_PrintAddStr [14:02:22]wPrintStart [14:02:22]Write to MH i2c: 01 00 00 33 5B 8E [14:02:22]Write i2c OK [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: 01 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: 01 07 00 [14:02:22]MH_I2C_Read... [14:02:22]Read from MH i2c: 01 07 00 33 5B 00 00 00 00 00 FF 0F A3 [14:02:22]RasterBufferAndPrint [14:02:22]line Счет N : (1)949682 [14:02:22]line ИНН: 02508201610067 [14:02:22]line Контрольно-Кассовый Чек [14:02:22]line ПРОДАЖА [14:02:22]line ТРК (МРК, ГНК) : 51 [14:02:22]line Товар: 2710124130 [14:02:22]line Аи-92-К-4 [14:02:22]line 22.130 * 67.80 [14:02:22]line = 1500.41 [14:02:22]line НДС 12% НСП 1% [14:02:22]line > о реализуемом товаре [14:02:22]line ОКРУГЛЕНИЕ: -0.41 [14:02:22]line ИТОГО: 1500.00 [14:02:22]line Внесено: 1500.00 [14:02:22]line СДАЧА: 0.00 [14:02:22]line НСП 1% : 13.28 [14:02:22]line НДС 12% : 159.34 [14:02:22]line Наличными: 1500.00 [14:02:22]line Безнал.: 0.00 [14:02:22]line Место: АЗС № 134 "Партнер Нефть" [14:02:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:02:22]line СНО: Общий режим [14:02:22]line Чек 172 29.07.2024 14:02 [14:02:22]line Смена: 434 ФФД: 1.0 [14:02:22]line ЗНМ: 0300000044 [14:02:22]line РНМ: 0000000000092660 [14:02:22]line Версия ККМ: 001 [14:02:22]line ФМ: 0000000000874939 [14:02:22]line ФД: 118796 [14:02:23]line ФПД: 42254128777022 [14:02:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T140227&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118796&fm=42254128777022&tin=02508201610067®Number=0000000000092660&sum=150000 [14:02:23]OFD Sender: Processing packet 118796 [packets to send 86, broken 85] [14:02:23]ProducePacketName [14:02:23]name=ofd_packets/00118796 [14:02:23]OFD Sender: To server: pG, [14:02:23]CommunicateWithHost lk.salyk.kg:30040 [14:02:23]ConnectInit lk.salyk.kg [14:02:23]written 0, free lines is 4095 [14:02:23]Connected sock=10 [14:02:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 45 22 07 01 5F 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 F3 A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C D0 01 00 35 04 06 00 26 6E 0E 56 07 3E 0E 81 5A 3A A9 24 0B E9 [14:02:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9D 48 47 00 7D AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C D0 01 00 F4 03 04 00 80 4E A7 66 B6 04 01 00 00 F8 C8 96 12 C3 23 8E C5 [14:02:23]CommunicateWithHost err = 0 [14:02:23]CheckOFDResponse [14:02:23]1017 (14) - 77093643461234 [14:02:23]1041 (16) - 0000000000874939 [14:02:23]1040 (4) - 118796 [14:02:23]1012 (4) - 29.07.2024 08:10 [14:02:23]1206 (1) - 0 [14:02:23]OFD Sender: Remove packet 118796 [14:02:23]ProducePacketName [14:02:23]name=ofd_packets/00118796 [14:02:23]NVStorageDeleteData [14:02:23]Write to MH i2c: 01 00 00 5D 5B B8 [14:02:23]Write i2c OK [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: 01 [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: 01 07 00 [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: 01 07 00 5D 5B 00 00 00 00 00 EA 0C B5 [14:02:23]RasterBufferAndPrint [14:02:23]line [14:02:23]line [14:02:23]line [14:02:23]line [14:02:23]line [14:02:23]written 0, free lines is 3311 [14:02:23]MH_Cut [14:02:23]Write to MH i2c: D1 01 00 64 5B 01 91 [14:02:23]Write i2c OK [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: D1 [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: D1 01 00 [14:02:23]MH_I2C_Read... [14:02:23]Read from MH i2c: D1 01 00 64 5B 00 90 [14:02:23]Write to MH i2c: 01 00 00 65 5B C0 [14:02:23]Write i2c OK [14:02:23]MH_I2C_Read... [14:02:24]OFD Sender: No OFD packet to send [14:02:24]*** Cut start [14:02:24]*** Partial cut [14:02:24]*** CUTSNS_PIN = 1 [14:02:24]*** CUTSNS_PIN = 0 [14:02:24]*** Brake cut motor [14:02:25]Read from MH i2c: 01 [14:02:25]MH_I2C_Read... [14:02:25]*** Stop cut motor [14:02:25]*** Cut end [14:02:25]Read from MH i2c: 01 07 00 [14:02:25]MH_I2C_Read... [14:02:25]Read from MH i2c: 01 07 00 65 5B 00 00 00 00 00 FF 0F D5 [14:02:25]process_action close_receipt done [14:02:25]requested_data is exist [14:02:25]produce_requested_data [14:02:25]requested_item fm.sn is exist - process it [14:02:25]wFMCommunicate request_size=4 [14:02:25]MH_SAM_APDU [14:02:25]CAPDU: 80 11 00 00 [14:02:25]Write to MH i2c: E2 08 00 66 5B 80 11 00 00 00 00 00 00 3B [14:02:25]Write i2c OK [14:02:25]MH_I2C_Read... [14:02:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:25]Read from MH i2c: E2 [14:02:25]MH_I2C_Read... [14:02:25]Read from MH i2c: E2 17 00 [14:02:25]MH_I2C_Read... [14:02:25]Read from MH i2c: E2 17 00 66 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 96 [14:02:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:02:25]wFMCommunicate OK [14:02:25]requested_item fd.num is exist - process it [14:02:25]SAM_PROTO_GetFieldsCounters [14:02:25]wFMCommunicate request_size=4 [14:02:25]MH_SAM_APDU [14:02:25]CAPDU: 80 13 00 00 [14:02:25]Write to MH i2c: E2 08 00 67 5B 80 13 00 00 00 00 00 00 3E [14:02:25]Write i2c OK [14:02:25]MH_I2C_Read... [14:02:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:25]Read from MH i2c: E2 [14:02:25]MH_I2C_Read... [14:02:25]Read from MH i2c: E2 62 00 [14:02:25]MH_I2C_Read... [14:02:25]Read from MH i2c: E2 62 00 67 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0C D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [14:02: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0C D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:02:25]wFMCommunicate OK [14:02:25]SAM_PROTO_GetFieldsCounters done [14:02:25]requested_item shift.num is exist - process it [14:02:25]requested_item shift.opened is exist - process it [14:02:25]req_shift_opened [14:02:25]FM_GetShiftState [14:02:25]SAM_PROTO_GetShiftState [14:02:25]wFMCommunicate request_size=4 [14:02:25]MH_SAM_APDU [14:02:25]CAPDU: 80 13 01 00 [14:02:25]Write to MH i2c: E2 08 00 68 5B 80 13 01 00 00 00 00 00 40 [14:02:25]Write i2c OK [14:02:25]MH_I2C_Read... [14:02:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:25]Read from MH i2c: E2 [14:02:25]MH_I2C_Read... [14:02:25]Read from MH i2c: E2 0E 00 [14:02:25]MH_I2C_Read... [14:02:25]Read from MH i2c: E2 0E 00 68 5B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 6E [14:02:25]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [14:02:25]wFMCommunicate OK [14:02:25]SAM_PROTO_GetShiftState done [14:02:25]FM_GetShiftState done [14:02:25]req_shift_opened done [14:02:25]requested_item shift.open_date is exist - process it [14:02:25]req_shift_open_date [14:02:25]req_shift_open_date done [14:02:25]produce_requested_data done [14:02:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118796,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [14:02:25]process_action_free close_receipt [14:02:25]json_value_free [14:02:25]json_value_free done [14:02:25]process_json_proto returns [14:02:25]Send response to host [14:02:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118796,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [14:02:25]free response buf [14:02:25]execute_script done [14:02:25]execute_script returns [14:02:25]free content buf [14:02:25]Sock 9.Close socket [14:02:25]Sock 9.Thread stoped [14:02:29]OFD Sender: No OFD packet to send [14:02:34]OFD Sender: No OFD packet to send [14:02:39]OFD Sender: No OFD packet to send [14:02:44]OFD Sender: No OFD packet to send [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:09]OFD Sender: No OFD packet to send [14:03:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [14:03:49]OFD Sender: No OFD packet to send [14:03:54]OFD Sender: No OFD packet to send [14:03:59]OFD Sender: No OFD packet to send [14:04:04]OFD Sender: No OFD packet to send [14:04:09]OFD Sender: No OFD packet to send [14:04:14]OFD Sender: No OFD packet to send [14:04:19]OFD Sender: No OFD packet to send [14:04:24]OFD Sender: No OFD packet to send [14:04:29]OFD Sender: No OFD packet to send [14:04:34]OFD Sender: No OFD packet to send [14:04:39]OFD Sender: No OFD packet to send [14:04:44]OFD Sender: No OFD packet to send [14:04:49]OFD Sender: No OFD packet to send [14:04:54]OFD Sender: No OFD packet to send [14:04:59]OFD Sender: No OFD packet to send [14:05:04]OFD Sender: No OFD packet to send [14:05:09]OFD Sender: No OFD packet to send [14:05:14]OFD Sender: No OFD packet to send [14:05:19]OFD Sender: No OFD packet to send [14:05:24]OFD Sender: No OFD packet to send [14:05:29]OFD Sender: No OFD packet to send [14:05:34]OFD Sender: No OFD packet to send [14:05:39]OFD Sender: No OFD packet to send [14:05:44]OFD Sender: No OFD packet to send [14:05:49]OFD Sender: No OFD packet to send [14:05:54]OFD Sender: No OFD packet to send [14:05:59]OFD Sender: No OFD packet to send [14:06:04]OFD Sender: No OFD packet to send [14:06:09]OFD Sender: No OFD packet to send [14:06:14]OFD Sender: No OFD packet to send [14:06:19]OFD Sender: No OFD packet to send [14:06:24]OFD Sender: No OFD packet to send [14:06:29]OFD Sender: No OFD packet to send [14:06:34]OFD Sender: No OFD packet to send [14:06:39]OFD Sender: No OFD packet to send [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:39]OFD Sender: No OFD packet to send [14:08:44]OFD Sender: No OFD packet to send [14:08:49]OFD Sender: No OFD packet to send [14:08:54]OFD Sender: No OFD packet to send [14:08:59]OFD Sender: No OFD packet to send [14:09:04]OFD Sender: No OFD packet to send [14:09:09]OFD Sender: No OFD packet to send [14:09:14]OFD Sender: No OFD packet to send [14:09:19]OFD Sender: No OFD packet to send [14:09:24]OFD Sender: No OFD packet to send [14:09:29]OFD Sender: No OFD packet to send [14:09:34]OFD Sender: No OFD packet to send [14:09:39]OFD Sender: No OFD packet to send [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:54]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]OFD Sender: No OFD packet to send [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:12]accept exits with 7 [14:11:12]New connection [14:11:12]New thread 3067383140 created [14:11:12]Thread 3067239780 joined [14:11:12]Waiting for new connection... [14:11:12] Sock 7.Parse request [14:11:12]Sock 7.Check first char [14:11:12]Sock 7.First char is OK [14:11:12]request: POST /json_proto HTTP/1.0 [14:11:12]Method: POST [14:11:12]URL: /json_proto [14:11:12]Method is POST - this is cgi request [14:11:12]url: /json_proto [14:11:12]query_string will be loaded in cgi processing [14:11:12]execute_cgi json_proto POST (null) [14:11:12]execute_cgi path=json_proto method=POST [14:11:12]POST find Content-Length [14:11:12]Host: 172.17.45.7:8080 [14:11:12]Content-Length: 677 [14:11:12]Content-Type: application/json [14:11:12] [14:11:12]POST finish read [14:11:12]Found Content-Length = 677 [14:11:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:12]execute_script... [14:11:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:12]POST & json_proto [14:11:12]process_json_proto [14:11:12]json parsed OK: [14:11:12]protocol is kg_v1.0 [14:11:12]action value=close_receipt [14:11:12]process_action close_receipt [14:11:12]cmd_close_receipt [14:11:12]MH_GetDate [14:11:12]Write to MH i2c: F0 00 00 69 5B B3 [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: F0 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: F0 09 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: F0 09 00 69 5B 00 06 A3 A7 66 90 0F 3E 66 B5 [14:11:12]GetLastDocTimeStamp 1722261747 [14:11:12]current date 1722262278 [14:11:12]FM_GetShiftState [14:11:12]SAM_PROTO_GetShiftState [14:11:12]wFMCommunicate request_size=4 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 13 01 00 [14:11:12]Write to MH i2c: E2 08 00 6A 5B 80 13 01 00 00 00 00 00 42 [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:13]Read from MH i2c: E2 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: E2 0E 00 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: E2 0E 00 6A 5B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 70 [14:11:13]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [14:11:13]wFMCommunicate OK [14:11:13]SAM_PROTO_GetShiftState done [14:11:13]FM_GetShiftState done [14:11:13]opened in 1722211641 [14:11:13]opened+sec_in_day 1722298041 [14:11:13]quantity*price = 50036 [14:11:13]sum+1 = 50037 [14:11:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 173 29.07.2024 14:11 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118797 ФПД: 209157178586104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T141118&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118797&fm=209157178586104&tin=02508201610067®Number=0000000000092660&sum=50000 [14:11:14]StoreToDocumentArchive [14:11:14]shift 434 fd 118797 [14:11:14]save to /storage/0434/doc_00118797 [14:11:14]save last doc name /storage/0434/doc_00118797 to /storage/kkm_last_doc_name [14:11:14]save OK [14:11:14]Clear old archive folders... [14:11:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:11:14]tlvbuf is 02042060 [14:11:14]SAM_PROTO_ClearQueue [14:11:14]wFMCommunicate request_size=4 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 09 00 00 [14:11:14]Write to MH i2c: E2 08 00 77 5B 80 09 00 00 00 00 00 00 44 [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 77 5B 00 90 00 46 [14:11:14]RAPDU: 90 00 [14:11:14]wFMCommunicate OK [14:11:14]SAM_PROTO_ClearQueue done [14:11:14]KKMCreateOFDPacket [14:11:14]OFDProtocolAddRootSTLVToBuf [14:11:14]FM_MakeSignedData [14:11:14]FM_MakeSignedData [14:11:14]SAM_PROTO_SignData [14:11:14]wFMCommunicate request_size=4 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 0D 01 02 [14:11:14]Write to MH i2c: E2 08 00 78 5B 80 0D 01 02 00 00 00 00 4C [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 78 5B 00 90 00 47 [14:11:14]RAPDU: 90 00 [14:11:14]wFMCommunicate OK [14:11:14]wFMCommunicate request_size=255 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 06 A3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D D0 01 00 35 04 06 00 BE [14:11:14]Write to MH i2c: E2 02 01 79 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 06 A3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D D0 01 00 35 04 06 00 BE 00 00 82 [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 79 5B 00 90 00 48 [14:11:14]RAPDU: 90 00 [14:11:14]wFMCommunicate OK [14:11:14]wFMCommunicate request_size=10 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 0D 02 02 05 3A 33 54 F3 F8 [14:11:14]Write to MH i2c: E2 0D 00 7A 5B 80 0D 02 02 05 00 3A 33 54 F3 F8 00 00 05 [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 7A 5B 00 90 00 49 [14:11:14]RAPDU: 90 00 [14:11:14]wFMCommunicate OK [14:11:14]wFMCommunicate request_size=4 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 0D 03 02 [14:11:14]Write to MH i2c: E2 08 00 7B 5B 80 0D 03 02 00 00 00 00 51 [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 0B 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 0B 00 7B 5B 00 D8 7E D7 FE 5A 09 29 45 90 00 4E [14:11:14]RAPDU: D8 7E D7 FE 5A 09 29 45 90 00 [14:11:14]wFMCommunicate OK [14:11:14]SAM_PROTO_SignData done [14:11:14]FM_MakeSignedData done [14:11:14]CreateOFDProtocolMessage [14:11:14]wFMCommunicate request_size=4 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 11 00 00 [14:11:14]Write to MH i2c: E2 08 00 7C 5B 80 11 00 00 00 00 00 00 51 [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 17 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 17 00 7C 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AC [14:11:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:11:14]wFMCommunicate OK [14:11:14]CreateOFDProtocolMessage done [14:11:14]OFDSenderStorePacket 118797 [14:11:14]StoreOFDPacket docnum=118797 [14:11:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B0 93 07 01 EB 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 06 A3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D D0 01 00 35 04 06 00 BE 3A 33 54 F3 F8 D8 7E D7 FE 5A 09 29 45 [14:11:14]CheckFolder [14:11:14]dirname=/storage/ofd_packets [14:11:14]CheckFolder done [14:11:14]ProducePacketName [14:11:14]name=ofd_packets/00118797 [14:11:14]NVStorageSaveData ofd_packets/00118797 [14:11:14]File name is /storage/ofd_packets/00118797 [14:11:14]Write 301 bytes [14:11:14]NVStorageSaveData done [14:11:14]OFDSenderStorePacket done [14:11:14]KKMCreateOFDPacket done [14:11:14]NVStorageSaveData kkm_last_timestamp [14:11:14]File name is /storage/kkm_last_timestamp [14:11:14]Write 4 bytes [14:11:14]NVStorageSaveData done [14:11:14]ExternCall_PrintAddStr [14:11:14]wPrintStart [14:11:14]Write to MH i2c: 01 00 00 7D 5B D8 [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: 01 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: 01 07 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: 01 07 00 7D 5B 00 00 00 00 00 FF 0F ED [14:11:14]RasterBufferAndPrint [14:11:14]line Счет N : (1)949684 [14:11:14]line ИНН: 02508201610067 [14:11:14]line Контрольно-Кассовый Чек [14:11:14]line ПРОДАЖА [14:11:14]line ТРК (МРК, ГНК) : 31 [14:11:14]line Товар: 2710124130 [14:11:14]line Аи-92-К-4 [14:11:14]line 7.380 * 67.80 [14:11:14]line = 500.36 [14:11:14]line НДС 12% НСП 1% [14:11:14]line > о реализуемом товаре [14:11:14]line ОКРУГЛЕНИЕ: -0.36 [14:11:14]line ИТОГО: 500.00 [14:11:14]line Внесено: 500.00 [14:11:14]line СДАЧА: 0.00 [14:11:14]line НСП 1% : 4.43 [14:11:14]line НДС 12% : 53.14 [14:11:14]line Наличными: 500.00 [14:11:14]line Безнал.: 0.00 [14:11:14]line Место: АЗС № 134 "Партнер Нефть" [14:11:14]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:11:14]line СНО: Общий режим [14:11:14]line Чек 173 29.07.2024 14:11 [14:11:14]line Смена: 434 ФФД: 1.0 [14:11:14]line ЗНМ: 0300000044 [14:11:14]line РНМ: 0000000000092660 [14:11:14]line Версия ККМ: 001 [14:11:14]line ФМ: 0000000000874939 [14:11:14]line ФД: 118797 [14:11:14]line ФПД: 209157178586104 [14:11:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T141118&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118797&fm=209157178586104&tin=02508201610067®Number=0000000000092660&sum=50000 [14:11:14]written 0, free lines is 4095 [14:11:14]OFD Sender: Processing packet 118797 [packets to send 86, broken 85] [14:11:14]ProducePacketName [14:11:14]name=ofd_packets/00118797 [14:11:14]OFD Sender: To server: pG, [14:11:14]CommunicateWithHost lk.salyk.kg:30040 [14:11:14]ConnectInit lk.salyk.kg [14:11:14]Connected sock=10 [14:11:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B0 93 07 01 EB 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 06 A3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D D0 01 00 35 04 06 00 BE 3A 33 54 F3 F8 D8 7E D7 FE 5A 09 29 45 [14:11:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 16 99 47 00 29 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 34 39 33 39 10 04 04 00 0D D0 01 00 F4 03 04 00 94 50 A7 66 B6 04 01 00 00 BC D8 A4 9E C8 8B 92 5C [14:11:15]CommunicateWithHost err = 0 [14:11:15]CheckOFDResponse [14:11:15]1017 (14) - 77093643461234 [14:11:15]1041 (16) - 0000000000874939 [14:11:15]1040 (4) - 118797 [14:11:15]1012 (4) - 29.07.2024 08:19 [14:11:15]1206 (1) - 0 [14:11:15]OFD Sender: Remove packet 118797 [14:11:15]ProducePacketName [14:11:15]name=ofd_packets/00118797 [14:11:15]NVStorageDeleteData [14:11:15]Write to MH i2c: 01 00 00 A7 5B 02 [14:11:15]Write i2c OK [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: 01 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: 01 07 00 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: 01 07 00 A7 5B 00 00 00 00 00 EB 0C 00 [14:11:15]RasterBufferAndPrint [14:11:15]line [14:11:15]line [14:11:15]line [14:11:15]line [14:11:15]line [14:11:15]written 0, free lines is 3316 [14:11:15]MH_Cut [14:11:15]Write to MH i2c: D1 01 00 AE 5B 01 DB [14:11:15]Write i2c OK [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: D1 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: D1 01 00 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: D1 01 00 AE 5B 00 DA [14:11:15]Write to MH i2c: 01 00 00 AF 5B 0A [14:11:15]Write i2c OK [14:11:15]MH_I2C_Read... [14:11:15]OFD Sender: No OFD packet to send [14:11:15]*** Cut start [14:11:15]*** Partial cut [14:11:15]*** CUTSNS_PIN = 1 [14:11:15]*** CUTSNS_PIN = 0 [14:11:16]*** Brake cut motor [14:11:16]Read from MH i2c: 01 [14:11:16]MH_I2C_Read... [14:11:16]*** Stop cut motor [14:11:16]*** Cut end [14:11:16]Read from MH i2c: 01 07 00 [14:11:16]MH_I2C_Read... [14:11:16]Read from MH i2c: 01 07 00 AF 5B 00 00 00 00 00 FF 0F 1F [14:11:16]process_action close_receipt done [14:11:16]requested_data is exist [14:11:16]produce_requested_data [14:11:16]requested_item fm.sn is exist - process it [14:11:16]wFMCommunicate request_size=4 [14:11:16]MH_SAM_APDU [14:11:16]CAPDU: 80 11 00 00 [14:11:16]Write to MH i2c: E2 08 00 B0 5B 80 11 00 00 00 00 00 00 85 [14:11:16]Write i2c OK [14:11:16]MH_I2C_Read... [14:11:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:16]Read from MH i2c: E2 [14:11:16]MH_I2C_Read... [14:11:16]Read from MH i2c: E2 17 00 [14:11:16]MH_I2C_Read... [14:11:16]Read from MH i2c: E2 17 00 B0 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E0 [14:11:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:11:16]wFMCommunicate OK [14:11:16]requested_item fd.num is exist - process it [14:11:16]SAM_PROTO_GetFieldsCounters [14:11:16]wFMCommunicate request_size=4 [14:11:16]MH_SAM_APDU [14:11:16]CAPDU: 80 13 00 00 [14:11:16]Write to MH i2c: E2 08 00 B1 5B 80 13 00 00 00 00 00 00 88 [14:11:16]Write i2c OK [14:11:16]MH_I2C_Read... [14:11:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:16]Read from MH i2c: E2 [14:11:16]MH_I2C_Read... [14:11:16]Read from MH i2c: E2 62 00 [14:11:16]MH_I2C_Read... [14:11:16]Read from MH i2c: E2 62 00 B1 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0D D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [14:11:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0D D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:16]wFMCommunicate OK [14:11:16]SAM_PROTO_GetFieldsCounters done [14:11:16]requested_item shift.num is exist - process it [14:11:16]requested_item shift.opened is exist - process it [14:11:16]req_shift_opened [14:11:16]FM_GetShiftState [14:11:16]SAM_PROTO_GetShiftState [14:11:16]wFMCommunicate request_size=4 [14:11:16]MH_SAM_APDU [14:11:16]CAPDU: 80 13 01 00 [14:11:16]Write to MH i2c: E2 08 00 B2 5B 80 13 01 00 00 00 00 00 8A [14:11:16]Write i2c OK [14:11:16]MH_I2C_Read... [14:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:16]Read from MH i2c: E2 [14:11:16]MH_I2C_Read... [14:11:16]Read from MH i2c: E2 0E 00 [14:11:16]MH_I2C_Read... [14:11:16]Read from MH i2c: E2 0E 00 B2 5B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B8 [14:11:16]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [14:11:16]wFMCommunicate OK [14:11:16]SAM_PROTO_GetShiftState done [14:11:16]FM_GetShiftState done [14:11:16]req_shift_opened done [14:11:16]requested_item shift.open_date is exist - process it [14:11:16]req_shift_open_date [14:11:16]req_shift_open_date done [14:11:16]produce_requested_data done [14:11:16]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118797,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [14:11:16]process_action_free close_receipt [14:11:16]json_value_free [14:11:16]json_value_free done [14:11:16]process_json_proto returns [14:11:16]Send response to host [14:11:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118797,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [14:11:16]free response buf [14:11:16]execute_script done [14:11:16]execute_script returns [14:11:16]free content buf [14:11:16]Sock 7.Close socket [14:11:16]Sock 7.Thread stoped [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:33]accept exits with 9 [14:11:33]New connection [14:11:33]New thread 3067239780 created [14:11:33]Thread 3067383140 joined [14:11:33]Waiting for new connection... [14:11:33] Sock 9.Parse request [14:11:33]Sock 9.Check first char [14:11:33]Sock 9.First char is OK [14:11:33]request: POST /json_proto HTTP/1.0 [14:11:33]Method: POST [14:11:33]URL: /json_proto [14:11:33]Method is POST - this is cgi request [14:11:33]url: /json_proto [14:11:33]query_string will be loaded in cgi processing [14:11:33]execute_cgi json_proto POST (null) [14:11:33]execute_cgi path=json_proto method=POST [14:11:33]POST find Content-Length [14:11:33]Host: 172.17.45.7:8080 [14:11:33]Content-Length: 819 [14:11:33]Content-Type: application/json [14:11:33] [14:11:33]POST finish read [14:11:33]Found Content-Length = 819 [14:11:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:33]execute_script... [14:11: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)949683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:33]POST & json_proto [14:11:33]process_json_proto [14:11:33]json parsed OK: [14:11:33]protocol is kg_v1.0 [14:11:33]action value=close_receipt [14:11:33]process_action close_receipt [14:11:33]cmd_close_receipt [14:11:33]MH_GetDate [14:11:33]Write to MH i2c: F0 00 00 B3 5B FD [14:11:33]Write i2c OK [14:11:33]MH_I2C_Read... [14:11:33]Read from MH i2c: F0 [14:11:33]MH_I2C_Read... [14:11:33]Read from MH i2c: F0 09 00 [14:11:33]MH_I2C_Read... [14:11:33]Read from MH i2c: F0 09 00 B3 5B 00 1B A3 A7 66 90 0F 3E 66 14 [14:11:33]GetLastDocTimeStamp 1722262278 [14:11:33]current date 1722262299 [14:11:33]FM_GetShiftState [14:11:33]SAM_PROTO_GetShiftState [14:11:33]wFMCommunicate request_size=4 [14:11:33]MH_SAM_APDU [14:11:33]CAPDU: 80 13 01 00 [14:11:33]Write to MH i2c: E2 08 00 B4 5B 80 13 01 00 00 00 00 00 8C [14:11:33]Write i2c OK [14:11:33]MH_I2C_Read... [14:11:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:33]Read from MH i2c: E2 [14:11:33]MH_I2C_Read... [14:11:33]Read from MH i2c: E2 0E 00 [14:11:33]MH_I2C_Read... [14:11:33]Read from MH i2c: E2 0E 00 B4 5B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 BA [14:11:33]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [14:11:33]wFMCommunicate OK [14:11:33]SAM_PROTO_GetShiftState done [14:11:33]FM_GetShiftState done [14:11:33]opened in 1722211641 [14:11:33]opened+sec_in_day 1722298041 [14:11:33]quantity*price = 200025 [14:11:33]sum+1 = 200026 [14:11:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 174 29.07.2024 14:11 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118798 ФПД: 13739647423352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T141139&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118798&fm=13739647423352&tin=02508201610067®Number=0000000000092660&sum=200000 [14:11:34]StoreToDocumentArchive [14:11:34]shift 434 fd 118798 [14:11:34]save to /storage/0434/doc_00118798 [14:11:34]save last doc name /storage/0434/doc_00118798 to /storage/kkm_last_doc_name [14:11:34]save OK [14:11:34]Clear old archive folders... [14:11:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:11:34]tlvbuf is 01F6A010 [14:11:34]SAM_PROTO_ClearQueue [14:11:34]wFMCommunicate request_size=4 [14:11:34]MH_SAM_APDU [14:11:34]CAPDU: 80 09 00 00 [14:11:34]Write to MH i2c: E2 08 00 C1 5B 80 09 00 00 00 00 00 00 8E [14:11:34]Write i2c OK [14:11:34]MH_I2C_Read... [14:11:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:34]Read from MH i2c: E2 [14:11:34]MH_I2C_Read... [14:11:34]Read from MH i2c: E2 03 00 [14:11:34]MH_I2C_Read... [14:11:34]Read from MH i2c: E2 03 00 C1 5B 00 90 00 90 [14:11:34]RAPDU: 90 00 [14:11:34]wFMCommunicate OK [14:11:34]SAM_PROTO_ClearQueue done [14:11:34]KKMCreateOFDPacket [14:11:34]OFDProtocolAddRootSTLVToBuf [14:11:34]FM_MakeSignedData [14:11:34]FM_MakeSignedData [14:11:34]SAM_PROTO_SignData [14:11:34]wFMCommunicate request_size=4 [14:11:34]MH_SAM_APDU [14:11:34]CAPDU: 80 0D 01 02 [14:11:34]Write to MH i2c: E2 08 00 C2 5B 80 0D 01 02 00 00 00 00 96 [14:11:34]Write i2c OK [14:11:34]MH_I2C_Read... [14:11:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:34]Read from MH i2c: E2 [14:11:34]MH_I2C_Read... [14:11:34]Read from MH i2c: E2 03 00 [14:11:34]MH_I2C_Read... [14:11:34]Read from MH i2c: E2 03 00 C2 5B 00 90 00 91 [14:11:34]RAPDU: 90 00 [14:11:34]wFMCommunicate OK [14:11:34]wFMCommunicate request_size=255 [14:11:34]MH_SAM_APDU [14:11:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 1B A3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E D0 01 00 35 04 06 00 0C 7F 02 CD [14:11:34]Write to MH i2c: E2 02 01 C3 5B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 1B A3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E D0 01 00 35 04 06 00 0C 7F 02 CD 00 00 79 [14:11:34]Write i2c OK [14:11:34]MH_I2C_Read... [14:11:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:34]Read from MH i2c: E2 [14:11:34]MH_I2C_Read... [14:11:34]Read from MH i2c: E2 03 00 [14:11:34]MH_I2C_Read... [14:11:34]Read from MH i2c: E2 03 00 C3 5B 00 90 00 92 [14:11:34]RAPDU: 90 00 [14:11:34]wFMCommunicate OK [14:11:34]wFMCommunicate request_size=7 [14:11:34]MH_SAM_APDU [14:11:34]CAPDU: 80 0D 02 02 02 D3 78 [14:11:34]Write to MH i2c: E2 0A 00 C4 5B 80 0D 02 02 02 00 D3 78 00 00 E8 [14:11:34]Write i2c OK [14:11:34]MH_I2C_Read... [14:11:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:34]Read from MH i2c: E2 [14:11:34]MH_I2C_Read... [14:11:34]Read from MH i2c: E2 03 00 [14:11:34]MH_I2C_Read... [14:11:34]Read from MH i2c: E2 03 00 C4 5B 00 90 00 93 [14:11:34]RAPDU: 90 00 [14:11:34]wFMCommunicate OK [14:11:34]wFMCommunicate request_size=4 [14:11:34]MH_SAM_APDU [14:11:34]CAPDU: 80 0D 03 02 [14:11:34]Write to MH i2c: E2 08 00 C5 5B 80 0D 03 02 00 00 00 00 9B [14:11:34]Write i2c OK [14:11:34]MH_I2C_Read... [14:11:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:34]Read from MH i2c: E2 [14:11:34]MH_I2C_Read... [14:11:34]Read from MH i2c: E2 0B 00 [14:11:34]MH_I2C_Read... [14:11:34]Read from MH i2c: E2 0B 00 C5 5B 00 EE B4 39 01 0F 08 BB CC 90 00 16 [14:11:34]RAPDU: EE B4 39 01 0F 08 BB CC 90 00 [14:11:34]wFMCommunicate OK [14:11:34]SAM_PROTO_SignData done [14:11:34]FM_MakeSignedData done [14:11:34]CreateOFDProtocolMessage [14:11:34]wFMCommunicate request_size=4 [14:11:34]MH_SAM_APDU [14:11:34]CAPDU: 80 11 00 00 [14:11:34]Write to MH i2c: E2 08 00 C6 5B 80 11 00 00 00 00 00 00 9B [14:11:34]Write i2c OK [14:11:34]MH_I2C_Read... [14:11:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:35]Read from MH i2c: E2 [14:11:35]MH_I2C_Read... [14:11:35]Read from MH i2c: E2 17 00 [14:11:35]MH_I2C_Read... [14:11:35]Read from MH i2c: E2 17 00 C6 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F6 [14:11:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:11:35]wFMCommunicate OK [14:11:35]CreateOFDProtocolMessage done [14:11:35]OFDSenderStorePacket 118798 [14:11:35]StoreOFDPacket docnum=118798 [14:11:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 31 C0 04 01 37 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 1B A3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E D0 01 00 35 04 06 00 0C 7F 02 CD D3 78 EE B4 39 01 0F 08 BB CC [14:11:35]CheckFolder [14:11:35]dirname=/storage/ofd_packets [14:11:35]CheckFolder done [14:11:35]ProducePacketName [14:11:35]name=ofd_packets/00118798 [14:11:35]NVStorageSaveData ofd_packets/00118798 [14:11:35]File name is /storage/ofd_packets/00118798 [14:11:35]Write 298 bytes [14:11:35]NVStorageSaveData done [14:11:35]OFDSenderStorePacket done [14:11:35]KKMCreateOFDPacket done [14:11:35]NVStorageSaveData kkm_last_timestamp [14:11:35]File name is /storage/kkm_last_timestamp [14:11:35]Write 4 bytes [14:11:35]NVStorageSaveData done [14:11:35]ExternCall_PrintAddStr [14:11:35]wPrintStart [14:11:35]Write to MH i2c: 01 00 00 C7 5B 22 [14:11:35]Write i2c OK [14:11:35]MH_I2C_Read... [14:11:35]Read from MH i2c: 01 [14:11:35]MH_I2C_Read... [14:11:35]Read from MH i2c: 01 07 00 [14:11:35]MH_I2C_Read... [14:11:35]Read from MH i2c: 01 07 00 C7 5B 00 00 00 00 00 FF 0F 37 [14:11:35]RasterBufferAndPrint [14:11:35]line Счет N : (1)949683 [14:11:35]line ИНН: 02508201610067 [14:11:35]line Контрольно-Кассовый Чек [14:11:35]line ПРОДАЖА [14:11:35]line ТРК (МРК, ГНК) : 54 [14:11:35]line Товар: 2710194800 [14:11:35]line ДТ-К-5 [14:11:35]line 26.250 * 76.20 [14:11:35]line = 2000.25 [14:11:35]line НДС 12% НСП 1% [14:11:35]line > о реализуемом товаре [14:11:35]line ОКРУГЛЕНИЕ: -0.25 [14:11:35]line ИТОГО: 2000.00 [14:11:35]line НСП 1% : 17.70 [14:11:35]line НДС 12% : 212.42 [14:11:35]line Наличными: 0.00 [14:11:35]line Безнал.: 2000.00 [14:11:35]line Место: АЗС № 134 "Партнер Нефть" [14:11:35]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:11:35]line СНО: Общий режим [14:11:35]line Чек 174 29.07.2024 14:11 [14:11:35]line Смена: 434 ФФД: 1.0 [14:11:35]line ЗНМ: 0300000044 [14:11:35]line РНМ: 0000000000092660 [14:11:35]line Версия ККМ: 001 [14:11:35]line Платежная система: O! деньги [14:11:35]line ФМ: 0000000000874939 [14:11:35]line ФД: 118798 [14:11:35]line ФПД: 13739647423352 [14:11:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T141139&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118798&fm=13739647423352&tin=02508201610067®Number=0000000000092660&sum=200000 [14:11:35]OFD Sender: Processing packet 118798 [packets to send 86, broken 85] [14:11:35]ProducePacketName [14:11:35]name=ofd_packets/00118798 [14:11:35]OFD Sender: To server: pG, [14:11:35]CommunicateWithHost lk.salyk.kg:30040 [14:11:35]ConnectInit lk.salyk.kg [14:11:35]written 0, free lines is 4095 [14:11:35]Connected sock=10 [14:11:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 31 C0 04 01 37 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 1B A3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E D0 01 00 35 04 06 00 0C 7F 02 CD D3 78 EE B4 39 01 0F 08 BB CC [14:11:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FE AF 47 00 61 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E D0 01 00 F4 03 04 00 A8 50 A7 66 B6 04 01 00 00 AD F5 11 D8 7A 93 7B 7B [14:11:35]CommunicateWithHost err = 0 [14:11:35]CheckOFDResponse [14:11:35]1017 (14) - 77093643461234 [14:11:35]1041 (16) - 0000000000874939 [14:11:35]1040 (4) - 118798 [14:11:35]1012 (4) - 29.07.2024 08:19 [14:11:35]1206 (1) - 0 [14:11:35]OFD Sender: Remove packet 118798 [14:11:35]ProducePacketName [14:11:35]name=ofd_packets/00118798 [14:11:35]NVStorageDeleteData [14:11:35]Write to MH i2c: 01 00 00 F1 5B 4C [14:11:35]Write i2c OK [14:11:35]MH_I2C_Read... [14:11:35]Read from MH i2c: 01 [14:11:35]MH_I2C_Read... [14:11:35]Read from MH i2c: 01 07 00 [14:11:35]MH_I2C_Read... [14:11:35]Read from MH i2c: 01 07 00 F1 5B 00 00 00 00 00 EE 0C 4D [14:11:35]RasterBufferAndPrint [14:11:35]line [14:11:35]line [14:11:35]line [14:11:35]line [14:11:35]line [14:11:35]written 0, free lines is 3319 [14:11:35]MH_Cut [14:11:35]Write to MH i2c: D1 01 00 F8 5B 01 25 [14:11:35]Write i2c OK [14:11:35]MH_I2C_Read... [14:11:35]Read from MH i2c: D1 [14:11:35]MH_I2C_Read... [14:11:35]Read from MH i2c: D1 01 00 [14:11:35]MH_I2C_Read... [14:11:35]Read from MH i2c: D1 01 00 F8 5B 00 24 [14:11:35]Write to MH i2c: 01 00 00 F9 5B 54 [14:11:35]Write i2c OK [14:11:35]MH_I2C_Read... [14:11:36]OFD Sender: No OFD packet to send [14:11:36]*** Cut start [14:11:36]*** Partial cut [14:11:36]*** CUTSNS_PIN = 1 [14:11:36]*** CUTSNS_PIN = 0 [14:11:36]*** Brake cut motor [14:11:37]Read from MH i2c: 01 [14:11:37]MH_I2C_Read... [14:11:37]*** Stop cut motor [14:11:37]*** Cut end [14:11:37]Read from MH i2c: 01 07 00 [14:11:37]MH_I2C_Read... [14:11:37]Read from MH i2c: 01 07 00 F9 5B 00 00 00 00 00 FF 0F 69 [14:11:37]process_action close_receipt done [14:11:37]requested_data is exist [14:11:37]produce_requested_data [14:11:37]requested_item fm.sn is exist - process it [14:11:37]wFMCommunicate request_size=4 [14:11:37]MH_SAM_APDU [14:11:37]CAPDU: 80 11 00 00 [14:11:37]Write to MH i2c: E2 08 00 FA 5B 80 11 00 00 00 00 00 00 CF [14:11:37]Write i2c OK [14:11:37]MH_I2C_Read... [14:11:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:37]Read from MH i2c: E2 [14:11:37]MH_I2C_Read... [14:11:37]Read from MH i2c: E2 17 00 [14:11:37]MH_I2C_Read... [14:11:37]Read from MH i2c: E2 17 00 FA 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2A [14:11:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:11:37]wFMCommunicate OK [14:11:37]requested_item fd.num is exist - process it [14:11:37]SAM_PROTO_GetFieldsCounters [14:11:37]wFMCommunicate request_size=4 [14:11:37]MH_SAM_APDU [14:11:37]CAPDU: 80 13 00 00 [14:11:37]Write to MH i2c: E2 08 00 FB 5B 80 13 00 00 00 00 00 00 D2 [14:11:37]Write i2c OK [14:11:37]MH_I2C_Read... [14:11:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:37]Read from MH i2c: E2 [14:11:37]MH_I2C_Read... [14:11:37]Read from MH i2c: E2 62 00 [14:11:37]MH_I2C_Read... [14:11:37]Read from MH i2c: E2 62 00 FB 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0E D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [14:11: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0E D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:37]wFMCommunicate OK [14:11:37]SAM_PROTO_GetFieldsCounters done [14:11:37]requested_item shift.num is exist - process it [14:11:37]requested_item shift.opened is exist - process it [14:11:37]req_shift_opened [14:11:37]FM_GetShiftState [14:11:37]SAM_PROTO_GetShiftState [14:11:37]wFMCommunicate request_size=4 [14:11:37]MH_SAM_APDU [14:11:37]CAPDU: 80 13 01 00 [14:11:37]Write to MH i2c: E2 08 00 FC 5B 80 13 01 00 00 00 00 00 D4 [14:11:37]Write i2c OK [14:11:37]MH_I2C_Read... [14:11:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:37]Read from MH i2c: E2 [14:11:37]MH_I2C_Read... [14:11:37]Read from MH i2c: E2 0E 00 [14:11:37]MH_I2C_Read... [14:11:37]Read from MH i2c: E2 0E 00 FC 5B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 02 [14:11:37]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [14:11:37]wFMCommunicate OK [14:11:37]SAM_PROTO_GetShiftState done [14:11:37]FM_GetShiftState done [14:11:37]req_shift_opened done [14:11:37]requested_item shift.open_date is exist - process it [14:11:37]req_shift_open_date [14:11:37]req_shift_open_date done [14:11:37]produce_requested_data done [14:11:37]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118798,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [14:11:37]process_action_free close_receipt [14:11:37]json_value_free [14:11:37]json_value_free done [14:11:37]process_json_proto returns [14:11:37]Send response to host [14:11:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118798,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [14:11:37]free response buf [14:11:37]execute_script done [14:11:37]execute_script returns [14:11:37]free content buf [14:11:37]Sock 9.Close socket [14:11:37]Sock 9.Thread stoped [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:14:59]accept exits with 7 [14:14:59]New connection [14:14:59]New thread 3067383140 created [14:14:59]Thread 3067239780 joined [14:14:59]Waiting for new connection... [14:14:59] Sock 7.Parse request [14:14:59]Sock 7.Check first char [14:14:59]Sock 7.First char is OK [14:14:59]request: POST /json_proto HTTP/1.0 [14:14:59]Method: POST [14:14:59]URL: /json_proto [14:14:59]Method is POST - this is cgi request [14:14:59]url: /json_proto [14:14:59]query_string will be loaded in cgi processing [14:14:59]execute_cgi json_proto POST (null) [14:14:59]execute_cgi path=json_proto method=POST [14:14:59]POST find Content-Length [14:14:59]Host: 172.17.45.7:8080 [14:14:59]Content-Length: 682 [14:14:59]Content-Type: application/json [14:14:59] [14:14:59]POST finish read [14:14:59]Found Content-Length = 682 [14:14:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:59]execute_script... [14:14:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:59]POST & json_proto [14:14:59]process_json_proto [14:14:59]json parsed OK: [14:14:59]protocol is kg_v1.0 [14:14:59]action value=close_receipt [14:14:59]process_action close_receipt [14:14:59]cmd_close_receipt [14:14:59]MH_GetDate [14:14:59]Write to MH i2c: F0 00 00 FD 5B 47 [14:14:59]Write i2c OK [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: F0 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: F0 09 00 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: F0 09 00 FD 5B 00 E9 A3 A7 66 90 0F 3E 66 2C [14:14:59]GetLastDocTimeStamp 1722262299 [14:14:59]current date 1722262505 [14:14:59]FM_GetShiftState [14:14:59]SAM_PROTO_GetShiftState [14:14:59]wFMCommunicate request_size=4 [14:14:59]MH_SAM_APDU [14:14:59]CAPDU: 80 13 01 00 [14:14:59]Write to MH i2c: E2 08 00 FE 5B 80 13 01 00 00 00 00 00 D6 [14:14:59]Write i2c OK [14:14:59]MH_I2C_Read... [14:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:59]Read from MH i2c: E2 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: E2 0E 00 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: E2 0E 00 FE 5B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 04 [14:14:59]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [14:14:59]wFMCommunicate OK [14:14:59]SAM_PROTO_GetShiftState done [14:14:59]FM_GetShiftState done [14:14:59]opened in 1722211641 [14:14:59]opened+sec_in_day 1722298041 [14:14:59]quantity*price = 100021 [14:14:59]sum+1 = 100023 [14:14:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 175 29.07.2024 14:15 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118799 ФПД: 170237808521804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T141505&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118799&fm=170237808521804&tin=02508201610067®Number=0000000000092660&sum=100000 [14:15:00]StoreToDocumentArchive [14:15:00]shift 434 fd 118799 [14:15:00]save to /storage/0434/doc_00118799 [14:15:00]save last doc name /storage/0434/doc_00118799 to /storage/kkm_last_doc_name [14:15:00]save OK [14:15:00]Clear old archive folders... [14:15:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:15:00]tlvbuf is 01E89B50 [14:15:00]SAM_PROTO_ClearQueue [14:15:00]wFMCommunicate request_size=4 [14:15:00]MH_SAM_APDU [14:15:00]CAPDU: 80 09 00 00 [14:15:00]Write to MH i2c: E2 08 00 0B 5C 80 09 00 00 00 00 00 00 D9 [14:15:00]Write i2c OK [14:15:00]MH_I2C_Read... [14:15:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:15:00]Read from MH i2c: E2 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 03 00 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 03 00 0B 5C 00 90 00 DB [14:15:00]RAPDU: 90 00 [14:15:00]wFMCommunicate OK [14:15:00]SAM_PROTO_ClearQueue done [14:15:00]KKMCreateOFDPacket [14:15:00]OFDProtocolAddRootSTLVToBuf [14:15:00]FM_MakeSignedData [14:15:00]FM_MakeSignedData [14:15:00]SAM_PROTO_SignData [14:15:00]wFMCommunicate request_size=4 [14:15:00]MH_SAM_APDU [14:15:00]CAPDU: 80 0D 01 02 [14:15:00]Write to MH i2c: E2 08 00 0C 5C 80 0D 01 02 00 00 00 00 E1 [14:15:00]Write i2c OK [14:15:00]MH_I2C_Read... [14:15:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:15:00]Read from MH i2c: E2 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 03 00 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 03 00 0C 5C 00 90 00 DC [14:15:00]RAPDU: 90 00 [14:15:00]wFMCommunicate OK [14:15:00]wFMCommunicate request_size=255 [14:15:00]MH_SAM_APDU [14:15:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 E9 A3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0F D0 01 00 35 04 06 00 9A [14:15:00]Write to MH i2c: E2 02 01 0D 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 E9 A3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0F D0 01 00 35 04 06 00 9A 00 00 06 [14:15:00]Write i2c OK [14:15:00]MH_I2C_Read... [14:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:01]Read from MH i2c: E2 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 03 00 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 03 00 0D 5C 00 90 00 DD [14:15:01]RAPDU: 90 00 [14:15:01]wFMCommunicate OK [14:15:01]wFMCommunicate request_size=10 [14:15:01]MH_SAM_APDU [14:15:01]CAPDU: 80 0D 02 02 05 D4 94 1A B2 4C [14:15:01]Write to MH i2c: E2 0D 00 0E 5C 80 0D 02 02 05 00 D4 94 1A B2 4C 00 00 6E [14:15:01]Write i2c OK [14:15:01]MH_I2C_Read... [14:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:01]Read from MH i2c: E2 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 03 00 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 03 00 0E 5C 00 90 00 DE [14:15:01]RAPDU: 90 00 [14:15:01]wFMCommunicate OK [14:15:01]wFMCommunicate request_size=4 [14:15:01]MH_SAM_APDU [14:15:01]CAPDU: 80 0D 03 02 [14:15:01]Write to MH i2c: E2 08 00 0F 5C 80 0D 03 02 00 00 00 00 E6 [14:15:01]Write i2c OK [14:15:01]MH_I2C_Read... [14:15:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:15:01]Read from MH i2c: E2 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 0B 00 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 0B 00 0F 5C 00 8B 0E C0 40 FD E0 11 65 90 00 D3 [14:15:01]RAPDU: 8B 0E C0 40 FD E0 11 65 90 00 [14:15:01]wFMCommunicate OK [14:15:01]SAM_PROTO_SignData done [14:15:01]FM_MakeSignedData done [14:15:01]CreateOFDProtocolMessage [14:15:01]wFMCommunicate request_size=4 [14:15:01]MH_SAM_APDU [14:15:01]CAPDU: 80 11 00 00 [14:15:01]Write to MH i2c: E2 08 00 10 5C 80 11 00 00 00 00 00 00 E6 [14:15:01]Write i2c OK [14:15:01]MH_I2C_Read... [14:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:01]Read from MH i2c: E2 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 17 00 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 17 00 10 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 41 [14:15:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:15:01]wFMCommunicate OK [14:15:01]CreateOFDProtocolMessage done [14:15:01]OFDSenderStorePacket 118799 [14:15:01]StoreOFDPacket docnum=118799 [14:15:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 8C 0F 07 01 08 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 E9 A3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0F D0 01 00 35 04 06 00 9A D4 94 1A B2 4C 8B 0E C0 40 FD E0 11 65 [14:15:01]CheckFolder [14:15:01]dirname=/storage/ofd_packets [14:15:01]CheckFolder done [14:15:01]ProducePacketName [14:15:01]name=ofd_packets/00118799 [14:15:01]NVStorageSaveData ofd_packets/00118799 [14:15:01]File name is /storage/ofd_packets/00118799 [14:15:01]Write 301 bytes [14:15:01]NVStorageSaveData done [14:15:01]OFDSenderStorePacket done [14:15:01]KKMCreateOFDPacket done [14:15:01]NVStorageSaveData kkm_last_timestamp [14:15:01]File name is /storage/kkm_last_timestamp [14:15:01]Write 4 bytes [14:15:01]NVStorageSaveData done [14:15:01]OFD Sender: Processing packet 118799 [packets to send 86, broken 85] [14:15:01]ProducePacketName [14:15:01]name=ofd_packets/00118799 [14:15:01]OFD Sender: To server: pG, [14:15:01]CommunicateWithHost lk.salyk.kg:30040 [14:15:01]ConnectInit lk.salyk.kg [14:15:01]ExternCall_PrintAddStr [14:15:01]wPrintStart [14:15:01]Write to MH i2c: 01 00 00 11 5C 6D [14:15:01]Write i2c OK [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: 01 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: 01 07 00 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: 01 07 00 11 5C 00 00 00 00 00 FF 0F 82 [14:15:01]RasterBufferAndPrint [14:15:01]line Счет N : (1)949685 [14:15:01]line ИНН: 02508201610067 [14:15:01]line Контрольно-Кассовый Чек [14:15:01]line ПРОДАЖА [14:15:01]line ТРК (МРК, ГНК) : 43 [14:15:01]line Товар: 2710124500 [14:15:01]line Аи-95-К-3 [14:15:01]line 13.480 * 74.20 [14:15:01]line = 1000.22 [14:15:01]line НДС 12% НСП 1% [14:15:01]line > о реализуемом товаре [14:15:01]line ОКРУГЛЕНИЕ: -0.22 [14:15:01]line ИТОГО: 1000.00 [14:15:01]line Внесено: 1000.00 [14:15:01]line СДАЧА: 0.00 [14:15:01]line НСП 1% : 8.85 [14:15:01]line НДС 12% : 106.22 [14:15:01]line Наличными: 1000.00 [14:15:01]line Безнал.: 0.00 [14:15:01]line Место: АЗС № 134 "Партнер Нефть" [14:15:01]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:15:01]line СНО: Общий режим [14:15:01]line Чек 175 29.07.2024 14:15 [14:15:01]line Смена: 434 ФФД: 1.0 [14:15:01]line ЗНМ: 0300000044 [14:15:01]line РНМ: 0000000000092660 [14:15:01]line Версия ККМ: 001 [14:15:01]line ФМ: 0000000000874939 [14:15:01]line ФД: 118799 [14:15:01]line ФПД: 170237808521804 [14:15:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T141505&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118799&fm=170237808521804&tin=02508201610067®Number=0000000000092660&sum=100000 [14:15:01]Connected sock=11 [14:15:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 8C 0F 07 01 08 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 E9 A3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0F D0 01 00 35 04 06 00 9A D4 94 1A B2 4C 8B 0E C0 40 FD E0 11 65 [14:15:01]written 0, free lines is 4095 [14:15:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 16 C9 47 00 BE 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0F D0 01 00 F4 03 04 00 77 51 A7 66 B6 04 01 00 00 D4 02 C1 FD A5 E7 5E B3 [14:15:01]CommunicateWithHost err = 0 [14:15:01]CheckOFDResponse [14:15:01]1017 (14) - 77093643461234 [14:15:01]1041 (16) - 0000000000874939 [14:15:01]1040 (4) - 118799 [14:15:01]1012 (4) - 29.07.2024 08:23 [14:15:01]1206 (1) - 0 [14:15:01]OFD Sender: Remove packet 118799 [14:15:01]ProducePacketName [14:15:01]name=ofd_packets/00118799 [14:15:01]NVStorageDeleteData [14:15:02]Write to MH i2c: 01 00 00 3B 5C 97 [14:15:02]Write i2c OK [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: 01 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: 01 07 00 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: 01 07 00 3B 5C 00 00 00 00 00 EA 0C 94 [14:15:02]RasterBufferAndPrint [14:15:02]line [14:15:02]line [14:15:02]line [14:15:02]line [14:15:02]line [14:15:02]written 0, free lines is 3313 [14:15:02]MH_Cut [14:15:02]Write to MH i2c: D1 01 00 42 5C 01 70 [14:15:02]Write i2c OK [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: D1 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: D1 01 00 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: D1 01 00 42 5C 00 6F [14:15:02]Write to MH i2c: 01 00 00 43 5C 9F [14:15:02]Write i2c OK [14:15:02]MH_I2C_Read... [14:15:02]OFD Sender: No OFD packet to send [14:15:02]*** Cut start [14:15:02]*** Partial cut [14:15:02]*** CUTSNS_PIN = 1 [14:15:02]*** CUTSNS_PIN = 0 [14:15:03]*** Brake cut motor [14:15:03]Read from MH i2c: 01 [14:15:03]MH_I2C_Read... [14:15:03]*** Stop cut motor [14:15:03]*** Cut end [14:15:03]Read from MH i2c: 01 07 00 [14:15:03]MH_I2C_Read... [14:15:03]Read from MH i2c: 01 07 00 43 5C 00 00 00 00 00 FF 0F B4 [14:15:03]process_action close_receipt done [14:15:03]requested_data is exist [14:15:03]produce_requested_data [14:15:03]requested_item fm.sn is exist - process it [14:15:03]wFMCommunicate request_size=4 [14:15:03]MH_SAM_APDU [14:15:03]CAPDU: 80 11 00 00 [14:15:03]Write to MH i2c: E2 08 00 44 5C 80 11 00 00 00 00 00 00 1A [14:15:03]Write i2c OK [14:15:03]MH_I2C_Read... [14:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:03]Read from MH i2c: E2 [14:15:03]MH_I2C_Read... [14:15:03]Read from MH i2c: E2 17 00 [14:15:03]MH_I2C_Read... [14:15:03]Read from MH i2c: E2 17 00 44 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 75 [14:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:15:03]wFMCommunicate OK [14:15:03]requested_item fd.num is exist - process it [14:15:03]SAM_PROTO_GetFieldsCounters [14:15:03]wFMCommunicate request_size=4 [14:15:03]MH_SAM_APDU [14:15:03]CAPDU: 80 13 00 00 [14:15:03]Write to MH i2c: E2 08 00 45 5C 80 13 00 00 00 00 00 00 1D [14:15:03]Write i2c OK [14:15:03]MH_I2C_Read... [14:15:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:03]Read from MH i2c: E2 [14:15:03]MH_I2C_Read... [14:15:03]Read from MH i2c: E2 62 00 [14:15:03]MH_I2C_Read... [14:15:03]Read from MH i2c: E2 62 00 45 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0F D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [14:15: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0F D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:15:03]wFMCommunicate OK [14:15:03]SAM_PROTO_GetFieldsCounters done [14:15:03]requested_item shift.num is exist - process it [14:15:03]requested_item shift.opened is exist - process it [14:15:03]req_shift_opened [14:15:03]FM_GetShiftState [14:15:03]SAM_PROTO_GetShiftState [14:15:03]wFMCommunicate request_size=4 [14:15:03]MH_SAM_APDU [14:15:03]CAPDU: 80 13 01 00 [14:15:03]Write to MH i2c: E2 08 00 46 5C 80 13 01 00 00 00 00 00 1F [14:15:03]Write i2c OK [14:15:03]MH_I2C_Read... [14:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:03]Read from MH i2c: E2 [14:15:03]MH_I2C_Read... [14:15:03]Read from MH i2c: E2 0E 00 [14:15:03]MH_I2C_Read... [14:15:03]Read from MH i2c: E2 0E 00 46 5C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 4D [14:15:03]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [14:15:03]wFMCommunicate OK [14:15:03]SAM_PROTO_GetShiftState done [14:15:03]FM_GetShiftState done [14:15:03]req_shift_opened done [14:15:03]requested_item shift.open_date is exist - process it [14:15:03]req_shift_open_date [14:15:03]req_shift_open_date done [14:15:03]produce_requested_data done [14:15:03]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118799,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [14:15:03]process_action_free close_receipt [14:15:03]json_value_free [14:15:03]json_value_free done [14:15:03]process_json_proto returns [14:15:03]Send response to host [14:15:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118799,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [14:15:03]free response buf [14:15:03]execute_script done [14:15:03]execute_script returns [14:15:03]free content buf [14:15:03]Sock 7.Close socket [14:15:03]Sock 7.Thread stoped [14:15:07]OFD Sender: No OFD packet to send [14:15:12]OFD Sender: No OFD packet to send [14:15:17]OFD Sender: No OFD packet to send [14:15:22]OFD Sender: No OFD packet to send [14:15:27]OFD Sender: No OFD packet to send [14:15:32]OFD Sender: No OFD packet to send [14:15:37]OFD Sender: No OFD packet to send [14:15:42]OFD Sender: No OFD packet to send [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:49]accept exits with 9 [14:17:49]New connection [14:17:49]New thread 3067239780 created [14:17:49]Thread 3067383140 joined [14:17:49]Waiting for new connection... [14:17:49] Sock 9.Parse request [14:17:49]Sock 9.Check first char [14:17:49]Sock 9.First char is OK [14:17:49]request: POST /json_proto HTTP/1.0 [14:17:49]Method: POST [14:17:49]URL: /json_proto [14:17:49]Method is POST - this is cgi request [14:17:49]url: /json_proto [14:17:49]query_string will be loaded in cgi processing [14:17:49]execute_cgi json_proto POST (null) [14:17:49]execute_cgi path=json_proto method=POST [14:17:49]POST find Content-Length [14:17:49]Host: 172.17.45.7:8080 [14:17:49]Content-Length: 682 [14:17:49]Content-Type: application/json [14:17:49] [14:17:49]POST finish read [14:17:49]Found Content-Length = 682 [14:17:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:49]execute_script... [14:17:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:49]POST & json_proto [14:17:49]process_json_proto [14:17:49]json parsed OK: [14:17:49]protocol is kg_v1.0 [14:17:49]action value=close_receipt [14:17:49]process_action close_receipt [14:17:49]cmd_close_receipt [14:17:49]MH_GetDate [14:17:49]Write to MH i2c: F0 00 00 47 5C 92 [14:17:49]Write i2c OK [14:17:49]MH_I2C_Read... [14:17:49]Read from MH i2c: F0 [14:17:49]MH_I2C_Read... [14:17:49]Read from MH i2c: F0 09 00 [14:17:49]MH_I2C_Read... [14:17:49]Read from MH i2c: F0 09 00 47 5C 00 93 A4 A7 66 90 0F 3E 66 22 [14:17:49]GetLastDocTimeStamp 1722262505 [14:17:49]current date 1722262675 [14:17:49]FM_GetShiftState [14:17:49]SAM_PROTO_GetShiftState [14:17:49]wFMCommunicate request_size=4 [14:17:49]MH_SAM_APDU [14:17:49]CAPDU: 80 13 01 00 [14:17:49]Write to MH i2c: E2 08 00 48 5C 80 13 01 00 00 00 00 00 21 [14:17:49]Write i2c OK [14:17:49]MH_I2C_Read... [14:17:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:49]Read from MH i2c: E2 [14:17:49]MH_I2C_Read... [14:17:49]Read from MH i2c: E2 0E 00 [14:17:49]MH_I2C_Read... [14:17:49]Read from MH i2c: E2 0E 00 48 5C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 4F [14:17:49]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [14:17:49]wFMCommunicate OK [14:17:49]SAM_PROTO_GetShiftState done [14:17:49]FM_GetShiftState done [14:17:49]opened in 1722211641 [14:17:49]opened+sec_in_day 1722298041 [14:17:49]quantity*price = 100005 [14:17:49]sum+1 = 100006 [14:17:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 176 29.07.2024 14:17 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118800 ФПД: 85621509933292 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T141755&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118800&fm=85621509933292&tin=02508201610067®Number=0000000000092660&sum=100000 [14:17:50]StoreToDocumentArchive [14:17:50]shift 434 fd 118800 [14:17:50]save to /storage/0434/doc_00118800 [14:17:50]save last doc name /storage/0434/doc_00118800 to /storage/kkm_last_doc_name [14:17:50]save OK [14:17:50]Clear old archive folders... [14:17:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:17:50]tlvbuf is 01E89AF0 [14:17:50]SAM_PROTO_ClearQueue [14:17:50]wFMCommunicate request_size=4 [14:17:50]MH_SAM_APDU [14:17:50]CAPDU: 80 09 00 00 [14:17:50]Write to MH i2c: E2 08 00 55 5C 80 09 00 00 00 00 00 00 23 [14:17:50]Write i2c OK [14:17:50]MH_I2C_Read... [14:17:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:50]Read from MH i2c: E2 [14:17:50]MH_I2C_Read... [14:17:50]Read from MH i2c: E2 03 00 [14:17:50]MH_I2C_Read... [14:17:50]Read from MH i2c: E2 03 00 55 5C 00 90 00 25 [14:17:50]RAPDU: 90 00 [14:17:50]wFMCommunicate OK [14:17:50]SAM_PROTO_ClearQueue done [14:17:50]KKMCreateOFDPacket [14:17:50]OFDProtocolAddRootSTLVToBuf [14:17:50]FM_MakeSignedData [14:17:50]FM_MakeSignedData [14:17:50]SAM_PROTO_SignData [14:17:50]wFMCommunicate request_size=4 [14:17:50]MH_SAM_APDU [14:17:50]CAPDU: 80 0D 01 02 [14:17:50]Write to MH i2c: E2 08 00 56 5C 80 0D 01 02 00 00 00 00 2B [14:17:50]Write i2c OK [14:17:50]MH_I2C_Read... [14:17:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:50]Read from MH i2c: E2 [14:17:50]MH_I2C_Read... [14:17:50]Read from MH i2c: E2 03 00 [14:17:50]MH_I2C_Read... [14:17:50]Read from MH i2c: E2 03 00 56 5C 00 90 00 26 [14:17:50]RAPDU: 90 00 [14:17:50]wFMCommunicate OK [14:17:50]wFMCommunicate request_size=255 [14:17:50]MH_SAM_APDU [14:17:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 93 A4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 D0 01 00 35 04 06 00 4D [14:17:50]Write to MH i2c: E2 02 01 57 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 93 A4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 D0 01 00 35 04 06 00 4D 00 00 13 [14:17:50]Write i2c OK [14:17:50]MH_I2C_Read... [14:17:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:51]Read from MH i2c: E2 [14:17:51]MH_I2C_Read... [14:17:51]Read from MH i2c: E2 03 00 [14:17:51]MH_I2C_Read... [14:17:51]Read from MH i2c: E2 03 00 57 5C 00 90 00 27 [14:17:51]RAPDU: 90 00 [14:17:51]wFMCommunicate OK [14:17:51]wFMCommunicate request_size=10 [14:17:51]MH_SAM_APDU [14:17:51]CAPDU: 80 0D 02 02 05 DF 4F AF 48 EC [14:17:51]Write to MH i2c: E2 0D 00 58 5C 80 0D 02 02 05 00 DF 4F AF 48 EC 00 00 49 [14:17:51]Write i2c OK [14:17:51]MH_I2C_Read... [14:17:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:51]Read from MH i2c: E2 [14:17:51]MH_I2C_Read... [14:17:51]Read from MH i2c: E2 03 00 [14:17:51]MH_I2C_Read... [14:17:51]Read from MH i2c: E2 03 00 58 5C 00 90 00 28 [14:17:51]RAPDU: 90 00 [14:17:51]wFMCommunicate OK [14:17:51]wFMCommunicate request_size=4 [14:17:51]MH_SAM_APDU [14:17:51]CAPDU: 80 0D 03 02 [14:17:51]Write to MH i2c: E2 08 00 59 5C 80 0D 03 02 00 00 00 00 30 [14:17:51]Write i2c OK [14:17:51]MH_I2C_Read... [14:17:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:51]Read from MH i2c: E2 [14:17:51]MH_I2C_Read... [14:17:51]Read from MH i2c: E2 0B 00 [14:17:51]MH_I2C_Read... [14:17:51]Read from MH i2c: E2 0B 00 59 5C 00 A0 9B C2 41 46 A7 D9 A2 90 00 D7 [14:17:51]RAPDU: A0 9B C2 41 46 A7 D9 A2 90 00 [14:17:51]wFMCommunicate OK [14:17:51]SAM_PROTO_SignData done [14:17:51]FM_MakeSignedData done [14:17:51]CreateOFDProtocolMessage [14:17:51]wFMCommunicate request_size=4 [14:17:51]MH_SAM_APDU [14:17:51]CAPDU: 80 11 00 00 [14:17:51]Write to MH i2c: E2 08 00 5A 5C 80 11 00 00 00 00 00 00 30 [14:17:51]Write i2c OK [14:17:51]MH_I2C_Read... [14:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:51]Read from MH i2c: E2 [14:17:51]MH_I2C_Read... [14:17:51]Read from MH i2c: E2 17 00 [14:17:51]MH_I2C_Read... [14:17:51]Read from MH i2c: E2 17 00 5A 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8B [14:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:17:51]wFMCommunicate OK [14:17:51]CreateOFDProtocolMessage done [14:17:51]OFDSenderStorePacket 118800 [14:17:51]StoreOFDPacket docnum=118800 [14:17:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 34 ED 07 01 81 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 93 A4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 D0 01 00 35 04 06 00 4D DF 4F AF 48 EC A0 9B C2 41 46 A7 D9 A2 [14:17:51]CheckFolder [14:17:51]dirname=/storage/ofd_packets [14:17:51]CheckFolder done [14:17:51]ProducePacketName [14:17:51]name=ofd_packets/00118800 [14:17:51]NVStorageSaveData ofd_packets/00118800 [14:17:51]File name is /storage/ofd_packets/00118800 [14:17:51]Write 301 bytes [14:17:51]NVStorageSaveData done [14:17:51]OFDSenderStorePacket done [14:17:51]KKMCreateOFDPacket done [14:17:51]NVStorageSaveData kkm_last_timestamp [14:17:51]File name is /storage/kkm_last_timestamp [14:17:51]Write 4 bytes [14:17:51]NVStorageSaveData done [14:17:51]OFD Sender: Processing packet 118800 [packets to send 86, broken 85] [14:17:51]ProducePacketName [14:17:51]name=ofd_packets/00118800 [14:17:51]OFD Sender: To server: pG, [14:17:51]CommunicateWithHost lk.salyk.kg:30040 [14:17:51]ConnectInit lk.salyk.kg [14:17:51]ExternCall_PrintAddStr [14:17:51]wPrintStart [14:17:51]Write to MH i2c: 01 00 00 5B 5C B7 [14:17:51]Write i2c OK [14:17:51]MH_I2C_Read... [14:17:51]Read from MH i2c: 01 [14:17:51]MH_I2C_Read... [14:17:51]Read from MH i2c: 01 07 00 [14:17:51]MH_I2C_Read... [14:17:51]Read from MH i2c: 01 07 00 5B 5C 00 00 00 00 00 FF 0F CC [14:17:51]RasterBufferAndPrint [14:17:51]line Счет N : (1)949686 [14:17:51]line ИНН: 02508201610067 [14:17:51]line Контрольно-Кассовый Чек [14:17:51]line ПРОДАЖА [14:17:51]line ТРК (МРК, ГНК) : 41 [14:17:51]line Товар: 2710124130 [14:17:51]line Аи-92-К-4 [14:17:51]line 14.750 * 67.80 [14:17:51]line = 1000.05 [14:17:51]line НДС 12% НСП 1% [14:17:51]line > о реализуемом товаре [14:17:51]line ОКРУГЛЕНИЕ: -0.05 [14:17:51]line ИТОГО: 1000.00 [14:17:51]line Внесено: 1000.00 [14:17:51]line СДАЧА: 0.00 [14:17:51]line НСП 1% : 8.85 [14:17:51]line НДС 12% : 106.20 [14:17:51]line Наличными: 1000.00 [14:17:51]line Безнал.: 0.00 [14:17:51]line Место: АЗС № 134 "Партнер Нефть" [14:17:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:17:51]line СНО: Общий режим [14:17:51]line Чек 176 29.07.2024 14:17 [14:17:51]line Смена: 434 ФФД: 1.0 [14:17:51]line ЗНМ: 0300000044 [14:17:51]line РНМ: 0000000000092660 [14:17:51]line Версия ККМ: 001 [14:17:51]line ФМ: 0000000000874939 [14:17:51]line ФД: 118800 [14:17:51]line ФПД: 85621509933292 [14:17:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T141755&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118800&fm=85621509933292&tin=02508201610067®Number=0000000000092660&sum=100000 [14:17:51]Connected sock=11 [14:17:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 34 ED 07 01 81 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 93 A4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 D0 01 00 35 04 06 00 4D DF 4F AF 48 EC A0 9B C2 41 46 A7 D9 A2 [14:17:51]written 0, free lines is 4095 [14:17:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4D 76 47 00 21 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 34 39 33 39 10 04 04 00 10 D0 01 00 F4 03 04 00 21 52 A7 66 B6 04 01 00 00 B7 36 92 43 F8 6E 77 C8 [14:17:51]CommunicateWithHost err = 0 [14:17:51]CheckOFDResponse [14:17:51]1017 (14) - 77093643461234 [14:17:51]1041 (16) - 0000000000874939 [14:17:51]1040 (4) - 118800 [14:17:51]1012 (4) - 29.07.2024 08:26 [14:17:51]1206 (1) - 0 [14:17:51]OFD Sender: Remove packet 118800 [14:17:51]ProducePacketName [14:17:51]name=ofd_packets/00118800 [14:17:51]NVStorageDeleteData [14:17:52]Write to MH i2c: 01 00 00 85 5C E1 [14:17:52]Write i2c OK [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: 01 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: 01 07 00 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: 01 07 00 85 5C 00 00 00 00 00 CF 0C C3 [14:17:52]RasterBufferAndPrint [14:17:52]line [14:17:52]line [14:17:52]line [14:17:52]line [14:17:52]line [14:17:52]written 0, free lines is 3286 [14:17:52]MH_Cut [14:17:52]Write to MH i2c: D1 01 00 8C 5C 01 BA [14:17:52]Write i2c OK [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: D1 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: D1 01 00 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: D1 01 00 8C 5C 00 B9 [14:17:52]Write to MH i2c: 01 00 00 8D 5C E9 [14:17:52]Write i2c OK [14:17:52]MH_I2C_Read... [14:17:52]OFD Sender: No OFD packet to send [14:17:52]*** Cut start [14:17:52]*** Partial cut [14:17:52]*** CUTSNS_PIN = 1 [14:17:52]*** CUTSNS_PIN = 0 [14:17:53]*** Brake cut motor [14:17:53]Read from MH i2c: 01 [14:17:53]MH_I2C_Read... [14:17:53]*** Stop cut motor [14:17:53]*** Cut end [14:17:53]Read from MH i2c: 01 07 00 [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: 01 07 00 8D 5C 00 00 00 00 00 FF 0F FE [14:17:53]process_action close_receipt done [14:17:53]requested_data is exist [14:17:53]produce_requested_data [14:17:53]requested_item fm.sn is exist - process it [14:17:53]wFMCommunicate request_size=4 [14:17:53]MH_SAM_APDU [14:17:53]CAPDU: 80 11 00 00 [14:17:53]Write to MH i2c: E2 08 00 8E 5C 80 11 00 00 00 00 00 00 64 [14:17:53]Write i2c OK [14:17:53]MH_I2C_Read... [14:17:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:53]Read from MH i2c: E2 [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: E2 17 00 [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: E2 17 00 8E 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BF [14:17:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:17:53]wFMCommunicate OK [14:17:53]requested_item fd.num is exist - process it [14:17:53]SAM_PROTO_GetFieldsCounters [14:17:53]wFMCommunicate request_size=4 [14:17:53]MH_SAM_APDU [14:17:53]CAPDU: 80 13 00 00 [14:17:53]Write to MH i2c: E2 08 00 8F 5C 80 13 00 00 00 00 00 00 67 [14:17:53]Write i2c OK [14:17:53]MH_I2C_Read... [14:17:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:53]Read from MH i2c: E2 [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: E2 62 00 [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: E2 62 00 8F 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 10 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [14:17: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 10 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:17:53]wFMCommunicate OK [14:17:53]SAM_PROTO_GetFieldsCounters done [14:17:53]requested_item shift.num is exist - process it [14:17:53]requested_item shift.opened is exist - process it [14:17:53]req_shift_opened [14:17:53]FM_GetShiftState [14:17:53]SAM_PROTO_GetShiftState [14:17:53]wFMCommunicate request_size=4 [14:17:53]MH_SAM_APDU [14:17:53]CAPDU: 80 13 01 00 [14:17:53]Write to MH i2c: E2 08 00 90 5C 80 13 01 00 00 00 00 00 69 [14:17:53]Write i2c OK [14:17:53]MH_I2C_Read... [14:17:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:53]Read from MH i2c: E2 [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: E2 0E 00 [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: E2 0E 00 90 5C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 97 [14:17:53]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [14:17:53]wFMCommunicate OK [14:17:53]SAM_PROTO_GetShiftState done [14:17:53]FM_GetShiftState done [14:17:53]req_shift_opened done [14:17:53]requested_item shift.open_date is exist - process it [14:17:53]req_shift_open_date [14:17:53]req_shift_open_date done [14:17:53]produce_requested_data done [14:17:53]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118800,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [14:17:53]process_action_free close_receipt [14:17:53]json_value_free [14:17:53]json_value_free done [14:17:53]process_json_proto returns [14:17:53]Send response to host [14:17:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118800,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [14:17:53]free response buf [14:17:53]execute_script done [14:17:53]execute_script returns [14:17:53]free content buf [14:17:53]Sock 9.Close socket [14:17:53]Sock 9.Thread stoped [14:17:57]OFD Sender: No OFD packet to send [14:18:02]OFD Sender: No OFD packet to send [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:22]OFD Sender: No OFD packet to send [14:18:27]OFD Sender: No OFD packet to send [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18:47]OFD Sender: No OFD packet to send [14:18:52]OFD Sender: No OFD packet to send [14:18:57]accept exits with 7 [14:18:57]New connection [14:18:57]New thread 3067383140 created [14:18:57]Thread 3067239780 joined [14:18:57]Waiting for new connection... [14:18:57] Sock 7.Parse request [14:18:57]Sock 7.Check first char [14:18:57]Sock 7.First char is OK [14:18:57]request: POST /json_proto HTTP/1.0 [14:18:57]Method: POST [14:18:57]URL: /json_proto [14:18:57]Method is POST - this is cgi request [14:18:57]url: /json_proto [14:18:57]query_string will be loaded in cgi processing [14:18:57]execute_cgi json_proto POST (null) [14:18:57]execute_cgi path=json_proto method=POST [14:18:57]POST find Content-Length [14:18:57]Host: 172.17.45.7:8080 [14:18:57]Content-Length: 822 [14:18:57]Content-Type: application/json [14:18:57] [14:18:57]POST finish read [14:18:57]Found Content-Length = 822 [14:18:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:57]execute_script... [14:18:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:57]POST & json_proto [14:18:57]process_json_proto [14:18:57]json parsed OK: [14:18:57]protocol is kg_v1.0 [14:18:57]action value=close_receipt [14:18:57]process_action close_receipt [14:18:57]cmd_close_receipt [14:18:57]MH_GetDate [14:18:57]Write to MH i2c: F0 00 00 91 5C DC [14:18:57]Write i2c OK [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: F0 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: F0 09 00 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: F0 09 00 91 5C 00 D7 A4 A7 66 90 0F 3E 66 B0 [14:18:57]GetLastDocTimeStamp 1722262675 [14:18:57]current date 1722262743 [14:18:57]FM_GetShiftState [14:18:57]SAM_PROTO_GetShiftState [14:18:57]wFMCommunicate request_size=4 [14:18:57]MH_SAM_APDU [14:18:57]CAPDU: 80 13 01 00 [14:18:57]Write to MH i2c: E2 08 00 92 5C 80 13 01 00 00 00 00 00 6B [14:18:57]Write i2c OK [14:18:57]MH_I2C_Read... [14:18:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:57]Read from MH i2c: E2 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: E2 0E 00 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: E2 0E 00 92 5C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 99 [14:18:57]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [14:18:57]wFMCommunicate OK [14:18:57]SAM_PROTO_GetShiftState done [14:18:57]FM_GetShiftState done [14:18:57]opened in 1722211641 [14:18:57]opened+sec_in_day 1722298041 [14:18:57]quantity*price = 200010 [14:18:57]sum+1 = 200011 [14:18:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 177 29.07.2024 14:19 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118801 ФПД: 268764660028579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T141903&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118801&fm=268764660028579&tin=02508201610067®Number=0000000000092660&sum=200000 [14:18:58]StoreToDocumentArchive [14:18:58]shift 434 fd 118801 [14:18:58]save to /storage/0434/doc_00118801 [14:18:58]save last doc name /storage/0434/doc_00118801 to /storage/kkm_last_doc_name [14:18:58]save OK [14:18:58]Clear old archive folders... [14:18:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:18:58]tlvbuf is 01E59230 [14:18:58]SAM_PROTO_ClearQueue [14:18:58]wFMCommunicate request_size=4 [14:18:58]MH_SAM_APDU [14:18:58]CAPDU: 80 09 00 00 [14:18:58]Write to MH i2c: E2 08 00 9F 5C 80 09 00 00 00 00 00 00 6D [14:18:58]Write i2c OK [14:18:58]MH_I2C_Read... [14:18:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:58]Read from MH i2c: E2 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 03 00 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 03 00 9F 5C 00 90 00 6F [14:18:58]RAPDU: 90 00 [14:18:58]wFMCommunicate OK [14:18:58]SAM_PROTO_ClearQueue done [14:18:58]KKMCreateOFDPacket [14:18:58]OFDProtocolAddRootSTLVToBuf [14:18:58]FM_MakeSignedData [14:18:58]FM_MakeSignedData [14:18:58]SAM_PROTO_SignData [14:18:58]wFMCommunicate request_size=4 [14:18:58]MH_SAM_APDU [14:18:58]CAPDU: 80 0D 01 02 [14:18:58]Write to MH i2c: E2 08 00 A0 5C 80 0D 01 02 00 00 00 00 75 [14:18:58]Write i2c OK [14:18:58]MH_I2C_Read... [14:18:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:58]Read from MH i2c: E2 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 03 00 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 03 00 A0 5C 00 90 00 70 [14:18:58]RAPDU: 90 00 [14:18:58]wFMCommunicate OK [14:18:58]wFMCommunicate request_size=255 [14:18:58]MH_SAM_APDU [14:18:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 D7 A4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 D0 01 00 35 04 06 00 F4 [14:18:58]Write to MH i2c: E2 02 01 A1 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 D7 A4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 D0 01 00 35 04 06 00 F4 00 00 BF [14:18:58]Write i2c OK [14:18:58]MH_I2C_Read... [14:18:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:58]Read from MH i2c: E2 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 03 00 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 03 00 A1 5C 00 90 00 71 [14:18:58]RAPDU: 90 00 [14:18:58]wFMCommunicate OK [14:18:58]wFMCommunicate request_size=10 [14:18:58]MH_SAM_APDU [14:18:58]CAPDU: 80 0D 02 02 05 70 A6 16 D4 A3 [14:18:58]Write to MH i2c: E2 0D 00 A2 5C 80 0D 02 02 05 00 70 A6 16 D4 A3 00 00 25 [14:18:58]Write i2c OK [14:18:58]MH_I2C_Read... [14:18:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:58]Read from MH i2c: E2 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 03 00 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 03 00 A2 5C 00 90 00 72 [14:18:58]RAPDU: 90 00 [14:18:58]wFMCommunicate OK [14:18:58]wFMCommunicate request_size=4 [14:18:58]MH_SAM_APDU [14:18:58]CAPDU: 80 0D 03 02 [14:18:58]Write to MH i2c: E2 08 00 A3 5C 80 0D 03 02 00 00 00 00 7A [14:18:58]Write i2c OK [14:18:58]MH_I2C_Read... [14:18:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:58]Read from MH i2c: E2 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 0B 00 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 0B 00 A3 5C 00 30 DD A3 76 4C C4 C6 61 90 00 D8 [14:18:58]RAPDU: 30 DD A3 76 4C C4 C6 61 90 00 [14:18:58]wFMCommunicate OK [14:18:58]SAM_PROTO_SignData done [14:18:58]FM_MakeSignedData done [14:18:58]CreateOFDProtocolMessage [14:18:58]wFMCommunicate request_size=4 [14:18:58]MH_SAM_APDU [14:18:58]CAPDU: 80 11 00 00 [14:18:58]Write to MH i2c: E2 08 00 A4 5C 80 11 00 00 00 00 00 00 7A [14:18:58]Write i2c OK [14:18:58]MH_I2C_Read... [14:18:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:58]Read from MH i2c: E2 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 17 00 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 17 00 A4 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D5 [14:18:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:18:58]wFMCommunicate OK [14:18:58]CreateOFDProtocolMessage done [14:18:58]OFDSenderStorePacket 118801 [14:18:58]StoreOFDPacket docnum=118801 [14:18:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E4 04 07 01 8E 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 D7 A4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 D0 01 00 35 04 06 00 F4 70 A6 16 D4 A3 30 DD A3 76 4C C4 C6 61 [14:18:58]CheckFolder [14:18:58]dirname=/storage/ofd_packets [14:18:58]CheckFolder done [14:18:58]ProducePacketName [14:18:58]name=ofd_packets/00118801 [14:18:58]NVStorageSaveData ofd_packets/00118801 [14:18:58]File name is /storage/ofd_packets/00118801 [14:18:58]Write 301 bytes [14:18:58]NVStorageSaveData done [14:18:58]OFDSenderStorePacket done [14:18:58]KKMCreateOFDPacket done [14:18:58]NVStorageSaveData kkm_last_timestamp [14:18:58]File name is /storage/kkm_last_timestamp [14:18:58]Write 4 bytes [14:18:58]NVStorageSaveData done [14:18:58]ExternCall_PrintAddStr [14:18:58]wPrintStart [14:18:58]Write to MH i2c: 01 00 00 A5 5C 01 [14:18:58]Write i2c OK [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: 01 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: 01 07 00 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: 01 07 00 A5 5C 00 00 00 00 00 FF 0F 16 [14:18:58]RasterBufferAndPrint [14:18:58]line Счет N : (1)949687 [14:18:58]line ИНН: 02508201610067 [14:18:58]line Контрольно-Кассовый Чек [14:18:58]line ПРОДАЖА [14:18:58]line ТРК (МРК, ГНК) : 61 [14:18:58]line Товар: 2710124130 [14:18:58]line Аи-92-К-4 [14:18:58]line 29.500 * 67.80 [14:18:58]line = 2000.10 [14:18:58]line НДС 12% НСП 1% [14:18:58]line > о реализуемом товаре [14:18:58]line ОКРУГЛЕНИЕ: -0.10 [14:18:58]line ИТОГО: 2000.00 [14:18:58]line НСП 1% : 17.70 [14:18:58]line НДС 12% : 212.40 [14:18:58]line Наличными: 0.00 [14:18:58]line Безнал.: 2000.00 [14:18:58]line Место: АЗС № 134 "Партнер Нефть" [14:18:58]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:18:58]line СНО: Общий режим [14:18:58]line Чек 177 29.07.2024 14:19 [14:18:58]line Смена: 434 ФФД: 1.0 [14:18:58]line ЗНМ: 0300000044 [14:18:58]line РНМ: 0000000000092660 [14:18:58]line Версия ККМ: 001 [14:18:58]line Платежная система: O! деньги [14:18:58]line ФМ: 0000000000874939 [14:18:58]line ФД: 118801 [14:18:58]line ФПД: 268764660028579 [14:18:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T141903&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118801&fm=268764660028579&tin=02508201610067®Number=0000000000092660&sum=200000 [14:18:59]written 0, free lines is 4095 [14:18:59]OFD Sender: Processing packet 118801 [packets to send 86, broken 85] [14:18:59]ProducePacketName [14:18:59]name=ofd_packets/00118801 [14:18:59]OFD Sender: To server: pG, [14:18:59]CommunicateWithHost lk.salyk.kg:30040 [14:18:59]ConnectInit lk.salyk.kg [14:18:59]Connected sock=10 [14:18:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E4 04 07 01 8E 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 D7 A4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 D0 01 00 35 04 06 00 F4 70 A6 16 D4 A3 30 DD A3 76 4C C4 C6 61 [14:18:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 71 DF 47 00 A2 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 D0 01 00 F4 03 04 00 64 52 A7 66 B6 04 01 00 00 46 A3 15 83 DA 58 E5 BE [14:18:59]CommunicateWithHost err = 0 [14:18:59]CheckOFDResponse [14:18:59]1017 (14) - 77093643461234 [14:18:59]1041 (16) - 0000000000874939 [14:18:59]1040 (4) - 118801 [14:18:59]1012 (4) - 29.07.2024 08:27 [14:18:59]1206 (1) - 0 [14:18:59]OFD Sender: Remove packet 118801 [14:18:59]ProducePacketName [14:18:59]name=ofd_packets/00118801 [14:18:59]NVStorageDeleteData [14:18:59]Write to MH i2c: 01 00 00 CF 5C 2B [14:18:59]Write i2c OK [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: 01 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: 01 07 00 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: 01 07 00 CF 5C 00 00 00 00 00 DC 0C 1A [14:18:59]RasterBufferAndPrint [14:18:59]line [14:18:59]line [14:18:59]line [14:18:59]line [14:18:59]line [14:18:59]written 0, free lines is 3302 [14:18:59]MH_Cut [14:18:59]Write to MH i2c: D1 01 00 D6 5C 01 04 [14:18:59]Write i2c OK [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: D1 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: D1 01 00 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: D1 01 00 D6 5C 00 03 [14:18:59]Write to MH i2c: 01 00 00 D7 5C 33 [14:18:59]Write i2c OK [14:18:59]MH_I2C_Read... [14:19:00]OFD Sender: No OFD packet to send [14:19:00]*** Cut start [14:19:00]*** Partial cut [14:19:00]*** CUTSNS_PIN = 1 [14:19:00]*** CUTSNS_PIN = 0 [14:19:00]*** Brake cut motor [14:19:01]Read from MH i2c: 01 [14:19:01]MH_I2C_Read... [14:19:01]*** Stop cut motor [14:19:01]*** Cut end [14:19:01]Read from MH i2c: 01 07 00 [14:19:01]MH_I2C_Read... [14:19:01]Read from MH i2c: 01 07 00 D7 5C 00 00 00 00 00 FF 0F 48 [14:19:01]process_action close_receipt done [14:19:01]requested_data is exist [14:19:01]produce_requested_data [14:19:01]requested_item fm.sn is exist - process it [14:19:01]wFMCommunicate request_size=4 [14:19:01]MH_SAM_APDU [14:19:01]CAPDU: 80 11 00 00 [14:19:01]Write to MH i2c: E2 08 00 D8 5C 80 11 00 00 00 00 00 00 AE [14:19:01]Write i2c OK [14:19:01]MH_I2C_Read... [14:19:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:01]Read from MH i2c: E2 [14:19:01]MH_I2C_Read... [14:19:01]Read from MH i2c: E2 17 00 [14:19:01]MH_I2C_Read... [14:19:01]Read from MH i2c: E2 17 00 D8 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 09 [14:19:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:19:01]wFMCommunicate OK [14:19:01]requested_item fd.num is exist - process it [14:19:01]SAM_PROTO_GetFieldsCounters [14:19:01]wFMCommunicate request_size=4 [14:19:01]MH_SAM_APDU [14:19:01]CAPDU: 80 13 00 00 [14:19:01]Write to MH i2c: E2 08 00 D9 5C 80 13 00 00 00 00 00 00 B1 [14:19:01]Write i2c OK [14:19:01]MH_I2C_Read... [14:19:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:01]Read from MH i2c: E2 [14:19:01]MH_I2C_Read... [14:19:01]Read from MH i2c: E2 62 00 [14:19:01]MH_I2C_Read... [14:19:01]Read from MH i2c: E2 62 00 D9 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [14:19: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:01]wFMCommunicate OK [14:19:01]SAM_PROTO_GetFieldsCounters done [14:19:01]requested_item shift.num is exist - process it [14:19:01]requested_item shift.opened is exist - process it [14:19:01]req_shift_opened [14:19:01]FM_GetShiftState [14:19:01]SAM_PROTO_GetShiftState [14:19:01]wFMCommunicate request_size=4 [14:19:01]MH_SAM_APDU [14:19:01]CAPDU: 80 13 01 00 [14:19:01]Write to MH i2c: E2 08 00 DA 5C 80 13 01 00 00 00 00 00 B3 [14:19:01]Write i2c OK [14:19:01]MH_I2C_Read... [14:19:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:01]Read from MH i2c: E2 [14:19:01]MH_I2C_Read... [14:19:01]Read from MH i2c: E2 0E 00 [14:19:01]MH_I2C_Read... [14:19:01]Read from MH i2c: E2 0E 00 DA 5C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E1 [14:19:01]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [14:19:01]wFMCommunicate OK [14:19:01]SAM_PROTO_GetShiftState done [14:19:01]FM_GetShiftState done [14:19:01]req_shift_opened done [14:19:01]requested_item shift.open_date is exist - process it [14:19:01]req_shift_open_date [14:19:01]req_shift_open_date done [14:19:01]produce_requested_data done [14:19:01]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118801,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [14:19:01]process_action_free close_receipt [14:19:01]json_value_free [14:19:01]json_value_free done [14:19:01]process_json_proto returns [14:19:01]Send response to host [14:19:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118801,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [14:19:01]free response buf [14:19:01]execute_script done [14:19:01]execute_script returns [14:19:01]free content buf [14:19:01]Sock 7.Close socket [14:19:01]Sock 7.Thread stoped [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:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [14:27:10]OFD Sender: No OFD packet to send [14:27:15]OFD Sender: No OFD packet to send [14:27:20]OFD Sender: No OFD packet to send [14:27:25]OFD Sender: No OFD packet to send [14:27:30]OFD Sender: No OFD packet to send [14:27:35]OFD Sender: No OFD packet to send [14:27:40]OFD Sender: No OFD packet to send [14:27:45]OFD Sender: No OFD packet to send [14:27:50]OFD Sender: No OFD packet to send [14:27:55]OFD Sender: No OFD packet to send [14:28:00]OFD Sender: No OFD packet to send [14:28:05]OFD Sender: No OFD packet to send [14:28:10]OFD Sender: No OFD packet to send [14:28:15]OFD Sender: No OFD packet to send [14:28:20]OFD Sender: No OFD packet to send [14:28:25]OFD Sender: No OFD packet to send [14:28:30]OFD Sender: No OFD packet to send [14:28:35]OFD Sender: No OFD packet to send [14:28:40]OFD Sender: No OFD packet to send [14:28:45]OFD Sender: No OFD packet to send [14:28:50]OFD Sender: No OFD packet to send [14:28:55]OFD Sender: No OFD packet to send [14:29:00]OFD Sender: No OFD packet to send [14:29:05]OFD Sender: No OFD packet to send [14:29:10]OFD Sender: No OFD packet to send [14:29:15]OFD Sender: No OFD packet to send [14:29:20]OFD Sender: No OFD packet to send [14:29:25]OFD Sender: No OFD packet to send [14:29:30]OFD Sender: No OFD packet to send [14:29:35]OFD Sender: No OFD packet to send [14:29:40]OFD Sender: No OFD packet to send [14:29:45]OFD Sender: No OFD packet to send [14:29:50]OFD Sender: No OFD packet to send [14:29:55]OFD Sender: No OFD packet to send [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:10]OFD Sender: No OFD packet to send [14:30:15]OFD Sender: No OFD packet to send [14:30:20]OFD Sender: No OFD packet to send [14:30:25]OFD Sender: No OFD packet to send [14:30:30]OFD Sender: No OFD packet to send [14:30:35]OFD Sender: No OFD packet to send [14:30:40]OFD Sender: No OFD packet to send [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:55]OFD Sender: No OFD packet to send [14:31:00]OFD Sender: No OFD packet to send [14:31:05]OFD Sender: No OFD packet to send [14:31:10]OFD Sender: No OFD packet to send [14:31:15]OFD Sender: No OFD packet to send [14:31:20]OFD Sender: No OFD packet to send [14:31:25]OFD Sender: No OFD packet to send [14:31:30]OFD Sender: No OFD packet to send [14:31:35]OFD Sender: No OFD packet to send [14:31:40]OFD Sender: No OFD packet to send [14:31:45]OFD Sender: No OFD packet to send [14:31:50]OFD Sender: No OFD packet to send [14:31:55]OFD Sender: No OFD packet to send [14:32:00]OFD Sender: No OFD packet to send [14:32:05]OFD Sender: No OFD packet to send [14:32:10]OFD Sender: No OFD packet to send [14:32:15]OFD Sender: No OFD packet to send [14:32:20]OFD Sender: No OFD packet to send [14:32:25]OFD Sender: No OFD packet to send [14:32:30]OFD Sender: No OFD packet to send [14:32:35]OFD Sender: No OFD packet to send [14:32:40]OFD Sender: No OFD packet to send [14:32:45]OFD Sender: No OFD packet to send [14:32:50]OFD Sender: No OFD packet to send [14:32:55]OFD Sender: No OFD packet to send [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]OFD Sender: No OFD packet to send [14:33:15]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:30]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]OFD Sender: No OFD packet to send [14:38:01]OFD Sender: No OFD packet to send [14:38:06]OFD Sender: No OFD packet to send [14:38:11]OFD Sender: No OFD packet to send [14:38:16]OFD Sender: No OFD packet to send [14:38:21]OFD Sender: No OFD packet to send [14:38:26]OFD Sender: No OFD packet to send [14:38:31]OFD Sender: No OFD packet to send [14:38:36]OFD Sender: No OFD packet to send [14:38:41]OFD Sender: No OFD packet to send [14:38:46]OFD Sender: No OFD packet to send [14:38:51]OFD Sender: No OFD packet to send [14:38:56]OFD Sender: No OFD packet to send [14:39:01]OFD Sender: No OFD packet to send [14:39:06]OFD Sender: No OFD packet to send [14:39:11]OFD Sender: No OFD packet to send [14:39:16]OFD Sender: No OFD packet to send [14:39:21]OFD Sender: No OFD packet to send [14:39:26]OFD Sender: No OFD packet to send [14:39:31]OFD Sender: No OFD packet to send [14:39:36]OFD Sender: No OFD packet to send [14:39:41]OFD Sender: No OFD packet to send [14:39:46]OFD Sender: No OFD packet to send [14:39:51]OFD Sender: No OFD packet to send [14:39:56]OFD Sender: No OFD packet to send [14:40:01]OFD Sender: No OFD packet to send [14:40:06]OFD Sender: No OFD packet to send [14:40:11]OFD Sender: No OFD packet to send [14:40:16]OFD Sender: No OFD packet to send [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:31]OFD Sender: No OFD packet to send [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:41:01]OFD Sender: No OFD packet to send [14:41:06]OFD Sender: No OFD packet to send [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:36]OFD Sender: No OFD packet to send [14:41:41]OFD Sender: No OFD packet to send [14:41:46]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [14:42:17]accept exits with 9 [14:42:17]New connection [14:42:17]New thread 3067239780 created [14:42:17]Thread 3067383140 joined [14:42:17]Waiting for new connection... [14:42:17] Sock 9.Parse request [14:42:17]Sock 9.Check first char [14:42:17]Sock 9.First char is OK [14:42:17]request: POST /json_proto HTTP/1.0 [14:42:17]Method: POST [14:42:17]URL: /json_proto [14:42:17]Method is POST - this is cgi request [14:42:17]url: /json_proto [14:42:17]query_string will be loaded in cgi processing [14:42:17]execute_cgi json_proto POST (null) [14:42:17]execute_cgi path=json_proto method=POST [14:42:17]POST find Content-Length [14:42:17]Host: 172.17.45.7:8080 [14:42:17]Content-Length: 677 [14:42:17]Content-Type: application/json [14:42:17] [14:42:17]POST finish read [14:42:17]Found Content-Length = 677 [14:42:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:17]execute_script... [14:42:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:17]POST & json_proto [14:42:17]process_json_proto [14:42:17]json parsed OK: [14:42:17]protocol is kg_v1.0 [14:42:17]action value=close_receipt [14:42:17]process_action close_receipt [14:42:17]cmd_close_receipt [14:42:17]MH_GetDate [14:42:17]Write to MH i2c: F0 00 00 DB 5C 26 [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: F0 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: F0 09 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: F0 09 00 DB 5C 00 4F AA A7 66 90 0F 3E 66 78 [14:42:17]GetLastDocTimeStamp 1722262743 [14:42:17]current date 1722264143 [14:42:17]FM_GetShiftState [14:42:17]SAM_PROTO_GetShiftState [14:42:17]wFMCommunicate request_size=4 [14:42:17]MH_SAM_APDU [14:42:17]CAPDU: 80 13 01 00 [14:42:17]Write to MH i2c: E2 08 00 DC 5C 80 13 01 00 00 00 00 00 B5 [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:17]Read from MH i2c: E2 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 0E 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 0E 00 DC 5C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E3 [14:42:17]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [14:42:17]wFMCommunicate OK [14:42:17]SAM_PROTO_GetShiftState done [14:42:17]FM_GetShiftState done [14:42:17]opened in 1722211641 [14:42:17]opened+sec_in_day 1722298041 [14:42:17]quantity*price = 40002 [14:42:17]sum+1 = 40003 [14:42:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 178 29.07.2024 14:42 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118802 ФПД: 168305458647713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T144223&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118802&fm=168305458647713&tin=02508201610067®Number=0000000000092660&sum=40000 [14:42:18]StoreToDocumentArchive [14:42:18]shift 434 fd 118802 [14:42:18]save to /storage/0434/doc_00118802 [14:42:18]save last doc name /storage/0434/doc_00118802 to /storage/kkm_last_doc_name [14:42:18]save OK [14:42:18]Clear old archive folders... [14:42:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:18]tlvbuf is 01E82800 [14:42:18]SAM_PROTO_ClearQueue [14:42:18]wFMCommunicate request_size=4 [14:42:18]MH_SAM_APDU [14:42:18]CAPDU: 80 09 00 00 [14:42:18]Write to MH i2c: E2 08 00 E9 5C 80 09 00 00 00 00 00 00 B7 [14:42:18]Write i2c OK [14:42:18]MH_I2C_Read... [14:42:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:18]Read from MH i2c: E2 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 03 00 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 03 00 E9 5C 00 90 00 B9 [14:42:18]RAPDU: 90 00 [14:42:18]wFMCommunicate OK [14:42:18]SAM_PROTO_ClearQueue done [14:42:18]KKMCreateOFDPacket [14:42:18]OFDProtocolAddRootSTLVToBuf [14:42:18]FM_MakeSignedData [14:42:18]FM_MakeSignedData [14:42:18]SAM_PROTO_SignData [14:42:18]wFMCommunicate request_size=4 [14:42:18]MH_SAM_APDU [14:42:18]CAPDU: 80 0D 01 02 [14:42:18]Write to MH i2c: E2 08 00 EA 5C 80 0D 01 02 00 00 00 00 BF [14:42:18]Write i2c OK [14:42:18]MH_I2C_Read... [14:42:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:18]Read from MH i2c: E2 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 03 00 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 03 00 EA 5C 00 90 00 BA [14:42:18]RAPDU: 90 00 [14:42:18]wFMCommunicate OK [14:42:18]wFMCommunicate request_size=255 [14:42:18]MH_SAM_APDU [14:42:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 4F AA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 D0 01 00 35 04 06 00 99 [14:42:18]Write to MH i2c: E2 02 01 EB 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 4F AA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 D0 01 00 35 04 06 00 99 00 00 0F [14:42:18]Write i2c OK [14:42:18]MH_I2C_Read... [14:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:19]Read from MH i2c: E2 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 03 00 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 03 00 EB 5C 00 90 00 BB [14:42:19]RAPDU: 90 00 [14:42:19]wFMCommunicate OK [14:42:19]wFMCommunicate request_size=10 [14:42:19]MH_SAM_APDU [14:42:19]CAPDU: 80 0D 02 02 05 12 AB 13 92 A1 [14:42:19]Write to MH i2c: E2 0D 00 EC 5C 80 0D 02 02 05 00 12 AB 13 92 A1 00 00 CF [14:42:19]Write i2c OK [14:42:19]MH_I2C_Read... [14:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:19]Read from MH i2c: E2 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 03 00 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 03 00 EC 5C 00 90 00 BC [14:42:19]RAPDU: 90 00 [14:42:19]wFMCommunicate OK [14:42:19]wFMCommunicate request_size=4 [14:42:19]MH_SAM_APDU [14:42:19]CAPDU: 80 0D 03 02 [14:42:19]Write to MH i2c: E2 08 00 ED 5C 80 0D 03 02 00 00 00 00 C4 [14:42:19]Write i2c OK [14:42:19]MH_I2C_Read... [14:42:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:19]Read from MH i2c: E2 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 0B 00 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 0B 00 ED 5C 00 A0 47 03 F5 5D D5 21 B5 90 00 AC [14:42:19]RAPDU: A0 47 03 F5 5D D5 21 B5 90 00 [14:42:19]wFMCommunicate OK [14:42:19]SAM_PROTO_SignData done [14:42:19]FM_MakeSignedData done [14:42:19]CreateOFDProtocolMessage [14:42:19]wFMCommunicate request_size=4 [14:42:19]MH_SAM_APDU [14:42:19]CAPDU: 80 11 00 00 [14:42:19]Write to MH i2c: E2 08 00 EE 5C 80 11 00 00 00 00 00 00 C4 [14:42:19]Write i2c OK [14:42:19]MH_I2C_Read... [14:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:19]Read from MH i2c: E2 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 17 00 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 17 00 EE 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1F [14:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:42:19]wFMCommunicate OK [14:42:19]CreateOFDProtocolMessage done [14:42:19]OFDSenderStorePacket 118802 [14:42:19]StoreOFDPacket docnum=118802 [14:42:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5C 01 07 01 A2 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 4F AA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 D0 01 00 35 04 06 00 99 12 AB 13 92 A1 A0 47 03 F5 5D D5 21 B5 [14:42:19]CheckFolder [14:42:19]dirname=/storage/ofd_packets [14:42:19]CheckFolder done [14:42:19]ProducePacketName [14:42:19]name=ofd_packets/00118802 [14:42:19]NVStorageSaveData ofd_packets/00118802 [14:42:19]File name is /storage/ofd_packets/00118802 [14:42:19]Write 301 bytes [14:42:19]NVStorageSaveData done [14:42:19]OFDSenderStorePacket done [14:42:19]KKMCreateOFDPacket done [14:42:19]NVStorageSaveData kkm_last_timestamp [14:42:19]File name is /storage/kkm_last_timestamp [14:42:19]Write 4 bytes [14:42:19]NVStorageSaveData done [14:42:19]ExternCall_PrintAddStr [14:42:19]wPrintStart [14:42:19]Write to MH i2c: 01 00 00 EF 5C 4B [14:42:19]Write i2c OK [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: 01 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: 01 07 00 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: 01 07 00 EF 5C 00 00 00 00 00 FF 0F 60 [14:42:19]RasterBufferAndPrint [14:42:19]line Счет N : (1)949688 [14:42:19]line ИНН: 02508201610067 [14:42:19]line Контрольно-Кассовый Чек [14:42:19]line ПРОДАЖА [14:42:19]line ТРК (МРК, ГНК) : 31 [14:42:19]line Товар: 2710124130 [14:42:19]line Аи-92-К-4 [14:42:19]line 5.900 * 67.80 [14:42:19]line = 400.02 [14:42:19]line НДС 12% НСП 1% [14:42:19]line > о реализуемом товаре [14:42:19]line ОКРУГЛЕНИЕ: -0.02 [14:42:19]line ИТОГО: 400.00 [14:42:19]line Внесено: 400.00 [14:42:19]line СДАЧА: 0.00 [14:42:19]line НСП 1% : 3.54 [14:42:19]line НДС 12% : 42.48 [14:42:19]line Наличными: 400.00 [14:42:19]line Безнал.: 0.00 [14:42:19]line Место: АЗС № 134 "Партнер Нефть" [14:42:19]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:42:19]line СНО: Общий режим [14:42:19]line Чек 178 29.07.2024 14:42 [14:42:19]line Смена: 434 ФФД: 1.0 [14:42:19]line ЗНМ: 0300000044 [14:42:19]line РНМ: 0000000000092660 [14:42:19]line Версия ККМ: 001 [14:42:19]line ФМ: 0000000000874939 [14:42:19]line ФД: 118802 [14:42:19]line ФПД: 168305458647713 [14:42:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T144223&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118802&fm=168305458647713&tin=02508201610067®Number=0000000000092660&sum=40000 [14:42:19]written 0, free lines is 4095 [14:42:19]OFD Sender: Processing packet 118802 [packets to send 86, broken 85] [14:42:19]ProducePacketName [14:42:19]name=ofd_packets/00118802 [14:42:19]OFD Sender: To server: pG, [14:42:19]CommunicateWithHost lk.salyk.kg:30040 [14:42:19]ConnectInit lk.salyk.kg [14:42:19]Connected sock=10 [14:42:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5C 01 07 01 A2 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 4F AA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 D0 01 00 35 04 06 00 99 12 AB 13 92 A1 A0 47 03 F5 5D D5 21 B5 [14:42:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AB 2B 47 00 01 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 D0 01 00 F4 03 04 00 DD 57 A7 66 B6 04 01 00 00 99 48 25 E9 F5 73 FB F4 [14:42:19]CommunicateWithHost err = 0 [14:42:19]CheckOFDResponse [14:42:19]1017 (14) - 77093643461234 [14:42:19]1041 (16) - 0000000000874939 [14:42:19]1040 (4) - 118802 [14:42:19]1012 (4) - 29.07.2024 08:50 [14:42:19]1206 (1) - 0 [14:42:19]OFD Sender: Remove packet 118802 [14:42:19]ProducePacketName [14:42:19]name=ofd_packets/00118802 [14:42:19]NVStorageDeleteData [14:42:20]Write to MH i2c: 01 00 00 19 5D 76 [14:42:20]Write i2c OK [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: 01 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: 01 07 00 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: 01 07 00 19 5D 00 00 00 00 00 D3 0C 5C [14:42:20]RasterBufferAndPrint [14:42:20]line [14:42:20]line [14:42:20]line [14:42:20]line [14:42:20]line [14:42:20]written 0, free lines is 3290 [14:42:20]MH_Cut [14:42:20]Write to MH i2c: D1 01 00 20 5D 01 4F [14:42:20]Write i2c OK [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: D1 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: D1 01 00 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: D1 01 00 20 5D 00 4E [14:42:20]Write to MH i2c: 01 00 00 21 5D 7E [14:42:20]Write i2c OK [14:42:20]MH_I2C_Read... [14:42:20]OFD Sender: No OFD packet to send [14:42:20]*** Cut start [14:42:20]*** Partial cut [14:42:20]*** CUTSNS_PIN = 1 [14:42:20]*** CUTSNS_PIN = 0 [14:42:21]*** Brake cut motor [14:42:21]Read from MH i2c: 01 [14:42:21]MH_I2C_Read... [14:42:21]*** Stop cut motor [14:42:21]*** Cut end [14:42:21]Read from MH i2c: 01 07 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: 01 07 00 21 5D 00 00 00 00 00 FF 0F 93 [14:42:21]process_action close_receipt done [14:42:21]requested_data is exist [14:42:21]produce_requested_data [14:42:21]requested_item fm.sn is exist - process it [14:42:21]wFMCommunicate request_size=4 [14:42:21]MH_SAM_APDU [14:42:21]CAPDU: 80 11 00 00 [14:42:21]Write to MH i2c: E2 08 00 22 5D 80 11 00 00 00 00 00 00 F9 [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:21]Read from MH i2c: E2 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 17 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 17 00 22 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 54 [14:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:42:21]wFMCommunicate OK [14:42:21]requested_item fd.num is exist - process it [14:42:21]SAM_PROTO_GetFieldsCounters [14:42:21]wFMCommunicate request_size=4 [14:42:21]MH_SAM_APDU [14:42:21]CAPDU: 80 13 00 00 [14:42:21]Write to MH i2c: E2 08 00 23 5D 80 13 00 00 00 00 00 00 FC [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:21]Read from MH i2c: E2 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 62 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 62 00 23 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 12 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [14:42:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 12 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:21]wFMCommunicate OK [14:42:21]SAM_PROTO_GetFieldsCounters done [14:42:21]requested_item shift.num is exist - process it [14:42:21]requested_item shift.opened is exist - process it [14:42:21]req_shift_opened [14:42:21]FM_GetShiftState [14:42:21]SAM_PROTO_GetShiftState [14:42:21]wFMCommunicate request_size=4 [14:42:21]MH_SAM_APDU [14:42:21]CAPDU: 80 13 01 00 [14:42:21]Write to MH i2c: E2 08 00 24 5D 80 13 01 00 00 00 00 00 FE [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 [14:42:21]MH_I2C_Read... [14:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:21]Read from MH i2c: E2 0E 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 0E 00 24 5D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 2C [14:42:21]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [14:42:21]wFMCommunicate OK [14:42:21]SAM_PROTO_GetShiftState done [14:42:21]FM_GetShiftState done [14:42:21]req_shift_opened done [14:42:21]requested_item shift.open_date is exist - process it [14:42:21]req_shift_open_date [14:42:21]req_shift_open_date done [14:42:21]produce_requested_data done [14:42:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118802,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [14:42:21]process_action_free close_receipt [14:42:21]json_value_free [14:42:21]json_value_free done [14:42:21]process_json_proto returns [14:42:21]Send response to host [14:42:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118802,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [14:42:21]free response buf [14:42:21]execute_script done [14:42:21]execute_script returns [14:42:21]free content buf [14:42:21]Sock 9.Close socket [14:42:21]Sock 9.Thread stoped [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:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:45]OFD Sender: No OFD packet to send [14:44:50]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:45:00]OFD Sender: No OFD packet to send [14:45:05]OFD Sender: No OFD packet to send [14:45:10]OFD Sender: No OFD packet to send [14:45:15]OFD Sender: No OFD packet to send [14:45:20]OFD Sender: No OFD packet to send [14:45:25]OFD Sender: No OFD packet to send [14:45:30]OFD Sender: No OFD packet to send [14:45:35]OFD Sender: No OFD packet to send [14:45:40]OFD Sender: No OFD packet to send [14:45:45]OFD Sender: No OFD packet to send [14:45:50]OFD Sender: No OFD packet to send [14:45:55]OFD Sender: No OFD packet to send [14:46:00]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:02]accept exits with 7 [14:47:02]New connection [14:47:02]New thread 3067383140 created [14:47:02]Thread 3067239780 joined [14:47:02]Waiting for new connection... [14:47:02] Sock 7.Parse request [14:47:02]Sock 7.Check first char [14:47:02]Sock 7.First char is OK [14:47:02]request: POST /json_proto HTTP/1.0 [14:47:02]Method: POST [14:47:02]URL: /json_proto [14:47:02]Method is POST - this is cgi request [14:47:02]url: /json_proto [14:47:02]query_string will be loaded in cgi processing [14:47:02]execute_cgi json_proto POST (null) [14:47:02]execute_cgi path=json_proto method=POST [14:47:02]POST find Content-Length [14:47:02]Host: 172.17.45.7:8080 [14:47:02]Content-Length: 677 [14:47:02]Content-Type: application/json [14:47:02] [14:47:02]POST finish read [14:47:02]Found Content-Length = 677 [14:47:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 9.000, "sum" : 610.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:02]execute_script... [14:47: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)949689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 9.000, "sum" : 610.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:02]POST & json_proto [14:47:02]process_json_proto [14:47:02]json parsed OK: [14:47:02]protocol is kg_v1.0 [14:47:02]action value=close_receipt [14:47:02]process_action close_receipt [14:47:02]cmd_close_receipt [14:47:02]MH_GetDate [14:47:02]Write to MH i2c: F0 00 00 25 5D 71 [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: F0 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: F0 09 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: F0 09 00 25 5D 00 6C AB A7 66 90 0F 3E 66 E1 [14:47:02]GetLastDocTimeStamp 1722264143 [14:47:02]current date 1722264428 [14:47:02]FM_GetShiftState [14:47:02]SAM_PROTO_GetShiftState [14:47:02]wFMCommunicate request_size=4 [14:47:02]MH_SAM_APDU [14:47:02]CAPDU: 80 13 01 00 [14:47:02]Write to MH i2c: E2 08 00 26 5D 80 13 01 00 00 00 00 00 00 [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:02]Read from MH i2c: E2 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 0E 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 0E 00 26 5D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 2E [14:47:02]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [14:47:02]wFMCommunicate OK [14:47:02]SAM_PROTO_GetShiftState done [14:47:02]FM_GetShiftState done [14:47:02]opened in 1722211641 [14:47:02]opened+sec_in_day 1722298041 [14:47:02]quantity*price = 61020 [14:47:02]sum+1 = 61021 [14:47:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 610.00 Внесено: 610.00 СДАЧА: 0.00 НСП 1% : 5.40 НДС 12% : 64.80 Наличными: 610.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 179 29.07.2024 14:47 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118803 ФПД: 120527290647840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T144708&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118803&fm=120527290647840&tin=02508201610067®Number=0000000000092660&sum=61000 [14:47:03]StoreToDocumentArchive [14:47:03]shift 434 fd 118803 [14:47:03]save to /storage/0434/doc_00118803 [14:47:03]save last doc name /storage/0434/doc_00118803 to /storage/kkm_last_doc_name [14:47:03]save OK [14:47:03]Clear old archive folders... [14:47:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:03]tlvbuf is 01E98130 [14:47:03]SAM_PROTO_ClearQueue [14:47:03]wFMCommunicate request_size=4 [14:47:03]MH_SAM_APDU [14:47:03]CAPDU: 80 09 00 00 [14:47:03]Write to MH i2c: E2 08 00 33 5D 80 09 00 00 00 00 00 00 02 [14:47:03]Write i2c OK [14:47:03]MH_I2C_Read... [14:47:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:03]Read from MH i2c: E2 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 03 00 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 03 00 33 5D 00 90 00 04 [14:47:03]RAPDU: 90 00 [14:47:03]wFMCommunicate OK [14:47:03]SAM_PROTO_ClearQueue done [14:47:03]KKMCreateOFDPacket [14:47:03]OFDProtocolAddRootSTLVToBuf [14:47:03]FM_MakeSignedData [14:47:03]FM_MakeSignedData [14:47:03]SAM_PROTO_SignData [14:47:03]wFMCommunicate request_size=4 [14:47:03]MH_SAM_APDU [14:47:03]CAPDU: 80 0D 01 02 [14:47:03]Write to MH i2c: E2 08 00 34 5D 80 0D 01 02 00 00 00 00 0A [14:47:03]Write i2c OK [14:47:03]MH_I2C_Read... [14:47:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:03]Read from MH i2c: E2 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 03 00 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 03 00 34 5D 00 90 00 05 [14:47:03]RAPDU: 90 00 [14:47:03]wFMCommunicate OK [14:47:03]wFMCommunicate request_size=255 [14:47:03]MH_SAM_APDU [14:47: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 28 23 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5C EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 6C AB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 D0 01 00 35 04 06 00 6D [14:47:03]Write to MH i2c: E2 02 01 35 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 28 23 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5C EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 6C AB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 D0 01 00 35 04 06 00 6D 00 00 12 [14:47:03]Write i2c OK [14:47:03]MH_I2C_Read... [14:47:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:03]Read from MH i2c: E2 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 03 00 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 03 00 35 5D 00 90 00 06 [14:47:03]RAPDU: 90 00 [14:47:03]wFMCommunicate OK [14:47:03]wFMCommunicate request_size=10 [14:47:03]MH_SAM_APDU [14:47:03]CAPDU: 80 0D 02 02 05 9E 72 58 45 20 [14:47:03]Write to MH i2c: E2 0D 00 36 5D 80 0D 02 02 05 00 9E 72 58 45 20 00 00 E4 [14:47:03]Write i2c OK [14:47:03]MH_I2C_Read... [14:47:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:03]Read from MH i2c: E2 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 03 00 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 03 00 36 5D 00 90 00 07 [14:47:03]RAPDU: 90 00 [14:47:03]wFMCommunicate OK [14:47:03]wFMCommunicate request_size=4 [14:47:03]MH_SAM_APDU [14:47:03]CAPDU: 80 0D 03 02 [14:47:03]Write to MH i2c: E2 08 00 37 5D 80 0D 03 02 00 00 00 00 0F [14:47:03]Write i2c OK [14:47:03]MH_I2C_Read... [14:47:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:03]Read from MH i2c: E2 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 0B 00 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 0B 00 37 5D 00 FF B1 D8 1A 40 6C 13 BB 90 00 2C [14:47:03]RAPDU: FF B1 D8 1A 40 6C 13 BB 90 00 [14:47:03]wFMCommunicate OK [14:47:03]SAM_PROTO_SignData done [14:47:03]FM_MakeSignedData done [14:47:03]CreateOFDProtocolMessage [14:47:03]wFMCommunicate request_size=4 [14:47:03]MH_SAM_APDU [14:47:03]CAPDU: 80 11 00 00 [14:47:03]Write to MH i2c: E2 08 00 38 5D 80 11 00 00 00 00 00 00 0F [14:47:03]Write i2c OK [14:47:03]MH_I2C_Read... [14:47:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:03]Read from MH i2c: E2 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 17 00 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 17 00 38 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6A [14:47:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:47:03]wFMCommunicate OK [14:47:03]CreateOFDProtocolMessage done [14:47:03]OFDSenderStorePacket 118803 [14:47:03]StoreOFDPacket docnum=118803 [14:47:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BC 06 07 01 3F 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5C EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 6C AB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 D0 01 00 35 04 06 00 6D 9E 72 58 45 20 FF B1 D8 1A 40 6C 13 BB [14:47:03]CheckFolder [14:47:03]dirname=/storage/ofd_packets [14:47:03]CheckFolder done [14:47:03]ProducePacketName [14:47:03]name=ofd_packets/00118803 [14:47:03]NVStorageSaveData ofd_packets/00118803 [14:47:03]File name is /storage/ofd_packets/00118803 [14:47:03]Write 301 bytes [14:47:03]NVStorageSaveData done [14:47:03]OFDSenderStorePacket done [14:47:03]KKMCreateOFDPacket done [14:47:03]NVStorageSaveData kkm_last_timestamp [14:47:03]File name is /storage/kkm_last_timestamp [14:47:03]Write 4 bytes [14:47:03]NVStorageSaveData done [14:47:03]ExternCall_PrintAddStr [14:47:03]wPrintStart [14:47:03]Write to MH i2c: 01 00 00 39 5D 96 [14:47:03]Write i2c OK [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: 01 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: 01 07 00 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: 01 07 00 39 5D 00 00 00 00 00 FF 0F AB [14:47:03]RasterBufferAndPrint [14:47:03]line Счет N : (1)949689 [14:47:03]line ИНН: 02508201610067 [14:47:03]line Контрольно-Кассовый Чек [14:47:03]line ПРОДАЖА [14:47:03]line ТРК (МРК, ГНК) : 41 [14:47:03]line Товар: 2710124130 [14:47:03]line Аи-92-К-4 [14:47:03]line 9.000 * 67.80 [14:47:03]line = 610.20 [14:47:03]line НДС 12% НСП 1% [14:47:03]line > о реализуемом товаре [14:47:03]line ОКРУГЛЕНИЕ: -0.20 [14:47:03]line ИТОГО: 610.00 [14:47:03]line Внесено: 610.00 [14:47:03]line СДАЧА: 0.00 [14:47:03]line НСП 1% : 5.40 [14:47:03]line НДС 12% : 64.80 [14:47:03]line Наличными: 610.00 [14:47:03]line Безнал.: 0.00 [14:47:03]line Место: АЗС № 134 "Партнер Нефть" [14:47:03]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:47:03]line СНО: Общий режим [14:47:03]line Чек 179 29.07.2024 14:47 [14:47:03]line Смена: 434 ФФД: 1.0 [14:47:03]line ЗНМ: 0300000044 [14:47:03]line РНМ: 0000000000092660 [14:47:03]line Версия ККМ: 001 [14:47:03]line ФМ: 0000000000874939 [14:47:03]line ФД: 118803 [14:47:03]line ФПД: 120527290647840 [14:47:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T144708&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118803&fm=120527290647840&tin=02508201610067®Number=0000000000092660&sum=61000 [14:47:04]written 0, free lines is 4095 [14:47:04]OFD Sender: Processing packet 118803 [packets to send 86, broken 85] [14:47:04]ProducePacketName [14:47:04]name=ofd_packets/00118803 [14:47:04]OFD Sender: To server: pG, [14:47:04]CommunicateWithHost lk.salyk.kg:30040 [14:47:04]ConnectInit lk.salyk.kg [14:47:04]Connected sock=10 [14:47:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BC 06 07 01 3F 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5C EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 6C AB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 D0 01 00 35 04 06 00 6D 9E 72 58 45 20 FF B1 D8 1A 40 6C 13 BB [14:47:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6F 5B 47 00 6C 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 34 39 33 39 10 04 04 00 13 D0 01 00 F4 03 04 00 F9 58 A7 66 B6 04 01 00 00 7A 7F B4 E9 F7 D7 B7 06 [14:47:04]CommunicateWithHost err = 0 [14:47:04]CheckOFDResponse [14:47:04]1017 (14) - 77093643461234 [14:47:04]1041 (16) - 0000000000874939 [14:47:04]1040 (4) - 118803 [14:47:04]1012 (4) - 29.07.2024 08:55 [14:47:04]1206 (1) - 0 [14:47:04]OFD Sender: Remove packet 118803 [14:47:04]ProducePacketName [14:47:04]name=ofd_packets/00118803 [14:47:04]NVStorageDeleteData [14:47:04]Write to MH i2c: 01 00 00 63 5D C0 [14:47:04]Write i2c OK [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: 01 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: 01 07 00 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: 01 07 00 63 5D 00 00 00 00 00 EB 0C BE [14:47:04]RasterBufferAndPrint [14:47:04]line [14:47:04]line [14:47:04]line [14:47:04]line [14:47:04]line [14:47:04]written 0, free lines is 3314 [14:47:04]MH_Cut [14:47:04]Write to MH i2c: D1 01 00 6A 5D 01 99 [14:47:04]Write i2c OK [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: D1 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: D1 01 00 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: D1 01 00 6A 5D 00 98 [14:47:04]Write to MH i2c: 01 00 00 6B 5D C8 [14:47:04]Write i2c OK [14:47:04]MH_I2C_Read... [14:47:04]OFD Sender: No OFD packet to send [14:47:05]*** Cut start [14:47:05]*** Partial cut [14:47:05]*** CUTSNS_PIN = 1 [14:47:05]*** CUTSNS_PIN = 0 [14:47:05]*** Brake cut motor [14:47:05]Read from MH i2c: 01 [14:47:05]MH_I2C_Read... [14:47:05]*** Stop cut motor [14:47:05]*** Cut end [14:47:05]Read from MH i2c: 01 07 00 [14:47:05]MH_I2C_Read... [14:47:05]Read from MH i2c: 01 07 00 6B 5D 00 00 00 00 00 FF 0F DD [14:47:05]process_action close_receipt done [14:47:05]requested_data is exist [14:47:05]produce_requested_data [14:47:05]requested_item fm.sn is exist - process it [14:47:05]wFMCommunicate request_size=4 [14:47:05]MH_SAM_APDU [14:47:05]CAPDU: 80 11 00 00 [14:47:05]Write to MH i2c: E2 08 00 6C 5D 80 11 00 00 00 00 00 00 43 [14:47:05]Write i2c OK [14:47:05]MH_I2C_Read... [14:47:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:05]Read from MH i2c: E2 [14:47:05]MH_I2C_Read... [14:47:05]Read from MH i2c: E2 17 00 [14:47:05]MH_I2C_Read... [14:47:05]Read from MH i2c: E2 17 00 6C 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9E [14:47:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:47:05]wFMCommunicate OK [14:47:05]requested_item fd.num is exist - process it [14:47:05]SAM_PROTO_GetFieldsCounters [14:47:05]wFMCommunicate request_size=4 [14:47:05]MH_SAM_APDU [14:47:05]CAPDU: 80 13 00 00 [14:47:05]Write to MH i2c: E2 08 00 6D 5D 80 13 00 00 00 00 00 00 46 [14:47:05]Write i2c OK [14:47:05]MH_I2C_Read... [14:47:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:06]Read from MH i2c: E2 [14:47:06]MH_I2C_Read... [14:47:06]Read from MH i2c: E2 62 00 [14:47:06]MH_I2C_Read... [14:47:06]Read from MH i2c: E2 62 00 6D 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 13 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [14:47: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 13 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:06]wFMCommunicate OK [14:47:06]SAM_PROTO_GetFieldsCounters done [14:47:06]requested_item shift.num is exist - process it [14:47:06]requested_item shift.opened is exist - process it [14:47:06]req_shift_opened [14:47:06]FM_GetShiftState [14:47:06]SAM_PROTO_GetShiftState [14:47:06]wFMCommunicate request_size=4 [14:47:06]MH_SAM_APDU [14:47:06]CAPDU: 80 13 01 00 [14:47:06]Write to MH i2c: E2 08 00 6E 5D 80 13 01 00 00 00 00 00 48 [14:47:06]Write i2c OK [14:47:06]MH_I2C_Read... [14:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:06]Read from MH i2c: E2 [14:47:06]MH_I2C_Read... [14:47:06]Read from MH i2c: E2 0E 00 [14:47:06]MH_I2C_Read... [14:47:06]Read from MH i2c: E2 0E 00 6E 5D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 76 [14:47:06]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [14:47:06]wFMCommunicate OK [14:47:06]SAM_PROTO_GetShiftState done [14:47:06]FM_GetShiftState done [14:47:06]req_shift_opened done [14:47:06]requested_item shift.open_date is exist - process it [14:47:06]req_shift_open_date [14:47:06]req_shift_open_date done [14:47:06]produce_requested_data done [14:47:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118803,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [14:47:06]process_action_free close_receipt [14:47:06]json_value_free [14:47:06]json_value_free done [14:47:06]process_json_proto returns [14:47:06]Send response to host [14:47:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118803,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [14:47:06]free response buf [14:47:06]execute_script done [14:47:06]execute_script returns [14:47:06]free content buf [14:47:06]Sock 7.Close socket [14:47:06]Sock 7.Thread stoped [14:47:09]OFD Sender: No OFD packet to send [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:54]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:48:04]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:20]OFD Sender: No OFD packet to send [14:48:25]OFD Sender: No OFD packet to send [14:48:30]OFD Sender: No OFD packet to send [14:48:35]OFD Sender: No OFD packet to send [14:48:40]OFD Sender: No OFD packet to send [14:48:45]OFD Sender: No OFD packet to send [14:48:50]OFD Sender: No OFD packet to send [14:48:55]OFD Sender: No OFD packet to send [14:49:00]OFD Sender: No OFD packet to send [14:49:05]OFD Sender: No OFD packet to send [14:49:10]OFD Sender: No OFD packet to send [14:49:15]OFD Sender: No OFD packet to send [14:49:20]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49:45]OFD Sender: No OFD packet to send [14:49:50]OFD Sender: No OFD packet to send [14:49:55]OFD Sender: No OFD packet to send [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:40]accept exits with 9 [14:53:40]New connection [14:53:40]New thread 3067239780 created [14:53:40]Thread 3067383140 joined [14:53:40]Waiting for new connection... [14:53:40] Sock 9.Parse request [14:53:40]Sock 9.Check first char [14:53:40]Sock 9.First char is OK [14:53:40]request: POST /json_proto HTTP/1.0 [14:53:40]Method: POST [14:53:40]URL: /json_proto [14:53:40]Method is POST - this is cgi request [14:53:40]url: /json_proto [14:53:40]query_string will be loaded in cgi processing [14:53:40]execute_cgi json_proto POST (null) [14:53:40]execute_cgi path=json_proto method=POST [14:53:40]POST find Content-Length [14:53:40]Host: 172.17.45.7:8080 [14:53:40]Content-Length: 682 [14:53:40]Content-Type: application/json [14:53:40] [14:53:40]POST finish read [14:53:40]Found Content-Length = 682 [14:53:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:40]execute_script... [14:53:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:40]POST & json_proto [14:53:40]process_json_proto [14:53:40]json parsed OK: [14:53:40]protocol is kg_v1.0 [14:53:40]action value=close_receipt [14:53:40]process_action close_receipt [14:53:40]cmd_close_receipt [14:53:40]MH_GetDate [14:53:40]Write to MH i2c: F0 00 00 6F 5D BB [14:53:40]Write i2c OK [14:53:40]MH_I2C_Read... [14:53:40]Read from MH i2c: F0 [14:53:40]MH_I2C_Read... [14:53:40]Read from MH i2c: F0 09 00 [14:53:40]MH_I2C_Read... [14:53:40]Read from MH i2c: F0 09 00 6F 5D 00 FA AC A7 66 90 0F 3E 66 BA [14:53:40]GetLastDocTimeStamp 1722264428 [14:53:40]current date 1722264826 [14:53:40]FM_GetShiftState [14:53:40]SAM_PROTO_GetShiftState [14:53:40]wFMCommunicate request_size=4 [14:53:40]MH_SAM_APDU [14:53:40]CAPDU: 80 13 01 00 [14:53:40]Write to MH i2c: E2 08 00 70 5D 80 13 01 00 00 00 00 00 4A [14:53:40]Write i2c OK [14:53:40]MH_I2C_Read... [14:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:40]Read from MH i2c: E2 [14:53:40]MH_I2C_Read... [14:53:40]Read from MH i2c: E2 0E 00 [14:53:40]MH_I2C_Read... [14:53:40]Read from MH i2c: E2 0E 00 70 5D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 78 [14:53:40]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [14:53:40]wFMCommunicate OK [14:53:40]SAM_PROTO_GetShiftState done [14:53:40]FM_GetShiftState done [14:53:40]opened in 1722211641 [14:53:40]opened+sec_in_day 1722298041 [14:53:40]quantity*price = 100005 [14:53:40]sum+1 = 100006 [14:53:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 180 29.07.2024 14:53 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118804 ФПД: 98719043242330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T145346&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118804&fm=98719043242330&tin=02508201610067®Number=0000000000092660&sum=100000 [14:53:41]StoreToDocumentArchive [14:53:41]shift 434 fd 118804 [14:53:41]save to /storage/0434/doc_00118804 [14:53:41]save last doc name /storage/0434/doc_00118804 to /storage/kkm_last_doc_name [14:53:41]save OK [14:53:41]Clear old archive folders... [14:53:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:41]tlvbuf is 01F33D50 [14:53:41]SAM_PROTO_ClearQueue [14:53:41]wFMCommunicate request_size=4 [14:53:41]MH_SAM_APDU [14:53:41]CAPDU: 80 09 00 00 [14:53:41]Write to MH i2c: E2 08 00 7D 5D 80 09 00 00 00 00 00 00 4C [14:53:41]Write i2c OK [14:53:41]MH_I2C_Read... [14:53:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:42]Read from MH i2c: E2 [14:53:42]MH_I2C_Read... [14:53:42]Read from MH i2c: E2 03 00 [14:53:42]MH_I2C_Read... [14:53:42]Read from MH i2c: E2 03 00 7D 5D 00 90 00 4E [14:53:42]RAPDU: 90 00 [14:53:42]wFMCommunicate OK [14:53:42]SAM_PROTO_ClearQueue done [14:53:42]KKMCreateOFDPacket [14:53:42]OFDProtocolAddRootSTLVToBuf [14:53:42]FM_MakeSignedData [14:53:42]FM_MakeSignedData [14:53:42]SAM_PROTO_SignData [14:53:42]wFMCommunicate request_size=4 [14:53:42]MH_SAM_APDU [14:53:42]CAPDU: 80 0D 01 02 [14:53:42]Write to MH i2c: E2 08 00 7E 5D 80 0D 01 02 00 00 00 00 54 [14:53:42]Write i2c OK [14:53:42]MH_I2C_Read... [14:53:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:42]Read from MH i2c: E2 [14:53:42]MH_I2C_Read... [14:53:42]Read from MH i2c: E2 03 00 [14:53:42]MH_I2C_Read... [14:53:42]Read from MH i2c: E2 03 00 7E 5D 00 90 00 4F [14:53:42]RAPDU: 90 00 [14:53:42]wFMCommunicate OK [14:53:42]wFMCommunicate request_size=255 [14:53:42]MH_SAM_APDU [14:53:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 FA AC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 D0 01 00 35 04 06 00 59 [14:53:42]Write to MH i2c: E2 02 01 7F 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 FA AC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 D0 01 00 35 04 06 00 59 00 00 BF [14:53:42]Write i2c OK [14:53:42]MH_I2C_Read... [14:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:42]Read from MH i2c: E2 [14:53:42]MH_I2C_Read... [14:53:42]Read from MH i2c: E2 03 00 [14:53:42]MH_I2C_Read... [14:53:42]Read from MH i2c: E2 03 00 7F 5D 00 90 00 50 [14:53:42]RAPDU: 90 00 [14:53:42]wFMCommunicate OK [14:53:42]wFMCommunicate request_size=10 [14:53:42]MH_SAM_APDU [14:53:42]CAPDU: 80 0D 02 02 05 C8 D1 81 49 5A [14:53:42]Write to MH i2c: E2 0D 00 80 5D 80 0D 02 02 05 00 C8 D1 81 49 5A 00 00 1E [14:53:42]Write i2c OK [14:53:42]MH_I2C_Read... [14:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:42]Read from MH i2c: E2 [14:53:42]MH_I2C_Read... [14:53:42]Read from MH i2c: E2 03 00 [14:53:42]MH_I2C_Read... [14:53:42]Read from MH i2c: E2 03 00 80 5D 00 90 00 51 [14:53:42]RAPDU: 90 00 [14:53:42]wFMCommunicate OK [14:53:42]wFMCommunicate request_size=4 [14:53:42]MH_SAM_APDU [14:53:42]CAPDU: 80 0D 03 02 [14:53:42]Write to MH i2c: E2 08 00 81 5D 80 0D 03 02 00 00 00 00 59 [14:53:42]Write i2c OK [14:53:42]MH_I2C_Read... [14:53:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:42]Read from MH i2c: E2 [14:53:42]MH_I2C_Read... [14:53:42]Read from MH i2c: E2 0B 00 [14:53:42]MH_I2C_Read... [14:53:42]Read from MH i2c: E2 0B 00 81 5D 00 0B 1C 1D 71 44 12 C2 32 90 00 59 [14:53:42]RAPDU: 0B 1C 1D 71 44 12 C2 32 90 00 [14:53:42]wFMCommunicate OK [14:53:42]SAM_PROTO_SignData done [14:53:42]FM_MakeSignedData done [14:53:42]CreateOFDProtocolMessage [14:53:42]wFMCommunicate request_size=4 [14:53:42]MH_SAM_APDU [14:53:42]CAPDU: 80 11 00 00 [14:53:42]Write to MH i2c: E2 08 00 82 5D 80 11 00 00 00 00 00 00 59 [14:53:42]Write i2c OK [14:53:42]MH_I2C_Read... [14:53:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:42]Read from MH i2c: E2 [14:53:42]MH_I2C_Read... [14:53:42]Read from MH i2c: E2 17 00 [14:53:42]MH_I2C_Read... [14:53:42]Read from MH i2c: E2 17 00 82 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B4 [14:53:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:53:42]wFMCommunicate OK [14:53:42]CreateOFDProtocolMessage done [14:53:42]OFDSenderStorePacket 118804 [14:53:42]StoreOFDPacket docnum=118804 [14:53:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 99 57 07 01 75 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 FA AC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 D0 01 00 35 04 06 00 59 C8 D1 81 49 5A 0B 1C 1D 71 44 12 C2 32 [14:53:42]CheckFolder [14:53:42]dirname=/storage/ofd_packets [14:53:42]CheckFolder done [14:53:42]ProducePacketName [14:53:42]name=ofd_packets/00118804 [14:53:42]NVStorageSaveData ofd_packets/00118804 [14:53:42]File name is /storage/ofd_packets/00118804 [14:53:42]Write 301 bytes [14:53:42]NVStorageSaveData done [14:53:42]OFDSenderStorePacket done [14:53:42]KKMCreateOFDPacket done [14:53:42]NVStorageSaveData kkm_last_timestamp [14:53:42]File name is /storage/kkm_last_timestamp [14:53:42]Write 4 bytes [14:53:42]NVStorageSaveData done [14:53:42]ExternCall_PrintAddStr [14:53:42]wPrintStart [14:53:42]Write to MH i2c: 01 00 00 83 5D E0 [14:53:42]Write i2c OK [14:53:42]MH_I2C_Read... [14:53:42]Read from MH i2c: 01 [14:53:42]MH_I2C_Read... [14:53:42]Read from MH i2c: 01 07 00 [14:53:42]MH_I2C_Read... [14:53:42]Read from MH i2c: 01 07 00 83 5D 00 00 00 00 00 FF 0F F5 [14:53:42]RasterBufferAndPrint [14:53:42]line Счет N : (1)949690 [14:53:42]line ИНН: 02508201610067 [14:53:42]line Контрольно-Кассовый Чек [14:53:42]line ПРОДАЖА [14:53:42]line ТРК (МРК, ГНК) : 51 [14:53:42]line Товар: 2710124130 [14:53:42]line Аи-92-К-4 [14:53:42]line 14.750 * 67.80 [14:53:42]line = 1000.05 [14:53:42]line НДС 12% НСП 1% [14:53:42]line > о реализуемом товаре [14:53:42]line ОКРУГЛЕНИЕ: -0.05 [14:53:42]line ИТОГО: 1000.00 [14:53:42]line Внесено: 1000.00 [14:53:42]line СДАЧА: 0.00 [14:53:42]line НСП 1% : 8.85 [14:53:42]line НДС 12% : 106.20 [14:53:42]line Наличными: 1000.00 [14:53:42]line Безнал.: 0.00 [14:53:42]line Место: АЗС № 134 "Партнер Нефть" [14:53:42]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:53:42]line СНО: Общий режим [14:53:42]line Чек 180 29.07.2024 14:53 [14:53:42]line Смена: 434 ФФД: 1.0 [14:53:42]line ЗНМ: 0300000044 [14:53:42]line РНМ: 0000000000092660 [14:53:42]line Версия ККМ: 001 [14:53:42]line ФМ: 0000000000874939 [14:53:42]line ФД: 118804 [14:53:42]line ФПД: 98719043242330 [14:53:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T145346&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118804&fm=98719043242330&tin=02508201610067®Number=0000000000092660&sum=100000 [14:53:42]OFD Sender: Processing packet 118804 [packets to send 86, broken 85] [14:53:42]ProducePacketName [14:53:42]name=ofd_packets/00118804 [14:53:42]OFD Sender: To server: pG, [14:53:42]CommunicateWithHost lk.salyk.kg:30040 [14:53:42]ConnectInit lk.salyk.kg [14:53:42]written 0, free lines is 4095 [14:53:42]Connected sock=11 [14:53:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 99 57 07 01 75 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 FA AC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 D0 01 00 35 04 06 00 59 C8 D1 81 49 5A 0B 1C 1D 71 44 12 C2 32 [14:53:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CD 27 47 00 A9 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 D0 01 00 F4 03 04 00 88 5A A7 66 B6 04 01 00 00 0C 3A C0 08 BE 13 04 48 [14:53:43]CommunicateWithHost err = 0 [14:53:43]CheckOFDResponse [14:53:43]1017 (14) - 77093643461234 [14:53:43]1041 (16) - 0000000000874939 [14:53:43]1040 (4) - 118804 [14:53:43]1012 (4) - 29.07.2024 09:02 [14:53:43]1206 (1) - 0 [14:53:43]OFD Sender: Remove packet 118804 [14:53:43]ProducePacketName [14:53:43]name=ofd_packets/00118804 [14:53:43]NVStorageDeleteData [14:53:43]Write to MH i2c: 01 00 00 AD 5D 0A [14:53:43]Write i2c OK [14:53:43]MH_I2C_Read... [14:53:43]Read from MH i2c: 01 [14:53:43]MH_I2C_Read... [14:53:43]Read from MH i2c: 01 07 00 [14:53:43]MH_I2C_Read... [14:53:43]Read from MH i2c: 01 07 00 AD 5D 00 00 00 00 00 E4 0C 01 [14:53:43]RasterBufferAndPrint [14:53:43]line [14:53:43]line [14:53:43]line [14:53:43]line [14:53:43]line [14:53:43]written 0, free lines is 3304 [14:53:43]MH_Cut [14:53:43]Write to MH i2c: D1 01 00 B4 5D 01 E3 [14:53:43]Write i2c OK [14:53:43]MH_I2C_Read... [14:53:43]Read from MH i2c: D1 [14:53:43]MH_I2C_Read... [14:53:43]Read from MH i2c: D1 01 00 [14:53:43]MH_I2C_Read... [14:53:43]Read from MH i2c: D1 01 00 B4 5D 00 E2 [14:53:43]Write to MH i2c: 01 00 00 B5 5D 12 [14:53:43]Write i2c OK [14:53:43]MH_I2C_Read... [14:53:43]OFD Sender: No OFD packet to send [14:53:44]*** Cut start [14:53:44]*** Partial cut [14:53:44]*** CUTSNS_PIN = 1 [14:53:44]*** CUTSNS_PIN = 0 [14:53:44]*** Brake cut motor [14:53:44]Read from MH i2c: 01 [14:53:44]MH_I2C_Read... [14:53:44]*** Stop cut motor [14:53:44]*** Cut end [14:53:44]Read from MH i2c: 01 07 00 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: 01 07 00 B5 5D 00 00 00 00 00 FF 0F 27 [14:53:44]process_action close_receipt done [14:53:44]requested_data is exist [14:53:44]produce_requested_data [14:53:44]requested_item fm.sn is exist - process it [14:53:44]wFMCommunicate request_size=4 [14:53:44]MH_SAM_APDU [14:53:44]CAPDU: 80 11 00 00 [14:53:44]Write to MH i2c: E2 08 00 B6 5D 80 11 00 00 00 00 00 00 8D [14:53:44]Write i2c OK [14:53:44]MH_I2C_Read... [14:53:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:44]Read from MH i2c: E2 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 17 00 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 17 00 B6 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E8 [14:53:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:53:44]wFMCommunicate OK [14:53:44]requested_item fd.num is exist - process it [14:53:44]SAM_PROTO_GetFieldsCounters [14:53:44]wFMCommunicate request_size=4 [14:53:44]MH_SAM_APDU [14:53:44]CAPDU: 80 13 00 00 [14:53:44]Write to MH i2c: E2 08 00 B7 5D 80 13 00 00 00 00 00 00 90 [14:53:44]Write i2c OK [14:53:44]MH_I2C_Read... [14:53:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:44]Read from MH i2c: E2 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 62 00 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 62 00 B7 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 14 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [14:53: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 14 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:44]wFMCommunicate OK [14:53:44]SAM_PROTO_GetFieldsCounters done [14:53:44]requested_item shift.num is exist - process it [14:53:44]requested_item shift.opened is exist - process it [14:53:44]req_shift_opened [14:53:44]FM_GetShiftState [14:53:44]SAM_PROTO_GetShiftState [14:53:44]wFMCommunicate request_size=4 [14:53:44]MH_SAM_APDU [14:53:44]CAPDU: 80 13 01 00 [14:53:44]Write to MH i2c: E2 08 00 B8 5D 80 13 01 00 00 00 00 00 92 [14:53:44]Write i2c OK [14:53:44]MH_I2C_Read... [14:53:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:44]Read from MH i2c: E2 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 0E 00 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 0E 00 B8 5D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C0 [14:53:44]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [14:53:44]wFMCommunicate OK [14:53:44]SAM_PROTO_GetShiftState done [14:53:44]FM_GetShiftState done [14:53:44]req_shift_opened done [14:53:44]requested_item shift.open_date is exist - process it [14:53:44]req_shift_open_date [14:53:44]req_shift_open_date done [14:53:44]produce_requested_data done [14:53:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118804,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [14:53:44]process_action_free close_receipt [14:53:44]json_value_free [14:53:44]json_value_free done [14:53:44]process_json_proto returns [14:53:44]Send response to host [14:53:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118804,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [14:53:44]free response buf [14:53:44]execute_script done [14:53:44]execute_script returns [14:53:44]free content buf [14:53:44]Sock 9.Close socket [14:53:44]Sock 9.Thread stoped [14:53:48]OFD Sender: No OFD packet to send [14:53:53]OFD Sender: No OFD packet to send [14:53:58]OFD Sender: No OFD packet to send [14:54:03]OFD Sender: No OFD packet to send [14:54:08]OFD Sender: No OFD packet to send [14:54:13]OFD Sender: No OFD packet to send [14:54:18]OFD Sender: No OFD packet to send [14:54:23]OFD Sender: No OFD packet to send [14:54:28]OFD Sender: No OFD packet to send [14:54:33]OFD Sender: No OFD packet to send [14:54:38]OFD Sender: No OFD packet to send [14:54:43]OFD Sender: No OFD packet to send [14:54:48]OFD Sender: No OFD packet to send [14:54:53]OFD Sender: No OFD packet to send [14:54:58]OFD Sender: No OFD packet to send [14:55:03]OFD Sender: No OFD packet to send [14:55:08]OFD Sender: No OFD packet to send [14:55:13]OFD Sender: No OFD packet to send [14:55:18]OFD Sender: No OFD packet to send [14:55:23]OFD Sender: No OFD packet to send [14:55:28]OFD Sender: No OFD packet to send [14:55:33]OFD Sender: No OFD packet to send [14:55:38]OFD Sender: No OFD packet to send [14:55:43]OFD Sender: No OFD packet to send [14:55:48]OFD Sender: No OFD packet to send [14:55:53]OFD Sender: No OFD packet to send [14:55:58]OFD Sender: No OFD packet to send [14:56:03]OFD Sender: No OFD packet to send [14:56:08]OFD Sender: No OFD packet to send [14:56:13]OFD Sender: No OFD packet to send [14:56:18]OFD Sender: No OFD packet to send [14:56:23]OFD Sender: No OFD packet to send [14:56:28]OFD Sender: No OFD packet to send [14:56:33]OFD Sender: No OFD packet to send [14:56:38]OFD Sender: No OFD packet to send [14:56:43]OFD Sender: No OFD packet to send [14:56:48]OFD Sender: No OFD packet to send [14:56:53]OFD Sender: No OFD packet to send [14:56:58]OFD Sender: No OFD packet to send [14:57:03]OFD Sender: No OFD packet to send [14:57:08]OFD Sender: No OFD packet to send [14:57:09]accept exits with 7 [14:57:09]New connection [14:57:09]New thread 3067383140 created [14:57:09]Thread 3067239780 joined [14:57:09]Waiting for new connection... [14:57:09] Sock 7.Parse request [14:57:09]Sock 7.Check first char [14:57:09]Sock 7.First char is OK [14:57:09]request: POST /json_proto HTTP/1.0 [14:57:09]Method: POST [14:57:09]URL: /json_proto [14:57:09]Method is POST - this is cgi request [14:57:09]url: /json_proto [14:57:09]query_string will be loaded in cgi processing [14:57:09]execute_cgi json_proto POST (null) [14:57:09]execute_cgi path=json_proto method=POST [14:57:09]POST find Content-Length [14:57:09]Host: 172.17.45.7:8080 [14:57:09]Content-Length: 677 [14:57:09]Content-Type: application/json [14:57:09] [14:57:09]POST finish read [14:57:09]Found Content-Length = 677 [14:57:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:09]execute_script... [14:57:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:09]POST & json_proto [14:57:09]process_json_proto [14:57:09]json parsed OK: [14:57:09]protocol is kg_v1.0 [14:57:09]action value=close_receipt [14:57:09]process_action close_receipt [14:57:09]cmd_close_receipt [14:57:09]MH_GetDate [14:57:09]Write to MH i2c: F0 00 00 B9 5D 05 [14:57:09]Write i2c OK [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: F0 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: F0 09 00 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: F0 09 00 B9 5D 00 CC AD A7 66 90 0F 3E 66 D7 [14:57:09]GetLastDocTimeStamp 1722264826 [14:57:09]current date 1722265036 [14:57:09]FM_GetShiftState [14:57:09]SAM_PROTO_GetShiftState [14:57:09]wFMCommunicate request_size=4 [14:57:09]MH_SAM_APDU [14:57:09]CAPDU: 80 13 01 00 [14:57:09]Write to MH i2c: E2 08 00 BA 5D 80 13 01 00 00 00 00 00 94 [14:57:09]Write i2c OK [14:57:09]MH_I2C_Read... [14:57:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:09]Read from MH i2c: E2 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 0E 00 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 0E 00 BA 5D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C2 [14:57:09]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [14:57:09]wFMCommunicate OK [14:57:09]SAM_PROTO_GetShiftState done [14:57:09]FM_GetShiftState done [14:57:09]opened in 1722211641 [14:57:09]opened+sec_in_day 1722298041 [14:57:09]quantity*price = 50036 [14:57:09]sum+1 = 50037 [14:57:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 181 29.07.2024 14:57 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118805 ФПД: 220656268605572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T145716&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118805&fm=220656268605572&tin=02508201610067®Number=0000000000092660&sum=50000 [14:57:11]StoreToDocumentArchive [14:57:11]shift 434 fd 118805 [14:57:11]save to /storage/0434/doc_00118805 [14:57:11]save last doc name /storage/0434/doc_00118805 to /storage/kkm_last_doc_name [14:57:11]save OK [14:57:11]Clear old archive folders... [14:57:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:57:11]tlvbuf is 01F69BB0 [14:57:11]SAM_PROTO_ClearQueue [14:57:11]wFMCommunicate request_size=4 [14:57:11]MH_SAM_APDU [14:57:11]CAPDU: 80 09 00 00 [14:57:11]Write to MH i2c: E2 08 00 C7 5D 80 09 00 00 00 00 00 00 96 [14:57:11]Write i2c OK [14:57:11]MH_I2C_Read... [14:57:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:11]Read from MH i2c: E2 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: E2 03 00 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: E2 03 00 C7 5D 00 90 00 98 [14:57:11]RAPDU: 90 00 [14:57:11]wFMCommunicate OK [14:57:11]SAM_PROTO_ClearQueue done [14:57:11]KKMCreateOFDPacket [14:57:11]OFDProtocolAddRootSTLVToBuf [14:57:11]FM_MakeSignedData [14:57:11]FM_MakeSignedData [14:57:11]SAM_PROTO_SignData [14:57:11]wFMCommunicate request_size=4 [14:57:11]MH_SAM_APDU [14:57:11]CAPDU: 80 0D 01 02 [14:57:11]Write to MH i2c: E2 08 00 C8 5D 80 0D 01 02 00 00 00 00 9E [14:57:11]Write i2c OK [14:57:11]MH_I2C_Read... [14:57:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:11]Read from MH i2c: E2 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: E2 03 00 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: E2 03 00 C8 5D 00 90 00 99 [14:57:11]RAPDU: 90 00 [14:57:11]wFMCommunicate OK [14:57:11]wFMCommunicate request_size=255 [14:57:11]MH_SAM_APDU [14:57:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 CC AD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 15 D0 01 00 35 04 06 00 C8 [14:57:11]Write to MH i2c: E2 02 01 C9 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 CC AD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 15 D0 01 00 35 04 06 00 C8 00 00 BE [14:57:11]Write i2c OK [14:57:11]MH_I2C_Read... [14:57:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:11]Read from MH i2c: E2 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: E2 03 00 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: E2 03 00 C9 5D 00 90 00 9A [14:57:11]RAPDU: 90 00 [14:57:11]wFMCommunicate OK [14:57:11]wFMCommunicate request_size=10 [14:57:11]MH_SAM_APDU [14:57:11]CAPDU: 80 0D 02 02 05 AF 8A 81 F8 84 [14:57:11]Write to MH i2c: E2 0D 00 CA 5D 80 0D 02 02 05 00 AF 8A 81 F8 84 00 00 E1 [14:57:11]Write i2c OK [14:57:11]MH_I2C_Read... [14:57:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:11]Read from MH i2c: E2 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: E2 03 00 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: E2 03 00 CA 5D 00 90 00 9B [14:57:11]RAPDU: 90 00 [14:57:11]wFMCommunicate OK [14:57:11]wFMCommunicate request_size=4 [14:57:11]MH_SAM_APDU [14:57:11]CAPDU: 80 0D 03 02 [14:57:11]Write to MH i2c: E2 08 00 CB 5D 80 0D 03 02 00 00 00 00 A3 [14:57:11]Write i2c OK [14:57:11]MH_I2C_Read... [14:57:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:11]Read from MH i2c: E2 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: E2 0B 00 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: E2 0B 00 CB 5D 00 9E B2 5D DC DB EC 9D 85 90 00 16 [14:57:11]RAPDU: 9E B2 5D DC DB EC 9D 85 90 00 [14:57:11]wFMCommunicate OK [14:57:11]SAM_PROTO_SignData done [14:57:11]FM_MakeSignedData done [14:57:11]CreateOFDProtocolMessage [14:57:11]wFMCommunicate request_size=4 [14:57:11]MH_SAM_APDU [14:57:11]CAPDU: 80 11 00 00 [14:57:11]Write to MH i2c: E2 08 00 CC 5D 80 11 00 00 00 00 00 00 A3 [14:57:11]Write i2c OK [14:57:11]MH_I2C_Read... [14:57:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:11]Read from MH i2c: E2 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: E2 17 00 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: E2 17 00 CC 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FE [14:57:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:57:11]wFMCommunicate OK [14:57:11]CreateOFDProtocolMessage done [14:57:11]OFDSenderStorePacket 118805 [14:57:11]StoreOFDPacket docnum=118805 [14:57:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 85 B4 07 01 39 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 CC AD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 15 D0 01 00 35 04 06 00 C8 AF 8A 81 F8 84 9E B2 5D DC DB EC 9D 85 [14:57:11]CheckFolder [14:57:11]dirname=/storage/ofd_packets [14:57:11]CheckFolder done [14:57:11]ProducePacketName [14:57:11]name=ofd_packets/00118805 [14:57:11]NVStorageSaveData ofd_packets/00118805 [14:57:11]File name is /storage/ofd_packets/00118805 [14:57:11]Write 301 bytes [14:57:11]NVStorageSaveData done [14:57:11]OFDSenderStorePacket done [14:57:11]KKMCreateOFDPacket done [14:57:11]NVStorageSaveData kkm_last_timestamp [14:57:11]File name is /storage/kkm_last_timestamp [14:57:11]Write 4 bytes [14:57:11]NVStorageSaveData done [14:57:11]ExternCall_PrintAddStr [14:57:11]wPrintStart [14:57:11]Write to MH i2c: 01 00 00 CD 5D 2A [14:57:11]Write i2c OK [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: 01 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: 01 07 00 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: 01 07 00 CD 5D 00 00 00 00 00 FF 0F 3F [14:57:11]RasterBufferAndPrint [14:57:11]line Счет N : (1)949691 [14:57:11]line ИНН: 02508201610067 [14:57:11]line Контрольно-Кассовый Чек [14:57:11]line ПРОДАЖА [14:57:11]line ТРК (МРК, ГНК) : 51 [14:57:11]line Товар: 2710124130 [14:57:11]line Аи-92-К-4 [14:57:11]line 7.380 * 67.80 [14:57:11]line = 500.36 [14:57:11]line НДС 12% НСП 1% [14:57:11]line > о реализуемом товаре [14:57:11]line ОКРУГЛЕНИЕ: -0.36 [14:57:11]line ИТОГО: 500.00 [14:57:11]line Внесено: 500.00 [14:57:11]line СДАЧА: 0.00 [14:57:11]line НСП 1% : 4.43 [14:57:11]line НДС 12% : 53.14 [14:57:11]line Наличными: 500.00 [14:57:11]line Безнал.: 0.00 [14:57:11]line Место: АЗС № 134 "Партнер Нефть" [14:57:11]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:57:11]line СНО: Общий режим [14:57:11]line Чек 181 29.07.2024 14:57 [14:57:11]line Смена: 434 ФФД: 1.0 [14:57:11]line ЗНМ: 0300000044 [14:57:11]line РНМ: 0000000000092660 [14:57:11]line Версия ККМ: 001 [14:57:11]line ФМ: 0000000000874939 [14:57:11]line ФД: 118805 [14:57:11]line ФПД: 220656268605572 [14:57:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T145716&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118805&fm=220656268605572&tin=02508201610067®Number=0000000000092660&sum=50000 [14:57:11]written 0, free lines is 4095 [14:57:11]OFD Sender: Processing packet 118805 [packets to send 86, broken 85] [14:57:11]ProducePacketName [14:57:11]name=ofd_packets/00118805 [14:57:11]OFD Sender: To server: pG, [14:57:11]CommunicateWithHost lk.salyk.kg:30040 [14:57:11]ConnectInit lk.salyk.kg [14:57:12]Connected sock=10 [14:57:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 85 B4 07 01 39 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 CC AD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 15 D0 01 00 35 04 06 00 C8 AF 8A 81 F8 84 9E B2 5D DC DB EC 9D 85 [14:57:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6C D6 47 00 A0 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 15 D0 01 00 F4 03 04 00 59 5B A7 66 B6 04 01 00 00 E5 06 6D 5B 8F 09 E3 94 [14:57:12]CommunicateWithHost err = 0 [14:57:12]CheckOFDResponse [14:57:12]1017 (14) - 77093643461234 [14:57:12]1041 (16) - 0000000000874939 [14:57:12]1040 (4) - 118805 [14:57:12]1012 (4) - 29.07.2024 09:05 [14:57:12]1206 (1) - 0 [14:57:12]OFD Sender: Remove packet 118805 [14:57:12]ProducePacketName [14:57:12]name=ofd_packets/00118805 [14:57:12]NVStorageDeleteData [14:57:12]Write to MH i2c: 01 00 00 F7 5D 54 [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: 01 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: 01 07 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: 01 07 00 F7 5D 00 00 00 00 00 DC 0C 43 [14:57:12]RasterBufferAndPrint [14:57:12]line [14:57:12]line [14:57:12]line [14:57:12]line [14:57:12]line [14:57:12]written 0, free lines is 3302 [14:57:12]MH_Cut [14:57:12]Write to MH i2c: D1 01 00 FE 5D 01 2D [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: D1 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: D1 01 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: D1 01 00 FE 5D 00 2C [14:57:12]Write to MH i2c: 01 00 00 FF 5D 5C [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]OFD Sender: No OFD packet to send [14:57:13]*** Cut start [14:57:13]*** Partial cut [14:57:13]*** CUTSNS_PIN = 1 [14:57:13]*** CUTSNS_PIN = 0 [14:57:13]*** Brake cut motor [14:57:13]Read from MH i2c: 01 [14:57:13]MH_I2C_Read... [14:57:13]*** Stop cut motor [14:57:13]*** Cut end [14:57:13]Read from MH i2c: 01 07 00 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: 01 07 00 FF 5D 00 00 00 00 00 FF 0F 71 [14:57:13]process_action close_receipt done [14:57:13]requested_data is exist [14:57:13]produce_requested_data [14:57:13]requested_item fm.sn is exist - process it [14:57:13]wFMCommunicate request_size=4 [14:57:13]MH_SAM_APDU [14:57:13]CAPDU: 80 11 00 00 [14:57:13]Write to MH i2c: E2 08 00 00 5E 80 11 00 00 00 00 00 00 D8 [14:57:13]Write i2c OK [14:57:13]MH_I2C_Read... [14:57:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:13]Read from MH i2c: E2 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: E2 17 00 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: E2 17 00 00 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 33 [14:57:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:57:13]wFMCommunicate OK [14:57:13]requested_item fd.num is exist - process it [14:57:13]SAM_PROTO_GetFieldsCounters [14:57:13]wFMCommunicate request_size=4 [14:57:13]MH_SAM_APDU [14:57:13]CAPDU: 80 13 00 00 [14:57:13]Write to MH i2c: E2 08 00 01 5E 80 13 00 00 00 00 00 00 DB [14:57:13]Write i2c OK [14:57:13]MH_I2C_Read... [14:57:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:13]Read from MH i2c: E2 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: E2 62 00 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: E2 62 00 01 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 15 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [14:57:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 15 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:13]wFMCommunicate OK [14:57:13]SAM_PROTO_GetFieldsCounters done [14:57:13]requested_item shift.num is exist - process it [14:57:13]requested_item shift.opened is exist - process it [14:57:13]req_shift_opened [14:57:13]FM_GetShiftState [14:57:13]SAM_PROTO_GetShiftState [14:57:13]wFMCommunicate request_size=4 [14:57:13]MH_SAM_APDU [14:57:13]CAPDU: 80 13 01 00 [14:57:13]Write to MH i2c: E2 08 00 02 5E 80 13 01 00 00 00 00 00 DD [14:57:13]Write i2c OK [14:57:13]MH_I2C_Read... [14:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:14]Read from MH i2c: E2 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: E2 0E 00 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: E2 0E 00 02 5E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 0B [14:57:14]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [14:57:14]wFMCommunicate OK [14:57:14]SAM_PROTO_GetShiftState done [14:57:14]FM_GetShiftState done [14:57:14]req_shift_opened done [14:57:14]requested_item shift.open_date is exist - process it [14:57:14]req_shift_open_date [14:57:14]req_shift_open_date done [14:57:14]produce_requested_data done [14:57:14]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118805,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [14:57:14]process_action_free close_receipt [14:57:14]json_value_free [14:57:14]json_value_free done [14:57:14]process_json_proto returns [14:57:14]Send response to host [14:57:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118805,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [14:57:14]free response buf [14:57:14]execute_script done [14:57:14]execute_script returns [14:57:14]free content buf [14:57:14]Sock 7.Close socket [14:57:14]Sock 7.Thread stoped [14:57:17]OFD Sender: No OFD packet to send [14:57:22]OFD Sender: No OFD packet to send [14:57:27]OFD Sender: No OFD packet to send [14:57:32]OFD Sender: No OFD packet to send [14:57:37]OFD Sender: No OFD packet to send [14:57:42]OFD Sender: No OFD packet to send [14:57:47]OFD Sender: No OFD packet to send [14:57:52]OFD Sender: No OFD packet to send [14:57:57]OFD Sender: No OFD packet to send [14:58:02]OFD Sender: No OFD packet to send [14:58:07]OFD Sender: No OFD packet to send [14:58:12]OFD Sender: No OFD packet to send [14:58:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:27]OFD Sender: No OFD packet to send [14:58:32]OFD Sender: No OFD packet to send [14:58:37]OFD Sender: No OFD packet to send [14:58:42]OFD Sender: No OFD packet to send [14:58:47]OFD Sender: No OFD packet to send [14:58:52]OFD Sender: No OFD packet to send [14:58:57]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:32]OFD Sender: No OFD packet to send [14:59:37]OFD Sender: No OFD packet to send [14:59:42]OFD Sender: No OFD packet to send [14:59:47]OFD Sender: No OFD packet to send [14:59:52]OFD Sender: No OFD packet to send [14:59:57]OFD Sender: No OFD packet to send [15:00:02]OFD Sender: No OFD packet to send [15:00:07]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:33]OFD Sender: No OFD packet to send [15:00:38]OFD Sender: No OFD packet to send [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:53]OFD Sender: No OFD packet to send [15:00:58]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]accept exits with 9 [15:01:28]New connection [15:01:28]New thread 3067239780 created [15:01:28]Thread 3067383140 joined [15:01:28]Waiting for new connection... [15:01:28] Sock 9.Parse request [15:01:28]Sock 9.Check first char [15:01:28]Sock 9.First char is OK [15:01:28]request: POST /json_proto HTTP/1.0 [15:01:28]Method: POST [15:01:28]URL: /json_proto [15:01:28]Method is POST - this is cgi request [15:01:28]url: /json_proto [15:01:28]query_string will be loaded in cgi processing [15:01:28]execute_cgi json_proto POST (null) [15:01:28]execute_cgi path=json_proto method=POST [15:01:28]POST find Content-Length [15:01:28]Host: 172.17.45.7:8080 [15:01:28]Content-Length: 677 [15:01:28]Content-Type: application/json [15:01:28] [15:01:28]POST finish read [15:01:28]Found Content-Length = 677 [15:01:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:28]execute_script... [15:01: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)949692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:28]POST & json_proto [15:01:28]process_json_proto [15:01:28]json parsed OK: [15:01:28]protocol is kg_v1.0 [15:01:28]action value=close_receipt [15:01:28]process_action close_receipt [15:01:28]cmd_close_receipt [15:01:28]MH_GetDate [15:01:28]Write to MH i2c: F0 00 00 03 5E 50 [15:01:28]Write i2c OK [15:01:28]MH_I2C_Read... [15:01:28]Read from MH i2c: F0 [15:01:28]MH_I2C_Read... [15:01:28]Read from MH i2c: F0 09 00 [15:01:28]MH_I2C_Read... [15:01:28]Read from MH i2c: F0 09 00 03 5E 00 CE AE A7 66 90 0F 3E 66 25 [15:01:28]GetLastDocTimeStamp 1722265036 [15:01:28]current date 1722265294 [15:01:28]FM_GetShiftState [15:01:28]SAM_PROTO_GetShiftState [15:01:28]wFMCommunicate request_size=4 [15:01:28]MH_SAM_APDU [15:01:28]CAPDU: 80 13 01 00 [15:01:28]Write to MH i2c: E2 08 00 04 5E 80 13 01 00 00 00 00 00 DF [15:01:28]Write i2c OK [15:01:28]MH_I2C_Read... [15:01:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:28]Read from MH i2c: E2 [15:01:28]MH_I2C_Read... [15:01:28]Read from MH i2c: E2 0E 00 [15:01:28]MH_I2C_Read... [15:01:28]Read from MH i2c: E2 0E 00 04 5E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 0D [15:01:28]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:01:28]wFMCommunicate OK [15:01:28]SAM_PROTO_GetShiftState done [15:01:28]FM_GetShiftState done [15:01:28]opened in 1722211641 [15:01:28]opened+sec_in_day 1722298041 [15:01:28]quantity*price = 50036 [15:01:28]sum+1 = 50037 [15:01:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 182 29.07.2024 15:01 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118806 ФПД: 142814219896462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T150134&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118806&fm=142814219896462&tin=02508201610067®Number=0000000000092660&sum=50000 [15:01:29]StoreToDocumentArchive [15:01:29]shift 434 fd 118806 [15:01:29]save to /storage/0434/doc_00118806 [15:01:29]save last doc name /storage/0434/doc_00118806 to /storage/kkm_last_doc_name [15:01:29]save OK [15:01:29]Clear old archive folders... [15:01:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:01:29]tlvbuf is 01ED61A0 [15:01:29]SAM_PROTO_ClearQueue [15:01:29]wFMCommunicate request_size=4 [15:01:29]MH_SAM_APDU [15:01:29]CAPDU: 80 09 00 00 [15:01:29]Write to MH i2c: E2 08 00 11 5E 80 09 00 00 00 00 00 00 E1 [15:01:29]Write i2c OK [15:01:29]MH_I2C_Read... [15:01:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:29]Read from MH i2c: E2 [15:01:29]MH_I2C_Read... [15:01:29]Read from MH i2c: E2 03 00 [15:01:29]MH_I2C_Read... [15:01:29]Read from MH i2c: E2 03 00 11 5E 00 90 00 E3 [15:01:29]RAPDU: 90 00 [15:01:29]wFMCommunicate OK [15:01:29]SAM_PROTO_ClearQueue done [15:01:29]KKMCreateOFDPacket [15:01:29]OFDProtocolAddRootSTLVToBuf [15:01:29]FM_MakeSignedData [15:01:29]FM_MakeSignedData [15:01:29]SAM_PROTO_SignData [15:01:29]wFMCommunicate request_size=4 [15:01:29]MH_SAM_APDU [15:01:29]CAPDU: 80 0D 01 02 [15:01:29]Write to MH i2c: E2 08 00 12 5E 80 0D 01 02 00 00 00 00 E9 [15:01:29]Write i2c OK [15:01:29]MH_I2C_Read... [15:01:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:29]Read from MH i2c: E2 [15:01:29]MH_I2C_Read... [15:01:29]Read from MH i2c: E2 03 00 [15:01:29]MH_I2C_Read... [15:01:29]Read from MH i2c: E2 03 00 12 5E 00 90 00 E4 [15:01:29]RAPDU: 90 00 [15:01:29]wFMCommunicate OK [15:01:29]wFMCommunicate request_size=255 [15:01:29]MH_SAM_APDU [15:01: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 CE AE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 16 D0 01 00 35 04 06 00 81 [15:01:29]Write to MH i2c: E2 02 01 13 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 CE AE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 16 D0 01 00 35 04 06 00 81 00 00 C7 [15:01:29]Write i2c OK [15:01:29]MH_I2C_Read... [15:01:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:29]Read from MH i2c: E2 [15:01:29]MH_I2C_Read... [15:01:29]Read from MH i2c: E2 03 00 [15:01:29]MH_I2C_Read... [15:01:29]Read from MH i2c: E2 03 00 13 5E 00 90 00 E5 [15:01:29]RAPDU: 90 00 [15:01:29]wFMCommunicate OK [15:01:29]wFMCommunicate request_size=10 [15:01:29]MH_SAM_APDU [15:01:29]CAPDU: 80 0D 02 02 05 E3 86 D8 86 8E [15:01:29]Write to MH i2c: E2 0D 00 14 5E 80 0D 02 02 05 00 E3 86 D8 86 8E 00 00 4B [15:01:29]Write i2c OK [15:01:29]MH_I2C_Read... [15:01:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:29]Read from MH i2c: E2 [15:01:29]MH_I2C_Read... [15:01:29]Read from MH i2c: E2 03 00 [15:01:29]MH_I2C_Read... [15:01:29]Read from MH i2c: E2 03 00 14 5E 00 90 00 E6 [15:01:29]RAPDU: 90 00 [15:01:29]wFMCommunicate OK [15:01:29]wFMCommunicate request_size=4 [15:01:29]MH_SAM_APDU [15:01:29]CAPDU: 80 0D 03 02 [15:01:29]Write to MH i2c: E2 08 00 15 5E 80 0D 03 02 00 00 00 00 EE [15:01:29]Write i2c OK [15:01:29]MH_I2C_Read... [15:01:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:29]Read from MH i2c: E2 [15:01:29]MH_I2C_Read... [15:01:29]Read from MH i2c: E2 0B 00 [15:01:29]MH_I2C_Read... [15:01:29]Read from MH i2c: E2 0B 00 15 5E 00 DC 4D D9 D0 85 06 69 CE 90 00 83 [15:01:29]RAPDU: DC 4D D9 D0 85 06 69 CE 90 00 [15:01:29]wFMCommunicate OK [15:01:29]SAM_PROTO_SignData done [15:01:29]FM_MakeSignedData done [15:01:29]CreateOFDProtocolMessage [15:01:29]wFMCommunicate request_size=4 [15:01:29]MH_SAM_APDU [15:01:29]CAPDU: 80 11 00 00 [15:01:29]Write to MH i2c: E2 08 00 16 5E 80 11 00 00 00 00 00 00 EE [15:01:29]Write i2c OK [15:01:29]MH_I2C_Read... [15:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:29]Read from MH i2c: E2 [15:01:29]MH_I2C_Read... [15:01:29]Read from MH i2c: E2 17 00 [15:01:29]MH_I2C_Read... [15:01:29]Read from MH i2c: E2 17 00 16 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 49 [15:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:01:29]wFMCommunicate OK [15:01:29]CreateOFDProtocolMessage done [15:01:29]OFDSenderStorePacket 118806 [15:01:29]StoreOFDPacket docnum=118806 [15:01:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 65 3E 07 01 A1 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 CE AE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 16 D0 01 00 35 04 06 00 81 E3 86 D8 86 8E DC 4D D9 D0 85 06 69 CE [15:01:29]CheckFolder [15:01:29]dirname=/storage/ofd_packets [15:01:29]CheckFolder done [15:01:29]ProducePacketName [15:01:29]name=ofd_packets/00118806 [15:01:29]NVStorageSaveData ofd_packets/00118806 [15:01:29]File name is /storage/ofd_packets/00118806 [15:01:29]Write 301 bytes [15:01:29]NVStorageSaveData done [15:01:29]OFDSenderStorePacket done [15:01:29]KKMCreateOFDPacket done [15:01:29]NVStorageSaveData kkm_last_timestamp [15:01:29]File name is /storage/kkm_last_timestamp [15:01:29]Write 4 bytes [15:01:29]NVStorageSaveData done [15:01:29]ExternCall_PrintAddStr [15:01:29]wPrintStart [15:01:29]Write to MH i2c: 01 00 00 17 5E 75 [15:01:29]Write i2c OK [15:01:29]MH_I2C_Read... [15:01:29]Read from MH i2c: 01 [15:01:29]MH_I2C_Read... [15:01:29]Read from MH i2c: 01 07 00 [15:01:29]MH_I2C_Read... [15:01:29]Read from MH i2c: 01 07 00 17 5E 00 00 00 00 00 FF 0F 8A [15:01:29]RasterBufferAndPrint [15:01:29]line Счет N : (1)949692 [15:01:29]line ИНН: 02508201610067 [15:01:29]line Контрольно-Кассовый Чек [15:01:29]line ПРОДАЖА [15:01:29]line ТРК (МРК, ГНК) : 41 [15:01:29]line Товар: 2710124130 [15:01:29]line Аи-92-К-4 [15:01:29]line 7.380 * 67.80 [15:01:29]line = 500.36 [15:01:29]line НДС 12% НСП 1% [15:01:29]line > о реализуемом товаре [15:01:29]line ОКРУГЛЕНИЕ: -0.36 [15:01:29]line ИТОГО: 500.00 [15:01:29]line Внесено: 500.00 [15:01:29]line СДАЧА: 0.00 [15:01:29]line НСП 1% : 4.43 [15:01:29]line НДС 12% : 53.14 [15:01:29]line Наличными: 500.00 [15:01:29]line Безнал.: 0.00 [15:01:29]line Место: АЗС № 134 "Партнер Нефть" [15:01:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:01:29]line СНО: Общий режим [15:01:29]line Чек 182 29.07.2024 15:01 [15:01:29]line Смена: 434 ФФД: 1.0 [15:01:29]line ЗНМ: 0300000044 [15:01:29]line РНМ: 0000000000092660 [15:01:29]line Версия ККМ: 001 [15:01:29]line ФМ: 0000000000874939 [15:01:29]line ФД: 118806 [15:01:29]line ФПД: 142814219896462 [15:01:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T150134&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118806&fm=142814219896462&tin=02508201610067®Number=0000000000092660&sum=50000 [15:01:30]OFD Sender: Processing packet 118806 [packets to send 86, broken 85] [15:01:30]ProducePacketName [15:01:30]name=ofd_packets/00118806 [15:01:30]OFD Sender: To server: pG, [15:01:30]CommunicateWithHost lk.salyk.kg:30040 [15:01:30]ConnectInit lk.salyk.kg [15:01:30]written 0, free lines is 4095 [15:01:30]Connected sock=10 [15:01:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 65 3E 07 01 A1 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 CE AE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 16 D0 01 00 35 04 06 00 81 E3 86 D8 86 8E DC 4D D9 D0 85 06 69 CE [15:01:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3F BA 47 00 62 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 34 39 33 39 10 04 04 00 16 D0 01 00 F4 03 04 00 5B 5C A7 66 B6 04 01 00 00 3A 94 6C 3B 39 E7 0F 41 [15:01:30]CommunicateWithHost err = 0 [15:01:30]CheckOFDResponse [15:01:30]1017 (14) - 77093643461234 [15:01:30]1041 (16) - 0000000000874939 [15:01:30]1040 (4) - 118806 [15:01:30]1012 (4) - 29.07.2024 09:09 [15:01:30]1206 (1) - 0 [15:01:30]OFD Sender: Remove packet 118806 [15:01:30]ProducePacketName [15:01:30]name=ofd_packets/00118806 [15:01:30]NVStorageDeleteData [15:01:30]Write to MH i2c: 01 00 00 41 5E 9F [15:01:30]Write i2c OK [15:01:30]MH_I2C_Read... [15:01:30]Read from MH i2c: 01 [15:01:30]MH_I2C_Read... [15:01:30]Read from MH i2c: 01 07 00 [15:01:30]MH_I2C_Read... [15:01:30]Read from MH i2c: 01 07 00 41 5E 00 00 00 00 00 EB 0C 9D [15:01:30]RasterBufferAndPrint [15:01:30]line [15:01:30]line [15:01:30]line [15:01:30]line [15:01:30]line [15:01:30]written 0, free lines is 3315 [15:01:30]MH_Cut [15:01:30]Write to MH i2c: D1 01 00 48 5E 01 78 [15:01:30]Write i2c OK [15:01:30]MH_I2C_Read... [15:01:30]Read from MH i2c: D1 [15:01:30]MH_I2C_Read... [15:01:30]Read from MH i2c: D1 01 00 [15:01:30]MH_I2C_Read... [15:01:30]Read from MH i2c: D1 01 00 48 5E 00 77 [15:01:30]Write to MH i2c: 01 00 00 49 5E A7 [15:01:30]Write i2c OK [15:01:30]MH_I2C_Read... [15:01:30]OFD Sender: No OFD packet to send [15:01:31]*** Cut start [15:01:31]*** Partial cut [15:01:31]*** CUTSNS_PIN = 1 [15:01:31]*** CUTSNS_PIN = 0 [15:01:31]*** Brake cut motor [15:01:31]Read from MH i2c: 01 [15:01:31]MH_I2C_Read... [15:01:31]*** Stop cut motor [15:01:31]*** Cut end [15:01:31]Read from MH i2c: 01 07 00 [15:01:31]MH_I2C_Read... [15:01:31]Read from MH i2c: 01 07 00 49 5E 00 00 00 00 00 FF 0F BC [15:01:31]process_action close_receipt done [15:01:31]requested_data is exist [15:01:31]produce_requested_data [15:01:31]requested_item fm.sn is exist - process it [15:01:31]wFMCommunicate request_size=4 [15:01:31]MH_SAM_APDU [15:01:31]CAPDU: 80 11 00 00 [15:01:31]Write to MH i2c: E2 08 00 4A 5E 80 11 00 00 00 00 00 00 22 [15:01:31]Write i2c OK [15:01:31]MH_I2C_Read... [15:01:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:31]Read from MH i2c: E2 [15:01:31]MH_I2C_Read... [15:01:31]Read from MH i2c: E2 17 00 [15:01:31]MH_I2C_Read... [15:01:31]Read from MH i2c: E2 17 00 4A 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7D [15:01:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:01:31]wFMCommunicate OK [15:01:31]requested_item fd.num is exist - process it [15:01:31]SAM_PROTO_GetFieldsCounters [15:01:31]wFMCommunicate request_size=4 [15:01:31]MH_SAM_APDU [15:01:31]CAPDU: 80 13 00 00 [15:01:31]Write to MH i2c: E2 08 00 4B 5E 80 13 00 00 00 00 00 00 25 [15:01:31]Write i2c OK [15:01:31]MH_I2C_Read... [15:01:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:32]Read from MH i2c: E2 [15:01:32]MH_I2C_Read... [15:01:32]Read from MH i2c: E2 62 00 [15:01:32]MH_I2C_Read... [15:01:32]Read from MH i2c: E2 62 00 4B 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 16 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [15:01:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 16 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:01:32]wFMCommunicate OK [15:01:32]SAM_PROTO_GetFieldsCounters done [15:01:32]requested_item shift.num is exist - process it [15:01:32]requested_item shift.opened is exist - process it [15:01:32]req_shift_opened [15:01:32]FM_GetShiftState [15:01:32]SAM_PROTO_GetShiftState [15:01:32]wFMCommunicate request_size=4 [15:01:32]MH_SAM_APDU [15:01:32]CAPDU: 80 13 01 00 [15:01:32]Write to MH i2c: E2 08 00 4C 5E 80 13 01 00 00 00 00 00 27 [15:01:32]Write i2c OK [15:01:32]MH_I2C_Read... [15:01:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:32]Read from MH i2c: E2 [15:01:32]MH_I2C_Read... [15:01:32]Read from MH i2c: E2 0E 00 [15:01:32]MH_I2C_Read... [15:01:32]Read from MH i2c: E2 0E 00 4C 5E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 55 [15:01:32]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:01:32]wFMCommunicate OK [15:01:32]SAM_PROTO_GetShiftState done [15:01:32]FM_GetShiftState done [15:01:32]req_shift_opened done [15:01:32]requested_item shift.open_date is exist - process it [15:01:32]req_shift_open_date [15:01:32]req_shift_open_date done [15:01:32]produce_requested_data done [15:01:32]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118806,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [15:01:32]process_action_free close_receipt [15:01:32]json_value_free [15:01:32]json_value_free done [15:01:32]process_json_proto returns [15:01:32]Send response to host [15:01:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118806,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [15:01:32]free response buf [15:01:32]execute_script done [15:01:32]execute_script returns [15:01:32]free content buf [15:01:32]Sock 9.Close socket [15:01:32]Sock 9.Thread stoped [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:45]OFD Sender: No OFD packet to send [15:01:50]OFD Sender: No OFD packet to send [15:01:55]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:25]OFD Sender: No OFD packet to send [15:02:30]OFD Sender: No OFD packet to send [15:02:35]OFD Sender: No OFD packet to send [15:02:40]OFD Sender: No OFD packet to send [15:02:45]OFD Sender: No OFD packet to send [15:02:50]OFD Sender: No OFD packet to send [15:02:55]OFD Sender: No OFD packet to send [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04: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:21]OFD Sender: No OFD packet to send [15:05:26]OFD Sender: No OFD packet to send [15:05:31]OFD Sender: No OFD packet to send [15:05:36]OFD Sender: No OFD packet to send [15:05:41]OFD Sender: No OFD packet to send [15:05:46]OFD Sender: No OFD packet to send [15:05:51]OFD Sender: No OFD packet to send [15:05:56]OFD Sender: No OFD packet to send [15:06:01]OFD Sender: No OFD packet to send [15:06:06]OFD Sender: No OFD packet to send [15:06:11]OFD Sender: No OFD packet to send [15:06:16]OFD Sender: No OFD packet to send [15:06:21]OFD Sender: No OFD packet to send [15:06:26]OFD Sender: No OFD packet to send [15:06:31]OFD Sender: No OFD packet to send [15:06:36]OFD Sender: No OFD packet to send [15:06:41]OFD Sender: No OFD packet to send [15:06:46]OFD Sender: No OFD packet to send [15:06:51]OFD Sender: No OFD packet to send [15:06:56]OFD Sender: No OFD packet to send [15:07:01]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:36]OFD Sender: No OFD packet to send [15:07:41]OFD Sender: No OFD packet to send [15:07:46]OFD Sender: No OFD packet to send [15:07:51]OFD Sender: No OFD packet to send [15:07:56]OFD Sender: No OFD packet to send [15:08:01]OFD Sender: No OFD packet to send [15:08:06]OFD Sender: No OFD packet to send [15:08:11]OFD Sender: No OFD packet to send [15:08:16]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:31]OFD Sender: No OFD packet to send [15:08:36]OFD Sender: No OFD packet to send [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:10]accept exits with 7 [15:09:10]New connection [15:09:10]New thread 3067383140 created [15:09:10]Thread 3067239780 joined [15:09:10]Waiting for new connection... [15:09:10] Sock 7.Parse request [15:09:10]Sock 7.Check first char [15:09:10]Sock 7.First char is OK [15:09:10]request: POST /json_proto HTTP/1.0 [15:09:10]Method: POST [15:09:10]URL: /json_proto [15:09:10]Method is POST - this is cgi request [15:09:10]url: /json_proto [15:09:10]query_string will be loaded in cgi processing [15:09:10]execute_cgi json_proto POST (null) [15:09:10]execute_cgi path=json_proto method=POST [15:09:10]POST find Content-Length [15:09:10]Host: 172.17.45.7:8080 [15:09:10]Content-Length: 822 [15:09:10]Content-Type: application/json [15:09:10] [15:09:10]POST finish read [15:09:10]Found Content-Length = 822 [15:09:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:10]execute_script... [15:09:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:10]POST & json_proto [15:09:10]process_json_proto [15:09:10]json parsed OK: [15:09:10]protocol is kg_v1.0 [15:09:10]action value=close_receipt [15:09:10]process_action close_receipt [15:09:10]cmd_close_receipt [15:09:10]MH_GetDate [15:09:10]Write to MH i2c: F0 00 00 4D 5E 9A [15:09:10]Write i2c OK [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: F0 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: F0 09 00 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: F0 09 00 4D 5E 00 9C B0 A7 66 90 0F 3E 66 3F [15:09:10]GetLastDocTimeStamp 1722265294 [15:09:10]current date 1722265756 [15:09:10]FM_GetShiftState [15:09:10]SAM_PROTO_GetShiftState [15:09:10]wFMCommunicate request_size=4 [15:09:10]MH_SAM_APDU [15:09:10]CAPDU: 80 13 01 00 [15:09:10]Write to MH i2c: E2 08 00 4E 5E 80 13 01 00 00 00 00 00 29 [15:09:10]Write i2c OK [15:09:10]MH_I2C_Read... [15:09:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:10]Read from MH i2c: E2 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: E2 0E 00 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: E2 0E 00 4E 5E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 57 [15:09:10]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:09:10]wFMCommunicate OK [15:09:10]SAM_PROTO_GetShiftState done [15:09:10]FM_GetShiftState done [15:09:10]opened in 1722211641 [15:09:10]opened+sec_in_day 1722298041 [15:09:10]quantity*price = 200043 [15:09:10]sum+1 = 200044 [15:09:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 183 29.07.2024 15:09 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118807 ФПД: 241602331028920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T150916&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118807&fm=241602331028920&tin=02508201610067®Number=0000000000092660&sum=200000 [15:09:11]StoreToDocumentArchive [15:09:11]shift 434 fd 118807 [15:09:11]save to /storage/0434/doc_00118807 [15:09:11]save last doc name /storage/0434/doc_00118807 to /storage/kkm_last_doc_name [15:09:11]save OK [15:09:11]Clear old archive folders... [15:09:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:11]tlvbuf is 01EA9430 [15:09:11]SAM_PROTO_ClearQueue [15:09:11]wFMCommunicate request_size=4 [15:09:11]MH_SAM_APDU [15:09:11]CAPDU: 80 09 00 00 [15:09:11]Write to MH i2c: E2 08 00 5B 5E 80 09 00 00 00 00 00 00 2B [15:09:11]Write i2c OK [15:09:11]MH_I2C_Read... [15:09:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:12]Read from MH i2c: E2 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 03 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 03 00 5B 5E 00 90 00 2D [15:09:12]RAPDU: 90 00 [15:09:12]wFMCommunicate OK [15:09:12]SAM_PROTO_ClearQueue done [15:09:12]KKMCreateOFDPacket [15:09:12]OFDProtocolAddRootSTLVToBuf [15:09:12]FM_MakeSignedData [15:09:12]FM_MakeSignedData [15:09:12]SAM_PROTO_SignData [15:09:12]wFMCommunicate request_size=4 [15:09:12]MH_SAM_APDU [15:09:12]CAPDU: 80 0D 01 02 [15:09:12]Write to MH i2c: E2 08 00 5C 5E 80 0D 01 02 00 00 00 00 33 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:12]Read from MH i2c: E2 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 03 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 03 00 5C 5E 00 90 00 2E [15:09:12]RAPDU: 90 00 [15:09:12]wFMCommunicate OK [15:09:12]wFMCommunicate request_size=255 [15:09:12]MH_SAM_APDU [15:09:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 9C B0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 D0 01 00 35 04 06 00 DB [15:09:12]Write to MH i2c: E2 02 01 5D 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 9C B0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 D0 01 00 35 04 06 00 DB 00 00 F4 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:12]Read from MH i2c: E2 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 03 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 03 00 5D 5E 00 90 00 2F [15:09:12]RAPDU: 90 00 [15:09:12]wFMCommunicate OK [15:09:12]wFMCommunicate request_size=10 [15:09:12]MH_SAM_APDU [15:09:12]CAPDU: 80 0D 02 02 05 BC 6D 1E 2D B8 [15:09:12]Write to MH i2c: E2 0D 00 5E 5E 80 0D 02 02 05 00 BC 6D 1E 2D B8 00 00 6C [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:12]Read from MH i2c: E2 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 03 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 03 00 5E 5E 00 90 00 30 [15:09:12]RAPDU: 90 00 [15:09:12]wFMCommunicate OK [15:09:12]wFMCommunicate request_size=4 [15:09:12]MH_SAM_APDU [15:09:12]CAPDU: 80 0D 03 02 [15:09:12]Write to MH i2c: E2 08 00 5F 5E 80 0D 03 02 00 00 00 00 38 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:12]Read from MH i2c: E2 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 0B 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 0B 00 5F 5E 00 41 6F AC EF 3C 7A FC EE 90 00 24 [15:09:12]RAPDU: 41 6F AC EF 3C 7A FC EE 90 00 [15:09:12]wFMCommunicate OK [15:09:12]SAM_PROTO_SignData done [15:09:12]FM_MakeSignedData done [15:09:12]CreateOFDProtocolMessage [15:09:12]wFMCommunicate request_size=4 [15:09:12]MH_SAM_APDU [15:09:12]CAPDU: 80 11 00 00 [15:09:12]Write to MH i2c: E2 08 00 60 5E 80 11 00 00 00 00 00 00 38 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:12]Read from MH i2c: E2 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 17 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 17 00 60 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 93 [15:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:09:12]wFMCommunicate OK [15:09:12]CreateOFDProtocolMessage done [15:09:12]OFDSenderStorePacket 118807 [15:09:12]StoreOFDPacket docnum=118807 [15:09:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 77 52 07 01 C9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 9C B0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 D0 01 00 35 04 06 00 DB BC 6D 1E 2D B8 41 6F AC EF 3C 7A FC EE [15:09:12]CheckFolder [15:09:12]dirname=/storage/ofd_packets [15:09:12]CheckFolder done [15:09:12]ProducePacketName [15:09:12]name=ofd_packets/00118807 [15:09:12]NVStorageSaveData ofd_packets/00118807 [15:09:12]File name is /storage/ofd_packets/00118807 [15:09:12]Write 301 bytes [15:09:12]NVStorageSaveData done [15:09:12]OFDSenderStorePacket done [15:09:12]KKMCreateOFDPacket done [15:09:12]NVStorageSaveData kkm_last_timestamp [15:09:12]File name is /storage/kkm_last_timestamp [15:09:12]Write 4 bytes [15:09:12]NVStorageSaveData done [15:09:12]ExternCall_PrintAddStr [15:09:12]wPrintStart [15:09:12]Write to MH i2c: 01 00 00 61 5E BF [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: 01 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: 01 07 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: 01 07 00 61 5E 00 00 00 00 00 FF 0F D4 [15:09:12]RasterBufferAndPrint [15:09:12]line Счет N : (1)949693 [15:09:12]line ИНН: 02508201610067 [15:09:12]line Контрольно-Кассовый Чек [15:09:12]line ПРОДАЖА [15:09:12]line ТРК (МРК, ГНК) : 53 [15:09:12]line Товар: 2710124500 [15:09:12]line Аи-95-К-3 [15:09:12]line 26.960 * 74.20 [15:09:12]line = 2000.43 [15:09:12]line НДС 12% НСП 1% [15:09:12]line > о реализуемом товаре [15:09:12]line ОКРУГЛЕНИЕ: -0.43 [15:09:12]line ИТОГО: 2000.00 [15:09:12]line НСП 1% : 17.70 [15:09:12]line НДС 12% : 212.43 [15:09:12]line Наличными: 0.00 [15:09:12]line Безнал.: 2000.00 [15:09:12]line Место: АЗС № 134 "Партнер Нефть" [15:09:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:09:12]line СНО: Общий режим [15:09:12]line Чек 183 29.07.2024 15:09 [15:09:12]line Смена: 434 ФФД: 1.0 [15:09:12]line ЗНМ: 0300000044 [15:09:12]line РНМ: 0000000000092660 [15:09:12]line Версия ККМ: 001 [15:09:12]line Платежная система: O! деньги [15:09:12]line ФМ: 0000000000874939 [15:09:12]line ФД: 118807 [15:09:12]line ФПД: 241602331028920 [15:09:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T150916&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118807&fm=241602331028920&tin=02508201610067®Number=0000000000092660&sum=200000 [15:09:12]OFD Sender: Processing packet 118807 [packets to send 86, broken 85] [15:09:12]ProducePacketName [15:09:12]name=ofd_packets/00118807 [15:09:12]OFD Sender: To server: pG, [15:09:12]CommunicateWithHost lk.salyk.kg:30040 [15:09:12]ConnectInit lk.salyk.kg [15:09:12]written 0, free lines is 4095 [15:09:12]Connected sock=10 [15:09:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 77 52 07 01 C9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 9C B0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 D0 01 00 35 04 06 00 DB BC 6D 1E 2D B8 41 6F AC EF 3C 7A FC EE [15:09:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 62 CA 47 00 8F 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 D0 01 00 F4 03 04 00 2A 5E A7 66 B6 04 01 00 00 F5 71 59 B8 AB 0A F5 50 [15:09:13]CommunicateWithHost err = 0 [15:09:13]CheckOFDResponse [15:09:13]1017 (14) - 77093643461234 [15:09:13]1041 (16) - 0000000000874939 [15:09:13]1040 (4) - 118807 [15:09:13]1012 (4) - 29.07.2024 09:17 [15:09:13]1206 (1) - 0 [15:09:13]OFD Sender: Remove packet 118807 [15:09:13]ProducePacketName [15:09:13]name=ofd_packets/00118807 [15:09:13]NVStorageDeleteData [15:09:13]Write to MH i2c: 01 00 00 8B 5E E9 [15:09:13]Write i2c OK [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: 01 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: 01 07 00 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: 01 07 00 8B 5E 00 00 00 00 00 EE 0C EA [15:09:13]RasterBufferAndPrint [15:09:13]line [15:09:13]line [15:09:13]line [15:09:13]line [15:09:13]line [15:09:13]written 0, free lines is 3316 [15:09:13]MH_Cut [15:09:13]Write to MH i2c: D1 01 00 92 5E 01 C2 [15:09:13]Write i2c OK [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: D1 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: D1 01 00 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: D1 01 00 92 5E 00 C1 [15:09:13]Write to MH i2c: 01 00 00 93 5E F1 [15:09:13]Write i2c OK [15:09:13]MH_I2C_Read... [15:09:13]OFD Sender: No OFD packet to send [15:09:14]*** Cut start [15:09:14]*** Partial cut [15:09:14]*** CUTSNS_PIN = 1 [15:09:14]*** CUTSNS_PIN = 0 [15:09:14]*** Brake cut motor [15:09:14]Read from MH i2c: 01 [15:09:14]MH_I2C_Read... [15:09:14]*** Stop cut motor [15:09:14]*** Cut end [15:09:14]Read from MH i2c: 01 07 00 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: 01 07 00 93 5E 00 00 00 00 00 FF 0F 06 [15:09:14]process_action close_receipt done [15:09:14]requested_data is exist [15:09:14]produce_requested_data [15:09:14]requested_item fm.sn is exist - process it [15:09:14]wFMCommunicate request_size=4 [15:09:14]MH_SAM_APDU [15:09:14]CAPDU: 80 11 00 00 [15:09:14]Write to MH i2c: E2 08 00 94 5E 80 11 00 00 00 00 00 00 6C [15:09:14]Write i2c OK [15:09:14]MH_I2C_Read... [15:09:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:14]Read from MH i2c: E2 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 17 00 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 17 00 94 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C7 [15:09:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:09:14]wFMCommunicate OK [15:09:14]requested_item fd.num is exist - process it [15:09:14]SAM_PROTO_GetFieldsCounters [15:09:14]wFMCommunicate request_size=4 [15:09:14]MH_SAM_APDU [15:09:14]CAPDU: 80 13 00 00 [15:09:14]Write to MH i2c: E2 08 00 95 5E 80 13 00 00 00 00 00 00 6F [15:09:14]Write i2c OK [15:09:14]MH_I2C_Read... [15:09:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:14]Read from MH i2c: E2 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 62 00 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 62 00 95 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 17 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [15:09:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 17 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:14]wFMCommunicate OK [15:09:14]SAM_PROTO_GetFieldsCounters done [15:09:14]requested_item shift.num is exist - process it [15:09:14]requested_item shift.opened is exist - process it [15:09:14]req_shift_opened [15:09:14]FM_GetShiftState [15:09:14]SAM_PROTO_GetShiftState [15:09:14]wFMCommunicate request_size=4 [15:09:14]MH_SAM_APDU [15:09:14]CAPDU: 80 13 01 00 [15:09:14]Write to MH i2c: E2 08 00 96 5E 80 13 01 00 00 00 00 00 71 [15:09:14]Write i2c OK [15:09:14]MH_I2C_Read... [15:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:14]Read from MH i2c: E2 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 0E 00 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 0E 00 96 5E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 9F [15:09:14]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:09:14]wFMCommunicate OK [15:09:14]SAM_PROTO_GetShiftState done [15:09:14]FM_GetShiftState done [15:09:14]req_shift_opened done [15:09:14]requested_item shift.open_date is exist - process it [15:09:14]req_shift_open_date [15:09:14]req_shift_open_date done [15:09:14]produce_requested_data done [15:09:14]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118807,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [15:09:14]process_action_free close_receipt [15:09:14]json_value_free [15:09:14]json_value_free done [15:09:14]process_json_proto returns [15:09:14]Send response to host [15:09:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118807,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [15:09:14]free response buf [15:09:14]execute_script done [15:09:14]execute_script returns [15:09:14]free content buf [15:09:14]Sock 7.Close socket [15:09:14]Sock 7.Thread stoped [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:44]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:20]accept exits with 9 [15:15:20]New connection [15:15:20]New thread 3067239780 created [15:15:20]Thread 3067383140 joined [15:15:20]Waiting for new connection... [15:15:20] Sock 9.Parse request [15:15:20]Sock 9.Check first char [15:15:20]Sock 9.First char is OK [15:15:20]request: POST /json_proto HTTP/1.0 [15:15:20]Method: POST [15:15:20]URL: /json_proto [15:15:20]Method is POST - this is cgi request [15:15:20]url: /json_proto [15:15:20]query_string will be loaded in cgi processing [15:15:20]execute_cgi json_proto POST (null) [15:15:20]execute_cgi path=json_proto method=POST [15:15:20]POST find Content-Length [15:15:20]Host: 172.17.45.7:8080 [15:15:20]Content-Length: 838 [15:15:20]Content-Type: application/json [15:15:20] [15:15:20]POST finish read [15:15:20]Found Content-Length = 838 [15:15:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.54, "quantity" : 27.200, "sum" : 2000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:20]execute_script... [15:15:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.54, "quantity" : 27.200, "sum" : 2000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:20]POST & json_proto [15:15:20]process_json_proto [15:15:20]json parsed OK: [15:15:20]protocol is kg_v1.0 [15:15:20]action value=close_receipt [15:15:20]process_action close_receipt [15:15:20]cmd_close_receipt [15:15:20]MH_GetDate [15:15:20]Write to MH i2c: F0 00 00 97 5E E4 [15:15:20]Write i2c OK [15:15:20]MH_I2C_Read... [15:15:20]Read from MH i2c: F0 [15:15:20]MH_I2C_Read... [15:15:20]Read from MH i2c: F0 09 00 [15:15:20]MH_I2C_Read... [15:15:20]Read from MH i2c: F0 09 00 97 5E 00 0F B2 A7 66 90 0F 3E 66 FE [15:15:20]GetLastDocTimeStamp 1722265756 [15:15:20]current date 1722266127 [15:15:20]FM_GetShiftState [15:15:20]SAM_PROTO_GetShiftState [15:15:20]wFMCommunicate request_size=4 [15:15:20]MH_SAM_APDU [15:15:20]CAPDU: 80 13 01 00 [15:15:20]Write to MH i2c: E2 08 00 98 5E 80 13 01 00 00 00 00 00 73 [15:15:20]Write i2c OK [15:15:20]MH_I2C_Read... [15:15:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:21]Read from MH i2c: E2 [15:15:21]MH_I2C_Read... [15:15:21]Read from MH i2c: E2 0E 00 [15:15:21]MH_I2C_Read... [15:15:21]Read from MH i2c: E2 0E 00 98 5E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A1 [15:15:21]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:15:21]wFMCommunicate OK [15:15:21]SAM_PROTO_GetShiftState done [15:15:21]FM_GetShiftState done [15:15:21]opened in 1722211641 [15:15:21]opened+sec_in_day 1722298041 [15:15:21]quantity*price = 200028 [15:15:21]sum+1 = 200030 [15:15:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 184 29.07.2024 15:15 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 118808 ФПД: 191615612230181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T151527&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118808&fm=191615612230181&tin=02508201610067®Number=0000000000092660&sum=200000 [15:15:22]StoreToDocumentArchive [15:15:22]shift 434 fd 118808 [15:15:22]save to /storage/0434/doc_00118808 [15:15:22]save last doc name /storage/0434/doc_00118808 to /storage/kkm_last_doc_name [15:15:22]save OK [15:15:22]Clear old archive folders... [15:15:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:22]tlvbuf is 01E9A430 [15:15:22]SAM_PROTO_ClearQueue [15:15:22]wFMCommunicate request_size=4 [15:15:22]MH_SAM_APDU [15:15:22]CAPDU: 80 09 00 00 [15:15:22]Write to MH i2c: E2 08 00 A5 5E 80 09 00 00 00 00 00 00 75 [15:15:22]Write i2c OK [15:15:22]MH_I2C_Read... [15:15:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:22]Read from MH i2c: E2 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: E2 03 00 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: E2 03 00 A5 5E 00 90 00 77 [15:15:22]RAPDU: 90 00 [15:15:22]wFMCommunicate OK [15:15:22]SAM_PROTO_ClearQueue done [15:15:22]KKMCreateOFDPacket [15:15:22]OFDProtocolAddRootSTLVToBuf [15:15:22]FM_MakeSignedData [15:15:22]FM_MakeSignedData [15:15:22]SAM_PROTO_SignData [15:15:22]wFMCommunicate request_size=4 [15:15:22]MH_SAM_APDU [15:15:22]CAPDU: 80 0D 01 02 [15:15:22]Write to MH i2c: E2 08 00 A6 5E 80 0D 01 02 00 00 00 00 7D [15:15:22]Write i2c OK [15:15:22]MH_I2C_Read... [15:15:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:22]Read from MH i2c: E2 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: E2 03 00 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: E2 03 00 A6 5E 00 90 00 78 [15:15:22]RAPDU: 90 00 [15:15:22]wFMCommunicate OK [15:15:22]wFMCommunicate request_size=255 [15:15:22]MH_SAM_APDU [15:15:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 6A 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 5D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 0F B2 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 D0 01 00 35 04 06 00 AE [15:15:22]Write to MH i2c: E2 02 01 A7 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 6A 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 5D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 0F B2 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 D0 01 00 35 04 06 00 AE 00 00 28 [15:15:22]Write i2c OK [15:15:22]MH_I2C_Read... [15:15:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:22]Read from MH i2c: E2 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: E2 03 00 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: E2 03 00 A7 5E 00 90 00 79 [15:15:22]RAPDU: 90 00 [15:15:22]wFMCommunicate OK [15:15:22]wFMCommunicate request_size=10 [15:15:22]MH_SAM_APDU [15:15:22]CAPDU: 80 0D 02 02 05 45 FC 80 1A 25 [15:15:22]Write to MH i2c: E2 0D 00 A8 5E 80 0D 02 02 05 00 45 FC 80 1A 25 00 00 8A [15:15:22]Write i2c OK [15:15:22]MH_I2C_Read... [15:15:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:22]Read from MH i2c: E2 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: E2 03 00 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: E2 03 00 A8 5E 00 90 00 7A [15:15:22]RAPDU: 90 00 [15:15:22]wFMCommunicate OK [15:15:22]wFMCommunicate request_size=4 [15:15:22]MH_SAM_APDU [15:15:22]CAPDU: 80 0D 03 02 [15:15:22]Write to MH i2c: E2 08 00 A9 5E 80 0D 03 02 00 00 00 00 82 [15:15:22]Write i2c OK [15:15:22]MH_I2C_Read... [15:15:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:22]Read from MH i2c: E2 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: E2 0B 00 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: E2 0B 00 A9 5E 00 B9 B8 47 16 95 0C BA C5 90 00 71 [15:15:22]RAPDU: B9 B8 47 16 95 0C BA C5 90 00 [15:15:22]wFMCommunicate OK [15:15:22]SAM_PROTO_SignData done [15:15:22]FM_MakeSignedData done [15:15:22]CreateOFDProtocolMessage [15:15:22]wFMCommunicate request_size=4 [15:15:22]MH_SAM_APDU [15:15:22]CAPDU: 80 11 00 00 [15:15:22]Write to MH i2c: E2 08 00 AA 5E 80 11 00 00 00 00 00 00 82 [15:15:22]Write i2c OK [15:15:22]MH_I2C_Read... [15:15:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:22]Read from MH i2c: E2 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: E2 17 00 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: E2 17 00 AA 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DD [15:15:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:15:22]wFMCommunicate OK [15:15:22]CreateOFDProtocolMessage done [15:15:22]OFDSenderStorePacket 118808 [15:15:22]StoreOFDPacket docnum=118808 [15:15:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2C 47 07 01 61 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 6A 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 5D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 0F B2 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 D0 01 00 35 04 06 00 AE 45 FC 80 1A 25 B9 B8 47 16 95 0C BA C5 [15:15:22]CheckFolder [15:15:22]dirname=/storage/ofd_packets [15:15:22]CheckFolder done [15:15:22]ProducePacketName [15:15:22]name=ofd_packets/00118808 [15:15:22]NVStorageSaveData ofd_packets/00118808 [15:15:22]File name is /storage/ofd_packets/00118808 [15:15:22]Write 301 bytes [15:15:22]NVStorageSaveData done [15:15:22]OFDSenderStorePacket done [15:15:22]KKMCreateOFDPacket done [15:15:22]NVStorageSaveData kkm_last_timestamp [15:15:22]File name is /storage/kkm_last_timestamp [15:15:22]Write 4 bytes [15:15:22]NVStorageSaveData done [15:15:22]ExternCall_PrintAddStr [15:15:22]wPrintStart [15:15:22]Write to MH i2c: 01 00 00 AB 5E 09 [15:15:22]Write i2c OK [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: 01 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: 01 07 00 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: 01 07 00 AB 5E 00 00 00 00 00 FF 0F 1E [15:15:22]RasterBufferAndPrint [15:15:22]line Счет N : (1)949694 [15:15:22]line ИНН: 02508201610067 [15:15:22]line Контрольно-Кассовый Чек [15:15:22]line ПРОДАЖА [15:15:22]line ТРК (МРК, ГНК) : 53 [15:15:22]line Товар: 2710124500 [15:15:22]line Аи-95-К-3 [15:15:22]line 27.200 * 73.54 [15:15:22]line = 2000.29 [15:15:22]line НДС 12% НСП 1% [15:15:22]line > о реализуемом товаре [15:15:22]line ОКРУГЛЕНИЕ: -0.29 [15:15:22]line ИТОГО: 2000.00 [15:15:22]line НСП 1% : 17.70 [15:15:22]line НДС 12% : 212.42 [15:15:22]line Наличными: 0.00 [15:15:22]line Безнал.: 2000.00 [15:15:22]line Место: АЗС № 134 "Партнер Нефть" [15:15:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:15:22]line СНО: Общий режим [15:15:22]line Чек 184 29.07.2024 15:15 [15:15:22]line Смена: 434 ФФД: 1.0 [15:15:22]line ЗНМ: 0300000044 [15:15:22]line РНМ: 0000000000092660 [15:15:22]line Версия ККМ: 001 [15:15:22]line Платежная система: Бакай Банк [15:15:22]line ФМ: 0000000000874939 [15:15:22]line ФД: 118808 [15:15:22]line ФПД: 191615612230181 [15:15:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T151527&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118808&fm=191615612230181&tin=02508201610067®Number=0000000000092660&sum=200000 [15:15:23]written 0, free lines is 4095 [15:15:23]OFD Sender: Processing packet 118808 [packets to send 86, broken 85] [15:15:23]ProducePacketName [15:15:23]name=ofd_packets/00118808 [15:15:23]OFD Sender: To server: pG, [15:15:23]CommunicateWithHost lk.salyk.kg:30040 [15:15:23]ConnectInit lk.salyk.kg [15:15:23]Connected sock=7 [15:15:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2C 47 07 01 61 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 6A 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 5D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 0F B2 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 D0 01 00 35 04 06 00 AE 45 FC 80 1A 25 B9 B8 47 16 95 0C BA C5 [15:15:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FB 18 47 00 59 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 34 39 33 39 10 04 04 00 18 D0 01 00 F4 03 04 00 9C 5F A7 66 B6 04 01 00 00 DF 13 78 DE 07 D7 FA A6 [15:15:23]CommunicateWithHost err = 0 [15:15:23]CheckOFDResponse [15:15:23]1017 (14) - 77093643461234 [15:15:23]1041 (16) - 0000000000874939 [15:15:23]1040 (4) - 118808 [15:15:23]1012 (4) - 29.07.2024 09:23 [15:15:23]1206 (1) - 0 [15:15:23]OFD Sender: Remove packet 118808 [15:15:23]ProducePacketName [15:15:23]name=ofd_packets/00118808 [15:15:23]NVStorageDeleteData [15:15:23]Write to MH i2c: 01 00 00 D5 5E 33 [15:15:23]Write i2c OK [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: 01 [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: 01 07 00 [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: 01 07 00 D5 5E 00 00 00 00 00 E9 0C 2F [15:15:23]RasterBufferAndPrint [15:15:23]line [15:15:23]line [15:15:23]line [15:15:23]line [15:15:23]line [15:15:23]written 0, free lines is 3311 [15:15:23]MH_Cut [15:15:23]Write to MH i2c: D1 01 00 DC 5E 01 0C [15:15:23]Write i2c OK [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: D1 [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: D1 01 00 [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: D1 01 00 DC 5E 00 0B [15:15:23]Write to MH i2c: 01 00 00 DD 5E 3B [15:15:23]Write i2c OK [15:15:23]MH_I2C_Read... [15:15:23]OFD Sender: No OFD packet to send [15:15:24]*** Cut start [15:15:24]*** Partial cut [15:15:24]*** CUTSNS_PIN = 1 [15:15:24]*** CUTSNS_PIN = 0 [15:15:24]*** Brake cut motor [15:15:24]Read from MH i2c: 01 [15:15:24]MH_I2C_Read... [15:15:24]*** Stop cut motor [15:15:24]*** Cut end [15:15:24]Read from MH i2c: 01 07 00 [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: 01 07 00 DD 5E 00 00 00 00 00 FF 0F 50 [15:15:24]process_action close_receipt done [15:15:24]requested_data is exist [15:15:24]produce_requested_data [15:15:24]requested_item fm.sn is exist - process it [15:15:24]wFMCommunicate request_size=4 [15:15:24]MH_SAM_APDU [15:15:24]CAPDU: 80 11 00 00 [15:15:24]Write to MH i2c: E2 08 00 DE 5E 80 11 00 00 00 00 00 00 B6 [15:15:24]Write i2c OK [15:15:24]MH_I2C_Read... [15:15:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:24]Read from MH i2c: E2 [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: E2 17 00 [15:15:24]MH_I2C_Read... [15:15:24]Read from MH i2c: E2 17 00 DE 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 11 [15:15:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:15:24]wFMCommunicate OK [15:15:24]requested_item fd.num is exist - process it [15:15:24]SAM_PROTO_GetFieldsCounters [15:15:24]wFMCommunicate request_size=4 [15:15:24]MH_SAM_APDU [15:15:24]CAPDU: 80 13 00 00 [15:15:24]Write to MH i2c: E2 08 00 DF 5E 80 13 00 00 00 00 00 00 B9 [15:15:24]Write i2c OK [15:15:24]MH_I2C_Read... [15:15:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:25]Read from MH i2c: E2 [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: E2 62 00 [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: E2 62 00 DF 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 18 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [15:15: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 18 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:25]wFMCommunicate OK [15:15:25]SAM_PROTO_GetFieldsCounters done [15:15:25]requested_item shift.num is exist - process it [15:15:25]requested_item shift.opened is exist - process it [15:15:25]req_shift_opened [15:15:25]FM_GetShiftState [15:15:25]SAM_PROTO_GetShiftState [15:15:25]wFMCommunicate request_size=4 [15:15:25]MH_SAM_APDU [15:15:25]CAPDU: 80 13 01 00 [15:15:25]Write to MH i2c: E2 08 00 E0 5E 80 13 01 00 00 00 00 00 BB [15:15:25]Write i2c OK [15:15:25]MH_I2C_Read... [15:15:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:25]Read from MH i2c: E2 [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: E2 0E 00 [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: E2 0E 00 E0 5E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E9 [15:15:25]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:15:25]wFMCommunicate OK [15:15:25]SAM_PROTO_GetShiftState done [15:15:25]FM_GetShiftState done [15:15:25]req_shift_opened done [15:15:25]requested_item shift.open_date is exist - process it [15:15:25]req_shift_open_date [15:15:25]req_shift_open_date done [15:15:25]produce_requested_data done [15:15:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118808,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [15:15:25]process_action_free close_receipt [15:15:25]json_value_free [15:15:25]json_value_free done [15:15:25]process_json_proto returns [15:15:25]Send response to host [15:15:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118808,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [15:15:25]free response buf [15:15:25]execute_script done [15:15:25]execute_script returns [15:15:25]free content buf [15:15:25]Sock 9.Close socket [15:15:25]Sock 9.Thread stoped [15:15:28]OFD Sender: No OFD packet to send [15:15:33]OFD Sender: No OFD packet to send [15:15:38]OFD Sender: No OFD packet to send [15:15:43]OFD Sender: No OFD packet to send [15:15:48]OFD Sender: No OFD packet to send [15:15:53]OFD Sender: No OFD packet to send [15:15:58]OFD Sender: No OFD packet to send [15:16:03]OFD Sender: No OFD packet to send [15:16:08]OFD Sender: No OFD packet to send [15:16:13]OFD Sender: No OFD packet to send [15:16:18]OFD Sender: No OFD packet to send [15:16:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [15:16:43]OFD Sender: No OFD packet to send [15:16:48]OFD Sender: No OFD packet to send [15:16:53]OFD Sender: No OFD packet to send [15:16:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:13]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:23]OFD Sender: No OFD packet to send [15:17:28]OFD Sender: No OFD packet to send [15:17:33]OFD Sender: No OFD packet to send [15:17:38]OFD Sender: No OFD packet to send [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:04]accept exits with 10 [15:18:04]New connection [15:18:04]New thread 3067383140 created [15:18:04]Thread 3067239780 joined [15:18:04]Waiting for new connection... [15:18:04] Sock 10.Parse request [15:18:04]Sock 10.Check first char [15:18:04]Sock 10.First char is OK [15:18:04]request: POST /json_proto HTTP/1.0 [15:18:04]Method: POST [15:18:04]URL: /json_proto [15:18:04]Method is POST - this is cgi request [15:18:04]url: /json_proto [15:18:04]query_string will be loaded in cgi processing [15:18:04]execute_cgi json_proto POST (null) [15:18:04]execute_cgi path=json_proto method=POST [15:18:04]POST find Content-Length [15:18:04]Host: 172.17.45.7:8080 [15:18:04]Content-Length: 832 [15:18:04]Content-Type: application/json [15:18:04] [15:18:04]POST finish read [15:18:04]Found Content-Length = 832 [15:18:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 10.600, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 800.00, "payments": [ { "type": 1, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:04]execute_script... [15:18:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 10.600, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 800.00, "payments": [ { "type": 1, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:04]POST & json_proto [15:18:04]process_json_proto [15:18:04]json parsed OK: [15:18:04]protocol is kg_v1.0 [15:18:04]action value=close_receipt [15:18:04]process_action close_receipt [15:18:04]cmd_close_receipt [15:18:04]MH_GetDate [15:18:04]Write to MH i2c: F0 00 00 E1 5E 2E [15:18:04]Write i2c OK [15:18:04]MH_I2C_Read... [15:18:04]Read from MH i2c: F0 [15:18:04]MH_I2C_Read... [15:18:04]Read from MH i2c: F0 09 00 [15:18:04]MH_I2C_Read... [15:18:04]Read from MH i2c: F0 09 00 E1 5E 00 B3 B2 A7 66 90 0F 3E 66 EC [15:18:04]GetLastDocTimeStamp 1722266127 [15:18:04]current date 1722266291 [15:18:04]FM_GetShiftState [15:18:04]SAM_PROTO_GetShiftState [15:18:04]wFMCommunicate request_size=4 [15:18:04]MH_SAM_APDU [15:18:04]CAPDU: 80 13 01 00 [15:18:04]Write to MH i2c: E2 08 00 E2 5E 80 13 01 00 00 00 00 00 BD [15:18:04]Write i2c OK [15:18:04]MH_I2C_Read... [15:18:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:05]Read from MH i2c: E2 [15:18:05]MH_I2C_Read... [15:18:05]Read from MH i2c: E2 0E 00 [15:18:05]MH_I2C_Read... [15:18:05]Read from MH i2c: E2 0E 00 E2 5E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 EB [15:18:05]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:18:05]wFMCommunicate OK [15:18:05]SAM_PROTO_GetShiftState done [15:18:05]FM_GetShiftState done [15:18:05]opened in 1722211641 [15:18:05]opened+sec_in_day 1722298041 [15:18:05]quantity*price = 80061 [15:18:05]sum+1 = 80063 [15:18:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 0.00 Безнал.: 800.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 185 29.07.2024 15:18 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 118809 ФПД: 60330491635192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T151811&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118809&fm=60330491635192&tin=02508201610067®Number=0000000000092660&sum=80000 [15:18:06]StoreToDocumentArchive [15:18:06]shift 434 fd 118809 [15:18:06]save to /storage/0434/doc_00118809 [15:18:06]save last doc name /storage/0434/doc_00118809 to /storage/kkm_last_doc_name [15:18:06]save OK [15:18:06]Clear old archive folders... [15:18:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:18:06]tlvbuf is 01ED6B80 [15:18:06]SAM_PROTO_ClearQueue [15:18:06]wFMCommunicate request_size=4 [15:18:06]MH_SAM_APDU [15:18:06]CAPDU: 80 09 00 00 [15:18:06]Write to MH i2c: E2 08 00 EF 5E 80 09 00 00 00 00 00 00 BF [15:18:06]Write i2c OK [15:18:06]MH_I2C_Read... [15:18:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:06]Read from MH i2c: E2 [15:18:06]MH_I2C_Read... [15:18:06]Read from MH i2c: E2 03 00 [15:18:06]MH_I2C_Read... [15:18:06]Read from MH i2c: E2 03 00 EF 5E 00 90 00 C1 [15:18:06]RAPDU: 90 00 [15:18:06]wFMCommunicate OK [15:18:06]SAM_PROTO_ClearQueue done [15:18:06]KKMCreateOFDPacket [15:18:06]OFDProtocolAddRootSTLVToBuf [15:18:06]FM_MakeSignedData [15:18:06]FM_MakeSignedData [15:18:06]SAM_PROTO_SignData [15:18:06]wFMCommunicate request_size=4 [15:18:06]MH_SAM_APDU [15:18:06]CAPDU: 80 0D 01 02 [15:18:06]Write to MH i2c: E2 08 00 F0 5E 80 0D 01 02 00 00 00 00 C7 [15:18:06]Write i2c OK [15:18:06]MH_I2C_Read... [15:18:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:06]Read from MH i2c: E2 [15:18:06]MH_I2C_Read... [15:18:06]Read from MH i2c: E2 03 00 [15:18:06]MH_I2C_Read... [15:18:06]Read from MH i2c: E2 03 00 F0 5E 00 90 00 C2 [15:18:06]RAPDU: 90 00 [15:18:06]wFMCommunicate OK [15:18:06]wFMCommunicate request_size=255 [15:18:06]MH_SAM_APDU [15:18:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 29 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 B3 B2 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 19 D0 01 00 35 04 06 00 36 DE C9 85 [15:18:06]Write to MH i2c: E2 02 01 F1 5E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 29 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 B3 B2 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 19 D0 01 00 35 04 06 00 36 DE C9 85 00 00 0E [15:18:06]Write i2c OK [15:18:06]MH_I2C_Read... [15:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:06]Read from MH i2c: E2 [15:18:06]MH_I2C_Read... [15:18:06]Read from MH i2c: E2 03 00 [15:18:06]MH_I2C_Read... [15:18:06]Read from MH i2c: E2 03 00 F1 5E 00 90 00 C3 [15:18:06]RAPDU: 90 00 [15:18:06]wFMCommunicate OK [15:18:06]wFMCommunicate request_size=7 [15:18:06]MH_SAM_APDU [15:18:06]CAPDU: 80 0D 02 02 02 E5 F8 [15:18:06]Write to MH i2c: E2 0A 00 F2 5E 80 0D 02 02 02 00 E5 F8 00 00 AB [15:18:06]Write i2c OK [15:18:06]MH_I2C_Read... [15:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:06]Read from MH i2c: E2 [15:18:06]MH_I2C_Read... [15:18:06]Read from MH i2c: E2 03 00 [15:18:06]MH_I2C_Read... [15:18:06]Read from MH i2c: E2 03 00 F2 5E 00 90 00 C4 [15:18:06]RAPDU: 90 00 [15:18:06]wFMCommunicate OK [15:18:06]wFMCommunicate request_size=4 [15:18:06]MH_SAM_APDU [15:18:06]CAPDU: 80 0D 03 02 [15:18:06]Write to MH i2c: E2 08 00 F3 5E 80 0D 03 02 00 00 00 00 CC [15:18:06]Write i2c OK [15:18:06]MH_I2C_Read... [15:18:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:06]Read from MH i2c: E2 [15:18:06]MH_I2C_Read... [15:18:06]Read from MH i2c: E2 0B 00 [15:18:06]MH_I2C_Read... [15:18:06]Read from MH i2c: E2 0B 00 F3 5E 00 FA EA 44 73 30 DE 6E F1 90 00 D5 [15:18:06]RAPDU: FA EA 44 73 30 DE 6E F1 90 00 [15:18:06]wFMCommunicate OK [15:18:06]SAM_PROTO_SignData done [15:18:06]FM_MakeSignedData done [15:18:06]CreateOFDProtocolMessage [15:18:06]wFMCommunicate request_size=4 [15:18:06]MH_SAM_APDU [15:18:06]CAPDU: 80 11 00 00 [15:18:06]Write to MH i2c: E2 08 00 F4 5E 80 11 00 00 00 00 00 00 CC [15:18:06]Write i2c OK [15:18:06]MH_I2C_Read... [15:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:06]Read from MH i2c: E2 [15:18:06]MH_I2C_Read... [15:18:06]Read from MH i2c: E2 17 00 [15:18:06]MH_I2C_Read... [15:18:06]Read from MH i2c: E2 17 00 F4 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 27 [15:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:18:06]wFMCommunicate OK [15:18:06]CreateOFDProtocolMessage done [15:18:06]OFDSenderStorePacket 118809 [15:18:06]StoreOFDPacket docnum=118809 [15:18:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 39 DF 04 01 C8 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 29 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 B3 B2 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 19 D0 01 00 35 04 06 00 36 DE C9 85 E5 F8 FA EA 44 73 30 DE 6E F1 [15:18:06]CheckFolder [15:18:06]dirname=/storage/ofd_packets [15:18:06]CheckFolder done [15:18:06]ProducePacketName [15:18:06]name=ofd_packets/00118809 [15:18:06]NVStorageSaveData ofd_packets/00118809 [15:18:06]File name is /storage/ofd_packets/00118809 [15:18:06]Write 298 bytes [15:18:06]NVStorageSaveData done [15:18:06]OFDSenderStorePacket done [15:18:06]KKMCreateOFDPacket done [15:18:06]NVStorageSaveData kkm_last_timestamp [15:18:06]File name is /storage/kkm_last_timestamp [15:18:06]Write 4 bytes [15:18:06]NVStorageSaveData done [15:18:06]ExternCall_PrintAddStr [15:18:06]wPrintStart [15:18:06]Write to MH i2c: 01 00 00 F5 5E 53 [15:18:06]Write i2c OK [15:18:06]MH_I2C_Read... [15:18:06]Read from MH i2c: 01 [15:18:06]MH_I2C_Read... [15:18:06]Read from MH i2c: 01 07 00 [15:18:06]MH_I2C_Read... [15:18:06]Read from MH i2c: 01 07 00 F5 5E 00 00 00 00 00 FF 0F 68 [15:18:06]RasterBufferAndPrint [15:18:06]line Счет N : (1)949695 [15:18:06]line ИНН: 02508201610067 [15:18:06]line Контрольно-Кассовый Чек [15:18:06]line ПРОДАЖА [15:18:06]line ТРК (МРК, ГНК) : 44 [15:18:06]line Товар: 2710194800 [15:18:06]line ДТ-К-5 [15:18:06]line 10.600 * 75.53 [15:18:06]line = 800.62 [15:18:06]line НДС 12% НСП 1% [15:18:06]line > о реализуемом товаре [15:18:06]line ОКРУГЛЕНИЕ: -0.62 [15:18:06]line ИТОГО: 800.00 [15:18:06]line НСП 1% : 7.08 [15:18:06]line НДС 12% : 85.02 [15:18:06]line Наличными: 0.00 [15:18:06]line Безнал.: 800.00 [15:18:06]line Место: АЗС № 134 "Партнер Нефть" [15:18:06]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:18:06]line СНО: Общий режим [15:18:06]line Чек 185 29.07.2024 15:18 [15:18:06]line Смена: 434 ФФД: 1.0 [15:18:06]line ЗНМ: 0300000044 [15:18:06]line РНМ: 0000000000092660 [15:18:06]line Версия ККМ: 001 [15:18:07]line Платежная система: Бакай Банк [15:18:07]line ФМ: 0000000000874939 [15:18:07]line ФД: 118809 [15:18:07]line ФПД: 60330491635192 [15:18:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T151811&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118809&fm=60330491635192&tin=02508201610067®Number=0000000000092660&sum=80000 [15:18:07]OFD Sender: Processing packet 118809 [packets to send 86, broken 85] [15:18:07]ProducePacketName [15:18:07]name=ofd_packets/00118809 [15:18:07]OFD Sender: To server: pG, [15:18:07]CommunicateWithHost lk.salyk.kg:30040 [15:18:07]ConnectInit lk.salyk.kg [15:18:07]written 0, free lines is 4095 [15:18:07]Connected sock=9 [15:18:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 39 DF 04 01 C8 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 29 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 B3 B2 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 19 D0 01 00 35 04 06 00 36 DE C9 85 E5 F8 FA EA 44 73 30 DE 6E F1 [15:18:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 40 F3 47 00 8A BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 19 D0 01 00 F4 03 04 00 40 60 A7 66 B6 04 01 00 00 45 76 C0 76 4E 6B 53 5F [15:18:07]CommunicateWithHost err = 0 [15:18:07]CheckOFDResponse [15:18:07]1017 (14) - 77093643461234 [15:18:07]1041 (16) - 0000000000874939 [15:18:07]1040 (4) - 118809 [15:18:07]1012 (4) - 29.07.2024 09:26 [15:18:07]1206 (1) - 0 [15:18:07]OFD Sender: Remove packet 118809 [15:18:07]ProducePacketName [15:18:07]name=ofd_packets/00118809 [15:18:07]NVStorageDeleteData [15:18:07]Write to MH i2c: 01 00 00 1F 5F 7E [15:18:07]Write i2c OK [15:18:07]MH_I2C_Read... [15:18:07]Read from MH i2c: 01 [15:18:07]MH_I2C_Read... [15:18:07]Read from MH i2c: 01 07 00 [15:18:07]MH_I2C_Read... [15:18:07]Read from MH i2c: 01 07 00 1F 5F 00 00 00 00 00 F2 0C 83 [15:18:07]RasterBufferAndPrint [15:18:07]line [15:18:07]line [15:18:07]line [15:18:07]line [15:18:07]line [15:18:07]written 0, free lines is 3320 [15:18:07]MH_Cut [15:18:07]Write to MH i2c: D1 01 00 26 5F 01 57 [15:18:07]Write i2c OK [15:18:07]MH_I2C_Read... [15:18:07]Read from MH i2c: D1 [15:18:07]MH_I2C_Read... [15:18:07]Read from MH i2c: D1 01 00 [15:18:07]MH_I2C_Read... [15:18:07]Read from MH i2c: D1 01 00 26 5F 00 56 [15:18:07]Write to MH i2c: 01 00 00 27 5F 86 [15:18:07]Write i2c OK [15:18:07]MH_I2C_Read... [15:18:07]OFD Sender: No OFD packet to send [15:18:08]*** Cut start [15:18:08]*** Partial cut [15:18:08]*** CUTSNS_PIN = 1 [15:18:08]*** CUTSNS_PIN = 0 [15:18:08]*** Brake cut motor [15:18:08]Read from MH i2c: 01 [15:18:08]MH_I2C_Read... [15:18:08]*** Stop cut motor [15:18:08]*** Cut end [15:18:08]Read from MH i2c: 01 07 00 [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: 01 07 00 27 5F 00 00 00 00 00 FF 0F 9B [15:18:08]process_action close_receipt done [15:18:08]requested_data is exist [15:18:08]produce_requested_data [15:18:08]requested_item fm.sn is exist - process it [15:18:08]wFMCommunicate request_size=4 [15:18:08]MH_SAM_APDU [15:18:08]CAPDU: 80 11 00 00 [15:18:08]Write to MH i2c: E2 08 00 28 5F 80 11 00 00 00 00 00 00 01 [15:18:08]Write i2c OK [15:18:08]MH_I2C_Read... [15:18:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:08]Read from MH i2c: E2 [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: E2 17 00 [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: E2 17 00 28 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5C [15:18:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:18:08]wFMCommunicate OK [15:18:08]requested_item fd.num is exist - process it [15:18:08]SAM_PROTO_GetFieldsCounters [15:18:08]wFMCommunicate request_size=4 [15:18:08]MH_SAM_APDU [15:18:08]CAPDU: 80 13 00 00 [15:18:08]Write to MH i2c: E2 08 00 29 5F 80 13 00 00 00 00 00 00 04 [15:18:08]Write i2c OK [15:18:08]MH_I2C_Read... [15:18:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:09]Read from MH i2c: E2 [15:18:09]MH_I2C_Read... [15:18:09]Read from MH i2c: E2 62 00 [15:18:09]MH_I2C_Read... [15:18:09]Read from MH i2c: E2 62 00 29 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 19 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [15:18: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 19 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:18:09]wFMCommunicate OK [15:18:09]SAM_PROTO_GetFieldsCounters done [15:18:09]requested_item shift.num is exist - process it [15:18:09]requested_item shift.opened is exist - process it [15:18:09]req_shift_opened [15:18:09]FM_GetShiftState [15:18:09]SAM_PROTO_GetShiftState [15:18:09]wFMCommunicate request_size=4 [15:18:09]MH_SAM_APDU [15:18:09]CAPDU: 80 13 01 00 [15:18:09]Write to MH i2c: E2 08 00 2A 5F 80 13 01 00 00 00 00 00 06 [15:18:09]Write i2c OK [15:18:09]MH_I2C_Read... [15:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:09]Read from MH i2c: E2 [15:18:09]MH_I2C_Read... [15:18:09]Read from MH i2c: E2 0E 00 [15:18:09]MH_I2C_Read... [15:18:09]Read from MH i2c: E2 0E 00 2A 5F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 34 [15:18:09]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:18:09]wFMCommunicate OK [15:18:09]SAM_PROTO_GetShiftState done [15:18:09]FM_GetShiftState done [15:18:09]req_shift_opened done [15:18:09]requested_item shift.open_date is exist - process it [15:18:09]req_shift_open_date [15:18:09]req_shift_open_date done [15:18:09]produce_requested_data done [15:18:09]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118809,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [15:18:09]process_action_free close_receipt [15:18:09]json_value_free [15:18:09]json_value_free done [15:18:09]process_json_proto returns [15:18:09]Send response to host [15:18:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118809,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [15:18:09]free response buf [15:18:09]execute_script done [15:18:09]execute_script returns [15:18:09]free content buf [15:18:09]Sock 10.Close socket [15:18:09]Sock 10.Thread stoped [15:18:12]OFD Sender: No OFD packet to send [15:18:17]OFD Sender: No OFD packet to send [15:18:22]OFD Sender: No OFD packet to send [15:18:27]OFD Sender: No OFD packet to send [15:18:32]OFD Sender: No OFD packet to send [15:18:37]OFD Sender: No OFD packet to send [15:18:42]OFD Sender: No OFD packet to send [15:18:47]OFD Sender: No OFD packet to send [15:18:52]OFD Sender: No OFD packet to send [15:18:57]OFD Sender: No OFD packet to send [15:19:02]OFD Sender: No OFD packet to send [15:19:07]OFD Sender: No OFD packet to send [15:19:12]OFD Sender: No OFD packet to send [15:19:17]OFD Sender: No OFD packet to send [15:19:22]OFD Sender: No OFD packet to send [15:19:27]OFD Sender: No OFD packet to send [15:19:32]OFD Sender: No OFD packet to send [15:19:37]OFD Sender: No OFD packet to send [15:19:42]OFD Sender: No OFD packet to send [15:19:47]OFD Sender: No OFD packet to send [15:19:52]OFD Sender: No OFD packet to send [15:19:57]OFD Sender: No OFD packet to send [15:20:02]accept exits with 7 [15:20:02]New connection [15:20:02]New thread 3067239780 created [15:20:02]Thread 3067383140 joined [15:20:02]Waiting for new connection... [15:20:02] Sock 7.Parse request [15:20:02]Sock 7.Check first char [15:20:02]Sock 7.First char is OK [15:20:02]request: POST /json_proto HTTP/1.0 [15:20:02]Method: POST [15:20:02]URL: /json_proto [15:20:02]Method is POST - this is cgi request [15:20:02]url: /json_proto [15:20:02]query_string will be loaded in cgi processing [15:20:02]execute_cgi json_proto POST (null) [15:20:02]execute_cgi path=json_proto method=POST [15:20:02]POST find Content-Length [15:20:02]Host: 172.17.45.7:8080 [15:20:02]Content-Length: 677 [15:20:02]Content-Type: application/json [15:20:02] [15:20:02]POST finish read [15:20:02]Found Content-Length = 677 [15:20:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:02]execute_script... [15:20:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:02]POST & json_proto [15:20:02]process_json_proto [15:20:02]json parsed OK: [15:20:02]protocol is kg_v1.0 [15:20:02]action value=close_receipt [15:20:02]process_action close_receipt [15:20:02]cmd_close_receipt [15:20:02]MH_GetDate [15:20:02]Write to MH i2c: F0 00 00 2B 5F 79 [15:20:02]Write i2c OK [15:20:02]MH_I2C_Read... [15:20:02]Read from MH i2c: F0 [15:20:02]MH_I2C_Read... [15:20:02]Read from MH i2c: F0 09 00 [15:20:02]MH_I2C_Read... [15:20:02]Read from MH i2c: F0 09 00 2B 5F 00 28 B3 A7 66 90 0F 3E 66 AD [15:20:02]GetLastDocTimeStamp 1722266291 [15:20:02]current date 1722266408 [15:20:02]FM_GetShiftState [15:20:02]SAM_PROTO_GetShiftState [15:20:02]wFMCommunicate request_size=4 [15:20:02]MH_SAM_APDU [15:20:02]CAPDU: 80 13 01 00 [15:20:02]Write to MH i2c: E2 08 00 2C 5F 80 13 01 00 00 00 00 00 08 [15:20:02]Write i2c OK [15:20:02]MH_I2C_Read... [15:20:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:02]Read from MH i2c: E2 [15:20:02]MH_I2C_Read... [15:20:02]Read from MH i2c: E2 0E 00 [15:20:02]MH_I2C_Read... [15:20:02]Read from MH i2c: E2 0E 00 2C 5F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 36 [15:20:02]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:20:02]wFMCommunicate OK [15:20:02]SAM_PROTO_GetShiftState done [15:20:02]FM_GetShiftState done [15:20:02]opened in 1722211641 [15:20:02]opened+sec_in_day 1722298041 [15:20:02]quantity*price = 50036 [15:20:02]sum+1 = 50037 [15:20:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 186 29.07.2024 15:20 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118810 ФПД: 95693929733884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T152008&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118810&fm=95693929733884&tin=02508201610067®Number=0000000000092660&sum=50000 [15:20:03]StoreToDocumentArchive [15:20:03]shift 434 fd 118810 [15:20:03]save to /storage/0434/doc_00118810 [15:20:03]save last doc name /storage/0434/doc_00118810 to /storage/kkm_last_doc_name [15:20:03]save OK [15:20:03]Clear old archive folders... [15:20:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:20:03]tlvbuf is 01F340E0 [15:20:03]SAM_PROTO_ClearQueue [15:20:03]wFMCommunicate request_size=4 [15:20:03]MH_SAM_APDU [15:20:03]CAPDU: 80 09 00 00 [15:20:03]Write to MH i2c: E2 08 00 39 5F 80 09 00 00 00 00 00 00 0A [15:20:03]Write i2c OK [15:20:03]MH_I2C_Read... [15:20:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:03]Read from MH i2c: E2 [15:20:03]MH_I2C_Read... [15:20:03]Read from MH i2c: E2 03 00 [15:20:03]MH_I2C_Read... [15:20:03]Read from MH i2c: E2 03 00 39 5F 00 90 00 0C [15:20:03]RAPDU: 90 00 [15:20:03]wFMCommunicate OK [15:20:03]SAM_PROTO_ClearQueue done [15:20:03]KKMCreateOFDPacket [15:20:03]OFDProtocolAddRootSTLVToBuf [15:20:03]FM_MakeSignedData [15:20:03]FM_MakeSignedData [15:20:03]SAM_PROTO_SignData [15:20:03]wFMCommunicate request_size=4 [15:20:03]MH_SAM_APDU [15:20:03]CAPDU: 80 0D 01 02 [15:20:03]Write to MH i2c: E2 08 00 3A 5F 80 0D 01 02 00 00 00 00 12 [15:20:03]Write i2c OK [15:20:03]MH_I2C_Read... [15:20:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:04]Read from MH i2c: E2 [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: E2 03 00 [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: E2 03 00 3A 5F 00 90 00 0D [15:20:04]RAPDU: 90 00 [15:20:04]wFMCommunicate OK [15:20:04]wFMCommunicate request_size=255 [15:20:04]MH_SAM_APDU [15:20:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 28 B3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A D0 01 00 35 04 06 00 57 [15:20:04]Write to MH i2c: E2 02 01 3B 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 28 B3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A D0 01 00 35 04 06 00 57 00 00 2D [15:20:04]Write i2c OK [15:20:04]MH_I2C_Read... [15:20:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:04]Read from MH i2c: E2 [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: E2 03 00 [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: E2 03 00 3B 5F 00 90 00 0E [15:20:04]RAPDU: 90 00 [15:20:04]wFMCommunicate OK [15:20:04]wFMCommunicate request_size=10 [15:20:04]MH_SAM_APDU [15:20:04]CAPDU: 80 0D 02 02 05 08 7A B0 5E FC [15:20:04]Write to MH i2c: E2 0D 00 3C 5F 80 0D 02 02 05 00 08 7A B0 5E FC 00 00 AB [15:20:04]Write i2c OK [15:20:04]MH_I2C_Read... [15:20:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:04]Read from MH i2c: E2 [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: E2 03 00 [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: E2 03 00 3C 5F 00 90 00 0F [15:20:04]RAPDU: 90 00 [15:20:04]wFMCommunicate OK [15:20:04]wFMCommunicate request_size=4 [15:20:04]MH_SAM_APDU [15:20:04]CAPDU: 80 0D 03 02 [15:20:04]Write to MH i2c: E2 08 00 3D 5F 80 0D 03 02 00 00 00 00 17 [15:20:04]Write i2c OK [15:20:04]MH_I2C_Read... [15:20:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:04]Read from MH i2c: E2 [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: E2 0B 00 [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: E2 0B 00 3D 5F 00 FF 89 C4 7F 3D B2 9F B8 90 00 29 [15:20:04]RAPDU: FF 89 C4 7F 3D B2 9F B8 90 00 [15:20:04]wFMCommunicate OK [15:20:04]SAM_PROTO_SignData done [15:20:04]FM_MakeSignedData done [15:20:04]CreateOFDProtocolMessage [15:20:04]wFMCommunicate request_size=4 [15:20:04]MH_SAM_APDU [15:20:04]CAPDU: 80 11 00 00 [15:20:04]Write to MH i2c: E2 08 00 3E 5F 80 11 00 00 00 00 00 00 17 [15:20:04]Write i2c OK [15:20:04]MH_I2C_Read... [15:20:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:04]Read from MH i2c: E2 [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: E2 17 00 [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: E2 17 00 3E 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 72 [15:20:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:20:04]wFMCommunicate OK [15:20:04]CreateOFDProtocolMessage done [15:20:04]OFDSenderStorePacket 118810 [15:20:04]StoreOFDPacket docnum=118810 [15:20:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B9 12 07 01 47 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 28 B3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A D0 01 00 35 04 06 00 57 08 7A B0 5E FC FF 89 C4 7F 3D B2 9F B8 [15:20:04]CheckFolder [15:20:04]dirname=/storage/ofd_packets [15:20:04]CheckFolder done [15:20:04]ProducePacketName [15:20:04]name=ofd_packets/00118810 [15:20:04]NVStorageSaveData ofd_packets/00118810 [15:20:04]File name is /storage/ofd_packets/00118810 [15:20:04]Write 301 bytes [15:20:04]NVStorageSaveData done [15:20:04]OFDSenderStorePacket done [15:20:04]KKMCreateOFDPacket done [15:20:04]NVStorageSaveData kkm_last_timestamp [15:20:04]File name is /storage/kkm_last_timestamp [15:20:04]Write 4 bytes [15:20:04]OFD Sender: Processing packet 118810 [packets to send 86, broken 85] [15:20:04]ProducePacketName [15:20:04]name=ofd_packets/00118810 [15:20:04]OFD Sender: To server: pG, [15:20:04]CommunicateWithHost lk.salyk.kg:30040 [15:20:04]ConnectInit lk.salyk.kg [15:20:04]NVStorageSaveData done [15:20:04]ExternCall_PrintAddStr [15:20:04]wPrintStart [15:20:04]Write to MH i2c: 01 00 00 3F 5F 9E [15:20:04]Write i2c OK [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: 01 [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: 01 07 00 [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: 01 07 00 3F 5F 00 00 00 00 00 FF 0F B3 [15:20:04]RasterBufferAndPrint [15:20:04]line Счет N : (1)949697 [15:20:04]line ИНН: 02508201610067 [15:20:04]line Контрольно-Кассовый Чек [15:20:04]line ПРОДАЖА [15:20:04]line ТРК (МРК, ГНК) : 51 [15:20:04]line Товар: 2710124130 [15:20:04]line Аи-92-К-4 [15:20:04]line 7.380 * 67.80 [15:20:04]line = 500.36 [15:20:04]line НДС 12% НСП 1% [15:20:04]line > о реализуемом товаре [15:20:04]line ОКРУГЛЕНИЕ: -0.36 [15:20:04]line ИТОГО: 500.00 [15:20:04]line Внесено: 500.00 [15:20:04]line СДАЧА: 0.00 [15:20:04]line НСП 1% : 4.43 [15:20:04]line НДС 12% : 53.14 [15:20:04]line Наличными: 500.00 [15:20:04]line Безнал.: 0.00 [15:20:04]line Место: АЗС № 134 "Партнер Нефть" [15:20:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:20:04]line СНО: Общий режим [15:20:04]line Чек 186 29.07.2024 15:20 [15:20:04]line Смена: 434 ФФД: 1.0 [15:20:04]line ЗНМ: 0300000044 [15:20:04]line РНМ: 0000000000092660 [15:20:04]line Версия ККМ: 001 [15:20:04]line ФМ: 0000000000874939 [15:20:04]line ФД: 118810 [15:20:04]line ФПД: 95693929733884 [15:20:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T152008&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118810&fm=95693929733884&tin=02508201610067®Number=0000000000092660&sum=50000 [15:20:04]written 0, free lines is 4095 [15:20:04]Connected sock=10 [15:20:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B9 12 07 01 47 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 28 B3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A D0 01 00 35 04 06 00 57 08 7A B0 5E FC FF 89 C4 7F 3D B2 9F B8 [15:20:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 DF 74 47 00 BC 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 34 39 33 39 10 04 04 00 1A D0 01 00 F4 03 04 00 B6 60 A7 66 B6 04 01 00 00 01 70 06 88 E6 2F 0E D2 [15:20:04]CommunicateWithHost err = 0 [15:20:04]CheckOFDResponse [15:20:04]1017 (14) - 77093643461234 [15:20:04]1041 (16) - 0000000000874939 [15:20:04]1040 (4) - 118810 [15:20:04]1012 (4) - 29.07.2024 09:28 [15:20:04]1206 (1) - 0 [15:20:04]OFD Sender: Remove packet 118810 [15:20:04]ProducePacketName [15:20:04]name=ofd_packets/00118810 [15:20:04]NVStorageDeleteData [15:20:04]Write to MH i2c: 01 00 00 69 5F C8 [15:20:04]Write i2c OK [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: 01 [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: 01 07 00 [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: 01 07 00 69 5F 00 00 00 00 00 E8 0C C3 [15:20:04]RasterBufferAndPrint [15:20:04]line [15:20:04]line [15:20:04]line [15:20:04]line [15:20:04]line [15:20:04]written 0, free lines is 3310 [15:20:04]MH_Cut [15:20:04]Write to MH i2c: D1 01 00 70 5F 01 A1 [15:20:04]Write i2c OK [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: D1 [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: D1 01 00 [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: D1 01 00 70 5F 00 A0 [15:20:04]Write to MH i2c: 01 00 00 71 5F D0 [15:20:04]Write i2c OK [15:20:04]MH_I2C_Read... [15:20:05]OFD Sender: No OFD packet to send [15:20:05]*** Cut start [15:20:05]*** Partial cut [15:20:05]*** CUTSNS_PIN = 1 [15:20:05]*** CUTSNS_PIN = 0 [15:20:05]*** Brake cut motor [15:20:06]Read from MH i2c: 01 [15:20:06]MH_I2C_Read... [15:20:06]*** Stop cut motor [15:20:06]*** Cut end [15:20:06]Read from MH i2c: 01 07 00 [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: 01 07 00 71 5F 00 00 00 00 00 FF 0F E5 [15:20:06]process_action close_receipt done [15:20:06]requested_data is exist [15:20:06]produce_requested_data [15:20:06]requested_item fm.sn is exist - process it [15:20:06]wFMCommunicate request_size=4 [15:20:06]MH_SAM_APDU [15:20:06]CAPDU: 80 11 00 00 [15:20:06]Write to MH i2c: E2 08 00 72 5F 80 11 00 00 00 00 00 00 4B [15:20:06]Write i2c OK [15:20:06]MH_I2C_Read... [15:20:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:06]Read from MH i2c: E2 [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: E2 17 00 [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: E2 17 00 72 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A6 [15:20:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:20:06]wFMCommunicate OK [15:20:06]requested_item fd.num is exist - process it [15:20:06]SAM_PROTO_GetFieldsCounters [15:20:06]wFMCommunicate request_size=4 [15:20:06]MH_SAM_APDU [15:20:06]CAPDU: 80 13 00 00 [15:20:06]Write to MH i2c: E2 08 00 73 5F 80 13 00 00 00 00 00 00 4E [15:20:06]Write i2c OK [15:20:06]MH_I2C_Read... [15:20:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:06]Read from MH i2c: E2 [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: E2 62 00 [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: E2 62 00 73 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1A D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [15:20: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1A D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:20:06]wFMCommunicate OK [15:20:06]SAM_PROTO_GetFieldsCounters done [15:20:06]requested_item shift.num is exist - process it [15:20:06]requested_item shift.opened is exist - process it [15:20:06]req_shift_opened [15:20:06]FM_GetShiftState [15:20:06]SAM_PROTO_GetShiftState [15:20:06]wFMCommunicate request_size=4 [15:20:06]MH_SAM_APDU [15:20:06]CAPDU: 80 13 01 00 [15:20:06]Write to MH i2c: E2 08 00 74 5F 80 13 01 00 00 00 00 00 50 [15:20:06]Write i2c OK [15:20:06]MH_I2C_Read... [15:20:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:06]Read from MH i2c: E2 [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: E2 0E 00 [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: E2 0E 00 74 5F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 7E [15:20:06]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:20:06]wFMCommunicate OK [15:20:06]SAM_PROTO_GetShiftState done [15:20:06]FM_GetShiftState done [15:20:06]req_shift_opened done [15:20:06]requested_item shift.open_date is exist - process it [15:20:06]req_shift_open_date [15:20:06]req_shift_open_date done [15:20:06]produce_requested_data done [15:20:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118810,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [15:20:06]process_action_free close_receipt [15:20:06]json_value_free [15:20:06]json_value_free done [15:20:06]process_json_proto returns [15:20:06]Send response to host [15:20:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118810,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [15:20:06]free response buf [15:20:06]execute_script done [15:20:06]execute_script returns [15:20:06]free content buf [15:20:06]Sock 7.Close socket [15:20:06]Sock 7.Thread stoped [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:22]accept exits with 9 [15:20:22]New connection [15:20:22]New thread 3067383140 created [15:20:22]Thread 3067239780 joined [15:20:22]Waiting for new connection... [15:20:22] Sock 9.Parse request [15:20:22]Sock 9.Check first char [15:20:22]Sock 9.First char is OK [15:20:22]request: POST /json_proto HTTP/1.0 [15:20:22]Method: POST [15:20:22]URL: /json_proto [15:20:22]Method is POST - this is cgi request [15:20:22]url: /json_proto [15:20:22]query_string will be loaded in cgi processing [15:20:22]execute_cgi json_proto POST (null) [15:20:22]execute_cgi path=json_proto method=POST [15:20:22]POST find Content-Length [15:20:22]Host: 172.17.45.7:8080 [15:20:22]Content-Length: 679 [15:20:22]Content-Type: application/json [15:20:22] [15:20:22]POST finish read [15:20:22]Found Content-Length = 679 [15:20:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:22]execute_script... [15:20: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)949696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:22]POST & json_proto [15:20:22]process_json_proto [15:20:22]json parsed OK: [15:20:22]protocol is kg_v1.0 [15:20:22]action value=close_receipt [15:20:22]process_action close_receipt [15:20:22]cmd_close_receipt [15:20:22]MH_GetDate [15:20:22]Write to MH i2c: F0 00 00 75 5F C3 [15:20:22]Write i2c OK [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: F0 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: F0 09 00 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: F0 09 00 75 5F 00 3D B3 A7 66 90 0F 3E 66 0C [15:20:22]GetLastDocTimeStamp 1722266408 [15:20:22]current date 1722266429 [15:20:22]FM_GetShiftState [15:20:22]SAM_PROTO_GetShiftState [15:20:22]wFMCommunicate request_size=4 [15:20:22]MH_SAM_APDU [15:20:22]CAPDU: 80 13 01 00 [15:20:22]Write to MH i2c: E2 08 00 76 5F 80 13 01 00 00 00 00 00 52 [15:20:22]Write i2c OK [15:20:22]MH_I2C_Read... [15:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:22]Read from MH i2c: E2 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: E2 0E 00 [15:20:22]MH_I2C_Read... [15:20:22]Read from MH i2c: E2 0E 00 76 5F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 80 [15:20:22]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:20:22]wFMCommunicate OK [15:20:22]SAM_PROTO_GetShiftState done [15:20:22]FM_GetShiftState done [15:20:22]opened in 1722211641 [15:20:22]opened+sec_in_day 1722298041 [15:20:22]quantity*price = 120015 [15:20:22]sum+1 = 120016 [15:20:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 187 29.07.2024 15:20 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118811 ФПД: 134770497058311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T152029&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118811&fm=134770497058311&tin=02508201610067®Number=0000000000092660&sum=120000 [15:20:24]StoreToDocumentArchive [15:20:24]shift 434 fd 118811 [15:20:24]save to /storage/0434/doc_00118811 [15:20:24]save last doc name /storage/0434/doc_00118811 to /storage/kkm_last_doc_name [15:20:24]save OK [15:20:24]Clear old archive folders... [15:20:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:20:24]tlvbuf is B6FBE220 [15:20:24]SAM_PROTO_ClearQueue [15:20:24]wFMCommunicate request_size=4 [15:20:24]MH_SAM_APDU [15:20:24]CAPDU: 80 09 00 00 [15:20:24]Write to MH i2c: E2 08 00 83 5F 80 09 00 00 00 00 00 00 54 [15:20:24]Write i2c OK [15:20:24]MH_I2C_Read... [15:20:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:24]Read from MH i2c: E2 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: E2 03 00 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: E2 03 00 83 5F 00 90 00 56 [15:20:24]RAPDU: 90 00 [15:20:24]wFMCommunicate OK [15:20:24]SAM_PROTO_ClearQueue done [15:20:24]KKMCreateOFDPacket [15:20:24]OFDProtocolAddRootSTLVToBuf [15:20:24]FM_MakeSignedData [15:20:24]FM_MakeSignedData [15:20:24]SAM_PROTO_SignData [15:20:24]wFMCommunicate request_size=4 [15:20:24]MH_SAM_APDU [15:20:24]CAPDU: 80 0D 01 02 [15:20:24]Write to MH i2c: E2 08 00 84 5F 80 0D 01 02 00 00 00 00 5C [15:20:24]Write i2c OK [15:20:24]MH_I2C_Read... [15:20:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:24]Read from MH i2c: E2 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: E2 03 00 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: E2 03 00 84 5F 00 90 00 57 [15:20:24]RAPDU: 90 00 [15:20:24]wFMCommunicate OK [15:20:24]wFMCommunicate request_size=255 [15:20:24]MH_SAM_APDU [15:20:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 3D B3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B D0 01 00 35 04 06 00 7A 92 B3 9A [15:20:24]Write to MH i2c: E2 02 01 85 5F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 3D B3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B D0 01 00 35 04 06 00 7A 92 B3 9A 00 00 0A [15:20:24]Write i2c OK [15:20:24]MH_I2C_Read... [15:20:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:24]Read from MH i2c: E2 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: E2 03 00 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: E2 03 00 85 5F 00 90 00 58 [15:20:24]RAPDU: 90 00 [15:20:24]wFMCommunicate OK [15:20:24]wFMCommunicate request_size=7 [15:20:24]MH_SAM_APDU [15:20:24]CAPDU: 80 0D 02 02 02 76 07 [15:20:24]Write to MH i2c: E2 0A 00 86 5F 80 0D 02 02 02 00 76 07 00 00 E0 [15:20:24]Write i2c OK [15:20:24]MH_I2C_Read... [15:20:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:24]Read from MH i2c: E2 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: E2 03 00 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: E2 03 00 86 5F 00 90 00 59 [15:20:24]RAPDU: 90 00 [15:20:24]wFMCommunicate OK [15:20:24]wFMCommunicate request_size=4 [15:20:24]MH_SAM_APDU [15:20:24]CAPDU: 80 0D 03 02 [15:20:24]Write to MH i2c: E2 08 00 87 5F 80 0D 03 02 00 00 00 00 61 [15:20:24]Write i2c OK [15:20:24]MH_I2C_Read... [15:20:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:24]Read from MH i2c: E2 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: E2 0B 00 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: E2 0B 00 87 5F 00 3E 7F AE EA EF 93 93 09 90 00 D5 [15:20:24]RAPDU: 3E 7F AE EA EF 93 93 09 90 00 [15:20:24]wFMCommunicate OK [15:20:24]SAM_PROTO_SignData done [15:20:24]FM_MakeSignedData done [15:20:24]CreateOFDProtocolMessage [15:20:24]wFMCommunicate request_size=4 [15:20:24]MH_SAM_APDU [15:20:24]CAPDU: 80 11 00 00 [15:20:24]Write to MH i2c: E2 08 00 88 5F 80 11 00 00 00 00 00 00 61 [15:20:24]Write i2c OK [15:20:24]MH_I2C_Read... [15:20:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:24]Read from MH i2c: E2 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: E2 17 00 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: E2 17 00 88 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BC [15:20:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:20:24]wFMCommunicate OK [15:20:24]CreateOFDProtocolMessage done [15:20:24]OFDSenderStorePacket 118811 [15:20:24]StoreOFDPacket docnum=118811 [15:20:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 05 57 04 01 6A 05 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 3D B3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B D0 01 00 35 04 06 00 7A 92 B3 9A 76 07 3E 7F AE EA EF 93 93 09 [15:20:24]CheckFolder [15:20:24]dirname=/storage/ofd_packets [15:20:24]CheckFolder done [15:20:24]ProducePacketName [15:20:24]name=ofd_packets/00118811 [15:20:24]NVStorageSaveData ofd_packets/00118811 [15:20:24]File name is /storage/ofd_packets/00118811 [15:20:24]Write 298 bytes [15:20:24]NVStorageSaveData done [15:20:24]OFDSenderStorePacket done [15:20:24]KKMCreateOFDPacket done [15:20:24]NVStorageSaveData kkm_last_timestamp [15:20:24]File name is /storage/kkm_last_timestamp [15:20:24]Write 4 bytes [15:20:24]NVStorageSaveData done [15:20:24]ExternCall_PrintAddStr [15:20:24]wPrintStart [15:20:24]Write to MH i2c: 01 00 00 89 5F E8 [15:20:24]Write i2c OK [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: 01 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: 01 07 00 [15:20:24]MH_I2C_Read... [15:20:24]Read from MH i2c: 01 07 00 89 5F 00 00 00 00 00 FF 0F FD [15:20:24]RasterBufferAndPrint [15:20:24]line Счет N : (1)949696 [15:20:24]line ИНН: 02508201610067 [15:20:24]line Контрольно-Кассовый Чек [15:20:24]line ПРОДАЖА [15:20:24]line ТРК (МРК, ГНК) : 64 [15:20:24]line Товар: 2710194800 [15:20:24]line ДТ-К-5 [15:20:24]line 15.750 * 76.20 [15:20:24]line = 1200.15 [15:20:24]line НДС 12% НСП 1% [15:20:24]line > о реализуемом товаре [15:20:24]line ОКРУГЛЕНИЕ: -0.15 [15:20:24]line ИТОГО: 1200.00 [15:20:24]line Внесено: 1200.00 [15:20:24]line СДАЧА: 0.00 [15:20:24]line НСП 1% : 10.62 [15:20:24]line НДС 12% : 127.45 [15:20:24]line Наличными: 1200.00 [15:20:24]line Безнал.: 0.00 [15:20:24]line Место: АЗС № 134 "Партнер Нефть" [15:20:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:20:24]line СНО: Общий режим [15:20:24]line Чек 187 29.07.2024 15:20 [15:20:24]line Смена: 434 ФФД: 1.0 [15:20:24]line ЗНМ: 0300000044 [15:20:24]line РНМ: 0000000000092660 [15:20:24]line Версия ККМ: 001 [15:20:24]line ФМ: 0000000000874939 [15:20:24]line ФД: 118811 [15:20:24]line ФПД: 134770497058311 [15:20:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T152029&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118811&fm=134770497058311&tin=02508201610067®Number=0000000000092660&sum=120000 [15:20:24]written 0, free lines is 4095 [15:20:24]OFD Sender: Processing packet 118811 [packets to send 86, broken 85] [15:20:24]ProducePacketName [15:20:24]name=ofd_packets/00118811 [15:20:24]OFD Sender: To server: pG, [15:20:24]CommunicateWithHost lk.salyk.kg:30040 [15:20:24]ConnectInit lk.salyk.kg [15:20:24]Connected sock=10 [15: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 34 39 33 39 0C 01 00 00 05 57 04 01 6A 05 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 3D B3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B D0 01 00 35 04 06 00 7A 92 B3 9A 76 07 3E 7F AE EA EF 93 93 09 [15:20:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 54 60 47 00 02 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B D0 01 00 F4 03 04 00 CA 60 A7 66 B6 04 01 00 00 88 4F 41 E1 37 33 DA CD [15:20:24]CommunicateWithHost err = 0 [15:20:24]CheckOFDResponse [15:20:24]1017 (14) - 77093643461234 [15:20:24]1041 (16) - 0000000000874939 [15:20:24]1040 (4) - 118811 [15:20:24]1012 (4) - 29.07.2024 09:28 [15:20:24]1206 (1) - 0 [15:20:24]OFD Sender: Remove packet 118811 [15:20:24]ProducePacketName [15:20:24]name=ofd_packets/00118811 [15:20:24]NVStorageDeleteData [15:20:25]Write to MH i2c: 01 00 00 B3 5F 12 [15:20:25]Write i2c OK [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: 01 [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: 01 07 00 [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: 01 07 00 B3 5F 00 00 00 00 00 F1 0C 16 [15:20:25]RasterBufferAndPrint [15:20:25]line [15:20:25]line [15:20:25]line [15:20:25]line [15:20:25]line [15:20:25]written 0, free lines is 3319 [15:20:25]MH_Cut [15:20:25]Write to MH i2c: D1 01 00 BA 5F 01 EB [15:20:25]Write i2c OK [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: D1 [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: D1 01 00 [15:20:25]MH_I2C_Read... [15:20:25]Read from MH i2c: D1 01 00 BA 5F 00 EA [15:20:25]Write to MH i2c: 01 00 00 BB 5F 1A [15:20:25]Write i2c OK [15:20:25]MH_I2C_Read... [15:20:25]OFD Sender: No OFD packet to send [15:20:25]*** Cut start [15:20:25]*** Partial cut [15:20:25]*** CUTSNS_PIN = 1 [15:20:25]*** CUTSNS_PIN = 0 [15:20:26]*** Brake cut motor [15:20:26]Read from MH i2c: 01 [15:20:26]MH_I2C_Read... [15:20:26]*** Stop cut motor [15:20:26]*** Cut end [15:20:26]Read from MH i2c: 01 07 00 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: 01 07 00 BB 5F 00 00 00 00 00 FF 0F 2F [15:20:26]process_action close_receipt done [15:20:26]requested_data is exist [15:20:26]produce_requested_data [15:20:26]requested_item fm.sn is exist - process it [15:20:26]wFMCommunicate request_size=4 [15:20:26]MH_SAM_APDU [15:20:26]CAPDU: 80 11 00 00 [15:20:26]Write to MH i2c: E2 08 00 BC 5F 80 11 00 00 00 00 00 00 95 [15:20:26]Write i2c OK [15:20:26]MH_I2C_Read... [15:20:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:26]Read from MH i2c: E2 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: E2 17 00 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: E2 17 00 BC 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F0 [15:20:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:20:26]wFMCommunicate OK [15:20:26]requested_item fd.num is exist - process it [15:20:26]SAM_PROTO_GetFieldsCounters [15:20:26]wFMCommunicate request_size=4 [15:20:26]MH_SAM_APDU [15:20:26]CAPDU: 80 13 00 00 [15:20:26]Write to MH i2c: E2 08 00 BD 5F 80 13 00 00 00 00 00 00 98 [15:20:26]Write i2c OK [15:20:26]MH_I2C_Read... [15:20:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:26]Read from MH i2c: E2 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: E2 62 00 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: E2 62 00 BD 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1B D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [15:20: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1B D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:20:26]wFMCommunicate OK [15:20:26]SAM_PROTO_GetFieldsCounters done [15:20:26]requested_item shift.num is exist - process it [15:20:26]requested_item shift.opened is exist - process it [15:20:26]req_shift_opened [15:20:26]FM_GetShiftState [15:20:26]SAM_PROTO_GetShiftState [15:20:26]wFMCommunicate request_size=4 [15:20:26]MH_SAM_APDU [15:20:26]CAPDU: 80 13 01 00 [15:20:26]Write to MH i2c: E2 08 00 BE 5F 80 13 01 00 00 00 00 00 9A [15:20:26]Write i2c OK [15:20:26]MH_I2C_Read... [15:20:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:26]Read from MH i2c: E2 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: E2 0E 00 [15:20:26]MH_I2C_Read... [15:20:26]Read from MH i2c: E2 0E 00 BE 5F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C8 [15:20:26]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:20:26]wFMCommunicate OK [15:20:26]SAM_PROTO_GetShiftState done [15:20:26]FM_GetShiftState done [15:20:26]req_shift_opened done [15:20:26]requested_item shift.open_date is exist - process it [15:20:26]req_shift_open_date [15:20:26]req_shift_open_date done [15:20:26]produce_requested_data done [15:20:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118811,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [15:20:26]process_action_free close_receipt [15:20:26]json_value_free [15:20:26]json_value_free done [15:20:26]process_json_proto returns [15:20:26]Send response to host [15:20:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118811,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [15:20:26]free response buf [15:20:26]execute_script done [15:20:26]execute_script returns [15:20:26]free content buf [15:20:26]Sock 9.Close socket [15:20:26]Sock 9.Thread stoped [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:32]accept exits with 7 [15:21:32]New connection [15:21:32]New thread 3067239780 created [15:21:32]Thread 3067383140 joined [15:21:32]Waiting for new connection... [15:21:32] Sock 7.Parse request [15:21:32]Sock 7.Check first char [15:21:32]Sock 7.First char is OK [15:21:32]request: POST /json_proto HTTP/1.0 [15:21:32]Method: POST [15:21:32]URL: /json_proto [15:21:32]Method is POST - this is cgi request [15:21:32]url: /json_proto [15:21:32]query_string will be loaded in cgi processing [15:21:32]execute_cgi json_proto POST (null) [15:21:32]execute_cgi path=json_proto method=POST [15:21:32]POST find Content-Length [15:21:32]Host: 172.17.45.7:8080 [15:21:32]Content-Length: 677 [15:21:32]Content-Type: application/json [15:21:32] [15:21:32]POST finish read [15:21:32]Found Content-Length = 677 [15:21:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.220, "sum" : 150.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:32]execute_script... [15:21:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.220, "sum" : 150.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:32]POST & json_proto [15:21:32]process_json_proto [15:21:32]json parsed OK: [15:21:32]protocol is kg_v1.0 [15:21:32]action value=close_receipt [15:21:32]process_action close_receipt [15:21:32]cmd_close_receipt [15:21:32]MH_GetDate [15:21:32]Write to MH i2c: F0 00 00 BF 5F 0D [15:21:32]Write i2c OK [15:21:32]MH_I2C_Read... [15:21:32]Read from MH i2c: F0 [15:21:32]MH_I2C_Read... [15:21:32]Read from MH i2c: F0 09 00 [15:21:32]MH_I2C_Read... [15:21:32]Read from MH i2c: F0 09 00 BF 5F 00 82 B3 A7 66 90 0F 3E 66 9B [15:21:32]GetLastDocTimeStamp 1722266429 [15:21:32]current date 1722266498 [15:21:32]FM_GetShiftState [15:21:32]SAM_PROTO_GetShiftState [15:21:32]wFMCommunicate request_size=4 [15:21:32]MH_SAM_APDU [15:21:32]CAPDU: 80 13 01 00 [15:21:32]Write to MH i2c: E2 08 00 C0 5F 80 13 01 00 00 00 00 00 9C [15:21:32]Write i2c OK [15:21:32]MH_I2C_Read... [15:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:32]Read from MH i2c: E2 [15:21:32]MH_I2C_Read... [15:21:32]Read from MH i2c: E2 0E 00 [15:21:32]MH_I2C_Read... [15:21:32]Read from MH i2c: E2 0E 00 C0 5F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 CA [15:21:32]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:21:32]wFMCommunicate OK [15:21:32]SAM_PROTO_GetShiftState done [15:21:32]FM_GetShiftState done [15:21:32]opened in 1722211641 [15:21:32]opened+sec_in_day 1722298041 [15:21:32]quantity*price = 15051 [15:21:32]sum+1 = 15053 [15:21:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 188 29.07.2024 15:21 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118812 ФПД: 123502850007301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T152138&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118812&fm=123502850007301&tin=02508201610067®Number=0000000000092660&sum=15000 [15:21:33]StoreToDocumentArchive [15:21:33]shift 434 fd 118812 [15:21:33]save to /storage/0434/doc_00118812 [15:21:33]save last doc name /storage/0434/doc_00118812 to /storage/kkm_last_doc_name [15:21:33]save OK [15:21:33]Clear old archive folders... [15:21:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:33]tlvbuf is B6E11610 [15:21:33]SAM_PROTO_ClearQueue [15:21:33]wFMCommunicate request_size=4 [15:21:33]MH_SAM_APDU [15:21:33]CAPDU: 80 09 00 00 [15:21:33]Write to MH i2c: E2 08 00 CD 5F 80 09 00 00 00 00 00 00 9E [15:21:33]Write i2c OK [15:21:33]MH_I2C_Read... [15:21:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:33]Read from MH i2c: E2 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 03 00 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 03 00 CD 5F 00 90 00 A0 [15:21:33]RAPDU: 90 00 [15:21:33]wFMCommunicate OK [15:21:33]SAM_PROTO_ClearQueue done [15:21:33]KKMCreateOFDPacket [15:21:33]OFDProtocolAddRootSTLVToBuf [15:21:33]FM_MakeSignedData [15:21:33]FM_MakeSignedData [15:21:33]SAM_PROTO_SignData [15:21:33]wFMCommunicate request_size=4 [15:21:33]MH_SAM_APDU [15:21:33]CAPDU: 80 0D 01 02 [15:21:33]Write to MH i2c: E2 08 00 CE 5F 80 0D 01 02 00 00 00 00 A6 [15:21:33]Write i2c OK [15:21:33]MH_I2C_Read... [15:21:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:33]Read from MH i2c: E2 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 03 00 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 03 00 CE 5F 00 90 00 A1 [15:21:33]RAPDU: 90 00 [15:21:33]wFMCommunicate OK [15:21:33]wFMCommunicate request_size=255 [15:21:33]MH_SAM_APDU [15:21:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 82 B3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1C D0 01 00 35 04 06 00 70 [15:21:33]Write to MH i2c: E2 02 01 CF 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 82 B3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1C D0 01 00 35 04 06 00 70 00 00 80 [15:21:33]Write i2c OK [15:21:33]MH_I2C_Read... [15:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:33]Read from MH i2c: E2 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 03 00 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 03 00 CF 5F 00 90 00 A2 [15:21:33]RAPDU: 90 00 [15:21:33]wFMCommunicate OK [15:21:33]wFMCommunicate request_size=10 [15:21:33]MH_SAM_APDU [15:21:33]CAPDU: 80 0D 02 02 05 53 3F 80 E1 05 [15:21:33]Write to MH i2c: E2 0D 00 D0 5F 80 0D 02 02 05 00 53 3F 80 E1 05 00 00 AB [15:21:33]Write i2c OK [15:21:33]MH_I2C_Read... [15:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:33]Read from MH i2c: E2 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 03 00 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 03 00 D0 5F 00 90 00 A3 [15:21:33]RAPDU: 90 00 [15:21:33]wFMCommunicate OK [15:21:33]wFMCommunicate request_size=4 [15:21:33]MH_SAM_APDU [15:21:33]CAPDU: 80 0D 03 02 [15:21:33]Write to MH i2c: E2 08 00 D1 5F 80 0D 03 02 00 00 00 00 AB [15:21:33]Write i2c OK [15:21:33]MH_I2C_Read... [15:21:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:33]Read from MH i2c: E2 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 0B 00 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 0B 00 D1 5F 00 8F 1B E7 B4 4B 19 87 16 90 00 F2 [15:21:33]RAPDU: 8F 1B E7 B4 4B 19 87 16 90 00 [15:21:33]wFMCommunicate OK [15:21:33]SAM_PROTO_SignData done [15:21:33]FM_MakeSignedData done [15:21:33]CreateOFDProtocolMessage [15:21:33]wFMCommunicate request_size=4 [15:21:33]MH_SAM_APDU [15:21:33]CAPDU: 80 11 00 00 [15:21:33]Write to MH i2c: E2 08 00 D2 5F 80 11 00 00 00 00 00 00 AB [15:21:33]Write i2c OK [15:21:33]MH_I2C_Read... [15:21:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:33]Read from MH i2c: E2 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 17 00 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 17 00 D2 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 06 [15:21:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:21:33]wFMCommunicate OK [15:21:33]CreateOFDProtocolMessage done [15:21:33]OFDSenderStorePacket 118812 [15:21:33]StoreOFDPacket docnum=118812 [15:21:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B2 92 07 01 AD E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 82 B3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1C D0 01 00 35 04 06 00 70 53 3F 80 E1 05 8F 1B E7 B4 4B 19 87 16 [15:21:33]CheckFolder [15:21:33]dirname=/storage/ofd_packets [15:21:33]CheckFolder done [15:21:33]ProducePacketName [15:21:33]name=ofd_packets/00118812 [15:21:33]NVStorageSaveData ofd_packets/00118812 [15:21:33]File name is /storage/ofd_packets/00118812 [15:21:33]Write 301 bytes [15:21:33]NVStorageSaveData done [15:21:33]OFDSenderStorePacket done [15:21:33]KKMCreateOFDPacket done [15:21:33]NVStorageSaveData kkm_last_timestamp [15:21:33]File name is /storage/kkm_last_timestamp [15:21:33]Write 4 bytes [15:21:33]NVStorageSaveData done [15:21:33]ExternCall_PrintAddStr [15:21:33]wPrintStart [15:21:33]Write to MH i2c: 01 00 00 D3 5F 32 [15:21:33]Write i2c OK [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: 01 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: 01 07 00 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: 01 07 00 D3 5F 00 00 00 00 00 FF 0F 47 [15:21:33]RasterBufferAndPrint [15:21:33]line Счет N : (1)949698 [15:21:33]line ИНН: 02508201610067 [15:21:33]line Контрольно-Кассовый Чек [15:21:33]line ПРОДАЖА [15:21:33]line ТРК (МРК, ГНК) : 31 [15:21:33]line Товар: 2710124130 [15:21:33]line Аи-92-К-4 [15:21:33]line 2.220 * 67.80 [15:21:33]line = 150.52 [15:21:33]line НДС 12% НСП 1% [15:21:33]line > о реализуемом товаре [15:21:33]line ОКРУГЛЕНИЕ: -0.52 [15:21:33]line ИТОГО: 150.00 [15:21:33]line Внесено: 150.00 [15:21:33]line СДАЧА: 0.00 [15:21:33]line НСП 1% : 1.33 [15:21:33]line НДС 12% : 15.98 [15:21:33]line Наличными: 150.00 [15:21:33]line Безнал.: 0.00 [15:21:33]line Место: АЗС № 134 "Партнер Нефть" [15:21:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:21:33]line СНО: Общий режим [15:21:33]line Чек 188 29.07.2024 15:21 [15:21:33]line Смена: 434 ФФД: 1.0 [15:21:33]line ЗНМ: 0300000044 [15:21:33]line РНМ: 0000000000092660 [15:21:33]line Версия ККМ: 001 [15:21:33]line ФМ: 0000000000874939 [15:21:33]line ФД: 118812 [15:21:33]line ФПД: 123502850007301 [15:21:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T152138&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118812&fm=123502850007301&tin=02508201610067®Number=0000000000092660&sum=15000 [15:21:34]written 0, free lines is 4095 [15:21:34]OFD Sender: Processing packet 118812 [packets to send 86, broken 85] [15:21:34]ProducePacketName [15:21:34]name=ofd_packets/00118812 [15:21:34]OFD Sender: To server: pG, [15:21:34]CommunicateWithHost lk.salyk.kg:30040 [15:21:34]ConnectInit lk.salyk.kg [15:21:34]Connected sock=10 [15:21:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B2 92 07 01 AD E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 82 B3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1C D0 01 00 35 04 06 00 70 53 3F 80 E1 05 8F 1B E7 B4 4B 19 87 16 [15:21:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5C 19 47 00 A1 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 34 39 33 39 10 04 04 00 1C D0 01 00 F4 03 04 00 0F 61 A7 66 B6 04 01 00 00 25 D4 83 B6 2D 45 22 BC [15:21:34]CommunicateWithHost err = 0 [15:21:34]CheckOFDResponse [15:21:34]1017 (14) - 77093643461234 [15:21:34]1041 (16) - 0000000000874939 [15:21:34]1040 (4) - 118812 [15:21:34]1012 (4) - 29.07.2024 09:29 [15:21:34]1206 (1) - 0 [15:21:34]OFD Sender: Remove packet 118812 [15:21:34]ProducePacketName [15:21:34]name=ofd_packets/00118812 [15:21:34]NVStorageDeleteData [15:21:34]Write to MH i2c: 01 00 00 FD 5F 5C [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: 01 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: 01 07 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: 01 07 00 FD 5F 00 00 00 00 00 D4 0C 43 [15:21:34]RasterBufferAndPrint [15:21:34]line [15:21:34]line [15:21:34]line [15:21:34]line [15:21:34]line [15:21:34]written 0, free lines is 3290 [15:21:34]MH_Cut [15:21:34]Write to MH i2c: D1 01 00 04 60 01 36 [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: D1 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: D1 01 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: D1 01 00 04 60 00 35 [15:21:34]Write to MH i2c: 01 00 00 05 60 65 [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]OFD Sender: No OFD packet to send [15:21:35]*** Cut start [15:21:35]*** Partial cut [15:21:35]*** CUTSNS_PIN = 1 [15:21:35]*** CUTSNS_PIN = 0 [15:21:35]*** Brake cut motor [15:21:35]Read from MH i2c: 01 [15:21:35]MH_I2C_Read... [15:21:35]*** Stop cut motor [15:21:35]*** Cut end [15:21:35]Read from MH i2c: 01 07 00 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: 01 07 00 05 60 00 00 00 00 00 FF 0F 7A [15:21:35]process_action close_receipt done [15:21:35]requested_data is exist [15:21:35]produce_requested_data [15:21:35]requested_item fm.sn is exist - process it [15:21:35]wFMCommunicate request_size=4 [15:21:35]MH_SAM_APDU [15:21:35]CAPDU: 80 11 00 00 [15:21:35]Write to MH i2c: E2 08 00 06 60 80 11 00 00 00 00 00 00 E0 [15:21:35]Write i2c OK [15:21:35]MH_I2C_Read... [15:21:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:35]Read from MH i2c: E2 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: E2 17 00 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: E2 17 00 06 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3B [15:21:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:21:35]wFMCommunicate OK [15:21:35]requested_item fd.num is exist - process it [15:21:35]SAM_PROTO_GetFieldsCounters [15:21:35]wFMCommunicate request_size=4 [15:21:35]MH_SAM_APDU [15:21:35]CAPDU: 80 13 00 00 [15:21:35]Write to MH i2c: E2 08 00 07 60 80 13 00 00 00 00 00 00 E3 [15:21:35]Write i2c OK [15:21:35]MH_I2C_Read... [15:21:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:36]Read from MH i2c: E2 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: E2 62 00 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: E2 62 00 07 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1C D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [15:21: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1C D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:36]wFMCommunicate OK [15:21:36]SAM_PROTO_GetFieldsCounters done [15:21:36]requested_item shift.num is exist - process it [15:21:36]requested_item shift.opened is exist - process it [15:21:36]req_shift_opened [15:21:36]FM_GetShiftState [15:21:36]SAM_PROTO_GetShiftState [15:21:36]wFMCommunicate request_size=4 [15:21:36]MH_SAM_APDU [15:21:36]CAPDU: 80 13 01 00 [15:21:36]Write to MH i2c: E2 08 00 08 60 80 13 01 00 00 00 00 00 E5 [15:21:36]Write i2c OK [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: E2 [15:21:36]MH_I2C_Read... [15:21:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:36]Read from MH i2c: E2 0E 00 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: E2 0E 00 08 60 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 13 [15:21:36]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:21:36]wFMCommunicate OK [15:21:36]SAM_PROTO_GetShiftState done [15:21:36]FM_GetShiftState done [15:21:36]req_shift_opened done [15:21:36]requested_item shift.open_date is exist - process it [15:21:36]req_shift_open_date [15:21:36]req_shift_open_date done [15:21:36]produce_requested_data done [15:21:36]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118812,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [15:21:36]process_action_free close_receipt [15:21:36]json_value_free [15:21:36]json_value_free done [15:21:36]process_json_proto returns [15:21:36]Send response to host [15:21:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118812,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [15:21:36]free response buf [15:21:36]execute_script done [15:21:36]execute_script returns [15:21:36]free content buf [15:21:36]Sock 7.Close socket [15:21:36]Sock 7.Thread stoped [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:11]accept exits with 9 [15:23:11]New connection [15:23:11]New thread 3067383140 created [15:23:11]Thread 3067239780 joined [15:23:11]Waiting for new connection... [15:23:11] Sock 9.Parse request [15:23:11]Sock 9.Check first char [15:23:11]Sock 9.First char is OK [15:23:11]request: POST /json_proto HTTP/1.0 [15:23:11]Method: POST [15:23:11]URL: /json_proto [15:23:11]Method is POST - this is cgi request [15:23:11]url: /json_proto [15:23:11]query_string will be loaded in cgi processing [15:23:11]execute_cgi json_proto POST (null) [15:23:11]execute_cgi path=json_proto method=POST [15:23:11]POST find Content-Length [15:23:11]Host: 172.17.45.7:8080 [15:23:11]Content-Length: 682 [15:23:11]Content-Type: application/json [15:23:11] [15:23:11]POST finish read [15:23:11]Found Content-Length = 682 [15:23:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:11]execute_script... [15:23:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:11]POST & json_proto [15:23:11]process_json_proto [15:23:11]json parsed OK: [15:23:11]protocol is kg_v1.0 [15:23:11]action value=close_receipt [15:23:11]process_action close_receipt [15:23:11]cmd_close_receipt [15:23:11]MH_GetDate [15:23:11]Write to MH i2c: F0 00 00 09 60 58 [15:23:11]Write i2c OK [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: F0 [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: F0 09 00 [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: F0 09 00 09 60 00 E5 B3 A7 66 90 0F 3E 66 49 [15:23:11]GetLastDocTimeStamp 1722266498 [15:23:11]current date 1722266597 [15:23:11]FM_GetShiftState [15:23:11]SAM_PROTO_GetShiftState [15:23:11]wFMCommunicate request_size=4 [15:23:11]MH_SAM_APDU [15:23:11]CAPDU: 80 13 01 00 [15:23:11]Write to MH i2c: E2 08 00 0A 60 80 13 01 00 00 00 00 00 E7 [15:23:11]Write i2c OK [15:23:11]MH_I2C_Read... [15:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:11]Read from MH i2c: E2 [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: E2 0E 00 [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: E2 0E 00 0A 60 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 15 [15:23:11]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:23:11]wFMCommunicate OK [15:23:11]SAM_PROTO_GetShiftState done [15:23:11]FM_GetShiftState done [15:23:11]opened in 1722211641 [15:23:11]opened+sec_in_day 1722298041 [15:23:11]quantity*price = 100021 [15:23:11]sum+1 = 100023 [15:23:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 189 29.07.2024 15:23 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118813 ФПД: 168118773330122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T152317&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118813&fm=168118773330122&tin=02508201610067®Number=0000000000092660&sum=100000 [15:23:12]StoreToDocumentArchive [15:23:12]shift 434 fd 118813 [15:23:12]save to /storage/0434/doc_00118813 [15:23:12]save last doc name /storage/0434/doc_00118813 to /storage/kkm_last_doc_name [15:23:12]save OK [15:23:12]Clear old archive folders... [15:23:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:12]tlvbuf is 01FD30F0 [15:23:12]SAM_PROTO_ClearQueue [15:23:12]wFMCommunicate request_size=4 [15:23:12]MH_SAM_APDU [15:23:12]CAPDU: 80 09 00 00 [15:23:12]Write to MH i2c: E2 08 00 17 60 80 09 00 00 00 00 00 00 E9 [15:23:12]Write i2c OK [15:23:12]MH_I2C_Read... [15:23:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:12]Read from MH i2c: E2 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 03 00 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 03 00 17 60 00 90 00 EB [15:23:12]RAPDU: 90 00 [15:23:12]wFMCommunicate OK [15:23:12]SAM_PROTO_ClearQueue done [15:23:12]KKMCreateOFDPacket [15:23:12]OFDProtocolAddRootSTLVToBuf [15:23:12]FM_MakeSignedData [15:23:12]FM_MakeSignedData [15:23:12]SAM_PROTO_SignData [15:23:12]wFMCommunicate request_size=4 [15:23:12]MH_SAM_APDU [15:23:12]CAPDU: 80 0D 01 02 [15:23:12]Write to MH i2c: E2 08 00 18 60 80 0D 01 02 00 00 00 00 F1 [15:23:12]Write i2c OK [15:23:12]MH_I2C_Read... [15:23:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:12]Read from MH i2c: E2 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 03 00 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 03 00 18 60 00 90 00 EC [15:23:12]RAPDU: 90 00 [15:23:12]wFMCommunicate OK [15:23:12]wFMCommunicate request_size=255 [15:23:12]MH_SAM_APDU [15:23:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 E5 B3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D D0 01 00 35 04 06 00 98 [15:23:12]Write to MH i2c: E2 02 01 19 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 E5 B3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D D0 01 00 35 04 06 00 98 00 00 3C [15:23:12]Write i2c OK [15:23:12]MH_I2C_Read... [15:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:12]Read from MH i2c: E2 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 03 00 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 03 00 19 60 00 90 00 ED [15:23:12]RAPDU: 90 00 [15:23:12]wFMCommunicate OK [15:23:12]wFMCommunicate request_size=10 [15:23:12]MH_SAM_APDU [15:23:12]CAPDU: 80 0D 02 02 05 E7 33 C3 B0 CA [15:23:12]Write to MH i2c: E2 0D 00 1A 60 80 0D 02 02 05 00 E7 33 C3 B0 CA 00 00 55 [15:23:12]Write i2c OK [15:23:12]MH_I2C_Read... [15:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:12]Read from MH i2c: E2 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 03 00 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 03 00 1A 60 00 90 00 EE [15:23:12]RAPDU: 90 00 [15:23:12]wFMCommunicate OK [15:23:12]wFMCommunicate request_size=4 [15:23:12]MH_SAM_APDU [15:23:12]CAPDU: 80 0D 03 02 [15:23:12]Write to MH i2c: E2 08 00 1B 60 80 0D 03 02 00 00 00 00 F6 [15:23:12]Write i2c OK [15:23:12]MH_I2C_Read... [15:23:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:12]Read from MH i2c: E2 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 0B 00 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 0B 00 1B 60 00 84 DF 90 1B AC E7 62 6B 90 00 65 [15:23:12]RAPDU: 84 DF 90 1B AC E7 62 6B 90 00 [15:23:12]wFMCommunicate OK [15:23:12]SAM_PROTO_SignData done [15:23:12]FM_MakeSignedData done [15:23:12]CreateOFDProtocolMessage [15:23:12]wFMCommunicate request_size=4 [15:23:12]MH_SAM_APDU [15:23:12]CAPDU: 80 11 00 00 [15:23:12]Write to MH i2c: E2 08 00 1C 60 80 11 00 00 00 00 00 00 F6 [15:23:12]Write i2c OK [15:23:12]MH_I2C_Read... [15:23:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:12]Read from MH i2c: E2 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 17 00 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 17 00 1C 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 51 [15:23:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:23:12]wFMCommunicate OK [15:23:12]CreateOFDProtocolMessage done [15:23:12]OFDSenderStorePacket 118813 [15:23:12]StoreOFDPacket docnum=118813 [15:23:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D8 D9 07 01 8E 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 E5 B3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D D0 01 00 35 04 06 00 98 E7 33 C3 B0 CA 84 DF 90 1B AC E7 62 6B [15:23:12]CheckFolder [15:23:12]dirname=/storage/ofd_packets [15:23:12]CheckFolder done [15:23:12]ProducePacketName [15:23:12]name=ofd_packets/00118813 [15:23:12]NVStorageSaveData ofd_packets/00118813 [15:23:12]File name is /storage/ofd_packets/00118813 [15:23:12]Write 301 bytes [15:23:12]NVStorageSaveData done [15:23:12]OFDSenderStorePacket done [15:23:12]KKMCreateOFDPacket done [15:23:12]NVStorageSaveData kkm_last_timestamp [15:23:12]File name is /storage/kkm_last_timestamp [15:23:12]Write 4 bytes [15:23:12]NVStorageSaveData done [15:23:12]ExternCall_PrintAddStr [15:23:12]wPrintStart [15:23:12]Write to MH i2c: 01 00 00 1D 60 7D [15:23:12]Write i2c OK [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: 01 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: 01 07 00 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: 01 07 00 1D 60 00 00 00 00 00 FF 0F 92 [15:23:12]RasterBufferAndPrint [15:23:12]line Счет N : (1)949699 [15:23:12]line ИНН: 02508201610067 [15:23:12]line Контрольно-Кассовый Чек [15:23:12]line ПРОДАЖА [15:23:12]line ТРК (МРК, ГНК) : 53 [15:23:12]line Товар: 2710124500 [15:23:12]line Аи-95-К-3 [15:23:12]line 13.480 * 74.20 [15:23:12]line = 1000.22 [15:23:12]line НДС 12% НСП 1% [15:23:12]line > о реализуемом товаре [15:23:12]line ОКРУГЛЕНИЕ: -0.22 [15:23:12]line ИТОГО: 1000.00 [15:23:12]line Внесено: 1000.00 [15:23:12]line СДАЧА: 0.00 [15:23:12]line НСП 1% : 8.85 [15:23:12]line НДС 12% : 106.22 [15:23:12]line Наличными: 1000.00 [15:23:12]line Безнал.: 0.00 [15:23:12]line Место: АЗС № 134 "Партнер Нефть" [15:23:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:23:12]line СНО: Общий режим [15:23:12]line Чек 189 29.07.2024 15:23 [15:23:12]line Смена: 434 ФФД: 1.0 [15:23:12]line ЗНМ: 0300000044 [15:23:12]line РНМ: 0000000000092660 [15:23:12]line Версия ККМ: 001 [15:23:12]line ФМ: 0000000000874939 [15:23:12]line ФД: 118813 [15:23:12]line ФПД: 168118773330122 [15:23:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T152317&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118813&fm=168118773330122&tin=02508201610067®Number=0000000000092660&sum=100000 [15:23:13]OFD Sender: Processing packet 118813 [packets to send 86, broken 85] [15:23:13]ProducePacketName [15:23:13]name=ofd_packets/00118813 [15:23:13]OFD Sender: To server: pG, [15:23:13]CommunicateWithHost lk.salyk.kg:30040 [15:23:13]ConnectInit lk.salyk.kg [15:23:13]written 0, free lines is 4095 [15:23:13]Connected sock=10 [15:23:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D8 D9 07 01 8E 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 E5 B3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D D0 01 00 35 04 06 00 98 E7 33 C3 B0 CA 84 DF 90 1B AC E7 62 6B [15:23:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 23 33 47 00 23 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 34 39 33 39 10 04 04 00 1D D0 01 00 F4 03 04 00 72 61 A7 66 B6 04 01 00 00 97 54 69 D6 88 12 BB 24 [15:23:13]CommunicateWithHost err = 0 [15:23:13]CheckOFDResponse [15:23:13]1017 (14) - 77093643461234 [15:23:13]1041 (16) - 0000000000874939 [15:23:13]1040 (4) - 118813 [15:23:13]1012 (4) - 29.07.2024 09:31 [15:23:13]1206 (1) - 0 [15:23:13]OFD Sender: Remove packet 118813 [15:23:13]ProducePacketName [15:23:13]name=ofd_packets/00118813 [15:23:13]NVStorageDeleteData [15:23:13]Write to MH i2c: 01 00 00 47 60 A7 [15:23:13]Write i2c OK [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: 01 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: 01 07 00 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: 01 07 00 47 60 00 00 00 00 00 E0 0C 9A [15:23:13]RasterBufferAndPrint [15:23:13]line [15:23:13]line [15:23:13]line [15:23:13]line [15:23:13]line [15:23:13]written 0, free lines is 3304 [15:23:13]MH_Cut [15:23:13]Write to MH i2c: D1 01 00 4E 60 01 80 [15:23:13]Write i2c OK [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: D1 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: D1 01 00 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: D1 01 00 4E 60 00 7F [15:23:13]Write to MH i2c: 01 00 00 4F 60 AF [15:23:13]Write i2c OK [15:23:13]MH_I2C_Read... [15:23:13]OFD Sender: No OFD packet to send [15:23:14]*** Cut start [15:23:14]*** Partial cut [15:23:14]*** CUTSNS_PIN = 1 [15:23:14]*** CUTSNS_PIN = 0 [15:23:14]*** Brake cut motor [15:23:14]Read from MH i2c: 01 [15:23:14]MH_I2C_Read... [15:23:14]*** Stop cut motor [15:23:14]*** Cut end [15:23:14]Read from MH i2c: 01 07 00 [15:23:14]MH_I2C_Read... [15:23:14]Read from MH i2c: 01 07 00 4F 60 00 00 00 00 00 FF 0F C4 [15:23:14]process_action close_receipt done [15:23:14]requested_data is exist [15:23:14]produce_requested_data [15:23:14]requested_item fm.sn is exist - process it [15:23:14]wFMCommunicate request_size=4 [15:23:14]MH_SAM_APDU [15:23:14]CAPDU: 80 11 00 00 [15:23:14]Write to MH i2c: E2 08 00 50 60 80 11 00 00 00 00 00 00 2A [15:23:14]Write i2c OK [15:23:14]MH_I2C_Read... [15:23:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:15]Read from MH i2c: E2 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 17 00 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 17 00 50 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 85 [15:23:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:23:15]wFMCommunicate OK [15:23:15]requested_item fd.num is exist - process it [15:23:15]SAM_PROTO_GetFieldsCounters [15:23:15]wFMCommunicate request_size=4 [15:23:15]MH_SAM_APDU [15:23:15]CAPDU: 80 13 00 00 [15:23:15]Write to MH i2c: E2 08 00 51 60 80 13 00 00 00 00 00 00 2D [15:23:15]Write i2c OK [15:23:15]MH_I2C_Read... [15:23:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:15]Read from MH i2c: E2 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 62 00 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 62 00 51 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1D D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [15:23: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1D D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:15]wFMCommunicate OK [15:23:15]SAM_PROTO_GetFieldsCounters done [15:23:15]requested_item shift.num is exist - process it [15:23:15]requested_item shift.opened is exist - process it [15:23:15]req_shift_opened [15:23:15]FM_GetShiftState [15:23:15]SAM_PROTO_GetShiftState [15:23:15]wFMCommunicate request_size=4 [15:23:15]MH_SAM_APDU [15:23:15]CAPDU: 80 13 01 00 [15:23:15]Write to MH i2c: E2 08 00 52 60 80 13 01 00 00 00 00 00 2F [15:23:15]Write i2c OK [15:23:15]MH_I2C_Read... [15:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:15]Read from MH i2c: E2 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 0E 00 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 0E 00 52 60 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 5D [15:23:15]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:23:15]wFMCommunicate OK [15:23:15]SAM_PROTO_GetShiftState done [15:23:15]FM_GetShiftState done [15:23:15]req_shift_opened done [15:23:15]requested_item shift.open_date is exist - process it [15:23:15]req_shift_open_date [15:23:15]req_shift_open_date done [15:23:15]produce_requested_data done [15:23:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118813,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [15:23:15]process_action_free close_receipt [15:23:15]json_value_free [15:23:15]json_value_free done [15:23:15]process_json_proto returns [15:23:15]Send response to host [15:23:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118813,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [15:23:15]free response buf [15:23:15]execute_script done [15:23:15]execute_script returns [15:23:15]free content buf [15:23:15]Sock 9.Close socket [15:23:15]Sock 9.Thread stoped [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:11]accept exits with 7 [15:24:11]New connection [15:24:11]New thread 3067239780 created [15:24:11]Thread 3067383140 joined [15:24:11]Waiting for new connection... [15:24:11] Sock 7.Parse request [15:24:11]Sock 7.Check first char [15:24:11]Sock 7.First char is OK [15:24:11]request: POST /json_proto HTTP/1.0 [15:24:11]Method: POST [15:24:11]URL: /json_proto [15:24:11]Method is POST - this is cgi request [15:24:11]url: /json_proto [15:24:11]query_string will be loaded in cgi processing [15:24:11]execute_cgi json_proto POST (null) [15:24:11]execute_cgi path=json_proto method=POST [15:24:11]POST find Content-Length [15:24:11]Host: 172.17.45.7:8080 [15:24:11]Content-Length: 674 [15:24:11]Content-Type: application/json [15:24:11] [15:24:11]POST finish read [15:24:11]Found Content-Length = 674 [15:24:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:11]execute_script... [15: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 : (1)949700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:11]POST & json_proto [15:24:11]process_json_proto [15:24:11]json parsed OK: [15:24:11]protocol is kg_v1.0 [15:24:11]action value=close_receipt [15:24:11]process_action close_receipt [15:24:11]cmd_close_receipt [15:24:11]MH_GetDate [15:24:11]Write to MH i2c: F0 00 00 53 60 A2 [15:24:11]Write i2c OK [15:24:11]MH_I2C_Read... [15:24:11]Read from MH i2c: F0 [15:24:11]MH_I2C_Read... [15:24:11]Read from MH i2c: F0 09 00 [15:24:11]MH_I2C_Read... [15:24:11]Read from MH i2c: F0 09 00 53 60 00 21 B4 A7 66 90 0F 3E 66 D0 [15:24:11]GetLastDocTimeStamp 1722266597 [15:24:11]current date 1722266657 [15:24:11]FM_GetShiftState [15:24:11]SAM_PROTO_GetShiftState [15:24:11]wFMCommunicate request_size=4 [15:24:11]MH_SAM_APDU [15:24:11]CAPDU: 80 13 01 00 [15:24:11]Write to MH i2c: E2 08 00 54 60 80 13 01 00 00 00 00 00 31 [15:24:11]Write i2c OK [15:24:11]MH_I2C_Read... [15:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:11]Read from MH i2c: E2 [15:24:11]MH_I2C_Read... [15:24:11]Read from MH i2c: E2 0E 00 [15:24:11]MH_I2C_Read... [15:24:11]Read from MH i2c: E2 0E 00 54 60 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 5F [15:24:11]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:24:11]wFMCommunicate OK [15:24:11]SAM_PROTO_GetShiftState done [15:24:11]FM_GetShiftState done [15:24:11]opened in 1722211641 [15:24:11]opened+sec_in_day 1722298041 [15:24:11]quantity*price = 70027 [15:24:11]sum+1 = 70029 [15:24:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 190 29.07.2024 15:24 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118814 ФПД: 45302938599248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T152417&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118814&fm=45302938599248&tin=02508201610067®Number=0000000000092660&sum=70000 [15:24:12]StoreToDocumentArchive [15:24:12]shift 434 fd 118814 [15:24:12]save to /storage/0434/doc_00118814 [15:24:12]save last doc name /storage/0434/doc_00118814 to /storage/kkm_last_doc_name [15:24:12]save OK [15:24:12]Clear old archive folders... [15:24:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:24:12]tlvbuf is 020864F0 [15:24:12]SAM_PROTO_ClearQueue [15:24:12]wFMCommunicate request_size=4 [15:24:12]MH_SAM_APDU [15:24:12]CAPDU: 80 09 00 00 [15:24:12]Write to MH i2c: E2 08 00 61 60 80 09 00 00 00 00 00 00 33 [15:24:12]Write i2c OK [15:24:12]MH_I2C_Read... [15:24:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:13]Read from MH i2c: E2 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 03 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 03 00 61 60 00 90 00 35 [15:24:13]RAPDU: 90 00 [15:24:13]wFMCommunicate OK [15:24:13]SAM_PROTO_ClearQueue done [15:24:13]KKMCreateOFDPacket [15:24:13]OFDProtocolAddRootSTLVToBuf [15:24:13]FM_MakeSignedData [15:24:13]FM_MakeSignedData [15:24:13]SAM_PROTO_SignData [15:24:13]wFMCommunicate request_size=4 [15:24:13]MH_SAM_APDU [15:24:13]CAPDU: 80 0D 01 02 [15:24:13]Write to MH i2c: E2 08 00 62 60 80 0D 01 02 00 00 00 00 3B [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:13]Read from MH i2c: E2 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 03 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 03 00 62 60 00 90 00 36 [15:24:13]RAPDU: 90 00 [15:24:13]wFMCommunicate OK [15:24:13]wFMCommunicate request_size=255 [15:24:13]MH_SAM_APDU [15:24:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 21 B4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1E D0 01 00 35 04 06 00 29 33 E9 8F [15:24:13]Write to MH i2c: E2 02 01 63 60 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 21 B4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1E D0 01 00 35 04 06 00 29 33 E9 8F 00 00 DD [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:13]Read from MH i2c: E2 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 03 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 03 00 63 60 00 90 00 37 [15:24:13]RAPDU: 90 00 [15:24:13]wFMCommunicate OK [15:24:13]wFMCommunicate request_size=7 [15:24:13]MH_SAM_APDU [15:24:13]CAPDU: 80 0D 02 02 02 FF 50 [15:24:13]Write to MH i2c: E2 0A 00 64 60 80 0D 02 02 02 00 FF 50 00 00 91 [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:13]Read from MH i2c: E2 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 03 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 03 00 64 60 00 90 00 38 [15:24:13]RAPDU: 90 00 [15:24:13]wFMCommunicate OK [15:24:13]wFMCommunicate request_size=4 [15:24:13]MH_SAM_APDU [15:24:13]CAPDU: 80 0D 03 02 [15:24:13]Write to MH i2c: E2 08 00 65 60 80 0D 03 02 00 00 00 00 40 [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:13]Read from MH i2c: E2 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 0B 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 0B 00 65 60 00 27 E9 50 11 D9 FB 9D 9A 90 00 BD [15:24:13]RAPDU: 27 E9 50 11 D9 FB 9D 9A 90 00 [15:24:13]wFMCommunicate OK [15:24:13]SAM_PROTO_SignData done [15:24:13]FM_MakeSignedData done [15:24:13]CreateOFDProtocolMessage [15:24:13]wFMCommunicate request_size=4 [15:24:13]MH_SAM_APDU [15:24:13]CAPDU: 80 11 00 00 [15:24:13]Write to MH i2c: E2 08 00 66 60 80 11 00 00 00 00 00 00 40 [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:13]Read from MH i2c: E2 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 17 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 17 00 66 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9B [15:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:24:13]wFMCommunicate OK [15:24:13]CreateOFDProtocolMessage done [15:24:13]OFDSenderStorePacket 118814 [15:24:13]StoreOFDPacket docnum=118814 [15:24:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5C E3 04 01 56 CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 21 B4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1E D0 01 00 35 04 06 00 29 33 E9 8F FF 50 27 E9 50 11 D9 FB 9D 9A [15:24:13]CheckFolder [15:24:13]dirname=/storage/ofd_packets [15:24:13]CheckFolder done [15:24:13]ProducePacketName [15:24:13]name=ofd_packets/00118814 [15:24:13]NVStorageSaveData ofd_packets/00118814 [15:24:13]File name is /storage/ofd_packets/00118814 [15:24:13]Write 298 bytes [15:24:13]NVStorageSaveData done [15:24:13]OFDSenderStorePacket done [15:24:13]KKMCreateOFDPacket done [15:24:13]NVStorageSaveData kkm_last_timestamp [15:24:13]File name is /storage/kkm_last_timestamp [15:24:13]Write 4 bytes [15:24:13]NVStorageSaveData done [15:24:13]ExternCall_PrintAddStr [15:24:13]wPrintStart [15:24:13]Write to MH i2c: 01 00 00 67 60 C7 [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: 01 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: 01 07 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: 01 07 00 67 60 00 00 00 00 00 FF 0F DC [15:24:13]RasterBufferAndPrint [15:24:13]line Счет N : (1)949700 [15:24:13]line ИНН: 02508201610067 [15:24:13]line Контрольно-Кассовый Чек [15:24:13]line ПРОДАЖА [15:24:13]line ТРК (МРК, ГНК) : 44 [15:24:13]line Товар: 2710194800 [15:24:13]line ДТ-К-5 [15:24:13]line 9.190 * 76.20 [15:24:13]line = 700.28 [15:24:13]line НДС 12% НСП 1% [15:24:13]line > о реализуемом товаре [15:24:13]line ОКРУГЛЕНИЕ: -0.28 [15:24:13]line ИТОГО: 700.00 [15:24:13]line Внесено: 700.00 [15:24:13]line СДАЧА: 0.00 [15:24:13]line НСП 1% : 6.20 [15:24:13]line НДС 12% : 74.37 [15:24:13]line Наличными: 700.00 [15:24:13]line Безнал.: 0.00 [15:24:13]line Место: АЗС № 134 "Партнер Нефть" [15:24:13]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:24:13]line СНО: Общий режим [15:24:13]line Чек 190 29.07.2024 15:24 [15:24:13]line Смена: 434 ФФД: 1.0 [15:24:13]line ЗНМ: 0300000044 [15:24:13]line РНМ: 0000000000092660 [15:24:13]line Версия ККМ: 001 [15:24:13]line ФМ: 0000000000874939 [15:24:13]line ФД: 118814 [15:24:13]line ФПД: 45302938599248 [15:24:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T152417&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118814&fm=45302938599248&tin=02508201610067®Number=0000000000092660&sum=70000 [15:24:13]OFD Sender: Processing packet 118814 [packets to send 86, broken 85] [15:24:13]ProducePacketName [15:24:13]name=ofd_packets/00118814 [15:24:13]OFD Sender: To server: pG, [15:24:13]CommunicateWithHost lk.salyk.kg:30040 [15:24:13]ConnectInit lk.salyk.kg [15:24:13]written 0, free lines is 4095 [15:24:13]Connected sock=11 [15:24:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5C E3 04 01 56 CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 21 B4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1E D0 01 00 35 04 06 00 29 33 E9 8F FF 50 27 E9 50 11 D9 FB 9D 9A [15:24:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5F DC 47 00 EF 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1E D0 01 00 F4 03 04 00 AF 61 A7 66 B6 04 01 00 00 95 24 59 7F A6 17 75 C1 [15:24:14]CommunicateWithHost err = 0 [15:24:14]CheckOFDResponse [15:24:14]1017 (14) - 77093643461234 [15:24:14]1041 (16) - 0000000000874939 [15:24:14]1040 (4) - 118814 [15:24:14]1012 (4) - 29.07.2024 09:32 [15:24:14]1206 (1) - 0 [15:24:14]OFD Sender: Remove packet 118814 [15:24:14]ProducePacketName [15:24:14]name=ofd_packets/00118814 [15:24:14]NVStorageDeleteData [15:24:14]Write to MH i2c: 01 00 00 91 60 F1 [15:24:14]Write i2c OK [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: 01 [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: 01 07 00 [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: 01 07 00 91 60 00 00 00 00 00 EF 0C F3 [15:24:14]RasterBufferAndPrint [15:24:14]line [15:24:14]line [15:24:14]line [15:24:14]line [15:24:14]line [15:24:14]written 0, free lines is 3315 [15:24:14]MH_Cut [15:24:14]Write to MH i2c: D1 01 00 98 60 01 CA [15:24:14]Write i2c OK [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: D1 [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: D1 01 00 [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: D1 01 00 98 60 00 C9 [15:24:14]Write to MH i2c: 01 00 00 99 60 F9 [15:24:14]Write i2c OK [15:24:14]MH_I2C_Read... [15:24:14]OFD Sender: No OFD packet to send [15:24:14]*** Cut start [15:24:14]*** Partial cut [15:24:14]*** CUTSNS_PIN = 1 [15:24:15]*** CUTSNS_PIN = 0 [15:24:15]*** Brake cut motor [15:24:15]Read from MH i2c: 01 [15:24:15]MH_I2C_Read... [15:24:15]*** Stop cut motor [15:24:15]*** Cut end [15:24:15]Read from MH i2c: 01 07 00 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: 01 07 00 99 60 00 00 00 00 00 FF 0F 0E [15:24:15]process_action close_receipt done [15:24:15]requested_data is exist [15:24:15]produce_requested_data [15:24:15]requested_item fm.sn is exist - process it [15:24:15]wFMCommunicate request_size=4 [15:24:15]MH_SAM_APDU [15:24:15]CAPDU: 80 11 00 00 [15:24:15]Write to MH i2c: E2 08 00 9A 60 80 11 00 00 00 00 00 00 74 [15:24:15]Write i2c OK [15:24:15]MH_I2C_Read... [15:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:15]Read from MH i2c: E2 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 17 00 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 17 00 9A 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CF [15:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:24:15]wFMCommunicate OK [15:24:15]requested_item fd.num is exist - process it [15:24:15]SAM_PROTO_GetFieldsCounters [15:24:15]wFMCommunicate request_size=4 [15:24:15]MH_SAM_APDU [15:24:15]CAPDU: 80 13 00 00 [15:24:15]Write to MH i2c: E2 08 00 9B 60 80 13 00 00 00 00 00 00 77 [15:24:15]Write i2c OK [15:24:15]MH_I2C_Read... [15:24:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:15]Read from MH i2c: E2 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 62 00 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 62 00 9B 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1E D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [15: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1E D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:24:15]wFMCommunicate OK [15:24:15]SAM_PROTO_GetFieldsCounters done [15:24:15]requested_item shift.num is exist - process it [15:24:15]requested_item shift.opened is exist - process it [15:24:15]req_shift_opened [15:24:15]FM_GetShiftState [15:24:15]SAM_PROTO_GetShiftState [15:24:15]wFMCommunicate request_size=4 [15:24:15]MH_SAM_APDU [15:24:15]CAPDU: 80 13 01 00 [15:24:15]Write to MH i2c: E2 08 00 9C 60 80 13 01 00 00 00 00 00 79 [15:24:15]Write i2c OK [15:24:15]MH_I2C_Read... [15:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:15]Read from MH i2c: E2 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 0E 00 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 0E 00 9C 60 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A7 [15:24:15]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:24:15]wFMCommunicate OK [15:24:15]SAM_PROTO_GetShiftState done [15:24:15]FM_GetShiftState done [15:24:15]req_shift_opened done [15:24:15]requested_item shift.open_date is exist - process it [15:24:15]req_shift_open_date [15:24:15]req_shift_open_date done [15:24:15]produce_requested_data done [15:24:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118814,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [15:24:15]process_action_free close_receipt [15:24:15]json_value_free [15:24:15]json_value_free done [15:24:15]process_json_proto returns [15:24:15]Send response to host [15:24:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118814,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [15:24:15]free response buf [15:24:15]execute_script done [15:24:15]execute_script returns [15:24:15]free content buf [15:24:15]Sock 7.Close socket [15:24:15]Sock 7.Thread stoped [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:25]OFD Sender: No OFD packet to send [15:31:30]OFD Sender: No OFD packet to send [15:31:35]OFD Sender: No OFD packet to send [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:20]OFD Sender: No OFD packet to send [15:32:25]OFD Sender: No OFD packet to send [15:32:30]OFD Sender: No OFD packet to send [15:32:35]OFD Sender: No OFD packet to send [15:32:40]OFD Sender: No OFD packet to send [15:32:45]OFD Sender: No OFD packet to send [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:33:05]OFD Sender: No OFD packet to send [15:33:10]OFD Sender: No OFD packet to send [15:33:15]OFD Sender: No OFD packet to send [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:35]OFD Sender: No OFD packet to send [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [15:34:15]OFD Sender: No OFD packet to send [15:34:20]OFD Sender: No OFD packet to send [15:34:25]OFD Sender: No OFD packet to send [15:34:30]OFD Sender: No OFD packet to send [15:34:35]OFD Sender: No OFD packet to send [15:34:40]OFD Sender: No OFD packet to send [15:34:45]OFD Sender: No OFD packet to send [15:34:50]OFD Sender: No OFD packet to send [15:34:55]OFD Sender: No OFD packet to send [15:35:00]OFD Sender: No OFD packet to send [15:35:05]OFD Sender: No OFD packet to send [15:35:10]OFD Sender: No OFD packet to send [15:35:15]OFD Sender: No OFD packet to send [15:35:20]OFD Sender: No OFD packet to send [15:35:25]OFD Sender: No OFD packet to send [15:35:30]OFD Sender: No OFD packet to send [15:35:35]OFD Sender: No OFD packet to send [15:35:40]OFD Sender: No OFD packet to send [15:35:45]OFD Sender: No OFD packet to send [15:35:50]OFD Sender: No OFD packet to send [15:35:55]OFD Sender: No OFD packet to send [15:36:00]OFD Sender: No OFD packet to send [15:36:05]OFD Sender: No OFD packet to send [15:36:10]OFD Sender: No OFD packet to send [15:36:15]OFD Sender: No OFD packet to send [15:36:20]OFD Sender: No OFD packet to send [15:36:25]OFD Sender: No OFD packet to send [15:36:30]OFD Sender: No OFD packet to send [15:36:35]OFD Sender: No OFD packet to send [15:36:40]OFD Sender: No OFD packet to send [15:36:45]OFD Sender: No OFD packet to send [15:36:50]OFD Sender: No OFD packet to send [15:36:55]OFD Sender: No OFD packet to send [15:37:00]OFD Sender: No OFD packet to send [15:37:05]OFD Sender: No OFD packet to send [15:37:10]OFD Sender: No OFD packet to send [15:37:15]OFD Sender: No OFD packet to send [15:37:20]OFD Sender: No OFD packet to send [15:37:25]OFD Sender: No OFD packet to send [15:37:30]OFD Sender: No OFD packet to send [15:37:35]OFD Sender: No OFD packet to send [15:37:40]OFD Sender: No OFD packet to send [15:37:45]OFD Sender: No OFD packet to send [15:37:50]OFD Sender: No OFD packet to send [15:37:55]OFD Sender: No OFD packet to send [15:38:00]OFD Sender: No OFD packet to send [15:38:05]OFD Sender: No OFD packet to send [15:38:10]OFD Sender: No OFD packet to send [15:38:15]OFD Sender: No OFD packet to send [15:38:20]OFD Sender: No OFD packet to send [15:38:25]OFD Sender: No OFD packet to send [15:38:30]OFD Sender: No OFD packet to send [15:38:35]OFD Sender: No OFD packet to send [15:38:40]OFD Sender: No OFD packet to send [15:38:45]OFD Sender: No OFD packet to send [15:38:50]OFD Sender: No OFD packet to send [15:38:55]OFD Sender: No OFD packet to send [15:39:00]OFD Sender: No OFD packet to send [15:39:05]OFD Sender: No OFD packet to send [15:39:10]OFD Sender: No OFD packet to send [15:39:15]OFD Sender: No OFD packet to send [15:39:20]OFD Sender: No OFD packet to send [15:39:23]accept exits with 9 [15:39:23]New connection [15:39:23]New thread 3067383140 created [15:39:23]Thread 3067239780 joined [15:39:23]Waiting for new connection... [15:39:23] Sock 9.Parse request [15:39:23]Sock 9.Check first char [15:39:23]Sock 9.First char is OK [15:39:23]request: POST /json_proto HTTP/1.0 [15:39:23]Method: POST [15:39:23]URL: /json_proto [15:39:23]Method is POST - this is cgi request [15:39:23]url: /json_proto [15:39:23]query_string will be loaded in cgi processing [15:39:23]execute_cgi json_proto POST (null) [15:39:23]execute_cgi path=json_proto method=POST [15:39:23]POST find Content-Length [15:39:23]Host: 172.17.45.7:8080 [15:39:23]Content-Length: 677 [15:39:23]Content-Type: application/json [15:39:23] [15:39:23]POST finish read [15:39:23]Found Content-Length = 677 [15:39:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:23]execute_script... [15:39:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:23]POST & json_proto [15:39:23]process_json_proto [15:39:23]json parsed OK: [15:39:23]protocol is kg_v1.0 [15:39:23]action value=close_receipt [15:39:23]process_action close_receipt [15:39:23]cmd_close_receipt [15:39:23]MH_GetDate [15:39:23]Write to MH i2c: F0 00 00 9D 60 EC [15:39:23]Write i2c OK [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: F0 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: F0 09 00 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: F0 09 00 9D 60 00 B2 B7 A7 66 90 0F 3E 66 AE [15:39:23]GetLastDocTimeStamp 1722266657 [15:39:23]current date 1722267570 [15:39:23]FM_GetShiftState [15:39:23]SAM_PROTO_GetShiftState [15:39:23]wFMCommunicate request_size=4 [15:39:23]MH_SAM_APDU [15:39:23]CAPDU: 80 13 01 00 [15:39:23]Write to MH i2c: E2 08 00 9E 60 80 13 01 00 00 00 00 00 7B [15:39:23]Write i2c OK [15:39:23]MH_I2C_Read... [15:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:23]Read from MH i2c: E2 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: E2 0E 00 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: E2 0E 00 9E 60 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A9 [15:39:23]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:39:23]wFMCommunicate OK [15:39:23]SAM_PROTO_GetShiftState done [15:39:23]FM_GetShiftState done [15:39:23]opened in 1722211641 [15:39:23]opened+sec_in_day 1722298041 [15:39:23]quantity*price = 50036 [15:39:23]sum+1 = 50037 [15:39:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 191 29.07.2024 15:39 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118815 ФПД: 131629028790869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T153930&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118815&fm=131629028790869&tin=02508201610067®Number=0000000000092660&sum=50000 [15:39:25]StoreToDocumentArchive [15:39:25]shift 434 fd 118815 [15:39:25]save to /storage/0434/doc_00118815 [15:39:25]save last doc name /storage/0434/doc_00118815 to /storage/kkm_last_doc_name [15:39:25]save OK [15:39:25]Clear old archive folders... [15:39:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:39:25]tlvbuf is 01E70890 [15:39:25]SAM_PROTO_ClearQueue [15:39:25]wFMCommunicate request_size=4 [15:39:25]MH_SAM_APDU [15:39:25]CAPDU: 80 09 00 00 [15:39:25]Write to MH i2c: E2 08 00 AB 60 80 09 00 00 00 00 00 00 7D [15:39:25]Write i2c OK [15:39:25]MH_I2C_Read... [15:39:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:25]Read from MH i2c: E2 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: E2 03 00 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: E2 03 00 AB 60 00 90 00 7F [15:39:25]RAPDU: 90 00 [15:39:25]wFMCommunicate OK [15:39:25]SAM_PROTO_ClearQueue done [15:39:25]KKMCreateOFDPacket [15:39:25]OFDProtocolAddRootSTLVToBuf [15:39:25]FM_MakeSignedData [15:39:25]FM_MakeSignedData [15:39:25]SAM_PROTO_SignData [15:39:25]wFMCommunicate request_size=4 [15:39:25]MH_SAM_APDU [15:39:25]CAPDU: 80 0D 01 02 [15:39:25]Write to MH i2c: E2 08 00 AC 60 80 0D 01 02 00 00 00 00 85 [15:39:25]Write i2c OK [15:39:25]MH_I2C_Read... [15:39:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:25]Read from MH i2c: E2 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: E2 03 00 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: E2 03 00 AC 60 00 90 00 80 [15:39:25]RAPDU: 90 00 [15:39:25]wFMCommunicate OK [15:39:25]wFMCommunicate request_size=255 [15:39:25]MH_SAM_APDU [15:39: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 B2 B7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1F D0 01 00 35 04 06 00 77 [15:39:25]Write to MH i2c: E2 02 01 AD 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 B2 B7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1F D0 01 00 35 04 06 00 77 00 00 58 [15:39:25]Write i2c OK [15:39:25]MH_I2C_Read... [15:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:25]Read from MH i2c: E2 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: E2 03 00 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: E2 03 00 AD 60 00 90 00 81 [15:39:25]RAPDU: 90 00 [15:39:25]wFMCommunicate OK [15:39:25]wFMCommunicate request_size=10 [15:39:25]MH_SAM_APDU [15:39:25]CAPDU: 80 0D 02 02 05 B7 45 80 D2 55 [15:39:25]Write to MH i2c: E2 0D 00 AE 60 80 0D 02 02 05 00 B7 45 80 D2 55 00 00 35 [15:39:25]Write i2c OK [15:39:25]MH_I2C_Read... [15:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:25]Read from MH i2c: E2 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: E2 03 00 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: E2 03 00 AE 60 00 90 00 82 [15:39:25]RAPDU: 90 00 [15:39:25]wFMCommunicate OK [15:39:25]wFMCommunicate request_size=4 [15:39:25]MH_SAM_APDU [15:39:25]CAPDU: 80 0D 03 02 [15:39:25]Write to MH i2c: E2 08 00 AF 60 80 0D 03 02 00 00 00 00 8A [15:39:25]OFD Sender: No OFD packet to send [15:39:25]Write i2c OK [15:39:25]MH_I2C_Read... [15:39:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:25]Read from MH i2c: E2 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: E2 0B 00 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: E2 0B 00 AF 60 00 51 4E 2F 79 FC 16 70 43 90 00 97 [15:39:25]RAPDU: 51 4E 2F 79 FC 16 70 43 90 00 [15:39:25]wFMCommunicate OK [15:39:25]SAM_PROTO_SignData done [15:39:25]FM_MakeSignedData done [15:39:25]CreateOFDProtocolMessage [15:39:25]wFMCommunicate request_size=4 [15:39:25]MH_SAM_APDU [15:39:25]CAPDU: 80 11 00 00 [15:39:25]Write to MH i2c: E2 08 00 B0 60 80 11 00 00 00 00 00 00 8A [15:39:25]Write i2c OK [15:39:25]MH_I2C_Read... [15:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:25]Read from MH i2c: E2 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: E2 17 00 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: E2 17 00 B0 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E5 [15:39:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:39:25]wFMCommunicate OK [15:39:25]CreateOFDProtocolMessage done [15:39:25]OFDSenderStorePacket 118815 [15:39:25]StoreOFDPacket docnum=118815 [15:39:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D6 00 07 01 2C A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 B2 B7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1F D0 01 00 35 04 06 00 77 B7 45 80 D2 55 51 4E 2F 79 FC 16 70 43 [15:39:25]CheckFolder [15:39:25]dirname=/storage/ofd_packets [15:39:25]CheckFolder done [15:39:25]ProducePacketName [15:39:25]name=ofd_packets/00118815 [15:39:25]NVStorageSaveData ofd_packets/00118815 [15:39:25]File name is /storage/ofd_packets/00118815 [15:39:25]Write 301 bytes [15:39:25]NVStorageSaveData done [15:39:25]OFDSenderStorePacket done [15:39:25]KKMCreateOFDPacket done [15:39:25]NVStorageSaveData kkm_last_timestamp [15:39:25]File name is /storage/kkm_last_timestamp [15:39:25]Write 4 bytes [15:39:25]NVStorageSaveData done [15:39:25]ExternCall_PrintAddStr [15:39:25]wPrintStart [15:39:25]Write to MH i2c: 01 00 00 B1 60 11 [15:39:25]OFD Sender: Processing packet 118815 [packets to send 86, broken 85] [15:39:25]ProducePacketName [15:39:25]name=ofd_packets/00118815 [15:39:25]OFD Sender: To server: pG, [15:39:25]CommunicateWithHost lk.salyk.kg:30040 [15:39:25]ConnectInit lk.salyk.kg [15:39:25]Write i2c OK [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: 01 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: 01 07 00 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: 01 07 00 B1 60 00 00 00 00 00 FF 0F 26 [15:39:25]RasterBufferAndPrint [15:39:25]line Счет N : (1)949701 [15:39:25]line ИНН: 02508201610067 [15:39:25]line Контрольно-Кассовый Чек [15:39:25]line ПРОДАЖА [15:39:25]line ТРК (МРК, ГНК) : 41 [15:39:25]line Товар: 2710124130 [15:39:25]line Аи-92-К-4 [15:39:25]line 7.380 * 67.80 [15:39:25]line = 500.36 [15:39:25]line НДС 12% НСП 1% [15:39:25]line > о реализуемом товаре [15:39:25]line ОКРУГЛЕНИЕ: -0.36 [15:39:25]line ИТОГО: 500.00 [15:39:25]line Внесено: 500.00 [15:39:25]line СДАЧА: 0.00 [15:39:25]line НСП 1% : 4.43 [15:39:25]line НДС 12% : 53.14 [15:39:25]line Наличными: 500.00 [15:39:25]line Безнал.: 0.00 [15:39:25]line Место: АЗС № 134 "Партнер Нефть" [15:39:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:39:25]line СНО: Общий режим [15:39:25]line Чек 191 29.07.2024 15:39 [15:39:25]line Смена: 434 ФФД: 1.0 [15:39:25]line ЗНМ: 0300000044 [15:39:25]line РНМ: 0000000000092660 [15:39:25]line Версия ККМ: 001 [15:39:25]line ФМ: 0000000000874939 [15:39:25]line ФД: 118815 [15:39:25]line ФПД: 131629028790869 [15:39:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T153930&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118815&fm=131629028790869&tin=02508201610067®Number=0000000000092660&sum=50000 [15:39:26]Connected sock=10 [15:39:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D6 00 07 01 2C A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 B2 B7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1F D0 01 00 35 04 06 00 77 B7 45 80 D2 55 51 4E 2F 79 FC 16 70 43 [15:39:26]written 0, free lines is 4095 [15:39:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 93 F2 47 00 94 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 34 39 33 39 10 04 04 00 1F D0 01 00 F4 03 04 00 3F 65 A7 66 B6 04 01 00 00 6C D5 33 E3 3F FE CF 10 [15:39:26]CommunicateWithHost err = 0 [15:39:26]CheckOFDResponse [15:39:26]1017 (14) - 77093643461234 [15:39:26]1041 (16) - 0000000000874939 [15:39:26]1040 (4) - 118815 [15:39:26]1012 (4) - 29.07.2024 09:47 [15:39:26]1206 (1) - 0 [15:39:26]OFD Sender: Remove packet 118815 [15:39:26]ProducePacketName [15:39:26]name=ofd_packets/00118815 [15:39:26]NVStorageDeleteData [15:39:26]Write to MH i2c: 01 00 00 DB 60 3B [15:39:26]Write i2c OK [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: 01 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: 01 07 00 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: 01 07 00 DB 60 00 00 00 00 00 EB 0C 39 [15:39:26]RasterBufferAndPrint [15:39:26]line [15:39:26]line [15:39:26]line [15:39:26]line [15:39:26]line [15:39:26]written 0, free lines is 3313 [15:39:26]MH_Cut [15:39:26]Write to MH i2c: D1 01 00 E2 60 01 14 [15:39:26]Write i2c OK [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: D1 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: D1 01 00 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: D1 01 00 E2 60 00 13 [15:39:26]Write to MH i2c: 01 00 00 E3 60 43 [15:39:26]Write i2c OK [15:39:26]MH_I2C_Read... [15:39:26]OFD Sender: No OFD packet to send [15:39:27]*** Cut start [15:39:27]*** Partial cut [15:39:27]*** CUTSNS_PIN = 1 [15:39:27]*** CUTSNS_PIN = 0 [15:39:27]*** Brake cut motor [15:39:27]Read from MH i2c: 01 [15:39:27]MH_I2C_Read... [15:39:27]*** Stop cut motor [15:39:27]*** Cut end [15:39:27]Read from MH i2c: 01 07 00 [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: 01 07 00 E3 60 00 00 00 00 00 FF 0F 58 [15:39:27]process_action close_receipt done [15:39:27]requested_data is exist [15:39:27]produce_requested_data [15:39:27]requested_item fm.sn is exist - process it [15:39:27]wFMCommunicate request_size=4 [15:39:27]MH_SAM_APDU [15:39:27]CAPDU: 80 11 00 00 [15:39:27]Write to MH i2c: E2 08 00 E4 60 80 11 00 00 00 00 00 00 BE [15:39:27]Write i2c OK [15:39:27]MH_I2C_Read... [15:39:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:27]Read from MH i2c: E2 [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: E2 17 00 [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: E2 17 00 E4 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 19 [15:39:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:39:27]wFMCommunicate OK [15:39:27]requested_item fd.num is exist - process it [15:39:27]SAM_PROTO_GetFieldsCounters [15:39:27]wFMCommunicate request_size=4 [15:39:27]MH_SAM_APDU [15:39:27]CAPDU: 80 13 00 00 [15:39:27]Write to MH i2c: E2 08 00 E5 60 80 13 00 00 00 00 00 00 C1 [15:39:27]Write i2c OK [15:39:27]MH_I2C_Read... [15:39:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:28]Read from MH i2c: E2 [15:39:28]MH_I2C_Read... [15:39:28]Read from MH i2c: E2 62 00 [15:39:28]MH_I2C_Read... [15:39:28]Read from MH i2c: E2 62 00 E5 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1F D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [15:39: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1F D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:39:28]wFMCommunicate OK [15:39:28]SAM_PROTO_GetFieldsCounters done [15:39:28]requested_item shift.num is exist - process it [15:39:28]requested_item shift.opened is exist - process it [15:39:28]req_shift_opened [15:39:28]FM_GetShiftState [15:39:28]SAM_PROTO_GetShiftState [15:39:28]wFMCommunicate request_size=4 [15:39:28]MH_SAM_APDU [15:39:28]CAPDU: 80 13 01 00 [15:39:28]Write to MH i2c: E2 08 00 E6 60 80 13 01 00 00 00 00 00 C3 [15:39:28]Write i2c OK [15:39:28]MH_I2C_Read... [15:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:28]Read from MH i2c: E2 [15:39:28]MH_I2C_Read... [15:39:28]Read from MH i2c: E2 0E 00 [15:39:28]MH_I2C_Read... [15:39:28]Read from MH i2c: E2 0E 00 E6 60 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F1 [15:39:28]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:39:28]wFMCommunicate OK [15:39:28]SAM_PROTO_GetShiftState done [15:39:28]FM_GetShiftState done [15:39:28]req_shift_opened done [15:39:28]requested_item shift.open_date is exist - process it [15:39:28]req_shift_open_date [15:39:28]req_shift_open_date done [15:39:28]produce_requested_data done [15:39:28]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118815,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [15:39:28]process_action_free close_receipt [15:39:28]json_value_free [15:39:28]json_value_free done [15:39:28]process_json_proto returns [15:39:28]Send response to host [15:39:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118815,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [15:39:28]free response buf [15:39:28]execute_script done [15:39:28]execute_script returns [15:39:28]free content buf [15:39:28]Sock 9.Close socket [15:39:28]Sock 9.Thread stoped [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:42]accept exits with 7 [15:41:42]New connection [15:41:42]New thread 3067239780 created [15:41:42]Thread 3067383140 joined [15:41:42]Waiting for new connection... [15:41:42] Sock 7.Parse request [15:41:42]Sock 7.Check first char [15:41:42]Sock 7.First char is OK [15:41:42]request: POST /json_proto HTTP/1.0 [15:41:42]Method: POST [15:41:42]URL: /json_proto [15:41:42]Method is POST - this is cgi request [15:41:42]url: /json_proto [15:41:42]query_string will be loaded in cgi processing [15:41:42]execute_cgi json_proto POST (null) [15:41:42]execute_cgi path=json_proto method=POST [15:41:42]POST find Content-Length [15:41:42]Host: 172.17.45.7:8080 [15:41:42]Content-Length: 677 [15:41:42]Content-Type: application/json [15:41:42] [15:41:42]POST finish read [15:41:42]Found Content-Length = 677 [15:41:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.900, "sum" : 535.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 535.00, "total" : 535.00, "payments": [ { "type": 0, "sum" : 535.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:42]execute_script... [15:41: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)949702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.900, "sum" : 535.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 535.00, "total" : 535.00, "payments": [ { "type": 0, "sum" : 535.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:42]POST & json_proto [15:41:42]process_json_proto [15:41:42]json parsed OK: [15:41:42]protocol is kg_v1.0 [15:41:42]action value=close_receipt [15:41:42]process_action close_receipt [15:41:42]cmd_close_receipt [15:41:42]MH_GetDate [15:41:42]Write to MH i2c: F0 00 00 E7 60 36 [15:41:42]Write i2c OK [15:41:42]MH_I2C_Read... [15:41:42]Read from MH i2c: F0 [15:41:42]MH_I2C_Read... [15:41:42]Read from MH i2c: F0 09 00 [15:41:42]MH_I2C_Read... [15:41:42]Read from MH i2c: F0 09 00 E7 60 00 3C B8 A7 66 90 0F 3E 66 83 [15:41:42]GetLastDocTimeStamp 1722267570 [15:41:42]current date 1722267708 [15:41:42]FM_GetShiftState [15:41:42]SAM_PROTO_GetShiftState [15:41:42]wFMCommunicate request_size=4 [15:41:42]MH_SAM_APDU [15:41:42]CAPDU: 80 13 01 00 [15:41:42]Write to MH i2c: E2 08 00 E8 60 80 13 01 00 00 00 00 00 C5 [15:41:42]Write i2c OK [15:41:42]MH_I2C_Read... [15:41:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:42]Read from MH i2c: E2 [15:41:42]MH_I2C_Read... [15:41:42]Read from MH i2c: E2 0E 00 [15:41:42]MH_I2C_Read... [15:41:42]Read from MH i2c: E2 0E 00 E8 60 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F3 [15:41:42]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:41:42]wFMCommunicate OK [15:41:42]SAM_PROTO_GetShiftState done [15:41:42]FM_GetShiftState done [15:41:42]opened in 1722211641 [15:41:42]opened+sec_in_day 1722298041 [15:41:42]quantity*price = 53562 [15:41:42]sum+1 = 53563 [15:41:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 535.00 Внесено: 535.00 СДАЧА: 0.00 НСП 1% : 4.74 НДС 12% : 56.88 Наличными: 535.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 192 29.07.2024 15:41 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118816 ФПД: 195451339677080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T154148&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118816&fm=195451339677080&tin=02508201610067®Number=0000000000092660&sum=53500 [15:41:43]StoreToDocumentArchive [15:41:43]shift 434 fd 118816 [15:41:43]save to /storage/0434/doc_00118816 [15:41:43]save last doc name /storage/0434/doc_00118816 to /storage/kkm_last_doc_name [15:41:43]save OK [15:41:43]Clear old archive folders... [15:41:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:41:43]tlvbuf is 01E58EB0 [15:41:43]SAM_PROTO_ClearQueue [15:41:43]wFMCommunicate request_size=4 [15:41:43]MH_SAM_APDU [15:41:43]CAPDU: 80 09 00 00 [15:41:43]Write to MH i2c: E2 08 00 F5 60 80 09 00 00 00 00 00 00 C7 [15:41:43]Write i2c OK [15:41:43]MH_I2C_Read... [15:41:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:43]Read from MH i2c: E2 [15:41:43]MH_I2C_Read... [15:41:43]Read from MH i2c: E2 03 00 [15:41:43]MH_I2C_Read... [15:41:43]Read from MH i2c: E2 03 00 F5 60 00 90 00 C9 [15:41:43]RAPDU: 90 00 [15:41:43]wFMCommunicate OK [15:41:43]SAM_PROTO_ClearQueue done [15:41:43]KKMCreateOFDPacket [15:41:43]OFDProtocolAddRootSTLVToBuf [15:41:43]FM_MakeSignedData [15:41:43]FM_MakeSignedData [15:41:43]SAM_PROTO_SignData [15:41:43]wFMCommunicate request_size=4 [15:41:43]MH_SAM_APDU [15:41:43]CAPDU: 80 0D 01 02 [15:41:43]Write to MH i2c: E2 08 00 F6 60 80 0D 01 02 00 00 00 00 CF [15:41:43]Write i2c OK [15:41:43]MH_I2C_Read... [15:41:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:43]Read from MH i2c: E2 [15:41:43]MH_I2C_Read... [15:41:43]Read from MH i2c: E2 03 00 [15:41:43]MH_I2C_Read... [15:41:43]Read from MH i2c: E2 03 00 F6 60 00 90 00 CA [15:41:43]RAPDU: 90 00 [15:41:43]wFMCommunicate OK [15:41:43]wFMCommunicate request_size=255 [15:41:43]MH_SAM_APDU [15:41:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 1E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3A D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 16 00 00 00 00 07 04 06 00 FC D0 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 3C B8 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 20 D0 01 00 35 04 06 00 B1 [15:41:43]Write to MH i2c: E2 02 01 F7 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 1E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3A D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 16 00 00 00 00 07 04 06 00 FC D0 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 3C B8 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 20 D0 01 00 35 04 06 00 B1 00 00 50 [15:41:43]Write i2c OK [15:41:43]MH_I2C_Read... [15:41:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:44]Read from MH i2c: E2 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: E2 03 00 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: E2 03 00 F7 60 00 90 00 CB [15:41:44]RAPDU: 90 00 [15:41:44]wFMCommunicate OK [15:41:44]wFMCommunicate request_size=10 [15:41:44]MH_SAM_APDU [15:41:44]CAPDU: 80 0D 02 02 05 C3 0F AC 1D 98 [15:41:44]Write to MH i2c: E2 0D 00 F8 60 80 0D 02 02 05 00 C3 0F AC 1D 98 00 00 0F [15:41:44]Write i2c OK [15:41:44]MH_I2C_Read... [15:41:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:44]Read from MH i2c: E2 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: E2 03 00 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: E2 03 00 F8 60 00 90 00 CC [15:41:44]RAPDU: 90 00 [15:41:44]wFMCommunicate OK [15:41:44]wFMCommunicate request_size=4 [15:41:44]MH_SAM_APDU [15:41:44]CAPDU: 80 0D 03 02 [15:41:44]Write to MH i2c: E2 08 00 F9 60 80 0D 03 02 00 00 00 00 D4 [15:41:44]Write i2c OK [15:41:44]MH_I2C_Read... [15:41:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:44]Read from MH i2c: E2 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: E2 0B 00 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: E2 0B 00 F9 60 00 76 C7 D3 8F EB 4F 33 10 90 00 F1 [15:41:44]RAPDU: 76 C7 D3 8F EB 4F 33 10 90 00 [15:41:44]wFMCommunicate OK [15:41:44]SAM_PROTO_SignData done [15:41:44]FM_MakeSignedData done [15:41:44]CreateOFDProtocolMessage [15:41:44]wFMCommunicate request_size=4 [15:41:44]MH_SAM_APDU [15:41:44]CAPDU: 80 11 00 00 [15:41:44]Write to MH i2c: E2 08 00 FA 60 80 11 00 00 00 00 00 00 D4 [15:41:44]Write i2c OK [15:41:44]MH_I2C_Read... [15:41:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:44]Read from MH i2c: E2 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: E2 17 00 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: E2 17 00 FA 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2F [15:41:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:41:44]wFMCommunicate OK [15:41:44]CreateOFDProtocolMessage done [15:41:44]OFDSenderStorePacket 118816 [15:41:44]StoreOFDPacket docnum=118816 [15:41:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D6 11 07 01 F2 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 1E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3A D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 16 00 00 00 00 07 04 06 00 FC D0 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 3C B8 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 20 D0 01 00 35 04 06 00 B1 C3 0F AC 1D 98 76 C7 D3 8F EB 4F 33 10 [15:41:44]CheckFolder [15:41:44]dirname=/storage/ofd_packets [15:41:44]CheckFolder done [15:41:44]ProducePacketName [15:41:44]name=ofd_packets/00118816 [15:41:44]NVStorageSaveData ofd_packets/00118816 [15:41:44]File name is /storage/ofd_packets/00118816 [15:41:44]Write 301 bytes [15:41:44]NVStorageSaveData done [15:41:44]OFDSenderStorePacket done [15:41:44]KKMCreateOFDPacket done [15:41:44]NVStorageSaveData kkm_last_timestamp [15:41:44]File name is /storage/kkm_last_timestamp [15:41:44]Write 4 bytes [15:41:44]NVStorageSaveData done [15:41:44]ExternCall_PrintAddStr [15:41:44]wPrintStart [15:41:44]Write to MH i2c: 01 00 00 FB 60 5B [15:41:44]Write i2c OK [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: 01 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: 01 07 00 [15:41:44]MH_I2C_Read... [15:41:44]OFD Sender: Processing packet 118816 [packets to send 86, broken 85] [15:41:44]ProducePacketName [15:41:44]name=ofd_packets/00118816 [15:41:44]OFD Sender: To server: pG, [15:41:44]CommunicateWithHost lk.salyk.kg:30040 [15:41:44]ConnectInit lk.salyk.kg [15:41:44]Read from MH i2c: 01 07 00 FB 60 00 00 00 00 00 FF 0F 70 [15:41:44]RasterBufferAndPrint [15:41:44]line Счет N : (1)949702 [15:41:44]line ИНН: 02508201610067 [15:41:44]line Контрольно-Кассовый Чек [15:41:44]line ПРОДАЖА [15:41:44]line ТРК (МРК, ГНК) : 51 [15:41:44]line Товар: 2710124130 [15:41:44]line Аи-92-К-4 [15:41:44]line 7.900 * 67.80 [15:41:44]line = 535.62 [15:41:44]line НДС 12% НСП 1% [15:41:44]line > о реализуемом товаре [15:41:44]line ОКРУГЛЕНИЕ: -0.62 [15:41:44]line ИТОГО: 535.00 [15:41:44]line Внесено: 535.00 [15:41:44]line СДАЧА: 0.00 [15:41:44]line НСП 1% : 4.74 [15:41:44]line НДС 12% : 56.88 [15:41:44]line Наличными: 535.00 [15:41:44]line Безнал.: 0.00 [15:41:44]line Место: АЗС № 134 "Партнер Нефть" [15:41:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:41:44]line СНО: Общий режим [15:41:44]line Чек 192 29.07.2024 15:41 [15:41:44]line Смена: 434 ФФД: 1.0 [15:41:44]line ЗНМ: 0300000044 [15:41:44]line РНМ: 0000000000092660 [15:41:44]line Версия ККМ: 001 [15:41:44]line ФМ: 0000000000874939 [15:41:44]line ФД: 118816 [15:41:44]line ФПД: 195451339677080 [15:41:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T154148&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118816&fm=195451339677080&tin=02508201610067®Number=0000000000092660&sum=53500 [15:41:44]Connected sock=10 [15:41:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D6 11 07 01 F2 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 1E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3A D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 16 00 00 00 00 07 04 06 00 FC D0 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 3C B8 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 20 D0 01 00 35 04 06 00 B1 C3 0F AC 1D 98 76 C7 D3 8F EB 4F 33 10 [15:41:44]written 0, free lines is 4095 [15:41:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 50 DA 47 00 32 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 34 39 33 39 10 04 04 00 20 D0 01 00 F4 03 04 00 CA 65 A7 66 B6 04 01 00 00 39 99 35 30 56 72 7E B4 [15:41:44]CommunicateWithHost err = 0 [15:41:44]CheckOFDResponse [15:41:44]1017 (14) - 77093643461234 [15:41:44]1041 (16) - 0000000000874939 [15:41:44]1040 (4) - 118816 [15:41:44]1012 (4) - 29.07.2024 09:50 [15:41:44]1206 (1) - 0 [15:41:44]OFD Sender: Remove packet 118816 [15:41:44]ProducePacketName [15:41:44]name=ofd_packets/00118816 [15:41:44]NVStorageDeleteData [15:41:45]Write to MH i2c: 01 00 00 25 61 86 [15:41:45]Write i2c OK [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: 01 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: 01 07 00 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: 01 07 00 25 61 00 00 00 00 00 E4 0C 7D [15:41:45]RasterBufferAndPrint [15:41:45]line [15:41:45]line [15:41:45]line [15:41:45]line [15:41:45]line [15:41:45]written 0, free lines is 3304 [15:41:45]MH_Cut [15:41:45]Write to MH i2c: D1 01 00 2C 61 01 5F [15:41:45]Write i2c OK [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: D1 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: D1 01 00 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: D1 01 00 2C 61 00 5E [15:41:45]Write to MH i2c: 01 00 00 2D 61 8E [15:41:45]Write i2c OK [15:41:45]MH_I2C_Read... [15:41:45]OFD Sender: No OFD packet to send [15:41:45]*** Cut start [15:41:45]*** Partial cut [15:41:45]*** CUTSNS_PIN = 1 [15:41:45]*** CUTSNS_PIN = 0 [15:41:46]*** Brake cut motor [15:41:46]Read from MH i2c: 01 [15:41:46]MH_I2C_Read... [15:41:46]*** Stop cut motor [15:41:46]*** Cut end [15:41:46]Read from MH i2c: 01 07 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: 01 07 00 2D 61 00 00 00 00 00 FF 0F A3 [15:41:46]process_action close_receipt done [15:41:46]requested_data is exist [15:41:46]produce_requested_data [15:41:46]requested_item fm.sn is exist - process it [15:41:46]wFMCommunicate request_size=4 [15:41:46]MH_SAM_APDU [15:41:46]CAPDU: 80 11 00 00 [15:41:46]Write to MH i2c: E2 08 00 2E 61 80 11 00 00 00 00 00 00 09 [15:41:46]Write i2c OK [15:41:46]MH_I2C_Read... [15:41:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:46]Read from MH i2c: E2 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 17 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 17 00 2E 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 64 [15:41:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:41:46]wFMCommunicate OK [15:41:46]requested_item fd.num is exist - process it [15:41:46]SAM_PROTO_GetFieldsCounters [15:41:46]wFMCommunicate request_size=4 [15:41:46]MH_SAM_APDU [15:41:46]CAPDU: 80 13 00 00 [15:41:46]Write to MH i2c: E2 08 00 2F 61 80 13 00 00 00 00 00 00 0C [15:41:46]Write i2c OK [15:41:46]MH_I2C_Read... [15:41:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:46]Read from MH i2c: E2 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 62 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 62 00 2F 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 20 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [15:41: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 20 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:46]wFMCommunicate OK [15:41:46]SAM_PROTO_GetFieldsCounters done [15:41:46]requested_item shift.num is exist - process it [15:41:46]requested_item shift.opened is exist - process it [15:41:46]req_shift_opened [15:41:46]FM_GetShiftState [15:41:46]SAM_PROTO_GetShiftState [15:41:46]wFMCommunicate request_size=4 [15:41:46]MH_SAM_APDU [15:41:46]CAPDU: 80 13 01 00 [15:41:46]Write to MH i2c: E2 08 00 30 61 80 13 01 00 00 00 00 00 0E [15:41:46]Write i2c OK [15:41:46]MH_I2C_Read... [15:41:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:46]Read from MH i2c: E2 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 0E 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 0E 00 30 61 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 3C [15:41:46]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:41:46]wFMCommunicate OK [15:41:46]SAM_PROTO_GetShiftState done [15:41:46]FM_GetShiftState done [15:41:46]req_shift_opened done [15:41:46]requested_item shift.open_date is exist - process it [15:41:46]req_shift_open_date [15:41:46]req_shift_open_date done [15:41:46]produce_requested_data done [15:41:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118816,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [15:41:46]process_action_free close_receipt [15:41:46]json_value_free [15:41:46]json_value_free done [15:41:46]process_json_proto returns [15:41:46]Send response to host [15:41:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118816,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [15:41:46]free response buf [15:41:46]execute_script done [15:41:46]execute_script returns [15:41:46]free content buf [15:41:46]Sock 7.Close socket [15:41:46]Sock 7.Thread stoped [15:41:50]OFD Sender: No OFD packet to send [15:41:55]OFD Sender: No OFD packet to send [15:42:00]OFD Sender: No OFD packet to send [15:42:05]OFD Sender: No OFD packet to send [15:42:10]OFD Sender: No OFD packet to send [15:42:15]OFD Sender: No OFD packet to send [15:42:18]accept exits with 9 [15:42:18]New connection [15:42:18]New thread 3067383140 created [15:42:18]Thread 3067239780 joined [15:42:18]Waiting for new connection... [15:42:18] Sock 9.Parse request [15:42:18]Sock 9.Check first char [15:42:18]Sock 9.First char is OK [15:42:18]request: POST /json_proto HTTP/1.0 [15:42:18]Method: POST [15:42:18]URL: /json_proto [15:42:18]Method is POST - this is cgi request [15:42:18]url: /json_proto [15:42:18]query_string will be loaded in cgi processing [15:42:18]execute_cgi json_proto POST (null) [15:42:18]execute_cgi path=json_proto method=POST [15:42:18]POST find Content-Length [15:42:18]Host: 172.17.45.7:8080 [15:42:18]Content-Length: 677 [15:42:18]Content-Type: application/json [15:42:18] [15:42:18]POST finish read [15:42:18]Found Content-Length = 677 [15:42:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.120, "sum" : 550.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:18]execute_script... [15:42:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.120, "sum" : 550.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:18]POST & json_proto [15:42:18]process_json_proto [15:42:18]json parsed OK: [15:42:18]protocol is kg_v1.0 [15:42:18]action value=close_receipt [15:42:18]process_action close_receipt [15:42:18]cmd_close_receipt [15:42:18]MH_GetDate [15:42:18]Write to MH i2c: F0 00 00 31 61 81 [15:42:18]Write i2c OK [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: F0 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: F0 09 00 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: F0 09 00 31 61 00 60 B8 A7 66 90 0F 3E 66 F2 [15:42:18]GetLastDocTimeStamp 1722267708 [15:42:18]current date 1722267744 [15:42:18]FM_GetShiftState [15:42:18]SAM_PROTO_GetShiftState [15:42:18]wFMCommunicate request_size=4 [15:42:18]MH_SAM_APDU [15:42:18]CAPDU: 80 13 01 00 [15:42:18]Write to MH i2c: E2 08 00 32 61 80 13 01 00 00 00 00 00 10 [15:42:18]Write i2c OK [15:42:18]MH_I2C_Read... [15:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:18]Read from MH i2c: E2 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: E2 0E 00 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: E2 0E 00 32 61 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 3E [15:42:18]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:42:18]wFMCommunicate OK [15:42:18]SAM_PROTO_GetShiftState done [15:42:18]FM_GetShiftState done [15:42:18]opened in 1722211641 [15:42:18]opened+sec_in_day 1722298041 [15:42:18]quantity*price = 55053 [15:42:18]sum+1 = 55055 [15:42:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.46 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 193 29.07.2024 15:42 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118817 ФПД: 212931095824757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T154224&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118817&fm=212931095824757&tin=02508201610067®Number=0000000000092660&sum=55000 [15:42:19]StoreToDocumentArchive [15:42:19]shift 434 fd 118817 [15:42:19]save to /storage/0434/doc_00118817 [15:42:19]save last doc name /storage/0434/doc_00118817 to /storage/kkm_last_doc_name [15:42:19]save OK [15:42:19]Clear old archive folders... [15:42:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:19]tlvbuf is B6F43480 [15:42:19]SAM_PROTO_ClearQueue [15:42:19]wFMCommunicate request_size=4 [15:42:19]MH_SAM_APDU [15:42:19]CAPDU: 80 09 00 00 [15:42:19]Write to MH i2c: E2 08 00 3F 61 80 09 00 00 00 00 00 00 12 [15:42:19]Write i2c OK [15:42:19]MH_I2C_Read... [15:42:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:19]Read from MH i2c: E2 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 03 00 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 03 00 3F 61 00 90 00 14 [15:42:19]RAPDU: 90 00 [15:42:19]wFMCommunicate OK [15:42:19]SAM_PROTO_ClearQueue done [15:42:19]KKMCreateOFDPacket [15:42:19]OFDProtocolAddRootSTLVToBuf [15:42:19]FM_MakeSignedData [15:42:19]FM_MakeSignedData [15:42:19]SAM_PROTO_SignData [15:42:19]wFMCommunicate request_size=4 [15:42:19]MH_SAM_APDU [15:42:19]CAPDU: 80 0D 01 02 [15:42:19]Write to MH i2c: E2 08 00 40 61 80 0D 01 02 00 00 00 00 1A [15:42:19]Write i2c OK [15:42:19]MH_I2C_Read... [15:42:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:19]Read from MH i2c: E2 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 03 00 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 03 00 40 61 00 90 00 15 [15:42:19]RAPDU: 90 00 [15:42:19]wFMCommunicate OK [15:42:19]wFMCommunicate request_size=255 [15:42:19]MH_SAM_APDU [15:42:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 60 B8 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 21 D0 01 00 35 04 06 00 C1 [15:42:19]Write to MH i2c: E2 02 01 41 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 60 B8 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 21 D0 01 00 35 04 06 00 C1 00 00 F7 [15:42:19]Write i2c OK [15:42:19]MH_I2C_Read... [15:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:19]Read from MH i2c: E2 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 03 00 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 03 00 41 61 00 90 00 16 [15:42:19]RAPDU: 90 00 [15:42:19]wFMCommunicate OK [15:42:19]wFMCommunicate request_size=10 [15:42:19]MH_SAM_APDU [15:42:19]CAPDU: 80 0D 02 02 05 A8 E2 54 09 75 [15:42:19]Write to MH i2c: E2 0D 00 42 61 80 0D 02 02 05 00 A8 E2 54 09 75 00 00 83 [15:42:19]Write i2c OK [15:42:19]MH_I2C_Read... [15:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:19]Read from MH i2c: E2 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 03 00 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 03 00 42 61 00 90 00 17 [15:42:19]RAPDU: 90 00 [15:42:19]wFMCommunicate OK [15:42:19]wFMCommunicate request_size=4 [15:42:19]MH_SAM_APDU [15:42:19]CAPDU: 80 0D 03 02 [15:42:19]Write to MH i2c: E2 08 00 43 61 80 0D 03 02 00 00 00 00 1F [15:42:19]Write i2c OK [15:42:19]MH_I2C_Read... [15:42:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:19]Read from MH i2c: E2 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 0B 00 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 0B 00 43 61 00 1A C0 97 C1 93 97 83 21 90 00 20 [15:42:19]RAPDU: 1A C0 97 C1 93 97 83 21 90 00 [15:42:19]wFMCommunicate OK [15:42:19]SAM_PROTO_SignData done [15:42:19]FM_MakeSignedData done [15:42:19]CreateOFDProtocolMessage [15:42:19]wFMCommunicate request_size=4 [15:42:19]MH_SAM_APDU [15:42:19]CAPDU: 80 11 00 00 [15:42:19]Write to MH i2c: E2 08 00 44 61 80 11 00 00 00 00 00 00 1F [15:42:19]Write i2c OK [15:42:19]MH_I2C_Read... [15:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:19]Read from MH i2c: E2 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 17 00 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 17 00 44 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7A [15:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:42:19]wFMCommunicate OK [15:42:19]CreateOFDProtocolMessage done [15:42:19]OFDSenderStorePacket 118817 [15:42:19]StoreOFDPacket docnum=118817 [15:42:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 1A 7B 07 01 FE 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 60 B8 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 21 D0 01 00 35 04 06 00 C1 A8 E2 54 09 75 1A C0 97 C1 93 97 83 21 [15:42:19]CheckFolder [15:42:19]dirname=/storage/ofd_packets [15:42:19]CheckFolder done [15:42:19]ProducePacketName [15:42:19]name=ofd_packets/00118817 [15:42:19]NVStorageSaveData ofd_packets/00118817 [15:42:19]File name is /storage/ofd_packets/00118817 [15:42:19]Write 301 bytes [15:42:19]NVStorageSaveData done [15:42:19]OFDSenderStorePacket done [15:42:19]KKMCreateOFDPacket done [15:42:19]NVStorageSaveData kkm_last_timestamp [15:42:19]File name is /storage/kkm_last_timestamp [15:42:19]Write 4 bytes [15:42:19]NVStorageSaveData done [15:42:19]ExternCall_PrintAddStr [15:42:19]wPrintStart [15:42:19]Write to MH i2c: 01 00 00 45 61 A6 [15:42:19]Write i2c OK [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: 01 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: 01 07 00 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: 01 07 00 45 61 00 00 00 00 00 FF 0F BB [15:42:19]RasterBufferAndPrint [15:42:19]line Счет N : (1)949703 [15:42:19]line ИНН: 02508201610067 [15:42:19]line Контрольно-Кассовый Чек [15:42:19]line ПРОДАЖА [15:42:19]line ТРК (МРК, ГНК) : 31 [15:42:19]line Товар: 2710124130 [15:42:19]line Аи-92-К-4 [15:42:19]line 8.120 * 67.80 [15:42:19]line = 550.54 [15:42:19]line НДС 12% НСП 1% [15:42:19]line > о реализуемом товаре [15:42:19]line ОКРУГЛЕНИЕ: -0.54 [15:42:19]line ИТОГО: 550.00 [15:42:19]line Внесено: 550.00 [15:42:19]line СДАЧА: 0.00 [15:42:19]line НСП 1% : 4.87 [15:42:19]line НДС 12% : 58.46 [15:42:19]line Наличными: 550.00 [15:42:19]line Безнал.: 0.00 [15:42:19]line Место: АЗС № 134 "Партнер Нефть" [15:42:19]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:42:19]line СНО: Общий режим [15:42:19]line Чек 193 29.07.2024 15:42 [15:42:19]line Смена: 434 ФФД: 1.0 [15:42:19]line ЗНМ: 0300000044 [15:42:19]line РНМ: 0000000000092660 [15:42:19]line Версия ККМ: 001 [15:42:19]line ФМ: 0000000000874939 [15:42:19]line ФД: 118817 [15:42:19]line ФПД: 212931095824757 [15:42:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T154224&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118817&fm=212931095824757&tin=02508201610067®Number=0000000000092660&sum=55000 [15:42:20]OFD Sender: Processing packet 118817 [packets to send 86, broken 85] [15:42:20]ProducePacketName [15:42:20]name=ofd_packets/00118817 [15:42:20]OFD Sender: To server: pG, [15:42:20]CommunicateWithHost lk.salyk.kg:30040 [15:42:20]ConnectInit lk.salyk.kg [15:42:20]written 0, free lines is 4095 [15:42:20]Connected sock=10 [15:42:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 1A 7B 07 01 FE 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 60 B8 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 21 D0 01 00 35 04 06 00 C1 A8 E2 54 09 75 1A C0 97 C1 93 97 83 21 [15:42:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9C F4 47 00 49 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 34 39 33 39 10 04 04 00 21 D0 01 00 F4 03 04 00 ED 65 A7 66 B6 04 01 00 00 9E 4E 6E 16 C8 F3 E4 87 [15:42:20]CommunicateWithHost err = 0 [15:42:20]CheckOFDResponse [15:42:20]1017 (14) - 77093643461234 [15:42:20]1041 (16) - 0000000000874939 [15:42:20]1040 (4) - 118817 [15:42:20]1012 (4) - 29.07.2024 09:50 [15:42:20]1206 (1) - 0 [15:42:20]OFD Sender: Remove packet 118817 [15:42:20]ProducePacketName [15:42:20]name=ofd_packets/00118817 [15:42:20]NVStorageDeleteData [15:42:20]Write to MH i2c: 01 00 00 6F 61 D0 [15:42:20]Write i2c OK [15:42:20]MH_I2C_Read... [15:42:20]Read from MH i2c: 01 [15:42:20]MH_I2C_Read... [15:42:20]Read from MH i2c: 01 07 00 [15:42:20]MH_I2C_Read... [15:42:20]Read from MH i2c: 01 07 00 6F 61 00 00 00 00 00 ED 0C D0 [15:42:20]RasterBufferAndPrint [15:42:20]line [15:42:20]line [15:42:20]line [15:42:20]line [15:42:20]line [15:42:20]written 0, free lines is 3315 [15:42:20]MH_Cut [15:42:20]Write to MH i2c: D1 01 00 76 61 01 A9 [15:42:20]Write i2c OK [15:42:20]MH_I2C_Read... [15:42:20]Read from MH i2c: D1 [15:42:20]MH_I2C_Read... [15:42:20]Read from MH i2c: D1 01 00 [15:42:20]MH_I2C_Read... [15:42:20]Read from MH i2c: D1 01 00 76 61 00 A8 [15:42:20]Write to MH i2c: 01 00 00 77 61 D8 [15:42:20]Write i2c OK [15:42:20]MH_I2C_Read... [15:42:21]OFD Sender: No OFD packet to send [15:42:21]*** Cut start [15:42:21]*** Partial cut [15:42:21]*** CUTSNS_PIN = 1 [15:42:21]*** CUTSNS_PIN = 0 [15:42:21]*** Brake cut motor [15:42:22]Read from MH i2c: 01 [15:42:22]MH_I2C_Read... [15:42:22]*** Stop cut motor [15:42:22]*** Cut end [15:42:22]Read from MH i2c: 01 07 00 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: 01 07 00 77 61 00 00 00 00 00 FF 0F ED [15:42:22]process_action close_receipt done [15:42:22]requested_data is exist [15:42:22]produce_requested_data [15:42:22]requested_item fm.sn is exist - process it [15:42:22]wFMCommunicate request_size=4 [15:42:22]MH_SAM_APDU [15:42:22]CAPDU: 80 11 00 00 [15:42:22]Write to MH i2c: E2 08 00 78 61 80 11 00 00 00 00 00 00 53 [15:42:22]Write i2c OK [15:42:22]MH_I2C_Read... [15:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:22]Read from MH i2c: E2 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 17 00 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 17 00 78 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AE [15:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:42:22]wFMCommunicate OK [15:42:22]requested_item fd.num is exist - process it [15:42:22]SAM_PROTO_GetFieldsCounters [15:42:22]wFMCommunicate request_size=4 [15:42:22]MH_SAM_APDU [15:42:22]CAPDU: 80 13 00 00 [15:42:22]Write to MH i2c: E2 08 00 79 61 80 13 00 00 00 00 00 00 56 [15:42:22]Write i2c OK [15:42:22]MH_I2C_Read... [15:42:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:22]Read from MH i2c: E2 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 62 00 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 62 00 79 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 21 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [15:42: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 21 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:22]wFMCommunicate OK [15:42:22]SAM_PROTO_GetFieldsCounters done [15:42:22]requested_item shift.num is exist - process it [15:42:22]requested_item shift.opened is exist - process it [15:42:22]req_shift_opened [15:42:22]FM_GetShiftState [15:42:22]SAM_PROTO_GetShiftState [15:42:22]wFMCommunicate request_size=4 [15:42:22]MH_SAM_APDU [15:42:22]CAPDU: 80 13 01 00 [15:42:22]Write to MH i2c: E2 08 00 7A 61 80 13 01 00 00 00 00 00 58 [15:42:22]Write i2c OK [15:42:22]MH_I2C_Read... [15:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:22]Read from MH i2c: E2 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 0E 00 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 0E 00 7A 61 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 86 [15:42:22]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:42:22]wFMCommunicate OK [15:42:22]SAM_PROTO_GetShiftState done [15:42:22]FM_GetShiftState done [15:42:22]req_shift_opened done [15:42:22]requested_item shift.open_date is exist - process it [15:42:22]req_shift_open_date [15:42:22]req_shift_open_date done [15:42:22]produce_requested_data done [15:42:22]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118817,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [15:42:22]process_action_free close_receipt [15:42:22]json_value_free [15:42:22]json_value_free done [15:42:22]process_json_proto returns [15:42:22]Send response to host [15:42:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118817,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [15:42:22]free response buf [15:42:22]execute_script done [15:42:22]execute_script returns [15:42:22]free content buf [15:42:22]Sock 9.Close socket [15:42:22]Sock 9.Thread stoped [15:42:26]OFD Sender: No OFD packet to send [15:42:31]OFD Sender: No OFD packet to send [15:42:36]OFD Sender: No OFD packet to send [15:42:41]OFD Sender: No OFD packet to send [15:42:46]OFD Sender: No OFD packet to send [15:42:51]OFD Sender: No OFD packet to send [15:42:56]OFD Sender: No OFD packet to send [15:43:01]OFD Sender: No OFD packet to send [15:43:06]OFD Sender: No OFD packet to send [15:43:11]OFD Sender: No OFD packet to send [15:43:16]OFD Sender: No OFD packet to send [15:43:21]OFD Sender: No OFD packet to send [15:43:26]OFD Sender: No OFD packet to send [15:43:31]OFD Sender: No OFD packet to send [15:43:36]OFD Sender: No OFD packet to send [15:43:41]OFD Sender: No OFD packet to send [15:43:46]OFD Sender: No OFD packet to send [15:43:51]OFD Sender: No OFD packet to send [15:43:56]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:41]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:51]OFD Sender: No OFD packet to send [15:44:56]OFD Sender: No OFD packet to send [15:45:01]OFD Sender: No OFD packet to send [15:45:06]OFD Sender: No OFD packet to send [15:45:11]OFD Sender: No OFD packet to send [15:45:16]OFD Sender: No OFD packet to send [15:45:21]OFD Sender: No OFD packet to send [15:45:26]OFD Sender: No OFD packet to send [15:45:31]OFD Sender: No OFD packet to send [15:45:36]OFD Sender: No OFD packet to send [15:45:41]OFD Sender: No OFD packet to send [15:45:46]OFD Sender: No OFD packet to send [15:45:51]OFD Sender: No OFD packet to send [15:45:56]OFD Sender: No OFD packet to send [15:46:01]OFD Sender: No OFD packet to send [15:46:06]OFD Sender: No OFD packet to send [15:46:11]OFD Sender: No OFD packet to send [15:46:16]OFD Sender: No OFD packet to send [15:46:21]OFD Sender: No OFD packet to send [15:46:26]OFD Sender: No OFD packet to send [15:46:31]OFD Sender: No OFD packet to send [15:46:36]OFD Sender: No OFD packet to send [15:46:41]OFD Sender: No OFD packet to send [15:46:46]OFD Sender: No OFD packet to send [15:46:51]OFD Sender: No OFD packet to send [15:46:56]OFD Sender: No OFD packet to send [15:47:01]OFD Sender: No OFD packet to send [15:47:06]OFD Sender: No OFD packet to send [15:47:11]OFD Sender: No OFD packet to send [15:47:16]OFD Sender: No OFD packet to send [15:47:21]OFD Sender: No OFD packet to send [15:47:26]OFD Sender: No OFD packet to send [15:47:31]OFD Sender: No OFD packet to send [15:47:36]OFD Sender: No OFD packet to send [15:47:41]OFD Sender: No OFD packet to send [15:47:46]OFD Sender: No OFD packet to send [15:47:51]OFD Sender: No OFD packet to send [15:47:56]OFD Sender: No OFD packet to send [15:48:01]OFD Sender: No OFD packet to send [15:48:06]OFD Sender: No OFD packet to send [15:48:09]accept exits with 7 [15:48:09]New connection [15:48:09]New thread 3067239780 created [15:48:09]Thread 3067383140 joined [15:48:09]Waiting for new connection... [15:48:09] Sock 7.Parse request [15:48:09]Sock 7.Check first char [15:48:09]Sock 7.First char is OK [15:48:09]request: POST /json_proto HTTP/1.0 [15:48:09]Method: POST [15:48:09]URL: /json_proto [15:48:09]Method is POST - this is cgi request [15:48:09]url: /json_proto [15:48:09]query_string will be loaded in cgi processing [15:48:09]execute_cgi json_proto POST (null) [15:48:09]execute_cgi path=json_proto method=POST [15:48:09]POST find Content-Length [15:48:09]Host: 172.17.45.7:8080 [15:48:09]Content-Length: 677 [15:48:09]Content-Type: application/json [15:48:09] [15:48:09]POST finish read [15:48:09]Found Content-Length = 677 [15:48:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:09]execute_script... [15:48:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:09]POST & json_proto [15:48:09]process_json_proto [15:48:09]json parsed OK: [15:48:09]protocol is kg_v1.0 [15:48:09]action value=close_receipt [15:48:09]process_action close_receipt [15:48:09]cmd_close_receipt [15:48:09]MH_GetDate [15:48:09]Write to MH i2c: F0 00 00 7B 61 CB [15:48:09]Write i2c OK [15:48:09]MH_I2C_Read... [15:48:09]Read from MH i2c: F0 [15:48:09]MH_I2C_Read... [15:48:09]Read from MH i2c: F0 09 00 [15:48:09]MH_I2C_Read... [15:48:09]Read from MH i2c: F0 09 00 7B 61 00 BF B9 A7 66 90 0F 3E 66 9C [15:48:09]GetLastDocTimeStamp 1722267744 [15:48:09]current date 1722268095 [15:48:09]FM_GetShiftState [15:48:09]SAM_PROTO_GetShiftState [15:48:09]wFMCommunicate request_size=4 [15:48:09]MH_SAM_APDU [15:48:09]CAPDU: 80 13 01 00 [15:48:09]Write to MH i2c: E2 08 00 7C 61 80 13 01 00 00 00 00 00 5A [15:48:09]Write i2c OK [15:48:09]MH_I2C_Read... [15:48:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:09]Read from MH i2c: E2 [15:48:09]MH_I2C_Read... [15:48:09]Read from MH i2c: E2 0E 00 [15:48:09]MH_I2C_Read... [15:48:09]Read from MH i2c: E2 0E 00 7C 61 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 88 [15:48:09]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:48:09]wFMCommunicate OK [15:48:09]SAM_PROTO_GetShiftState done [15:48:09]FM_GetShiftState done [15:48:09]opened in 1722211641 [15:48:09]opened+sec_in_day 1722298041 [15:48:09]quantity*price = 50036 [15:48:09]sum+1 = 50037 [15:48:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 194 29.07.2024 15:48 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118818 ФПД: 76340879868819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T154815&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118818&fm=76340879868819&tin=02508201610067®Number=0000000000092660&sum=50000 [15:48:10]StoreToDocumentArchive [15:48:10]shift 434 fd 118818 [15:48:10]save to /storage/0434/doc_00118818 [15:48:10]save last doc name /storage/0434/doc_00118818 to /storage/kkm_last_doc_name [15:48:10]save OK [15:48:10]Clear old archive folders... [15:48:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:48:10]tlvbuf is B6F43350 [15:48:10]SAM_PROTO_ClearQueue [15:48:10]wFMCommunicate request_size=4 [15:48:10]MH_SAM_APDU [15:48:10]CAPDU: 80 09 00 00 [15:48:10]Write to MH i2c: E2 08 00 89 61 80 09 00 00 00 00 00 00 5C [15:48:10]Write i2c OK [15:48:10]MH_I2C_Read... [15:48:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:10]Read from MH i2c: E2 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 03 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 03 00 89 61 00 90 00 5E [15:48:10]RAPDU: 90 00 [15:48:10]wFMCommunicate OK [15:48:10]SAM_PROTO_ClearQueue done [15:48:10]KKMCreateOFDPacket [15:48:10]OFDProtocolAddRootSTLVToBuf [15:48:10]FM_MakeSignedData [15:48:10]FM_MakeSignedData [15:48:10]SAM_PROTO_SignData [15:48:10]wFMCommunicate request_size=4 [15:48:10]MH_SAM_APDU [15:48:10]CAPDU: 80 0D 01 02 [15:48:10]Write to MH i2c: E2 08 00 8A 61 80 0D 01 02 00 00 00 00 64 [15:48:10]Write i2c OK [15:48:10]MH_I2C_Read... [15:48:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:10]Read from MH i2c: E2 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 03 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 03 00 8A 61 00 90 00 5F [15:48:10]RAPDU: 90 00 [15:48:10]wFMCommunicate OK [15:48:10]wFMCommunicate request_size=255 [15:48:10]MH_SAM_APDU [15:48: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 BF B9 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 22 D0 01 00 35 04 06 00 45 [15:48:10]Write to MH i2c: E2 02 01 8B 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 BF B9 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 22 D0 01 00 35 04 06 00 45 00 00 1A [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:11]Read from MH i2c: E2 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 03 00 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 03 00 8B 61 00 90 00 60 [15:48:11]RAPDU: 90 00 [15:48:11]wFMCommunicate OK [15:48:11]wFMCommunicate request_size=10 [15:48:11]MH_SAM_APDU [15:48:11]CAPDU: 80 0D 02 02 05 6E 7F 06 C3 93 [15:48:11]Write to MH i2c: E2 0D 00 8C 61 80 0D 02 02 05 00 6E 7F 06 C3 93 00 00 BA [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:11]Read from MH i2c: E2 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 03 00 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 03 00 8C 61 00 90 00 61 [15:48:11]RAPDU: 90 00 [15:48:11]wFMCommunicate OK [15:48:11]wFMCommunicate request_size=4 [15:48:11]MH_SAM_APDU [15:48:11]CAPDU: 80 0D 03 02 [15:48:11]Write to MH i2c: E2 08 00 8D 61 80 0D 03 02 00 00 00 00 69 [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:11]Read from MH i2c: E2 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 0B 00 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 0B 00 8D 61 00 13 F1 07 6C E0 75 90 E2 90 00 A8 [15:48:11]RAPDU: 13 F1 07 6C E0 75 90 E2 90 00 [15:48:11]wFMCommunicate OK [15:48:11]SAM_PROTO_SignData done [15:48:11]FM_MakeSignedData done [15:48:11]CreateOFDProtocolMessage [15:48:11]wFMCommunicate request_size=4 [15:48:11]MH_SAM_APDU [15:48:11]CAPDU: 80 11 00 00 [15:48:11]Write to MH i2c: E2 08 00 8E 61 80 11 00 00 00 00 00 00 69 [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:11]Read from MH i2c: E2 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 17 00 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 17 00 8E 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C4 [15:48:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:48:11]wFMCommunicate OK [15:48:11]CreateOFDProtocolMessage done [15:48:11]OFDSenderStorePacket 118818 [15:48:11]StoreOFDPacket docnum=118818 [15:48:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AD FA 07 01 23 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 BF B9 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 22 D0 01 00 35 04 06 00 45 6E 7F 06 C3 93 13 F1 07 6C E0 75 90 E2 [15:48:11]CheckFolder [15:48:11]dirname=/storage/ofd_packets [15:48:11]CheckFolder done [15:48:11]ProducePacketName [15:48:11]name=ofd_packets/00118818 [15:48:11]NVStorageSaveData ofd_packets/00118818 [15:48:11]File name is /storage/ofd_packets/00118818 [15:48:11]Write 301 bytes [15:48:11]NVStorageSaveData done [15:48:11]OFDSenderStorePacket done [15:48:11]KKMCreateOFDPacket done [15:48:11]NVStorageSaveData kkm_last_timestamp [15:48:11]File name is /storage/kkm_last_timestamp [15:48:11]Write 4 bytes [15:48:11]NVStorageSaveData done [15:48:11]ExternCall_PrintAddStr [15:48:11]wPrintStart [15:48:11]Write to MH i2c: 01 00 00 8F 61 F0 [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: 01 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: 01 07 00 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: 01 07 00 8F 61 00 00 00 00 00 FF 0F 05 [15:48:11]RasterBufferAndPrint [15:48:11]line Счет N : (1)949704 [15:48:11]line ИНН: 02508201610067 [15:48:11]line Контрольно-Кассовый Чек [15:48:11]line ПРОДАЖА [15:48:11]line ТРК (МРК, ГНК) : 31 [15:48:11]line Товар: 2710124130 [15:48:11]line Аи-92-К-4 [15:48:11]line 7.380 * 67.80 [15:48:11]line = 500.36 [15:48:11]line НДС 12% НСП 1% [15:48:11]line > о реализуемом товаре [15:48:11]line ОКРУГЛЕНИЕ: -0.36 [15:48:11]line ИТОГО: 500.00 [15:48:11]line Внесено: 500.00 [15:48:11]line СДАЧА: 0.00 [15:48:11]line НСП 1% : 4.43 [15:48:11]line НДС 12% : 53.14 [15:48:11]line Наличными: 500.00 [15:48:11]line Безнал.: 0.00 [15:48:11]line Место: АЗС № 134 "Партнер Нефть" [15:48:11]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:48:11]line СНО: Общий режим [15:48:11]line Чек 194 29.07.2024 15:48 [15:48:11]line Смена: 434 ФФД: 1.0 [15:48:11]line ЗНМ: 0300000044 [15:48:11]line РНМ: 0000000000092660 [15:48:11]line Версия ККМ: 001 [15:48:11]line ФМ: 0000000000874939 [15:48:11]line ФД: 118818 [15:48:11]line ФПД: 76340879868819 [15:48:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T154815&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118818&fm=76340879868819&tin=02508201610067®Number=0000000000092660&sum=50000 [15:48:11]written 0, free lines is 4095 [15:48:11]OFD Sender: Processing packet 118818 [packets to send 86, broken 85] [15:48:11]ProducePacketName [15:48:11]name=ofd_packets/00118818 [15:48:11]OFD Sender: To server: pG, [15:48:11]CommunicateWithHost lk.salyk.kg:30040 [15:48:11]ConnectInit lk.salyk.kg [15:48:11]Connected sock=10 [15:48:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AD FA 07 01 23 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 BF B9 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 22 D0 01 00 35 04 06 00 45 6E 7F 06 C3 93 13 F1 07 6C E0 75 90 E2 [15:48:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AB A6 47 00 0C 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 22 D0 01 00 F4 03 04 00 4D 67 A7 66 B6 04 01 00 00 08 D1 E9 F0 1B 33 06 11 [15:48:11]CommunicateWithHost err = 0 [15:48:11]CheckOFDResponse [15:48:11]1017 (14) - 77093643461234 [15:48:11]1041 (16) - 0000000000874939 [15:48:11]1040 (4) - 118818 [15:48:11]1012 (4) - 29.07.2024 09:56 [15:48:11]1206 (1) - 0 [15:48:11]OFD Sender: Remove packet 118818 [15:48:11]ProducePacketName [15:48:11]name=ofd_packets/00118818 [15:48:11]NVStorageDeleteData [15:48:11]Write to MH i2c: 01 00 00 B9 61 1A [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: 01 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: 01 07 00 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: 01 07 00 B9 61 00 00 00 00 00 E4 0C 11 [15:48:11]RasterBufferAndPrint [15:48:11]line [15:48:11]line [15:48:11]line [15:48:11]line [15:48:11]line [15:48:11]written 0, free lines is 3306 [15:48:11]MH_Cut [15:48:11]Write to MH i2c: D1 01 00 C0 61 01 F3 [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: D1 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: D1 01 00 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: D1 01 00 C0 61 00 F2 [15:48:11]Write to MH i2c: 01 00 00 C1 61 22 [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:12]OFD Sender: No OFD packet to send [15:48:12]*** Cut start [15:48:12]*** Partial cut [15:48:12]*** CUTSNS_PIN = 1 [15:48:12]*** CUTSNS_PIN = 0 [15:48:12]*** Brake cut motor [15:48:13]Read from MH i2c: 01 [15:48:13]MH_I2C_Read... [15:48:13]*** Stop cut motor [15:48:13]*** Cut end [15:48:13]Read from MH i2c: 01 07 00 [15:48:13]MH_I2C_Read... [15:48:13]Read from MH i2c: 01 07 00 C1 61 00 00 00 00 00 FF 0F 37 [15:48:13]process_action close_receipt done [15:48:13]requested_data is exist [15:48:13]produce_requested_data [15:48:13]requested_item fm.sn is exist - process it [15:48:13]wFMCommunicate request_size=4 [15:48:13]MH_SAM_APDU [15:48:13]CAPDU: 80 11 00 00 [15:48:13]Write to MH i2c: E2 08 00 C2 61 80 11 00 00 00 00 00 00 9D [15:48:13]Write i2c OK [15:48:13]MH_I2C_Read... [15:48:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:13]Read from MH i2c: E2 [15:48:13]MH_I2C_Read... [15:48:13]Read from MH i2c: E2 17 00 [15:48:13]MH_I2C_Read... [15:48:13]Read from MH i2c: E2 17 00 C2 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F8 [15:48:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:48:13]wFMCommunicate OK [15:48:13]requested_item fd.num is exist - process it [15:48:13]SAM_PROTO_GetFieldsCounters [15:48:13]wFMCommunicate request_size=4 [15:48:13]MH_SAM_APDU [15:48:13]CAPDU: 80 13 00 00 [15:48:13]Write to MH i2c: E2 08 00 C3 61 80 13 00 00 00 00 00 00 A0 [15:48:13]Write i2c OK [15:48:13]MH_I2C_Read... [15:48:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:13]Read from MH i2c: E2 [15:48:13]MH_I2C_Read... [15:48:13]Read from MH i2c: E2 62 00 [15:48:13]MH_I2C_Read... [15:48:13]Read from MH i2c: E2 62 00 C3 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 22 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [15:48:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 22 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:13]wFMCommunicate OK [15:48:13]SAM_PROTO_GetFieldsCounters done [15:48:13]requested_item shift.num is exist - process it [15:48:13]requested_item shift.opened is exist - process it [15:48:13]req_shift_opened [15:48:13]FM_GetShiftState [15:48:13]SAM_PROTO_GetShiftState [15:48:13]wFMCommunicate request_size=4 [15:48:13]MH_SAM_APDU [15:48:13]CAPDU: 80 13 01 00 [15:48:13]Write to MH i2c: E2 08 00 C4 61 80 13 01 00 00 00 00 00 A2 [15:48:13]Write i2c OK [15:48:13]MH_I2C_Read... [15:48:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:13]Read from MH i2c: E2 [15:48:13]MH_I2C_Read... [15:48:13]Read from MH i2c: E2 0E 00 [15:48:13]MH_I2C_Read... [15:48:13]Read from MH i2c: E2 0E 00 C4 61 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D0 [15:48:13]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:48:13]wFMCommunicate OK [15:48:13]SAM_PROTO_GetShiftState done [15:48:13]FM_GetShiftState done [15:48:13]req_shift_opened done [15:48:13]requested_item shift.open_date is exist - process it [15:48:13]req_shift_open_date [15:48:13]req_shift_open_date done [15:48:13]produce_requested_data done [15:48:13]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118818,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [15:48:13]process_action_free close_receipt [15:48:13]json_value_free [15:48:13]json_value_free done [15:48:13]process_json_proto returns [15:48:13]Send response to host [15:48:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118818,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [15:48:13]free response buf [15:48:13]execute_script done [15:48:13]execute_script returns [15:48:13]free content buf [15:48:13]Sock 7.Close socket [15:48:13]Sock 7.Thread stoped [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:42]OFD Sender: No OFD packet to send [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:16]accept exits with 9 [15:51:16]New connection [15:51:16]New thread 3067383140 created [15:51:16]Thread 3067239780 joined [15:51:16]Waiting for new connection... [15:51:16] Sock 9.Parse request [15:51:16]Sock 9.Check first char [15:51:16]Sock 9.First char is OK [15:51:16]request: POST /json_proto HTTP/1.0 [15:51:16]Method: POST [15:51:16]URL: /json_proto [15:51:16]Method is POST - this is cgi request [15:51:16]url: /json_proto [15:51:16]query_string will be loaded in cgi processing [15:51:16]execute_cgi json_proto POST (null) [15:51:16]execute_cgi path=json_proto method=POST [15:51:16]POST find Content-Length [15:51:16]Host: 172.17.45.7:8080 [15:51:16]Content-Length: 822 [15:51:16]Content-Type: application/json [15:51:16] [15:51:16]POST finish read [15:51:16]Found Content-Length = 822 [15:51:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:16]execute_script... [15:51: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)949705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:16]POST & json_proto [15:51:16]process_json_proto [15:51:16]json parsed OK: [15:51:16]protocol is kg_v1.0 [15:51:16]action value=close_receipt [15:51:16]process_action close_receipt [15:51:16]cmd_close_receipt [15:51:16]MH_GetDate [15:51:16]Write to MH i2c: F0 00 00 C5 61 15 [15:51:16]Write i2c OK [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: F0 [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: F0 09 00 [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: F0 09 00 C5 61 00 7A BA A7 66 90 0F 3E 66 A2 [15:51:16]GetLastDocTimeStamp 1722268095 [15:51:16]current date 1722268282 [15:51:16]FM_GetShiftState [15:51:16]SAM_PROTO_GetShiftState [15:51:16]wFMCommunicate request_size=4 [15:51:16]MH_SAM_APDU [15:51:16]CAPDU: 80 13 01 00 [15:51:16]Write to MH i2c: E2 08 00 C6 61 80 13 01 00 00 00 00 00 A4 [15:51:16]Write i2c OK [15:51:16]MH_I2C_Read... [15:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:16]Read from MH i2c: E2 [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: E2 0E 00 [15:51:16]MH_I2C_Read... [15:51:16]Read from MH i2c: E2 0E 00 C6 61 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D2 [15:51:16]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:51:16]wFMCommunicate OK [15:51:16]SAM_PROTO_GetShiftState done [15:51:16]FM_GetShiftState done [15:51:16]opened in 1722211641 [15:51:16]opened+sec_in_day 1722298041 [15:51:16]quantity*price = 200043 [15:51:16]sum+1 = 200044 [15:51:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 195 29.07.2024 15:51 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118819 ФПД: 237732828284610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T155122&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118819&fm=237732828284610&tin=02508201610067®Number=0000000000092660&sum=200000 [15:51:17]StoreToDocumentArchive [15:51:17]shift 434 fd 118819 [15:51:17]save to /storage/0434/doc_00118819 [15:51:17]save last doc name /storage/0434/doc_00118819 to /storage/kkm_last_doc_name [15:51:17]save OK [15:51:17]Clear old archive folders... [15:51:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:51:17]tlvbuf is 01E89FC0 [15:51:17]SAM_PROTO_ClearQueue [15:51:17]wFMCommunicate request_size=4 [15:51:17]MH_SAM_APDU [15:51:17]CAPDU: 80 09 00 00 [15:51:17]Write to MH i2c: E2 08 00 D3 61 80 09 00 00 00 00 00 00 A6 [15:51:17]Write i2c OK [15:51:17]MH_I2C_Read... [15:51:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:17]Read from MH i2c: E2 [15:51:17]MH_I2C_Read... [15:51:17]Read from MH i2c: E2 03 00 [15:51:17]MH_I2C_Read... [15:51:17]Read from MH i2c: E2 03 00 D3 61 00 90 00 A8 [15:51:17]RAPDU: 90 00 [15:51:17]wFMCommunicate OK [15:51:17]SAM_PROTO_ClearQueue done [15:51:17]KKMCreateOFDPacket [15:51:17]OFDProtocolAddRootSTLVToBuf [15:51:17]FM_MakeSignedData [15:51:17]FM_MakeSignedData [15:51:17]SAM_PROTO_SignData [15:51:17]wFMCommunicate request_size=4 [15:51:17]MH_SAM_APDU [15:51:17]CAPDU: 80 0D 01 02 [15:51:17]Write to MH i2c: E2 08 00 D4 61 80 0D 01 02 00 00 00 00 AE [15:51:17]Write i2c OK [15:51:17]MH_I2C_Read... [15:51:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:17]Read from MH i2c: E2 [15:51:17]MH_I2C_Read... [15:51:17]Read from MH i2c: E2 03 00 [15:51:17]MH_I2C_Read... [15:51:17]Read from MH i2c: E2 03 00 D4 61 00 90 00 A9 [15:51:17]RAPDU: 90 00 [15:51:17]wFMCommunicate OK [15:51:17]wFMCommunicate request_size=255 [15:51:17]MH_SAM_APDU [15:51:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 7A BA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 23 D0 01 00 35 04 06 00 D8 [15:51:17]Write to MH i2c: E2 02 01 D5 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 7A BA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 23 D0 01 00 35 04 06 00 D8 00 00 6C [15:51:17]Write i2c OK [15:51:17]MH_I2C_Read... [15:51:17]OFD Sender: No OFD packet to send [15:51:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:17]Read from MH i2c: E2 [15:51:17]MH_I2C_Read... [15:51:17]Read from MH i2c: E2 03 00 [15:51:17]MH_I2C_Read... [15:51:17]Read from MH i2c: E2 03 00 D5 61 00 90 00 AA [15:51:17]RAPDU: 90 00 [15:51:17]wFMCommunicate OK [15:51:17]wFMCommunicate request_size=10 [15:51:17]MH_SAM_APDU [15:51:17]CAPDU: 80 0D 02 02 05 37 7C C8 06 C2 [15:51:17]Write to MH i2c: E2 0D 00 D6 61 80 0D 02 02 05 00 37 7C C8 06 C2 00 00 FE [15:51:17]Write i2c OK [15:51:17]MH_I2C_Read... [15:51:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:17]Read from MH i2c: E2 [15:51:17]MH_I2C_Read... [15:51:17]Read from MH i2c: E2 03 00 [15:51:17]MH_I2C_Read... [15:51:17]Read from MH i2c: E2 03 00 D6 61 00 90 00 AB [15:51:17]RAPDU: 90 00 [15:51:17]wFMCommunicate OK [15:51:17]wFMCommunicate request_size=4 [15:51:17]MH_SAM_APDU [15:51:17]CAPDU: 80 0D 03 02 [15:51:17]Write to MH i2c: E2 08 00 D7 61 80 0D 03 02 00 00 00 00 B3 [15:51:17]Write i2c OK [15:51:17]MH_I2C_Read... [15:51:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:17]Read from MH i2c: E2 [15:51:17]MH_I2C_Read... [15:51:17]Read from MH i2c: E2 0B 00 [15:51:17]MH_I2C_Read... [15:51:17]Read from MH i2c: E2 0B 00 D7 61 00 B9 DE 9B 8D 9A 83 46 4C 90 00 22 [15:51:17]RAPDU: B9 DE 9B 8D 9A 83 46 4C 90 00 [15:51:17]wFMCommunicate OK [15:51:17]SAM_PROTO_SignData done [15:51:17]FM_MakeSignedData done [15:51:17]CreateOFDProtocolMessage [15:51:17]wFMCommunicate request_size=4 [15:51:17]MH_SAM_APDU [15:51:17]CAPDU: 80 11 00 00 [15:51:17]Write to MH i2c: E2 08 00 D8 61 80 11 00 00 00 00 00 00 B3 [15:51:17]Write i2c OK [15:51:17]MH_I2C_Read... [15:51:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:17]Read from MH i2c: E2 [15:51:17]MH_I2C_Read... [15:51:17]Read from MH i2c: E2 17 00 [15:51:17]MH_I2C_Read... [15:51:17]Read from MH i2c: E2 17 00 D8 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0E [15:51:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:51:17]wFMCommunicate OK [15:51:17]CreateOFDProtocolMessage done [15:51:17]OFDSenderStorePacket 118819 [15:51:17]StoreOFDPacket docnum=118819 [15:51:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2E 08 07 01 09 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 7A BA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 23 D0 01 00 35 04 06 00 D8 37 7C C8 06 C2 B9 DE 9B 8D 9A 83 46 4C [15:51:17]CheckFolder [15:51:17]dirname=/storage/ofd_packets [15:51:17]CheckFolder done [15:51:17]ProducePacketName [15:51:17]name=ofd_packets/00118819 [15:51:17]NVStorageSaveData ofd_packets/00118819 [15:51:17]File name is /storage/ofd_packets/00118819 [15:51:17]Write 301 bytes [15:51:17]NVStorageSaveData done [15:51:17]OFDSenderStorePacket done [15:51:17]KKMCreateOFDPacket done [15:51:17]NVStorageSaveData kkm_last_timestamp [15:51:17]File name is /storage/kkm_last_timestamp [15:51:17]Write 4 bytes [15:51:17]NVStorageSaveData done [15:51:17]ExternCall_PrintAddStr [15:51:17]wPrintStart [15:51:17]Write to MH i2c: 01 00 00 D9 61 3A [15:51:17]Write i2c OK [15:51:17]MH_I2C_Read... [15:51:17]Read from MH i2c: 01 [15:51:17]MH_I2C_Read... [15:51:17]Read from MH i2c: 01 07 00 [15:51:17]MH_I2C_Read... [15:51:17]Read from MH i2c: 01 07 00 D9 61 00 00 00 00 00 FF 0F 4F [15:51:17]RasterBufferAndPrint [15:51:17]line Счет N : (1)949705 [15:51:17]line ИНН: 02508201610067 [15:51:17]line Контрольно-Кассовый Чек [15:51:17]line ПРОДАЖА [15:51:17]line ТРК (МРК, ГНК) : 63 [15:51:17]line Товар: 2710124500 [15:51:17]line Аи-95-К-3 [15:51:17]line 26.960 * 74.20 [15:51:17]line = 2000.43 [15:51:17]line НДС 12% НСП 1% [15:51:17]line > о реализуемом товаре [15:51:17]line ОКРУГЛЕНИЕ: -0.43 [15:51:17]line ИТОГО: 2000.00 [15:51:17]line НСП 1% : 17.70 [15:51:17]line НДС 12% : 212.43 [15:51:17]line Наличными: 0.00 [15:51:17]line Безнал.: 2000.00 [15:51:17]line Место: АЗС № 134 "Партнер Нефть" [15:51:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:51:17]line СНО: Общий режим [15:51:17]line Чек 195 29.07.2024 15:51 [15:51:17]line Смена: 434 ФФД: 1.0 [15:51:17]line ЗНМ: 0300000044 [15:51:17]line РНМ: 0000000000092660 [15:51:17]line Версия ККМ: 001 [15:51:17]line Платежная система: O! деньги [15:51:17]line ФМ: 0000000000874939 [15:51:17]line ФД: 118819 [15:51:17]line ФПД: 237732828284610 [15:51:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T155122&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118819&fm=237732828284610&tin=02508201610067®Number=0000000000092660&sum=200000 [15:51:18]OFD Sender: Processing packet 118819 [packets to send 86, broken 85] [15:51:18]ProducePacketName [15:51:18]name=ofd_packets/00118819 [15:51:18]OFD Sender: To server: pG, [15:51:18]CommunicateWithHost lk.salyk.kg:30040 [15:51:18]ConnectInit lk.salyk.kg [15:51:18]written 0, free lines is 4095 [15:51:18]Connected sock=10 [15: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 34 39 33 39 0F 01 00 00 2E 08 07 01 09 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 7A BA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 23 D0 01 00 35 04 06 00 D8 37 7C C8 06 C2 B9 DE 9B 8D 9A 83 46 4C [15:51:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 78 4A 47 00 C7 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 23 D0 01 00 F4 03 04 00 07 68 A7 66 B6 04 01 00 00 DB AC 6A 0A 00 5A 55 C4 [15:51:18]CommunicateWithHost err = 0 [15:51:18]CheckOFDResponse [15:51:18]1017 (14) - 77093643461234 [15:51:18]1041 (16) - 0000000000874939 [15:51:18]1040 (4) - 118819 [15:51:18]1012 (4) - 29.07.2024 09:59 [15:51:18]1206 (1) - 0 [15:51:18]OFD Sender: Remove packet 118819 [15:51:18]ProducePacketName [15:51:18]name=ofd_packets/00118819 [15:51:18]NVStorageDeleteData [15:51:18]Write to MH i2c: 01 00 00 03 62 65 [15:51:18]Write i2c OK [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: 01 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: 01 07 00 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: 01 07 00 03 62 00 00 00 00 00 FB 0C 73 [15:51:18]RasterBufferAndPrint [15:51:18]line [15:51:18]line [15:51:18]line [15:51:18]line [15:51:18]line [15:51:18]written 0, free lines is 3332 [15:51:18]MH_Cut [15:51:18]Write to MH i2c: D1 01 00 0A 62 01 3E [15:51:18]Write i2c OK [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: D1 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: D1 01 00 [15:51:18]MH_I2C_Read... [15:51:18]Read from MH i2c: D1 01 00 0A 62 00 3D [15:51:18]Write to MH i2c: 01 00 00 0B 62 6D [15:51:18]Write i2c OK [15:51:18]MH_I2C_Read... [15:51:18]OFD Sender: No OFD packet to send [15:51:19]*** Cut start [15:51:19]*** Partial cut [15:51:19]*** CUTSNS_PIN = 1 [15:51:19]*** CUTSNS_PIN = 0 [15:51:19]*** Brake cut motor [15:51:19]Read from MH i2c: 01 [15:51:20]MH_I2C_Read... [15:51:20]*** Stop cut motor [15:51:20]*** Cut end [15:51:20]Read from MH i2c: 01 07 00 [15:51:20]MH_I2C_Read... [15:51:20]Read from MH i2c: 01 07 00 0B 62 00 00 00 00 00 FF 0F 82 [15:51:20]process_action close_receipt done [15:51:20]requested_data is exist [15:51:20]produce_requested_data [15:51:20]requested_item fm.sn is exist - process it [15:51:20]wFMCommunicate request_size=4 [15:51:20]MH_SAM_APDU [15:51:20]CAPDU: 80 11 00 00 [15:51:20]Write to MH i2c: E2 08 00 0C 62 80 11 00 00 00 00 00 00 E8 [15:51:20]Write i2c OK [15:51:20]MH_I2C_Read... [15:51:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:20]Read from MH i2c: E2 [15:51:20]MH_I2C_Read... [15:51:20]Read from MH i2c: E2 17 00 [15:51:20]MH_I2C_Read... [15:51:20]Read from MH i2c: E2 17 00 0C 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 43 [15:51:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:51:20]wFMCommunicate OK [15:51:20]requested_item fd.num is exist - process it [15:51:20]SAM_PROTO_GetFieldsCounters [15:51:20]wFMCommunicate request_size=4 [15:51:20]MH_SAM_APDU [15:51:20]CAPDU: 80 13 00 00 [15:51:20]Write to MH i2c: E2 08 00 0D 62 80 13 00 00 00 00 00 00 EB [15:51:20]Write i2c OK [15:51:20]MH_I2C_Read... [15:51:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:20]Read from MH i2c: E2 [15:51:20]MH_I2C_Read... [15:51:20]Read from MH i2c: E2 62 00 [15:51:20]MH_I2C_Read... [15:51:20]Read from MH i2c: E2 62 00 0D 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 23 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [15:51: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 23 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:51:20]wFMCommunicate OK [15:51:20]SAM_PROTO_GetFieldsCounters done [15:51:20]requested_item shift.num is exist - process it [15:51:20]requested_item shift.opened is exist - process it [15:51:20]req_shift_opened [15:51:20]FM_GetShiftState [15:51:20]SAM_PROTO_GetShiftState [15:51:20]wFMCommunicate request_size=4 [15:51:20]MH_SAM_APDU [15:51:20]CAPDU: 80 13 01 00 [15:51:20]Write to MH i2c: E2 08 00 0E 62 80 13 01 00 00 00 00 00 ED [15:51:20]Write i2c OK [15:51:20]MH_I2C_Read... [15:51:20]Read from MH i2c: E2 [15:51:20]MH_I2C_Read... [15:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:20]Read from MH i2c: E2 0E 00 [15:51:20]MH_I2C_Read... [15:51:20]Read from MH i2c: E2 0E 00 0E 62 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 1B [15:51:20]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:51:20]wFMCommunicate OK [15:51:20]SAM_PROTO_GetShiftState done [15:51:20]FM_GetShiftState done [15:51:20]req_shift_opened done [15:51:20]requested_item shift.open_date is exist - process it [15:51:20]req_shift_open_date [15:51:20]req_shift_open_date done [15:51:20]produce_requested_data done [15:51:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118819,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [15:51:20]process_action_free close_receipt [15:51:20]json_value_free [15:51:20]json_value_free done [15:51:20]process_json_proto returns [15:51:20]Send response to host [15:51:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118819,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [15:51:20]free response buf [15:51:20]execute_script done [15:51:20]execute_script returns [15:51:20]free content buf [15:51:20]Sock 9.Close socket [15:51:20]Sock 9.Thread stoped [15:51:23]OFD Sender: No OFD packet to send [15:51:28]OFD Sender: No OFD packet to send [15:51:34]OFD Sender: No OFD packet to send [15:51:39]OFD Sender: No OFD packet to send [15:51:44]OFD Sender: No OFD packet to send [15:51:49]OFD Sender: No OFD packet to send [15:51:54]OFD Sender: No OFD packet to send [15:51:59]OFD Sender: No OFD packet to send [15:52:04]OFD Sender: No OFD packet to send [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:39]OFD Sender: No OFD packet to send [15:55:44]OFD Sender: No OFD packet to send [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:59]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:42]accept exits with 7 [15:56:42]New connection [15:56:42]New thread 3067239780 created [15:56:42]Thread 3067383140 joined [15:56:42]Waiting for new connection... [15:56:42] Sock 7.Parse request [15:56:42]Sock 7.Check first char [15:56:42]Sock 7.First char is OK [15:56:42]request: POST /json_proto HTTP/1.0 [15:56:42]Method: POST [15:56:42]URL: /json_proto [15:56:42]Method is POST - this is cgi request [15:56:42]url: /json_proto [15:56:42]query_string will be loaded in cgi processing [15:56:42]execute_cgi json_proto POST (null) [15:56:42]execute_cgi path=json_proto method=POST [15:56:42]POST find Content-Length [15:56:42]Host: 172.17.45.7:8080 [15:56:42]Content-Length: 679 [15:56:42]Content-Type: application/json [15:56:42] [15:56:42]POST finish read [15:56:42]Found Content-Length = 679 [15:56:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:42]execute_script... [15:56: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)949706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:42]POST & json_proto [15:56:42]process_json_proto [15:56:42]json parsed OK: [15:56:42]protocol is kg_v1.0 [15:56:42]action value=close_receipt [15:56:42]process_action close_receipt [15:56:42]cmd_close_receipt [15:56:42]MH_GetDate [15:56:42]Write to MH i2c: F0 00 00 0F 62 60 [15:56:42]Write i2c OK [15:56:42]MH_I2C_Read... [15:56:42]Read from MH i2c: F0 [15:56:42]MH_I2C_Read... [15:56:42]Read from MH i2c: F0 09 00 [15:56:42]MH_I2C_Read... [15:56:42]Read from MH i2c: F0 09 00 0F 62 00 C0 BB A7 66 90 0F 3E 66 34 [15:56:42]GetLastDocTimeStamp 1722268282 [15:56:42]current date 1722268608 [15:56:42]FM_GetShiftState [15:56:42]SAM_PROTO_GetShiftState [15:56:42]wFMCommunicate request_size=4 [15:56:42]MH_SAM_APDU [15:56:42]CAPDU: 80 13 01 00 [15:56:42]Write to MH i2c: E2 08 00 10 62 80 13 01 00 00 00 00 00 EF [15:56:42]Write i2c OK [15:56:42]MH_I2C_Read... [15:56:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:42]Read from MH i2c: E2 [15:56:42]MH_I2C_Read... [15:56:42]Read from MH i2c: E2 0E 00 [15:56:42]MH_I2C_Read... [15:56:42]Read from MH i2c: E2 0E 00 10 62 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 1D [15:56:42]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:56:42]wFMCommunicate OK [15:56:42]SAM_PROTO_GetShiftState done [15:56:42]FM_GetShiftState done [15:56:42]opened in 1722211641 [15:56:42]opened+sec_in_day 1722298041 [15:56:42]quantity*price = 100050 [15:56:42]sum+1 = 100052 [15:56:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 196 29.07.2024 15:56 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118820 ФПД: 178794047418224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T155648&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118820&fm=178794047418224&tin=02508201610067®Number=0000000000092660&sum=100000 [15:56:43]StoreToDocumentArchive [15:56:43]shift 434 fd 118820 [15:56:43]save to /storage/0434/doc_00118820 [15:56:43]save last doc name /storage/0434/doc_00118820 to /storage/kkm_last_doc_name [15:56:43]save OK [15:56:43]Clear old archive folders... [15:56:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:56:43]tlvbuf is 02060FC0 [15:56:43]SAM_PROTO_ClearQueue [15:56:43]wFMCommunicate request_size=4 [15:56:43]MH_SAM_APDU [15:56:43]CAPDU: 80 09 00 00 [15:56:43]Write to MH i2c: E2 08 00 1D 62 80 09 00 00 00 00 00 00 F1 [15:56:43]Write i2c OK [15:56:43]MH_I2C_Read... [15:56:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:43]Read from MH i2c: E2 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 1D 62 00 90 00 F3 [15:56:43]RAPDU: 90 00 [15:56:43]wFMCommunicate OK [15:56:43]SAM_PROTO_ClearQueue done [15:56:43]KKMCreateOFDPacket [15:56:43]OFDProtocolAddRootSTLVToBuf [15:56:43]FM_MakeSignedData [15:56:43]FM_MakeSignedData [15:56:43]SAM_PROTO_SignData [15:56:43]wFMCommunicate request_size=4 [15:56:43]MH_SAM_APDU [15:56:43]CAPDU: 80 0D 01 02 [15:56:43]Write to MH i2c: E2 08 00 1E 62 80 0D 01 02 00 00 00 00 F9 [15:56:43]Write i2c OK [15:56:43]MH_I2C_Read... [15:56:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:43]Read from MH i2c: E2 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 1E 62 00 90 00 F4 [15:56:43]RAPDU: 90 00 [15:56:43]wFMCommunicate OK [15:56:43]wFMCommunicate request_size=255 [15:56:43]MH_SAM_APDU [15:56:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 C0 BB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 24 D0 01 00 35 04 06 00 A2 9C BB AF [15:56:43]Write to MH i2c: E2 02 01 1F 62 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 C0 BB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 24 D0 01 00 35 04 06 00 A2 9C BB AF 00 00 25 [15:56:43]Write i2c OK [15:56:43]MH_I2C_Read... [15:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:43]Read from MH i2c: E2 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 1F 62 00 90 00 F5 [15:56:43]RAPDU: 90 00 [15:56:43]wFMCommunicate OK [15:56:43]wFMCommunicate request_size=7 [15:56:43]MH_SAM_APDU [15:56:43]CAPDU: 80 0D 02 02 02 2F 70 [15:56:43]Write to MH i2c: E2 0A 00 20 62 80 0D 02 02 02 00 2F 70 00 00 9F [15:56:43]Write i2c OK [15:56:43]MH_I2C_Read... [15:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:43]Read from MH i2c: E2 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 03 00 20 62 00 90 00 F6 [15:56:43]RAPDU: 90 00 [15:56:43]wFMCommunicate OK [15:56:43]wFMCommunicate request_size=4 [15:56:43]MH_SAM_APDU [15:56:43]CAPDU: 80 0D 03 02 [15:56:43]Write to MH i2c: E2 08 00 21 62 80 0D 03 02 00 00 00 00 FE [15:56:43]Write i2c OK [15:56:43]MH_I2C_Read... [15:56:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:43]Read from MH i2c: E2 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 0B 00 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 0B 00 21 62 00 3F 2E DC D9 BC 7D 33 A8 90 00 35 [15:56:43]RAPDU: 3F 2E DC D9 BC 7D 33 A8 90 00 [15:56:43]wFMCommunicate OK [15:56:43]SAM_PROTO_SignData done [15:56:43]FM_MakeSignedData done [15:56:43]CreateOFDProtocolMessage [15:56:43]wFMCommunicate request_size=4 [15:56:43]MH_SAM_APDU [15:56:43]CAPDU: 80 11 00 00 [15:56:43]Write to MH i2c: E2 08 00 22 62 80 11 00 00 00 00 00 00 FE [15:56:43]Write i2c OK [15:56:43]MH_I2C_Read... [15:56:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:43]Read from MH i2c: E2 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 17 00 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: E2 17 00 22 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 59 [15:56:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:56:43]wFMCommunicate OK [15:56:43]CreateOFDProtocolMessage done [15:56:43]OFDSenderStorePacket 118820 [15:56:43]StoreOFDPacket docnum=118820 [15:56:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 34 27 04 01 6D F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 C0 BB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 24 D0 01 00 35 04 06 00 A2 9C BB AF 2F 70 3F 2E DC D9 BC 7D 33 A8 [15:56:43]CheckFolder [15:56:43]dirname=/storage/ofd_packets [15:56:43]CheckFolder done [15:56:43]ProducePacketName [15:56:43]name=ofd_packets/00118820 [15:56:43]NVStorageSaveData ofd_packets/00118820 [15:56:43]File name is /storage/ofd_packets/00118820 [15:56:43]Write 298 bytes [15:56:43]NVStorageSaveData done [15:56:43]OFDSenderStorePacket done [15:56:43]KKMCreateOFDPacket done [15:56:43]NVStorageSaveData kkm_last_timestamp [15:56:43]File name is /storage/kkm_last_timestamp [15:56:43]Write 4 bytes [15:56:43]NVStorageSaveData done [15:56:43]ExternCall_PrintAddStr [15:56:43]wPrintStart [15:56:43]Write to MH i2c: 01 00 00 23 62 85 [15:56:43]Write i2c OK [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: 01 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: 01 07 00 [15:56:43]MH_I2C_Read... [15:56:43]Read from MH i2c: 01 07 00 23 62 00 00 00 00 00 FF 0F 9A [15:56:43]RasterBufferAndPrint [15:56:43]line Счет N : (1)949706 [15:56:43]line ИНН: 02508201610067 [15:56:43]line Контрольно-Кассовый Чек [15:56:43]line ПРОДАЖА [15:56:43]line ТРК (МРК, ГНК) : 44 [15:56:43]line Товар: 2710194800 [15:56:43]line ДТ-К-5 [15:56:43]line 13.130 * 76.20 [15:56:43]line = 1000.51 [15:56:43]line НДС 12% НСП 1% [15:56:43]line > о реализуемом товаре [15:56:43]line ОКРУГЛЕНИЕ: -0.51 [15:56:43]line ИТОГО: 1000.00 [15:56:43]line Внесено: 1000.00 [15:56:43]line СДАЧА: 0.00 [15:56:43]line НСП 1% : 8.85 [15:56:43]line НДС 12% : 106.25 [15:56:43]line Наличными: 1000.00 [15:56:43]line Безнал.: 0.00 [15:56:43]line Место: АЗС № 134 "Партнер Нефть" [15:56:43]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:56:43]line СНО: Общий режим [15:56:43]line Чек 196 29.07.2024 15:56 [15:56:43]line Смена: 434 ФФД: 1.0 [15:56:43]line ЗНМ: 0300000044 [15:56:43]line РНМ: 0000000000092660 [15:56:43]line Версия ККМ: 001 [15:56:43]line ФМ: 0000000000874939 [15:56:43]line ФД: 118820 [15:56:43]line ФПД: 178794047418224 [15:56:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T155648&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118820&fm=178794047418224&tin=02508201610067®Number=0000000000092660&sum=100000 [15:56:44]OFD Sender: Processing packet 118820 [packets to send 86, broken 85] [15:56:44]ProducePacketName [15:56:44]name=ofd_packets/00118820 [15:56:44]OFD Sender: To server: pG, [15:56:44]CommunicateWithHost lk.salyk.kg:30040 [15:56:44]ConnectInit lk.salyk.kg [15:56:44]written 0, free lines is 4095 [15:56:44]Connected sock=10 [15:56:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 34 27 04 01 6D F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 C0 BB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 24 D0 01 00 35 04 06 00 A2 9C BB AF 2F 70 3F 2E DC D9 BC 7D 33 A8 [15:56:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7C C0 47 00 9B 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 34 39 33 39 10 04 04 00 24 D0 01 00 F4 03 04 00 4D 69 A7 66 B6 04 01 00 00 38 9B D7 F9 1D 71 FC 30 [15:56:44]CommunicateWithHost err = 0 [15:56:44]CheckOFDResponse [15:56:44]1017 (14) - 77093643461234 [15:56:44]1041 (16) - 0000000000874939 [15:56:44]1040 (4) - 118820 [15:56:44]1012 (4) - 29.07.2024 10:05 [15:56:44]1206 (1) - 0 [15:56:44]OFD Sender: Remove packet 118820 [15:56:44]ProducePacketName [15:56:44]name=ofd_packets/00118820 [15:56:44]NVStorageDeleteData [15:56:44]Write to MH i2c: 01 00 00 4D 62 AF [15:56:44]Write i2c OK [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: 01 [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: 01 07 00 [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: 01 07 00 4D 62 00 00 00 00 00 DF 0C A1 [15:56:44]RasterBufferAndPrint [15:56:44]line [15:56:44]line [15:56:44]line [15:56:44]line [15:56:44]line [15:56:44]written 0, free lines is 3302 [15:56:44]MH_Cut [15:56:44]Write to MH i2c: D1 01 00 54 62 01 88 [15:56:44]Write i2c OK [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: D1 [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: D1 01 00 [15:56:44]MH_I2C_Read... [15:56:44]Read from MH i2c: D1 01 00 54 62 00 87 [15:56:44]Write to MH i2c: 01 00 00 55 62 B7 [15:56:44]Write i2c OK [15:56:44]MH_I2C_Read... [15:56:44]OFD Sender: No OFD packet to send [15:56:45]*** Cut start [15:56:45]*** Partial cut [15:56:45]*** CUTSNS_PIN = 1 [15:56:45]*** CUTSNS_PIN = 0 [15:56:45]*** Brake cut motor [15:56:45]Read from MH i2c: 01 [15:56:45]MH_I2C_Read... [15:56:45]*** Stop cut motor [15:56:45]*** Cut end [15:56:45]Read from MH i2c: 01 07 00 [15:56:45]MH_I2C_Read... [15:56:45]Read from MH i2c: 01 07 00 55 62 00 00 00 00 00 FF 0F CC [15:56:45]process_action close_receipt done [15:56:45]requested_data is exist [15:56:45]produce_requested_data [15:56:45]requested_item fm.sn is exist - process it [15:56:45]wFMCommunicate request_size=4 [15:56:45]MH_SAM_APDU [15:56:45]CAPDU: 80 11 00 00 [15:56:45]Write to MH i2c: E2 08 00 56 62 80 11 00 00 00 00 00 00 32 [15:56:45]Write i2c OK [15:56:45]MH_I2C_Read... [15:56:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:45]Read from MH i2c: E2 [15:56:45]MH_I2C_Read... [15:56:45]Read from MH i2c: E2 17 00 [15:56:45]MH_I2C_Read... [15:56:45]Read from MH i2c: E2 17 00 56 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8D [15:56:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:56:45]wFMCommunicate OK [15:56:45]requested_item fd.num is exist - process it [15:56:45]SAM_PROTO_GetFieldsCounters [15:56:45]wFMCommunicate request_size=4 [15:56:45]MH_SAM_APDU [15:56:45]CAPDU: 80 13 00 00 [15:56:45]Write to MH i2c: E2 08 00 57 62 80 13 00 00 00 00 00 00 35 [15:56:45]Write i2c OK [15:56:45]MH_I2C_Read... [15:56:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:46]Read from MH i2c: E2 [15:56:46]MH_I2C_Read... [15:56:46]Read from MH i2c: E2 62 00 [15:56:46]MH_I2C_Read... [15:56:46]Read from MH i2c: E2 62 00 57 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 24 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [15:56: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 24 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:46]wFMCommunicate OK [15:56:46]SAM_PROTO_GetFieldsCounters done [15:56:46]requested_item shift.num is exist - process it [15:56:46]requested_item shift.opened is exist - process it [15:56:46]req_shift_opened [15:56:46]FM_GetShiftState [15:56:46]SAM_PROTO_GetShiftState [15:56:46]wFMCommunicate request_size=4 [15:56:46]MH_SAM_APDU [15:56:46]CAPDU: 80 13 01 00 [15:56:46]Write to MH i2c: E2 08 00 58 62 80 13 01 00 00 00 00 00 37 [15:56:46]Write i2c OK [15:56:46]MH_I2C_Read... [15:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:46]Read from MH i2c: E2 [15:56:46]MH_I2C_Read... [15:56:46]Read from MH i2c: E2 0E 00 [15:56:46]MH_I2C_Read... [15:56:46]Read from MH i2c: E2 0E 00 58 62 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 65 [15:56:46]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:56:46]wFMCommunicate OK [15:56:46]SAM_PROTO_GetShiftState done [15:56:46]FM_GetShiftState done [15:56:46]req_shift_opened done [15:56:46]requested_item shift.open_date is exist - process it [15:56:46]req_shift_open_date [15:56:46]req_shift_open_date done [15:56:46]produce_requested_data done [15:56:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118820,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [15:56:46]process_action_free close_receipt [15:56:46]json_value_free [15:56:46]json_value_free done [15:56:46]process_json_proto returns [15:56:46]Send response to host [15:56:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118820,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [15:56:46]free response buf [15:56:46]execute_script done [15:56:46]execute_script returns [15:56:46]free content buf [15:56:46]Sock 7.Close socket [15:56:46]Sock 7.Thread stoped [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:19]OFD Sender: No OFD packet to send [15:57:23]accept exits with 9 [15:57:23]New connection [15:57:23]New thread 3067383140 created [15:57:23]Thread 3067239780 joined [15:57:23]Waiting for new connection... [15:57:23] Sock 9.Parse request [15:57:23]Sock 9.Check first char [15:57:23]Sock 9.First char is OK [15:57:23]request: POST /json_proto HTTP/1.0 [15:57:23]Method: POST [15:57:23]URL: /json_proto [15:57:23]Method is POST - this is cgi request [15:57:23]url: /json_proto [15:57:23]query_string will be loaded in cgi processing [15:57:23]execute_cgi json_proto POST (null) [15:57:23]execute_cgi path=json_proto method=POST [15:57:23]POST find Content-Length [15:57:23]Host: 172.17.45.7:8080 [15:57:23]Content-Length: 682 [15:57:23]Content-Type: application/json [15:57:23] [15:57:23]POST finish read [15:57:23]Found Content-Length = 682 [15:57:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:23]execute_script... [15:57:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:23]POST & json_proto [15:57:23]process_json_proto [15:57:23]json parsed OK: [15:57:23]protocol is kg_v1.0 [15:57:23]action value=close_receipt [15:57:23]process_action close_receipt [15:57:23]cmd_close_receipt [15:57:23]MH_GetDate [15:57:23]Write to MH i2c: F0 00 00 59 62 AA [15:57:23]Write i2c OK [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: F0 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: F0 09 00 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: F0 09 00 59 62 00 E9 BB A7 66 90 0F 3E 66 A7 [15:57:23]GetLastDocTimeStamp 1722268608 [15:57:23]current date 1722268649 [15:57:23]FM_GetShiftState [15:57:23]SAM_PROTO_GetShiftState [15:57:23]wFMCommunicate request_size=4 [15:57:23]MH_SAM_APDU [15:57:23]CAPDU: 80 13 01 00 [15:57:23]Write to MH i2c: E2 08 00 5A 62 80 13 01 00 00 00 00 00 39 [15:57:23]Write i2c OK [15:57:23]MH_I2C_Read... [15:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:23]Read from MH i2c: E2 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: E2 0E 00 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: E2 0E 00 5A 62 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 67 [15:57:23]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:57:23]wFMCommunicate OK [15:57:23]SAM_PROTO_GetShiftState done [15:57:23]FM_GetShiftState done [15:57:23]opened in 1722211641 [15:57:23]opened+sec_in_day 1722298041 [15:57:23]quantity*price = 100005 [15:57:23]sum+1 = 100006 [15:57:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 197 29.07.2024 15:57 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118821 ФПД: 125360964371038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T155729&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118821&fm=125360964371038&tin=02508201610067®Number=0000000000092660&sum=100000 [15:57:24]StoreToDocumentArchive [15:57:24]shift 434 fd 118821 [15:57:24]save to /storage/0434/doc_00118821 [15:57:24]save last doc name /storage/0434/doc_00118821 to /storage/kkm_last_doc_name [15:57:24]save OK [15:57:24]Clear old archive folders... [15:57:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:57:24]tlvbuf is 01FB5DF0 [15:57:24]SAM_PROTO_ClearQueue [15:57:24]wFMCommunicate request_size=4 [15:57:24]MH_SAM_APDU [15:57:24]CAPDU: 80 09 00 00 [15:57:24]Write to MH i2c: E2 08 00 67 62 80 09 00 00 00 00 00 00 3B [15:57:24]Write i2c OK [15:57:24]MH_I2C_Read... [15:57:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:24]Read from MH i2c: E2 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: E2 03 00 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: E2 03 00 67 62 00 90 00 3D [15:57:24]RAPDU: 90 00 [15:57:24]wFMCommunicate OK [15:57:24]SAM_PROTO_ClearQueue done [15:57:24]KKMCreateOFDPacket [15:57:24]OFDProtocolAddRootSTLVToBuf [15:57:24]FM_MakeSignedData [15:57:24]FM_MakeSignedData [15:57:24]SAM_PROTO_SignData [15:57:24]wFMCommunicate request_size=4 [15:57:24]MH_SAM_APDU [15:57:24]CAPDU: 80 0D 01 02 [15:57:24]Write to MH i2c: E2 08 00 68 62 80 0D 01 02 00 00 00 00 43 [15:57:24]Write i2c OK [15:57:24]MH_I2C_Read... [15:57:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:24]Read from MH i2c: E2 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: E2 03 00 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: E2 03 00 68 62 00 90 00 3E [15:57:24]RAPDU: 90 00 [15:57:24]wFMCommunicate OK [15:57:24]wFMCommunicate request_size=255 [15:57:24]MH_SAM_APDU [15:57:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 E9 BB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 D0 01 00 35 04 06 00 72 [15:57:24]Write to MH i2c: E2 02 01 69 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 E9 BB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 D0 01 00 35 04 06 00 72 00 00 E7 [15:57:24]Write i2c OK [15:57:24]MH_I2C_Read... [15:57:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:24]Read from MH i2c: E2 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: E2 03 00 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: E2 03 00 69 62 00 90 00 3F [15:57:24]RAPDU: 90 00 [15:57:24]wFMCommunicate OK [15:57:24]wFMCommunicate request_size=10 [15:57:24]MH_SAM_APDU [15:57:24]CAPDU: 80 0D 02 02 05 03 DF C0 02 5E [15:57:24]Write to MH i2c: E2 0D 00 6A 62 80 0D 02 02 05 00 03 DF C0 02 5E 00 00 52 [15:57:24]Write i2c OK [15:57:24]MH_I2C_Read... [15:57:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:24]Read from MH i2c: E2 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: E2 03 00 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: E2 03 00 6A 62 00 90 00 40 [15:57:24]RAPDU: 90 00 [15:57:24]wFMCommunicate OK [15:57:24]wFMCommunicate request_size=4 [15:57:24]MH_SAM_APDU [15:57:24]CAPDU: 80 0D 03 02 [15:57:24]Write to MH i2c: E2 08 00 6B 62 80 0D 03 02 00 00 00 00 48 [15:57:24]Write i2c OK [15:57:24]MH_I2C_Read... [15:57:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:24]Read from MH i2c: E2 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: E2 0B 00 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: E2 0B 00 6B 62 00 F9 0C 2D 99 48 B6 FB 18 90 00 25 [15:57:24]RAPDU: F9 0C 2D 99 48 B6 FB 18 90 00 [15:57:24]wFMCommunicate OK [15:57:24]SAM_PROTO_SignData done [15:57:24]FM_MakeSignedData done [15:57:24]CreateOFDProtocolMessage [15:57:24]wFMCommunicate request_size=4 [15:57:24]MH_SAM_APDU [15:57:24]CAPDU: 80 11 00 00 [15:57:24]Write to MH i2c: E2 08 00 6C 62 80 11 00 00 00 00 00 00 48 [15:57:24]Write i2c OK [15:57:24]MH_I2C_Read... [15:57:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:24]Read from MH i2c: E2 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: E2 17 00 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: E2 17 00 6C 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A3 [15:57:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:57:24]wFMCommunicate OK [15:57:24]CreateOFDProtocolMessage done [15:57:24]OFDSenderStorePacket 118821 [15:57:24]StoreOFDPacket docnum=118821 [15:57:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 71 B5 07 01 13 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 E9 BB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 D0 01 00 35 04 06 00 72 03 DF C0 02 5E F9 0C 2D 99 48 B6 FB 18 [15:57:24]CheckFolder [15:57:24]dirname=/storage/ofd_packets [15:57:24]CheckFolder done [15:57:24]ProducePacketName [15:57:24]name=ofd_packets/00118821 [15:57:24]NVStorageSaveData ofd_packets/00118821 [15:57:24]File name is /storage/ofd_packets/00118821 [15:57:24]Write 301 bytes [15:57:24]NVStorageSaveData done [15:57:24]OFDSenderStorePacket done [15:57:24]KKMCreateOFDPacket done [15:57:24]NVStorageSaveData kkm_last_timestamp [15:57:24]File name is /storage/kkm_last_timestamp [15:57:24]Write 4 bytes [15:57:24]NVStorageSaveData done [15:57:24]ExternCall_PrintAddStr [15:57:24]wPrintStart [15:57:24]Write to MH i2c: 01 00 00 6D 62 CF [15:57:24]Write i2c OK [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: 01 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: 01 07 00 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: 01 07 00 6D 62 00 00 00 00 00 FF 0F E4 [15:57:24]RasterBufferAndPrint [15:57:24]line Счет N : (1)949707 [15:57:24]line ИНН: 02508201610067 [15:57:24]line Контрольно-Кассовый Чек [15:57:24]line ПРОДАЖА [15:57:24]line ТРК (МРК, ГНК) : 51 [15:57:24]line Товар: 2710124130 [15:57:24]line Аи-92-К-4 [15:57:24]line 14.750 * 67.80 [15:57:24]line = 1000.05 [15:57:24]line НДС 12% НСП 1% [15:57:24]line > о реализуемом товаре [15:57:24]line ОКРУГЛЕНИЕ: -0.05 [15:57:24]line ИТОГО: 1000.00 [15:57:24]line Внесено: 1000.00 [15:57:24]line СДАЧА: 0.00 [15:57:24]line НСП 1% : 8.85 [15:57:24]line НДС 12% : 106.20 [15:57:24]line Наличными: 1000.00 [15:57:24]line Безнал.: 0.00 [15:57:24]line Место: АЗС № 134 "Партнер Нефть" [15:57:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:57:24]line СНО: Общий режим [15:57:24]line Чек 197 29.07.2024 15:57 [15:57:24]line Смена: 434 ФФД: 1.0 [15:57:24]line ЗНМ: 0300000044 [15:57:24]line РНМ: 0000000000092660 [15:57:24]line Версия ККМ: 001 [15:57:24]line ФМ: 0000000000874939 [15:57:24]line ФД: 118821 [15:57:24]line ФПД: 125360964371038 [15:57:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T155729&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118821&fm=125360964371038&tin=02508201610067®Number=0000000000092660&sum=100000 [15:57:25]OFD Sender: Processing packet 118821 [packets to send 86, broken 85] [15:57:25]ProducePacketName [15:57:25]name=ofd_packets/00118821 [15:57:25]OFD Sender: To server: pG, [15:57:25]CommunicateWithHost lk.salyk.kg:30040 [15:57:25]ConnectInit lk.salyk.kg [15:57:25]written 0, free lines is 4095 [15:57:25]Connected sock=10 [15:57:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 71 B5 07 01 13 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 E9 BB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 D0 01 00 35 04 06 00 72 03 DF C0 02 5E F9 0C 2D 99 48 B6 FB 18 [15:57:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 18 40 47 00 AA 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 34 39 33 39 10 04 04 00 25 D0 01 00 F4 03 04 00 77 69 A7 66 B6 04 01 00 00 FE 55 15 9D 29 FA 18 4D [15:57:25]CommunicateWithHost err = 0 [15:57:25]CheckOFDResponse [15:57:25]1017 (14) - 77093643461234 [15:57:25]1041 (16) - 0000000000874939 [15:57:25]1040 (4) - 118821 [15:57:25]1012 (4) - 29.07.2024 10:05 [15:57:25]1206 (1) - 0 [15:57:25]OFD Sender: Remove packet 118821 [15:57:25]ProducePacketName [15:57:25]name=ofd_packets/00118821 [15:57:25]NVStorageDeleteData [15:57:25]Write to MH i2c: 01 00 00 97 62 F9 [15:57:25]Write i2c OK [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: 01 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: 01 07 00 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: 01 07 00 97 62 00 00 00 00 00 E0 0C EC [15:57:25]RasterBufferAndPrint [15:57:25]line [15:57:25]line [15:57:25]line [15:57:25]line [15:57:25]line [15:57:25]written 0, free lines is 3304 [15:57:25]MH_Cut [15:57:25]Write to MH i2c: D1 01 00 9E 62 01 D2 [15:57:25]Write i2c OK [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: D1 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: D1 01 00 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: D1 01 00 9E 62 00 D1 [15:57:25]Write to MH i2c: 01 00 00 9F 62 01 [15:57:25]Write i2c OK [15:57:25]MH_I2C_Read... [15:57:26]OFD Sender: No OFD packet to send [15:57:26]*** Cut start [15:57:26]*** Partial cut [15:57:26]*** CUTSNS_PIN = 1 [15:57:26]*** CUTSNS_PIN = 0 [15:57:26]*** Brake cut motor [15:57:26]Read from MH i2c: 01 [15:57:27]MH_I2C_Read... [15:57:27]*** Stop cut motor [15:57:27]*** Cut end [15:57:27]Read from MH i2c: 01 07 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: 01 07 00 9F 62 00 00 00 00 00 FF 0F 16 [15:57:27]process_action close_receipt done [15:57:27]requested_data is exist [15:57:27]produce_requested_data [15:57:27]requested_item fm.sn is exist - process it [15:57:27]wFMCommunicate request_size=4 [15:57:27]MH_SAM_APDU [15:57:27]CAPDU: 80 11 00 00 [15:57:27]Write to MH i2c: E2 08 00 A0 62 80 11 00 00 00 00 00 00 7C [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 17 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 17 00 A0 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D7 [15:57:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:57:27]wFMCommunicate OK [15:57:27]requested_item fd.num is exist - process it [15:57:27]SAM_PROTO_GetFieldsCounters [15:57:27]wFMCommunicate request_size=4 [15:57:27]MH_SAM_APDU [15:57:27]CAPDU: 80 13 00 00 [15:57:27]Write to MH i2c: E2 08 00 A1 62 80 13 00 00 00 00 00 00 7F [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 62 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 62 00 A1 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 25 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [15:57: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 25 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:57:27]wFMCommunicate OK [15:57:27]SAM_PROTO_GetFieldsCounters done [15:57:27]requested_item shift.num is exist - process it [15:57:27]requested_item shift.opened is exist - process it [15:57:27]req_shift_opened [15:57:27]FM_GetShiftState [15:57:27]SAM_PROTO_GetShiftState [15:57:27]wFMCommunicate request_size=4 [15:57:27]MH_SAM_APDU [15:57:27]CAPDU: 80 13 01 00 [15:57:27]Write to MH i2c: E2 08 00 A2 62 80 13 01 00 00 00 00 00 81 [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 0E 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 0E 00 A2 62 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 AF [15:57:27]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [15:57:27]wFMCommunicate OK [15:57:27]SAM_PROTO_GetShiftState done [15:57:27]FM_GetShiftState done [15:57:27]req_shift_opened done [15:57:27]requested_item shift.open_date is exist - process it [15:57:27]req_shift_open_date [15:57:27]req_shift_open_date done [15:57:27]produce_requested_data done [15:57:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118821,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [15:57:27]process_action_free close_receipt [15:57:27]json_value_free [15:57:27]json_value_free done [15:57:27]process_json_proto returns [15:57:27]Send response to host [15:57:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118821,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [15:57:27]free response buf [15:57:27]execute_script done [15:57:27]execute_script returns [15:57:27]free content buf [15:57:27]Sock 9.Close socket [15:57:27]Sock 9.Thread stoped [15:57:31]OFD Sender: No OFD packet to send [15:57:36]OFD Sender: No OFD packet to send [15:57:41]OFD Sender: No OFD packet to send [15:57:46]OFD Sender: No OFD packet to send [15:57:51]OFD Sender: No OFD packet to send [15:57:56]OFD Sender: No OFD packet to send [15:58:01]OFD Sender: No OFD packet to send [15:58:06]OFD Sender: No OFD packet to send [15:58:11]OFD Sender: No OFD packet to send [15:58:16]OFD Sender: No OFD packet to send [15:58:21]OFD Sender: No OFD packet to send [15:58:26]OFD Sender: No OFD packet to send [15:58:31]OFD Sender: No OFD packet to send [15:58:36]OFD Sender: No OFD packet to send [15:58:41]OFD Sender: No OFD packet to send [15:58:46]OFD Sender: No OFD packet to send [15:58:51]OFD Sender: No OFD packet to send [15:58:56]OFD Sender: No OFD packet to send [15:59:01]OFD Sender: No OFD packet to send [15:59:06]OFD Sender: No OFD packet to send [15:59:11]OFD Sender: No OFD packet to send [15:59:16]OFD Sender: No OFD packet to send [15:59:21]OFD Sender: No OFD packet to send [15:59:26]OFD Sender: No OFD packet to send [15:59:31]OFD Sender: No OFD packet to send [15:59:36]OFD Sender: No OFD packet to send [15:59:41]OFD Sender: No OFD packet to send [15:59:46]OFD Sender: No OFD packet to send [15:59:51]OFD Sender: No OFD packet to send [15:59:56]OFD Sender: No OFD packet to send [16:00:01]OFD Sender: No OFD packet to send [16:00:06]OFD Sender: No OFD packet to send [16:00:11]OFD Sender: No OFD packet to send [16:00:16]OFD Sender: No OFD packet to send [16:00:21]OFD Sender: No OFD packet to send [16:00:26]OFD Sender: No OFD packet to send [16:00:31]OFD Sender: No OFD packet to send [16:00:36]OFD Sender: No OFD packet to send [16:00:41]OFD Sender: No OFD packet to send [16:00:46]OFD Sender: No OFD packet to send [16:00:51]OFD Sender: No OFD packet to send [16:00:56]OFD Sender: No OFD packet to send [16:01:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:31]OFD Sender: No OFD packet to send [16:02:36]OFD Sender: No OFD packet to send [16:02:41]OFD Sender: No OFD packet to send [16:02:46]OFD Sender: No OFD packet to send [16:02:51]OFD Sender: No OFD packet to send [16:02:56]OFD Sender: No OFD packet to send [16:03:01]OFD Sender: No OFD packet to send [16:03:06]OFD Sender: No OFD packet to send [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:21]OFD Sender: No OFD packet to send [16:03:26]OFD Sender: No OFD packet to send [16:03:31]OFD Sender: No OFD packet to send [16:03:34]accept exits with 7 [16:03:34]New connection [16:03:34]New thread 3067239780 created [16:03:34]Thread 3067383140 joined [16:03:34]Waiting for new connection... [16:03:34] Sock 7.Parse request [16:03:34]Sock 7.Check first char [16:03:34]Sock 7.First char is OK [16:03:34]request: POST /json_proto HTTP/1.0 [16:03:34]Method: POST [16:03:34]URL: /json_proto [16:03:34]Method is POST - this is cgi request [16:03:34]url: /json_proto [16:03:34]query_string will be loaded in cgi processing [16:03:34]execute_cgi json_proto POST (null) [16:03:34]execute_cgi path=json_proto method=POST [16:03:34]POST find Content-Length [16:03:34]Host: 172.17.45.7:8080 [16:03:34]Content-Length: 819 [16:03:34]Content-Type: application/json [16:03:34] [16:03:34]POST finish read [16:03:34]Found Content-Length = 819 [16:03:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:34]execute_script... [16:03:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:34]POST & json_proto [16:03:34]process_json_proto [16:03:34]json parsed OK: [16:03:34]protocol is kg_v1.0 [16:03:34]action value=close_receipt [16:03:34]process_action close_receipt [16:03:34]cmd_close_receipt [16:03:34]MH_GetDate [16:03:34]Write to MH i2c: F0 00 00 A3 62 F4 [16:03:34]Write i2c OK [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: F0 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: F0 09 00 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: F0 09 00 A3 62 00 5C BD A7 66 90 0F 3E 66 66 [16:03:34]GetLastDocTimeStamp 1722268649 [16:03:34]current date 1722269020 [16:03:34]FM_GetShiftState [16:03:34]SAM_PROTO_GetShiftState [16:03:34]wFMCommunicate request_size=4 [16:03:34]MH_SAM_APDU [16:03:34]CAPDU: 80 13 01 00 [16:03:34]Write to MH i2c: E2 08 00 A4 62 80 13 01 00 00 00 00 00 83 [16:03:34]Write i2c OK [16:03:34]MH_I2C_Read... [16:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:34]Read from MH i2c: E2 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 0E 00 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 0E 00 A4 62 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B1 [16:03:34]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:03:34]wFMCommunicate OK [16:03:34]SAM_PROTO_GetShiftState done [16:03:34]FM_GetShiftState done [16:03:34]opened in 1722211641 [16:03:34]opened+sec_in_day 1722298041 [16:03:34]quantity*price = 300075 [16:03:34]sum+1 = 300077 [16:03:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 198 29.07.2024 16:03 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118822 ФПД: 75710489504057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T160340&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118822&fm=75710489504057&tin=02508201610067®Number=0000000000092660&sum=300000 [16:03:35]StoreToDocumentArchive [16:03:35]shift 434 fd 118822 [16:03:35]save to /storage/0434/doc_00118822 [16:03:35]save last doc name /storage/0434/doc_00118822 to /storage/kkm_last_doc_name [16:03:35]save OK [16:03:35]Clear old archive folders... [16:03:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:03:35]tlvbuf is 01EA95C0 [16:03:35]SAM_PROTO_ClearQueue [16:03:35]wFMCommunicate request_size=4 [16:03:35]MH_SAM_APDU [16:03:35]CAPDU: 80 09 00 00 [16:03:35]Write to MH i2c: E2 08 00 B1 62 80 09 00 00 00 00 00 00 85 [16:03:35]Write i2c OK [16:03:35]MH_I2C_Read... [16:03:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:35]Read from MH i2c: E2 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: E2 03 00 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: E2 03 00 B1 62 00 90 00 87 [16:03:35]RAPDU: 90 00 [16:03:35]wFMCommunicate OK [16:03:35]SAM_PROTO_ClearQueue done [16:03:35]KKMCreateOFDPacket [16:03:35]OFDProtocolAddRootSTLVToBuf [16:03:35]FM_MakeSignedData [16:03:35]FM_MakeSignedData [16:03:35]SAM_PROTO_SignData [16:03:35]wFMCommunicate request_size=4 [16:03:35]MH_SAM_APDU [16:03:35]CAPDU: 80 0D 01 02 [16:03:35]Write to MH i2c: E2 08 00 B2 62 80 0D 01 02 00 00 00 00 8D [16:03:35]Write i2c OK [16:03:35]MH_I2C_Read... [16:03:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:35]Read from MH i2c: E2 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: E2 03 00 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: E2 03 00 B2 62 00 90 00 88 [16:03:35]RAPDU: 90 00 [16:03:35]wFMCommunicate OK [16:03:35]wFMCommunicate request_size=255 [16:03:35]MH_SAM_APDU [16:03:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 5C BD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 26 D0 01 00 35 04 06 00 44 DB B8 D5 [16:03:35]Write to MH i2c: E2 02 01 B3 62 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 5C BD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 26 D0 01 00 35 04 06 00 44 DB B8 D5 00 00 96 [16:03:35]Write i2c OK [16:03:35]MH_I2C_Read... [16:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:35]Read from MH i2c: E2 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: E2 03 00 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: E2 03 00 B3 62 00 90 00 89 [16:03:35]RAPDU: 90 00 [16:03:35]wFMCommunicate OK [16:03:35]wFMCommunicate request_size=7 [16:03:35]MH_SAM_APDU [16:03:35]CAPDU: 80 0D 02 02 02 29 39 [16:03:35]Write to MH i2c: E2 0A 00 B4 62 80 0D 02 02 02 00 29 39 00 00 F6 [16:03:35]Write i2c OK [16:03:35]MH_I2C_Read... [16:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:35]Read from MH i2c: E2 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: E2 03 00 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: E2 03 00 B4 62 00 90 00 8A [16:03:35]RAPDU: 90 00 [16:03:35]wFMCommunicate OK [16:03:35]wFMCommunicate request_size=4 [16:03:35]MH_SAM_APDU [16:03:35]CAPDU: 80 0D 03 02 [16:03:35]Write to MH i2c: E2 08 00 B5 62 80 0D 03 02 00 00 00 00 92 [16:03:35]Write i2c OK [16:03:35]MH_I2C_Read... [16:03:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:35]Read from MH i2c: E2 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: E2 0B 00 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: E2 0B 00 B5 62 00 FA 6C 16 BE 98 52 B5 7F 90 00 EB [16:03:35]RAPDU: FA 6C 16 BE 98 52 B5 7F 90 00 [16:03:35]wFMCommunicate OK [16:03:35]SAM_PROTO_SignData done [16:03:35]FM_MakeSignedData done [16:03:35]CreateOFDProtocolMessage [16:03:35]wFMCommunicate request_size=4 [16:03:35]MH_SAM_APDU [16:03:35]CAPDU: 80 11 00 00 [16:03:35]Write to MH i2c: E2 08 00 B6 62 80 11 00 00 00 00 00 00 92 [16:03:35]Write i2c OK [16:03:35]MH_I2C_Read... [16:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:35]Read from MH i2c: E2 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: E2 17 00 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: E2 17 00 B6 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 ED [16:03:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:03:35]wFMCommunicate OK [16:03:35]CreateOFDProtocolMessage done [16:03:35]OFDSenderStorePacket 118822 [16:03:35]StoreOFDPacket docnum=118822 [16:03:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B7 3E 04 01 A2 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 5C BD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 26 D0 01 00 35 04 06 00 44 DB B8 D5 29 39 FA 6C 16 BE 98 52 B5 7F [16:03:35]CheckFolder [16:03:35]dirname=/storage/ofd_packets [16:03:35]CheckFolder done [16:03:35]ProducePacketName [16:03:35]name=ofd_packets/00118822 [16:03:35]NVStorageSaveData ofd_packets/00118822 [16:03:35]File name is /storage/ofd_packets/00118822 [16:03:35]Write 298 bytes [16:03:35]NVStorageSaveData done [16:03:35]OFDSenderStorePacket done [16:03:35]KKMCreateOFDPacket done [16:03:35]NVStorageSaveData kkm_last_timestamp [16:03:35]File name is /storage/kkm_last_timestamp [16:03:35]Write 4 bytes [16:03:35]NVStorageSaveData done [16:03:35]ExternCall_PrintAddStr [16:03:35]wPrintStart [16:03:35]Write to MH i2c: 01 00 00 B7 62 19 [16:03:35]Write i2c OK [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: 01 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: 01 07 00 [16:03:35]MH_I2C_Read... [16:03:35]Read from MH i2c: 01 07 00 B7 62 00 00 00 00 00 FF 0F 2E [16:03:35]RasterBufferAndPrint [16:03:35]line Счет N : (1)949709 [16:03:35]line ИНН: 02508201610067 [16:03:35]line Контрольно-Кассовый Чек [16:03:35]line ПРОДАЖА [16:03:35]line ТРК (МРК, ГНК) : 54 [16:03:35]line Товар: 2710194800 [16:03:35]line ДТ-К-5 [16:03:35]line 39.380 * 76.20 [16:03:35]line = 3000.76 [16:03:35]line НДС 12% НСП 1% [16:03:35]line > о реализуемом товаре [16:03:35]line ОКРУГЛЕНИЕ: -0.76 [16:03:35]line ИТОГО: 3000.00 [16:03:35]line НСП 1% : 26.55 [16:03:35]line НДС 12% : 318.66 [16:03:35]line Наличными: 0.00 [16:03:35]line Безнал.: 3000.00 [16:03:35]line Место: АЗС № 134 "Партнер Нефть" [16:03:35]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:03:35]line СНО: Общий режим [16:03:35]line Чек 198 29.07.2024 16:03 [16:03:35]line Смена: 434 ФФД: 1.0 [16:03:35]line ЗНМ: 0300000044 [16:03:35]line РНМ: 0000000000092660 [16:03:35]line Версия ККМ: 001 [16:03:35]line Платежная система: O! деньги [16:03:35]line ФМ: 0000000000874939 [16:03:35]line ФД: 118822 [16:03:35]line ФПД: 75710489504057 [16:03:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T160340&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118822&fm=75710489504057&tin=02508201610067®Number=0000000000092660&sum=300000 [16:03:36]OFD Sender: Processing packet 118822 [packets to send 86, broken 85] [16:03:36]ProducePacketName [16:03:36]name=ofd_packets/00118822 [16:03:36]OFD Sender: To server: pG, [16:03:36]CommunicateWithHost lk.salyk.kg:30040 [16:03:36]ConnectInit lk.salyk.kg [16:03:36]written 0, free lines is 4095 [16:03:36]Connected sock=10 [16:03:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B7 3E 04 01 A2 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 5C BD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 26 D0 01 00 35 04 06 00 44 DB B8 D5 29 39 FA 6C 16 BE 98 52 B5 7F [16:03:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A8 28 47 00 17 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 34 39 33 39 10 04 04 00 26 D0 01 00 F4 03 04 00 EA 6A A7 66 B6 04 01 00 00 8F 11 81 C5 BA 22 E8 A4 [16:03:36]CommunicateWithHost err = 0 [16:03:36]CheckOFDResponse [16:03:36]1017 (14) - 77093643461234 [16:03:36]1041 (16) - 0000000000874939 [16:03:36]1040 (4) - 118822 [16:03:36]1012 (4) - 29.07.2024 10:11 [16:03:36]1206 (1) - 0 [16:03:36]OFD Sender: Remove packet 118822 [16:03:36]ProducePacketName [16:03:36]name=ofd_packets/00118822 [16:03:36]NVStorageDeleteData [16:03:36]Write to MH i2c: 01 00 00 E1 62 43 [16:03:36]Write i2c OK [16:03:36]MH_I2C_Read... [16:03:36]Read from MH i2c: 01 [16:03:36]MH_I2C_Read... [16:03:36]Read from MH i2c: 01 07 00 [16:03:36]MH_I2C_Read... [16:03:36]Read from MH i2c: 01 07 00 E1 62 00 00 00 00 00 F2 0C 48 [16:03:36]RasterBufferAndPrint [16:03:36]line [16:03:36]line [16:03:36]line [16:03:36]line [16:03:36]line [16:03:36]written 0, free lines is 3320 [16:03:36]MH_Cut [16:03:36]Write to MH i2c: D1 01 00 E8 62 01 1C [16:03:36]Write i2c OK [16:03:36]MH_I2C_Read... [16:03:36]Read from MH i2c: D1 [16:03:36]MH_I2C_Read... [16:03:36]Read from MH i2c: D1 01 00 [16:03:36]MH_I2C_Read... [16:03:36]Read from MH i2c: D1 01 00 E8 62 00 1B [16:03:36]Write to MH i2c: 01 00 00 E9 62 4B [16:03:36]Write i2c OK [16:03:36]MH_I2C_Read... [16:03:37]OFD Sender: No OFD packet to send [16:03:37]*** Cut start [16:03:37]*** Partial cut [16:03:37]*** CUTSNS_PIN = 1 [16:03:37]*** CUTSNS_PIN = 0 [16:03:37]*** Brake cut motor [16:03:38]Read from MH i2c: 01 [16:03:38]MH_I2C_Read... [16:03:38]*** Stop cut motor [16:03:38]*** Cut end [16:03:38]Read from MH i2c: 01 07 00 [16:03:38]MH_I2C_Read... [16:03:38]Read from MH i2c: 01 07 00 E9 62 00 00 00 00 00 FF 0F 60 [16:03:38]process_action close_receipt done [16:03:38]requested_data is exist [16:03:38]produce_requested_data [16:03:38]requested_item fm.sn is exist - process it [16:03:38]wFMCommunicate request_size=4 [16:03:38]MH_SAM_APDU [16:03:38]CAPDU: 80 11 00 00 [16:03:38]Write to MH i2c: E2 08 00 EA 62 80 11 00 00 00 00 00 00 C6 [16:03:38]Write i2c OK [16:03:38]MH_I2C_Read... [16:03:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:38]Read from MH i2c: E2 [16:03:38]MH_I2C_Read... [16:03:38]Read from MH i2c: E2 17 00 [16:03:38]MH_I2C_Read... [16:03:38]Read from MH i2c: E2 17 00 EA 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 21 [16:03:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:03:38]wFMCommunicate OK [16:03:38]requested_item fd.num is exist - process it [16:03:38]SAM_PROTO_GetFieldsCounters [16:03:38]wFMCommunicate request_size=4 [16:03:38]MH_SAM_APDU [16:03:38]CAPDU: 80 13 00 00 [16:03:38]Write to MH i2c: E2 08 00 EB 62 80 13 00 00 00 00 00 00 C9 [16:03:38]Write i2c OK [16:03:38]MH_I2C_Read... [16:03:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:38]Read from MH i2c: E2 [16:03:38]MH_I2C_Read... [16:03:38]Read from MH i2c: E2 62 00 [16:03:38]MH_I2C_Read... [16:03:38]Read from MH i2c: E2 62 00 EB 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 26 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [16:03:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 26 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:38]wFMCommunicate OK [16:03:38]SAM_PROTO_GetFieldsCounters done [16:03:38]requested_item shift.num is exist - process it [16:03:38]requested_item shift.opened is exist - process it [16:03:38]req_shift_opened [16:03:38]FM_GetShiftState [16:03:38]SAM_PROTO_GetShiftState [16:03:38]wFMCommunicate request_size=4 [16:03:38]MH_SAM_APDU [16:03:38]CAPDU: 80 13 01 00 [16:03:38]Write to MH i2c: E2 08 00 EC 62 80 13 01 00 00 00 00 00 CB [16:03:38]Write i2c OK [16:03:38]MH_I2C_Read... [16:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:38]Read from MH i2c: E2 [16:03:38]MH_I2C_Read... [16:03:38]Read from MH i2c: E2 0E 00 [16:03:38]MH_I2C_Read... [16:03:38]Read from MH i2c: E2 0E 00 EC 62 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F9 [16:03:38]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:03:38]wFMCommunicate OK [16:03:38]SAM_PROTO_GetShiftState done [16:03:38]FM_GetShiftState done [16:03:38]req_shift_opened done [16:03:38]requested_item shift.open_date is exist - process it [16:03:38]req_shift_open_date [16:03:38]req_shift_open_date done [16:03:38]produce_requested_data done [16:03:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118822,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:03:38]process_action_free close_receipt [16:03:38]json_value_free [16:03:38]json_value_free done [16:03:38]process_json_proto returns [16:03:38]Send response to host [16:03:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118822,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:03:38]free response buf [16:03:38]execute_script done [16:03:38]execute_script returns [16:03:38]free content buf [16:03:38]Sock 7.Close socket [16:03:38]Sock 7.Thread stoped [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:03:58]accept exits with 9 [16:03:58]New connection [16:03:58]New thread 3067383140 created [16:03:58]Thread 3067239780 joined [16:03:58]Waiting for new connection... [16:03:58] Sock 9.Parse request [16:03:58]Sock 9.Check first char [16:03:58]Sock 9.First char is OK [16:03:58]request: POST /json_proto HTTP/1.0 [16:03:58]Method: POST [16:03:58]URL: /json_proto [16:03:58]Method is POST - this is cgi request [16:03:58]url: /json_proto [16:03:58]query_string will be loaded in cgi processing [16:03:58]execute_cgi json_proto POST (null) [16:03:58]execute_cgi path=json_proto method=POST [16:03:58]POST find Content-Length [16:03:58]Host: 172.17.45.7:8080 [16:03:58]Content-Length: 1189 [16:03:58]Content-Type: application/json [16:03:58] [16:03:58]POST finish read [16:03:58]Found Content-Length = 1189 [16:03:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949710\u000A29.07.2024 16:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 39.980 x 67.80\u000A\u0418\u0422\u041E\u0413: 2710.64\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68573\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:58]execute_script... [16:03:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949710\u000A29.07.2024 16:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 39.980 x 67.80\u000A\u0418\u0422\u041E\u0413: 2710.64\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68573\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:58]POST & json_proto [16:03:58]process_json_proto [16:03:58]json parsed OK: [16:03:58]protocol is kg_v1.0 [16:03:58]action value=print_text [16:03:58]process_action print_text [16:03:58]cmd_print_text [16:03:58]ExternCall_PrintAddStr [16:03:58]wPrintStart [16:03:58]Write to MH i2c: 01 00 00 ED 62 4F [16:03:58]Write i2c OK [16:03:58]MH_I2C_Read... [16:03:58]Read from MH i2c: 01 [16:03:58]MH_I2C_Read... [16:03:58]Read from MH i2c: 01 07 00 [16:03:58]MH_I2C_Read... [16:03:58]Read from MH i2c: 01 07 00 ED 62 00 00 00 00 00 FF 0F 64 [16:03:58]RasterBufferAndPrint [16:03:58]line *****ТОВАРНЫЙ ЧЕК***** [16:03:58]line АЗС-134 [16:03:58]line Партнер нефть [16:03:58]line 02508201610067 [16:03:58]line Кассир : Казаков Ч. [16:03:58]line Счет N : (1)949710 [16:03:58]line 29.07.2024 16:01 [16:03:58]line ПРОДАЖА [16:03:58]line ТРК (МРК, ГНК): 31 [16:03:58]line Вид ГСМ : 2710124130 [16:03:58]line Аи-92-К-4 [16:03:58]line 39.980 x 67.80 [16:03:58]line ИТОГ: 2710.64 [16:03:58]line Тип оплаты: Талоны: Топливная Карта [16:03:58]line 68573 [16:03:58]line ______________________ [16:03:58]line (подпись) [16:03:58]written 0, free lines is 4095 [16:03:59]Write to MH i2c: 01 00 00 01 63 64 [16:03:59]Write i2c OK [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: 01 [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: 01 07 00 [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: 01 07 00 01 63 00 00 00 00 00 11 0E 8A [16:03:59]RasterBufferAndPrint [16:03:59]line [16:03:59]line [16:03:59]line [16:03:59]line [16:03:59]line [16:03:59]written 0, free lines is 3603 [16:03:59]MH_Cut [16:03:59]Write to MH i2c: D1 01 00 08 63 01 3D [16:03:59]Write i2c OK [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: D1 [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: D1 01 00 [16:03:59]MH_I2C_Read... [16:03:59]Read from MH i2c: D1 01 00 08 63 00 3C [16:03:59]Write to MH i2c: 01 00 00 09 63 6C [16:03:59]Write i2c OK [16:03:59]MH_I2C_Read... [16:03:59]*** Cut start [16:03:59]*** Partial cut [16:03:59]*** CUTSNS_PIN = 1 [16:03:59]*** CUTSNS_PIN = 0 [16:03:59]*** Brake cut motor [16:04:00]Read from MH i2c: 01 [16:04:00]MH_I2C_Read... [16:04:00]*** Stop cut motor [16:04:00]*** Cut end [16:04:00]Read from MH i2c: 01 07 00 [16:04:00]MH_I2C_Read... [16:04:00]Read from MH i2c: 01 07 00 09 63 00 00 00 00 00 FF 0F 81 [16:04:00]process_action print_text done [16:04:00]requested_data is exist [16:04:00]produce_requested_data [16:04:00]requested_item fm.sn is exist - process it [16:04:00]wFMCommunicate request_size=4 [16:04:00]MH_SAM_APDU [16:04:00]CAPDU: 80 11 00 00 [16:04:00]Write to MH i2c: E2 08 00 0A 63 80 11 00 00 00 00 00 00 E7 [16:04:00]Write i2c OK [16:04:00]MH_I2C_Read... [16:04:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:00]Read from MH i2c: E2 [16:04:00]MH_I2C_Read... [16:04:00]Read from MH i2c: E2 17 00 [16:04:00]MH_I2C_Read... [16:04:00]Read from MH i2c: E2 17 00 0A 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 42 [16:04:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:04:00]wFMCommunicate OK [16:04:00]requested_item fd.num is exist - process it [16:04:00]SAM_PROTO_GetFieldsCounters [16:04:00]wFMCommunicate request_size=4 [16:04:00]MH_SAM_APDU [16:04:00]CAPDU: 80 13 00 00 [16:04:00]Write to MH i2c: E2 08 00 0B 63 80 13 00 00 00 00 00 00 EA [16:04:00]Write i2c OK [16:04:00]MH_I2C_Read... [16:04:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:00]Read from MH i2c: E2 [16:04:00]MH_I2C_Read... [16:04:00]Read from MH i2c: E2 62 00 [16:04:00]MH_I2C_Read... [16:04:00]Read from MH i2c: E2 62 00 0B 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 26 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [16:04: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 26 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:04:00]wFMCommunicate OK [16:04:00]SAM_PROTO_GetFieldsCounters done [16:04:00]requested_item shift.num is exist - process it [16:04:00]requested_item shift.opened is exist - process it [16:04:00]req_shift_opened [16:04:00]FM_GetShiftState [16:04:00]SAM_PROTO_GetShiftState [16:04:00]wFMCommunicate request_size=4 [16:04:00]MH_SAM_APDU [16:04:00]CAPDU: 80 13 01 00 [16:04:00]Write to MH i2c: E2 08 00 0C 63 80 13 01 00 00 00 00 00 EC [16:04:00]Write i2c OK [16:04:00]MH_I2C_Read... [16:04:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:00]Read from MH i2c: E2 [16:04:00]MH_I2C_Read... [16:04:00]Read from MH i2c: E2 0E 00 [16:04:00]MH_I2C_Read... [16:04:00]Read from MH i2c: E2 0E 00 0C 63 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 1A [16:04:00]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:04:00]wFMCommunicate OK [16:04:00]SAM_PROTO_GetShiftState done [16:04:00]FM_GetShiftState done [16:04:00]req_shift_opened done [16:04:00]requested_item shift.open_date is exist - process it [16:04:00]req_shift_open_date [16:04:00]req_shift_open_date done [16:04:00]produce_requested_data done [16:04:00]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118822,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:04:00]process_action_free print_text [16:04:00]json_value_free [16:04:00]json_value_free done [16:04:00]process_json_proto returns [16:04:00]Send response to host [16:04:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118822,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:04:00]free response buf [16:04:00]execute_script done [16:04:00]execute_script returns [16:04:00]free content buf [16:04:00]Sock 9.Close socket [16:04:00]Sock 9.Thread stoped [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:11]accept exits with 7 [16:04:11]New connection [16:04:11]New thread 3067239780 created [16:04:11]Thread 3067383140 joined [16:04:11]Waiting for new connection... [16:04:11] Sock 7.Parse request [16:04:11]Sock 7.Check first char [16:04:11]Sock 7.First char is OK [16:04:11]request: POST /json_proto HTTP/1.0 [16:04:11]Method: POST [16:04:11]URL: /json_proto [16:04:11]Method is POST - this is cgi request [16:04:11]url: /json_proto [16:04:11]query_string will be loaded in cgi processing [16:04:11]execute_cgi json_proto POST (null) [16:04:11]execute_cgi path=json_proto method=POST [16:04:11]POST find Content-Length [16:04:11]Host: 172.17.45.7:8080 [16:04:11]Content-Length: 1195 [16:04:11]Content-Type: application/json [16:04:11] [16:04:11]POST finish read [16:04:11]Found Content-Length = 1195 [16:04:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949708\u000A29.07.2024 16:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991017\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:11]execute_script... [16:04:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949708\u000A29.07.2024 16:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991017\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:11]POST & json_proto [16:04:11]process_json_proto [16:04:11]json parsed OK: [16:04:11]protocol is kg_v1.0 [16:04:11]action value=print_text [16:04:11]process_action print_text [16:04:11]cmd_print_text [16:04:11]ExternCall_PrintAddStr [16:04:11]wPrintStart [16:04:11]Write to MH i2c: 01 00 00 0D 63 70 [16:04:11]Write i2c OK [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: 01 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: 01 07 00 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: 01 07 00 0D 63 00 00 00 00 00 FF 0F 85 [16:04:11]RasterBufferAndPrint [16:04:11]line *****ТОВАРНЫЙ ЧЕК***** [16:04:11]line АЗС-134 [16:04:11]line Партнер нефть [16:04:11]line 02508201610067 [16:04:11]line Кассир : Казаков Ч. [16:04:11]line Счет N : (1)949708 [16:04:11]line 29.07.2024 16:01 [16:04:11]line ПРОДАЖА [16:04:11]line ТРК (МРК, ГНК): 21 [16:04:11]line Вид ГСМ : 2710194800 [16:04:11]line ДТ-К-5 [16:04:11]line 100.000 x 76.20 [16:04:11]line ИТОГ: 7620.00 [16:04:11]line Тип оплаты: Талоны: Топливные Талоны [16:04:11]line 3991017 [16:04:11]line ______________________ [16:04:11]line (подпись) [16:04:11]written 0, free lines is 4095 [16:04:11]Write to MH i2c: 01 00 00 21 63 84 [16:04:11]Write i2c OK [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: 01 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: 01 07 00 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: 01 07 00 21 63 00 00 00 00 00 0F 0E A8 [16:04:11]RasterBufferAndPrint [16:04:11]line [16:04:11]line [16:04:11]line [16:04:11]line [16:04:11]line [16:04:11]written 0, free lines is 3600 [16:04:11]MH_Cut [16:04:11]Write to MH i2c: D1 01 00 28 63 01 5D [16:04:11]Write i2c OK [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: D1 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: D1 01 00 [16:04:11]MH_I2C_Read... [16:04:11]Read from MH i2c: D1 01 00 28 63 00 5C [16:04:11]Write to MH i2c: 01 00 00 29 63 8C [16:04:11]Write i2c OK [16:04:11]MH_I2C_Read... [16:04:12]OFD Sender: No OFD packet to send [16:04:12]*** Cut start [16:04:12]*** Partial cut [16:04:12]*** CUTSNS_PIN = 1 [16:04:12]*** CUTSNS_PIN = 0 [16:04:12]*** Brake cut motor [16:04:12]Read from MH i2c: 01 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: 01 07 00 [16:04:12]MH_I2C_Read... [16:04:12]*** Stop cut motor [16:04:12]*** Cut end [16:04:12]Read from MH i2c: 01 07 00 29 63 00 00 00 00 00 FF 0F A1 [16:04:12]process_action print_text done [16:04:12]requested_data is exist [16:04:12]produce_requested_data [16:04:12]requested_item fm.sn is exist - process it [16:04:12]wFMCommunicate request_size=4 [16:04:12]MH_SAM_APDU [16:04:12]CAPDU: 80 11 00 00 [16:04:12]Write to MH i2c: E2 08 00 2A 63 80 11 00 00 00 00 00 00 07 [16:04:12]Write i2c OK [16:04:12]MH_I2C_Read... [16:04:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:12]Read from MH i2c: E2 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: E2 17 00 [16:04:12]MH_I2C_Read... [16:04:12]Read from MH i2c: E2 17 00 2A 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 62 [16:04:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:04:12]wFMCommunicate OK [16:04:12]requested_item fd.num is exist - process it [16:04:12]SAM_PROTO_GetFieldsCounters [16:04:12]wFMCommunicate request_size=4 [16:04:12]MH_SAM_APDU [16:04:12]CAPDU: 80 13 00 00 [16:04:12]Write to MH i2c: E2 08 00 2B 63 80 13 00 00 00 00 00 00 0A [16:04:12]Write i2c OK [16:04:12]MH_I2C_Read... [16:04:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:13]Read from MH i2c: E2 [16:04:13]MH_I2C_Read... [16:04:13]Read from MH i2c: E2 62 00 [16:04:13]MH_I2C_Read... [16:04:13]Read from MH i2c: E2 62 00 2B 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 26 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [16:04:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 26 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:04:13]wFMCommunicate OK [16:04:13]SAM_PROTO_GetFieldsCounters done [16:04:13]requested_item shift.num is exist - process it [16:04:13]requested_item shift.opened is exist - process it [16:04:13]req_shift_opened [16:04:13]FM_GetShiftState [16:04:13]SAM_PROTO_GetShiftState [16:04:13]wFMCommunicate request_size=4 [16:04:13]MH_SAM_APDU [16:04:13]CAPDU: 80 13 01 00 [16:04:13]Write to MH i2c: E2 08 00 2C 63 80 13 01 00 00 00 00 00 0C [16:04:13]Write i2c OK [16:04:13]MH_I2C_Read... [16:04:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:13]Read from MH i2c: E2 [16:04:13]MH_I2C_Read... [16:04:13]Read from MH i2c: E2 0E 00 [16:04:13]MH_I2C_Read... [16:04:13]Read from MH i2c: E2 0E 00 2C 63 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 3A [16:04:13]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:04:13]wFMCommunicate OK [16:04:13]SAM_PROTO_GetShiftState done [16:04:13]FM_GetShiftState done [16:04:13]req_shift_opened done [16:04:13]requested_item shift.open_date is exist - process it [16:04:13]req_shift_open_date [16:04:13]req_shift_open_date done [16:04:13]produce_requested_data done [16:04:13]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118822,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:04:13]process_action_free print_text [16:04:13]json_value_free [16:04:13]json_value_free done [16:04:13]process_json_proto returns [16:04:13]Send response to host [16:04:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118822,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:04:13]free response buf [16:04:13]execute_script done [16:04:13]execute_script returns [16:04:13]free content buf [16:04:13]Sock 7.Close socket [16:04:13]Sock 7.Thread stoped [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:52]OFD Sender: No OFD packet to send [16:05:57]OFD Sender: No OFD packet to send [16:06:02]OFD Sender: No OFD packet to send [16:06:07]OFD Sender: No OFD packet to send [16:06:12]OFD Sender: No OFD packet to send [16:06:17]OFD Sender: No OFD packet to send [16:06:22]OFD Sender: No OFD packet to send [16:06:27]OFD Sender: No OFD packet to send [16:06:32]OFD Sender: No OFD packet to send [16:06:37]OFD Sender: No OFD packet to send [16:06:42]OFD Sender: No OFD packet to send [16:06:47]OFD Sender: No OFD packet to send [16:06:52]OFD Sender: No OFD packet to send [16:06:57]OFD Sender: No OFD packet to send [16:07:02]OFD Sender: No OFD packet to send [16:07:07]OFD Sender: No OFD packet to send [16:07:12]OFD Sender: No OFD packet to send [16:07:17]OFD Sender: No OFD packet to send [16:07:22]OFD Sender: No OFD packet to send [16:07:27]OFD Sender: No OFD packet to send [16:07:32]OFD Sender: No OFD packet to send [16:07:34]accept exits with 9 [16:07:34]New connection [16:07:34]New thread 3067383140 created [16:07:34]Thread 3067239780 joined [16:07:34]Waiting for new connection... [16:07:34] Sock 9.Parse request [16:07:34]Sock 9.Check first char [16:07:34]Sock 9.First char is OK [16:07:34]request: POST /json_proto HTTP/1.0 [16:07:34]Method: POST [16:07:34]URL: /json_proto [16:07:34]Method is POST - this is cgi request [16:07:34]url: /json_proto [16:07:34]query_string will be loaded in cgi processing [16:07:34]execute_cgi json_proto POST (null) [16:07:34]execute_cgi path=json_proto method=POST [16:07:34]POST find Content-Length [16:07:34]Host: 172.17.45.7:8080 [16:07:34]Content-Length: 1195 [16:07:34]Content-Type: application/json [16:07:34] [16:07:34]POST finish read [16:07:34]Found Content-Length = 1195 [16:07:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949711\u000A29.07.2024 16:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3988660\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:34]execute_script... [16:07:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949711\u000A29.07.2024 16:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3988660\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:34]POST & json_proto [16:07:34]process_json_proto [16:07:34]json parsed OK: [16:07:34]protocol is kg_v1.0 [16:07:34]action value=print_text [16:07:34]process_action print_text [16:07:34]cmd_print_text [16:07:34]ExternCall_PrintAddStr [16:07:34]wPrintStart [16:07:34]Write to MH i2c: 01 00 00 2D 63 90 [16:07:34]Write i2c OK [16:07:34]MH_I2C_Read... [16:07:34]Read from MH i2c: 01 [16:07:34]MH_I2C_Read... [16:07:34]Read from MH i2c: 01 07 00 [16:07:34]MH_I2C_Read... [16:07:34]Read from MH i2c: 01 07 00 2D 63 00 00 00 00 00 FF 0F A5 [16:07:34]RasterBufferAndPrint [16:07:34]line *****ТОВАРНЫЙ ЧЕК***** [16:07:34]line АЗС-134 [16:07:34]line Партнер нефть [16:07:34]line 02508201610067 [16:07:34]line Кассир : Казаков Ч. [16:07:34]line Счет N : (1)949711 [16:07:34]line 29.07.2024 16:05 [16:07:34]line ПРОДАЖА [16:07:34]line ТРК (МРК, ГНК): 21 [16:07:34]line Вид ГСМ : 2710194800 [16:07:34]line ДТ-К-5 [16:07:34]line 100.000 x 76.20 [16:07:34]line ИТОГ: 7620.00 [16:07:34]line Тип оплаты: Талоны: Топливные Талоны [16:07:34]line 3988660 [16:07:34]line ______________________ [16:07:34]line (подпись) [16:07:34]written 0, free lines is 4095 [16:07:35]Write to MH i2c: 01 00 00 41 63 A4 [16:07:35]Write i2c OK [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: 01 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: 01 07 00 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: 01 07 00 41 63 00 00 00 00 00 10 0E C9 [16:07:35]RasterBufferAndPrint [16:07:35]line [16:07:35]line [16:07:35]line [16:07:35]line [16:07:35]line [16:07:35]written 0, free lines is 3601 [16:07:35]MH_Cut [16:07:35]Write to MH i2c: D1 01 00 48 63 01 7D [16:07:35]Write i2c OK [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: D1 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: D1 01 00 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: D1 01 00 48 63 00 7C [16:07:35]Write to MH i2c: 01 00 00 49 63 AC [16:07:35]Write i2c OK [16:07:35]MH_I2C_Read... [16:07:35]*** Cut start [16:07:35]*** Partial cut [16:07:35]*** CUTSNS_PIN = 1 [16:07:35]*** CUTSNS_PIN = 0 [16:07:35]*** Brake cut motor [16:07:36]Read from MH i2c: 01 [16:07:36]MH_I2C_Read... [16:07:36]*** Stop cut motor [16:07:36]*** Cut end [16:07:36]Read from MH i2c: 01 07 00 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: 01 07 00 49 63 00 00 00 00 00 FF 0F C1 [16:07:36]process_action print_text done [16:07:36]requested_data is exist [16:07:36]produce_requested_data [16:07:36]requested_item fm.sn is exist - process it [16:07:36]wFMCommunicate request_size=4 [16:07:36]MH_SAM_APDU [16:07:36]CAPDU: 80 11 00 00 [16:07:36]Write to MH i2c: E2 08 00 4A 63 80 11 00 00 00 00 00 00 27 [16:07:36]Write i2c OK [16:07:36]MH_I2C_Read... [16:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:36]Read from MH i2c: E2 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 17 00 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 17 00 4A 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 82 [16:07:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:07:36]wFMCommunicate OK [16:07:36]requested_item fd.num is exist - process it [16:07:36]SAM_PROTO_GetFieldsCounters [16:07:36]wFMCommunicate request_size=4 [16:07:36]MH_SAM_APDU [16:07:36]CAPDU: 80 13 00 00 [16:07:36]Write to MH i2c: E2 08 00 4B 63 80 13 00 00 00 00 00 00 2A [16:07:36]Write i2c OK [16:07:36]MH_I2C_Read... [16:07:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:36]Read from MH i2c: E2 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 62 00 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 62 00 4B 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 26 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [16:07: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 26 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:07:36]wFMCommunicate OK [16:07:36]SAM_PROTO_GetFieldsCounters done [16:07:36]requested_item shift.num is exist - process it [16:07:36]requested_item shift.opened is exist - process it [16:07:36]req_shift_opened [16:07:36]FM_GetShiftState [16:07:36]SAM_PROTO_GetShiftState [16:07:36]wFMCommunicate request_size=4 [16:07:36]MH_SAM_APDU [16:07:36]CAPDU: 80 13 01 00 [16:07:36]Write to MH i2c: E2 08 00 4C 63 80 13 01 00 00 00 00 00 2C [16:07:36]Write i2c OK [16:07:36]MH_I2C_Read... [16:07:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:36]Read from MH i2c: E2 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 0E 00 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 0E 00 4C 63 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 5A [16:07:36]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:07:36]wFMCommunicate OK [16:07:36]SAM_PROTO_GetShiftState done [16:07:36]FM_GetShiftState done [16:07:36]req_shift_opened done [16:07:36]requested_item shift.open_date is exist - process it [16:07:36]req_shift_open_date [16:07:36]req_shift_open_date done [16:07:36]produce_requested_data done [16:07:36]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118822,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:07:36]process_action_free print_text [16:07:36]json_value_free [16:07:36]json_value_free done [16:07:36]process_json_proto returns [16:07:36]Send response to host [16:07:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118822,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:07:36]free response buf [16:07:36]execute_script done [16:07:36]execute_script returns [16:07:36]free content buf [16:07:36]Sock 9.Close socket [16:07:36]Sock 9.Thread stoped [16:07:37]OFD Sender: No OFD packet to send [16:07:42]OFD Sender: No OFD packet to send [16:07:47]OFD Sender: No OFD packet to send [16:07:52]OFD Sender: No OFD packet to send [16:07:57]OFD Sender: No OFD packet to send [16:08:02]OFD Sender: No OFD packet to send [16:08:07]OFD Sender: No OFD packet to send [16:08:12]OFD Sender: No OFD packet to send [16:08:17]OFD Sender: No OFD packet to send [16:08:22]OFD Sender: No OFD packet to send [16:08:27]OFD Sender: No OFD packet to send [16:08:32]OFD Sender: No OFD packet to send [16:08:37]OFD Sender: No OFD packet to send [16:08:42]OFD Sender: No OFD packet to send [16:08:47]OFD Sender: No OFD packet to send [16:08:52]OFD Sender: No OFD packet to send [16:08:57]OFD Sender: No OFD packet to send [16:09:02]OFD Sender: No OFD packet to send [16:09:07]OFD Sender: No OFD packet to send [16:09:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:25]accept exits with 7 [16:09:25]New connection [16:09:25]New thread 3067239780 created [16:09:25]Thread 3067383140 joined [16:09:25]Waiting for new connection... [16:09:25] Sock 7.Parse request [16:09:25]Sock 7.Check first char [16:09:25]Sock 7.First char is OK [16:09:25]request: POST /json_proto HTTP/1.0 [16:09:25]Method: POST [16:09:25]URL: /json_proto [16:09:25]Method is POST - this is cgi request [16:09:25]url: /json_proto [16:09:25]query_string will be loaded in cgi processing [16:09:25]execute_cgi json_proto POST (null) [16:09:25]execute_cgi path=json_proto method=POST [16:09:25]POST find Content-Length [16:09:25]Host: 172.17.45.7:8080 [16:09:25]Content-Length: 1194 [16:09:25]Content-Type: application/json [16:09:25] [16:09:25]POST finish read [16:09:25]Found Content-Length = 1194 [16:09:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949712\u000A29.07.2024 16:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 3810.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3983104\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:25]execute_script... [16:09:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949712\u000A29.07.2024 16:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 3810.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3983104\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:25]POST & json_proto [16:09:25]process_json_proto [16:09:25]json parsed OK: [16:09:25]protocol is kg_v1.0 [16:09:25]action value=print_text [16:09:25]process_action print_text [16:09:25]cmd_print_text [16:09:25]ExternCall_PrintAddStr [16:09:25]wPrintStart [16:09:25]Write to MH i2c: 01 00 00 4D 63 B0 [16:09:25]Write i2c OK [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: 01 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: 01 07 00 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: 01 07 00 4D 63 00 00 00 00 00 FF 0F C5 [16:09:25]RasterBufferAndPrint [16:09:25]line *****ТОВАРНЫЙ ЧЕК***** [16:09:25]line АЗС-134 [16:09:25]line Партнер нефть [16:09:25]line 02508201610067 [16:09:25]line Кассир : Казаков Ч. [16:09:25]line Счет N : (1)949712 [16:09:25]line 29.07.2024 16:07 [16:09:25]line ПРОДАЖА [16:09:25]line ТРК (МРК, ГНК): 21 [16:09:25]line Вид ГСМ : 2710194800 [16:09:25]line ДТ-К-5 [16:09:25]line 50.000 x 76.20 [16:09:25]line ИТОГ: 3810.00 [16:09:25]line Тип оплаты: Талоны: Топливные Талоны [16:09:25]line 3983104 [16:09:25]line ______________________ [16:09:25]line (подпись) [16:09:25]written 0, free lines is 4095 [16:09:25]Write to MH i2c: 01 00 00 61 63 C4 [16:09:25]Write i2c OK [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: 01 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: 01 07 00 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: 01 07 00 61 63 00 00 00 00 00 0F 0E E8 [16:09:25]RasterBufferAndPrint [16:09:25]line [16:09:25]line [16:09:25]line [16:09:25]line [16:09:25]line [16:09:25]written 0, free lines is 3600 [16:09:25]MH_Cut [16:09:25]Write to MH i2c: D1 01 00 68 63 01 9D [16:09:25]Write i2c OK [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: D1 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: D1 01 00 [16:09:25]MH_I2C_Read... [16:09:25]Read from MH i2c: D1 01 00 68 63 00 9C [16:09:25]Write to MH i2c: 01 00 00 69 63 CC [16:09:25]Write i2c OK [16:09:25]MH_I2C_Read... [16:09:26]*** Cut start [16:09:26]*** Partial cut [16:09:26]*** CUTSNS_PIN = 1 [16:09:26]*** CUTSNS_PIN = 0 [16:09:26]*** Brake cut motor [16:09:26]Read from MH i2c: 01 [16:09:26]MH_I2C_Read... [16:09:26]*** Stop cut motor [16:09:26]*** Cut end [16:09:26]Read from MH i2c: 01 07 00 [16:09:26]MH_I2C_Read... [16:09:26]Read from MH i2c: 01 07 00 69 63 00 00 00 00 00 FF 0F E1 [16:09:26]process_action print_text done [16:09:26]requested_data is exist [16:09:26]produce_requested_data [16:09:26]requested_item fm.sn is exist - process it [16:09:26]wFMCommunicate request_size=4 [16:09:26]MH_SAM_APDU [16:09:26]CAPDU: 80 11 00 00 [16:09:26]Write to MH i2c: E2 08 00 6A 63 80 11 00 00 00 00 00 00 47 [16:09:26]Write i2c OK [16:09:26]MH_I2C_Read... [16:09:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:26]Read from MH i2c: E2 [16:09:26]MH_I2C_Read... [16:09:26]Read from MH i2c: E2 17 00 [16:09:26]MH_I2C_Read... [16:09:26]Read from MH i2c: E2 17 00 6A 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A2 [16:09:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:09:26]wFMCommunicate OK [16:09:26]requested_item fd.num is exist - process it [16:09:26]SAM_PROTO_GetFieldsCounters [16:09:26]wFMCommunicate request_size=4 [16:09:26]MH_SAM_APDU [16:09:26]CAPDU: 80 13 00 00 [16:09:26]Write to MH i2c: E2 08 00 6B 63 80 13 00 00 00 00 00 00 4A [16:09:26]Write i2c OK [16:09:26]MH_I2C_Read... [16:09:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:26]Read from MH i2c: E2 [16:09:26]MH_I2C_Read... [16:09:26]Read from MH i2c: E2 62 00 [16:09:26]MH_I2C_Read... [16:09:27]Read from MH i2c: E2 62 00 6B 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 26 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [16:09: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 26 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:27]wFMCommunicate OK [16:09:27]SAM_PROTO_GetFieldsCounters done [16:09:27]requested_item shift.num is exist - process it [16:09:27]requested_item shift.opened is exist - process it [16:09:27]req_shift_opened [16:09:27]FM_GetShiftState [16:09:27]SAM_PROTO_GetShiftState [16:09:27]wFMCommunicate request_size=4 [16:09:27]MH_SAM_APDU [16:09:27]CAPDU: 80 13 01 00 [16:09:27]Write to MH i2c: E2 08 00 6C 63 80 13 01 00 00 00 00 00 4C [16:09:27]Write i2c OK [16:09:27]MH_I2C_Read... [16:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:27]Read from MH i2c: E2 [16:09:27]MH_I2C_Read... [16:09:27]Read from MH i2c: E2 0E 00 [16:09:27]MH_I2C_Read... [16:09:27]Read from MH i2c: E2 0E 00 6C 63 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 7A [16:09:27]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:09:27]wFMCommunicate OK [16:09:27]SAM_PROTO_GetShiftState done [16:09:27]FM_GetShiftState done [16:09:27]req_shift_opened done [16:09:27]requested_item shift.open_date is exist - process it [16:09:27]req_shift_open_date [16:09:27]req_shift_open_date done [16:09:27]produce_requested_data done [16:09:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118822,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:09:27]process_action_free print_text [16:09:27]json_value_free [16:09:27]json_value_free done [16:09:27]process_json_proto returns [16:09:27]Send response to host [16:09:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118822,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:09:27]free response buf [16:09:27]execute_script done [16:09:27]execute_script returns [16:09:27]free content buf [16:09:27]Sock 7.Close socket [16:09:27]Sock 7.Thread stoped [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:42]OFD Sender: No OFD packet to send [16:09:47]OFD Sender: No OFD packet to send [16:09:52]OFD Sender: No OFD packet to send [16:09:57]OFD Sender: No OFD packet to send [16:10:02]OFD Sender: No OFD packet to send [16:10:07]OFD Sender: No OFD packet to send [16:10:12]OFD Sender: No OFD packet to send [16:10:17]OFD Sender: No OFD packet to send [16:10:22]OFD Sender: No OFD packet to send [16:10:27]accept exits with 9 [16:10:27]New connection [16:10:27]New thread 3067383140 created [16:10:27]Thread 3067239780 joined [16:10:27]Waiting for new connection... [16:10:27] Sock 9.Parse request [16:10:27]Sock 9.Check first char [16:10:27]Sock 9.First char is OK [16:10:27]request: POST /json_proto HTTP/1.0 [16:10:27]Method: POST [16:10:27]URL: /json_proto [16:10:27]Method is POST - this is cgi request [16:10:27]url: /json_proto [16:10:27]query_string will be loaded in cgi processing [16:10:27]execute_cgi json_proto POST (null) [16:10:27]execute_cgi path=json_proto method=POST [16:10:27]POST find Content-Length [16:10:27]Host: 172.17.45.7:8080 [16:10:27]Content-Length: 677 [16:10:27]Content-Type: application/json [16:10:27] [16:10:27]POST finish read [16:10:27]Found Content-Length = 677 [16:10:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:27]execute_script... [16:10:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:27]POST & json_proto [16:10:27]process_json_proto [16:10:27]json parsed OK: [16:10:27]protocol is kg_v1.0 [16:10:27]action value=close_receipt [16:10:27]process_action close_receipt [16:10:27]cmd_close_receipt [16:10:27]MH_GetDate [16:10:27]Write to MH i2c: F0 00 00 6D 63 BF [16:10:27]Write i2c OK [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: F0 [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: F0 09 00 [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: F0 09 00 6D 63 00 F9 BE A7 66 90 0F 3E 66 CF [16:10:27]GetLastDocTimeStamp 1722269020 [16:10:27]current date 1722269433 [16:10:27]FM_GetShiftState [16:10:27]SAM_PROTO_GetShiftState [16:10:27]wFMCommunicate request_size=4 [16:10:27]MH_SAM_APDU [16:10:27]CAPDU: 80 13 01 00 [16:10:27]Write to MH i2c: E2 08 00 6E 63 80 13 01 00 00 00 00 00 4E [16:10:27]Write i2c OK [16:10:27]MH_I2C_Read... [16:10:27]OFD Sender: No OFD packet to send [16:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:27]Read from MH i2c: E2 [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: E2 0E 00 [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: E2 0E 00 6E 63 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 7C [16:10:27]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:10:27]wFMCommunicate OK [16:10:27]SAM_PROTO_GetShiftState done [16:10:27]FM_GetShiftState done [16:10:27]opened in 1722211641 [16:10:27]opened+sec_in_day 1722298041 [16:10:27]quantity*price = 30035 [16:10:27]sum+1 = 30036 [16:10:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 199 29.07.2024 16:10 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118823 ФПД: 229612441354984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T161033&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118823&fm=229612441354984&tin=02508201610067®Number=0000000000092660&sum=30000 [16:10:28]StoreToDocumentArchive [16:10:28]shift 434 fd 118823 [16:10:28]save to /storage/0434/doc_00118823 [16:10:28]save last doc name /storage/0434/doc_00118823 to /storage/kkm_last_doc_name [16:10:28]save OK [16:10:28]Clear old archive folders... [16:10:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:10:28]tlvbuf is B6F43B20 [16:10:28]SAM_PROTO_ClearQueue [16:10:28]wFMCommunicate request_size=4 [16:10:28]MH_SAM_APDU [16:10:28]CAPDU: 80 09 00 00 [16:10:28]Write to MH i2c: E2 08 00 7B 63 80 09 00 00 00 00 00 00 50 [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:28]Read from MH i2c: E2 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 7B 63 00 90 00 52 [16:10:28]RAPDU: 90 00 [16:10:28]wFMCommunicate OK [16:10:28]SAM_PROTO_ClearQueue done [16:10:28]KKMCreateOFDPacket [16:10:28]OFDProtocolAddRootSTLVToBuf [16:10:28]FM_MakeSignedData [16:10:28]FM_MakeSignedData [16:10:28]SAM_PROTO_SignData [16:10:28]wFMCommunicate request_size=4 [16:10:28]MH_SAM_APDU [16:10:28]CAPDU: 80 0D 01 02 [16:10:28]Write to MH i2c: E2 08 00 7C 63 80 0D 01 02 00 00 00 00 58 [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:28]Read from MH i2c: E2 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: E2 03 00 7C 63 00 90 00 53 [16:10:28]RAPDU: 90 00 [16:10:28]wFMCommunicate OK [16:10:28]wFMCommunicate request_size=255 [16:10:28]MH_SAM_APDU [16:10:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 F9 BE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 27 D0 01 00 35 04 06 00 D0 [16:10:28]Write to MH i2c: E2 02 01 7D 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 F9 BE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 27 D0 01 00 35 04 06 00 D0 00 00 01 [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:29]Read from MH i2c: E2 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: E2 03 00 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: E2 03 00 7D 63 00 90 00 54 [16:10:29]RAPDU: 90 00 [16:10:29]wFMCommunicate OK [16:10:29]wFMCommunicate request_size=10 [16:10:29]MH_SAM_APDU [16:10:29]CAPDU: 80 0D 02 02 05 D4 D0 00 C2 E8 [16:10:29]Write to MH i2c: E2 0D 00 7E 63 80 0D 02 02 05 00 D4 D0 00 C2 E8 00 00 B3 [16:10:29]Write i2c OK [16:10:29]MH_I2C_Read... [16:10:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:29]Read from MH i2c: E2 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: E2 03 00 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: E2 03 00 7E 63 00 90 00 55 [16:10:29]RAPDU: 90 00 [16:10:29]wFMCommunicate OK [16:10:29]wFMCommunicate request_size=4 [16:10:29]MH_SAM_APDU [16:10:29]CAPDU: 80 0D 03 02 [16:10:29]Write to MH i2c: E2 08 00 7F 63 80 0D 03 02 00 00 00 00 5D [16:10:29]Write i2c OK [16:10:29]MH_I2C_Read... [16:10:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:29]Read from MH i2c: E2 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: E2 0B 00 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: E2 0B 00 7F 63 00 EE 85 46 24 73 C5 68 C3 90 00 9E [16:10:29]RAPDU: EE 85 46 24 73 C5 68 C3 90 00 [16:10:29]wFMCommunicate OK [16:10:29]SAM_PROTO_SignData done [16:10:29]FM_MakeSignedData done [16:10:29]CreateOFDProtocolMessage [16:10:29]wFMCommunicate request_size=4 [16:10:29]MH_SAM_APDU [16:10:29]CAPDU: 80 11 00 00 [16:10:29]Write to MH i2c: E2 08 00 80 63 80 11 00 00 00 00 00 00 5D [16:10:29]Write i2c OK [16:10:29]MH_I2C_Read... [16:10:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:29]Read from MH i2c: E2 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: E2 17 00 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: E2 17 00 80 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B8 [16:10:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:10:29]wFMCommunicate OK [16:10:29]CreateOFDProtocolMessage done [16:10:29]OFDSenderStorePacket 118823 [16:10:29]StoreOFDPacket docnum=118823 [16:10:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D2 D6 07 01 C2 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 F9 BE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 27 D0 01 00 35 04 06 00 D0 D4 D0 00 C2 E8 EE 85 46 24 73 C5 68 C3 [16:10:29]CheckFolder [16:10:29]dirname=/storage/ofd_packets [16:10:29]CheckFolder done [16:10:29]ProducePacketName [16:10:29]name=ofd_packets/00118823 [16:10:29]NVStorageSaveData ofd_packets/00118823 [16:10:29]File name is /storage/ofd_packets/00118823 [16:10:29]Write 301 bytes [16:10:29]NVStorageSaveData done [16:10:29]OFDSenderStorePacket done [16:10:29]KKMCreateOFDPacket done [16:10:29]NVStorageSaveData kkm_last_timestamp [16:10:29]File name is /storage/kkm_last_timestamp [16:10:29]Write 4 bytes [16:10:29]NVStorageSaveData done [16:10:29]ExternCall_PrintAddStr [16:10:29]wPrintStart [16:10:29]Write to MH i2c: 01 00 00 81 63 E4 [16:10:29]Write i2c OK [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: 01 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: 01 07 00 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: 01 07 00 81 63 00 00 00 00 00 FF 0F F9 [16:10:29]RasterBufferAndPrint [16:10:29]line Счет N : (1)949713 [16:10:29]line ИНН: 02508201610067 [16:10:29]line Контрольно-Кассовый Чек [16:10:29]line ПРОДАЖА [16:10:29]line ТРК (МРК, ГНК) : 41 [16:10:29]line Товар: 2710124130 [16:10:29]line Аи-92-К-4 [16:10:29]line 4.430 * 67.80 [16:10:29]line = 300.35 [16:10:29]line НДС 12% НСП 1% [16:10:29]line > о реализуемом товаре [16:10:29]line ОКРУГЛЕНИЕ: -0.35 [16:10:29]line ИТОГО: 300.00 [16:10:29]line Внесено: 300.00 [16:10:29]line СДАЧА: 0.00 [16:10:29]line НСП 1% : 2.66 [16:10:29]line НДС 12% : 31.90 [16:10:29]line Наличными: 300.00 [16:10:29]line Безнал.: 0.00 [16:10:29]line Место: АЗС № 134 "Партнер Нефть" [16:10:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:10:29]line СНО: Общий режим [16:10:29]line Чек 199 29.07.2024 16:10 [16:10:29]line Смена: 434 ФФД: 1.0 [16:10:29]line ЗНМ: 0300000044 [16:10:29]line РНМ: 0000000000092660 [16:10:29]line Версия ККМ: 001 [16:10:29]line ФМ: 0000000000874939 [16:10:29]line ФД: 118823 [16:10:29]line ФПД: 229612441354984 [16:10:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T161033&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118823&fm=229612441354984&tin=02508201610067®Number=0000000000092660&sum=30000 [16:10:29]written 0, free lines is 4095 [16:10:29]OFD Sender: Processing packet 118823 [packets to send 86, broken 85] [16:10:29]ProducePacketName [16:10:29]name=ofd_packets/00118823 [16:10:29]OFD Sender: To server: pG, [16:10:29]CommunicateWithHost lk.salyk.kg:30040 [16:10:29]ConnectInit lk.salyk.kg [16:10:29]Connected sock=10 [16:10:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D2 D6 07 01 C2 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 F9 BE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 27 D0 01 00 35 04 06 00 D0 D4 D0 00 C2 E8 EE 85 46 24 73 C5 68 C3 [16:10:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 91 9F 47 00 E0 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 34 39 33 39 10 04 04 00 27 D0 01 00 F4 03 04 00 87 6C A7 66 B6 04 01 00 00 53 5F B3 0E 90 2B B3 AC [16:10:29]CommunicateWithHost err = 0 [16:10:29]CheckOFDResponse [16:10:29]1017 (14) - 77093643461234 [16:10:29]1041 (16) - 0000000000874939 [16:10:29]1040 (4) - 118823 [16:10:29]1012 (4) - 29.07.2024 10:18 [16:10:29]1206 (1) - 0 [16:10:29]OFD Sender: Remove packet 118823 [16:10:29]ProducePacketName [16:10:29]name=ofd_packets/00118823 [16:10:29]NVStorageDeleteData [16:10:30]Write to MH i2c: 01 00 00 AB 63 0E [16:10:30]Write i2c OK [16:10:30]MH_I2C_Read... [16:10:30]Read from MH i2c: 01 [16:10:30]MH_I2C_Read... [16:10:30]Read from MH i2c: 01 07 00 [16:10:30]MH_I2C_Read... [16:10:30]Read from MH i2c: 01 07 00 AB 63 00 00 00 00 00 E3 0C 04 [16:10:30]RasterBufferAndPrint [16:10:30]line [16:10:30]line [16:10:30]line [16:10:30]line [16:10:30]line [16:10:30]written 0, free lines is 3305 [16:10:30]MH_Cut [16:10:30]Write to MH i2c: D1 01 00 B2 63 01 E7 [16:10:30]Write i2c OK [16:10:30]MH_I2C_Read... [16:10:30]Read from MH i2c: D1 [16:10:30]MH_I2C_Read... [16:10:30]Read from MH i2c: D1 01 00 [16:10:30]MH_I2C_Read... [16:10:30]Read from MH i2c: D1 01 00 B2 63 00 E6 [16:10:30]Write to MH i2c: 01 00 00 B3 63 16 [16:10:30]Write i2c OK [16:10:30]MH_I2C_Read... [16:10:30]OFD Sender: No OFD packet to send [16:10:30]*** Cut start [16:10:30]*** Partial cut [16:10:30]*** CUTSNS_PIN = 1 [16:10:30]*** CUTSNS_PIN = 0 [16:10:31]*** Brake cut motor [16:10:31]Read from MH i2c: 01 [16:10:31]MH_I2C_Read... [16:10:31]*** Stop cut motor [16:10:31]*** Cut end [16:10:31]Read from MH i2c: 01 07 00 [16:10:31]MH_I2C_Read... [16:10:31]Read from MH i2c: 01 07 00 B3 63 00 00 00 00 00 FF 0F 2B [16:10:31]process_action close_receipt done [16:10:31]requested_data is exist [16:10:31]produce_requested_data [16:10:31]requested_item fm.sn is exist - process it [16:10:31]wFMCommunicate request_size=4 [16:10:31]MH_SAM_APDU [16:10:31]CAPDU: 80 11 00 00 [16:10:31]Write to MH i2c: E2 08 00 B4 63 80 11 00 00 00 00 00 00 91 [16:10:31]Write i2c OK [16:10:31]MH_I2C_Read... [16:10:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:31]Read from MH i2c: E2 [16:10:31]MH_I2C_Read... [16:10:31]Read from MH i2c: E2 17 00 [16:10:31]MH_I2C_Read... [16:10:31]Read from MH i2c: E2 17 00 B4 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EC [16:10:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:10:31]wFMCommunicate OK [16:10:31]requested_item fd.num is exist - process it [16:10:31]SAM_PROTO_GetFieldsCounters [16:10:31]wFMCommunicate request_size=4 [16:10:31]MH_SAM_APDU [16:10:31]CAPDU: 80 13 00 00 [16:10:31]Write to MH i2c: E2 08 00 B5 63 80 13 00 00 00 00 00 00 94 [16:10:31]Write i2c OK [16:10:31]MH_I2C_Read... [16:10:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:31]Read from MH i2c: E2 [16:10:31]MH_I2C_Read... [16:10:31]Read from MH i2c: E2 62 00 [16:10:31]MH_I2C_Read... [16:10:31]Read from MH i2c: E2 62 00 B5 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 27 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [16:10: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 27 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:10:31]wFMCommunicate OK [16:10:31]SAM_PROTO_GetFieldsCounters done [16:10:31]requested_item shift.num is exist - process it [16:10:31]requested_item shift.opened is exist - process it [16:10:31]req_shift_opened [16:10:31]FM_GetShiftState [16:10:31]SAM_PROTO_GetShiftState [16:10:31]wFMCommunicate request_size=4 [16:10:31]MH_SAM_APDU [16:10:31]CAPDU: 80 13 01 00 [16:10:31]Write to MH i2c: E2 08 00 B6 63 80 13 01 00 00 00 00 00 96 [16:10:31]Write i2c OK [16:10:31]MH_I2C_Read... [16:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:31]Read from MH i2c: E2 [16:10:31]MH_I2C_Read... [16:10:31]Read from MH i2c: E2 0E 00 [16:10:31]MH_I2C_Read... [16:10:31]Read from MH i2c: E2 0E 00 B6 63 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C4 [16:10:31]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:10:31]wFMCommunicate OK [16:10:31]SAM_PROTO_GetShiftState done [16:10:31]FM_GetShiftState done [16:10:31]req_shift_opened done [16:10:31]requested_item shift.open_date is exist - process it [16:10:31]req_shift_open_date [16:10:31]req_shift_open_date done [16:10:31]produce_requested_data done [16:10:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118823,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:10:31]process_action_free close_receipt [16:10:31]json_value_free [16:10:31]json_value_free done [16:10:31]process_json_proto returns [16:10:31]Send response to host [16:10:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118823,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:10:31]free response buf [16:10:31]execute_script done [16:10:31]execute_script returns [16:10:31]free content buf [16:10:31]Sock 9.Close socket [16:10:31]Sock 9.Thread stoped [16:10:35]OFD Sender: No OFD packet to send [16:10:40]OFD Sender: No OFD packet to send [16:10:45]OFD Sender: No OFD packet to send [16:10:50]OFD Sender: No OFD packet to send [16:10:55]OFD Sender: No OFD packet to send [16:11:00]OFD Sender: No OFD packet to send [16:11:05]OFD Sender: No OFD packet to send [16:11:10]OFD Sender: No OFD packet to send [16:11:15]OFD Sender: No OFD packet to send [16:11:20]OFD Sender: No OFD packet to send [16:11:25]OFD Sender: No OFD packet to send [16:11:30]OFD Sender: No OFD packet to send [16:11:35]OFD Sender: No OFD packet to send [16:11:40]OFD Sender: No OFD packet to send [16:11:45]OFD Sender: No OFD packet to send [16:11:50]OFD Sender: No OFD packet to send [16:11:55]OFD Sender: No OFD packet to send [16:11:55]accept exits with 7 [16:11:55]New connection [16:11:55]New thread 3067239780 created [16:11:55]Thread 3067383140 joined [16:11:55]Waiting for new connection... [16:11:55] Sock 7.Parse request [16:11:55]Sock 7.Check first char [16:11:55]Sock 7.First char is OK [16:11:55]request: POST /json_proto HTTP/1.0 [16:11:55]Method: POST [16:11:55]URL: /json_proto [16:11:55]Method is POST - this is cgi request [16:11:55]url: /json_proto [16:11:55]query_string will be loaded in cgi processing [16:11:55]execute_cgi json_proto POST (null) [16:11:55]execute_cgi path=json_proto method=POST [16:11:55]POST find Content-Length [16:11:55]Host: 172.17.45.7:8080 [16:11:55]Content-Length: 682 [16:11:55]Content-Type: application/json [16:11:55] [16:11:55]POST finish read [16:11:55]Found Content-Length = 682 [16:11:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:55]execute_script... [16:11:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:55]POST & json_proto [16:11:55]process_json_proto [16:11:55]json parsed OK: [16:11:55]protocol is kg_v1.0 [16:11:55]action value=close_receipt [16:11:55]process_action close_receipt [16:11:55]cmd_close_receipt [16:11:55]MH_GetDate [16:11:55]Write to MH i2c: F0 00 00 B7 63 09 [16:11:55]Write i2c OK [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: F0 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: F0 09 00 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: F0 09 00 B7 63 00 52 BF A7 66 90 0F 3E 66 73 [16:11:55]GetLastDocTimeStamp 1722269433 [16:11:55]current date 1722269522 [16:11:55]FM_GetShiftState [16:11:55]SAM_PROTO_GetShiftState [16:11:55]wFMCommunicate request_size=4 [16:11:55]MH_SAM_APDU [16:11:55]CAPDU: 80 13 01 00 [16:11:55]Write to MH i2c: E2 08 00 B8 63 80 13 01 00 00 00 00 00 98 [16:11:55]Write i2c OK [16:11:55]MH_I2C_Read... [16:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:55]Read from MH i2c: E2 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: E2 0E 00 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: E2 0E 00 B8 63 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C6 [16:11:55]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:11:55]wFMCommunicate OK [16:11:55]SAM_PROTO_GetShiftState done [16:11:55]FM_GetShiftState done [16:11:55]opened in 1722211641 [16:11:55]opened+sec_in_day 1722298041 [16:11:55]quantity*price = 100005 [16:11:55]sum+1 = 100006 [16:11:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 200 29.07.2024 16:12 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118824 ФПД: 237987945721345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T161202&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118824&fm=237987945721345&tin=02508201610067®Number=0000000000092660&sum=100000 [16:11:56]StoreToDocumentArchive [16:11:56]shift 434 fd 118824 [16:11:56]save to /storage/0434/doc_00118824 [16:11:56]save last doc name /storage/0434/doc_00118824 to /storage/kkm_last_doc_name [16:11:56]save OK [16:11:56]Clear old archive folders... [16:11:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:11:56]tlvbuf is 01E980F0 [16:11:56]SAM_PROTO_ClearQueue [16:11:56]wFMCommunicate request_size=4 [16:11:56]MH_SAM_APDU [16:11:56]CAPDU: 80 09 00 00 [16:11:56]Write to MH i2c: E2 08 00 C5 63 80 09 00 00 00 00 00 00 9A [16:11:56]Write i2c OK [16:11:56]MH_I2C_Read... [16:11:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:56]Read from MH i2c: E2 [16:11:56]MH_I2C_Read... [16:11:56]Read from MH i2c: E2 03 00 [16:11:56]MH_I2C_Read... [16:11:56]Read from MH i2c: E2 03 00 C5 63 00 90 00 9C [16:11:56]RAPDU: 90 00 [16:11:56]wFMCommunicate OK [16:11:56]SAM_PROTO_ClearQueue done [16:11:56]KKMCreateOFDPacket [16:11:56]OFDProtocolAddRootSTLVToBuf [16:11:56]FM_MakeSignedData [16:11:56]FM_MakeSignedData [16:11:56]SAM_PROTO_SignData [16:11:56]wFMCommunicate request_size=4 [16:11:56]MH_SAM_APDU [16:11:56]CAPDU: 80 0D 01 02 [16:11:56]Write to MH i2c: E2 08 00 C6 63 80 0D 01 02 00 00 00 00 A2 [16:11:56]Write i2c OK [16:11:56]MH_I2C_Read... [16:11:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:57]Read from MH i2c: E2 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 03 00 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 03 00 C6 63 00 90 00 9D [16:11:57]RAPDU: 90 00 [16:11:57]wFMCommunicate OK [16:11:57]wFMCommunicate request_size=255 [16:11:57]MH_SAM_APDU [16:11:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 52 BF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 D0 01 00 35 04 06 00 D8 [16:11:57]Write to MH i2c: E2 02 01 C7 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 52 BF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 D0 01 00 35 04 06 00 D8 00 00 1F [16:11:57]Write i2c OK [16:11:57]MH_I2C_Read... [16:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:57]Read from MH i2c: E2 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 03 00 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 03 00 C7 63 00 90 00 9E [16:11:57]RAPDU: 90 00 [16:11:57]wFMCommunicate OK [16:11:57]wFMCommunicate request_size=10 [16:11:57]MH_SAM_APDU [16:11:57]CAPDU: 80 0D 02 02 05 72 E2 F7 2E 01 [16:11:57]Write to MH i2c: E2 0D 00 C8 63 80 0D 02 02 05 00 72 E2 F7 2E 01 00 00 29 [16:11:57]Write i2c OK [16:11:57]MH_I2C_Read... [16:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:57]Read from MH i2c: E2 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 03 00 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 03 00 C8 63 00 90 00 9F [16:11:57]RAPDU: 90 00 [16:11:57]wFMCommunicate OK [16:11:57]wFMCommunicate request_size=4 [16:11:57]MH_SAM_APDU [16:11:57]CAPDU: 80 0D 03 02 [16:11:57]Write to MH i2c: E2 08 00 C9 63 80 0D 03 02 00 00 00 00 A7 [16:11:57]Write i2c OK [16:11:57]MH_I2C_Read... [16:11:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:57]Read from MH i2c: E2 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 0B 00 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 0B 00 C9 63 00 A3 3F 20 B6 B2 0F 7A E5 90 00 80 [16:11:57]RAPDU: A3 3F 20 B6 B2 0F 7A E5 90 00 [16:11:57]wFMCommunicate OK [16:11:57]SAM_PROTO_SignData done [16:11:57]FM_MakeSignedData done [16:11:57]CreateOFDProtocolMessage [16:11:57]wFMCommunicate request_size=4 [16:11:57]MH_SAM_APDU [16:11:57]CAPDU: 80 11 00 00 [16:11:57]Write to MH i2c: E2 08 00 CA 63 80 11 00 00 00 00 00 00 A7 [16:11:57]Write i2c OK [16:11:57]MH_I2C_Read... [16:11:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:57]Read from MH i2c: E2 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 17 00 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 17 00 CA 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 02 [16:11:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:11:57]wFMCommunicate OK [16:11:57]CreateOFDProtocolMessage done [16:11:57]OFDSenderStorePacket 118824 [16:11:57]StoreOFDPacket docnum=118824 [16:11:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F2 8E 07 01 7A 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 52 BF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 D0 01 00 35 04 06 00 D8 72 E2 F7 2E 01 A3 3F 20 B6 B2 0F 7A E5 [16:11:57]CheckFolder [16:11:57]dirname=/storage/ofd_packets [16:11:57]CheckFolder done [16:11:57]ProducePacketName [16:11:57]name=ofd_packets/00118824 [16:11:57]NVStorageSaveData ofd_packets/00118824 [16:11:57]File name is /storage/ofd_packets/00118824 [16:11:57]Write 301 bytes [16:11:57]NVStorageSaveData done [16:11:57]OFDSenderStorePacket done [16:11:57]KKMCreateOFDPacket done [16:11:57]NVStorageSaveData kkm_last_timestamp [16:11:57]File name is /storage/kkm_last_timestamp [16:11:57]Write 4 bytes [16:11:57]NVStorageSaveData done [16:11:57]ExternCall_PrintAddStr [16:11:57]wPrintStart [16:11:57]Write to MH i2c: 01 00 00 CB 63 2E [16:11:57]Write i2c OK [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: 01 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: 01 07 00 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: 01 07 00 CB 63 00 00 00 00 00 FF 0F 43 [16:11:57]RasterBufferAndPrint [16:11:57]line Счет N : (1)949714 [16:11:57]line ИНН: 02508201610067 [16:11:57]line Контрольно-Кассовый Чек [16:11:57]line ПРОДАЖА [16:11:57]line ТРК (МРК, ГНК) : 51 [16:11:57]line Товар: 2710124130 [16:11:57]line Аи-92-К-4 [16:11:57]line 14.750 * 67.80 [16:11:57]line = 1000.05 [16:11:57]line НДС 12% НСП 1% [16:11:57]line > о реализуемом товаре [16:11:57]line ОКРУГЛЕНИЕ: -0.05 [16:11:57]line ИТОГО: 1000.00 [16:11:57]line Внесено: 1000.00 [16:11:57]line СДАЧА: 0.00 [16:11:57]line НСП 1% : 8.85 [16:11:57]line НДС 12% : 106.20 [16:11:57]line Наличными: 1000.00 [16:11:57]line Безнал.: 0.00 [16:11:57]line Место: АЗС № 134 "Партнер Нефть" [16:11:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:11:57]line СНО: Общий режим [16:11:57]line Чек 200 29.07.2024 16:12 [16:11:57]line Смена: 434 ФФД: 1.0 [16:11:57]line ЗНМ: 0300000044 [16:11:57]line РНМ: 0000000000092660 [16:11:57]line Версия ККМ: 001 [16:11:57]line ФМ: 0000000000874939 [16:11:57]line ФД: 118824 [16:11:57]line ФПД: 237987945721345 [16:11:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T161202&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118824&fm=237987945721345&tin=02508201610067®Number=0000000000092660&sum=100000 [16:11:57]written 0, free lines is 4095 [16:11:57]OFD Sender: Processing packet 118824 [packets to send 86, broken 85] [16:11:57]ProducePacketName [16:11:57]name=ofd_packets/00118824 [16:11:57]OFD Sender: To server: pG, [16:11:57]CommunicateWithHost lk.salyk.kg:30040 [16:11:57]ConnectInit lk.salyk.kg [16:11:57]Connected sock=10 [16:11:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F2 8E 07 01 7A 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 52 BF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 D0 01 00 35 04 06 00 D8 72 E2 F7 2E 01 A3 3F 20 B6 B2 0F 7A E5 [16:11:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8C 8E 47 00 F7 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 34 39 33 39 10 04 04 00 28 D0 01 00 F4 03 04 00 DF 6C A7 66 B6 04 01 00 00 E7 DF 4E FB 2C 5A BE 7C [16:11:57]CommunicateWithHost err = 0 [16:11:57]CheckOFDResponse [16:11:57]1017 (14) - 77093643461234 [16:11:57]1041 (16) - 0000000000874939 [16:11:57]1040 (4) - 118824 [16:11:57]1012 (4) - 29.07.2024 10:20 [16:11:57]1206 (1) - 0 [16:11:57]OFD Sender: Remove packet 118824 [16:11:57]ProducePacketName [16:11:57]name=ofd_packets/00118824 [16:11:57]NVStorageDeleteData [16:11:57]Write to MH i2c: 01 00 00 F5 63 58 [16:11:57]Write i2c OK [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: 01 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: 01 07 00 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: 01 07 00 F5 63 00 00 00 00 00 EA 0C 55 [16:11:57]RasterBufferAndPrint [16:11:57]line [16:11:57]line [16:11:57]line [16:11:57]line [16:11:57]line [16:11:57]written 0, free lines is 3313 [16:11:57]MH_Cut [16:11:57]Write to MH i2c: D1 01 00 FC 63 01 31 [16:11:57]Write i2c OK [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: D1 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: D1 01 00 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: D1 01 00 FC 63 00 30 [16:11:57]Write to MH i2c: 01 00 00 FD 63 60 [16:11:57]Write i2c OK [16:11:57]MH_I2C_Read... [16:11:58]OFD Sender: No OFD packet to send [16:11:58]*** Cut start [16:11:58]*** Partial cut [16:11:58]*** CUTSNS_PIN = 1 [16:11:58]*** CUTSNS_PIN = 0 [16:11:58]*** Brake cut motor [16:11:59]Read from MH i2c: 01 [16:11:59]MH_I2C_Read... [16:11:59]*** Stop cut motor [16:11:59]*** Cut end [16:11:59]Read from MH i2c: 01 07 00 [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: 01 07 00 FD 63 00 00 00 00 00 FF 0F 75 [16:11:59]process_action close_receipt done [16:11:59]requested_data is exist [16:11:59]produce_requested_data [16:11:59]requested_item fm.sn is exist - process it [16:11:59]wFMCommunicate request_size=4 [16:11:59]MH_SAM_APDU [16:11:59]CAPDU: 80 11 00 00 [16:11:59]Write to MH i2c: E2 08 00 FE 63 80 11 00 00 00 00 00 00 DB [16:11:59]Write i2c OK [16:11:59]MH_I2C_Read... [16:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:59]Read from MH i2c: E2 [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: E2 17 00 [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: E2 17 00 FE 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 36 [16:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:11:59]wFMCommunicate OK [16:11:59]requested_item fd.num is exist - process it [16:11:59]SAM_PROTO_GetFieldsCounters [16:11:59]wFMCommunicate request_size=4 [16:11:59]MH_SAM_APDU [16:11:59]CAPDU: 80 13 00 00 [16:11:59]Write to MH i2c: E2 08 00 FF 63 80 13 00 00 00 00 00 00 DE [16:11:59]Write i2c OK [16:11:59]MH_I2C_Read... [16:11:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:59]Read from MH i2c: E2 [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: E2 62 00 [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: E2 62 00 FF 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 28 D0 01 00 0E 04 04 00 B2 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 09 [16:11: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 28 D0 01 00 0E 04 04 00 B2 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 [16:11:59]wFMCommunicate OK [16:11:59]SAM_PROTO_GetFieldsCounters done [16:11:59]requested_item shift.num is exist - process it [16:11:59]requested_item shift.opened is exist - process it [16:11:59]req_shift_opened [16:11:59]FM_GetShiftState [16:11:59]SAM_PROTO_GetShiftState [16:11:59]wFMCommunicate request_size=4 [16:11:59]MH_SAM_APDU [16:11:59]CAPDU: 80 13 01 00 [16:11:59]Write to MH i2c: E2 08 00 00 64 80 13 01 00 00 00 00 00 E1 [16:11:59]Write i2c OK [16:11:59]MH_I2C_Read... [16:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:59]Read from MH i2c: E2 [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: E2 0E 00 [16:11:59]MH_I2C_Read... [16:11:59]Read from MH i2c: E2 0E 00 00 64 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 0F [16:11:59]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:11:59]wFMCommunicate OK [16:11:59]SAM_PROTO_GetShiftState done [16:11:59]FM_GetShiftState done [16:11:59]req_shift_opened done [16:11:59]requested_item shift.open_date is exist - process it [16:11:59]req_shift_open_date [16:11:59]req_shift_open_date done [16:11:59]produce_requested_data done [16:11:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118824,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:11:59]process_action_free close_receipt [16:11:59]json_value_free [16:11:59]json_value_free done [16:11:59]process_json_proto returns [16:11:59]Send response to host [16:11:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118824,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:11:59]free response buf [16:11:59]execute_script done [16:11:59]execute_script returns [16:11:59]free content buf [16:11:59]Sock 7.Close socket [16:11:59]Sock 7.Thread stoped [16:12:03]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:12:53]OFD Sender: No OFD packet to send [16:12:58]OFD Sender: No OFD packet to send [16:13:03]OFD Sender: No OFD packet to send [16:13:08]OFD Sender: No OFD packet to send [16:13:13]OFD Sender: No OFD packet to send [16:13:18]OFD Sender: No OFD packet to send [16:13:23]OFD Sender: No OFD packet to send [16:13:28]OFD Sender: No OFD packet to send [16:13:33]OFD Sender: No OFD packet to send [16:13:38]OFD Sender: No OFD packet to send [16:13:43]OFD Sender: No OFD packet to send [16:13:48]OFD Sender: No OFD packet to send [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:08]OFD Sender: No OFD packet to send [16:17:13]OFD Sender: No OFD packet to send [16:17:18]OFD Sender: No OFD packet to send [16:17:21]accept exits with 9 [16:17:21]New connection [16:17:21]New thread 3067383140 created [16:17:21]Thread 3067239780 joined [16:17:21]Waiting for new connection... [16:17:21] Sock 9.Parse request [16:17:21]Sock 9.Check first char [16:17:21]Sock 9.First char is OK [16:17:21]request: POST /json_proto HTTP/1.0 [16:17:21]Method: POST [16:17:21]URL: /json_proto [16:17:21]Method is POST - this is cgi request [16:17:21]url: /json_proto [16:17:21]query_string will be loaded in cgi processing [16:17:21]execute_cgi json_proto POST (null) [16:17:21]execute_cgi path=json_proto method=POST [16:17:21]POST find Content-Length [16:17:21]Host: 172.17.45.7:8080 [16:17:21]Content-Length: 819 [16:17:21]Content-Type: application/json [16:17:21] [16:17:21]POST finish read [16:17:21]Found Content-Length = 819 [16:17:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 30.190, "sum" : 2300.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2300.00, "payments": [ { "type": 1, "sum" : 2300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:21]execute_script... [16:17:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 30.190, "sum" : 2300.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2300.00, "payments": [ { "type": 1, "sum" : 2300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:21]POST & json_proto [16:17:21]process_json_proto [16:17:21]json parsed OK: [16:17:21]protocol is kg_v1.0 [16:17:21]action value=close_receipt [16:17:21]process_action close_receipt [16:17:21]cmd_close_receipt [16:17:21]MH_GetDate [16:17:21]Write to MH i2c: F0 00 00 01 64 54 [16:17:21]Write i2c OK [16:17:21]MH_I2C_Read... [16:17:21]Read from MH i2c: F0 [16:17:21]MH_I2C_Read... [16:17:21]Read from MH i2c: F0 09 00 [16:17:21]MH_I2C_Read... [16:17:21]Read from MH i2c: F0 09 00 01 64 00 97 C0 A7 66 90 0F 3E 66 04 [16:17:21]GetLastDocTimeStamp 1722269522 [16:17:21]current date 1722269847 [16:17:21]FM_GetShiftState [16:17:21]SAM_PROTO_GetShiftState [16:17:21]wFMCommunicate request_size=4 [16:17:21]MH_SAM_APDU [16:17:21]CAPDU: 80 13 01 00 [16:17:21]Write to MH i2c: E2 08 00 02 64 80 13 01 00 00 00 00 00 E3 [16:17:21]Write i2c OK [16:17:21]MH_I2C_Read... [16:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:21]Read from MH i2c: E2 [16:17:21]MH_I2C_Read... [16:17:21]Read from MH i2c: E2 0E 00 [16:17:21]MH_I2C_Read... [16:17:21]Read from MH i2c: E2 0E 00 02 64 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 11 [16:17:21]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:17:21]wFMCommunicate OK [16:17:21]SAM_PROTO_GetShiftState done [16:17:21]FM_GetShiftState done [16:17:21]opened in 1722211641 [16:17:21]opened+sec_in_day 1722298041 [16:17:21]quantity*price = 230047 [16:17:21]sum+1 = 230049 [16:17:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 2300.00 НСП 1% : 20.36 НДС 12% : 244.30 Наличными: 0.00 Безнал.: 2300.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 201 29.07.2024 16:17 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118825 ФПД: 78257613840240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T161727&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118825&fm=78257613840240&tin=02508201610067®Number=0000000000092660&sum=230000 [16:17:22]StoreToDocumentArchive [16:17:22]shift 434 fd 118825 [16:17:22]save to /storage/0434/doc_00118825 [16:17:22]save last doc name /storage/0434/doc_00118825 to /storage/kkm_last_doc_name [16:17:22]save OK [16:17:22]Clear old archive folders... [16:17:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:17:22]tlvbuf is B6FBE540 [16:17:22]SAM_PROTO_ClearQueue [16:17:22]wFMCommunicate request_size=4 [16:17:22]MH_SAM_APDU [16:17:22]CAPDU: 80 09 00 00 [16:17:22]Write to MH i2c: E2 08 00 0F 64 80 09 00 00 00 00 00 00 E5 [16:17:22]Write i2c OK [16:17:22]MH_I2C_Read... [16:17:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:22]Read from MH i2c: E2 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 03 00 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 03 00 0F 64 00 90 00 E7 [16:17:22]RAPDU: 90 00 [16:17:22]wFMCommunicate OK [16:17:22]SAM_PROTO_ClearQueue done [16:17:22]KKMCreateOFDPacket [16:17:22]OFDProtocolAddRootSTLVToBuf [16:17:22]FM_MakeSignedData [16:17:22]FM_MakeSignedData [16:17:22]SAM_PROTO_SignData [16:17:22]wFMCommunicate request_size=4 [16:17:22]MH_SAM_APDU [16:17:22]CAPDU: 80 0D 01 02 [16:17:22]Write to MH i2c: E2 08 00 10 64 80 0D 01 02 00 00 00 00 ED [16:17:22]Write i2c OK [16:17:22]MH_I2C_Read... [16:17:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:22]Read from MH i2c: E2 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 03 00 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 03 00 10 64 00 90 00 E8 [16:17:22]RAPDU: 90 00 [16:17:22]wFMCommunicate OK [16:17:22]wFMCommunicate request_size=255 [16:17:22]MH_SAM_APDU [16:17:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 97 C0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 D0 01 00 35 04 06 00 47 2C C5 46 [16:17:22]Write to MH i2c: E2 02 01 11 64 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 97 C0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 D0 01 00 35 04 06 00 47 2C C5 46 00 00 C8 [16:17:22]Write i2c OK [16:17:22]MH_I2C_Read... [16:17:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:23]Read from MH i2c: E2 [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: E2 03 00 [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: E2 03 00 11 64 00 90 00 E9 [16:17:23]RAPDU: 90 00 [16:17:23]wFMCommunicate OK [16:17:23]wFMCommunicate request_size=7 [16:17:23]MH_SAM_APDU [16:17:23]CAPDU: 80 0D 02 02 02 1F 70 [16:17:23]Write to MH i2c: E2 0A 00 12 64 80 0D 02 02 02 00 1F 70 00 00 83 [16:17:23]Write i2c OK [16:17:23]MH_I2C_Read... [16:17:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:23]Read from MH i2c: E2 [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: E2 03 00 [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: E2 03 00 12 64 00 90 00 EA [16:17:23]RAPDU: 90 00 [16:17:23]wFMCommunicate OK [16:17:23]wFMCommunicate request_size=4 [16:17:23]MH_SAM_APDU [16:17:23]CAPDU: 80 0D 03 02 [16:17:23]Write to MH i2c: E2 08 00 13 64 80 0D 03 02 00 00 00 00 F2 [16:17:23]Write i2c OK [16:17:23]MH_I2C_Read... [16:17:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:23]Read from MH i2c: E2 [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: E2 0B 00 [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: E2 0B 00 13 64 00 32 78 48 AF 97 33 12 04 90 00 74 [16:17:23]RAPDU: 32 78 48 AF 97 33 12 04 90 00 [16:17:23]wFMCommunicate OK [16:17:23]SAM_PROTO_SignData done [16:17:23]FM_MakeSignedData done [16:17:23]CreateOFDProtocolMessage [16:17:23]wFMCommunicate request_size=4 [16:17:23]MH_SAM_APDU [16:17:23]CAPDU: 80 11 00 00 [16:17:23]Write to MH i2c: E2 08 00 14 64 80 11 00 00 00 00 00 00 F2 [16:17:23]Write i2c OK [16:17:23]MH_I2C_Read... [16:17:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:23]Read from MH i2c: E2 [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: E2 17 00 [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: E2 17 00 14 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4D [16:17:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:17:23]wFMCommunicate OK [16:17:23]CreateOFDProtocolMessage done [16:17:23]OFDSenderStorePacket 118825 [16:17:23]StoreOFDPacket docnum=118825 [16:17:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 36 3B 04 01 ED B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 97 C0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 D0 01 00 35 04 06 00 47 2C C5 46 1F 70 32 78 48 AF 97 33 12 04 [16:17:23]CheckFolder [16:17:23]dirname=/storage/ofd_packets [16:17:23]CheckFolder done [16:17:23]ProducePacketName [16:17:23]name=ofd_packets/00118825 [16:17:23]NVStorageSaveData ofd_packets/00118825 [16:17:23]File name is /storage/ofd_packets/00118825 [16:17:23]Write 298 bytes [16:17:23]NVStorageSaveData done [16:17:23]OFDSenderStorePacket done [16:17:23]KKMCreateOFDPacket done [16:17:23]NVStorageSaveData kkm_last_timestamp [16:17:23]File name is /storage/kkm_last_timestamp [16:17:23]Write 4 bytes [16:17:23]NVStorageSaveData done [16:17:23]ExternCall_PrintAddStr [16:17:23]wPrintStart [16:17:23]Write to MH i2c: 01 00 00 15 64 79 [16:17:23]Write i2c OK [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: 01 [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: 01 07 00 [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: 01 07 00 15 64 00 00 00 00 00 FF 0F 8E [16:17:23]RasterBufferAndPrint [16:17:23]line Счет N : (1)949715 [16:17:23]line ИНН: 02508201610067 [16:17:23]line Контрольно-Кассовый Чек [16:17:23]line ПРОДАЖА [16:17:23]line ТРК (МРК, ГНК) : 34 [16:17:23]line Товар: 2710194800 [16:17:23]line ДТ-К-5 [16:17:23]line 30.190 * 76.20 [16:17:23]line = 2300.48 [16:17:23]line НДС 12% НСП 1% [16:17:23]line > о реализуемом товаре [16:17:23]line ОКРУГЛЕНИЕ: -0.48 [16:17:23]line ИТОГО: 2300.00 [16:17:23]line НСП 1% : 20.36 [16:17:23]line НДС 12% : 244.30 [16:17:23]line Наличными: 0.00 [16:17:23]line Безнал.: 2300.00 [16:17:23]line Место: АЗС № 134 "Партнер Нефть" [16:17:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:17:23]line СНО: Общий режим [16:17:23]line Чек 201 29.07.2024 16:17 [16:17:23]line Смена: 434 ФФД: 1.0 [16:17:23]line ЗНМ: 0300000044 [16:17:23]line РНМ: 0000000000092660 [16:17:23]line Версия ККМ: 001 [16:17:23]line Платежная система: O! деньги [16:17:23]line ФМ: 0000000000874939 [16:17:23]line ФД: 118825 [16:17:23]line ФПД: 78257613840240 [16:17:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T161727&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118825&fm=78257613840240&tin=02508201610067®Number=0000000000092660&sum=230000 [16:17:23]OFD Sender: Processing packet 118825 [packets to send 86, broken 85] [16:17:23]ProducePacketName [16:17:23]name=ofd_packets/00118825 [16:17:23]OFD Sender: To server: pG, [16:17:23]CommunicateWithHost lk.salyk.kg:30040 [16:17:23]ConnectInit lk.salyk.kg [16:17:23]written 0, free lines is 4095 [16:17:23]Connected sock=10 [16:17:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 36 3B 04 01 ED B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 82 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 97 C0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 D0 01 00 35 04 06 00 47 2C C5 46 1F 70 32 78 48 AF 97 33 12 04 [16:17:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 97 44 47 00 DA 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 D0 01 00 F4 03 04 00 25 6E A7 66 B6 04 01 00 00 EC 27 A8 D5 1D D2 4B 58 [16:17:23]CommunicateWithHost err = 0 [16:17:23]CheckOFDResponse [16:17:23]1017 (14) - 77093643461234 [16:17:23]1041 (16) - 0000000000874939 [16:17:23]1040 (4) - 118825 [16:17:23]1012 (4) - 29.07.2024 10:25 [16:17:23]1206 (1) - 0 [16:17:23]OFD Sender: Remove packet 118825 [16:17:23]ProducePacketName [16:17:23]name=ofd_packets/00118825 [16:17:23]NVStorageDeleteData [16:17:23]Write to MH i2c: 01 00 00 3F 64 A3 [16:17:23]Write i2c OK [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: 01 [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: 01 07 00 [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: 01 07 00 3F 64 00 00 00 00 00 EC 0C A2 [16:17:23]RasterBufferAndPrint [16:17:23]line [16:17:23]line [16:17:23]line [16:17:23]line [16:17:23]line [16:17:23]written 0, free lines is 3315 [16:17:23]MH_Cut [16:17:23]Write to MH i2c: D1 01 00 46 64 01 7C [16:17:23]Write i2c OK [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: D1 [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: D1 01 00 [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: D1 01 00 46 64 00 7B [16:17:23]Write to MH i2c: 01 00 00 47 64 AB [16:17:23]Write i2c OK [16:17:23]MH_I2C_Read... [16:17:24]OFD Sender: No OFD packet to send [16:17:24]*** Cut start [16:17:24]*** Partial cut [16:17:24]*** CUTSNS_PIN = 1 [16:17:24]*** CUTSNS_PIN = 0 [16:17:24]*** Brake cut motor [16:17:25]Read from MH i2c: 01 [16:17:25]MH_I2C_Read... [16:17:25]*** Stop cut motor [16:17:25]*** Cut end [16:17:25]Read from MH i2c: 01 07 00 [16:17:25]MH_I2C_Read... [16:17:25]Read from MH i2c: 01 07 00 47 64 00 00 00 00 00 FF 0F C0 [16:17:25]process_action close_receipt done [16:17:25]requested_data is exist [16:17:25]produce_requested_data [16:17:25]requested_item fm.sn is exist - process it [16:17:25]wFMCommunicate request_size=4 [16:17:25]MH_SAM_APDU [16:17:25]CAPDU: 80 11 00 00 [16:17:25]Write to MH i2c: E2 08 00 48 64 80 11 00 00 00 00 00 00 26 [16:17:25]Write i2c OK [16:17:25]MH_I2C_Read... [16:17:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:25]Read from MH i2c: E2 [16:17:25]MH_I2C_Read... [16:17:25]Read from MH i2c: E2 17 00 [16:17:25]MH_I2C_Read... [16:17:25]Read from MH i2c: E2 17 00 48 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 81 [16:17:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:17:25]wFMCommunicate OK [16:17:25]requested_item fd.num is exist - process it [16:17:25]SAM_PROTO_GetFieldsCounters [16:17:25]wFMCommunicate request_size=4 [16:17:25]MH_SAM_APDU [16:17:25]CAPDU: 80 13 00 00 [16:17:25]Write to MH i2c: E2 08 00 49 64 80 13 00 00 00 00 00 00 29 [16:17:25]Write i2c OK [16:17:25]MH_I2C_Read... [16:17:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:25]Read from MH i2c: E2 [16:17:25]MH_I2C_Read... [16:17:25]Read from MH i2c: E2 62 00 [16:17:25]MH_I2C_Read... [16:17:25]Read from MH i2c: E2 62 00 49 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 29 D0 01 00 0E 04 04 00 B2 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 58 [16:17: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 29 D0 01 00 0E 04 04 00 B2 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 [16:17:25]wFMCommunicate OK [16:17:25]SAM_PROTO_GetFieldsCounters done [16:17:25]requested_item shift.num is exist - process it [16:17:25]requested_item shift.opened is exist - process it [16:17:25]req_shift_opened [16:17:25]FM_GetShiftState [16:17:25]SAM_PROTO_GetShiftState [16:17:25]wFMCommunicate request_size=4 [16:17:25]MH_SAM_APDU [16:17:25]CAPDU: 80 13 01 00 [16:17:25]Write to MH i2c: E2 08 00 4A 64 80 13 01 00 00 00 00 00 2B [16:17:25]Write i2c OK [16:17:25]MH_I2C_Read... [16:17:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:25]Read from MH i2c: E2 [16:17:25]MH_I2C_Read... [16:17:25]Read from MH i2c: E2 0E 00 [16:17:25]MH_I2C_Read... [16:17:25]Read from MH i2c: E2 0E 00 4A 64 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 59 [16:17:25]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:17:25]wFMCommunicate OK [16:17:25]SAM_PROTO_GetShiftState done [16:17:25]FM_GetShiftState done [16:17:25]req_shift_opened done [16:17:25]requested_item shift.open_date is exist - process it [16:17:25]req_shift_open_date [16:17:25]req_shift_open_date done [16:17:25]produce_requested_data done [16:17:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118825,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:17:25]process_action_free close_receipt [16:17:25]json_value_free [16:17:25]json_value_free done [16:17:25]process_json_proto returns [16:17:25]Send response to host [16:17:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118825,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:17:25]free response buf [16:17:25]execute_script done [16:17:25]execute_script returns [16:17:25]free content buf [16:17:25]Sock 9.Close socket [16:17:25]Sock 9.Thread stoped [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [16:18:34]OFD Sender: No OFD packet to send [16:18:39]OFD Sender: No OFD packet to send [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [16:19:29]OFD Sender: No OFD packet to send [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:42]accept exits with 7 [16:21:42]New connection [16:21:42]New thread 3067239780 created [16:21:42]Thread 3067383140 joined [16:21:42]Waiting for new connection... [16:21:42] Sock 7.Parse request [16:21:42]Sock 7.Check first char [16:21:42]Sock 7.First char is OK [16:21:42]request: POST /json_proto HTTP/1.0 [16:21:42]Method: POST [16:21:42]URL: /json_proto [16:21:42]Method is POST - this is cgi request [16:21:42]url: /json_proto [16:21:42]query_string will be loaded in cgi processing [16:21:42]execute_cgi json_proto POST (null) [16:21:42]execute_cgi path=json_proto method=POST [16:21:42]POST find Content-Length [16:21:42]Host: 172.17.45.7:8080 [16:21:42]Content-Length: 677 [16:21:42]Content-Type: application/json [16:21:42] [16:21:42]POST finish read [16:21:42]Found Content-Length = 677 [16:21:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:42]execute_script... [16:21: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)949716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:42]POST & json_proto [16:21:42]process_json_proto [16:21:42]json parsed OK: [16:21:42]protocol is kg_v1.0 [16:21:42]action value=close_receipt [16:21:42]process_action close_receipt [16:21:42]cmd_close_receipt [16:21:42]MH_GetDate [16:21:42]Write to MH i2c: F0 00 00 4B 64 9E [16:21:42]Write i2c OK [16:21:42]MH_I2C_Read... [16:21:42]Read from MH i2c: F0 [16:21:42]MH_I2C_Read... [16:21:42]Read from MH i2c: F0 09 00 [16:21:42]MH_I2C_Read... [16:21:42]Read from MH i2c: F0 09 00 4B 64 00 9D C1 A7 66 90 0F 3E 66 55 [16:21:42]GetLastDocTimeStamp 1722269847 [16:21:42]current date 1722270109 [16:21:42]FM_GetShiftState [16:21:42]SAM_PROTO_GetShiftState [16:21:42]wFMCommunicate request_size=4 [16:21:42]MH_SAM_APDU [16:21:42]CAPDU: 80 13 01 00 [16:21:42]Write to MH i2c: E2 08 00 4C 64 80 13 01 00 00 00 00 00 2D [16:21:42]Write i2c OK [16:21:42]MH_I2C_Read... [16:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:43]Read from MH i2c: E2 [16:21:43]MH_I2C_Read... [16:21:43]Read from MH i2c: E2 0E 00 [16:21:43]MH_I2C_Read... [16:21:43]Read from MH i2c: E2 0E 00 4C 64 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 5B [16:21:43]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:21:43]wFMCommunicate OK [16:21:43]SAM_PROTO_GetShiftState done [16:21:43]FM_GetShiftState done [16:21:43]opened in 1722211641 [16:21:43]opened+sec_in_day 1722298041 [16:21:43]quantity*price = 40002 [16:21:43]sum+1 = 40003 [16:21:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 202 29.07.2024 16:21 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118826 ФПД: 112416099187603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T162149&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118826&fm=112416099187603&tin=02508201610067®Number=0000000000092660&sum=40000 [16:21:44]StoreToDocumentArchive [16:21:44]shift 434 fd 118826 [16:21:44]save to /storage/0434/doc_00118826 [16:21:44]save last doc name /storage/0434/doc_00118826 to /storage/kkm_last_doc_name [16:21:44]save OK [16:21:44]Clear old archive folders... [16:21:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:21:44]tlvbuf is 01E98060 [16:21:44]SAM_PROTO_ClearQueue [16:21:44]wFMCommunicate request_size=4 [16:21:44]MH_SAM_APDU [16:21:44]CAPDU: 80 09 00 00 [16:21:44]Write to MH i2c: E2 08 00 59 64 80 09 00 00 00 00 00 00 2F [16:21:44]Write i2c OK [16:21:44]MH_I2C_Read... [16:21:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:44]Read from MH i2c: E2 [16:21:44]MH_I2C_Read... [16:21:44]Read from MH i2c: E2 03 00 [16:21:44]MH_I2C_Read... [16:21:44]Read from MH i2c: E2 03 00 59 64 00 90 00 31 [16:21:44]RAPDU: 90 00 [16:21:44]wFMCommunicate OK [16:21:44]SAM_PROTO_ClearQueue done [16:21:44]KKMCreateOFDPacket [16:21:44]OFDProtocolAddRootSTLVToBuf [16:21:44]FM_MakeSignedData [16:21:44]FM_MakeSignedData [16:21:44]SAM_PROTO_SignData [16:21:44]wFMCommunicate request_size=4 [16:21:44]MH_SAM_APDU [16:21:44]CAPDU: 80 0D 01 02 [16:21:44]Write to MH i2c: E2 08 00 5A 64 80 0D 01 02 00 00 00 00 37 [16:21:44]Write i2c OK [16:21:44]MH_I2C_Read... [16:21:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:44]Read from MH i2c: E2 [16:21:44]MH_I2C_Read... [16:21:44]Read from MH i2c: E2 03 00 [16:21:44]MH_I2C_Read... [16:21:44]Read from MH i2c: E2 03 00 5A 64 00 90 00 32 [16:21:44]RAPDU: 90 00 [16:21:44]wFMCommunicate OK [16:21:44]wFMCommunicate request_size=255 [16:21:44]MH_SAM_APDU [16:21:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 9D C1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A D0 01 00 35 04 06 00 66 [16:21:44]Write to MH i2c: E2 02 01 5B 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 9D C1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A D0 01 00 35 04 06 00 66 00 00 E9 [16:21:44]Write i2c OK [16:21:44]MH_I2C_Read... [16:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:44]Read from MH i2c: E2 [16:21:44]MH_I2C_Read... [16:21:44]Read from MH i2c: E2 03 00 [16:21:44]MH_I2C_Read... [16:21:44]Read from MH i2c: E2 03 00 5B 64 00 90 00 33 [16:21:44]RAPDU: 90 00 [16:21:44]wFMCommunicate OK [16:21:44]wFMCommunicate request_size=10 [16:21:44]MH_SAM_APDU [16:21:44]CAPDU: 80 0D 02 02 05 3D E9 A8 BB 93 [16:21:44]Write to MH i2c: E2 0D 00 5C 64 80 0D 02 02 05 00 3D E9 A8 BB 93 00 00 60 [16:21:44]Write i2c OK [16:21:44]MH_I2C_Read... [16:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:44]Read from MH i2c: E2 [16:21:44]MH_I2C_Read... [16:21:44]Read from MH i2c: E2 03 00 [16:21:44]MH_I2C_Read... [16:21:44]Read from MH i2c: E2 03 00 5C 64 00 90 00 34 [16:21:44]RAPDU: 90 00 [16:21:44]wFMCommunicate OK [16:21:44]wFMCommunicate request_size=4 [16:21:44]MH_SAM_APDU [16:21:44]CAPDU: 80 0D 03 02 [16:21:44]Write to MH i2c: E2 08 00 5D 64 80 0D 03 02 00 00 00 00 3C [16:21:44]Write i2c OK [16:21:44]MH_I2C_Read... [16:21:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:44]OFD Sender: No OFD packet to send [16:21:44]Read from MH i2c: E2 [16:21:44]MH_I2C_Read... [16:21:44]Read from MH i2c: E2 0B 00 [16:21:44]MH_I2C_Read... [16:21:44]Read from MH i2c: E2 0B 00 5D 64 00 80 FD 9B C9 94 6F 76 4D 90 00 E4 [16:21:44]RAPDU: 80 FD 9B C9 94 6F 76 4D 90 00 [16:21:44]wFMCommunicate OK [16:21:44]SAM_PROTO_SignData done [16:21:44]FM_MakeSignedData done [16:21:44]CreateOFDProtocolMessage [16:21:44]wFMCommunicate request_size=4 [16:21:44]MH_SAM_APDU [16:21:44]CAPDU: 80 11 00 00 [16:21:44]Write to MH i2c: E2 08 00 5E 64 80 11 00 00 00 00 00 00 3C [16:21:44]Write i2c OK [16:21:44]MH_I2C_Read... [16:21:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:44]Read from MH i2c: E2 [16:21:44]MH_I2C_Read... [16:21:44]Read from MH i2c: E2 17 00 [16:21:44]MH_I2C_Read... [16:21:44]Read from MH i2c: E2 17 00 5E 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 97 [16:21:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:21:44]wFMCommunicate OK [16:21:44]CreateOFDProtocolMessage done [16:21:44]OFDSenderStorePacket 118826 [16:21:44]StoreOFDPacket docnum=118826 [16:21:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B1 EC 07 01 0A 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 9D C1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A D0 01 00 35 04 06 00 66 3D E9 A8 BB 93 80 FD 9B C9 94 6F 76 4D [16:21:44]CheckFolder [16:21:44]dirname=/storage/ofd_packets [16:21:44]CheckFolder done [16:21:44]ProducePacketName [16:21:44]name=ofd_packets/00118826 [16:21:44]NVStorageSaveData ofd_packets/00118826 [16:21:44]File name is /storage/ofd_packets/00118826 [16:21:44]Write 301 bytes [16:21:44]NVStorageSaveData done [16:21:44]OFDSenderStorePacket done [16:21:44]KKMCreateOFDPacket done [16:21:44]NVStorageSaveData kkm_last_timestamp [16:21:44]File name is /storage/kkm_last_timestamp [16:21:44]Write 4 bytes [16:21:44]NVStorageSaveData done [16:21:44]ExternCall_PrintAddStr [16:21:44]wPrintStart [16:21:44]Write to MH i2c: 01 00 00 5F 64 C3 [16:21:44]Write i2c OK [16:21:44]MH_I2C_Read... [16:21:44]Read from MH i2c: 01 [16:21:44]MH_I2C_Read... [16:21:44]Read from MH i2c: 01 07 00 [16:21:44]MH_I2C_Read... [16:21:44]Read from MH i2c: 01 07 00 5F 64 00 00 00 00 00 FF 0F D8 [16:21:44]RasterBufferAndPrint [16:21:44]line Счет N : (1)949716 [16:21:44]line ИНН: 02508201610067 [16:21:44]line Контрольно-Кассовый Чек [16:21:44]line ПРОДАЖА [16:21:44]line ТРК (МРК, ГНК) : 41 [16:21:44]line Товар: 2710124130 [16:21:44]line Аи-92-К-4 [16:21:44]line 5.900 * 67.80 [16:21:44]line = 400.02 [16:21:44]line НДС 12% НСП 1% [16:21:44]line > о реализуемом товаре [16:21:44]line ОКРУГЛЕНИЕ: -0.02 [16:21:44]line ИТОГО: 400.00 [16:21:44]line Внесено: 400.00 [16:21:44]line СДАЧА: 0.00 [16:21:44]line НСП 1% : 3.54 [16:21:44]line НДС 12% : 42.48 [16:21:44]line Наличными: 400.00 [16:21:44]line Безнал.: 0.00 [16:21:44]line Место: АЗС № 134 "Партнер Нефть" [16:21:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:21:44]line СНО: Общий режим [16:21:44]line Чек 202 29.07.2024 16:21 [16:21:44]line Смена: 434 ФФД: 1.0 [16:21:44]line ЗНМ: 0300000044 [16:21:44]line РНМ: 0000000000092660 [16:21:44]line Версия ККМ: 001 [16:21:44]line ФМ: 0000000000874939 [16:21:44]line ФД: 118826 [16:21:44]line ФПД: 112416099187603 [16:21:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T162149&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118826&fm=112416099187603&tin=02508201610067®Number=0000000000092660&sum=40000 [16:21:45]OFD Sender: Processing packet 118826 [packets to send 86, broken 85] [16:21:45]ProducePacketName [16:21:45]name=ofd_packets/00118826 [16:21:45]OFD Sender: To server: pG, [16:21:45]CommunicateWithHost lk.salyk.kg:30040 [16:21:45]ConnectInit lk.salyk.kg [16:21:45]written 0, free lines is 4095 [16:21:45]Connected sock=10 [16:21:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B1 EC 07 01 0A 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 9D C1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A D0 01 00 35 04 06 00 66 3D E9 A8 BB 93 80 FD 9B C9 94 6F 76 4D [16:21:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F7 D7 47 00 D1 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A D0 01 00 F4 03 04 00 2A 6F A7 66 B6 04 01 00 00 2B 87 7F EA 1D 7F 43 77 [16:21:45]CommunicateWithHost err = 0 [16:21:45]CheckOFDResponse [16:21:45]1017 (14) - 77093643461234 [16:21:45]1041 (16) - 0000000000874939 [16:21:45]1040 (4) - 118826 [16:21:45]1012 (4) - 29.07.2024 10:30 [16:21:45]1206 (1) - 0 [16:21:45]OFD Sender: Remove packet 118826 [16:21:45]ProducePacketName [16:21:45]name=ofd_packets/00118826 [16:21:45]NVStorageDeleteData [16:21:45]Write to MH i2c: 01 00 00 89 64 ED [16:21:45]Write i2c OK [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: 01 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: 01 07 00 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: 01 07 00 89 64 00 00 00 00 00 F2 0C F2 [16:21:45]RasterBufferAndPrint [16:21:45]line [16:21:45]line [16:21:45]line [16:21:45]line [16:21:45]line [16:21:45]written 0, free lines is 3322 [16:21:45]MH_Cut [16:21:45]Write to MH i2c: D1 01 00 90 64 01 C6 [16:21:45]Write i2c OK [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: D1 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: D1 01 00 [16:21:45]MH_I2C_Read... [16:21:45]Read from MH i2c: D1 01 00 90 64 00 C5 [16:21:45]Write to MH i2c: 01 00 00 91 64 F5 [16:21:45]Write i2c OK [16:21:45]MH_I2C_Read... [16:21:45]OFD Sender: No OFD packet to send [16:21:46]*** Cut start [16:21:46]*** Partial cut [16:21:46]*** CUTSNS_PIN = 1 [16:21:46]*** CUTSNS_PIN = 0 [16:21:46]*** Brake cut motor [16:21:46]Read from MH i2c: 01 [16:21:46]MH_I2C_Read... [16:21:46]*** Stop cut motor [16:21:46]*** Cut end [16:21:46]Read from MH i2c: 01 07 00 [16:21:46]MH_I2C_Read... [16:21:46]Read from MH i2c: 01 07 00 91 64 00 00 00 00 00 FF 0F 0A [16:21:46]process_action close_receipt done [16:21:46]requested_data is exist [16:21:46]produce_requested_data [16:21:46]requested_item fm.sn is exist - process it [16:21:46]wFMCommunicate request_size=4 [16:21:46]MH_SAM_APDU [16:21:46]CAPDU: 80 11 00 00 [16:21:46]Write to MH i2c: E2 08 00 92 64 80 11 00 00 00 00 00 00 70 [16:21:46]Write i2c OK [16:21:46]MH_I2C_Read... [16:21:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:46]Read from MH i2c: E2 [16:21:46]MH_I2C_Read... [16:21:46]Read from MH i2c: E2 17 00 [16:21:46]MH_I2C_Read... [16:21:46]Read from MH i2c: E2 17 00 92 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CB [16:21:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:21:46]wFMCommunicate OK [16:21:46]requested_item fd.num is exist - process it [16:21:46]SAM_PROTO_GetFieldsCounters [16:21:46]wFMCommunicate request_size=4 [16:21:46]MH_SAM_APDU [16:21:46]CAPDU: 80 13 00 00 [16:21:46]Write to MH i2c: E2 08 00 93 64 80 13 00 00 00 00 00 00 73 [16:21:46]Write i2c OK [16:21:46]MH_I2C_Read... [16:21:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:46]Read from MH i2c: E2 [16:21:46]MH_I2C_Read... [16:21:46]Read from MH i2c: E2 62 00 [16:21:46]MH_I2C_Read... [16:21:46]Read from MH i2c: E2 62 00 93 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2A D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [16:21: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2A D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:46]wFMCommunicate OK [16:21:46]SAM_PROTO_GetFieldsCounters done [16:21:46]requested_item shift.num is exist - process it [16:21:46]requested_item shift.opened is exist - process it [16:21:46]req_shift_opened [16:21:46]FM_GetShiftState [16:21:46]SAM_PROTO_GetShiftState [16:21:46]wFMCommunicate request_size=4 [16:21:46]MH_SAM_APDU [16:21:46]CAPDU: 80 13 01 00 [16:21:46]Write to MH i2c: E2 08 00 94 64 80 13 01 00 00 00 00 00 75 [16:21:46]Write i2c OK [16:21:46]MH_I2C_Read... [16:21:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:47]Read from MH i2c: E2 [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: E2 0E 00 [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: E2 0E 00 94 64 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A3 [16:21:47]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:21:47]wFMCommunicate OK [16:21:47]SAM_PROTO_GetShiftState done [16:21:47]FM_GetShiftState done [16:21:47]req_shift_opened done [16:21:47]requested_item shift.open_date is exist - process it [16:21:47]req_shift_open_date [16:21:47]req_shift_open_date done [16:21:47]produce_requested_data done [16:21:47]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118826,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:21:47]process_action_free close_receipt [16:21:47]json_value_free [16:21:47]json_value_free done [16:21:47]process_json_proto returns [16:21:47]Send response to host [16:21:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118826,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:21:47]free response buf [16:21:47]execute_script done [16:21:47]execute_script returns [16:21:47]free content buf [16:21:47]Sock 7.Close socket [16:21:47]Sock 7.Thread stoped [16:21:50]OFD Sender: No OFD packet to send [16:21:55]accept exits with 9 [16:21:55]New connection [16:21:55]New thread 3067383140 created [16:21:55]Thread 3067239780 joined [16:21:55]Waiting for new connection... [16:21:55] Sock 9.Parse request [16:21:55]Sock 9.Check first char [16:21:55]Sock 9.First char is OK [16:21:55]request: POST /json_proto HTTP/1.0 [16:21:55]Method: POST [16:21:55]URL: /json_proto [16:21:55]Method is POST - this is cgi request [16:21:55]url: /json_proto [16:21:55]query_string will be loaded in cgi processing [16:21:55]execute_cgi json_proto POST (null) [16:21:55]execute_cgi path=json_proto method=POST [16:21:55]POST find Content-Length [16:21:55]Host: 172.17.45.7:8080 [16:21:55]Content-Length: 677 [16:21:55]Content-Type: application/json [16:21:55] [16:21:55]POST finish read [16:21:55]Found Content-Length = 677 [16:21:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:55]execute_script... [16:21:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:55]POST & json_proto [16:21:55]process_json_proto [16:21:55]json parsed OK: [16:21:55]protocol is kg_v1.0 [16:21:55]action value=close_receipt [16:21:55]process_action close_receipt [16:21:55]cmd_close_receipt [16:21:55]MH_GetDate [16:21:55]Write to MH i2c: F0 00 00 95 64 E8 [16:21:55]Write i2c OK [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: F0 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: F0 09 00 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: F0 09 00 95 64 00 A9 C1 A7 66 90 0F 3E 66 AB [16:21:55]GetLastDocTimeStamp 1722270109 [16:21:55]current date 1722270121 [16:21:55]FM_GetShiftState [16:21:55]SAM_PROTO_GetShiftState [16:21:55]wFMCommunicate request_size=4 [16:21:55]MH_SAM_APDU [16:21:55]CAPDU: 80 13 01 00 [16:21:55]Write to MH i2c: E2 08 00 96 64 80 13 01 00 00 00 00 00 77 [16:21:55]Write i2c OK [16:21:55]MH_I2C_Read... [16:21:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:55]Read from MH i2c: E2 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 0E 00 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 0E 00 96 64 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A5 [16:21:55]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:21:55]wFMCommunicate OK [16:21:55]SAM_PROTO_GetShiftState done [16:21:55]FM_GetShiftState done [16:21:55]opened in 1722211641 [16:21:55]opened+sec_in_day 1722298041 [16:21:55]quantity*price = 50036 [16:21:55]sum+1 = 50037 [16:21:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 203 29.07.2024 16:22 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118827 ФПД: 126246197871736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T162201&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118827&fm=126246197871736&tin=02508201610067®Number=0000000000092660&sum=50000 [16:21:56]StoreToDocumentArchive [16:21:56]shift 434 fd 118827 [16:21:56]save to /storage/0434/doc_00118827 [16:21:56]save last doc name /storage/0434/doc_00118827 to /storage/kkm_last_doc_name [16:21:56]save OK [16:21:56]Clear old archive folders... [16:21:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:21:56]tlvbuf is 020615B0 [16:21:56]SAM_PROTO_ClearQueue [16:21:56]wFMCommunicate request_size=4 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 09 00 00 [16:21:56]Write to MH i2c: E2 08 00 A3 64 80 09 00 00 00 00 00 00 79 [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 03 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 03 00 A3 64 00 90 00 7B [16:21:56]RAPDU: 90 00 [16:21:56]wFMCommunicate OK [16:21:56]SAM_PROTO_ClearQueue done [16:21:56]KKMCreateOFDPacket [16:21:56]OFDProtocolAddRootSTLVToBuf [16:21:56]FM_MakeSignedData [16:21:56]FM_MakeSignedData [16:21:56]SAM_PROTO_SignData [16:21:56]wFMCommunicate request_size=4 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 0D 01 02 [16:21:56]Write to MH i2c: E2 08 00 A4 64 80 0D 01 02 00 00 00 00 81 [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 03 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 03 00 A4 64 00 90 00 7C [16:21:56]RAPDU: 90 00 [16:21:56]wFMCommunicate OK [16:21:56]wFMCommunicate request_size=255 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 A9 C1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B D0 01 00 35 04 06 00 72 [16:21:56]Write to MH i2c: E2 02 01 A5 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 A9 C1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B D0 01 00 35 04 06 00 72 00 00 68 [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:57]Read from MH i2c: E2 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 03 00 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 03 00 A5 64 00 90 00 7D [16:21:57]RAPDU: 90 00 [16:21:57]wFMCommunicate OK [16:21:57]wFMCommunicate request_size=10 [16:21:57]MH_SAM_APDU [16:21:57]CAPDU: 80 0D 02 02 05 D1 FB C7 44 78 [16:21:57]Write to MH i2c: E2 0D 00 A6 64 80 0D 02 02 05 00 D1 FB C7 44 78 00 00 DD [16:21:57]Write i2c OK [16:21:57]MH_I2C_Read... [16:21:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:57]Read from MH i2c: E2 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 03 00 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 03 00 A6 64 00 90 00 7E [16:21:57]RAPDU: 90 00 [16:21:57]wFMCommunicate OK [16:21:57]wFMCommunicate request_size=4 [16:21:57]MH_SAM_APDU [16:21:57]CAPDU: 80 0D 03 02 [16:21:57]Write to MH i2c: E2 08 00 A7 64 80 0D 03 02 00 00 00 00 86 [16:21:57]Write i2c OK [16:21:57]MH_I2C_Read... [16:21:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:57]Read from MH i2c: E2 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 0B 00 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 0B 00 A7 64 00 A6 4F F6 F9 D8 52 D4 7A 90 00 E3 [16:21:57]RAPDU: A6 4F F6 F9 D8 52 D4 7A 90 00 [16:21:57]wFMCommunicate OK [16:21:57]SAM_PROTO_SignData done [16:21:57]FM_MakeSignedData done [16:21:57]CreateOFDProtocolMessage [16:21:57]wFMCommunicate request_size=4 [16:21:57]MH_SAM_APDU [16:21:57]CAPDU: 80 11 00 00 [16:21:57]Write to MH i2c: E2 08 00 A8 64 80 11 00 00 00 00 00 00 86 [16:21:57]Write i2c OK [16:21:57]MH_I2C_Read... [16:21:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:57]Read from MH i2c: E2 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 17 00 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: E2 17 00 A8 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E1 [16:21:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:21:57]wFMCommunicate OK [16:21:57]CreateOFDProtocolMessage done [16:21:57]OFDSenderStorePacket 118827 [16:21:57]StoreOFDPacket docnum=118827 [16:21:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CB 5A 07 01 88 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 A9 C1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B D0 01 00 35 04 06 00 72 D1 FB C7 44 78 A6 4F F6 F9 D8 52 D4 7A [16:21:57]CheckFolder [16:21:57]dirname=/storage/ofd_packets [16:21:57]CheckFolder done [16:21:57]ProducePacketName [16:21:57]name=ofd_packets/00118827 [16:21:57]NVStorageSaveData ofd_packets/00118827 [16:21:57]File name is /storage/ofd_packets/00118827 [16:21:57]Write 301 bytes [16:21:57]NVStorageSaveData done [16:21:57]OFDSenderStorePacket done [16:21:57]KKMCreateOFDPacket done [16:21:57]NVStorageSaveData kkm_last_timestamp [16:21:57]File name is /storage/kkm_last_timestamp [16:21:57]Write 4 bytes [16:21:57]NVStorageSaveData done [16:21:57]ExternCall_PrintAddStr [16:21:57]wPrintStart [16:21:57]Write to MH i2c: 01 00 00 A9 64 0D [16:21:57]Write i2c OK [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: 01 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: 01 07 00 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: 01 07 00 A9 64 00 00 00 00 00 FF 0F 22 [16:21:57]RasterBufferAndPrint [16:21:57]line Счет N : (1)949717 [16:21:57]line ИНН: 02508201610067 [16:21:57]line Контрольно-Кассовый Чек [16:21:57]line ПРОДАЖА [16:21:57]line ТРК (МРК, ГНК) : 51 [16:21:57]line Товар: 2710124130 [16:21:57]line Аи-92-К-4 [16:21:57]line 7.380 * 67.80 [16:21:57]line = 500.36 [16:21:57]line НДС 12% НСП 1% [16:21:57]line > о реализуемом товаре [16:21:57]line ОКРУГЛЕНИЕ: -0.36 [16:21:57]line ИТОГО: 500.00 [16:21:57]line Внесено: 500.00 [16:21:57]line СДАЧА: 0.00 [16:21:57]line НСП 1% : 4.43 [16:21:57]line НДС 12% : 53.14 [16:21:57]line Наличными: 500.00 [16:21:57]line Безнал.: 0.00 [16:21:57]line Место: АЗС № 134 "Партнер Нефть" [16:21:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:21:57]line СНО: Общий режим [16:21:57]line Чек 203 29.07.2024 16:22 [16:21:57]line Смена: 434 ФФД: 1.0 [16:21:57]line ЗНМ: 0300000044 [16:21:57]line РНМ: 0000000000092660 [16:21:57]line Версия ККМ: 001 [16:21:57]line ФМ: 0000000000874939 [16:21:57]line ФД: 118827 [16:21:57]line ФПД: 126246197871736 [16:21:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T162201&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118827&fm=126246197871736&tin=02508201610067®Number=0000000000092660&sum=50000 [16:21:57]written 0, free lines is 4095 [16:21:57]OFD Sender: Processing packet 118827 [packets to send 86, broken 85] [16:21:57]ProducePacketName [16:21:57]name=ofd_packets/00118827 [16:21:57]OFD Sender: To server: pG, [16:21:57]CommunicateWithHost lk.salyk.kg:30040 [16:21:57]ConnectInit lk.salyk.kg [16:21:57]Connected sock=10 [16:21:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CB 5A 07 01 88 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 A9 C1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B D0 01 00 35 04 06 00 72 D1 FB C7 44 78 A6 4F F6 F9 D8 52 D4 7A [16:21:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2D 4C 47 00 66 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B D0 01 00 F4 03 04 00 37 6F A7 66 B6 04 01 00 00 9F F9 45 BA 19 E9 EC EB [16:21:57]CommunicateWithHost err = 0 [16:21:57]CheckOFDResponse [16:21:57]1017 (14) - 77093643461234 [16:21:57]1041 (16) - 0000000000874939 [16:21:57]1040 (4) - 118827 [16:21:57]1012 (4) - 29.07.2024 10:30 [16:21:57]1206 (1) - 0 [16:21:57]OFD Sender: Remove packet 118827 [16:21:57]ProducePacketName [16:21:57]name=ofd_packets/00118827 [16:21:57]NVStorageDeleteData [16:21:58]Write to MH i2c: 01 00 00 D3 64 37 [16:21:58]Write i2c OK [16:21:58]MH_I2C_Read... [16:21:58]Read from MH i2c: 01 [16:21:58]MH_I2C_Read... [16:21:58]Read from MH i2c: 01 07 00 [16:21:58]MH_I2C_Read... [16:21:58]Read from MH i2c: 01 07 00 D3 64 00 00 00 00 00 E0 0C 2A [16:21:58]RasterBufferAndPrint [16:21:58]line [16:21:58]line [16:21:58]line [16:21:58]line [16:21:58]line [16:21:58]written 0, free lines is 3305 [16:21:58]MH_Cut [16:21:58]Write to MH i2c: D1 01 00 DA 64 01 10 [16:21:58]Write i2c OK [16:21:58]MH_I2C_Read... [16:21:58]Read from MH i2c: D1 [16:21:58]MH_I2C_Read... [16:21:58]Read from MH i2c: D1 01 00 [16:21:58]MH_I2C_Read... [16:21:58]Read from MH i2c: D1 01 00 DA 64 00 0F [16:21:58]Write to MH i2c: 01 00 00 DB 64 3F [16:21:58]Write i2c OK [16:21:58]MH_I2C_Read... [16:21:58]OFD Sender: No OFD packet to send [16:21:58]*** Cut start [16:21:58]*** Partial cut [16:21:58]*** CUTSNS_PIN = 1 [16:21:58]*** CUTSNS_PIN = 0 [16:21:59]*** Brake cut motor [16:21:59]Read from MH i2c: 01 [16:21:59]MH_I2C_Read... [16:21:59]*** Stop cut motor [16:21:59]*** Cut end [16:21:59]Read from MH i2c: 01 07 00 [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: 01 07 00 DB 64 00 00 00 00 00 FF 0F 54 [16:21:59]process_action close_receipt done [16:21:59]requested_data is exist [16:21:59]produce_requested_data [16:21:59]requested_item fm.sn is exist - process it [16:21:59]wFMCommunicate request_size=4 [16:21:59]MH_SAM_APDU [16:21:59]CAPDU: 80 11 00 00 [16:21:59]Write to MH i2c: E2 08 00 DC 64 80 11 00 00 00 00 00 00 BA [16:21:59]Write i2c OK [16:21:59]MH_I2C_Read... [16:21:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:59]Read from MH i2c: E2 [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: E2 17 00 [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: E2 17 00 DC 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 15 [16:21:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:21:59]wFMCommunicate OK [16:21:59]requested_item fd.num is exist - process it [16:21:59]SAM_PROTO_GetFieldsCounters [16:21:59]wFMCommunicate request_size=4 [16:21:59]MH_SAM_APDU [16:21:59]CAPDU: 80 13 00 00 [16:21:59]Write to MH i2c: E2 08 00 DD 64 80 13 00 00 00 00 00 00 BD [16:21:59]Write i2c OK [16:21:59]MH_I2C_Read... [16:21:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:59]Read from MH i2c: E2 [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: E2 62 00 [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: E2 62 00 DD 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2B D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [16:21: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2B D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:59]wFMCommunicate OK [16:21:59]SAM_PROTO_GetFieldsCounters done [16:21:59]requested_item shift.num is exist - process it [16:21:59]requested_item shift.opened is exist - process it [16:21:59]req_shift_opened [16:21:59]FM_GetShiftState [16:21:59]SAM_PROTO_GetShiftState [16:21:59]wFMCommunicate request_size=4 [16:21:59]MH_SAM_APDU [16:21:59]CAPDU: 80 13 01 00 [16:21:59]Write to MH i2c: E2 08 00 DE 64 80 13 01 00 00 00 00 00 BF [16:21:59]Write i2c OK [16:21:59]MH_I2C_Read... [16:21:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:59]Read from MH i2c: E2 [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: E2 0E 00 [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: E2 0E 00 DE 64 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 ED [16:21:59]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:21:59]wFMCommunicate OK [16:21:59]SAM_PROTO_GetShiftState done [16:21:59]FM_GetShiftState done [16:21:59]req_shift_opened done [16:21:59]requested_item shift.open_date is exist - process it [16:21:59]req_shift_open_date [16:21:59]req_shift_open_date done [16:21:59]produce_requested_data done [16:21:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118827,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:21:59]process_action_free close_receipt [16:21:59]json_value_free [16:21:59]json_value_free done [16:21:59]process_json_proto returns [16:21:59]Send response to host [16:21:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118827,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:21:59]free response buf [16:21:59]execute_script done [16:21:59]execute_script returns [16:21:59]free content buf [16:21:59]Sock 9.Close socket [16:21:59]Sock 9.Thread stoped [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:19]accept exits with 7 [16:22:19]New connection [16:22:19]New thread 3067239780 created [16:22:19]Thread 3067383140 joined [16:22:19]Waiting for new connection... [16:22:19] Sock 7.Parse request [16:22:19]Sock 7.Check first char [16:22:19]Sock 7.First char is OK [16:22:19]request: POST /json_proto HTTP/1.0 [16:22:19]Method: POST [16:22:19]URL: /json_proto [16:22:19]Method is POST - this is cgi request [16:22:19]url: /json_proto [16:22:19]query_string will be loaded in cgi processing [16:22:19]execute_cgi json_proto POST (null) [16:22:19]execute_cgi path=json_proto method=POST [16:22:19]POST find Content-Length [16:22:19]Host: 172.17.45.7:8080 [16:22:19]Content-Length: 682 [16:22:19]Content-Type: application/json [16:22:19] [16:22:19]POST finish read [16:22:19]Found Content-Length = 682 [16:22:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 21.170, "sum" : 1435.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1435.00, "total" : 1435.00, "payments": [ { "type": 0, "sum" : 1435.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:19]execute_script... [16:22:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 21.170, "sum" : 1435.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1435.00, "total" : 1435.00, "payments": [ { "type": 0, "sum" : 1435.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:19]POST & json_proto [16:22:19]process_json_proto [16:22:19]json parsed OK: [16:22:19]protocol is kg_v1.0 [16:22:19]action value=close_receipt [16:22:19]process_action close_receipt [16:22:19]cmd_close_receipt [16:22:19]MH_GetDate [16:22:19]Write to MH i2c: F0 00 00 DF 64 32 [16:22:19]Write i2c OK [16:22:19]MH_I2C_Read... [16:22:19]Read from MH i2c: F0 [16:22:19]MH_I2C_Read... [16:22:19]Read from MH i2c: F0 09 00 [16:22:19]MH_I2C_Read... [16:22:19]Read from MH i2c: F0 09 00 DF 64 00 C1 C1 A7 66 90 0F 3E 66 0D [16:22:19]GetLastDocTimeStamp 1722270121 [16:22:19]current date 1722270145 [16:22:19]FM_GetShiftState [16:22:19]SAM_PROTO_GetShiftState [16:22:19]wFMCommunicate request_size=4 [16:22:19]MH_SAM_APDU [16:22:19]CAPDU: 80 13 01 00 [16:22:19]Write to MH i2c: E2 08 00 E0 64 80 13 01 00 00 00 00 00 C1 [16:22:19]Write i2c OK [16:22:19]MH_I2C_Read... [16:22:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:19]Read from MH i2c: E2 [16:22:19]MH_I2C_Read... [16:22:19]Read from MH i2c: E2 0E 00 [16:22:19]MH_I2C_Read... [16:22:19]Read from MH i2c: E2 0E 00 E0 64 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 EF [16:22:19]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:22:19]wFMCommunicate OK [16:22:19]SAM_PROTO_GetShiftState done [16:22:19]FM_GetShiftState done [16:22:19]opened in 1722211641 [16:22:19]opened+sec_in_day 1722298041 [16:22:19]quantity*price = 143532 [16:22:19]sum+1 = 143534 [16:22:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1435.00 Внесено: 1435.00 СДАЧА: 0.00 НСП 1% : 12.70 НДС 12% : 152.42 Наличными: 1435.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 204 29.07.2024 16:22 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118828 ФПД: 262847717700187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T162225&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118828&fm=262847717700187&tin=02508201610067®Number=0000000000092660&sum=143500 [16:22:20]StoreToDocumentArchive [16:22:20]shift 434 fd 118828 [16:22:20]save to /storage/0434/doc_00118828 [16:22:20]save last doc name /storage/0434/doc_00118828 to /storage/kkm_last_doc_name [16:22:20]save OK [16:22:20]Clear old archive folders... [16:22:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:20]tlvbuf is 01EC0550 [16:22:20]SAM_PROTO_ClearQueue [16:22:20]wFMCommunicate request_size=4 [16:22:20]MH_SAM_APDU [16:22:20]CAPDU: 80 09 00 00 [16:22:20]Write to MH i2c: E2 08 00 ED 64 80 09 00 00 00 00 00 00 C3 [16:22:20]Write i2c OK [16:22:20]MH_I2C_Read... [16:22:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:20]Read from MH i2c: E2 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 03 00 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 03 00 ED 64 00 90 00 C5 [16:22:20]RAPDU: 90 00 [16:22:20]wFMCommunicate OK [16:22:20]SAM_PROTO_ClearQueue done [16:22:20]KKMCreateOFDPacket [16:22:20]OFDProtocolAddRootSTLVToBuf [16:22:20]FM_MakeSignedData [16:22:20]FM_MakeSignedData [16:22:20]SAM_PROTO_SignData [16:22:20]wFMCommunicate request_size=4 [16:22:20]MH_SAM_APDU [16:22:20]CAPDU: 80 0D 01 02 [16:22:20]Write to MH i2c: E2 08 00 EE 64 80 0D 01 02 00 00 00 00 CB [16:22:20]Write i2c OK [16:22:20]MH_I2C_Read... [16:22:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:20]Read from MH i2c: E2 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 03 00 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 03 00 EE 64 00 90 00 C6 [16:22:20]RAPDU: 90 00 [16:22:20]wFMCommunicate OK [16:22:20]wFMCommunicate request_size=255 [16:22:20]MH_SAM_APDU [16:22:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B2 52 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 AD 30 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 30 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 3B 00 00 00 00 07 04 06 00 8C 30 02 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 C1 C1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C D0 01 00 35 04 06 00 EF [16:22:20]Write to MH i2c: E2 02 01 EF 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B2 52 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 AD 30 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 30 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 3B 00 00 00 00 07 04 06 00 8C 30 02 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 C1 C1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C D0 01 00 35 04 06 00 EF 00 00 88 [16:22:20]Write i2c OK [16:22:20]MH_I2C_Read... [16:22:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:21]Read from MH i2c: E2 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: E2 03 00 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: E2 03 00 EF 64 00 90 00 C7 [16:22:21]RAPDU: 90 00 [16:22:21]wFMCommunicate OK [16:22:21]wFMCommunicate request_size=10 [16:22:21]MH_SAM_APDU [16:22:21]CAPDU: 80 0D 02 02 05 0F 00 D7 F2 5B [16:22:21]Write to MH i2c: E2 0D 00 F0 64 80 0D 02 02 05 00 0F 00 D7 F2 5B 00 00 0B [16:22:21]Write i2c OK [16:22:21]MH_I2C_Read... [16:22:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:21]Read from MH i2c: E2 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: E2 03 00 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: E2 03 00 F0 64 00 90 00 C8 [16:22:21]RAPDU: 90 00 [16:22:21]wFMCommunicate OK [16:22:21]wFMCommunicate request_size=4 [16:22:21]MH_SAM_APDU [16:22:21]CAPDU: 80 0D 03 02 [16:22:21]Write to MH i2c: E2 08 00 F1 64 80 0D 03 02 00 00 00 00 D0 [16:22:21]Write i2c OK [16:22:21]MH_I2C_Read... [16:22:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:21]Read from MH i2c: E2 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: E2 0B 00 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: E2 0B 00 F1 64 00 3E D2 C7 CB 55 C2 6F DF 90 00 D8 [16:22:21]RAPDU: 3E D2 C7 CB 55 C2 6F DF 90 00 [16:22:21]wFMCommunicate OK [16:22:21]SAM_PROTO_SignData done [16:22:21]FM_MakeSignedData done [16:22:21]CreateOFDProtocolMessage [16:22:21]wFMCommunicate request_size=4 [16:22:21]MH_SAM_APDU [16:22:21]CAPDU: 80 11 00 00 [16:22:21]Write to MH i2c: E2 08 00 F2 64 80 11 00 00 00 00 00 00 D0 [16:22:21]Write i2c OK [16:22:21]MH_I2C_Read... [16:22:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:21]Read from MH i2c: E2 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: E2 17 00 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: E2 17 00 F2 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2B [16:22:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:22:21]wFMCommunicate OK [16:22:21]CreateOFDProtocolMessage done [16:22:21]OFDSenderStorePacket 118828 [16:22:21]StoreOFDPacket docnum=118828 [16:22:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9F 76 07 01 21 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 B2 52 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 AD 30 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 30 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 3B 00 00 00 00 07 04 06 00 8C 30 02 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 C1 C1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C D0 01 00 35 04 06 00 EF 0F 00 D7 F2 5B 3E D2 C7 CB 55 C2 6F DF [16:22:21]CheckFolder [16:22:21]dirname=/storage/ofd_packets [16:22:21]CheckFolder done [16:22:21]ProducePacketName [16:22:21]name=ofd_packets/00118828 [16:22:21]NVStorageSaveData ofd_packets/00118828 [16:22:21]File name is /storage/ofd_packets/00118828 [16:22:21]Write 301 bytes [16:22:21]NVStorageSaveData done [16:22:21]OFDSenderStorePacket done [16:22:21]KKMCreateOFDPacket done [16:22:21]NVStorageSaveData kkm_last_timestamp [16:22:21]File name is /storage/kkm_last_timestamp [16:22:21]Write 4 bytes [16:22:21]NVStorageSaveData done [16:22:21]ExternCall_PrintAddStr [16:22:21]wPrintStart [16:22:21]Write to MH i2c: 01 00 00 F3 64 57 [16:22:21]Write i2c OK [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: 01 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: 01 07 00 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: 01 07 00 F3 64 00 00 00 00 00 FF 0F 6C [16:22:21]RasterBufferAndPrint [16:22:21]line Счет N : (1)949718 [16:22:21]line ИНН: 02508201610067 [16:22:21]line Контрольно-Кассовый Чек [16:22:21]line ПРОДАЖА [16:22:21]line ТРК (МРК, ГНК) : 61 [16:22:21]line Товар: 2710124130 [16:22:21]line Аи-92-К-4 [16:22:21]line 21.170 * 67.80 [16:22:21]line = 1435.33 [16:22:21]line НДС 12% НСП 1% [16:22:21]line > о реализуемом товаре [16:22:21]line ОКРУГЛЕНИЕ: -0.33 [16:22:21]line ИТОГО: 1435.00 [16:22:21]line Внесено: 1435.00 [16:22:21]line СДАЧА: 0.00 [16:22:21]line НСП 1% : 12.70 [16:22:21]line НДС 12% : 152.42 [16:22:21]line Наличными: 1435.00 [16:22:21]line Безнал.: 0.00 [16:22:21]line Место: АЗС № 134 "Партнер Нефть" [16:22:21]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:22:21]line СНО: Общий режим [16:22:21]line Чек 204 29.07.2024 16:22 [16:22:21]line Смена: 434 ФФД: 1.0 [16:22:21]line ЗНМ: 0300000044 [16:22:21]line РНМ: 0000000000092660 [16:22:21]line Версия ККМ: 001 [16:22:21]line ФМ: 0000000000874939 [16:22:21]line ФД: 118828 [16:22:21]line ФПД: 262847717700187 [16:22:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T162225&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118828&fm=262847717700187&tin=02508201610067®Number=0000000000092660&sum=143500 [16:22:21]OFD Sender: Processing packet 118828 [packets to send 86, broken 85] [16:22:21]ProducePacketName [16:22:21]name=ofd_packets/00118828 [16:22:21]OFD Sender: To server: pG, [16:22:21]CommunicateWithHost lk.salyk.kg:30040 [16:22:21]ConnectInit lk.salyk.kg [16:22:21]written 0, free lines is 4095 [16:22:22]Write to MH i2c: 01 00 00 1D 65 82 [16:22:22]Write i2c OK [16:22:22]MH_I2C_Read... [16:22:22]Read from MH i2c: 01 [16:22:22]MH_I2C_Read... [16:22:22]Read from MH i2c: 01 07 00 [16:22:22]MH_I2C_Read... [16:22:22]Read from MH i2c: 01 07 00 1D 65 00 00 00 00 00 E3 0C 78 [16:22:22]RasterBufferAndPrint [16:22:22]line [16:22:22]line [16:22:22]line [16:22:22]line [16:22:22]line [16:22:22]written 0, free lines is 3305 [16:22:22]MH_Cut [16:22:22]Write to MH i2c: D1 01 00 24 65 01 5B [16:22:22]Write i2c OK [16:22:22]MH_I2C_Read... [16:22:22]Read from MH i2c: D1 [16:22:22]MH_I2C_Read... [16:22:22]Read from MH i2c: D1 01 00 [16:22:22]MH_I2C_Read... [16:22:22]Read from MH i2c: D1 01 00 24 65 00 5A [16:22:22]Write to MH i2c: 01 00 00 25 65 8A [16:22:22]Write i2c OK [16:22:22]MH_I2C_Read... [16:22:22]*** Cut start [16:22:22]*** Partial cut [16:22:22]*** CUTSNS_PIN = 1 [16:22:22]*** CUTSNS_PIN = 0 [16:22:22]*** Brake cut motor [16:22:23]Read from MH i2c: 01 [16:22:23]MH_I2C_Read... [16:22:23]*** Stop cut motor [16:22:23]*** Cut end [16:22:23]Read from MH i2c: 01 07 00 [16:22:23]MH_I2C_Read... [16:22:23]Read from MH i2c: 01 07 00 25 65 00 00 00 00 00 FF 0F 9F [16:22:23]process_action close_receipt done [16:22:23]requested_data is exist [16:22:23]produce_requested_data [16:22:23]requested_item fm.sn is exist - process it [16:22:23]wFMCommunicate request_size=4 [16:22:23]MH_SAM_APDU [16:22:23]CAPDU: 80 11 00 00 [16:22:23]Write to MH i2c: E2 08 00 26 65 80 11 00 00 00 00 00 00 05 [16:22:23]Write i2c OK [16:22:23]MH_I2C_Read... [16:22:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:23]Read from MH i2c: E2 [16:22:23]MH_I2C_Read... [16:22:23]Read from MH i2c: E2 17 00 [16:22:23]MH_I2C_Read... [16:22:23]Read from MH i2c: E2 17 00 26 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 60 [16:22:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:22:23]wFMCommunicate OK [16:22:23]requested_item fd.num is exist - process it [16:22:23]SAM_PROTO_GetFieldsCounters [16:22:23]wFMCommunicate request_size=4 [16:22:23]MH_SAM_APDU [16:22:23]CAPDU: 80 13 00 00 [16:22:23]Write to MH i2c: E2 08 00 27 65 80 13 00 00 00 00 00 00 08 [16:22:23]Write i2c OK [16:22:23]MH_I2C_Read... [16:22:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:23]Read from MH i2c: E2 [16:22:23]MH_I2C_Read... [16:22:23]Read from MH i2c: E2 62 00 [16:22:23]MH_I2C_Read... [16:22:23]Read from MH i2c: E2 62 00 27 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2C D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [16:22: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2C D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:23]wFMCommunicate OK [16:22:23]SAM_PROTO_GetFieldsCounters done [16:22:23]requested_item shift.num is exist - process it [16:22:23]requested_item shift.opened is exist - process it [16:22:23]req_shift_opened [16:22:23]FM_GetShiftState [16:22:23]SAM_PROTO_GetShiftState [16:22:23]wFMCommunicate request_size=4 [16:22:23]MH_SAM_APDU [16:22:23]CAPDU: 80 13 01 00 [16:22:23]Write to MH i2c: E2 08 00 28 65 80 13 01 00 00 00 00 00 0A [16:22:23]Write i2c OK [16:22:23]MH_I2C_Read... [16:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:23]Read from MH i2c: E2 [16:22:23]MH_I2C_Read... [16:22:23]Read from MH i2c: E2 0E 00 [16:22:23]MH_I2C_Read... [16:22:23]Read from MH i2c: E2 0E 00 28 65 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 38 [16:22:23]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:22:23]wFMCommunicate OK [16:22:23]SAM_PROTO_GetShiftState done [16:22:23]FM_GetShiftState done [16:22:23]req_shift_opened done [16:22:23]requested_item shift.open_date is exist - process it [16:22:23]req_shift_open_date [16:22:23]req_shift_open_date done [16:22:23]produce_requested_data done [16:22:23]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118828,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:22:23]process_action_free close_receipt [16:22:23]json_value_free [16:22:23]json_value_free done [16:22:23]process_json_proto returns [16:22:23]Send response to host [16:22:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118828,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:22:23]free response buf [16:22:23]execute_script done [16:22:23]execute_script returns [16:22:23]free content buf [16:22:23]Sock 7.Close socket [16:22:23]Sock 7.Thread stoped [16:24:29]accept exits with 9 [16:24:29]New connection [16:24:29]New thread 3067383140 created [16:24:29]Thread 3067239780 joined [16:24:29]Waiting for new connection... [16:24:29] Sock 9.Parse request [16:24:29]Sock 9.Check first char [16:24:29]Sock 9.First char is OK [16:24:29]request: POST /json_proto HTTP/1.0 [16:24:29]Method: POST [16:24:29]URL: /json_proto [16:24:29]Method is POST - this is cgi request [16:24:29]url: /json_proto [16:24:29]query_string will be loaded in cgi processing [16:24:29]execute_cgi json_proto POST (null) [16:24:29]execute_cgi path=json_proto method=POST [16:24:29]POST find Content-Length [16:24:29]Host: 172.17.45.7:8080 [16:24:29]Content-Length: 675 [16:24:29]Content-Type: application/json [16:24:29] [16:24:29]POST finish read [16:24:29]Found Content-Length = 675 [16:24:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.290, "sum" : 860.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 860.00, "total" : 860.00, "payments": [ { "type": 0, "sum" : 860.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:29]execute_script... [16: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 : (1)949719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.290, "sum" : 860.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 860.00, "total" : 860.00, "payments": [ { "type": 0, "sum" : 860.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:29]POST & json_proto [16:24:29]process_json_proto [16:24:29]json parsed OK: [16:24:29]protocol is kg_v1.0 [16:24:29]action value=close_receipt [16:24:29]process_action close_receipt [16:24:29]cmd_close_receipt [16:24:29]MH_GetDate [16:24:29]Write to MH i2c: F0 00 00 29 65 7D [16:24:29]Write i2c OK [16:24:29]MH_I2C_Read... [16:24:29]Read from MH i2c: F0 [16:24:29]MH_I2C_Read... [16:24:29]Read from MH i2c: F0 09 00 [16:24:29]MH_I2C_Read... [16:24:29]Read from MH i2c: F0 09 00 29 65 00 43 C2 A7 66 90 0F 3E 66 DB [16:24:29]GetLastDocTimeStamp 1722270145 [16:24:29]current date 1722270275 [16:24:29]FM_GetShiftState [16:24:29]SAM_PROTO_GetShiftState [16:24:29]wFMCommunicate request_size=4 [16:24:29]MH_SAM_APDU [16:24:29]CAPDU: 80 13 01 00 [16:24:29]Write to MH i2c: E2 08 00 2A 65 80 13 01 00 00 00 00 00 0C [16:24:29]Write i2c OK [16:24:29]MH_I2C_Read... [16:24:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:29]Read from MH i2c: E2 [16:24:29]MH_I2C_Read... [16:24:29]Read from MH i2c: E2 0E 00 [16:24:29]MH_I2C_Read... [16:24:29]Read from MH i2c: E2 0E 00 2A 65 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 3A [16:24:29]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:24:29]wFMCommunicate OK [16:24:29]SAM_PROTO_GetShiftState done [16:24:29]FM_GetShiftState done [16:24:29]opened in 1722211641 [16:24:29]opened+sec_in_day 1722298041 [16:24:29]quantity*price = 86029 [16:24:29]sum+1 = 86031 [16:24:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 860.00 Внесено: 860.00 СДАЧА: 0.00 НСП 1% : 7.61 НДС 12% : 91.36 Наличными: 860.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 205 29.07.2024 16:24 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118829 ФПД: 164676841737640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T162435&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118829&fm=164676841737640&tin=02508201610067®Number=0000000000092660&sum=86000 [16:24:30]StoreToDocumentArchive [16:24:30]shift 434 fd 118829 [16:24:30]save to /storage/0434/doc_00118829 [16:24:30]save last doc name /storage/0434/doc_00118829 to /storage/kkm_last_doc_name [16:24:30]save OK [16:24:30]Clear old archive folders... [16:24:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:24:30]tlvbuf is 01ED6530 [16:24:30]SAM_PROTO_ClearQueue [16:24:30]wFMCommunicate request_size=4 [16:24:30]MH_SAM_APDU [16:24:30]CAPDU: 80 09 00 00 [16:24:30]Write to MH i2c: E2 08 00 37 65 80 09 00 00 00 00 00 00 0E [16:24:30]Write i2c OK [16:24:30]MH_I2C_Read... [16:24:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:30]Read from MH i2c: E2 [16:24:30]MH_I2C_Read... [16:24:30]Read from MH i2c: E2 03 00 [16:24:30]MH_I2C_Read... [16:24:30]Read from MH i2c: E2 03 00 37 65 00 90 00 10 [16:24:30]RAPDU: 90 00 [16:24:30]wFMCommunicate OK [16:24:30]SAM_PROTO_ClearQueue done [16:24:30]KKMCreateOFDPacket [16:24:30]OFDProtocolAddRootSTLVToBuf [16:24:30]FM_MakeSignedData [16:24:30]FM_MakeSignedData [16:24:30]SAM_PROTO_SignData [16:24:30]wFMCommunicate request_size=4 [16:24:30]MH_SAM_APDU [16:24:30]CAPDU: 80 0D 01 02 [16:24:30]Write to MH i2c: E2 08 00 38 65 80 0D 01 02 00 00 00 00 16 [16:24:30]Write i2c OK [16:24:30]MH_I2C_Read... [16:24:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:30]Read from MH i2c: E2 [16:24:30]MH_I2C_Read... [16:24:30]Read from MH i2c: E2 03 00 [16:24:30]MH_I2C_Read... [16:24:30]Read from MH i2c: E2 03 00 38 65 00 90 00 11 [16:24:30]RAPDU: 90 00 [16:24:30]wFMCommunicate OK [16:24:30]wFMCommunicate request_size=255 [16:24:30]MH_SAM_APDU [16:24:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 2C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0E 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 23 00 00 00 00 07 04 06 00 F0 4F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 43 C2 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2D D0 01 00 35 04 06 00 95 C5 D0 A7 [16:24:30]Write to MH i2c: E2 02 01 39 65 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 2C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0E 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 23 00 00 00 00 07 04 06 00 F0 4F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 43 C2 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2D D0 01 00 35 04 06 00 95 C5 D0 A7 00 00 B3 [16:24:30]Write i2c OK [16:24:30]MH_I2C_Read... [16:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:30]Read from MH i2c: E2 [16:24:30]MH_I2C_Read... [16:24:30]Read from MH i2c: E2 03 00 [16:24:30]MH_I2C_Read... [16:24:30]Read from MH i2c: E2 03 00 39 65 00 90 00 12 [16:24:30]RAPDU: 90 00 [16:24:30]wFMCommunicate OK [16:24:30]wFMCommunicate request_size=7 [16:24:30]MH_SAM_APDU [16:24:30]CAPDU: 80 0D 02 02 02 8D A8 [16:24:30]Write to MH i2c: E2 0A 00 3A 65 80 0D 02 02 02 00 8D A8 00 00 52 [16:24:30]Write i2c OK [16:24:30]MH_I2C_Read... [16:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:30]Read from MH i2c: E2 [16:24:30]MH_I2C_Read... [16:24:30]Read from MH i2c: E2 03 00 [16:24:30]MH_I2C_Read... [16:24:30]Read from MH i2c: E2 03 00 3A 65 00 90 00 13 [16:24:30]RAPDU: 90 00 [16:24:30]wFMCommunicate OK [16:24:30]wFMCommunicate request_size=4 [16:24:30]MH_SAM_APDU [16:24:30]CAPDU: 80 0D 03 02 [16:24:30]Write to MH i2c: E2 08 00 3B 65 80 0D 03 02 00 00 00 00 1B [16:24:30]Write i2c OK [16:24:30]MH_I2C_Read... [16:24:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:30]Read from MH i2c: E2 [16:24:30]MH_I2C_Read... [16:24:30]Read from MH i2c: E2 0B 00 [16:24:30]MH_I2C_Read... [16:24:30]Read from MH i2c: E2 0B 00 3B 65 00 2C DF 9E FF 54 63 AC 55 90 00 7C [16:24:30]RAPDU: 2C DF 9E FF 54 63 AC 55 90 00 [16:24:30]wFMCommunicate OK [16:24:30]SAM_PROTO_SignData done [16:24:30]FM_MakeSignedData done [16:24:30]CreateOFDProtocolMessage [16:24:30]wFMCommunicate request_size=4 [16:24:30]MH_SAM_APDU [16:24:30]CAPDU: 80 11 00 00 [16:24:30]Write to MH i2c: E2 08 00 3C 65 80 11 00 00 00 00 00 00 1B [16:24:30]Write i2c OK [16:24:30]MH_I2C_Read... [16:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:31]Read from MH i2c: E2 [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: E2 17 00 [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: E2 17 00 3C 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 76 [16:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:24:31]wFMCommunicate OK [16:24:31]CreateOFDProtocolMessage done [16:24:31]OFDSenderStorePacket 118829 [16:24:31]StoreOFDPacket docnum=118829 [16:24:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 4D 4A 04 01 6C 10 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 2C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0E 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 23 00 00 00 00 07 04 06 00 F0 4F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 43 C2 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2D D0 01 00 35 04 06 00 95 C5 D0 A7 8D A8 2C DF 9E FF 54 63 AC 55 [16:24:31]CheckFolder [16:24:31]dirname=/storage/ofd_packets [16:24:31]CheckFolder done [16:24:31]ProducePacketName [16:24:31]name=ofd_packets/00118829 [16:24:31]NVStorageSaveData ofd_packets/00118829 [16:24:31]File name is /storage/ofd_packets/00118829 [16:24:31]Write 298 bytes [16:24:31]NVStorageSaveData done [16:24:31]OFDSenderStorePacket done [16:24:31]KKMCreateOFDPacket done [16:24:31]NVStorageSaveData kkm_last_timestamp [16:24:31]File name is /storage/kkm_last_timestamp [16:24:31]Write 4 bytes [16:24:31]NVStorageSaveData done [16:24:31]ExternCall_PrintAddStr [16:24:31]wPrintStart [16:24:31]Write to MH i2c: 01 00 00 3D 65 A2 [16:24:31]Write i2c OK [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: 01 [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: 01 07 00 [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: 01 07 00 3D 65 00 00 00 00 00 FF 0F B7 [16:24:31]RasterBufferAndPrint [16:24:31]line Счет N : (1)949719 [16:24:31]line ИНН: 02508201610067 [16:24:31]line Контрольно-Кассовый Чек [16:24:31]line ПРОДАЖА [16:24:31]line ТРК (МРК, ГНК) : 44 [16:24:31]line Товар: 2710194800 [16:24:31]line ДТ-К-5 [16:24:31]line 11.290 * 76.20 [16:24:31]line = 860.30 [16:24:31]line НДС 12% НСП 1% [16:24:31]line > о реализуемом товаре [16:24:31]line ОКРУГЛЕНИЕ: -0.30 [16:24:31]line ИТОГО: 860.00 [16:24:31]line Внесено: 860.00 [16:24:31]line СДАЧА: 0.00 [16:24:31]line НСП 1% : 7.61 [16:24:31]line НДС 12% : 91.36 [16:24:31]line Наличными: 860.00 [16:24:31]line Безнал.: 0.00 [16:24:31]line Место: АЗС № 134 "Партнер Нефть" [16:24:31]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:24:31]line СНО: Общий режим [16:24:31]line Чек 205 29.07.2024 16:24 [16:24:31]line Смена: 434 ФФД: 1.0 [16:24:31]line ЗНМ: 0300000044 [16:24:31]line РНМ: 0000000000092660 [16:24:31]line Версия ККМ: 001 [16:24:31]line ФМ: 0000000000874939 [16:24:31]line ФД: 118829 [16:24:31]line ФПД: 164676841737640 [16:24:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T162435&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118829&fm=164676841737640&tin=02508201610067®Number=0000000000092660&sum=86000 [16:24:31]written 0, free lines is 4095 [16:24:31]Write to MH i2c: 01 00 00 67 65 CC [16:24:31]Write i2c OK [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: 01 [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: 01 07 00 [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: 01 07 00 67 65 00 00 00 00 00 E5 0C C4 [16:24:31]RasterBufferAndPrint [16:24:31]line [16:24:31]line [16:24:31]line [16:24:31]line [16:24:31]line [16:24:31]written 0, free lines is 3307 [16:24:31]MH_Cut [16:24:31]Write to MH i2c: D1 01 00 6E 65 01 A5 [16:24:31]Write i2c OK [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: D1 [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: D1 01 00 [16:24:31]MH_I2C_Read... [16:24:31]Read from MH i2c: D1 01 00 6E 65 00 A4 [16:24:31]Write to MH i2c: 01 00 00 6F 65 D4 [16:24:31]Write i2c OK [16:24:31]MH_I2C_Read... [16:24:32]*** Cut start [16:24:32]*** Partial cut [16:24:32]*** CUTSNS_PIN = 1 [16:24:32]*** CUTSNS_PIN = 0 [16:24:32]*** Brake cut motor [16:24:32]Read from MH i2c: 01 [16:24:32]MH_I2C_Read... [16:24:32]*** Stop cut motor [16:24:32]*** Cut end [16:24:32]Read from MH i2c: 01 07 00 [16:24:32]MH_I2C_Read... [16:24:32]Read from MH i2c: 01 07 00 6F 65 00 00 00 00 00 FF 0F E9 [16:24:32]process_action close_receipt done [16:24:32]requested_data is exist [16:24:32]produce_requested_data [16:24:32]requested_item fm.sn is exist - process it [16:24:32]wFMCommunicate request_size=4 [16:24:32]MH_SAM_APDU [16:24:32]CAPDU: 80 11 00 00 [16:24:32]Write to MH i2c: E2 08 00 70 65 80 11 00 00 00 00 00 00 4F [16:24:32]Write i2c OK [16:24:32]MH_I2C_Read... [16:24:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:32]Read from MH i2c: E2 [16:24:32]MH_I2C_Read... [16:24:32]Read from MH i2c: E2 17 00 [16:24:32]MH_I2C_Read... [16:24:32]Read from MH i2c: E2 17 00 70 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AA [16:24:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:24:32]wFMCommunicate OK [16:24:32]requested_item fd.num is exist - process it [16:24:32]SAM_PROTO_GetFieldsCounters [16:24:32]wFMCommunicate request_size=4 [16:24:32]MH_SAM_APDU [16:24:32]CAPDU: 80 13 00 00 [16:24:32]Write to MH i2c: E2 08 00 71 65 80 13 00 00 00 00 00 00 52 [16:24:32]Write i2c OK [16:24:32]MH_I2C_Read... [16:24:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:32]Read from MH i2c: E2 [16:24:32]MH_I2C_Read... [16:24:32]Read from MH i2c: E2 62 00 [16:24:32]MH_I2C_Read... [16:24:32]Read from MH i2c: E2 62 00 71 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2D D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [16:24:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2D D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:32]wFMCommunicate OK [16:24:32]SAM_PROTO_GetFieldsCounters done [16:24:32]requested_item shift.num is exist - process it [16:24:32]requested_item shift.opened is exist - process it [16:24:32]req_shift_opened [16:24:32]FM_GetShiftState [16:24:32]SAM_PROTO_GetShiftState [16:24:32]wFMCommunicate request_size=4 [16:24:32]MH_SAM_APDU [16:24:32]CAPDU: 80 13 01 00 [16:24:32]Write to MH i2c: E2 08 00 72 65 80 13 01 00 00 00 00 00 54 [16:24:32]Write i2c OK [16:24:32]MH_I2C_Read... [16:24:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:33]Read from MH i2c: E2 [16:24:33]MH_I2C_Read... [16:24:33]Read from MH i2c: E2 0E 00 [16:24:33]MH_I2C_Read... [16:24:33]Read from MH i2c: E2 0E 00 72 65 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 82 [16:24:33]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:24:33]wFMCommunicate OK [16:24:33]SAM_PROTO_GetShiftState done [16:24:33]FM_GetShiftState done [16:24:33]req_shift_opened done [16:24:33]requested_item shift.open_date is exist - process it [16:24:33]req_shift_open_date [16:24:33]req_shift_open_date done [16:24:33]produce_requested_data done [16:24:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118829,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:24:33]process_action_free close_receipt [16:24:33]json_value_free [16:24:33]json_value_free done [16:24:33]process_json_proto returns [16:24:33]Send response to host [16:24:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118829,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:24:33]free response buf [16:24:33]execute_script done [16:24:33]execute_script returns [16:24:33]free content buf [16:24:33]Sock 9.Close socket [16:24:33]Sock 9.Thread stoped [16:24:35]ConnectInit Can't connect to host [16:24:35]CommunicateWithHost connect error [16:24:35]CommunicateWithHost err = -1 [16:24:35]OFD Sender: Server communicate error [16:24:35]OFD Sender: Processing packet 118828 [packets to send 87, broken 85] [16:24:35]ProducePacketName [16:24:35]name=ofd_packets/00118828 [16:24:35]OFD Sender: To server: pG, [16:24:35]CommunicateWithHost lk.salyk.kg:30040 [16:24:35]ConnectInit lk.salyk.kg [16:24:35]Connected sock=9 [16:24:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9F 76 07 01 21 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 B2 52 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 AD 30 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 30 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 3B 00 00 00 00 07 04 06 00 8C 30 02 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 C1 C1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C D0 01 00 35 04 06 00 EF 0F 00 D7 F2 5B 3E D2 C7 CB 55 C2 6F DF [16:24:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 43 71 47 00 CC CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C D0 01 00 F4 03 04 00 D5 6F A7 66 B6 04 01 00 00 18 0B A6 0A 8D EE CF AD [16:24:36]CommunicateWithHost err = 0 [16:24:36]CheckOFDResponse [16:24:36]1017 (14) - 77093643461234 [16:24:36]1041 (16) - 0000000000874939 [16:24:36]1040 (4) - 118828 [16:24:36]1012 (4) - 29.07.2024 10:32 [16:24:36]1206 (1) - 0 [16:24:36]OFD Sender: Remove packet 118828 [16:24:36]ProducePacketName [16:24:36]name=ofd_packets/00118828 [16:24:36]NVStorageDeleteData [16:24:36]OFD Sender: Processing packet 118829 [packets to send 86, broken 85] [16:24:36]ProducePacketName [16:24:36]name=ofd_packets/00118829 [16:24:36]OFD Sender: To server: pG, [16:24:36]CommunicateWithHost lk.salyk.kg:30040 [16:24:36]ConnectInit lk.salyk.kg [16:24:36]Connected sock=9 [16: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 34 39 33 39 0C 01 00 00 4D 4A 04 01 6C 10 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 2C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0E 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 23 00 00 00 00 07 04 06 00 F0 4F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 43 C2 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2D D0 01 00 35 04 06 00 95 C5 D0 A7 8D A8 2C DF 9E FF 54 63 AC 55 [16:24:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 48 13 47 00 6C 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2D D0 01 00 F4 03 04 00 D6 6F A7 66 B6 04 01 00 00 32 C8 15 F9 F0 49 35 A1 [16:24:36]CommunicateWithHost err = 0 [16:24:36]CheckOFDResponse [16:24:36]1017 (14) - 77093643461234 [16:24:36]1041 (16) - 0000000000874939 [16:24:36]1040 (4) - 118829 [16:24:36]1012 (4) - 29.07.2024 10:32 [16:24:36]1206 (1) - 0 [16:24:36]OFD Sender: Remove packet 118829 [16:24:36]ProducePacketName [16:24:36]name=ofd_packets/00118829 [16:24:36]NVStorageDeleteData [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:14]accept exits with 7 [16:25:14]New connection [16:25:14]New thread 3067239780 created [16:25:14]Thread 3067383140 joined [16:25:14]Waiting for new connection... [16:25:14] Sock 7.Parse request [16:25:14]Sock 7.Check first char [16:25:14]Sock 7.First char is OK [16:25:14]request: POST /json_proto HTTP/1.0 [16:25:14]Method: POST [16:25:14]URL: /json_proto [16:25:14]Method is POST - this is cgi request [16:25:14]url: /json_proto [16:25:14]query_string will be loaded in cgi processing [16:25:14]execute_cgi json_proto POST (null) [16:25:14]execute_cgi path=json_proto method=POST [16:25:14]POST find Content-Length [16:25:14]Host: 172.17.45.7:8080 [16:25:14]Content-Length: 678 [16:25:14]Content-Type: application/json [16:25:14] [16:25:14]POST finish read [16:25:14]Found Content-Length = 678 [16:25:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:14]execute_script... [16:25:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:14]POST & json_proto [16:25:14]process_json_proto [16:25:14]json parsed OK: [16:25:14]protocol is kg_v1.0 [16:25:14]action value=close_receipt [16:25:14]process_action close_receipt [16:25:14]cmd_close_receipt [16:25:14]MH_GetDate [16:25:14]Write to MH i2c: F0 00 00 73 65 C7 [16:25:14]Write i2c OK [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: F0 [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: F0 09 00 [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: F0 09 00 73 65 00 70 C2 A7 66 90 0F 3E 66 52 [16:25:14]GetLastDocTimeStamp 1722270275 [16:25:14]current date 1722270320 [16:25:14]FM_GetShiftState [16:25:14]SAM_PROTO_GetShiftState [16:25:14]wFMCommunicate request_size=4 [16:25:14]MH_SAM_APDU [16:25:14]CAPDU: 80 13 01 00 [16:25:14]Write to MH i2c: E2 08 00 74 65 80 13 01 00 00 00 00 00 56 [16:25:14]Write i2c OK [16:25:14]MH_I2C_Read... [16:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:14]Read from MH i2c: E2 [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: E2 0E 00 [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: E2 0E 00 74 65 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 84 [16:25:14]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:25:14]wFMCommunicate OK [16:25:14]SAM_PROTO_GetShiftState done [16:25:14]FM_GetShiftState done [16:25:14]opened in 1722211641 [16:25:14]opened+sec_in_day 1722298041 [16:25:14]quantity*price = 70037 [16:25:14]sum+1 = 70038 [16:25:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 206 29.07.2024 16:25 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118830 ФПД: 41573660883121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T162520&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118830&fm=41573660883121&tin=02508201610067®Number=0000000000092660&sum=70000 [16:25:15]StoreToDocumentArchive [16:25:15]shift 434 fd 118830 [16:25:15]save to /storage/0434/doc_00118830 [16:25:15]save last doc name /storage/0434/doc_00118830 to /storage/kkm_last_doc_name [16:25:15]save OK [16:25:15]Clear old archive folders... [16:25:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:15]tlvbuf is 01FF9170 [16:25:15]SAM_PROTO_ClearQueue [16:25:15]wFMCommunicate request_size=4 [16:25:15]MH_SAM_APDU [16:25:15]CAPDU: 80 09 00 00 [16:25:15]Write to MH i2c: E2 08 00 81 65 80 09 00 00 00 00 00 00 58 [16:25:15]Write i2c OK [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 [16:25:15]MH_I2C_Read... [16:25:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:15]Read from MH i2c: E2 03 00 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 03 00 81 65 00 90 00 5A [16:25:15]RAPDU: 90 00 [16:25:15]wFMCommunicate OK [16:25:15]SAM_PROTO_ClearQueue done [16:25:15]KKMCreateOFDPacket [16:25:15]OFDProtocolAddRootSTLVToBuf [16:25:15]FM_MakeSignedData [16:25:15]FM_MakeSignedData [16:25:15]SAM_PROTO_SignData [16:25:15]wFMCommunicate request_size=4 [16:25:15]MH_SAM_APDU [16:25:15]CAPDU: 80 0D 01 02 [16:25:15]Write to MH i2c: E2 08 00 82 65 80 0D 01 02 00 00 00 00 60 [16:25:15]Write i2c OK [16:25:15]MH_I2C_Read... [16:25:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:15]Read from MH i2c: E2 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 03 00 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 03 00 82 65 00 90 00 5B [16:25:15]RAPDU: 90 00 [16:25:15]wFMCommunicate OK [16:25:15]wFMCommunicate request_size=255 [16:25:15]MH_SAM_APDU [16:25:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 70 C2 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E D0 01 00 35 04 06 00 25 [16:25:15]Write to MH i2c: E2 02 01 83 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 70 C2 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E D0 01 00 35 04 06 00 25 00 00 AF [16:25:15]Write i2c OK [16:25:15]MH_I2C_Read... [16:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:15]Read from MH i2c: E2 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: E2 03 00 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: E2 03 00 83 65 00 90 00 5C [16:25:16]RAPDU: 90 00 [16:25:16]wFMCommunicate OK [16:25:16]wFMCommunicate request_size=10 [16:25:16]MH_SAM_APDU [16:25:16]CAPDU: 80 0D 02 02 05 CF 9F 49 F8 B1 [16:25:16]Write to MH i2c: E2 0D 00 84 65 80 0D 02 02 05 00 CF 9F 49 F8 B1 00 00 CD [16:25:16]Write i2c OK [16:25:16]MH_I2C_Read... [16:25:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:16]Read from MH i2c: E2 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: E2 03 00 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: E2 03 00 84 65 00 90 00 5D [16:25:16]RAPDU: 90 00 [16:25:16]wFMCommunicate OK [16:25:16]wFMCommunicate request_size=4 [16:25:16]MH_SAM_APDU [16:25:16]CAPDU: 80 0D 03 02 [16:25:16]Write to MH i2c: E2 08 00 85 65 80 0D 03 02 00 00 00 00 65 [16:25:16]Write i2c OK [16:25:16]MH_I2C_Read... [16:25:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:16]Read from MH i2c: E2 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: E2 0B 00 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: E2 0B 00 85 65 00 AD 57 09 87 E5 42 45 85 90 00 EB [16:25:16]RAPDU: AD 57 09 87 E5 42 45 85 90 00 [16:25:16]wFMCommunicate OK [16:25:16]SAM_PROTO_SignData done [16:25:16]FM_MakeSignedData done [16:25:16]CreateOFDProtocolMessage [16:25:16]wFMCommunicate request_size=4 [16:25:16]MH_SAM_APDU [16:25:16]CAPDU: 80 11 00 00 [16:25:16]Write to MH i2c: E2 08 00 86 65 80 11 00 00 00 00 00 00 65 [16:25:16]Write i2c OK [16:25:16]MH_I2C_Read... [16:25:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:16]Read from MH i2c: E2 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: E2 17 00 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: E2 17 00 86 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C0 [16:25:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:25:16]wFMCommunicate OK [16:25:16]CreateOFDProtocolMessage done [16:25:16]OFDSenderStorePacket 118830 [16:25:16]StoreOFDPacket docnum=118830 [16:25:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DC 2D 07 01 55 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 70 C2 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E D0 01 00 35 04 06 00 25 CF 9F 49 F8 B1 AD 57 09 87 E5 42 45 85 [16:25:16]CheckFolder [16:25:16]dirname=/storage/ofd_packets [16:25:16]CheckFolder done [16:25:16]ProducePacketName [16:25:16]name=ofd_packets/00118830 [16:25:16]NVStorageSaveData ofd_packets/00118830 [16:25:16]File name is /storage/ofd_packets/00118830 [16:25:16]Write 301 bytes [16:25:16]NVStorageSaveData done [16:25:16]OFDSenderStorePacket done [16:25:16]KKMCreateOFDPacket done [16:25:16]NVStorageSaveData kkm_last_timestamp [16:25:16]File name is /storage/kkm_last_timestamp [16:25:16]Write 4 bytes [16:25:16]NVStorageSaveData done [16:25:16]ExternCall_PrintAddStr [16:25:16]wPrintStart [16:25:16]Write to MH i2c: 01 00 00 87 65 EC [16:25:16]Write i2c OK [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: 01 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: 01 07 00 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: 01 07 00 87 65 00 00 00 00 00 FF 0F 01 [16:25:16]RasterBufferAndPrint [16:25:16]line Счет N : (1)949720 [16:25:16]line ИНН: 02508201610067 [16:25:16]line Контрольно-Кассовый Чек [16:25:16]line ПРОДАЖА [16:25:16]line ТРК (МРК, ГНК) : 51 [16:25:16]line Товар: 2710124130 [16:25:16]line Аи-92-К-4 [16:25:16]line 10.330 * 67.80 [16:25:16]line = 700.37 [16:25:16]line НДС 12% НСП 1% [16:25:16]line > о реализуемом товаре [16:25:16]line ОКРУГЛЕНИЕ: -0.37 [16:25:16]line ИТОГО: 700.00 [16:25:16]line Внесено: 700.00 [16:25:16]line СДАЧА: 0.00 [16:25:16]line НСП 1% : 6.20 [16:25:16]line НДС 12% : 74.38 [16:25:16]line Наличными: 700.00 [16:25:16]line Безнал.: 0.00 [16:25:16]line Место: АЗС № 134 "Партнер Нефть" [16:25:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:25:16]line СНО: Общий режим [16:25:16]line Чек 206 29.07.2024 16:25 [16:25:16]line Смена: 434 ФФД: 1.0 [16:25:16]line ЗНМ: 0300000044 [16:25:16]line РНМ: 0000000000092660 [16:25:16]line Версия ККМ: 001 [16:25:16]line ФМ: 0000000000874939 [16:25:16]line ФД: 118830 [16:25:16]line ФПД: 41573660883121 [16:25:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T162520&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118830&fm=41573660883121&tin=02508201610067®Number=0000000000092660&sum=70000 [16:25:16]written 0, free lines is 4095 [16:25:16]OFD Sender: Processing packet 118830 [packets to send 86, broken 85] [16:25:16]ProducePacketName [16:25:16]name=ofd_packets/00118830 [16:25:16]OFD Sender: To server: pG, [16:25:16]CommunicateWithHost lk.salyk.kg:30040 [16:25:16]ConnectInit lk.salyk.kg [16:25:16]Connected sock=10 [16:25:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DC 2D 07 01 55 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 70 C2 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E D0 01 00 35 04 06 00 25 CF 9F 49 F8 B1 AD 57 09 87 E5 42 45 85 [16:25:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 74 F2 47 00 4E 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E D0 01 00 F4 03 04 00 FD 6F A7 66 B6 04 01 00 00 8F B2 52 E2 6C AD DA 56 [16:25:16]CommunicateWithHost err = 0 [16:25:16]CheckOFDResponse [16:25:16]1017 (14) - 77093643461234 [16:25:16]1041 (16) - 0000000000874939 [16:25:16]1040 (4) - 118830 [16:25:16]1012 (4) - 29.07.2024 10:33 [16:25:16]1206 (1) - 0 [16:25:16]OFD Sender: Remove packet 118830 [16:25:16]ProducePacketName [16:25:16]name=ofd_packets/00118830 [16:25:16]NVStorageDeleteData [16:25:16]Write to MH i2c: 01 00 00 B1 65 16 [16:25:16]Write i2c OK [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: 01 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: 01 07 00 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: 01 07 00 B1 65 00 00 00 00 00 F2 0C 1B [16:25:16]RasterBufferAndPrint [16:25:16]line [16:25:16]line [16:25:16]line [16:25:16]line [16:25:16]line [16:25:16]written 0, free lines is 3322 [16:25:16]MH_Cut [16:25:16]Write to MH i2c: D1 01 00 B8 65 01 EF [16:25:16]Write i2c OK [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: D1 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: D1 01 00 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: D1 01 00 B8 65 00 EE [16:25:16]Write to MH i2c: 01 00 00 B9 65 1E [16:25:16]Write i2c OK [16:25:16]MH_I2C_Read... [16:25:16]OFD Sender: No OFD packet to send [16:25:17]*** Cut start [16:25:17]*** Partial cut [16:25:17]*** CUTSNS_PIN = 1 [16:25:17]*** CUTSNS_PIN = 0 [16:25:17]*** Brake cut motor [16:25:17]Read from MH i2c: 01 [16:25:17]MH_I2C_Read... [16:25:17]*** Stop cut motor [16:25:17]*** Cut end [16:25:17]Read from MH i2c: 01 07 00 [16:25:17]MH_I2C_Read... [16:25:17]Read from MH i2c: 01 07 00 B9 65 00 00 00 00 00 FF 0F 33 [16:25:17]process_action close_receipt done [16:25:17]requested_data is exist [16:25:17]produce_requested_data [16:25:17]requested_item fm.sn is exist - process it [16:25:17]wFMCommunicate request_size=4 [16:25:17]MH_SAM_APDU [16:25:17]CAPDU: 80 11 00 00 [16:25:17]Write to MH i2c: E2 08 00 BA 65 80 11 00 00 00 00 00 00 99 [16:25:17]Write i2c OK [16:25:17]MH_I2C_Read... [16:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:18]Read from MH i2c: E2 [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: E2 17 00 [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: E2 17 00 BA 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F4 [16:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:25:18]wFMCommunicate OK [16:25:18]requested_item fd.num is exist - process it [16:25:18]SAM_PROTO_GetFieldsCounters [16:25:18]wFMCommunicate request_size=4 [16:25:18]MH_SAM_APDU [16:25:18]CAPDU: 80 13 00 00 [16:25:18]Write to MH i2c: E2 08 00 BB 65 80 13 00 00 00 00 00 00 9C [16:25:18]Write i2c OK [16:25:18]MH_I2C_Read... [16:25:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:18]Read from MH i2c: E2 [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: E2 62 00 [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: E2 62 00 BB 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2E D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [16:25: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2E D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:18]wFMCommunicate OK [16:25:18]SAM_PROTO_GetFieldsCounters done [16:25:18]requested_item shift.num is exist - process it [16:25:18]requested_item shift.opened is exist - process it [16:25:18]req_shift_opened [16:25:18]FM_GetShiftState [16:25:18]SAM_PROTO_GetShiftState [16:25:18]wFMCommunicate request_size=4 [16:25:18]MH_SAM_APDU [16:25:18]CAPDU: 80 13 01 00 [16:25:18]Write to MH i2c: E2 08 00 BC 65 80 13 01 00 00 00 00 00 9E [16:25:18]Write i2c OK [16:25:18]MH_I2C_Read... [16:25:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:18]Read from MH i2c: E2 [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: E2 0E 00 [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: E2 0E 00 BC 65 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 CC [16:25:18]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:25:18]wFMCommunicate OK [16:25:18]SAM_PROTO_GetShiftState done [16:25:18]FM_GetShiftState done [16:25:18]req_shift_opened done [16:25:18]requested_item shift.open_date is exist - process it [16:25:18]req_shift_open_date [16:25:18]req_shift_open_date done [16:25:18]produce_requested_data done [16:25:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118830,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:25:18]process_action_free close_receipt [16:25:18]json_value_free [16:25:18]json_value_free done [16:25:18]process_json_proto returns [16:25:18]Send response to host [16:25:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118830,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:25:18]free response buf [16:25:18]execute_script done [16:25:18]execute_script returns [16:25:18]free content buf [16:25:18]Sock 7.Close socket [16:25:18]Sock 7.Thread stoped [16:25:21]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:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:05]accept exits with 9 [16:30:05]New connection [16:30:05]New thread 3067383140 created [16:30:05]Thread 3067239780 joined [16:30:05]Waiting for new connection... [16:30:05] Sock 9.Parse request [16:30:05]Sock 9.Check first char [16:30:05]Sock 9.First char is OK [16:30:05]request: POST /json_proto HTTP/1.0 [16:30:05]Method: POST [16:30:05]URL: /json_proto [16:30:05]Method is POST - this is cgi request [16:30:05]url: /json_proto [16:30:05]query_string will be loaded in cgi processing [16:30:05]execute_cgi json_proto POST (null) [16:30:05]execute_cgi path=json_proto method=POST [16:30:05]POST find Content-Length [16:30:05]Host: 172.17.45.7:8080 [16:30:05]Content-Length: 674 [16:30:05]Content-Type: application/json [16:30:05] [16:30:05]POST finish read [16:30:05]Found Content-Length = 674 [16:30:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:05]execute_script... [16:30: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)949721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:05]POST & json_proto [16:30:05]process_json_proto [16:30:05]json parsed OK: [16:30:05]protocol is kg_v1.0 [16:30:05]action value=close_receipt [16:30:05]process_action close_receipt [16:30:05]cmd_close_receipt [16:30:05]MH_GetDate [16:30:05]Write to MH i2c: F0 00 00 BD 65 11 [16:30:05]Write i2c OK [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: F0 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: F0 09 00 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: F0 09 00 BD 65 00 94 C3 A7 66 90 0F 3E 66 C1 [16:30:05]GetLastDocTimeStamp 1722270320 [16:30:05]current date 1722270612 [16:30:05]FM_GetShiftState [16:30:05]SAM_PROTO_GetShiftState [16:30:05]wFMCommunicate request_size=4 [16:30:05]MH_SAM_APDU [16:30:05]CAPDU: 80 13 01 00 [16:30:05]Write to MH i2c: E2 08 00 BE 65 80 13 01 00 00 00 00 00 A0 [16:30:05]Write i2c OK [16:30:05]MH_I2C_Read... [16:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:05]Read from MH i2c: E2 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: E2 0E 00 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: E2 0E 00 BE 65 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 CE [16:30:05]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:30:05]wFMCommunicate OK [16:30:05]SAM_PROTO_GetShiftState done [16:30:05]FM_GetShiftState done [16:30:05]opened in 1722211641 [16:30:05]opened+sec_in_day 1722298041 [16:30:05]quantity*price = 60045 [16:30:05]sum+1 = 60047 [16:30:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 207 29.07.2024 16:30 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118831 ФПД: 38949899562249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163012&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118831&fm=38949899562249&tin=02508201610067®Number=0000000000092660&sum=60000 [16:30:06]StoreToDocumentArchive [16:30:06]shift 434 fd 118831 [16:30:06]save to /storage/0434/doc_00118831 [16:30:06]save last doc name /storage/0434/doc_00118831 to /storage/kkm_last_doc_name [16:30:06]save OK [16:30:06]Clear old archive folders... [16:30:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:30:06]tlvbuf is 01E542E0 [16:30:06]SAM_PROTO_ClearQueue [16:30:06]wFMCommunicate request_size=4 [16:30:06]MH_SAM_APDU [16:30:06]CAPDU: 80 09 00 00 [16:30:06]Write to MH i2c: E2 08 00 CB 65 80 09 00 00 00 00 00 00 A2 [16:30:06]Write i2c OK [16:30:06]MH_I2C_Read... [16:30:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:06]Read from MH i2c: E2 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: E2 03 00 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: E2 03 00 CB 65 00 90 00 A4 [16:30:06]RAPDU: 90 00 [16:30:06]wFMCommunicate OK [16:30:06]SAM_PROTO_ClearQueue done [16:30:06]KKMCreateOFDPacket [16:30:06]OFDProtocolAddRootSTLVToBuf [16:30:06]FM_MakeSignedData [16:30:06]FM_MakeSignedData [16:30:06]SAM_PROTO_SignData [16:30:06]wFMCommunicate request_size=4 [16:30:06]MH_SAM_APDU [16:30:06]CAPDU: 80 0D 01 02 [16:30:06]Write to MH i2c: E2 08 00 CC 65 80 0D 01 02 00 00 00 00 AA [16:30:06]Write i2c OK [16:30:06]MH_I2C_Read... [16:30:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:06]Read from MH i2c: E2 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: E2 03 00 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: E2 03 00 CC 65 00 90 00 A5 [16:30:06]RAPDU: 90 00 [16:30:06]wFMCommunicate OK [16:30:06]wFMCommunicate request_size=255 [16:30:06]MH_SAM_APDU [16:30:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 94 C3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2F D0 01 00 35 04 06 00 23 6C BA ED [16:30:06]Write to MH i2c: E2 02 01 CD 65 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 94 C3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2F D0 01 00 35 04 06 00 23 6C BA ED 00 00 17 [16:30:06]Write i2c OK [16:30:06]MH_I2C_Read... [16:30:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:07]Read from MH i2c: E2 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 03 00 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 03 00 CD 65 00 90 00 A6 [16:30:07]RAPDU: 90 00 [16:30:07]wFMCommunicate OK [16:30:07]wFMCommunicate request_size=7 [16:30:07]MH_SAM_APDU [16:30:07]CAPDU: 80 0D 02 02 02 6D 09 [16:30:07]Write to MH i2c: E2 0A 00 CE 65 80 0D 02 02 02 00 6D 09 00 00 27 [16:30:07]Write i2c OK [16:30:07]MH_I2C_Read... [16:30:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:07]Read from MH i2c: E2 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 03 00 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 03 00 CE 65 00 90 00 A7 [16:30:07]RAPDU: 90 00 [16:30:07]wFMCommunicate OK [16:30:07]wFMCommunicate request_size=4 [16:30:07]MH_SAM_APDU [16:30:07]CAPDU: 80 0D 03 02 [16:30:07]Write to MH i2c: E2 08 00 CF 65 80 0D 03 02 00 00 00 00 AF [16:30:07]Write i2c OK [16:30:07]MH_I2C_Read... [16:30:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:07]OFD Sender: No OFD packet to send [16:30:07]Read from MH i2c: E2 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 0B 00 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 0B 00 CF 65 00 5E C5 A9 54 E4 48 62 E1 90 00 3F [16:30:07]RAPDU: 5E C5 A9 54 E4 48 62 E1 90 00 [16:30:07]wFMCommunicate OK [16:30:07]SAM_PROTO_SignData done [16:30:07]FM_MakeSignedData done [16:30:07]CreateOFDProtocolMessage [16:30:07]wFMCommunicate request_size=4 [16:30:07]MH_SAM_APDU [16:30:07]CAPDU: 80 11 00 00 [16:30:07]Write to MH i2c: E2 08 00 D0 65 80 11 00 00 00 00 00 00 AF [16:30:07]Write i2c OK [16:30:07]MH_I2C_Read... [16:30:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:07]Read from MH i2c: E2 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 17 00 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 17 00 D0 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0A [16:30:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:30:07]wFMCommunicate OK [16:30:07]CreateOFDProtocolMessage done [16:30:07]OFDSenderStorePacket 118831 [16:30:07]StoreOFDPacket docnum=118831 [16:30:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 27 D3 04 01 B9 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 94 C3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2F D0 01 00 35 04 06 00 23 6C BA ED 6D 09 5E C5 A9 54 E4 48 62 E1 [16:30:07]CheckFolder [16:30:07]dirname=/storage/ofd_packets [16:30:07]CheckFolder done [16:30:07]ProducePacketName [16:30:07]name=ofd_packets/00118831 [16:30:07]NVStorageSaveData ofd_packets/00118831 [16:30:07]File name is /storage/ofd_packets/00118831 [16:30:07]Write 298 bytes [16:30:07]NVStorageSaveData done [16:30:07]OFDSenderStorePacket done [16:30:07]KKMCreateOFDPacket done [16:30:07]NVStorageSaveData kkm_last_timestamp [16:30:07]File name is /storage/kkm_last_timestamp [16:30:07]Write 4 bytes [16:30:07]NVStorageSaveData done [16:30:07]ExternCall_PrintAddStr [16:30:07]wPrintStart [16:30:07]Write to MH i2c: 01 00 00 D1 65 36 [16:30:07]Write i2c OK [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: 01 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: 01 07 00 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: 01 07 00 D1 65 00 00 00 00 00 FF 0F 4B [16:30:07]RasterBufferAndPrint [16:30:07]line Счет N : (1)949721 [16:30:07]line ИНН: 02508201610067 [16:30:07]line Контрольно-Кассовый Чек [16:30:07]line ПРОДАЖА [16:30:07]line ТРК (МРК, ГНК) : 54 [16:30:07]line Товар: 2710194800 [16:30:07]line ДТ-К-5 [16:30:07]line 7.880 * 76.20 [16:30:07]line = 600.46 [16:30:07]line НДС 12% НСП 1% [16:30:07]line > о реализуемом товаре [16:30:07]line ОКРУГЛЕНИЕ: -0.46 [16:30:07]line ИТОГО: 600.00 [16:30:07]line Внесено: 600.00 [16:30:07]line СДАЧА: 0.00 [16:30:07]line НСП 1% : 5.31 [16:30:07]line НДС 12% : 63.77 [16:30:07]line Наличными: 600.00 [16:30:07]line Безнал.: 0.00 [16:30:07]line Место: АЗС № 134 "Партнер Нефть" [16:30:07]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:30:07]line СНО: Общий режим [16:30:07]line Чек 207 29.07.2024 16:30 [16:30:07]line Смена: 434 ФФД: 1.0 [16:30:07]line ЗНМ: 0300000044 [16:30:07]line РНМ: 0000000000092660 [16:30:07]line Версия ККМ: 001 [16:30:07]line ФМ: 0000000000874939 [16:30:07]line ФД: 118831 [16:30:07]line ФПД: 38949899562249 [16:30:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163012&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118831&fm=38949899562249&tin=02508201610067®Number=0000000000092660&sum=60000 [16:30:07]OFD Sender: Processing packet 118831 [packets to send 86, broken 85] [16:30:07]ProducePacketName [16:30:07]name=ofd_packets/00118831 [16:30:07]OFD Sender: To server: pG, [16:30:07]CommunicateWithHost lk.salyk.kg:30040 [16:30:07]ConnectInit lk.salyk.kg [16:30:07]written 0, free lines is 4095 [16:30:07]Connected sock=10 [16:30:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 27 D3 04 01 B9 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 94 C3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2F D0 01 00 35 04 06 00 23 6C BA ED 6D 09 5E C5 A9 54 E4 48 62 E1 [16:30:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0A BA 47 00 D0 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2F D0 01 00 F4 03 04 00 21 71 A7 66 B6 04 01 00 00 9F 0C 0C 3F 87 FB A3 AF [16:30:08]CommunicateWithHost err = 0 [16:30:08]CheckOFDResponse [16:30:08]1017 (14) - 77093643461234 [16:30:08]1041 (16) - 0000000000874939 [16:30:08]1040 (4) - 118831 [16:30:08]1012 (4) - 29.07.2024 10:38 [16:30:08]1206 (1) - 0 [16:30:08]OFD Sender: Remove packet 118831 [16:30:08]ProducePacketName [16:30:08]name=ofd_packets/00118831 [16:30:08]NVStorageDeleteData [16:30:08]Write to MH i2c: 01 00 00 FB 65 60 [16:30:08]Write i2c OK [16:30:08]MH_I2C_Read... [16:30:08]Read from MH i2c: 01 [16:30:08]MH_I2C_Read... [16:30:08]Read from MH i2c: 01 07 00 [16:30:08]MH_I2C_Read... [16:30:08]Read from MH i2c: 01 07 00 FB 65 00 00 00 00 00 E0 0C 53 [16:30:08]RasterBufferAndPrint [16:30:08]line [16:30:08]line [16:30:08]line [16:30:08]line [16:30:08]line [16:30:08]written 0, free lines is 3305 [16:30:08]MH_Cut [16:30:08]Write to MH i2c: D1 01 00 02 66 01 3A [16:30:08]Write i2c OK [16:30:08]MH_I2C_Read... [16:30:08]Read from MH i2c: D1 [16:30:08]MH_I2C_Read... [16:30:08]Read from MH i2c: D1 01 00 [16:30:08]MH_I2C_Read... [16:30:08]Read from MH i2c: D1 01 00 02 66 00 39 [16:30:08]Write to MH i2c: 01 00 00 03 66 69 [16:30:08]Write i2c OK [16:30:08]MH_I2C_Read... [16:30:08]OFD Sender: No OFD packet to send [16:30:08]*** Cut start [16:30:08]*** Partial cut [16:30:08]*** CUTSNS_PIN = 1 [16:30:08]*** CUTSNS_PIN = 0 [16:30:09]*** Brake cut motor [16:30:09]Read from MH i2c: 01 [16:30:09]MH_I2C_Read... [16:30:09]*** Stop cut motor [16:30:09]*** Cut end [16:30:09]Read from MH i2c: 01 07 00 [16:30:09]MH_I2C_Read... [16:30:09]Read from MH i2c: 01 07 00 03 66 00 00 00 00 00 FF 0F 7E [16:30:09]process_action close_receipt done [16:30:09]requested_data is exist [16:30:09]produce_requested_data [16:30:09]requested_item fm.sn is exist - process it [16:30:09]wFMCommunicate request_size=4 [16:30:09]MH_SAM_APDU [16:30:09]CAPDU: 80 11 00 00 [16:30:09]Write to MH i2c: E2 08 00 04 66 80 11 00 00 00 00 00 00 E4 [16:30:09]Write i2c OK [16:30:09]MH_I2C_Read... [16:30:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:09]Read from MH i2c: E2 [16:30:09]MH_I2C_Read... [16:30:09]Read from MH i2c: E2 17 00 [16:30:09]MH_I2C_Read... [16:30:09]Read from MH i2c: E2 17 00 04 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3F [16:30:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:30:09]wFMCommunicate OK [16:30:09]requested_item fd.num is exist - process it [16:30:09]SAM_PROTO_GetFieldsCounters [16:30:09]wFMCommunicate request_size=4 [16:30:09]MH_SAM_APDU [16:30:09]CAPDU: 80 13 00 00 [16:30:09]Write to MH i2c: E2 08 00 05 66 80 13 00 00 00 00 00 00 E7 [16:30:09]Write i2c OK [16:30:09]MH_I2C_Read... [16:30:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:09]Read from MH i2c: E2 [16:30:09]MH_I2C_Read... [16:30:09]Read from MH i2c: E2 62 00 [16:30:09]MH_I2C_Read... [16:30:09]Read from MH i2c: E2 62 00 05 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2F D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [16:30: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2F D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:30:09]wFMCommunicate OK [16:30:09]SAM_PROTO_GetFieldsCounters done [16:30:09]requested_item shift.num is exist - process it [16:30:09]requested_item shift.opened is exist - process it [16:30:09]req_shift_opened [16:30:09]FM_GetShiftState [16:30:09]SAM_PROTO_GetShiftState [16:30:09]wFMCommunicate request_size=4 [16:30:09]MH_SAM_APDU [16:30:09]CAPDU: 80 13 01 00 [16:30:09]Write to MH i2c: E2 08 00 06 66 80 13 01 00 00 00 00 00 E9 [16:30:09]Write i2c OK [16:30:09]MH_I2C_Read... [16:30:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:09]Read from MH i2c: E2 [16:30:09]MH_I2C_Read... [16:30:09]Read from MH i2c: E2 0E 00 [16:30:09]MH_I2C_Read... [16:30:09]Read from MH i2c: E2 0E 00 06 66 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 17 [16:30:09]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:30:09]wFMCommunicate OK [16:30:09]SAM_PROTO_GetShiftState done [16:30:09]FM_GetShiftState done [16:30:09]req_shift_opened done [16:30:09]requested_item shift.open_date is exist - process it [16:30:09]req_shift_open_date [16:30:09]req_shift_open_date done [16:30:09]produce_requested_data done [16:30:09]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118831,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:30:09]process_action_free close_receipt [16:30:09]json_value_free [16:30:09]json_value_free done [16:30:09]process_json_proto returns [16:30:09]Send response to host [16:30:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118831,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:30:09]free response buf [16:30:09]execute_script done [16:30:09]execute_script returns [16:30:09]free content buf [16:30:09]Sock 9.Close socket [16:30:09]Sock 9.Thread stoped [16:30:13]OFD Sender: No OFD packet to send [16:30:18]OFD Sender: No OFD packet to send [16:30:23]OFD Sender: No OFD packet to send [16:30:28]OFD Sender: No OFD packet to send [16:30:33]OFD Sender: No OFD packet to send [16:30:38]OFD Sender: No OFD packet to send [16:30:43]OFD Sender: No OFD packet to send [16:30:48]OFD Sender: No OFD packet to send [16:30:53]OFD Sender: No OFD packet to send [16:30:58]OFD Sender: No OFD packet to send [16:31:03]OFD Sender: No OFD packet to send [16:31:08]OFD Sender: No OFD packet to send [16:31:13]OFD Sender: No OFD packet to send [16:31:13]accept exits with 7 [16:31:13]New connection [16:31:13]New thread 3067239780 created [16:31:13]Thread 3067383140 joined [16:31:13]Waiting for new connection... [16:31:13] Sock 7.Parse request [16:31:13]Sock 7.Check first char [16:31:13]Sock 7.First char is OK [16:31:13]request: POST /json_proto HTTP/1.0 [16:31:13]Method: POST [16:31:13]URL: /json_proto [16:31:13]Method is POST - this is cgi request [16:31:13]url: /json_proto [16:31:13]query_string will be loaded in cgi processing [16:31:13]execute_cgi json_proto POST (null) [16:31:13]execute_cgi path=json_proto method=POST [16:31:13]POST find Content-Length [16:31:13]Host: 172.17.45.7:8080 [16:31:13]Content-Length: 679 [16:31:13]Content-Type: application/json [16:31:13] [16:31:13]POST finish read [16:31:13]Found Content-Length = 679 [16:31:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:13]execute_script... [16:31: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)949723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:13]POST & json_proto [16:31:13]process_json_proto [16:31:13]json parsed OK: [16:31:13]protocol is kg_v1.0 [16:31:13]action value=close_receipt [16:31:13]process_action close_receipt [16:31:13]cmd_close_receipt [16:31:13]MH_GetDate [16:31:13]Write to MH i2c: F0 00 00 07 66 5C [16:31:13]Write i2c OK [16:31:13]MH_I2C_Read... [16:31:13]Read from MH i2c: F0 [16:31:13]MH_I2C_Read... [16:31:13]Read from MH i2c: F0 09 00 [16:31:13]MH_I2C_Read... [16:31:13]Read from MH i2c: F0 09 00 07 66 00 D8 C3 A7 66 90 0F 3E 66 50 [16:31:13]GetLastDocTimeStamp 1722270612 [16:31:13]current date 1722270680 [16:31:13]FM_GetShiftState [16:31:13]SAM_PROTO_GetShiftState [16:31:13]wFMCommunicate request_size=4 [16:31:13]MH_SAM_APDU [16:31:13]CAPDU: 80 13 01 00 [16:31:13]Write to MH i2c: E2 08 00 08 66 80 13 01 00 00 00 00 00 EB [16:31:13]Write i2c OK [16:31:13]MH_I2C_Read... [16:31:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:13]Read from MH i2c: E2 [16:31:13]MH_I2C_Read... [16:31:13]Read from MH i2c: E2 0E 00 [16:31:13]MH_I2C_Read... [16:31:13]Read from MH i2c: E2 0E 00 08 66 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 19 [16:31:13]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:31:13]wFMCommunicate OK [16:31:13]SAM_PROTO_GetShiftState done [16:31:13]FM_GetShiftState done [16:31:13]opened in 1722211641 [16:31:13]opened+sec_in_day 1722298041 [16:31:13]quantity*price = 100050 [16:31:13]sum+1 = 100052 [16:31:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 208 29.07.2024 16:31 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118832 ФПД: 12708369861030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163120&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118832&fm=12708369861030&tin=02508201610067®Number=0000000000092660&sum=100000 [16:31:14]StoreToDocumentArchive [16:31:14]shift 434 fd 118832 [16:31:14]save to /storage/0434/doc_00118832 [16:31:14]save last doc name /storage/0434/doc_00118832 to /storage/kkm_last_doc_name [16:31:14]save OK [16:31:14]Clear old archive folders... [16:31:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:31:14]tlvbuf is 01FC9950 [16:31:14]SAM_PROTO_ClearQueue [16:31:14]wFMCommunicate request_size=4 [16:31:14]MH_SAM_APDU [16:31:14]CAPDU: 80 09 00 00 [16:31:14]Write to MH i2c: E2 08 00 15 66 80 09 00 00 00 00 00 00 ED [16:31:14]Write i2c OK [16:31:14]MH_I2C_Read... [16:31:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:15]Read from MH i2c: E2 [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: E2 03 00 [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: E2 03 00 15 66 00 90 00 EF [16:31:15]RAPDU: 90 00 [16:31:15]wFMCommunicate OK [16:31:15]SAM_PROTO_ClearQueue done [16:31:15]KKMCreateOFDPacket [16:31:15]OFDProtocolAddRootSTLVToBuf [16:31:15]FM_MakeSignedData [16:31:15]FM_MakeSignedData [16:31:15]SAM_PROTO_SignData [16:31:15]wFMCommunicate request_size=4 [16:31:15]MH_SAM_APDU [16:31:15]CAPDU: 80 0D 01 02 [16:31:15]Write to MH i2c: E2 08 00 16 66 80 0D 01 02 00 00 00 00 F5 [16:31:15]Write i2c OK [16:31:15]MH_I2C_Read... [16:31:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:15]Read from MH i2c: E2 [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: E2 03 00 [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: E2 03 00 16 66 00 90 00 F0 [16:31:15]RAPDU: 90 00 [16:31:15]wFMCommunicate OK [16:31:15]wFMCommunicate request_size=255 [16:31:15]MH_SAM_APDU [16:31:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 D8 C3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 30 D0 01 00 35 04 06 00 0B 8E E5 DF [16:31:15]Write to MH i2c: E2 02 01 17 66 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 D8 C3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 30 D0 01 00 35 04 06 00 0B 8E E5 DF 00 00 0E [16:31:15]Write i2c OK [16:31:15]MH_I2C_Read... [16:31:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:15]Read from MH i2c: E2 [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: E2 03 00 [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: E2 03 00 17 66 00 90 00 F1 [16:31:15]RAPDU: 90 00 [16:31:15]wFMCommunicate OK [16:31:15]wFMCommunicate request_size=7 [16:31:15]MH_SAM_APDU [16:31:15]CAPDU: 80 0D 02 02 02 09 A6 [16:31:15]Write to MH i2c: E2 0A 00 18 66 80 0D 02 02 02 00 09 A6 00 00 AB [16:31:15]Write i2c OK [16:31:15]MH_I2C_Read... [16:31:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:15]Read from MH i2c: E2 [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: E2 03 00 [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: E2 03 00 18 66 00 90 00 F2 [16:31:15]RAPDU: 90 00 [16:31:15]wFMCommunicate OK [16:31:15]wFMCommunicate request_size=4 [16:31:15]MH_SAM_APDU [16:31:15]CAPDU: 80 0D 03 02 [16:31:15]Write to MH i2c: E2 08 00 19 66 80 0D 03 02 00 00 00 00 FA [16:31:15]Write i2c OK [16:31:15]MH_I2C_Read... [16:31:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:15]Read from MH i2c: E2 [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: E2 0B 00 [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: E2 0B 00 19 66 00 DA E3 CF 17 C3 9A 35 15 90 00 45 [16:31:15]RAPDU: DA E3 CF 17 C3 9A 35 15 90 00 [16:31:15]wFMCommunicate OK [16:31:15]SAM_PROTO_SignData done [16:31:15]FM_MakeSignedData done [16:31:15]CreateOFDProtocolMessage [16:31:15]wFMCommunicate request_size=4 [16:31:15]MH_SAM_APDU [16:31:15]CAPDU: 80 11 00 00 [16:31:15]Write to MH i2c: E2 08 00 1A 66 80 11 00 00 00 00 00 00 FA [16:31:15]Write i2c OK [16:31:15]MH_I2C_Read... [16:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:15]Read from MH i2c: E2 [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: E2 17 00 [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: E2 17 00 1A 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 55 [16:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:31:15]wFMCommunicate OK [16:31:15]CreateOFDProtocolMessage done [16:31:15]OFDSenderStorePacket 118832 [16:31:15]StoreOFDPacket docnum=118832 [16:31:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C9 92 04 01 66 E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 D8 C3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 30 D0 01 00 35 04 06 00 0B 8E E5 DF 09 A6 DA E3 CF 17 C3 9A 35 15 [16:31:15]CheckFolder [16:31:15]dirname=/storage/ofd_packets [16:31:15]CheckFolder done [16:31:15]ProducePacketName [16:31:15]name=ofd_packets/00118832 [16:31:15]NVStorageSaveData ofd_packets/00118832 [16:31:15]File name is /storage/ofd_packets/00118832 [16:31:15]Write 298 bytes [16:31:15]NVStorageSaveData done [16:31:15]OFDSenderStorePacket done [16:31:15]KKMCreateOFDPacket done [16:31:15]NVStorageSaveData kkm_last_timestamp [16:31:15]File name is /storage/kkm_last_timestamp [16:31:15]Write 4 bytes [16:31:15]NVStorageSaveData done [16:31:15]ExternCall_PrintAddStr [16:31:15]wPrintStart [16:31:15]Write to MH i2c: 01 00 00 1B 66 81 [16:31:15]Write i2c OK [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: 01 [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: 01 07 00 [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: 01 07 00 1B 66 00 00 00 00 00 FF 0F 96 [16:31:15]RasterBufferAndPrint [16:31:15]line Счет N : (1)949723 [16:31:15]line ИНН: 02508201610067 [16:31:15]line Контрольно-Кассовый Чек [16:31:15]line ПРОДАЖА [16:31:15]line ТРК (МРК, ГНК) : 21 [16:31:15]line Товар: 2710194800 [16:31:15]line ДТ-К-5 [16:31:15]line 13.130 * 76.20 [16:31:15]line = 1000.51 [16:31:15]line НДС 12% НСП 1% [16:31:15]line > о реализуемом товаре [16:31:15]line ОКРУГЛЕНИЕ: -0.51 [16:31:15]line ИТОГО: 1000.00 [16:31:15]line Внесено: 1000.00 [16:31:15]line СДАЧА: 0.00 [16:31:15]line НСП 1% : 8.85 [16:31:15]line НДС 12% : 106.25 [16:31:15]line Наличными: 1000.00 [16:31:15]line Безнал.: 0.00 [16:31:15]line Место: АЗС № 134 "Партнер Нефть" [16:31:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:31:15]line СНО: Общий режим [16:31:15]line Чек 208 29.07.2024 16:31 [16:31:15]line Смена: 434 ФФД: 1.0 [16:31:15]line ЗНМ: 0300000044 [16:31:15]line РНМ: 0000000000092660 [16:31:15]line Версия ККМ: 001 [16:31:15]line ФМ: 0000000000874939 [16:31:15]line ФД: 118832 [16:31:15]line ФПД: 12708369861030 [16:31:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163120&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118832&fm=12708369861030&tin=02508201610067®Number=0000000000092660&sum=100000 [16:31:15]OFD Sender: Processing packet 118832 [packets to send 86, broken 85] [16:31:15]ProducePacketName [16:31:15]name=ofd_packets/00118832 [16:31:15]OFD Sender: To server: pG, [16:31:15]CommunicateWithHost lk.salyk.kg:30040 [16:31:15]ConnectInit lk.salyk.kg [16:31:15]written 0, free lines is 4095 [16:31:15]Connected sock=10 [16:31:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C9 92 04 01 66 E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 D8 C3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 30 D0 01 00 35 04 06 00 0B 8E E5 DF 09 A6 DA E3 CF 17 C3 9A 35 15 [16:31:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 01 1D 47 00 B9 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 30 D0 01 00 F4 03 04 00 65 71 A7 66 B6 04 01 00 00 A9 92 B3 E3 85 EF 82 0C [16:31:16]CommunicateWithHost err = 0 [16:31:16]CheckOFDResponse [16:31:16]1017 (14) - 77093643461234 [16:31:16]1041 (16) - 0000000000874939 [16:31:16]1040 (4) - 118832 [16:31:16]1012 (4) - 29.07.2024 10:39 [16:31:16]1206 (1) - 0 [16:31:16]OFD Sender: Remove packet 118832 [16:31:16]ProducePacketName [16:31:16]name=ofd_packets/00118832 [16:31:16]NVStorageDeleteData [16:31:16]Write to MH i2c: 01 00 00 45 66 AB [16:31:16]Write i2c OK [16:31:16]MH_I2C_Read... [16:31:16]Read from MH i2c: 01 [16:31:16]MH_I2C_Read... [16:31:16]Read from MH i2c: 01 07 00 [16:31:16]MH_I2C_Read... [16:31:16]Read from MH i2c: 01 07 00 45 66 00 00 00 00 00 EB 0C A9 [16:31:16]RasterBufferAndPrint [16:31:16]line [16:31:16]line [16:31:16]line [16:31:16]line [16:31:16]line [16:31:16]written 0, free lines is 3313 [16:31:16]MH_Cut [16:31:16]Write to MH i2c: D1 01 00 4C 66 01 84 [16:31:16]Write i2c OK [16:31:16]MH_I2C_Read... [16:31:16]Read from MH i2c: D1 [16:31:16]MH_I2C_Read... [16:31:16]Read from MH i2c: D1 01 00 [16:31:16]MH_I2C_Read... [16:31:16]Read from MH i2c: D1 01 00 4C 66 00 83 [16:31:16]Write to MH i2c: 01 00 00 4D 66 B3 [16:31:16]Write i2c OK [16:31:16]MH_I2C_Read... [16:31:16]OFD Sender: No OFD packet to send [16:31:17]*** Cut start [16:31:17]*** Partial cut [16:31:17]*** CUTSNS_PIN = 1 [16:31:17]*** CUTSNS_PIN = 0 [16:31:17]*** Brake cut motor [16:31:17]Read from MH i2c: 01 [16:31:17]MH_I2C_Read... [16:31:17]*** Stop cut motor [16:31:17]*** Cut end [16:31:17]Read from MH i2c: 01 07 00 [16:31:17]MH_I2C_Read... [16:31:17]Read from MH i2c: 01 07 00 4D 66 00 00 00 00 00 FF 0F C8 [16:31:17]process_action close_receipt done [16:31:17]requested_data is exist [16:31:17]produce_requested_data [16:31:17]requested_item fm.sn is exist - process it [16:31:17]wFMCommunicate request_size=4 [16:31:17]MH_SAM_APDU [16:31:17]CAPDU: 80 11 00 00 [16:31:17]Write to MH i2c: E2 08 00 4E 66 80 11 00 00 00 00 00 00 2E [16:31:17]Write i2c OK [16:31:17]MH_I2C_Read... [16:31:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:17]Read from MH i2c: E2 [16:31:17]MH_I2C_Read... [16:31:17]Read from MH i2c: E2 17 00 [16:31:17]MH_I2C_Read... [16:31:17]Read from MH i2c: E2 17 00 4E 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 89 [16:31:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:31:17]wFMCommunicate OK [16:31:17]requested_item fd.num is exist - process it [16:31:17]SAM_PROTO_GetFieldsCounters [16:31:17]wFMCommunicate request_size=4 [16:31:17]MH_SAM_APDU [16:31:17]CAPDU: 80 13 00 00 [16:31:17]Write to MH i2c: E2 08 00 4F 66 80 13 00 00 00 00 00 00 31 [16:31:17]Write i2c OK [16:31:17]MH_I2C_Read... [16:31:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:17]Read from MH i2c: E2 [16:31:17]MH_I2C_Read... [16:31:17]Read from MH i2c: E2 62 00 [16:31:17]MH_I2C_Read... [16:31:17]Read from MH i2c: E2 62 00 4F 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 30 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [16:31: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 30 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:31:17]wFMCommunicate OK [16:31:17]SAM_PROTO_GetFieldsCounters done [16:31:17]requested_item shift.num is exist - process it [16:31:17]requested_item shift.opened is exist - process it [16:31:17]req_shift_opened [16:31:17]FM_GetShiftState [16:31:17]SAM_PROTO_GetShiftState [16:31:17]wFMCommunicate request_size=4 [16:31:17]MH_SAM_APDU [16:31:17]CAPDU: 80 13 01 00 [16:31:17]Write to MH i2c: E2 08 00 50 66 80 13 01 00 00 00 00 00 33 [16:31:17]Write i2c OK [16:31:17]MH_I2C_Read... [16:31:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:17]Read from MH i2c: E2 [16:31:17]MH_I2C_Read... [16:31:17]Read from MH i2c: E2 0E 00 [16:31:17]MH_I2C_Read... [16:31:17]Read from MH i2c: E2 0E 00 50 66 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 61 [16:31:17]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:31:17]wFMCommunicate OK [16:31:17]SAM_PROTO_GetShiftState done [16:31:17]FM_GetShiftState done [16:31:17]req_shift_opened done [16:31:17]requested_item shift.open_date is exist - process it [16:31:17]req_shift_open_date [16:31:17]req_shift_open_date done [16:31:17]produce_requested_data done [16:31:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118832,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:31:17]process_action_free close_receipt [16:31:17]json_value_free [16:31:17]json_value_free done [16:31:17]process_json_proto returns [16:31:17]Send response to host [16:31:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118832,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:31:17]free response buf [16:31:17]execute_script done [16:31:17]execute_script returns [16:31:17]free content buf [16:31:17]Sock 7.Close socket [16:31:17]Sock 7.Thread stoped [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]accept exits with 9 [16:33:01]New connection [16:33:01]New thread 3067383140 created [16:33:01]Thread 3067239780 joined [16:33:01]Waiting for new connection... [16:33:01] Sock 9.Parse request [16:33:01]Sock 9.Check first char [16:33:01]Sock 9.First char is OK [16:33:01]request: POST /json_proto HTTP/1.0 [16:33:01]Method: POST [16:33:01]URL: /json_proto [16:33:01]Method is POST - this is cgi request [16:33:01]url: /json_proto [16:33:01]query_string will be loaded in cgi processing [16:33:01]execute_cgi json_proto POST (null) [16:33:01]execute_cgi path=json_proto method=POST [16:33:01]POST find Content-Length [16:33:01]Host: 172.17.45.7:8080 [16:33:01]Content-Length: 1197 [16:33:01]Content-Type: application/json [16:33:01] [16:33:01]POST finish read [16:33:01]Found Content-Length = 1197 [16:33:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949724\u000A29.07.2024 16:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3588478\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:01]execute_script... [16:33:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949724\u000A29.07.2024 16:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3588478\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:01]POST & json_proto [16:33:01]process_json_proto [16:33:01]json parsed OK: [16:33:01]protocol is kg_v1.0 [16:33:01]action value=print_text [16:33:01]process_action print_text [16:33:01]cmd_print_text [16:33:01]ExternCall_PrintAddStr [16:33:01]wPrintStart [16:33:01]Write to MH i2c: 01 00 00 51 66 B7 [16:33:01]Write i2c OK [16:33:01]MH_I2C_Read... [16:33:01]Read from MH i2c: 01 [16:33:01]MH_I2C_Read... [16:33:01]Read from MH i2c: 01 07 00 [16:33:01]MH_I2C_Read... [16:33:01]Read from MH i2c: 01 07 00 51 66 00 00 00 00 00 FF 0F CC [16:33:01]RasterBufferAndPrint [16:33:01]line *****ТОВАРНЫЙ ЧЕК***** [16:33:01]line АЗС-134 [16:33:01]line Партнер нефть [16:33:01]line 02508201610067 [16:33:01]line Кассир : Казаков Ч. [16:33:01]line Счет N : (1)949724 [16:33:01]line 29.07.2024 16:30 [16:33:01]line ПРОДАЖА [16:33:01]line ТРК (МРК, ГНК): 61 [16:33:01]line Вид ГСМ : 2710124130 [16:33:01]line Аи-92-К-4 [16:33:01]line 20.000 x 67.80 [16:33:01]line ИТОГ: 1356.00 [16:33:01]line Тип оплаты: Талоны: Топливные Талоны [16:33:01]line 3588478 [16:33:01]line ______________________ [16:33:01]line (подпись) [16:33:01]written 0, free lines is 4095 [16:33:01]OFD Sender: No OFD packet to send [16:33:01]Write to MH i2c: 01 00 00 65 66 CB [16:33:01]Write i2c OK [16:33:01]MH_I2C_Read... [16:33:01]Read from MH i2c: 01 [16:33:01]MH_I2C_Read... [16:33:01]Read from MH i2c: 01 07 00 [16:33:01]MH_I2C_Read... [16:33:01]Read from MH i2c: 01 07 00 65 66 00 00 00 00 00 11 0E F1 [16:33:01]RasterBufferAndPrint [16:33:01]line [16:33:01]line [16:33:01]line [16:33:01]line [16:33:01]line [16:33:01]written 0, free lines is 3603 [16:33:01]MH_Cut [16:33:01]Write to MH i2c: D1 01 00 6C 66 01 A4 [16:33:01]Write i2c OK [16:33:01]MH_I2C_Read... [16:33:01]Read from MH i2c: D1 [16:33:01]MH_I2C_Read... [16:33:01]Read from MH i2c: D1 01 00 [16:33:01]MH_I2C_Read... [16:33:01]Read from MH i2c: D1 01 00 6C 66 00 A3 [16:33:01]Write to MH i2c: 01 00 00 6D 66 D3 [16:33:01]Write i2c OK [16:33:01]MH_I2C_Read... [16:33:02]*** Cut start [16:33:02]*** Partial cut [16:33:02]*** CUTSNS_PIN = 1 [16:33:02]*** CUTSNS_PIN = 0 [16:33:02]*** Brake cut motor [16:33:03]Read from MH i2c: 01 [16:33:03]MH_I2C_Read... [16:33:03]*** Stop cut motor [16:33:03]*** Cut end [16:33:03]Read from MH i2c: 01 07 00 [16:33:03]MH_I2C_Read... [16:33:03]Read from MH i2c: 01 07 00 6D 66 00 00 00 00 00 FF 0F E8 [16:33:03]process_action print_text done [16:33:03]requested_data is exist [16:33:03]produce_requested_data [16:33:03]requested_item fm.sn is exist - process it [16:33:03]wFMCommunicate request_size=4 [16:33:03]MH_SAM_APDU [16:33:03]CAPDU: 80 11 00 00 [16:33:03]Write to MH i2c: E2 08 00 6E 66 80 11 00 00 00 00 00 00 4E [16:33:03]Write i2c OK [16:33:03]MH_I2C_Read... [16:33:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:03]Read from MH i2c: E2 [16:33:03]MH_I2C_Read... [16:33:03]Read from MH i2c: E2 17 00 [16:33:03]MH_I2C_Read... [16:33:03]Read from MH i2c: E2 17 00 6E 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A9 [16:33:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:33:03]wFMCommunicate OK [16:33:03]requested_item fd.num is exist - process it [16:33:03]SAM_PROTO_GetFieldsCounters [16:33:03]wFMCommunicate request_size=4 [16:33:03]MH_SAM_APDU [16:33:03]CAPDU: 80 13 00 00 [16:33:03]Write to MH i2c: E2 08 00 6F 66 80 13 00 00 00 00 00 00 51 [16:33:03]Write i2c OK [16:33:03]MH_I2C_Read... [16:33:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:03]Read from MH i2c: E2 [16:33:03]MH_I2C_Read... [16:33:03]Read from MH i2c: E2 62 00 [16:33:03]MH_I2C_Read... [16:33:03]Read from MH i2c: E2 62 00 6F 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 30 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [16:33: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 30 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:03]wFMCommunicate OK [16:33:03]SAM_PROTO_GetFieldsCounters done [16:33:03]requested_item shift.num is exist - process it [16:33:03]requested_item shift.opened is exist - process it [16:33:03]req_shift_opened [16:33:03]FM_GetShiftState [16:33:03]SAM_PROTO_GetShiftState [16:33:03]wFMCommunicate request_size=4 [16:33:03]MH_SAM_APDU [16:33:03]CAPDU: 80 13 01 00 [16:33:03]Write to MH i2c: E2 08 00 70 66 80 13 01 00 00 00 00 00 53 [16:33:03]Write i2c OK [16:33:03]MH_I2C_Read... [16:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:03]Read from MH i2c: E2 [16:33:03]MH_I2C_Read... [16:33:03]Read from MH i2c: E2 0E 00 [16:33:03]MH_I2C_Read... [16:33:03]Read from MH i2c: E2 0E 00 70 66 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 81 [16:33:03]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:33:03]wFMCommunicate OK [16:33:03]SAM_PROTO_GetShiftState done [16:33:03]FM_GetShiftState done [16:33:03]req_shift_opened done [16:33:03]requested_item shift.open_date is exist - process it [16:33:03]req_shift_open_date [16:33:03]req_shift_open_date done [16:33:03]produce_requested_data done [16:33:03]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118832,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:33:03]process_action_free print_text [16:33:03]json_value_free [16:33:03]json_value_free done [16:33:03]process_json_proto returns [16:33:03]Send response to host [16:33:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118832,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:33:03]free response buf [16:33:03]execute_script done [16:33:03]execute_script returns [16:33:03]free content buf [16:33:03]Sock 9.Close socket [16:33:03]Sock 9.Thread stoped [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:50]accept exits with 7 [16:33:50]New connection [16:33:50]New thread 3067239780 created [16:33:50]Thread 3067383140 joined [16:33:50]Waiting for new connection... [16:33:50] Sock 7.Parse request [16:33:50]Sock 7.Check first char [16:33:50]Sock 7.First char is OK [16:33:50]request: POST /json_proto HTTP/1.0 [16:33:50]Method: POST [16:33:50]URL: /json_proto [16:33:50]Method is POST - this is cgi request [16:33:50]url: /json_proto [16:33:50]query_string will be loaded in cgi processing [16:33:50]execute_cgi json_proto POST (null) [16:33:50]execute_cgi path=json_proto method=POST [16:33:50]POST find Content-Length [16:33:50]Host: 172.17.45.7:8080 [16:33:50]Content-Length: 678 [16:33:50]Content-Type: application/json [16:33:50] [16:33:50]POST finish read [16:33:50]Found Content-Length = 678 [16:33:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:50]execute_script... [16:33:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:50]POST & json_proto [16:33:50]process_json_proto [16:33:50]json parsed OK: [16:33:50]protocol is kg_v1.0 [16:33:50]action value=close_receipt [16:33:50]process_action close_receipt [16:33:50]cmd_close_receipt [16:33:50]MH_GetDate [16:33:50]Write to MH i2c: F0 00 00 71 66 C6 [16:33:50]Write i2c OK [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: F0 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: F0 09 00 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: F0 09 00 71 66 00 74 C4 A7 66 90 0F 3E 66 57 [16:33:50]GetLastDocTimeStamp 1722270680 [16:33:50]current date 1722270836 [16:33:50]FM_GetShiftState [16:33:50]SAM_PROTO_GetShiftState [16:33:50]wFMCommunicate request_size=4 [16:33:50]MH_SAM_APDU [16:33:50]CAPDU: 80 13 01 00 [16:33:50]Write to MH i2c: E2 08 00 72 66 80 13 01 00 00 00 00 00 55 [16:33:50]Write i2c OK [16:33:50]MH_I2C_Read... [16:33:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:50]Read from MH i2c: E2 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 0E 00 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 0E 00 72 66 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 83 [16:33:50]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:33:50]wFMCommunicate OK [16:33:50]SAM_PROTO_GetShiftState done [16:33:50]FM_GetShiftState done [16:33:50]opened in 1722211641 [16:33:50]opened+sec_in_day 1722298041 [16:33:50]quantity*price = 70037 [16:33:50]sum+1 = 70038 [16:33:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 209 29.07.2024 16:33 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118833 ФПД: 172072092528333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163356&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118833&fm=172072092528333&tin=02508201610067®Number=0000000000092660&sum=70000 [16:33:51]StoreToDocumentArchive [16:33:51]shift 434 fd 118833 [16:33:51]save to /storage/0434/doc_00118833 [16:33:51]save last doc name /storage/0434/doc_00118833 to /storage/kkm_last_doc_name [16:33:51]save OK [16:33:51]Clear old archive folders... [16:33:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:51]tlvbuf is 020421E0 [16:33:51]SAM_PROTO_ClearQueue [16:33:51]wFMCommunicate request_size=4 [16:33:51]MH_SAM_APDU [16:33:51]CAPDU: 80 09 00 00 [16:33:51]Write to MH i2c: E2 08 00 7F 66 80 09 00 00 00 00 00 00 57 [16:33:51]Write i2c OK [16:33:51]MH_I2C_Read... [16:33:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:51]Read from MH i2c: E2 [16:33:51]MH_I2C_Read... [16:33:51]Read from MH i2c: E2 03 00 [16:33:51]MH_I2C_Read... [16:33:51]Read from MH i2c: E2 03 00 7F 66 00 90 00 59 [16:33:51]RAPDU: 90 00 [16:33:51]wFMCommunicate OK [16:33:51]SAM_PROTO_ClearQueue done [16:33:51]KKMCreateOFDPacket [16:33:51]OFDProtocolAddRootSTLVToBuf [16:33:51]FM_MakeSignedData [16:33:51]FM_MakeSignedData [16:33:51]SAM_PROTO_SignData [16:33:51]wFMCommunicate request_size=4 [16:33:51]MH_SAM_APDU [16:33:51]CAPDU: 80 0D 01 02 [16:33:51]Write to MH i2c: E2 08 00 80 66 80 0D 01 02 00 00 00 00 5F [16:33:51]Write i2c OK [16:33:51]MH_I2C_Read... [16:33:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:51]Read from MH i2c: E2 [16:33:51]MH_I2C_Read... [16:33:51]Read from MH i2c: E2 03 00 [16:33:51]MH_I2C_Read... [16:33:51]Read from MH i2c: E2 03 00 80 66 00 90 00 5A [16:33:51]RAPDU: 90 00 [16:33:51]wFMCommunicate OK [16:33:51]wFMCommunicate request_size=255 [16:33:51]MH_SAM_APDU [16:33:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 74 C4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 31 D0 01 00 35 04 06 00 9C [16:33:51]Write to MH i2c: E2 02 01 81 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 74 C4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 31 D0 01 00 35 04 06 00 9C 00 00 31 [16:33:51]Write i2c OK [16:33:51]MH_I2C_Read... [16:33:51]OFD Sender: No OFD packet to send [16:33:51]Read from MH i2c: E2 [16:33:51]MH_I2C_Read... [16:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:52]Read from MH i2c: E2 03 00 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: E2 03 00 81 66 00 90 00 5B [16:33:52]RAPDU: 90 00 [16:33:52]wFMCommunicate OK [16:33:52]wFMCommunicate request_size=10 [16:33:52]MH_SAM_APDU [16:33:52]CAPDU: 80 0D 02 02 05 7F A7 F3 6E CD [16:33:52]Write to MH i2c: E2 0D 00 82 66 80 0D 02 02 05 00 7F A7 F3 6E CD 00 00 C0 [16:33:52]Write i2c OK [16:33:52]MH_I2C_Read... [16:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:52]Read from MH i2c: E2 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: E2 03 00 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: E2 03 00 82 66 00 90 00 5C [16:33:52]RAPDU: 90 00 [16:33:52]wFMCommunicate OK [16:33:52]wFMCommunicate request_size=4 [16:33:52]MH_SAM_APDU [16:33:52]CAPDU: 80 0D 03 02 [16:33:52]Write to MH i2c: E2 08 00 83 66 80 0D 03 02 00 00 00 00 64 [16:33:52]Write i2c OK [16:33:52]MH_I2C_Read... [16:33:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:52]Read from MH i2c: E2 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: E2 0B 00 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: E2 0B 00 83 66 00 06 A1 CA CE B9 5C CA 3B 90 00 BE [16:33:52]RAPDU: 06 A1 CA CE B9 5C CA 3B 90 00 [16:33:52]wFMCommunicate OK [16:33:52]SAM_PROTO_SignData done [16:33:52]FM_MakeSignedData done [16:33:52]CreateOFDProtocolMessage [16:33:52]wFMCommunicate request_size=4 [16:33:52]MH_SAM_APDU [16:33:52]CAPDU: 80 11 00 00 [16:33:52]Write to MH i2c: E2 08 00 84 66 80 11 00 00 00 00 00 00 64 [16:33:52]Write i2c OK [16:33:52]MH_I2C_Read... [16:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:52]Read from MH i2c: E2 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: E2 17 00 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: E2 17 00 84 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BF [16:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:33:52]wFMCommunicate OK [16:33:52]CreateOFDProtocolMessage done [16:33:52]OFDSenderStorePacket 118833 [16:33:52]StoreOFDPacket docnum=118833 [16:33:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E7 A1 07 01 2D F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 74 C4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 31 D0 01 00 35 04 06 00 9C 7F A7 F3 6E CD 06 A1 CA CE B9 5C CA 3B [16:33:52]CheckFolder [16:33:52]dirname=/storage/ofd_packets [16:33:52]CheckFolder done [16:33:52]ProducePacketName [16:33:52]name=ofd_packets/00118833 [16:33:52]NVStorageSaveData ofd_packets/00118833 [16:33:52]File name is /storage/ofd_packets/00118833 [16:33:52]Write 301 bytes [16:33:52]NVStorageSaveData done [16:33:52]OFDSenderStorePacket done [16:33:52]KKMCreateOFDPacket done [16:33:52]NVStorageSaveData kkm_last_timestamp [16:33:52]File name is /storage/kkm_last_timestamp [16:33:52]Write 4 bytes [16:33:52]NVStorageSaveData done [16:33:52]ExternCall_PrintAddStr [16:33:52]wPrintStart [16:33:52]Write to MH i2c: 01 00 00 85 66 EB [16:33:52]Write i2c OK [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: 01 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: 01 07 00 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: 01 07 00 85 66 00 00 00 00 00 FF 0F 00 [16:33:52]RasterBufferAndPrint [16:33:52]line Счет N : (1)949726 [16:33:52]line ИНН: 02508201610067 [16:33:52]line Контрольно-Кассовый Чек [16:33:52]line ПРОДАЖА [16:33:52]line ТРК (МРК, ГНК) : 51 [16:33:52]line Товар: 2710124130 [16:33:52]line Аи-92-К-4 [16:33:52]line 10.330 * 67.80 [16:33:52]line = 700.37 [16:33:52]line НДС 12% НСП 1% [16:33:52]line > о реализуемом товаре [16:33:52]line ОКРУГЛЕНИЕ: -0.37 [16:33:52]line ИТОГО: 700.00 [16:33:52]line Внесено: 700.00 [16:33:52]line СДАЧА: 0.00 [16:33:52]line НСП 1% : 6.20 [16:33:52]line НДС 12% : 74.38 [16:33:52]line Наличными: 700.00 [16:33:52]line Безнал.: 0.00 [16:33:52]line Место: АЗС № 134 "Партнер Нефть" [16:33:52]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:33:52]line СНО: Общий режим [16:33:52]line Чек 209 29.07.2024 16:33 [16:33:52]line Смена: 434 ФФД: 1.0 [16:33:52]line ЗНМ: 0300000044 [16:33:52]line РНМ: 0000000000092660 [16:33:52]line Версия ККМ: 001 [16:33:52]line ФМ: 0000000000874939 [16:33:52]line ФД: 118833 [16:33:52]line ФПД: 172072092528333 [16:33:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163356&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118833&fm=172072092528333&tin=02508201610067®Number=0000000000092660&sum=70000 [16:33:52]written 0, free lines is 4095 [16:33:52]OFD Sender: Processing packet 118833 [packets to send 86, broken 85] [16:33:52]ProducePacketName [16:33:52]name=ofd_packets/00118833 [16:33:52]OFD Sender: To server: pG, [16:33:52]CommunicateWithHost lk.salyk.kg:30040 [16:33:52]ConnectInit lk.salyk.kg [16:33:52]Connected sock=10 [16:33:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E7 A1 07 01 2D F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 74 C4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 31 D0 01 00 35 04 06 00 9C 7F A7 F3 6E CD 06 A1 CA CE B9 5C CA 3B [16:33:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A4 E7 47 00 BC BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 31 D0 01 00 F4 03 04 00 01 72 A7 66 B6 04 01 00 00 4B EE 95 A0 32 81 C7 70 [16:33:52]CommunicateWithHost err = 0 [16:33:52]CheckOFDResponse [16:33:52]1017 (14) - 77093643461234 [16:33:52]1041 (16) - 0000000000874939 [16:33:52]1040 (4) - 118833 [16:33:52]1012 (4) - 29.07.2024 10:42 [16:33:52]1206 (1) - 0 [16:33:52]OFD Sender: Remove packet 118833 [16:33:52]ProducePacketName [16:33:52]name=ofd_packets/00118833 [16:33:52]NVStorageDeleteData [16:33:52]Write to MH i2c: 01 00 00 AF 66 15 [16:33:52]Write i2c OK [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: 01 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: 01 07 00 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: 01 07 00 AF 66 00 00 00 00 00 F1 0C 19 [16:33:52]RasterBufferAndPrint [16:33:52]line [16:33:52]line [16:33:52]line [16:33:52]line [16:33:52]line [16:33:52]written 0, free lines is 3319 [16:33:52]MH_Cut [16:33:52]Write to MH i2c: D1 01 00 B6 66 01 EE [16:33:52]Write i2c OK [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: D1 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: D1 01 00 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: D1 01 00 B6 66 00 ED [16:33:52]Write to MH i2c: 01 00 00 B7 66 1D [16:33:52]Write i2c OK [16:33:52]MH_I2C_Read... [16:33:52]OFD Sender: No OFD packet to send [16:33:53]*** Cut start [16:33:53]*** Partial cut [16:33:53]*** CUTSNS_PIN = 1 [16:33:53]*** CUTSNS_PIN = 0 [16:33:53]*** Brake cut motor [16:33:53]Read from MH i2c: 01 [16:33:53]MH_I2C_Read... [16:33:53]*** Stop cut motor [16:33:53]*** Cut end [16:33:53]Read from MH i2c: 01 07 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: 01 07 00 B7 66 00 00 00 00 00 FF 0F 32 [16:33:53]process_action close_receipt done [16:33:53]requested_data is exist [16:33:53]produce_requested_data [16:33:53]requested_item fm.sn is exist - process it [16:33:53]wFMCommunicate request_size=4 [16:33:53]MH_SAM_APDU [16:33:53]CAPDU: 80 11 00 00 [16:33:53]Write to MH i2c: E2 08 00 B8 66 80 11 00 00 00 00 00 00 98 [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:53]Read from MH i2c: E2 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 17 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 17 00 B8 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F3 [16:33:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:33:53]wFMCommunicate OK [16:33:53]requested_item fd.num is exist - process it [16:33:53]SAM_PROTO_GetFieldsCounters [16:33:53]wFMCommunicate request_size=4 [16:33:53]MH_SAM_APDU [16:33:53]CAPDU: 80 13 00 00 [16:33:53]Write to MH i2c: E2 08 00 B9 66 80 13 00 00 00 00 00 00 9B [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:54]Read from MH i2c: E2 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: E2 62 00 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: E2 62 00 B9 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 31 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [16:33: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 31 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:54]wFMCommunicate OK [16:33:54]SAM_PROTO_GetFieldsCounters done [16:33:54]requested_item shift.num is exist - process it [16:33:54]requested_item shift.opened is exist - process it [16:33:54]req_shift_opened [16:33:54]FM_GetShiftState [16:33:54]SAM_PROTO_GetShiftState [16:33:54]wFMCommunicate request_size=4 [16:33:54]MH_SAM_APDU [16:33:54]CAPDU: 80 13 01 00 [16:33:54]Write to MH i2c: E2 08 00 BA 66 80 13 01 00 00 00 00 00 9D [16:33:54]Write i2c OK [16:33:54]MH_I2C_Read... [16:33:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:54]Read from MH i2c: E2 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: E2 0E 00 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: E2 0E 00 BA 66 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 CB [16:33:54]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:33:54]wFMCommunicate OK [16:33:54]SAM_PROTO_GetShiftState done [16:33:54]FM_GetShiftState done [16:33:54]req_shift_opened done [16:33:54]requested_item shift.open_date is exist - process it [16:33:54]req_shift_open_date [16:33:54]req_shift_open_date done [16:33:54]produce_requested_data done [16:33:54]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118833,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:33:54]process_action_free close_receipt [16:33:54]json_value_free [16:33:54]json_value_free done [16:33:54]process_json_proto returns [16:33:54]Send response to host [16:33:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118833,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:33:54]free response buf [16:33:54]execute_script done [16:33:54]execute_script returns [16:33:54]free content buf [16:33:54]Sock 7.Close socket [16:33:54]Sock 7.Thread stoped [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:13]OFD Sender: No OFD packet to send [16:34:18]OFD Sender: No OFD packet to send [16:34:23]OFD Sender: No OFD packet to send [16:34:28]OFD Sender: No OFD packet to send [16:34:33]OFD Sender: No OFD packet to send [16:34:38]OFD Sender: No OFD packet to send [16:34:43]OFD Sender: No OFD packet to send [16:34:48]OFD Sender: No OFD packet to send [16:34:53]OFD Sender: No OFD packet to send [16:34:58]OFD Sender: No OFD packet to send [16:35:03]OFD Sender: No OFD packet to send [16:35:08]OFD Sender: No OFD packet to send [16:35:13]OFD Sender: No OFD packet to send [16:35:18]OFD Sender: No OFD packet to send [16:35:23]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:13]accept exits with 9 [16:36:13]New connection [16:36:13]New thread 3067383140 created [16:36:13]Thread 3067239780 joined [16:36:13]Waiting for new connection... [16:36:13] Sock 9.Parse request [16:36:13]Sock 9.Check first char [16:36:13]Sock 9.First char is OK [16:36:13]request: POST /json_proto HTTP/1.0 [16:36:13]Method: POST [16:36:13]URL: /json_proto [16:36:13]Method is POST - this is cgi request [16:36:13]url: /json_proto [16:36:13]query_string will be loaded in cgi processing [16:36:13]execute_cgi json_proto POST (null) [16:36:13]execute_cgi path=json_proto method=POST [16:36:13]POST find Content-Length [16:36:13]Host: 172.17.45.7:8080 [16:36:13]Content-Length: 819 [16:36:13]Content-Type: application/json [16:36:13] [16:36:13]POST finish read [16:36:13]Found Content-Length = 819 [16:36:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 59.050, "sum" : 4499.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 4499.00, "payments": [ { "type": 1, "sum" : 4499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:13]execute_script... [16:36: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)949725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 59.050, "sum" : 4499.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 4499.00, "payments": [ { "type": 1, "sum" : 4499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:13]POST & json_proto [16:36:13]process_json_proto [16:36:13]json parsed OK: [16:36:13]protocol is kg_v1.0 [16:36:13]action value=close_receipt [16:36:13]process_action close_receipt [16:36:13]cmd_close_receipt [16:36:13]MH_GetDate [16:36:13]Write to MH i2c: F0 00 00 BB 66 10 [16:36:13]Write i2c OK [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: F0 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: F0 09 00 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: F0 09 00 BB 66 00 03 C5 A7 66 90 0F 3E 66 31 [16:36:13]GetLastDocTimeStamp 1722270836 [16:36:13]current date 1722270979 [16:36:13]FM_GetShiftState [16:36:13]SAM_PROTO_GetShiftState [16:36:13]wFMCommunicate request_size=4 [16:36:13]MH_SAM_APDU [16:36:13]CAPDU: 80 13 01 00 [16:36:13]Write to MH i2c: E2 08 00 BC 66 80 13 01 00 00 00 00 00 9F [16:36:13]Write i2c OK [16:36:13]MH_I2C_Read... [16:36:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:13]Read from MH i2c: E2 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: E2 0E 00 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: E2 0E 00 BC 66 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 CD [16:36:13]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:36:13]wFMCommunicate OK [16:36:13]SAM_PROTO_GetShiftState done [16:36:13]FM_GetShiftState done [16:36:13]opened in 1722211641 [16:36:13]opened+sec_in_day 1722298041 [16:36:13]quantity*price = 449961 [16:36:13]sum+1 = 449962 [16:36:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 4499.00 НСП 1% : 39.82 НДС 12% : 477.83 Наличными: 0.00 Безнал.: 4499.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 210 29.07.2024 16:36 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118834 ФПД: 91602970634373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163619&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118834&fm=91602970634373&tin=02508201610067®Number=0000000000092660&sum=449900 [16:36:14]StoreToDocumentArchive [16:36:14]shift 434 fd 118834 [16:36:14]save to /storage/0434/doc_00118834 [16:36:14]save last doc name /storage/0434/doc_00118834 to /storage/kkm_last_doc_name [16:36:14]save OK [16:36:14]Clear old archive folders... [16:36:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:36:14]tlvbuf is B6E11010 [16:36:14]SAM_PROTO_ClearQueue [16:36:14]wFMCommunicate request_size=4 [16:36:14]MH_SAM_APDU [16:36:14]CAPDU: 80 09 00 00 [16:36:14]Write to MH i2c: E2 08 00 C9 66 80 09 00 00 00 00 00 00 A1 [16:36:14]Write i2c OK [16:36:14]MH_I2C_Read... [16:36:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:14]Read from MH i2c: E2 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 03 00 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 03 00 C9 66 00 90 00 A3 [16:36:14]RAPDU: 90 00 [16:36:14]wFMCommunicate OK [16:36:14]SAM_PROTO_ClearQueue done [16:36:14]KKMCreateOFDPacket [16:36:14]OFDProtocolAddRootSTLVToBuf [16:36:14]FM_MakeSignedData [16:36:14]FM_MakeSignedData [16:36:14]SAM_PROTO_SignData [16:36:14]wFMCommunicate request_size=4 [16:36:14]MH_SAM_APDU [16:36:14]CAPDU: 80 0D 01 02 [16:36:14]Write to MH i2c: E2 08 00 CA 66 80 0D 01 02 00 00 00 00 A9 [16:36:14]Write i2c OK [16:36:14]MH_I2C_Read... [16:36:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:14]Read from MH i2c: E2 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 03 00 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 03 00 CA 66 00 90 00 A4 [16:36:14]RAPDU: 90 00 [16:36:14]wFMCommunicate OK [16:36:14]wFMCommunicate request_size=255 [16:36:14]MH_SAM_APDU [16:36:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A9 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 03 C5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 32 D0 01 00 35 04 06 00 53 4F FA 86 [16:36:14]Write to MH i2c: E2 02 01 CB 66 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A9 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 03 C5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 32 D0 01 00 35 04 06 00 53 4F FA 86 00 00 29 [16:36:14]Write i2c OK [16:36:14]MH_I2C_Read... [16:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:15]Read from MH i2c: E2 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: E2 03 00 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: E2 03 00 CB 66 00 90 00 A5 [16:36:15]RAPDU: 90 00 [16:36:15]wFMCommunicate OK [16:36:15]wFMCommunicate request_size=7 [16:36:15]MH_SAM_APDU [16:36:15]CAPDU: 80 0D 02 02 02 68 85 [16:36:15]Write to MH i2c: E2 0A 00 CC 66 80 0D 02 02 02 00 68 85 00 00 9D [16:36:15]Write i2c OK [16:36:15]MH_I2C_Read... [16:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:15]Read from MH i2c: E2 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: E2 03 00 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: E2 03 00 CC 66 00 90 00 A6 [16:36:15]RAPDU: 90 00 [16:36:15]wFMCommunicate OK [16:36:15]wFMCommunicate request_size=4 [16:36:15]MH_SAM_APDU [16:36:15]CAPDU: 80 0D 03 02 [16:36:15]Write to MH i2c: E2 08 00 CD 66 80 0D 03 02 00 00 00 00 AE [16:36:15]Write i2c OK [16:36:15]MH_I2C_Read... [16:36:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:15]Read from MH i2c: E2 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: E2 0B 00 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: E2 0B 00 CD 66 00 F0 6B 82 3C 67 2A CF 0C 90 00 34 [16:36:15]RAPDU: F0 6B 82 3C 67 2A CF 0C 90 00 [16:36:15]wFMCommunicate OK [16:36:15]SAM_PROTO_SignData done [16:36:15]FM_MakeSignedData done [16:36:15]CreateOFDProtocolMessage [16:36:15]wFMCommunicate request_size=4 [16:36:15]MH_SAM_APDU [16:36:15]CAPDU: 80 11 00 00 [16:36:15]Write to MH i2c: E2 08 00 CE 66 80 11 00 00 00 00 00 00 AE [16:36:15]Write i2c OK [16:36:15]MH_I2C_Read... [16:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:15]Read from MH i2c: E2 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: E2 17 00 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: E2 17 00 CE 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 09 [16:36:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:36:15]wFMCommunicate OK [16:36:15]CreateOFDProtocolMessage done [16:36:15]OFDSenderStorePacket 118834 [16:36:15]StoreOFDPacket docnum=118834 [16:36:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 84 07 04 01 2B 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A9 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 03 C5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 32 D0 01 00 35 04 06 00 53 4F FA 86 68 85 F0 6B 82 3C 67 2A CF 0C [16:36:15]CheckFolder [16:36:15]dirname=/storage/ofd_packets [16:36:15]CheckFolder done [16:36:15]ProducePacketName [16:36:15]name=ofd_packets/00118834 [16:36:15]NVStorageSaveData ofd_packets/00118834 [16:36:15]File name is /storage/ofd_packets/00118834 [16:36:15]Write 298 bytes [16:36:15]NVStorageSaveData done [16:36:15]OFDSenderStorePacket done [16:36:15]KKMCreateOFDPacket done [16:36:15]NVStorageSaveData kkm_last_timestamp [16:36:15]File name is /storage/kkm_last_timestamp [16:36:15]Write 4 bytes [16:36:15]NVStorageSaveData done [16:36:15]ExternCall_PrintAddStr [16:36:15]wPrintStart [16:36:15]Write to MH i2c: 01 00 00 CF 66 35 [16:36:15]Write i2c OK [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: 01 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: 01 07 00 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: 01 07 00 CF 66 00 00 00 00 00 FF 0F 4A [16:36:15]RasterBufferAndPrint [16:36:15]line Счет N : (1)949725 [16:36:15]line ИНН: 02508201610067 [16:36:15]line Контрольно-Кассовый Чек [16:36:15]line ПРОДАЖА [16:36:15]line ТРК (МРК, ГНК) : 44 [16:36:15]line Товар: 2710194800 [16:36:15]line ДТ-К-5 [16:36:15]line 59.050 * 76.20 [16:36:15]line = 4499.61 [16:36:15]line НДС 12% НСП 1% [16:36:15]line > о реализуемом товаре [16:36:15]line ОКРУГЛЕНИЕ: -0.61 [16:36:15]line ИТОГО: 4499.00 [16:36:15]line НСП 1% : 39.82 [16:36:15]line НДС 12% : 477.83 [16:36:15]line Наличными: 0.00 [16:36:15]line Безнал.: 4499.00 [16:36:15]line Место: АЗС № 134 "Партнер Нефть" [16:36:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:36:15]line СНО: Общий режим [16:36:15]line Чек 210 29.07.2024 16:36 [16:36:15]line Смена: 434 ФФД: 1.0 [16:36:15]line ЗНМ: 0300000044 [16:36:15]line РНМ: 0000000000092660 [16:36:15]line Версия ККМ: 001 [16:36:15]line Платежная система: O! деньги [16:36:15]line ФМ: 0000000000874939 [16:36:15]line ФД: 118834 [16:36:15]line ФПД: 91602970634373 [16:36:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163619&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118834&fm=91602970634373&tin=02508201610067®Number=0000000000092660&sum=449900 [16:36:15]OFD Sender: Processing packet 118834 [packets to send 86, broken 85] [16:36:15]ProducePacketName [16:36:15]name=ofd_packets/00118834 [16:36:15]OFD Sender: To server: pG, [16:36:15]CommunicateWithHost lk.salyk.kg:30040 [16:36:15]ConnectInit lk.salyk.kg [16:36:15]written 0, free lines is 4095 [16:36:15]Connected sock=10 [16:36:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 84 07 04 01 2B 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A9 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 03 C5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 32 D0 01 00 35 04 06 00 53 4F FA 86 68 85 F0 6B 82 3C 67 2A CF 0C [16:36:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 14 25 47 00 DC 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 34 39 33 39 10 04 04 00 32 D0 01 00 F4 03 04 00 91 72 A7 66 B6 04 01 00 00 6E 4F 63 71 79 3F 17 E0 [16:36:15]CommunicateWithHost err = 0 [16:36:15]CheckOFDResponse [16:36:15]1017 (14) - 77093643461234 [16:36:15]1041 (16) - 0000000000874939 [16:36:15]1040 (4) - 118834 [16:36:15]1012 (4) - 29.07.2024 10:44 [16:36:15]1206 (1) - 0 [16:36:15]OFD Sender: Remove packet 118834 [16:36:15]ProducePacketName [16:36:15]name=ofd_packets/00118834 [16:36:15]NVStorageDeleteData [16:36:15]Write to MH i2c: 01 00 00 F9 66 5F [16:36:15]Write i2c OK [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: 01 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: 01 07 00 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: 01 07 00 F9 66 00 00 00 00 00 EB 0C 5D [16:36:15]RasterBufferAndPrint [16:36:15]line [16:36:15]line [16:36:15]line [16:36:15]line [16:36:15]line [16:36:15]written 0, free lines is 3314 [16:36:16]MH_Cut [16:36:16]Write to MH i2c: D1 01 00 00 67 01 39 [16:36:16]Write i2c OK [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: D1 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: D1 01 00 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: D1 01 00 00 67 00 38 [16:36:16]Write to MH i2c: 01 00 00 01 67 68 [16:36:16]Write i2c OK [16:36:16]MH_I2C_Read... [16:36:16]OFD Sender: No OFD packet to send [16:36:16]*** Cut start [16:36:16]*** Partial cut [16:36:16]*** CUTSNS_PIN = 1 [16:36:16]*** CUTSNS_PIN = 0 [16:36:16]*** Brake cut motor [16:36:17]Read from MH i2c: 01 [16:36:17]MH_I2C_Read... [16:36:17]*** Stop cut motor [16:36:17]*** Cut end [16:36:17]Read from MH i2c: 01 07 00 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: 01 07 00 01 67 00 00 00 00 00 FF 0F 7D [16:36:17]process_action close_receipt done [16:36:17]requested_data is exist [16:36:17]produce_requested_data [16:36:17]requested_item fm.sn is exist - process it [16:36:17]wFMCommunicate request_size=4 [16:36:17]MH_SAM_APDU [16:36:17]CAPDU: 80 11 00 00 [16:36:17]Write to MH i2c: E2 08 00 02 67 80 11 00 00 00 00 00 00 E3 [16:36:17]Write i2c OK [16:36:17]MH_I2C_Read... [16:36:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:17]Read from MH i2c: E2 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: E2 17 00 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: E2 17 00 02 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3E [16:36:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:36:17]wFMCommunicate OK [16:36:17]requested_item fd.num is exist - process it [16:36:17]SAM_PROTO_GetFieldsCounters [16:36:17]wFMCommunicate request_size=4 [16:36:17]MH_SAM_APDU [16:36:17]CAPDU: 80 13 00 00 [16:36:17]Write to MH i2c: E2 08 00 03 67 80 13 00 00 00 00 00 00 E6 [16:36:17]Write i2c OK [16:36:17]MH_I2C_Read... [16:36:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:17]Read from MH i2c: E2 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: E2 62 00 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: E2 62 00 03 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 32 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [16:36: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 32 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:17]wFMCommunicate OK [16:36:17]SAM_PROTO_GetFieldsCounters done [16:36:17]requested_item shift.num is exist - process it [16:36:17]requested_item shift.opened is exist - process it [16:36:17]req_shift_opened [16:36:17]FM_GetShiftState [16:36:17]SAM_PROTO_GetShiftState [16:36:17]wFMCommunicate request_size=4 [16:36:17]MH_SAM_APDU [16:36:17]CAPDU: 80 13 01 00 [16:36:17]Write to MH i2c: E2 08 00 04 67 80 13 01 00 00 00 00 00 E8 [16:36:17]Write i2c OK [16:36:17]MH_I2C_Read... [16:36:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:17]Read from MH i2c: E2 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: E2 0E 00 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: E2 0E 00 04 67 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 16 [16:36:17]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:36:17]wFMCommunicate OK [16:36:17]SAM_PROTO_GetShiftState done [16:36:17]FM_GetShiftState done [16:36:17]req_shift_opened done [16:36:17]requested_item shift.open_date is exist - process it [16:36:17]req_shift_open_date [16:36:17]req_shift_open_date done [16:36:17]produce_requested_data done [16:36:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118834,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:36:17]process_action_free close_receipt [16:36:17]json_value_free [16:36:17]json_value_free done [16:36:17]process_json_proto returns [16:36:17]Send response to host [16:36:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118834,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:36:17]free response buf [16:36:17]execute_script done [16:36:17]execute_script returns [16:36:17]free content buf [16:36:17]Sock 9.Close socket [16:36:17]Sock 9.Thread stoped [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:46]accept exits with 7 [16:37:46]New connection [16:37:46]New thread 3067239780 created [16:37:46]Thread 3067383140 joined [16:37:46]Waiting for new connection... [16:37:46] Sock 7.Parse request [16:37:46]Sock 7.Check first char [16:37:46]Sock 7.First char is OK [16:37:46]request: POST /json_proto HTTP/1.0 [16:37:46]Method: POST [16:37:46]URL: /json_proto [16:37:46]Method is POST - this is cgi request [16:37:46]url: /json_proto [16:37:46]query_string will be loaded in cgi processing [16:37:46]execute_cgi json_proto POST (null) [16:37:46]execute_cgi path=json_proto method=POST [16:37:46]POST find Content-Length [16:37:46]Host: 172.17.45.7:8080 [16:37:46]Content-Length: 682 [16:37:46]Content-Type: application/json [16:37:46] [16:37:46]POST finish read [16:37:46]Found Content-Length = 682 [16:37:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:46]execute_script... [16:37:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:46]POST & json_proto [16:37:46]process_json_proto [16:37:46]json parsed OK: [16:37:46]protocol is kg_v1.0 [16:37:46]action value=close_receipt [16:37:46]process_action close_receipt [16:37:46]cmd_close_receipt [16:37:46]MH_GetDate [16:37:46]Write to MH i2c: F0 00 00 05 67 5B [16:37:46]Write i2c OK [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: F0 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: F0 09 00 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: F0 09 00 05 67 00 61 C5 A7 66 90 0F 3E 66 DA [16:37:46]GetLastDocTimeStamp 1722270979 [16:37:46]current date 1722271073 [16:37:46]FM_GetShiftState [16:37:46]SAM_PROTO_GetShiftState [16:37:46]wFMCommunicate request_size=4 [16:37:46]MH_SAM_APDU [16:37:46]CAPDU: 80 13 01 00 [16:37:46]Write to MH i2c: E2 08 00 06 67 80 13 01 00 00 00 00 00 EA [16:37:46]Write i2c OK [16:37:46]MH_I2C_Read... [16:37:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:47]Read from MH i2c: E2 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: E2 0E 00 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: E2 0E 00 06 67 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 18 [16:37:47]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:37:47]wFMCommunicate OK [16:37:47]SAM_PROTO_GetShiftState done [16:37:47]FM_GetShiftState done [16:37:47]opened in 1722211641 [16:37:47]opened+sec_in_day 1722298041 [16:37:47]quantity*price = 100005 [16:37:47]sum+1 = 100006 [16:37:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 211 29.07.2024 16:37 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118835 ФПД: 53952467187143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163753&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118835&fm=53952467187143&tin=02508201610067®Number=0000000000092660&sum=100000 [16:37:48]StoreToDocumentArchive [16:37:48]shift 434 fd 118835 [16:37:48]save to /storage/0434/doc_00118835 [16:37:48]save last doc name /storage/0434/doc_00118835 to /storage/kkm_last_doc_name [16:37:48]save OK [16:37:48]Clear old archive folders... [16:37:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:48]tlvbuf is 02042060 [16:37:48]SAM_PROTO_ClearQueue [16:37:48]wFMCommunicate request_size=4 [16:37:48]MH_SAM_APDU [16:37:48]CAPDU: 80 09 00 00 [16:37:48]Write to MH i2c: E2 08 00 13 67 80 09 00 00 00 00 00 00 EC [16:37:48]Write i2c OK [16:37:48]MH_I2C_Read... [16:37:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:48]Read from MH i2c: E2 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: E2 03 00 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: E2 03 00 13 67 00 90 00 EE [16:37:48]RAPDU: 90 00 [16:37:48]wFMCommunicate OK [16:37:48]SAM_PROTO_ClearQueue done [16:37:48]KKMCreateOFDPacket [16:37:48]OFDProtocolAddRootSTLVToBuf [16:37:48]FM_MakeSignedData [16:37:48]FM_MakeSignedData [16:37:48]SAM_PROTO_SignData [16:37:48]wFMCommunicate request_size=4 [16:37:48]MH_SAM_APDU [16:37:48]CAPDU: 80 0D 01 02 [16:37:48]Write to MH i2c: E2 08 00 14 67 80 0D 01 02 00 00 00 00 F4 [16:37:48]Write i2c OK [16:37:48]MH_I2C_Read... [16:37:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:48]Read from MH i2c: E2 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: E2 03 00 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: E2 03 00 14 67 00 90 00 EF [16:37:48]RAPDU: 90 00 [16:37:48]wFMCommunicate OK [16:37:48]wFMCommunicate request_size=255 [16:37:48]MH_SAM_APDU [16:37: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 61 C5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 33 D0 01 00 35 04 06 00 31 [16:37:48]Write to MH i2c: E2 02 01 15 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 61 C5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 33 D0 01 00 35 04 06 00 31 00 00 F5 [16:37:48]Write i2c OK [16:37:48]MH_I2C_Read... [16:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:48]Read from MH i2c: E2 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: E2 03 00 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: E2 03 00 15 67 00 90 00 F0 [16:37:48]RAPDU: 90 00 [16:37:48]wFMCommunicate OK [16:37:48]wFMCommunicate request_size=10 [16:37:48]MH_SAM_APDU [16:37:48]CAPDU: 80 0D 02 02 05 11 C9 A4 35 C7 [16:37:48]Write to MH i2c: E2 0D 00 16 67 80 0D 02 02 05 00 11 C9 A4 35 C7 00 00 7B [16:37:48]Write i2c OK [16:37:48]MH_I2C_Read... [16:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:48]Read from MH i2c: E2 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: E2 03 00 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: E2 03 00 16 67 00 90 00 F1 [16:37:48]RAPDU: 90 00 [16:37:48]wFMCommunicate OK [16:37:48]wFMCommunicate request_size=4 [16:37:48]MH_SAM_APDU [16:37:48]CAPDU: 80 0D 03 02 [16:37:48]Write to MH i2c: E2 08 00 17 67 80 0D 03 02 00 00 00 00 F9 [16:37:48]Write i2c OK [16:37:48]MH_I2C_Read... [16:37:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:48]Read from MH i2c: E2 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: E2 0B 00 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: E2 0B 00 17 67 00 85 94 11 AD D9 3C 45 25 90 00 50 [16:37:48]RAPDU: 85 94 11 AD D9 3C 45 25 90 00 [16:37:48]wFMCommunicate OK [16:37:48]SAM_PROTO_SignData done [16:37:48]FM_MakeSignedData done [16:37:48]CreateOFDProtocolMessage [16:37:48]wFMCommunicate request_size=4 [16:37:48]MH_SAM_APDU [16:37:48]CAPDU: 80 11 00 00 [16:37:48]Write to MH i2c: E2 08 00 18 67 80 11 00 00 00 00 00 00 F9 [16:37:48]Write i2c OK [16:37:48]MH_I2C_Read... [16:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:48]Read from MH i2c: E2 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: E2 17 00 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: E2 17 00 18 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 54 [16:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:37:48]wFMCommunicate OK [16:37:48]CreateOFDProtocolMessage done [16:37:48]OFDSenderStorePacket 118835 [16:37:48]StoreOFDPacket docnum=118835 [16:37:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 15 3A 07 01 9F 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 61 C5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 33 D0 01 00 35 04 06 00 31 11 C9 A4 35 C7 85 94 11 AD D9 3C 45 25 [16:37:48]CheckFolder [16:37:48]dirname=/storage/ofd_packets [16:37:48]CheckFolder done [16:37:48]ProducePacketName [16:37:48]name=ofd_packets/00118835 [16:37:48]NVStorageSaveData ofd_packets/00118835 [16:37:48]File name is /storage/ofd_packets/00118835 [16:37:48]Write 301 bytes [16:37:48]NVStorageSaveData done [16:37:48]OFDSenderStorePacket done [16:37:48]KKMCreateOFDPacket done [16:37:48]NVStorageSaveData kkm_last_timestamp [16:37:48]File name is /storage/kkm_last_timestamp [16:37:48]Write 4 bytes [16:37:48]NVStorageSaveData done [16:37:48]ExternCall_PrintAddStr [16:37:48]wPrintStart [16:37:48]Write to MH i2c: 01 00 00 19 67 80 [16:37:48]Write i2c OK [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: 01 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: 01 07 00 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: 01 07 00 19 67 00 00 00 00 00 FF 0F 95 [16:37:48]RasterBufferAndPrint [16:37:48]line Счет N : (1)949727 [16:37:48]line ИНН: 02508201610067 [16:37:48]line Контрольно-Кассовый Чек [16:37:48]line ПРОДАЖА [16:37:48]line ТРК (МРК, ГНК) : 51 [16:37:48]line Товар: 2710124130 [16:37:48]line Аи-92-К-4 [16:37:48]line 14.750 * 67.80 [16:37:48]line = 1000.05 [16:37:48]line НДС 12% НСП 1% [16:37:48]line > о реализуемом товаре [16:37:48]line ОКРУГЛЕНИЕ: -0.05 [16:37:48]line ИТОГО: 1000.00 [16:37:48]line Внесено: 1000.00 [16:37:48]line СДАЧА: 0.00 [16:37:48]line НСП 1% : 8.85 [16:37:48]line НДС 12% : 106.20 [16:37:48]line Наличными: 1000.00 [16:37:48]line Безнал.: 0.00 [16:37:48]line Место: АЗС № 134 "Партнер Нефть" [16:37:48]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:37:48]line СНО: Общий режим [16:37:48]line Чек 211 29.07.2024 16:37 [16:37:48]line Смена: 434 ФФД: 1.0 [16:37:48]line ЗНМ: 0300000044 [16:37:48]line РНМ: 0000000000092660 [16:37:48]line Версия ККМ: 001 [16:37:48]line ФМ: 0000000000874939 [16:37:48]line ФД: 118835 [16:37:48]line ФПД: 53952467187143 [16:37:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163753&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118835&fm=53952467187143&tin=02508201610067®Number=0000000000092660&sum=100000 [16:37:49]written 0, free lines is 4095 [16:37:49]OFD Sender: Processing packet 118835 [packets to send 86, broken 85] [16:37:49]ProducePacketName [16:37:49]name=ofd_packets/00118835 [16:37:49]OFD Sender: To server: pG, [16:37:49]CommunicateWithHost lk.salyk.kg:30040 [16:37:49]ConnectInit lk.salyk.kg [16:37:49]Connected sock=10 [16:37:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 15 3A 07 01 9F 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 61 C5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 33 D0 01 00 35 04 06 00 31 11 C9 A4 35 C7 85 94 11 AD D9 3C 45 25 [16:37:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 70 C5 47 00 16 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 34 39 33 39 10 04 04 00 33 D0 01 00 F4 03 04 00 EE 72 A7 66 B6 04 01 00 00 F3 13 42 86 EA 92 54 96 [16:37:49]CommunicateWithHost err = 0 [16:37:49]CheckOFDResponse [16:37:49]1017 (14) - 77093643461234 [16:37:49]1041 (16) - 0000000000874939 [16:37:49]1040 (4) - 118835 [16:37:49]1012 (4) - 29.07.2024 10:46 [16:37:49]1206 (1) - 0 [16:37:49]OFD Sender: Remove packet 118835 [16:37:49]ProducePacketName [16:37:49]name=ofd_packets/00118835 [16:37:49]NVStorageDeleteData [16:37:49]Write to MH i2c: 01 00 00 43 67 AA [16:37:49]Write i2c OK [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: 01 [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: 01 07 00 [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: 01 07 00 43 67 00 00 00 00 00 E0 0C 9D [16:37:49]RasterBufferAndPrint [16:37:49]line [16:37:49]line [16:37:49]line [16:37:49]line [16:37:49]line [16:37:49]written 0, free lines is 3305 [16:37:49]MH_Cut [16:37:49]Write to MH i2c: D1 01 00 4A 67 01 83 [16:37:49]Write i2c OK [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: D1 [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: D1 01 00 [16:37:49]MH_I2C_Read... [16:37:49]Read from MH i2c: D1 01 00 4A 67 00 82 [16:37:49]Write to MH i2c: 01 00 00 4B 67 B2 [16:37:49]Write i2c OK [16:37:49]MH_I2C_Read... [16:37:49]OFD Sender: No OFD packet to send [16:37:50]*** Cut start [16:37:50]*** Partial cut [16:37:50]*** CUTSNS_PIN = 1 [16:37:50]*** CUTSNS_PIN = 0 [16:37:50]*** Brake cut motor [16:37:50]Read from MH i2c: 01 [16:37:50]MH_I2C_Read... [16:37:50]*** Stop cut motor [16:37:50]*** Cut end [16:37:50]Read from MH i2c: 01 07 00 [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: 01 07 00 4B 67 00 00 00 00 00 FF 0F C7 [16:37:50]process_action close_receipt done [16:37:50]requested_data is exist [16:37:50]produce_requested_data [16:37:50]requested_item fm.sn is exist - process it [16:37:50]wFMCommunicate request_size=4 [16:37:50]MH_SAM_APDU [16:37:50]CAPDU: 80 11 00 00 [16:37:50]Write to MH i2c: E2 08 00 4C 67 80 11 00 00 00 00 00 00 2D [16:37:50]Write i2c OK [16:37:50]MH_I2C_Read... [16:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:50]Read from MH i2c: E2 [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: E2 17 00 [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: E2 17 00 4C 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 88 [16:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:37:50]wFMCommunicate OK [16:37:50]requested_item fd.num is exist - process it [16:37:50]SAM_PROTO_GetFieldsCounters [16:37:50]wFMCommunicate request_size=4 [16:37:50]MH_SAM_APDU [16:37:50]CAPDU: 80 13 00 00 [16:37:50]Write to MH i2c: E2 08 00 4D 67 80 13 00 00 00 00 00 00 30 [16:37:50]Write i2c OK [16:37:50]MH_I2C_Read... [16:37:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:50]Read from MH i2c: E2 [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: E2 62 00 [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: E2 62 00 4D 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 33 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [16:37: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 33 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:50]wFMCommunicate OK [16:37:50]SAM_PROTO_GetFieldsCounters done [16:37:50]requested_item shift.num is exist - process it [16:37:50]requested_item shift.opened is exist - process it [16:37:50]req_shift_opened [16:37:50]FM_GetShiftState [16:37:50]SAM_PROTO_GetShiftState [16:37:51]wFMCommunicate request_size=4 [16:37:51]MH_SAM_APDU [16:37:51]CAPDU: 80 13 01 00 [16:37:51]Write to MH i2c: E2 08 00 4E 67 80 13 01 00 00 00 00 00 32 [16:37:51]Write i2c OK [16:37:51]MH_I2C_Read... [16:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:51]Read from MH i2c: E2 [16:37:51]MH_I2C_Read... [16:37:51]Read from MH i2c: E2 0E 00 [16:37:51]MH_I2C_Read... [16:37:51]Read from MH i2c: E2 0E 00 4E 67 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 60 [16:37:51]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:37:51]wFMCommunicate OK [16:37:51]SAM_PROTO_GetShiftState done [16:37:51]FM_GetShiftState done [16:37:51]req_shift_opened done [16:37:51]requested_item shift.open_date is exist - process it [16:37:51]req_shift_open_date [16:37:51]req_shift_open_date done [16:37:51]produce_requested_data done [16:37:51]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118835,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:37:51]process_action_free close_receipt [16:37:51]json_value_free [16:37:51]json_value_free done [16:37:51]process_json_proto returns [16:37:51]Send response to host [16:37:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118835,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:37:51]free response buf [16:37:51]execute_script done [16:37:51]execute_script returns [16:37:51]free content buf [16:37:51]Sock 7.Close socket [16:37:51]Sock 7.Thread stoped [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:16]accept exits with 9 [16:38:16]New connection [16:38:16]New thread 3067383140 created [16:38:16]Thread 3067239780 joined [16:38:16]Waiting for new connection... [16:38:16] Sock 9.Parse request [16:38:16]Sock 9.Check first char [16:38:16]Sock 9.First char is OK [16:38:16]request: POST /json_proto HTTP/1.0 [16:38:16]Method: POST [16:38:16]URL: /json_proto [16:38:16]Method is POST - this is cgi request [16:38:16]url: /json_proto [16:38:16]query_string will be loaded in cgi processing [16:38:16]execute_cgi json_proto POST (null) [16:38:16]execute_cgi path=json_proto method=POST [16:38:16]POST find Content-Length [16:38:16]Host: 172.17.45.7:8080 [16:38:16]Content-Length: 677 [16:38:16]Content-Type: application/json [16:38:16] [16:38:16]POST finish read [16:38:16]Found Content-Length = 677 [16:38:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:16]execute_script... [16:38: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)949728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:16]POST & json_proto [16:38:16]process_json_proto [16:38:16]json parsed OK: [16:38:16]protocol is kg_v1.0 [16:38:16]action value=close_receipt [16:38:16]process_action close_receipt [16:38:16]cmd_close_receipt [16:38:16]MH_GetDate [16:38:16]Write to MH i2c: F0 00 00 4F 67 A5 [16:38:16]Write i2c OK [16:38:16]MH_I2C_Read... [16:38:16]Read from MH i2c: F0 [16:38:16]MH_I2C_Read... [16:38:16]Read from MH i2c: F0 09 00 [16:38:16]MH_I2C_Read... [16:38:16]Read from MH i2c: F0 09 00 4F 67 00 7F C5 A7 66 90 0F 3E 66 42 [16:38:16]GetLastDocTimeStamp 1722271073 [16:38:16]current date 1722271103 [16:38:16]FM_GetShiftState [16:38:16]SAM_PROTO_GetShiftState [16:38:16]wFMCommunicate request_size=4 [16:38:16]MH_SAM_APDU [16:38:16]CAPDU: 80 13 01 00 [16:38:16]Write to MH i2c: E2 08 00 50 67 80 13 01 00 00 00 00 00 34 [16:38:16]Write i2c OK [16:38:16]MH_I2C_Read... [16:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:16]Read from MH i2c: E2 [16:38:16]MH_I2C_Read... [16:38:16]Read from MH i2c: E2 0E 00 [16:38:16]MH_I2C_Read... [16:38:16]Read from MH i2c: E2 0E 00 50 67 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 62 [16:38:16]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:38:16]wFMCommunicate OK [16:38:16]SAM_PROTO_GetShiftState done [16:38:16]FM_GetShiftState done [16:38:16]opened in 1722211641 [16:38:16]opened+sec_in_day 1722298041 [16:38:16]quantity*price = 60003 [16:38:16]sum+1 = 60004 [16:38:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 212 29.07.2024 16:38 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118836 ФПД: 142188417536919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163823&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118836&fm=142188417536919&tin=02508201610067®Number=0000000000092660&sum=60000 [16:38:17]StoreToDocumentArchive [16:38:17]shift 434 fd 118836 [16:38:17]save to /storage/0434/doc_00118836 [16:38:17]save last doc name /storage/0434/doc_00118836 to /storage/kkm_last_doc_name [16:38:17]save OK [16:38:17]Clear old archive folders... [16:38:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:38:17]tlvbuf is 01E89AF0 [16:38:17]SAM_PROTO_ClearQueue [16:38:17]wFMCommunicate request_size=4 [16:38:17]MH_SAM_APDU [16:38:17]CAPDU: 80 09 00 00 [16:38:17]Write to MH i2c: E2 08 00 5D 67 80 09 00 00 00 00 00 00 36 [16:38:17]Write i2c OK [16:38:17]MH_I2C_Read... [16:38:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:17]Read from MH i2c: E2 [16:38:17]MH_I2C_Read... [16:38:17]Read from MH i2c: E2 03 00 [16:38:17]MH_I2C_Read... [16:38:17]Read from MH i2c: E2 03 00 5D 67 00 90 00 38 [16:38:17]RAPDU: 90 00 [16:38:17]wFMCommunicate OK [16:38:17]SAM_PROTO_ClearQueue done [16:38:17]KKMCreateOFDPacket [16:38:17]OFDProtocolAddRootSTLVToBuf [16:38:17]FM_MakeSignedData [16:38:17]FM_MakeSignedData [16:38:17]SAM_PROTO_SignData [16:38:17]wFMCommunicate request_size=4 [16:38:17]MH_SAM_APDU [16:38:17]CAPDU: 80 0D 01 02 [16:38:17]Write to MH i2c: E2 08 00 5E 67 80 0D 01 02 00 00 00 00 3E [16:38:17]Write i2c OK [16:38:17]MH_I2C_Read... [16:38:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:17]Read from MH i2c: E2 [16:38:17]MH_I2C_Read... [16:38:17]Read from MH i2c: E2 03 00 [16:38:17]MH_I2C_Read... [16:38:17]Read from MH i2c: E2 03 00 5E 67 00 90 00 39 [16:38:17]RAPDU: 90 00 [16:38:17]wFMCommunicate OK [16:38:17]wFMCommunicate request_size=255 [16:38:17]MH_SAM_APDU [16:38: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 7F C5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 D0 01 00 35 04 06 00 81 [16:38:18]Write to MH i2c: E2 02 01 5F 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 7F C5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 D0 01 00 35 04 06 00 81 00 00 E7 [16:38:18]Write i2c OK [16:38:18]MH_I2C_Read... [16:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:18]Read from MH i2c: E2 [16:38:18]MH_I2C_Read... [16:38:18]Read from MH i2c: E2 03 00 [16:38:18]MH_I2C_Read... [16:38:18]Read from MH i2c: E2 03 00 5F 67 00 90 00 3A [16:38:18]RAPDU: 90 00 [16:38:18]wFMCommunicate OK [16:38:18]wFMCommunicate request_size=10 [16:38:18]MH_SAM_APDU [16:38:18]CAPDU: 80 0D 02 02 05 51 D2 1E 53 97 [16:38:18]Write to MH i2c: E2 0D 00 60 67 80 0D 02 02 05 00 51 D2 1E 53 97 00 00 76 [16:38:18]Write i2c OK [16:38:18]MH_I2C_Read... [16:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:18]Read from MH i2c: E2 [16:38:18]MH_I2C_Read... [16:38:18]Read from MH i2c: E2 03 00 [16:38:18]MH_I2C_Read... [16:38:18]Read from MH i2c: E2 03 00 60 67 00 90 00 3B [16:38:18]RAPDU: 90 00 [16:38:18]wFMCommunicate OK [16:38:18]wFMCommunicate request_size=4 [16:38:18]MH_SAM_APDU [16:38:18]CAPDU: 80 0D 03 02 [16:38:18]Write to MH i2c: E2 08 00 61 67 80 0D 03 02 00 00 00 00 43 [16:38:18]Write i2c OK [16:38:18]MH_I2C_Read... [16:38:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:18]Read from MH i2c: E2 [16:38:18]MH_I2C_Read... [16:38:18]Read from MH i2c: E2 0B 00 [16:38:18]MH_I2C_Read... [16:38:18]Read from MH i2c: E2 0B 00 61 67 00 2E 4B BC EA D3 93 0A 98 90 00 6B [16:38:18]RAPDU: 2E 4B BC EA D3 93 0A 98 90 00 [16:38:18]wFMCommunicate OK [16:38:18]SAM_PROTO_SignData done [16:38:18]FM_MakeSignedData done [16:38:18]CreateOFDProtocolMessage [16:38:18]wFMCommunicate request_size=4 [16:38:18]MH_SAM_APDU [16:38:18]CAPDU: 80 11 00 00 [16:38:18]Write to MH i2c: E2 08 00 62 67 80 11 00 00 00 00 00 00 43 [16:38:18]Write i2c OK [16:38:18]MH_I2C_Read... [16:38:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:18]Read from MH i2c: E2 [16:38:18]MH_I2C_Read... [16:38:18]Read from MH i2c: E2 17 00 [16:38:18]MH_I2C_Read... [16:38:18]Read from MH i2c: E2 17 00 62 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9E [16:38:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:38:18]wFMCommunicate OK [16:38:18]CreateOFDProtocolMessage done [16:38:18]OFDSenderStorePacket 118836 [16:38:18]StoreOFDPacket docnum=118836 [16:38:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B7 13 07 01 FF 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 7F C5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 D0 01 00 35 04 06 00 81 51 D2 1E 53 97 2E 4B BC EA D3 93 0A 98 [16:38:18]CheckFolder [16:38:18]dirname=/storage/ofd_packets [16:38:18]CheckFolder done [16:38:18]ProducePacketName [16:38:18]name=ofd_packets/00118836 [16:38:18]NVStorageSaveData ofd_packets/00118836 [16:38:18]File name is /storage/ofd_packets/00118836 [16:38:18]Write 301 bytes [16:38:18]NVStorageSaveData done [16:38:18]OFDSenderStorePacket done [16:38:18]KKMCreateOFDPacket done [16:38:18]NVStorageSaveData kkm_last_timestamp [16:38:18]File name is /storage/kkm_last_timestamp [16:38:18]Write 4 bytes [16:38:18]NVStorageSaveData done [16:38:18]ExternCall_PrintAddStr [16:38:18]wPrintStart [16:38:18]Write to MH i2c: 01 00 00 63 67 CA [16:38:18]Write i2c OK [16:38:18]MH_I2C_Read... [16:38:18]Read from MH i2c: 01 [16:38:18]MH_I2C_Read... [16:38:18]Read from MH i2c: 01 07 00 [16:38:18]MH_I2C_Read... [16:38:18]Read from MH i2c: 01 07 00 63 67 00 00 00 00 00 FF 0F DF [16:38:18]RasterBufferAndPrint [16:38:18]line Счет N : (1)949728 [16:38:18]line ИНН: 02508201610067 [16:38:18]line Контрольно-Кассовый Чек [16:38:18]line ПРОДАЖА [16:38:18]line ТРК (МРК, ГНК) : 31 [16:38:18]line Товар: 2710124130 [16:38:18]line Аи-92-К-4 [16:38:18]line 8.850 * 67.80 [16:38:18]line = 600.03 [16:38:18]line НДС 12% НСП 1% [16:38:18]line > о реализуемом товаре [16:38:18]line ОКРУГЛЕНИЕ: -0.03 [16:38:18]line ИТОГО: 600.00 [16:38:18]line Внесено: 600.00 [16:38:18]line СДАЧА: 0.00 [16:38:18]line НСП 1% : 5.31 [16:38:18]line НДС 12% : 63.72 [16:38:18]line Наличными: 600.00 [16:38:18]line Безнал.: 0.00 [16:38:18]line Место: АЗС № 134 "Партнер Нефть" [16:38:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:38:18]line СНО: Общий режим [16:38:18]line Чек 212 29.07.2024 16:38 [16:38:18]line Смена: 434 ФФД: 1.0 [16:38:18]line ЗНМ: 0300000044 [16:38:18]line РНМ: 0000000000092660 [16:38:18]line Версия ККМ: 001 [16:38:18]line ФМ: 0000000000874939 [16:38:18]line ФД: 118836 [16:38:18]line ФПД: 142188417536919 [16:38:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163823&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118836&fm=142188417536919&tin=02508201610067®Number=0000000000092660&sum=60000 [16:38:18]written 0, free lines is 4095 [16:38:18]OFD Sender: Processing packet 118836 [packets to send 86, broken 85] [16:38:18]ProducePacketName [16:38:18]name=ofd_packets/00118836 [16:38:18]OFD Sender: To server: pG, [16:38:18]CommunicateWithHost lk.salyk.kg:30040 [16:38:18]ConnectInit lk.salyk.kg [16:38:18]Connected sock=10 [16:38:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B7 13 07 01 FF 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 7F C5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 D0 01 00 35 04 06 00 81 51 D2 1E 53 97 2E 4B BC EA D3 93 0A 98 [16:38:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B9 C5 47 00 75 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 D0 01 00 F4 03 04 00 0C 73 A7 66 B6 04 01 00 00 D7 3D F4 F4 EF E3 3C 57 [16:38:19]CommunicateWithHost err = 0 [16:38:19]CheckOFDResponse [16:38:19]1017 (14) - 77093643461234 [16:38:19]1041 (16) - 0000000000874939 [16:38:19]1040 (4) - 118836 [16:38:19]1012 (4) - 29.07.2024 10:46 [16:38:19]1206 (1) - 0 [16:38:19]OFD Sender: Remove packet 118836 [16:38:19]ProducePacketName [16:38:19]name=ofd_packets/00118836 [16:38:19]NVStorageDeleteData [16:38:19]Write to MH i2c: 01 00 00 8D 67 F4 [16:38:19]Write i2c OK [16:38:19]MH_I2C_Read... [16:38:19]Read from MH i2c: 01 [16:38:19]MH_I2C_Read... [16:38:19]Read from MH i2c: 01 07 00 [16:38:19]MH_I2C_Read... [16:38:19]Read from MH i2c: 01 07 00 8D 67 00 00 00 00 00 E5 0C EC [16:38:19]RasterBufferAndPrint [16:38:19]line [16:38:19]line [16:38:19]line [16:38:19]line [16:38:19]line [16:38:19]written 0, free lines is 3307 [16:38:19]MH_Cut [16:38:19]Write to MH i2c: D1 01 00 94 67 01 CD [16:38:19]Write i2c OK [16:38:19]MH_I2C_Read... [16:38:19]Read from MH i2c: D1 [16:38:19]MH_I2C_Read... [16:38:19]Read from MH i2c: D1 01 00 [16:38:19]MH_I2C_Read... [16:38:19]Read from MH i2c: D1 01 00 94 67 00 CC [16:38:19]Write to MH i2c: 01 00 00 95 67 FC [16:38:19]Write i2c OK [16:38:19]MH_I2C_Read... [16:38:19]OFD Sender: No OFD packet to send [16:38:19]*** Cut start [16:38:19]*** Partial cut [16:38:19]*** CUTSNS_PIN = 1 [16:38:19]*** CUTSNS_PIN = 0 [16:38:20]*** Brake cut motor [16:38:20]Read from MH i2c: 01 [16:38:20]MH_I2C_Read... [16:38:20]*** Stop cut motor [16:38:20]*** Cut end [16:38:20]Read from MH i2c: 01 07 00 [16:38:20]MH_I2C_Read... [16:38:20]Read from MH i2c: 01 07 00 95 67 00 00 00 00 00 FF 0F 11 [16:38:20]process_action close_receipt done [16:38:20]requested_data is exist [16:38:20]produce_requested_data [16:38:20]requested_item fm.sn is exist - process it [16:38:20]wFMCommunicate request_size=4 [16:38:20]MH_SAM_APDU [16:38:20]CAPDU: 80 11 00 00 [16:38:20]Write to MH i2c: E2 08 00 96 67 80 11 00 00 00 00 00 00 77 [16:38:20]Write i2c OK [16:38:20]MH_I2C_Read... [16:38:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:20]Read from MH i2c: E2 [16:38:20]MH_I2C_Read... [16:38:20]Read from MH i2c: E2 17 00 [16:38:20]MH_I2C_Read... [16:38:20]Read from MH i2c: E2 17 00 96 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D2 [16:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:38:20]wFMCommunicate OK [16:38:20]requested_item fd.num is exist - process it [16:38:20]SAM_PROTO_GetFieldsCounters [16:38:20]wFMCommunicate request_size=4 [16:38:20]MH_SAM_APDU [16:38:20]CAPDU: 80 13 00 00 [16:38:20]Write to MH i2c: E2 08 00 97 67 80 13 00 00 00 00 00 00 7A [16:38:20]Write i2c OK [16:38:20]MH_I2C_Read... [16:38:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:20]Read from MH i2c: E2 [16:38:20]MH_I2C_Read... [16:38:20]Read from MH i2c: E2 62 00 [16:38:20]MH_I2C_Read... [16:38:20]Read from MH i2c: E2 62 00 97 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 34 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [16:38: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 34 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:20]wFMCommunicate OK [16:38:20]SAM_PROTO_GetFieldsCounters done [16:38:20]requested_item shift.num is exist - process it [16:38:20]requested_item shift.opened is exist - process it [16:38:20]req_shift_opened [16:38:20]FM_GetShiftState [16:38:20]SAM_PROTO_GetShiftState [16:38:20]wFMCommunicate request_size=4 [16:38:20]MH_SAM_APDU [16:38:20]CAPDU: 80 13 01 00 [16:38:20]Write to MH i2c: E2 08 00 98 67 80 13 01 00 00 00 00 00 7C [16:38:20]Write i2c OK [16:38:20]MH_I2C_Read... [16:38:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:20]Read from MH i2c: E2 [16:38:20]MH_I2C_Read... [16:38:20]Read from MH i2c: E2 0E 00 [16:38:20]MH_I2C_Read... [16:38:20]Read from MH i2c: E2 0E 00 98 67 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 AA [16:38:20]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:38:20]wFMCommunicate OK [16:38:20]SAM_PROTO_GetShiftState done [16:38:20]FM_GetShiftState done [16:38:20]req_shift_opened done [16:38:20]requested_item shift.open_date is exist - process it [16:38:20]req_shift_open_date [16:38:20]req_shift_open_date done [16:38:20]produce_requested_data done [16:38:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118836,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:38:20]process_action_free close_receipt [16:38:20]json_value_free [16:38:20]json_value_free done [16:38:20]process_json_proto returns [16:38:20]Send response to host [16:38:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118836,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:38:20]free response buf [16:38:20]execute_script done [16:38:20]execute_script returns [16:38:20]free content buf [16:38:20]Sock 9.Close socket [16:38:20]Sock 9.Thread stoped [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:30]accept exits with 7 [16:38:30]New connection [16:38:30]New thread 3067239780 created [16:38:30]Thread 3067383140 joined [16:38:30]Waiting for new connection... [16:38:30] Sock 7.Parse request [16:38:30]Sock 7.Check first char [16:38:30]Sock 7.First char is OK [16:38:30]request: POST /json_proto HTTP/1.0 [16:38:30]Method: POST [16:38:30]URL: /json_proto [16:38:30]Method is POST - this is cgi request [16:38:30]url: /json_proto [16:38:30]query_string will be loaded in cgi processing [16:38:30]execute_cgi json_proto POST (null) [16:38:30]execute_cgi path=json_proto method=POST [16:38:30]POST find Content-Length [16:38:30]Host: 172.17.45.7:8080 [16:38:30]Content-Length: 674 [16:38:30]Content-Type: application/json [16:38:30] [16:38:30]POST finish read [16:38:30]Found Content-Length = 674 [16:38:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:30]execute_script... [16:38:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:30]POST & json_proto [16:38:30]process_json_proto [16:38:30]json parsed OK: [16:38:30]protocol is kg_v1.0 [16:38:30]action value=close_receipt [16:38:30]process_action close_receipt [16:38:30]cmd_close_receipt [16:38:30]MH_GetDate [16:38:30]Write to MH i2c: F0 00 00 99 67 EF [16:38:30]Write i2c OK [16:38:30]MH_I2C_Read... [16:38:30]Read from MH i2c: F0 [16:38:30]MH_I2C_Read... [16:38:30]Read from MH i2c: F0 09 00 [16:38:30]MH_I2C_Read... [16:38:30]Read from MH i2c: F0 09 00 99 67 00 8C C5 A7 66 90 0F 3E 66 99 [16:38:30]GetLastDocTimeStamp 1722271103 [16:38:30]current date 1722271116 [16:38:30]FM_GetShiftState [16:38:30]SAM_PROTO_GetShiftState [16:38:30]wFMCommunicate request_size=4 [16:38:30]MH_SAM_APDU [16:38:30]CAPDU: 80 13 01 00 [16:38:30]Write to MH i2c: E2 08 00 9A 67 80 13 01 00 00 00 00 00 7E [16:38:30]Write i2c OK [16:38:30]MH_I2C_Read... [16:38:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:30]Read from MH i2c: E2 [16:38:30]MH_I2C_Read... [16:38:30]Read from MH i2c: E2 0E 00 [16:38:30]MH_I2C_Read... [16:38:30]Read from MH i2c: E2 0E 00 9A 67 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 AC [16:38:30]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:38:30]wFMCommunicate OK [16:38:30]SAM_PROTO_GetShiftState done [16:38:30]FM_GetShiftState done [16:38:30]opened in 1722211641 [16:38:30]opened+sec_in_day 1722298041 [16:38:30]quantity*price = 50063 [16:38:30]sum+1 = 50064 [16:38:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 213 29.07.2024 16:38 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118837 ФПД: 267789889829944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163836&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118837&fm=267789889829944&tin=02508201610067®Number=0000000000092660&sum=50000 [16:38:31]StoreToDocumentArchive [16:38:31]shift 434 fd 118837 [16:38:31]save to /storage/0434/doc_00118837 [16:38:31]save last doc name /storage/0434/doc_00118837 to /storage/kkm_last_doc_name [16:38:31]save OK [16:38:31]Clear old archive folders... [16:38:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:38:31]tlvbuf is 01EC0340 [16:38:31]SAM_PROTO_ClearQueue [16:38:31]wFMCommunicate request_size=4 [16:38:31]MH_SAM_APDU [16:38:31]CAPDU: 80 09 00 00 [16:38:31]Write to MH i2c: E2 08 00 A7 67 80 09 00 00 00 00 00 00 80 [16:38:31]Write i2c OK [16:38:31]MH_I2C_Read... [16:38:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:31]Read from MH i2c: E2 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 03 00 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 03 00 A7 67 00 90 00 82 [16:38:31]RAPDU: 90 00 [16:38:31]wFMCommunicate OK [16:38:31]SAM_PROTO_ClearQueue done [16:38:31]KKMCreateOFDPacket [16:38:31]OFDProtocolAddRootSTLVToBuf [16:38:31]FM_MakeSignedData [16:38:31]FM_MakeSignedData [16:38:31]SAM_PROTO_SignData [16:38:31]wFMCommunicate request_size=4 [16:38:31]MH_SAM_APDU [16:38:31]CAPDU: 80 0D 01 02 [16:38:31]Write to MH i2c: E2 08 00 A8 67 80 0D 01 02 00 00 00 00 88 [16:38:31]Write i2c OK [16:38:31]MH_I2C_Read... [16:38:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:31]Read from MH i2c: E2 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 03 00 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 03 00 A8 67 00 90 00 83 [16:38:31]RAPDU: 90 00 [16:38:31]wFMCommunicate OK [16:38:31]wFMCommunicate request_size=255 [16:38:31]MH_SAM_APDU [16:38:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 8C C5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 D0 01 00 35 04 06 00 F3 8D B1 41 [16:38:31]Write to MH i2c: E2 02 01 A9 67 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 8C C5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 D0 01 00 35 04 06 00 F3 8D B1 41 00 00 FE [16:38:31]Write i2c OK [16:38:31]MH_I2C_Read... [16:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:31]Read from MH i2c: E2 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 03 00 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 03 00 A9 67 00 90 00 84 [16:38:31]RAPDU: 90 00 [16:38:31]wFMCommunicate OK [16:38:31]wFMCommunicate request_size=7 [16:38:31]MH_SAM_APDU [16:38:31]CAPDU: 80 0D 02 02 02 FC 38 [16:38:31]Write to MH i2c: E2 0A 00 AA 67 80 0D 02 02 02 00 FC 38 00 00 C3 [16:38:31]Write i2c OK [16:38:31]MH_I2C_Read... [16:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:31]Read from MH i2c: E2 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 03 00 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 03 00 AA 67 00 90 00 85 [16:38:31]RAPDU: 90 00 [16:38:31]wFMCommunicate OK [16:38:31]wFMCommunicate request_size=4 [16:38:31]MH_SAM_APDU [16:38:31]CAPDU: 80 0D 03 02 [16:38:31]Write to MH i2c: E2 08 00 AB 67 80 0D 03 02 00 00 00 00 8D [16:38:31]Write i2c OK [16:38:31]MH_I2C_Read... [16:38:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:31]Read from MH i2c: E2 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 0B 00 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 0B 00 AB 67 00 4F 42 21 35 BF 34 98 A5 90 00 A5 [16:38:31]RAPDU: 4F 42 21 35 BF 34 98 A5 90 00 [16:38:31]wFMCommunicate OK [16:38:31]SAM_PROTO_SignData done [16:38:31]FM_MakeSignedData done [16:38:31]CreateOFDProtocolMessage [16:38:31]wFMCommunicate request_size=4 [16:38:31]MH_SAM_APDU [16:38:31]CAPDU: 80 11 00 00 [16:38:31]Write to MH i2c: E2 08 00 AC 67 80 11 00 00 00 00 00 00 8D [16:38:31]Write i2c OK [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 [16:38:31]MH_I2C_Read... [16:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:31]Read from MH i2c: E2 17 00 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: E2 17 00 AC 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E8 [16:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:38:31]wFMCommunicate OK [16:38:31]CreateOFDProtocolMessage done [16:38:31]OFDSenderStorePacket 118837 [16:38:31]StoreOFDPacket docnum=118837 [16:38:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 7C FC 04 01 DD 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 8C C5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 D0 01 00 35 04 06 00 F3 8D B1 41 FC 38 4F 42 21 35 BF 34 98 A5 [16:38:31]CheckFolder [16:38:31]dirname=/storage/ofd_packets [16:38:31]CheckFolder done [16:38:31]ProducePacketName [16:38:31]name=ofd_packets/00118837 [16:38:31]NVStorageSaveData ofd_packets/00118837 [16:38:31]File name is /storage/ofd_packets/00118837 [16:38:31]Write 298 bytes [16:38:31]NVStorageSaveData done [16:38:31]OFDSenderStorePacket done [16:38:31]KKMCreateOFDPacket done [16:38:31]NVStorageSaveData kkm_last_timestamp [16:38:31]File name is /storage/kkm_last_timestamp [16:38:31]Write 4 bytes [16:38:31]NVStorageSaveData done [16:38:31]ExternCall_PrintAddStr [16:38:31]wPrintStart [16:38:31]Write to MH i2c: 01 00 00 AD 67 14 [16:38:31]Write i2c OK [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: 01 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: 01 07 00 [16:38:31]MH_I2C_Read... [16:38:31]Read from MH i2c: 01 07 00 AD 67 00 00 00 00 00 FF 0F 29 [16:38:31]RasterBufferAndPrint [16:38:31]line Счет N : (1)949729 [16:38:31]line ИНН: 02508201610067 [16:38:31]line Контрольно-Кассовый Чек [16:38:31]line ПРОДАЖА [16:38:31]line ТРК (МРК, ГНК) : 64 [16:38:31]line Товар: 2710194800 [16:38:31]line ДТ-К-5 [16:38:31]line 6.570 * 76.20 [16:38:31]line = 500.63 [16:38:31]line НДС 12% НСП 1% [16:38:31]line > о реализуемом товаре [16:38:31]line ОКРУГЛЕНИЕ: -0.63 [16:38:31]line ИТОГО: 500.00 [16:38:31]line Внесено: 500.00 [16:38:31]line СДАЧА: 0.00 [16:38:31]line НСП 1% : 4.43 [16:38:31]line НДС 12% : 53.16 [16:38:31]line Наличными: 500.00 [16:38:31]line Безнал.: 0.00 [16:38:31]line Место: АЗС № 134 "Партнер Нефть" [16:38:31]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:38:31]line СНО: Общий режим [16:38:31]line Чек 213 29.07.2024 16:38 [16:38:31]line Смена: 434 ФФД: 1.0 [16:38:31]line ЗНМ: 0300000044 [16:38:31]line РНМ: 0000000000092660 [16:38:31]line Версия ККМ: 001 [16:38:31]line ФМ: 0000000000874939 [16:38:31]line ФД: 118837 [16:38:31]line ФПД: 267789889829944 [16:38:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163836&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118837&fm=267789889829944&tin=02508201610067®Number=0000000000092660&sum=50000 [16:38:31]written 0, free lines is 4095 [16:38:32]OFD Sender: Processing packet 118837 [packets to send 86, broken 85] [16:38:32]ProducePacketName [16:38:32]name=ofd_packets/00118837 [16:38:32]OFD Sender: To server: pG, [16:38:32]CommunicateWithHost lk.salyk.kg:30040 [16:38:32]ConnectInit lk.salyk.kg [16:38:32]Connected sock=10 [16:38:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 7C FC 04 01 DD 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 8C C5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 D0 01 00 35 04 06 00 F3 8D B1 41 FC 38 4F 42 21 35 BF 34 98 A5 [16:38:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A6 37 47 00 CC 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 D0 01 00 F4 03 04 00 19 73 A7 66 B6 04 01 00 00 E9 0F 4C 18 8F CC D4 22 [16:38:32]CommunicateWithHost err = 0 [16:38:32]CheckOFDResponse [16:38:32]1017 (14) - 77093643461234 [16:38:32]1041 (16) - 0000000000874939 [16:38:32]1040 (4) - 118837 [16:38:32]1012 (4) - 29.07.2024 10:46 [16:38:32]1206 (1) - 0 [16:38:32]OFD Sender: Remove packet 118837 [16:38:32]ProducePacketName [16:38:32]name=ofd_packets/00118837 [16:38:32]NVStorageDeleteData [16:38:32]Write to MH i2c: 01 00 00 D7 67 3E [16:38:32]Write i2c OK [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: 01 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: 01 07 00 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: 01 07 00 D7 67 00 00 00 00 00 F3 0C 44 [16:38:32]RasterBufferAndPrint [16:38:32]line [16:38:32]line [16:38:32]line [16:38:32]line [16:38:32]line [16:38:32]written 0, free lines is 3323 [16:38:32]MH_Cut [16:38:32]Write to MH i2c: D1 01 00 DE 67 01 17 [16:38:32]Write i2c OK [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: D1 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: D1 01 00 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: D1 01 00 DE 67 00 16 [16:38:32]Write to MH i2c: 01 00 00 DF 67 46 [16:38:32]Write i2c OK [16:38:32]MH_I2C_Read... [16:38:32]OFD Sender: No OFD packet to send [16:38:33]*** Cut start [16:38:33]*** Partial cut [16:38:33]*** CUTSNS_PIN = 1 [16:38:33]*** CUTSNS_PIN = 0 [16:38:33]*** Brake cut motor [16:38:33]Read from MH i2c: 01 [16:38:33]MH_I2C_Read... [16:38:33]*** Stop cut motor [16:38:33]*** Cut end [16:38:33]Read from MH i2c: 01 07 00 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: 01 07 00 DF 67 00 00 00 00 00 FF 0F 5B [16:38:33]process_action close_receipt done [16:38:33]requested_data is exist [16:38:33]produce_requested_data [16:38:33]requested_item fm.sn is exist - process it [16:38:33]wFMCommunicate request_size=4 [16:38:33]MH_SAM_APDU [16:38:33]CAPDU: 80 11 00 00 [16:38:33]Write to MH i2c: E2 08 00 E0 67 80 11 00 00 00 00 00 00 C1 [16:38:33]Write i2c OK [16:38:33]MH_I2C_Read... [16:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:33]Read from MH i2c: E2 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 17 00 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 17 00 E0 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1C [16:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:38:33]wFMCommunicate OK [16:38:33]requested_item fd.num is exist - process it [16:38:33]SAM_PROTO_GetFieldsCounters [16:38:33]wFMCommunicate request_size=4 [16:38:33]MH_SAM_APDU [16:38:33]CAPDU: 80 13 00 00 [16:38:33]Write to MH i2c: E2 08 00 E1 67 80 13 00 00 00 00 00 00 C4 [16:38:33]Write i2c OK [16:38:33]MH_I2C_Read... [16:38:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:33]Read from MH i2c: E2 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 62 00 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 62 00 E1 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 35 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [16:38:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 35 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:33]wFMCommunicate OK [16:38:33]SAM_PROTO_GetFieldsCounters done [16:38:33]requested_item shift.num is exist - process it [16:38:33]requested_item shift.opened is exist - process it [16:38:33]req_shift_opened [16:38:33]FM_GetShiftState [16:38:33]SAM_PROTO_GetShiftState [16:38:33]wFMCommunicate request_size=4 [16:38:33]MH_SAM_APDU [16:38:33]CAPDU: 80 13 01 00 [16:38:33]Write to MH i2c: E2 08 00 E2 67 80 13 01 00 00 00 00 00 C6 [16:38:33]Write i2c OK [16:38:33]MH_I2C_Read... [16:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:33]Read from MH i2c: E2 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 0E 00 [16:38:33]MH_I2C_Read... [16:38:33]Read from MH i2c: E2 0E 00 E2 67 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F4 [16:38:33]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:38:33]wFMCommunicate OK [16:38:33]SAM_PROTO_GetShiftState done [16:38:33]FM_GetShiftState done [16:38:33]req_shift_opened done [16:38:33]requested_item shift.open_date is exist - process it [16:38:33]req_shift_open_date [16:38:33]req_shift_open_date done [16:38:33]produce_requested_data done [16:38:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118837,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:38:33]process_action_free close_receipt [16:38:33]json_value_free [16:38:33]json_value_free done [16:38:33]process_json_proto returns [16:38:33]Send response to host [16:38:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118837,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:38:33]free response buf [16:38:33]execute_script done [16:38:33]execute_script returns [16:38:33]free content buf [16:38:33]Sock 7.Close socket [16:38:33]Sock 7.Thread stoped [16:38:37]OFD Sender: No OFD packet to send [16:38:42]OFD Sender: No OFD packet to send [16:38:47]OFD Sender: No OFD packet to send [16:38:52]OFD Sender: No OFD packet to send [16:38:57]OFD Sender: No OFD packet to send [16:39:02]OFD Sender: No OFD packet to send [16:39:07]OFD Sender: No OFD packet to send [16:39:12]OFD Sender: No OFD packet to send [16:39:17]OFD Sender: No OFD packet to send [16:39:22]OFD Sender: No OFD packet to send [16:39:27]OFD Sender: No OFD packet to send [16:39:32]OFD Sender: No OFD packet to send [16:39:37]OFD Sender: No OFD packet to send [16:39:42]OFD Sender: No OFD packet to send [16:39:47]OFD Sender: No OFD packet to send [16:39:52]OFD Sender: No OFD packet to send [16:39:57]OFD Sender: No OFD packet to send [16:40:02]OFD Sender: No OFD packet to send [16:40:07]OFD Sender: No OFD packet to send [16:40:12]OFD Sender: No OFD packet to send [16:40:17]OFD Sender: No OFD packet to send [16:40:22]OFD Sender: No OFD packet to send [16:40:27]OFD Sender: No OFD packet to send [16:40:32]OFD Sender: No OFD packet to send [16:40:37]OFD Sender: No OFD packet to send [16:40:42]OFD Sender: No OFD packet to send [16:40:47]OFD Sender: No OFD packet to send [16:40:52]OFD Sender: No OFD packet to send [16:40:57]OFD Sender: No OFD packet to send [16:41:02]OFD Sender: No OFD packet to send [16:41:07]OFD Sender: No OFD packet to send [16:41:12]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:32]accept exits with 9 [16:41:32]New connection [16:41:32]New thread 3067383140 created [16:41:32]Thread 3067239780 joined [16:41:32]Waiting for new connection... [16:41:32] Sock 9.Parse request [16:41:32]Sock 9.Check first char [16:41:32]Sock 9.First char is OK [16:41:32]request: POST /json_proto HTTP/1.0 [16:41:32]Method: POST [16:41:32]URL: /json_proto [16:41:32]Method is POST - this is cgi request [16:41:32]url: /json_proto [16:41:32]query_string will be loaded in cgi processing [16:41:32]execute_cgi json_proto POST (null) [16:41:32]execute_cgi path=json_proto method=POST [16:41:32]POST find Content-Length [16:41:32]Host: 172.17.45.7:8080 [16:41:32]Content-Length: 820 [16:41:32]Content-Type: application/json [16:41:32] [16:41:32]POST finish read [16:41:32]Found Content-Length = 820 [16:41:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:32]execute_script... [16:41:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:32]POST & json_proto [16:41:32]process_json_proto [16:41:32]json parsed OK: [16:41:32]protocol is kg_v1.0 [16:41:32]action value=close_receipt [16:41:32]process_action close_receipt [16:41:32]cmd_close_receipt [16:41:32]MH_GetDate [16:41:32]Write to MH i2c: F0 00 00 E3 67 39 [16:41:32]Write i2c OK [16:41:32]MH_I2C_Read... [16:41:32]Read from MH i2c: F0 [16:41:32]MH_I2C_Read... [16:41:32]Read from MH i2c: F0 09 00 [16:41:32]MH_I2C_Read... [16:41:32]Read from MH i2c: F0 09 00 E3 67 00 42 C6 A7 66 90 0F 3E 66 9A [16:41:32]GetLastDocTimeStamp 1722271116 [16:41:32]current date 1722271298 [16:41:32]FM_GetShiftState [16:41:32]SAM_PROTO_GetShiftState [16:41:32]wFMCommunicate request_size=4 [16:41:32]MH_SAM_APDU [16:41:32]CAPDU: 80 13 01 00 [16:41:32]Write to MH i2c: E2 08 00 E4 67 80 13 01 00 00 00 00 00 C8 [16:41:32]Write i2c OK [16:41:32]MH_I2C_Read... [16:41:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:32]Read from MH i2c: E2 [16:41:32]MH_I2C_Read... [16:41:32]Read from MH i2c: E2 0E 00 [16:41:32]MH_I2C_Read... [16:41:32]Read from MH i2c: E2 0E 00 E4 67 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F6 [16:41:32]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:41:32]wFMCommunicate OK [16:41:32]SAM_PROTO_GetShiftState done [16:41:32]FM_GetShiftState done [16:41:32]opened in 1722211641 [16:41:32]opened+sec_in_day 1722298041 [16:41:32]quantity*price = 998982 [16:41:32]sum+1 = 998983 [16:41:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 9989.00 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 214 29.07.2024 16:41 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118838 ФПД: 241566940626560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164138&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118838&fm=241566940626560&tin=02508201610067®Number=0000000000092660&sum=998900 [16:41:33]StoreToDocumentArchive [16:41:33]shift 434 fd 118838 [16:41:33]save to /storage/0434/doc_00118838 [16:41:33]save last doc name /storage/0434/doc_00118838 to /storage/kkm_last_doc_name [16:41:33]save OK [16:41:33]Clear old archive folders... [16:41:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:41:33]tlvbuf is 01EB9FB0 [16:41:33]SAM_PROTO_ClearQueue [16:41:33]wFMCommunicate request_size=4 [16:41:33]MH_SAM_APDU [16:41:33]CAPDU: 80 09 00 00 [16:41:33]Write to MH i2c: E2 08 00 F1 67 80 09 00 00 00 00 00 00 CA [16:41:33]Write i2c OK [16:41:33]MH_I2C_Read... [16:41:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:33]Read from MH i2c: E2 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 03 00 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 03 00 F1 67 00 90 00 CC [16:41:33]RAPDU: 90 00 [16:41:33]wFMCommunicate OK [16:41:33]SAM_PROTO_ClearQueue done [16:41:33]KKMCreateOFDPacket [16:41:33]OFDProtocolAddRootSTLVToBuf [16:41:33]FM_MakeSignedData [16:41:33]FM_MakeSignedData [16:41:33]SAM_PROTO_SignData [16:41:33]wFMCommunicate request_size=4 [16:41:33]MH_SAM_APDU [16:41:33]CAPDU: 80 0D 01 02 [16:41:33]Write to MH i2c: E2 08 00 F2 67 80 0D 01 02 00 00 00 00 D2 [16:41:33]Write i2c OK [16:41:33]MH_I2C_Read... [16:41:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:33]Read from MH i2c: E2 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 03 00 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 03 00 F2 67 00 90 00 CD [16:41:33]RAPDU: 90 00 [16:41:33]wFMCommunicate OK [16:41:33]wFMCommunicate request_size=255 [16:41:33]MH_SAM_APDU [16:41:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 42 C6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 D0 01 00 35 04 06 00 DB B4 2F AF [16:41:33]Write to MH i2c: E2 02 01 F3 67 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 42 C6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 D0 01 00 35 04 06 00 DB B4 2F AF 00 00 0E [16:41:33]Write i2c OK [16:41:33]MH_I2C_Read... [16:41:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:33]Read from MH i2c: E2 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 03 00 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 03 00 F3 67 00 90 00 CE [16:41:33]RAPDU: 90 00 [16:41:33]wFMCommunicate OK [16:41:33]wFMCommunicate request_size=7 [16:41:33]MH_SAM_APDU [16:41:33]CAPDU: 80 0D 02 02 02 7E 80 [16:41:33]Write to MH i2c: E2 0A 00 F4 67 80 0D 02 02 02 00 7E 80 00 00 D7 [16:41:33]Write i2c OK [16:41:33]MH_I2C_Read... [16:41:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:33]Read from MH i2c: E2 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 03 00 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 03 00 F4 67 00 90 00 CF [16:41:33]RAPDU: 90 00 [16:41:33]wFMCommunicate OK [16:41:33]wFMCommunicate request_size=4 [16:41:33]MH_SAM_APDU [16:41:33]CAPDU: 80 0D 03 02 [16:41:33]Write to MH i2c: E2 08 00 F5 67 80 0D 03 02 00 00 00 00 D7 [16:41:33]Write i2c OK [16:41:33]MH_I2C_Read... [16:41:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:33]Read from MH i2c: E2 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 0B 00 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 0B 00 F5 67 00 7F 5A E3 4A 60 28 0D F5 90 00 68 [16:41:33]RAPDU: 7F 5A E3 4A 60 28 0D F5 90 00 [16:41:33]wFMCommunicate OK [16:41:33]SAM_PROTO_SignData done [16:41:33]FM_MakeSignedData done [16:41:33]CreateOFDProtocolMessage [16:41:33]wFMCommunicate request_size=4 [16:41:33]MH_SAM_APDU [16:41:33]CAPDU: 80 11 00 00 [16:41:33]Write to MH i2c: E2 08 00 F6 67 80 11 00 00 00 00 00 00 D7 [16:41:33]Write i2c OK [16:41:33]MH_I2C_Read... [16:41:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:33]Read from MH i2c: E2 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 17 00 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 17 00 F6 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 32 [16:41:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:41:33]wFMCommunicate OK [16:41:33]CreateOFDProtocolMessage done [16:41:33]OFDSenderStorePacket 118838 [16:41:33]StoreOFDPacket docnum=118838 [16:41:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F9 F4 04 01 CE 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 42 C6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 D0 01 00 35 04 06 00 DB B4 2F AF 7E 80 7F 5A E3 4A 60 28 0D F5 [16:41:33]CheckFolder [16:41:33]dirname=/storage/ofd_packets [16:41:33]CheckFolder done [16:41:33]ProducePacketName [16:41:33]name=ofd_packets/00118838 [16:41:33]NVStorageSaveData ofd_packets/00118838 [16:41:33]File name is /storage/ofd_packets/00118838 [16:41:33]Write 298 bytes [16:41:33]NVStorageSaveData done [16:41:33]OFDSenderStorePacket done [16:41:33]KKMCreateOFDPacket done [16:41:33]NVStorageSaveData kkm_last_timestamp [16:41:33]File name is /storage/kkm_last_timestamp [16:41:33]Write 4 bytes [16:41:33]NVStorageSaveData done [16:41:33]ExternCall_PrintAddStr [16:41:33]wPrintStart [16:41:33]Write to MH i2c: 01 00 00 F7 67 5E [16:41:33]Write i2c OK [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: 01 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: 01 07 00 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: 01 07 00 F7 67 00 00 00 00 00 FF 0F 73 [16:41:33]RasterBufferAndPrint [16:41:33]line Счет N : (1)949722 [16:41:33]line ИНН: 02508201610067 [16:41:33]line Контрольно-Кассовый Чек [16:41:33]line ПРОДАЖА [16:41:33]line ТРК (МРК, ГНК) : 11 [16:41:33]line Товар: 2710194800 [16:41:33]line ДТ-К-5 [16:41:33]line 131.100 * 76.20 [16:41:33]line = 9989.82 [16:41:33]line НДС 12% НСП 1% [16:41:33]line > о реализуемом товаре [16:41:33]line ОКРУГЛЕНИЕ: -0.82 [16:41:33]line ИТОГО: 9989.00 [16:41:33]line НСП 1% : 88.40 [16:41:33]line НДС 12% : 1060.87 [16:41:33]line Наличными: 0.00 [16:41:33]line Безнал.: 9989.00 [16:41:33]line Место: АЗС № 134 "Партнер Нефть" [16:41:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:41:33]line СНО: Общий режим [16:41:33]line Чек 214 29.07.2024 16:41 [16:41:33]line Смена: 434 ФФД: 1.0 [16:41:33]line ЗНМ: 0300000044 [16:41:33]line РНМ: 0000000000092660 [16:41:33]line Версия ККМ: 001 [16:41:33]line Платежная система: O! деньги [16:41:33]line ФМ: 0000000000874939 [16:41:33]line ФД: 118838 [16:41:33]line ФПД: 241566940626560 [16:41:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164138&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118838&fm=241566940626560&tin=02508201610067®Number=0000000000092660&sum=998900 [16:41:34]OFD Sender: Processing packet 118838 [packets to send 86, broken 85] [16:41:34]ProducePacketName [16:41:34]name=ofd_packets/00118838 [16:41:34]OFD Sender: To server: pG, [16:41:34]CommunicateWithHost lk.salyk.kg:30040 [16:41:34]ConnectInit lk.salyk.kg [16:41:34]written 0, free lines is 4095 [16:41:34]Connected sock=10 [16:41:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F9 F4 04 01 CE 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 42 C6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 D0 01 00 35 04 06 00 DB B4 2F AF 7E 80 7F 5A E3 4A 60 28 0D F5 [16:41:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 62 33 47 00 77 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 34 39 33 39 10 04 04 00 36 D0 01 00 F4 03 04 00 CF 73 A7 66 B6 04 01 00 00 28 14 45 63 3D C8 9F 8C [16:41:34]CommunicateWithHost err = 0 [16:41:34]CheckOFDResponse [16:41:34]1017 (14) - 77093643461234 [16:41:34]1041 (16) - 0000000000874939 [16:41:34]1040 (4) - 118838 [16:41:34]1012 (4) - 29.07.2024 10:49 [16:41:34]1206 (1) - 0 [16:41:34]OFD Sender: Remove packet 118838 [16:41:34]ProducePacketName [16:41:34]name=ofd_packets/00118838 [16:41:34]NVStorageDeleteData [16:41:34]Write to MH i2c: 01 00 00 21 68 89 [16:41:34]Write i2c OK [16:41:34]MH_I2C_Read... [16:41:34]Read from MH i2c: 01 [16:41:34]MH_I2C_Read... [16:41:34]Read from MH i2c: 01 07 00 [16:41:34]MH_I2C_Read... [16:41:34]Read from MH i2c: 01 07 00 21 68 00 00 00 00 00 ED 0C 89 [16:41:34]RasterBufferAndPrint [16:41:34]line [16:41:34]line [16:41:34]line [16:41:34]line [16:41:34]line [16:41:34]written 0, free lines is 3315 [16:41:34]MH_Cut [16:41:34]Write to MH i2c: D1 01 00 28 68 01 62 [16:41:34]Write i2c OK [16:41:34]MH_I2C_Read... [16:41:34]Read from MH i2c: D1 [16:41:34]MH_I2C_Read... [16:41:34]Read from MH i2c: D1 01 00 [16:41:34]MH_I2C_Read... [16:41:34]Read from MH i2c: D1 01 00 28 68 00 61 [16:41:34]Write to MH i2c: 01 00 00 29 68 91 [16:41:34]Write i2c OK [16:41:34]MH_I2C_Read... [16:41:34]OFD Sender: No OFD packet to send [16:41:35]*** Cut start [16:41:35]*** Partial cut [16:41:35]*** CUTSNS_PIN = 1 [16:41:35]*** CUTSNS_PIN = 0 [16:41:35]*** Brake cut motor [16:41:35]Read from MH i2c: 01 [16:41:35]MH_I2C_Read... [16:41:35]*** Stop cut motor [16:41:35]*** Cut end [16:41:35]Read from MH i2c: 01 07 00 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: 01 07 00 29 68 00 00 00 00 00 FF 0F A6 [16:41:35]process_action close_receipt done [16:41:35]requested_data is exist [16:41:35]produce_requested_data [16:41:35]requested_item fm.sn is exist - process it [16:41:35]wFMCommunicate request_size=4 [16:41:35]MH_SAM_APDU [16:41:35]CAPDU: 80 11 00 00 [16:41:35]Write to MH i2c: E2 08 00 2A 68 80 11 00 00 00 00 00 00 0C [16:41:35]Write i2c OK [16:41:35]MH_I2C_Read... [16:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:35]Read from MH i2c: E2 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 17 00 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 17 00 2A 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 67 [16:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:41:35]wFMCommunicate OK [16:41:35]requested_item fd.num is exist - process it [16:41:35]SAM_PROTO_GetFieldsCounters [16:41:35]wFMCommunicate request_size=4 [16:41:35]MH_SAM_APDU [16:41:35]CAPDU: 80 13 00 00 [16:41:35]Write to MH i2c: E2 08 00 2B 68 80 13 00 00 00 00 00 00 0F [16:41:35]Write i2c OK [16:41:35]MH_I2C_Read... [16:41:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:36]Read from MH i2c: E2 [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: E2 62 00 [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: E2 62 00 2B 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 36 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [16:41: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 36 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:36]wFMCommunicate OK [16:41:36]SAM_PROTO_GetFieldsCounters done [16:41:36]requested_item shift.num is exist - process it [16:41:36]requested_item shift.opened is exist - process it [16:41:36]req_shift_opened [16:41:36]FM_GetShiftState [16:41:36]SAM_PROTO_GetShiftState [16:41:36]wFMCommunicate request_size=4 [16:41:36]MH_SAM_APDU [16:41:36]CAPDU: 80 13 01 00 [16:41:36]Write to MH i2c: E2 08 00 2C 68 80 13 01 00 00 00 00 00 11 [16:41:36]Write i2c OK [16:41:36]MH_I2C_Read... [16:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:36]Read from MH i2c: E2 [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: E2 0E 00 [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: E2 0E 00 2C 68 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 3F [16:41:36]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:41:36]wFMCommunicate OK [16:41:36]SAM_PROTO_GetShiftState done [16:41:36]FM_GetShiftState done [16:41:36]req_shift_opened done [16:41:36]requested_item shift.open_date is exist - process it [16:41:36]req_shift_open_date [16:41:36]req_shift_open_date done [16:41:36]produce_requested_data done [16:41:36]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118838,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:41:36]process_action_free close_receipt [16:41:36]json_value_free [16:41:36]json_value_free done [16:41:36]process_json_proto returns [16:41:36]Send response to host [16:41:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118838,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:41:36]free response buf [16:41:36]execute_script done [16:41:36]execute_script returns [16:41:36]free content buf [16:41:36]Sock 9.Close socket [16:41:36]Sock 9.Thread stoped [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:09]accept exits with 7 [16:43:09]New connection [16:43:09]New thread 3067239780 created [16:43:09]Thread 3067383140 joined [16:43:09]Waiting for new connection... [16:43:09] Sock 7.Parse request [16:43:09]Sock 7.Check first char [16:43:09]Sock 7.First char is OK [16:43:09]request: POST /json_proto HTTP/1.0 [16:43:09]Method: POST [16:43:09]URL: /json_proto [16:43:09]Method is POST - this is cgi request [16:43:09]url: /json_proto [16:43:09]query_string will be loaded in cgi processing [16:43:09]execute_cgi json_proto POST (null) [16:43:09]execute_cgi path=json_proto method=POST [16:43:09]POST find Content-Length [16:43:09]Host: 172.17.45.7:8080 [16:43:09]Content-Length: 677 [16:43:09]Content-Type: application/json [16:43:09] [16:43:09]POST finish read [16:43:09]Found Content-Length = 677 [16:43:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:09]execute_script... [16:43:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:09]POST & json_proto [16:43:09]process_json_proto [16:43:09]json parsed OK: [16:43:09]protocol is kg_v1.0 [16:43:09]action value=close_receipt [16:43:09]process_action close_receipt [16:43:09]cmd_close_receipt [16:43:09]MH_GetDate [16:43:09]Write to MH i2c: F0 00 00 2D 68 84 [16:43:09]Write i2c OK [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: F0 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: F0 09 00 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: F0 09 00 2D 68 00 A3 C6 A7 66 90 0F 3E 66 46 [16:43:09]GetLastDocTimeStamp 1722271298 [16:43:09]current date 1722271395 [16:43:09]FM_GetShiftState [16:43:09]SAM_PROTO_GetShiftState [16:43:09]wFMCommunicate request_size=4 [16:43:09]MH_SAM_APDU [16:43:09]CAPDU: 80 13 01 00 [16:43:09]Write to MH i2c: E2 08 00 2E 68 80 13 01 00 00 00 00 00 13 [16:43:09]Write i2c OK [16:43:09]MH_I2C_Read... [16:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:09]Read from MH i2c: E2 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: E2 0E 00 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: E2 0E 00 2E 68 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 41 [16:43:09]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:43:09]wFMCommunicate OK [16:43:09]SAM_PROTO_GetShiftState done [16:43:09]FM_GetShiftState done [16:43:09]opened in 1722211641 [16:43:09]opened+sec_in_day 1722298041 [16:43:09]quantity*price = 50036 [16:43:09]sum+1 = 50037 [16:43:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 215 29.07.2024 16:43 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118839 ФПД: 88480399632295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164315&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118839&fm=88480399632295&tin=02508201610067®Number=0000000000092660&sum=50000 [16:43:10]StoreToDocumentArchive [16:43:10]shift 434 fd 118839 [16:43:10]save to /storage/0434/doc_00118839 [16:43:10]save last doc name /storage/0434/doc_00118839 to /storage/kkm_last_doc_name [16:43:10]save OK [16:43:10]Clear old archive folders... [16:43:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:43:10]tlvbuf is 02095840 [16:43:10]SAM_PROTO_ClearQueue [16:43:10]wFMCommunicate request_size=4 [16:43:10]MH_SAM_APDU [16:43:10]CAPDU: 80 09 00 00 [16:43:10]Write to MH i2c: E2 08 00 3B 68 80 09 00 00 00 00 00 00 15 [16:43:10]Write i2c OK [16:43:10]MH_I2C_Read... [16:43:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:10]Read from MH i2c: E2 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: E2 03 00 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: E2 03 00 3B 68 00 90 00 17 [16:43:10]RAPDU: 90 00 [16:43:10]wFMCommunicate OK [16:43:10]SAM_PROTO_ClearQueue done [16:43:10]KKMCreateOFDPacket [16:43:10]OFDProtocolAddRootSTLVToBuf [16:43:10]FM_MakeSignedData [16:43:10]FM_MakeSignedData [16:43:10]SAM_PROTO_SignData [16:43:10]wFMCommunicate request_size=4 [16:43:10]MH_SAM_APDU [16:43:10]CAPDU: 80 0D 01 02 [16:43:10]Write to MH i2c: E2 08 00 3C 68 80 0D 01 02 00 00 00 00 1D [16:43:10]Write i2c OK [16:43:10]MH_I2C_Read... [16:43:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:10]Read from MH i2c: E2 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: E2 03 00 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: E2 03 00 3C 68 00 90 00 18 [16:43:10]RAPDU: 90 00 [16:43:10]wFMCommunicate OK [16:43:10]wFMCommunicate request_size=255 [16:43:10]MH_SAM_APDU [16:43:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 A3 C6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 D0 01 00 35 04 06 00 50 [16:43:10]Write to MH i2c: E2 02 01 3D 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 A3 C6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 D0 01 00 35 04 06 00 50 00 00 F9 [16:43:10]Write i2c OK [16:43:10]MH_I2C_Read... [16:43:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:10]Read from MH i2c: E2 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: E2 03 00 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: E2 03 00 3D 68 00 90 00 19 [16:43:10]RAPDU: 90 00 [16:43:10]wFMCommunicate OK [16:43:10]wFMCommunicate request_size=10 [16:43:10]MH_SAM_APDU [16:43:10]CAPDU: 80 0D 02 02 05 78 F2 CA 27 A7 [16:43:10]Write to MH i2c: E2 0D 00 3E 68 80 0D 02 02 05 00 78 F2 CA 27 A7 00 00 2C [16:43:11]Write i2c OK [16:43:11]MH_I2C_Read... [16:43:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:11]Read from MH i2c: E2 [16:43:11]MH_I2C_Read... [16:43:11]Read from MH i2c: E2 03 00 [16:43:11]MH_I2C_Read... [16:43:11]Read from MH i2c: E2 03 00 3E 68 00 90 00 1A [16:43:11]RAPDU: 90 00 [16:43:11]wFMCommunicate OK [16:43:11]wFMCommunicate request_size=4 [16:43:11]MH_SAM_APDU [16:43:11]CAPDU: 80 0D 03 02 [16:43:11]Write to MH i2c: E2 08 00 3F 68 80 0D 03 02 00 00 00 00 22 [16:43:11]Write i2c OK [16:43:11]MH_I2C_Read... [16:43:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:11]Read from MH i2c: E2 [16:43:11]MH_I2C_Read... [16:43:11]Read from MH i2c: E2 0B 00 [16:43:11]MH_I2C_Read... [16:43:11]Read from MH i2c: E2 0B 00 3F 68 00 D8 AA 26 24 8D 04 1C F2 90 00 8E [16:43:11]RAPDU: D8 AA 26 24 8D 04 1C F2 90 00 [16:43:11]wFMCommunicate OK [16:43:11]SAM_PROTO_SignData done [16:43:11]FM_MakeSignedData done [16:43:11]CreateOFDProtocolMessage [16:43:11]wFMCommunicate request_size=4 [16:43:11]MH_SAM_APDU [16:43:11]CAPDU: 80 11 00 00 [16:43:11]Write to MH i2c: E2 08 00 40 68 80 11 00 00 00 00 00 00 22 [16:43:11]Write i2c OK [16:43:11]MH_I2C_Read... [16:43:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:11]Read from MH i2c: E2 [16:43:11]MH_I2C_Read... [16:43:11]Read from MH i2c: E2 17 00 [16:43:11]MH_I2C_Read... [16:43:11]Read from MH i2c: E2 17 00 40 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7D [16:43:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:43:11]wFMCommunicate OK [16:43:11]CreateOFDProtocolMessage done [16:43:11]OFDSenderStorePacket 118839 [16:43:11]StoreOFDPacket docnum=118839 [16:43:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 98 F0 07 01 09 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 A3 C6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 D0 01 00 35 04 06 00 50 78 F2 CA 27 A7 D8 AA 26 24 8D 04 1C F2 [16:43:11]CheckFolder [16:43:11]dirname=/storage/ofd_packets [16:43:11]CheckFolder done [16:43:11]ProducePacketName [16:43:11]name=ofd_packets/00118839 [16:43:11]NVStorageSaveData ofd_packets/00118839 [16:43:11]File name is /storage/ofd_packets/00118839 [16:43:11]Write 301 bytes [16:43:11]NVStorageSaveData done [16:43:11]OFDSenderStorePacket done [16:43:11]KKMCreateOFDPacket done [16:43:11]NVStorageSaveData kkm_last_timestamp [16:43:11]File name is /storage/kkm_last_timestamp [16:43:11]Write 4 bytes [16:43:11]NVStorageSaveData done [16:43:11]ExternCall_PrintAddStr [16:43:11]wPrintStart [16:43:11]Write to MH i2c: 01 00 00 41 68 A9 [16:43:11]OFD Sender: Processing packet 118839 [packets to send 86, broken 85] [16:43:11]ProducePacketName [16:43:11]name=ofd_packets/00118839 [16:43:11]OFD Sender: To server: pG, [16:43:11]CommunicateWithHost lk.salyk.kg:30040 [16:43:11]ConnectInit lk.salyk.kg [16:43:11]Write i2c OK [16:43:11]MH_I2C_Read... [16:43:11]Read from MH i2c: 01 [16:43:11]MH_I2C_Read... [16:43:11]Read from MH i2c: 01 07 00 [16:43:11]MH_I2C_Read... [16:43:11]Read from MH i2c: 01 07 00 41 68 00 00 00 00 00 FF 0F BE [16:43:11]RasterBufferAndPrint [16:43:11]line Счет N : (1)949730 [16:43:11]line ИНН: 02508201610067 [16:43:11]line Контрольно-Кассовый Чек [16:43:11]line ПРОДАЖА [16:43:11]line ТРК (МРК, ГНК) : 61 [16:43:11]line Товар: 2710124130 [16:43:11]line Аи-92-К-4 [16:43:11]line 7.380 * 67.80 [16:43:11]line = 500.36 [16:43:11]line НДС 12% НСП 1% [16:43:11]line > о реализуемом товаре [16:43:11]line ОКРУГЛЕНИЕ: -0.36 [16:43:11]line ИТОГО: 500.00 [16:43:11]line Внесено: 500.00 [16:43:11]line СДАЧА: 0.00 [16:43:11]line НСП 1% : 4.43 [16:43:11]line НДС 12% : 53.14 [16:43:11]line Наличными: 500.00 [16:43:11]line Безнал.: 0.00 [16:43:11]line Место: АЗС № 134 "Партнер Нефть" [16:43:11]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:43:11]line СНО: Общий режим [16:43:11]line Чек 215 29.07.2024 16:43 [16:43:11]line Смена: 434 ФФД: 1.0 [16:43:11]line ЗНМ: 0300000044 [16:43:11]line РНМ: 0000000000092660 [16:43:11]line Версия ККМ: 001 [16:43:11]line ФМ: 0000000000874939 [16:43:11]line ФД: 118839 [16:43:11]line ФПД: 88480399632295 [16:43:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164315&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118839&fm=88480399632295&tin=02508201610067®Number=0000000000092660&sum=50000 [16:43:11]Connected sock=10 [16:43:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 98 F0 07 01 09 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 A3 C6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 D0 01 00 35 04 06 00 50 78 F2 CA 27 A7 D8 AA 26 24 8D 04 1C F2 [16:43:11]written 0, free lines is 4095 [16:43:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 68 47 47 00 1D 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 34 39 33 39 10 04 04 00 37 D0 01 00 F4 03 04 00 31 74 A7 66 B6 04 01 00 00 E6 7B 15 80 0C C8 AD EB [16:43:11]CommunicateWithHost err = 0 [16:43:11]CheckOFDResponse [16:43:11]1017 (14) - 77093643461234 [16:43:11]1041 (16) - 0000000000874939 [16:43:11]1040 (4) - 118839 [16:43:11]1012 (4) - 29.07.2024 10:51 [16:43:11]1206 (1) - 0 [16:43:11]OFD Sender: Remove packet 118839 [16:43:11]ProducePacketName [16:43:11]name=ofd_packets/00118839 [16:43:11]NVStorageDeleteData [16:43:11]Write to MH i2c: 01 00 00 6B 68 D3 [16:43:11]Write i2c OK [16:43:11]MH_I2C_Read... [16:43:11]Read from MH i2c: 01 [16:43:11]MH_I2C_Read... [16:43:11]Read from MH i2c: 01 07 00 [16:43:11]MH_I2C_Read... [16:43:11]Read from MH i2c: 01 07 00 6B 68 00 00 00 00 00 E9 0C CF [16:43:11]RasterBufferAndPrint [16:43:11]line [16:43:11]line [16:43:11]line [16:43:11]line [16:43:11]line [16:43:11]written 0, free lines is 3311 [16:43:11]MH_Cut [16:43:11]Write to MH i2c: D1 01 00 72 68 01 AC [16:43:11]Write i2c OK [16:43:11]MH_I2C_Read... [16:43:11]Read from MH i2c: D1 [16:43:11]MH_I2C_Read... [16:43:11]Read from MH i2c: D1 01 00 [16:43:11]MH_I2C_Read... [16:43:11]Read from MH i2c: D1 01 00 72 68 00 AB [16:43:11]Write to MH i2c: 01 00 00 73 68 DB [16:43:11]Write i2c OK [16:43:11]MH_I2C_Read... [16:43:12]OFD Sender: No OFD packet to send [16:43:12]*** Cut start [16:43:12]*** Partial cut [16:43:12]*** CUTSNS_PIN = 1 [16:43:12]*** CUTSNS_PIN = 0 [16:43:12]*** Brake cut motor [16:43:13]Read from MH i2c: 01 [16:43:13]MH_I2C_Read... [16:43:13]*** Stop cut motor [16:43:13]*** Cut end [16:43:13]Read from MH i2c: 01 07 00 [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: 01 07 00 73 68 00 00 00 00 00 FF 0F F0 [16:43:13]process_action close_receipt done [16:43:13]requested_data is exist [16:43:13]produce_requested_data [16:43:13]requested_item fm.sn is exist - process it [16:43:13]wFMCommunicate request_size=4 [16:43:13]MH_SAM_APDU [16:43:13]CAPDU: 80 11 00 00 [16:43:13]Write to MH i2c: E2 08 00 74 68 80 11 00 00 00 00 00 00 56 [16:43:13]Write i2c OK [16:43:13]MH_I2C_Read... [16:43:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:13]Read from MH i2c: E2 [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: E2 17 00 [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: E2 17 00 74 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B1 [16:43:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:43:13]wFMCommunicate OK [16:43:13]requested_item fd.num is exist - process it [16:43:13]SAM_PROTO_GetFieldsCounters [16:43:13]wFMCommunicate request_size=4 [16:43:13]MH_SAM_APDU [16:43:13]CAPDU: 80 13 00 00 [16:43:13]Write to MH i2c: E2 08 00 75 68 80 13 00 00 00 00 00 00 59 [16:43:13]Write i2c OK [16:43:13]MH_I2C_Read... [16:43:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:13]Read from MH i2c: E2 [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: E2 62 00 [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: E2 62 00 75 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 37 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [16:43:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 37 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:43:13]wFMCommunicate OK [16:43:13]SAM_PROTO_GetFieldsCounters done [16:43:13]requested_item shift.num is exist - process it [16:43:13]requested_item shift.opened is exist - process it [16:43:13]req_shift_opened [16:43:13]FM_GetShiftState [16:43:13]SAM_PROTO_GetShiftState [16:43:13]wFMCommunicate request_size=4 [16:43:13]MH_SAM_APDU [16:43:13]CAPDU: 80 13 01 00 [16:43:13]Write to MH i2c: E2 08 00 76 68 80 13 01 00 00 00 00 00 5B [16:43:13]Write i2c OK [16:43:13]MH_I2C_Read... [16:43:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:13]Read from MH i2c: E2 [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: E2 0E 00 [16:43:13]MH_I2C_Read... [16:43:13]Read from MH i2c: E2 0E 00 76 68 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 89 [16:43:13]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:43:13]wFMCommunicate OK [16:43:13]SAM_PROTO_GetShiftState done [16:43:13]FM_GetShiftState done [16:43:13]req_shift_opened done [16:43:13]requested_item shift.open_date is exist - process it [16:43:13]req_shift_open_date [16:43:13]req_shift_open_date done [16:43:13]produce_requested_data done [16:43:13]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118839,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:43:13]process_action_free close_receipt [16:43:13]json_value_free [16:43:13]json_value_free done [16:43:13]process_json_proto returns [16:43:13]Send response to host [16:43:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118839,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:43:13]free response buf [16:43:13]execute_script done [16:43:13]execute_script returns [16:43:13]free content buf [16:43:13]Sock 7.Close socket [16:43:13]Sock 7.Thread stoped [16:43:17]OFD Sender: No OFD packet to send [16:43:22]OFD Sender: No OFD packet to send [16:43:27]OFD Sender: No OFD packet to send [16:43:32]OFD Sender: No OFD packet to send [16:43:37]OFD Sender: No OFD packet to send [16:43:42]OFD Sender: No OFD packet to send [16:43:47]OFD Sender: No OFD packet to send [16:43:52]OFD Sender: No OFD packet to send [16:43:57]OFD Sender: No OFD packet to send [16:44:02]OFD Sender: No OFD packet to send [16:44:07]OFD Sender: No OFD packet to send [16:44:12]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:22]OFD Sender: No OFD packet to send [16:44:27]OFD Sender: No OFD packet to send [16:44:32]OFD Sender: No OFD packet to send [16:44:37]OFD Sender: No OFD packet to send [16:44:42]OFD Sender: No OFD packet to send [16:44:47]OFD Sender: No OFD packet to send [16:44:52]OFD Sender: No OFD packet to send [16:44:57]OFD Sender: No OFD packet to send [16:45:02]OFD Sender: No OFD packet to send [16:45:07]OFD Sender: No OFD packet to send [16:45:07]accept exits with 9 [16:45:07]New connection [16:45:07]New thread 3067383140 created [16:45:07]Thread 3067239780 joined [16:45:07]Waiting for new connection... [16:45:07] Sock 9.Parse request [16:45:07]Sock 9.Check first char [16:45:07]Sock 9.First char is OK [16:45:07]request: POST /json_proto HTTP/1.0 [16:45:07]Method: POST [16:45:07]URL: /json_proto [16:45:07]Method is POST - this is cgi request [16:45:07]url: /json_proto [16:45:07]query_string will be loaded in cgi processing [16:45:07]execute_cgi json_proto POST (null) [16:45:07]execute_cgi path=json_proto method=POST [16:45:07]POST find Content-Length [16:45:07]Host: 172.17.45.7:8080 [16:45:07]Content-Length: 674 [16:45:07]Content-Type: application/json [16:45:07] [16:45:07]POST finish read [16:45:07]Found Content-Length = 674 [16:45:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:07]execute_script... [16:45:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:07]POST & json_proto [16:45:07]process_json_proto [16:45:07]json parsed OK: [16:45:07]protocol is kg_v1.0 [16:45:07]action value=close_receipt [16:45:07]process_action close_receipt [16:45:07]cmd_close_receipt [16:45:07]MH_GetDate [16:45:07]Write to MH i2c: F0 00 00 77 68 CE [16:45:07]Write i2c OK [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: F0 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: F0 09 00 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: F0 09 00 77 68 00 19 C7 A7 66 90 0F 3E 66 07 [16:45:07]GetLastDocTimeStamp 1722271395 [16:45:07]current date 1722271513 [16:45:07]FM_GetShiftState [16:45:07]SAM_PROTO_GetShiftState [16:45:07]wFMCommunicate request_size=4 [16:45:07]MH_SAM_APDU [16:45:07]CAPDU: 80 13 01 00 [16:45:07]Write to MH i2c: E2 08 00 78 68 80 13 01 00 00 00 00 00 5D [16:45:07]Write i2c OK [16:45:07]MH_I2C_Read... [16:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:07]Read from MH i2c: E2 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: E2 0E 00 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: E2 0E 00 78 68 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 8B [16:45:07]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:45:07]wFMCommunicate OK [16:45:07]SAM_PROTO_GetShiftState done [16:45:07]FM_GetShiftState done [16:45:07]opened in 1722211641 [16:45:07]opened+sec_in_day 1722298041 [16:45:07]quantity*price = 50063 [16:45:07]sum+1 = 50064 [16:45:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 216 29.07.2024 16:45 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118840 ФПД: 133844733776156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164513&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118840&fm=133844733776156&tin=02508201610067®Number=0000000000092660&sum=50000 [16:45:08]StoreToDocumentArchive [16:45:08]shift 434 fd 118840 [16:45:08]save to /storage/0434/doc_00118840 [16:45:08]save last doc name /storage/0434/doc_00118840 to /storage/kkm_last_doc_name [16:45:08]save OK [16:45:08]Clear old archive folders... [16:45:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:45:08]tlvbuf is 01E82AE0 [16:45:08]SAM_PROTO_ClearQueue [16:45:08]wFMCommunicate request_size=4 [16:45:08]MH_SAM_APDU [16:45:08]CAPDU: 80 09 00 00 [16:45:08]Write to MH i2c: E2 08 00 85 68 80 09 00 00 00 00 00 00 5F [16:45:08]Write i2c OK [16:45:08]MH_I2C_Read... [16:45:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:08]Read from MH i2c: E2 [16:45:08]MH_I2C_Read... [16:45:08]Read from MH i2c: E2 03 00 [16:45:08]MH_I2C_Read... [16:45:08]Read from MH i2c: E2 03 00 85 68 00 90 00 61 [16:45:08]RAPDU: 90 00 [16:45:08]wFMCommunicate OK [16:45:08]SAM_PROTO_ClearQueue done [16:45:08]KKMCreateOFDPacket [16:45:08]OFDProtocolAddRootSTLVToBuf [16:45:08]FM_MakeSignedData [16:45:08]FM_MakeSignedData [16:45:08]SAM_PROTO_SignData [16:45:08]wFMCommunicate request_size=4 [16:45:08]MH_SAM_APDU [16:45:08]CAPDU: 80 0D 01 02 [16:45:08]Write to MH i2c: E2 08 00 86 68 80 0D 01 02 00 00 00 00 67 [16:45:08]Write i2c OK [16:45:08]MH_I2C_Read... [16:45:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:08]Read from MH i2c: E2 [16:45:08]MH_I2C_Read... [16:45:08]Read from MH i2c: E2 03 00 [16:45:08]MH_I2C_Read... [16:45:08]Read from MH i2c: E2 03 00 86 68 00 90 00 62 [16:45:08]RAPDU: 90 00 [16:45:08]wFMCommunicate OK [16:45:08]wFMCommunicate request_size=255 [16:45:08]MH_SAM_APDU [16:45:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 19 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 D0 01 00 35 04 06 00 79 BB 27 CF [16:45:08]Write to MH i2c: E2 02 01 87 68 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 19 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 D0 01 00 35 04 06 00 79 BB 27 CF 00 00 2A [16:45:08]Write i2c OK [16:45:08]MH_I2C_Read... [16:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:09]Read from MH i2c: E2 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: E2 03 00 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: E2 03 00 87 68 00 90 00 63 [16:45:09]RAPDU: 90 00 [16:45:09]wFMCommunicate OK [16:45:09]wFMCommunicate request_size=7 [16:45:09]MH_SAM_APDU [16:45:09]CAPDU: 80 0D 02 02 02 D1 1C [16:45:09]Write to MH i2c: E2 0A 00 88 68 80 0D 02 02 02 00 D1 1C 00 00 5B [16:45:09]Write i2c OK [16:45:09]MH_I2C_Read... [16:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:09]Read from MH i2c: E2 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: E2 03 00 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: E2 03 00 88 68 00 90 00 64 [16:45:09]RAPDU: 90 00 [16:45:09]wFMCommunicate OK [16:45:09]wFMCommunicate request_size=4 [16:45:09]MH_SAM_APDU [16:45:09]CAPDU: 80 0D 03 02 [16:45:09]Write to MH i2c: E2 08 00 89 68 80 0D 03 02 00 00 00 00 6C [16:45:09]Write i2c OK [16:45:09]MH_I2C_Read... [16:45:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:09]Read from MH i2c: E2 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: E2 0B 00 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: E2 0B 00 89 68 00 60 AF 80 9A 68 4D 60 22 90 00 CD [16:45:09]RAPDU: 60 AF 80 9A 68 4D 60 22 90 00 [16:45:09]wFMCommunicate OK [16:45:09]SAM_PROTO_SignData done [16:45:09]FM_MakeSignedData done [16:45:09]CreateOFDProtocolMessage [16:45:09]wFMCommunicate request_size=4 [16:45:09]MH_SAM_APDU [16:45:09]CAPDU: 80 11 00 00 [16:45:09]Write to MH i2c: E2 08 00 8A 68 80 11 00 00 00 00 00 00 6C [16:45:09]Write i2c OK [16:45:09]MH_I2C_Read... [16:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:09]Read from MH i2c: E2 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: E2 17 00 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: E2 17 00 8A 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C7 [16:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:45:09]wFMCommunicate OK [16:45:09]CreateOFDProtocolMessage done [16:45:09]OFDSenderStorePacket 118840 [16:45:09]StoreOFDPacket docnum=118840 [16:45:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 DE 68 04 01 16 FC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 19 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 D0 01 00 35 04 06 00 79 BB 27 CF D1 1C 60 AF 80 9A 68 4D 60 22 [16:45:09]CheckFolder [16:45:09]dirname=/storage/ofd_packets [16:45:09]CheckFolder done [16:45:09]ProducePacketName [16:45:09]name=ofd_packets/00118840 [16:45:09]NVStorageSaveData ofd_packets/00118840 [16:45:09]File name is /storage/ofd_packets/00118840 [16:45:09]Write 298 bytes [16:45:09]NVStorageSaveData done [16:45:09]OFDSenderStorePacket done [16:45:09]KKMCreateOFDPacket done [16:45:09]NVStorageSaveData kkm_last_timestamp [16:45:09]File name is /storage/kkm_last_timestamp [16:45:09]Write 4 bytes [16:45:09]NVStorageSaveData done [16:45:09]ExternCall_PrintAddStr [16:45:09]wPrintStart [16:45:09]Write to MH i2c: 01 00 00 8B 68 F3 [16:45:09]Write i2c OK [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: 01 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: 01 07 00 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: 01 07 00 8B 68 00 00 00 00 00 FF 0F 08 [16:45:09]RasterBufferAndPrint [16:45:09]line Счет N : (1)949731 [16:45:09]line ИНН: 02508201610067 [16:45:09]line Контрольно-Кассовый Чек [16:45:09]line ПРОДАЖА [16:45:09]line ТРК (МРК, ГНК) : 44 [16:45:09]line Товар: 2710194800 [16:45:09]line ДТ-К-5 [16:45:09]line 6.570 * 76.20 [16:45:09]line = 500.63 [16:45:09]line НДС 12% НСП 1% [16:45:09]line > о реализуемом товаре [16:45:09]line ОКРУГЛЕНИЕ: -0.63 [16:45:09]line ИТОГО: 500.00 [16:45:09]line Внесено: 500.00 [16:45:09]line СДАЧА: 0.00 [16:45:09]line НСП 1% : 4.43 [16:45:09]line НДС 12% : 53.16 [16:45:09]line Наличными: 500.00 [16:45:09]line Безнал.: 0.00 [16:45:09]line Место: АЗС № 134 "Партнер Нефть" [16:45:09]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:45:09]line СНО: Общий режим [16:45:09]line Чек 216 29.07.2024 16:45 [16:45:09]line Смена: 434 ФФД: 1.0 [16:45:09]line ЗНМ: 0300000044 [16:45:09]line РНМ: 0000000000092660 [16:45:09]line Версия ККМ: 001 [16:45:09]line ФМ: 0000000000874939 [16:45:09]line ФД: 118840 [16:45:09]line ФПД: 133844733776156 [16:45:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164513&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118840&fm=133844733776156&tin=02508201610067®Number=0000000000092660&sum=50000 [16:45:09]written 0, free lines is 4095 [16:45:09]OFD Sender: Processing packet 118840 [packets to send 86, broken 85] [16:45:09]ProducePacketName [16:45:09]name=ofd_packets/00118840 [16:45:09]OFD Sender: To server: pG, [16:45:09]CommunicateWithHost lk.salyk.kg:30040 [16:45:09]ConnectInit lk.salyk.kg [16:45:09]Connected sock=10 [16:45:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 DE 68 04 01 16 FC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 19 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 D0 01 00 35 04 06 00 79 BB 27 CF D1 1C 60 AF 80 9A 68 4D 60 22 [16:45:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CC 52 47 00 4F 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 34 39 33 39 10 04 04 00 38 D0 01 00 F4 03 04 00 A7 74 A7 66 B6 04 01 00 00 37 0C FF 99 AE 7A 89 10 [16:45:09]CommunicateWithHost err = 0 [16:45:09]CheckOFDResponse [16:45:09]1017 (14) - 77093643461234 [16:45:09]1041 (16) - 0000000000874939 [16:45:09]1040 (4) - 118840 [16:45:09]1012 (4) - 29.07.2024 10:53 [16:45:09]1206 (1) - 0 [16:45:09]OFD Sender: Remove packet 118840 [16:45:09]ProducePacketName [16:45:09]name=ofd_packets/00118840 [16:45:09]NVStorageDeleteData [16:45:09]Write to MH i2c: 01 00 00 B5 68 1D [16:45:09]Write i2c OK [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: 01 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: 01 07 00 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: 01 07 00 B5 68 00 00 00 00 00 D7 0C 07 [16:45:09]RasterBufferAndPrint [16:45:09]line [16:45:09]line [16:45:09]line [16:45:09]line [16:45:09]line [16:45:09]written 0, free lines is 3294 [16:45:09]MH_Cut [16:45:09]Write to MH i2c: D1 01 00 BC 68 01 F6 [16:45:09]Write i2c OK [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: D1 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: D1 01 00 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: D1 01 00 BC 68 00 F5 [16:45:09]Write to MH i2c: 01 00 00 BD 68 25 [16:45:09]Write i2c OK [16:45:09]MH_I2C_Read... [16:45:10]OFD Sender: No OFD packet to send [16:45:10]*** Cut start [16:45:10]*** Partial cut [16:45:10]*** CUTSNS_PIN = 1 [16:45:10]*** CUTSNS_PIN = 0 [16:45:10]*** Brake cut motor [16:45:11]Read from MH i2c: 01 [16:45:11]MH_I2C_Read... [16:45:11]*** Stop cut motor [16:45:11]*** Cut end [16:45:11]Read from MH i2c: 01 07 00 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: 01 07 00 BD 68 00 00 00 00 00 FF 0F 3A [16:45:11]process_action close_receipt done [16:45:11]requested_data is exist [16:45:11]produce_requested_data [16:45:11]requested_item fm.sn is exist - process it [16:45:11]wFMCommunicate request_size=4 [16:45:11]MH_SAM_APDU [16:45:11]CAPDU: 80 11 00 00 [16:45:11]Write to MH i2c: E2 08 00 BE 68 80 11 00 00 00 00 00 00 A0 [16:45:11]Write i2c OK [16:45:11]MH_I2C_Read... [16:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:11]Read from MH i2c: E2 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 17 00 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 17 00 BE 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FB [16:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:45:11]wFMCommunicate OK [16:45:11]requested_item fd.num is exist - process it [16:45:11]SAM_PROTO_GetFieldsCounters [16:45:11]wFMCommunicate request_size=4 [16:45:11]MH_SAM_APDU [16:45:11]CAPDU: 80 13 00 00 [16:45:11]Write to MH i2c: E2 08 00 BF 68 80 13 00 00 00 00 00 00 A3 [16:45:11]Write i2c OK [16:45:11]MH_I2C_Read... [16:45:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:11]Read from MH i2c: E2 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 62 00 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 62 00 BF 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 38 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [16:45: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 38 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:45:11]wFMCommunicate OK [16:45:11]SAM_PROTO_GetFieldsCounters done [16:45:11]requested_item shift.num is exist - process it [16:45:11]requested_item shift.opened is exist - process it [16:45:11]req_shift_opened [16:45:11]FM_GetShiftState [16:45:11]SAM_PROTO_GetShiftState [16:45:11]wFMCommunicate request_size=4 [16:45:11]MH_SAM_APDU [16:45:11]CAPDU: 80 13 01 00 [16:45:11]Write to MH i2c: E2 08 00 C0 68 80 13 01 00 00 00 00 00 A5 [16:45:11]Write i2c OK [16:45:11]MH_I2C_Read... [16:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:11]Read from MH i2c: E2 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 0E 00 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 0E 00 C0 68 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D3 [16:45:11]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:45:11]wFMCommunicate OK [16:45:11]SAM_PROTO_GetShiftState done [16:45:11]FM_GetShiftState done [16:45:11]req_shift_opened done [16:45:11]requested_item shift.open_date is exist - process it [16:45:11]req_shift_open_date [16:45:11]req_shift_open_date done [16:45:11]produce_requested_data done [16:45:11]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118840,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:45:11]process_action_free close_receipt [16:45:11]json_value_free [16:45:11]json_value_free done [16:45:11]process_json_proto returns [16:45:11]Send response to host [16:45:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118840,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:45:11]free response buf [16:45:11]execute_script done [16:45:11]execute_script returns [16:45:11]free content buf [16:45:11]Sock 9.Close socket [16:45:11]Sock 9.Thread stoped [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:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:05]OFD Sender: No OFD packet to send [16:48:10]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:20]OFD Sender: No OFD packet to send [16:48:25]OFD Sender: No OFD packet to send [16:48:30]OFD Sender: No OFD packet to send [16:48:31]accept exits with 7 [16:48:31]New connection [16:48:31]New thread 3067239780 created [16:48:31]Thread 3067383140 joined [16:48:31]Waiting for new connection... [16:48:31] Sock 7.Parse request [16:48:31]Sock 7.Check first char [16:48:31]Sock 7.First char is OK [16:48:31]request: POST /json_proto HTTP/1.0 [16:48:31]Method: POST [16:48:31]URL: /json_proto [16:48:31]Method is POST - this is cgi request [16:48:31]url: /json_proto [16:48:31]query_string will be loaded in cgi processing [16:48:31]execute_cgi json_proto POST (null) [16:48:31]execute_cgi path=json_proto method=POST [16:48:31]POST find Content-Length [16:48:31]Host: 172.17.45.7:8080 [16:48:31]Content-Length: 677 [16:48:31]Content-Type: application/json [16:48:31] [16:48:31]POST finish read [16:48:31]Found Content-Length = 677 [16:48:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:31]execute_script... [16:48:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:31]POST & json_proto [16:48:31]process_json_proto [16:48:31]json parsed OK: [16:48:31]protocol is kg_v1.0 [16:48:31]action value=close_receipt [16:48:31]process_action close_receipt [16:48:31]cmd_close_receipt [16:48:31]MH_GetDate [16:48:31]Write to MH i2c: F0 00 00 C1 68 18 [16:48:31]Write i2c OK [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: F0 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: F0 09 00 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: F0 09 00 C1 68 00 E5 C7 A7 66 90 0F 3E 66 1D [16:48:31]GetLastDocTimeStamp 1722271513 [16:48:31]current date 1722271717 [16:48:31]FM_GetShiftState [16:48:31]SAM_PROTO_GetShiftState [16:48:31]wFMCommunicate request_size=4 [16:48:31]MH_SAM_APDU [16:48:31]CAPDU: 80 13 01 00 [16:48:31]Write to MH i2c: E2 08 00 C2 68 80 13 01 00 00 00 00 00 A7 [16:48:31]Write i2c OK [16:48:31]MH_I2C_Read... [16:48:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:31]Read from MH i2c: E2 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: E2 0E 00 [16:48:31]MH_I2C_Read... [16:48:31]Read from MH i2c: E2 0E 00 C2 68 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D5 [16:48:31]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:48:31]wFMCommunicate OK [16:48:31]SAM_PROTO_GetShiftState done [16:48:31]FM_GetShiftState done [16:48:31]opened in 1722211641 [16:48:31]opened+sec_in_day 1722298041 [16:48:31]quantity*price = 60003 [16:48:31]sum+1 = 60004 [16:48:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 217 29.07.2024 16:48 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118841 ФПД: 70833369386521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164837&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118841&fm=70833369386521&tin=02508201610067®Number=0000000000092660&sum=60000 [16:48:32]StoreToDocumentArchive [16:48:32]shift 434 fd 118841 [16:48:32]save to /storage/0434/doc_00118841 [16:48:32]save last doc name /storage/0434/doc_00118841 to /storage/kkm_last_doc_name [16:48:32]save OK [16:48:32]Clear old archive folders... [16:48:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:32]tlvbuf is 01F33E80 [16:48:32]SAM_PROTO_ClearQueue [16:48:32]wFMCommunicate request_size=4 [16:48:32]MH_SAM_APDU [16:48:32]CAPDU: 80 09 00 00 [16:48:32]Write to MH i2c: E2 08 00 CF 68 80 09 00 00 00 00 00 00 A9 [16:48:32]Write i2c OK [16:48:32]MH_I2C_Read... [16:48:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:32]Read from MH i2c: E2 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: E2 03 00 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: E2 03 00 CF 68 00 90 00 AB [16:48:32]RAPDU: 90 00 [16:48:32]wFMCommunicate OK [16:48:32]SAM_PROTO_ClearQueue done [16:48:32]KKMCreateOFDPacket [16:48:32]OFDProtocolAddRootSTLVToBuf [16:48:32]FM_MakeSignedData [16:48:32]FM_MakeSignedData [16:48:32]SAM_PROTO_SignData [16:48:32]wFMCommunicate request_size=4 [16:48:32]MH_SAM_APDU [16:48:32]CAPDU: 80 0D 01 02 [16:48:32]Write to MH i2c: E2 08 00 D0 68 80 0D 01 02 00 00 00 00 B1 [16:48:32]Write i2c OK [16:48:32]MH_I2C_Read... [16:48:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:32]Read from MH i2c: E2 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: E2 03 00 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: E2 03 00 D0 68 00 90 00 AC [16:48:32]RAPDU: 90 00 [16:48:32]wFMCommunicate OK [16:48:32]wFMCommunicate request_size=255 [16:48:32]MH_SAM_APDU [16:48:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 E5 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 D0 01 00 35 04 06 00 40 [16:48:32]Write to MH i2c: E2 02 01 D1 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 E5 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 D0 01 00 35 04 06 00 40 00 00 8B [16:48:32]Write i2c OK [16:48:32]MH_I2C_Read... [16:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:32]Read from MH i2c: E2 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: E2 03 00 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: E2 03 00 D1 68 00 90 00 AD [16:48:32]RAPDU: 90 00 [16:48:32]wFMCommunicate OK [16:48:32]wFMCommunicate request_size=10 [16:48:32]MH_SAM_APDU [16:48:32]CAPDU: 80 0D 02 02 05 6C 2D D2 0E 19 [16:48:32]Write to MH i2c: E2 0D 00 D2 68 80 0D 02 02 05 00 6C 2D D2 0E 19 00 00 50 [16:48:32]Write i2c OK [16:48:32]MH_I2C_Read... [16:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:32]Read from MH i2c: E2 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: E2 03 00 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: E2 03 00 D2 68 00 90 00 AE [16:48:32]RAPDU: 90 00 [16:48:32]wFMCommunicate OK [16:48:32]wFMCommunicate request_size=4 [16:48:32]MH_SAM_APDU [16:48:32]CAPDU: 80 0D 03 02 [16:48:32]Write to MH i2c: E2 08 00 D3 68 80 0D 03 02 00 00 00 00 B6 [16:48:32]Write i2c OK [16:48:32]MH_I2C_Read... [16:48:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:32]Read from MH i2c: E2 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: E2 0B 00 [16:48:32]MH_I2C_Read... [16:48:32]Read from MH i2c: E2 0B 00 D3 68 00 D8 44 F5 85 A1 90 55 95 90 00 68 [16:48:32]RAPDU: D8 44 F5 85 A1 90 55 95 90 00 [16:48:32]wFMCommunicate OK [16:48:32]SAM_PROTO_SignData done [16:48:32]FM_MakeSignedData done [16:48:32]CreateOFDProtocolMessage [16:48:32]wFMCommunicate request_size=4 [16:48:32]MH_SAM_APDU [16:48:32]CAPDU: 80 11 00 00 [16:48:32]Write to MH i2c: E2 08 00 D4 68 80 11 00 00 00 00 00 00 B6 [16:48:32]Write i2c OK [16:48:32]MH_I2C_Read... [16:48:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:33]Read from MH i2c: E2 [16:48:33]MH_I2C_Read... [16:48:33]Read from MH i2c: E2 17 00 [16:48:33]MH_I2C_Read... [16:48:33]Read from MH i2c: E2 17 00 D4 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 11 [16:48:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:48:33]wFMCommunicate OK [16:48:33]CreateOFDProtocolMessage done [16:48:33]OFDSenderStorePacket 118841 [16:48:33]StoreOFDPacket docnum=118841 [16:48:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A0 68 07 01 F1 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 E5 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 D0 01 00 35 04 06 00 40 6C 2D D2 0E 19 D8 44 F5 85 A1 90 55 95 [16:48:33]CheckFolder [16:48:33]dirname=/storage/ofd_packets [16:48:33]CheckFolder done [16:48:33]ProducePacketName [16:48:33]name=ofd_packets/00118841 [16:48:33]NVStorageSaveData ofd_packets/00118841 [16:48:33]File name is /storage/ofd_packets/00118841 [16:48:33]Write 301 bytes [16:48:33]NVStorageSaveData done [16:48:33]OFDSenderStorePacket done [16:48:33]KKMCreateOFDPacket done [16:48:33]NVStorageSaveData kkm_last_timestamp [16:48:33]File name is /storage/kkm_last_timestamp [16:48:33]Write 4 bytes [16:48:33]NVStorageSaveData done [16:48:33]ExternCall_PrintAddStr [16:48:33]wPrintStart [16:48:33]Write to MH i2c: 01 00 00 D5 68 3D [16:48:33]Write i2c OK [16:48:33]MH_I2C_Read... [16:48:33]Read from MH i2c: 01 [16:48:33]MH_I2C_Read... [16:48:33]Read from MH i2c: 01 07 00 [16:48:33]MH_I2C_Read... [16:48:33]Read from MH i2c: 01 07 00 D5 68 00 00 00 00 00 FF 0F 52 [16:48:33]RasterBufferAndPrint [16:48:33]line Счет N : (1)949732 [16:48:33]line ИНН: 02508201610067 [16:48:33]line Контрольно-Кассовый Чек [16:48:33]line ПРОДАЖА [16:48:33]line ТРК (МРК, ГНК) : 51 [16:48:33]line Товар: 2710124130 [16:48:33]line Аи-92-К-4 [16:48:33]line 8.850 * 67.80 [16:48:33]line = 600.03 [16:48:33]line НДС 12% НСП 1% [16:48:33]line > о реализуемом товаре [16:48:33]line ОКРУГЛЕНИЕ: -0.03 [16:48:33]line ИТОГО: 600.00 [16:48:33]line Внесено: 600.00 [16:48:33]line СДАЧА: 0.00 [16:48:33]line НСП 1% : 5.31 [16:48:33]line НДС 12% : 63.72 [16:48:33]line Наличными: 600.00 [16:48:33]line Безнал.: 0.00 [16:48:33]line Место: АЗС № 134 "Партнер Нефть" [16:48:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:48:33]line СНО: Общий режим [16:48:33]line Чек 217 29.07.2024 16:48 [16:48:33]line Смена: 434 ФФД: 1.0 [16:48:33]line ЗНМ: 0300000044 [16:48:33]line РНМ: 0000000000092660 [16:48:33]line Версия ККМ: 001 [16:48:33]line ФМ: 0000000000874939 [16:48:33]line ФД: 118841 [16:48:33]line ФПД: 70833369386521 [16:48:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164837&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118841&fm=70833369386521&tin=02508201610067®Number=0000000000092660&sum=60000 [16:48:33]OFD Sender: Processing packet 118841 [packets to send 86, broken 85] [16:48:33]ProducePacketName [16:48:33]name=ofd_packets/00118841 [16:48:33]OFD Sender: To server: pG, [16:48:33]CommunicateWithHost lk.salyk.kg:30040 [16:48:33]ConnectInit lk.salyk.kg [16:48:33]written 0, free lines is 4095 [16:48:33]Connected sock=10 [16:48:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A0 68 07 01 F1 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 E5 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 D0 01 00 35 04 06 00 40 6C 2D D2 0E 19 D8 44 F5 85 A1 90 55 95 [16:48:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 62 AA 47 00 74 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 D0 01 00 F4 03 04 00 73 75 A7 66 B6 04 01 00 00 2D 08 79 4D 71 BE 7C 93 [16:48:33]CommunicateWithHost err = 0 [16:48:33]CheckOFDResponse [16:48:33]1017 (14) - 77093643461234 [16:48:33]1041 (16) - 0000000000874939 [16:48:33]1040 (4) - 118841 [16:48:33]1012 (4) - 29.07.2024 10:56 [16:48:33]1206 (1) - 0 [16:48:33]OFD Sender: Remove packet 118841 [16:48:33]ProducePacketName [16:48:33]name=ofd_packets/00118841 [16:48:33]NVStorageDeleteData [16:48:33]Write to MH i2c: 01 00 00 FF 68 67 [16:48:33]Write i2c OK [16:48:33]MH_I2C_Read... [16:48:33]Read from MH i2c: 01 [16:48:33]MH_I2C_Read... [16:48:33]Read from MH i2c: 01 07 00 [16:48:33]MH_I2C_Read... [16:48:33]Read from MH i2c: 01 07 00 FF 68 00 00 00 00 00 F4 0C 6E [16:48:33]RasterBufferAndPrint [16:48:33]line [16:48:33]line [16:48:33]line [16:48:33]line [16:48:33]line [16:48:33]written 0, free lines is 3324 [16:48:33]MH_Cut [16:48:33]Write to MH i2c: D1 01 00 06 69 01 41 [16:48:33]Write i2c OK [16:48:33]MH_I2C_Read... [16:48:33]Read from MH i2c: D1 [16:48:33]MH_I2C_Read... [16:48:33]Read from MH i2c: D1 01 00 [16:48:33]MH_I2C_Read... [16:48:33]Read from MH i2c: D1 01 00 06 69 00 40 [16:48:33]Write to MH i2c: 01 00 00 07 69 70 [16:48:33]Write i2c OK [16:48:33]MH_I2C_Read... [16:48:34]OFD Sender: No OFD packet to send [16:48:34]*** Cut start [16:48:34]*** Partial cut [16:48:34]*** CUTSNS_PIN = 1 [16:48:34]*** CUTSNS_PIN = 0 [16:48:34]*** Brake cut motor [16:48:35]Read from MH i2c: 01 [16:48:35]MH_I2C_Read... [16:48:35]*** Stop cut motor [16:48:35]*** Cut end [16:48:35]Read from MH i2c: 01 07 00 [16:48:35]MH_I2C_Read... [16:48:35]Read from MH i2c: 01 07 00 07 69 00 00 00 00 00 FF 0F 85 [16:48:35]process_action close_receipt done [16:48:35]requested_data is exist [16:48:35]produce_requested_data [16:48:35]requested_item fm.sn is exist - process it [16:48:35]wFMCommunicate request_size=4 [16:48:35]MH_SAM_APDU [16:48:35]CAPDU: 80 11 00 00 [16:48:35]Write to MH i2c: E2 08 00 08 69 80 11 00 00 00 00 00 00 EB [16:48:35]Write i2c OK [16:48:35]MH_I2C_Read... [16:48:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:35]Read from MH i2c: E2 [16:48:35]MH_I2C_Read... [16:48:35]Read from MH i2c: E2 17 00 [16:48:35]MH_I2C_Read... [16:48:35]Read from MH i2c: E2 17 00 08 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 46 [16:48:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:48:35]wFMCommunicate OK [16:48:35]requested_item fd.num is exist - process it [16:48:35]SAM_PROTO_GetFieldsCounters [16:48:35]wFMCommunicate request_size=4 [16:48:35]MH_SAM_APDU [16:48:35]CAPDU: 80 13 00 00 [16:48:35]Write to MH i2c: E2 08 00 09 69 80 13 00 00 00 00 00 00 EE [16:48:35]Write i2c OK [16:48:35]MH_I2C_Read... [16:48:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:35]Read from MH i2c: E2 [16:48:35]MH_I2C_Read... [16:48:35]Read from MH i2c: E2 62 00 [16:48:35]MH_I2C_Read... [16:48:35]Read from MH i2c: E2 62 00 09 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [16:48: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:35]wFMCommunicate OK [16:48:35]SAM_PROTO_GetFieldsCounters done [16:48:35]requested_item shift.num is exist - process it [16:48:35]requested_item shift.opened is exist - process it [16:48:35]req_shift_opened [16:48:35]FM_GetShiftState [16:48:35]SAM_PROTO_GetShiftState [16:48:35]wFMCommunicate request_size=4 [16:48:35]MH_SAM_APDU [16:48:35]CAPDU: 80 13 01 00 [16:48:35]Write to MH i2c: E2 08 00 0A 69 80 13 01 00 00 00 00 00 F0 [16:48:35]Write i2c OK [16:48:35]MH_I2C_Read... [16:48:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:35]Read from MH i2c: E2 [16:48:35]MH_I2C_Read... [16:48:35]Read from MH i2c: E2 0E 00 [16:48:35]MH_I2C_Read... [16:48:35]Read from MH i2c: E2 0E 00 0A 69 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 1E [16:48:35]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [16:48:35]wFMCommunicate OK [16:48:35]SAM_PROTO_GetShiftState done [16:48:35]FM_GetShiftState done [16:48:35]req_shift_opened done [16:48:35]requested_item shift.open_date is exist - process it [16:48:35]req_shift_open_date [16:48:35]req_shift_open_date done [16:48:35]produce_requested_data done [16:48:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118841,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [16:48:35]process_action_free close_receipt [16:48:35]json_value_free [16:48:35]json_value_free done [16:48:35]process_json_proto returns [16:48:35]Send response to host [16:48:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118841,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [16:48:35]free response buf [16:48:35]execute_script done [16:48:35]execute_script returns [16:48:35]free content buf [16:48:35]Sock 7.Close socket [16:48:35]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:59]OFD Sender: No OFD packet to send [16:56:04]OFD Sender: No OFD packet to send [16:56:09]OFD Sender: No OFD packet to send [16:56:14]OFD Sender: No OFD packet to send [16:56:19]OFD Sender: No OFD packet to send [16:56:24]OFD Sender: No OFD packet to send [16:56:29]OFD Sender: No OFD packet to send [16:56:34]OFD Sender: No OFD packet to send [16:56:39]OFD Sender: No OFD packet to send [16:56:44]OFD Sender: No OFD packet to send [16:56:49]OFD Sender: No OFD packet to send [16:56:54]OFD Sender: No OFD packet to send [16:56:59]OFD Sender: No OFD packet to send [16:57:04]OFD Sender: No OFD packet to send [16:57:09]OFD Sender: No OFD packet to send [16:57:14]OFD Sender: No OFD packet to send [16:57:19]OFD Sender: No OFD packet to send [16:57:24]OFD Sender: No OFD packet to send [16:57:29]OFD Sender: No OFD packet to send [16:57:34]OFD Sender: No OFD packet to send [16:57:39]OFD Sender: No OFD packet to send [16:57:44]OFD Sender: No OFD packet to send [16:57:49]OFD Sender: No OFD packet to send [16:57:54]OFD Sender: No OFD packet to send [16:57:59]OFD Sender: No OFD packet to send [16:58:04]OFD Sender: No OFD packet to send [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:19]OFD Sender: No OFD packet to send [16:58:24]OFD Sender: No OFD packet to send [16:58:29]OFD Sender: No OFD packet to send [16:58:34]OFD Sender: No OFD packet to send [16:58:39]OFD Sender: No OFD packet to send [16:58:44]OFD Sender: No OFD packet to send [16:58:49]OFD Sender: No OFD packet to send [16:58:54]OFD Sender: No OFD packet to send [16:58:59]OFD Sender: No OFD packet to send [16:59:04]OFD Sender: No OFD packet to send [16:59:09]OFD Sender: No OFD packet to send [16:59:14]OFD Sender: No OFD packet to send [16:59:19]OFD Sender: No OFD packet to send [16:59:24]OFD Sender: No OFD packet to send [16:59:29]OFD Sender: No OFD packet to send [16:59:34]OFD Sender: No OFD packet to send [16:59:39]OFD Sender: No OFD packet to send [16:59:44]OFD Sender: No OFD packet to send [16:59:49]OFD Sender: No OFD packet to send [16:59:54]OFD Sender: No OFD packet to send [16:59:59]OFD Sender: No OFD packet to send [17:00:04]OFD Sender: No OFD packet to send [17:00:09]OFD Sender: No OFD packet to send [17:00:14]OFD Sender: No OFD packet to send [17:00:19]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:15]OFD Sender: No OFD packet to send [17:01:20]OFD Sender: No OFD packet to send [17:01:25]OFD Sender: No OFD packet to send [17:01:30]OFD Sender: No OFD packet to send [17:01:35]OFD Sender: No OFD packet to send [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:07:00]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:45]OFD Sender: No OFD packet to send [17:07:50]OFD Sender: No OFD packet to send [17:07:55]OFD Sender: No OFD packet to send [17:08:00]OFD Sender: No OFD packet to send [17:08:05]OFD Sender: No OFD packet to send [17:08:10]OFD Sender: No OFD packet to send [17:08:15]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:05]OFD Sender: No OFD packet to send [17:09: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:15]OFD Sender: No OFD packet to send [17:10:20]OFD Sender: No OFD packet to send [17:10:25]OFD Sender: No OFD packet to send [17:10:30]OFD Sender: No OFD packet to send [17:10:35]OFD Sender: No OFD packet to send [17:10:40]OFD Sender: No OFD packet to send [17:10:45]OFD Sender: No OFD packet to send [17:10:50]OFD Sender: No OFD packet to send [17:10:55]OFD Sender: No OFD packet to send [17:10:56]accept exits with 9 [17:10:56]New connection [17:10:56]New thread 3067383140 created [17:10:56]Thread 3067239780 joined [17:10:56]Waiting for new connection... [17:10:56] Sock 9.Parse request [17:10:56]Sock 9.Check first char [17:10:56]Sock 9.First char is OK [17:10:56]request: POST /json_proto HTTP/1.0 [17:10:56]Method: POST [17:10:56]URL: /json_proto [17:10:56]Method is POST - this is cgi request [17:10:56]url: /json_proto [17:10:56]query_string will be loaded in cgi processing [17:10:56]execute_cgi json_proto POST (null) [17:10:56]execute_cgi path=json_proto method=POST [17:10:56]POST find Content-Length [17:10:56]Host: 172.17.45.7:8080 [17:10:56]Content-Length: 679 [17:10:56]Content-Type: application/json [17:10:56] [17:10:56]POST finish read [17:10:56]Found Content-Length = 679 [17:10:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:56]execute_script... [17:10:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:56]POST & json_proto [17:10:56]process_json_proto [17:10:56]json parsed OK: [17:10:56]protocol is kg_v1.0 [17:10:56]action value=close_receipt [17:10:56]process_action close_receipt [17:10:56]cmd_close_receipt [17:10:56]MH_GetDate [17:10:56]Write to MH i2c: F0 00 00 0B 69 63 [17:10:56]Write i2c OK [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: F0 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: F0 09 00 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: F0 09 00 0B 69 00 26 CD A7 66 90 0F 3E 66 AF [17:10:56]GetLastDocTimeStamp 1722271717 [17:10:56]current date 1722273062 [17:10:56]FM_GetShiftState [17:10:56]SAM_PROTO_GetShiftState [17:10:56]wFMCommunicate request_size=4 [17:10:56]MH_SAM_APDU [17:10:56]CAPDU: 80 13 01 00 [17:10:56]Write to MH i2c: E2 08 00 0C 69 80 13 01 00 00 00 00 00 F2 [17:10:56]Write i2c OK [17:10:56]MH_I2C_Read... [17:10:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:56]Read from MH i2c: E2 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: E2 0E 00 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: E2 0E 00 0C 69 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 20 [17:10:56]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:10:56]wFMCommunicate OK [17:10:56]SAM_PROTO_GetShiftState done [17:10:56]FM_GetShiftState done [17:10:56]opened in 1722211641 [17:10:56]opened+sec_in_day 1722298041 [17:10:56]quantity*price = 160020 [17:10:56]sum+1 = 160021 [17:10:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.93 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 218 29.07.2024 17:11 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118842 ФПД: 230229868525567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T171102&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118842&fm=230229868525567&tin=02508201610067®Number=0000000000092660&sum=160000 [17:10:57]StoreToDocumentArchive [17:10:57]shift 434 fd 118842 [17:10:57]save to /storage/0434/doc_00118842 [17:10:57]save last doc name /storage/0434/doc_00118842 to /storage/kkm_last_doc_name [17:10:57]save OK [17:10:57]Clear old archive folders... [17:10:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:10:57]tlvbuf is 01F33D50 [17:10:57]SAM_PROTO_ClearQueue [17:10:57]wFMCommunicate request_size=4 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 09 00 00 [17:10:57]Write to MH i2c: E2 08 00 19 69 80 09 00 00 00 00 00 00 F4 [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 19 69 00 90 00 F6 [17:10:57]RAPDU: 90 00 [17:10:57]wFMCommunicate OK [17:10:57]SAM_PROTO_ClearQueue done [17:10:57]KKMCreateOFDPacket [17:10:57]OFDProtocolAddRootSTLVToBuf [17:10:57]FM_MakeSignedData [17:10:57]FM_MakeSignedData [17:10:57]SAM_PROTO_SignData [17:10:57]wFMCommunicate request_size=4 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 0D 01 02 [17:10:57]Write to MH i2c: E2 08 00 1A 69 80 0D 01 02 00 00 00 00 FC [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 1A 69 00 90 00 F7 [17:10:57]RAPDU: 90 00 [17:10:57]wFMCommunicate OK [17:10:57]wFMCommunicate request_size=255 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 26 CD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A D0 01 00 35 04 06 00 D1 64 91 87 [17:10:57]Write to MH i2c: E2 02 01 1B 69 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 26 CD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A D0 01 00 35 04 06 00 D1 64 91 87 00 00 21 [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 1B 69 00 90 00 F8 [17:10:57]RAPDU: 90 00 [17:10:57]wFMCommunicate OK [17:10:57]wFMCommunicate request_size=7 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 0D 02 02 02 B7 FF [17:10:57]Write to MH i2c: E2 0A 00 1C 69 80 0D 02 02 02 00 B7 FF 00 00 B9 [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 1C 69 00 90 00 F9 [17:10:57]RAPDU: 90 00 [17:10:57]wFMCommunicate OK [17:10:57]wFMCommunicate request_size=4 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 0D 03 02 [17:10:57]Write to MH i2c: E2 08 00 1D 69 80 0D 03 02 00 00 00 00 01 [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 0B 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 0B 00 1D 69 00 24 F5 EF A7 A5 0F D5 DE 90 00 18 [17:10:57]RAPDU: 24 F5 EF A7 A5 0F D5 DE 90 00 [17:10:57]wFMCommunicate OK [17:10:57]SAM_PROTO_SignData done [17:10:57]FM_MakeSignedData done [17:10:57]CreateOFDProtocolMessage [17:10:57]wFMCommunicate request_size=4 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 11 00 00 [17:10:57]Write to MH i2c: E2 08 00 1E 69 80 11 00 00 00 00 00 00 01 [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 17 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 17 00 1E 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5C [17:10:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:10:57]wFMCommunicate OK [17:10:57]CreateOFDProtocolMessage done [17:10:57]OFDSenderStorePacket 118842 [17:10:57]StoreOFDPacket docnum=118842 [17:10:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2F 48 04 01 25 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 26 CD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A D0 01 00 35 04 06 00 D1 64 91 87 B7 FF 24 F5 EF A7 A5 0F D5 DE [17:10:57]CheckFolder [17:10:57]dirname=/storage/ofd_packets [17:10:57]CheckFolder done [17:10:57]ProducePacketName [17:10:57]name=ofd_packets/00118842 [17:10:57]NVStorageSaveData ofd_packets/00118842 [17:10:57]File name is /storage/ofd_packets/00118842 [17:10:57]Write 298 bytes [17:10:57]NVStorageSaveData done [17:10:57]OFDSenderStorePacket done [17:10:57]KKMCreateOFDPacket done [17:10:57]NVStorageSaveData kkm_last_timestamp [17:10:57]File name is /storage/kkm_last_timestamp [17:10:57]Write 4 bytes [17:10:57]NVStorageSaveData done [17:10:57]ExternCall_PrintAddStr [17:10:57]wPrintStart [17:10:57]Write to MH i2c: 01 00 00 1F 69 88 [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: 01 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: 01 07 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: 01 07 00 1F 69 00 00 00 00 00 FF 0F 9D [17:10:57]RasterBufferAndPrint [17:10:57]line Счет N : (1)949733 [17:10:57]line ИНН: 02508201610067 [17:10:57]line Контрольно-Кассовый Чек [17:10:57]line ПРОДАЖА [17:10:57]line ТРК (МРК, ГНК) : 34 [17:10:57]line Товар: 2710194800 [17:10:57]line ДТ-К-5 [17:10:57]line 21.000 * 76.20 [17:10:57]line = 1600.20 [17:10:57]line НДС 12% НСП 1% [17:10:57]line > о реализуемом товаре [17:10:57]line ОКРУГЛЕНИЕ: -0.20 [17:10:57]line ИТОГО: 1600.00 [17:10:57]line Внесено: 1600.00 [17:10:57]line СДАЧА: 0.00 [17:10:57]line НСП 1% : 14.16 [17:10:57]line НДС 12% : 169.93 [17:10:57]line Наличными: 1600.00 [17:10:57]line Безнал.: 0.00 [17:10:57]line Место: АЗС № 134 "Партнер Нефть" [17:10:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:10:57]line СНО: Общий режим [17:10:57]line Чек 218 29.07.2024 17:11 [17:10:57]line Смена: 434 ФФД: 1.0 [17:10:57]line ЗНМ: 0300000044 [17:10:57]line РНМ: 0000000000092660 [17:10:57]line Версия ККМ: 001 [17:10:57]line ФМ: 0000000000874939 [17:10:57]line ФД: 118842 [17:10:57]line ФПД: 230229868525567 [17:10:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T171102&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118842&fm=230229868525567&tin=02508201610067®Number=0000000000092660&sum=160000 [17:10:58]OFD Sender: Processing packet 118842 [packets to send 86, broken 85] [17:10:58]ProducePacketName [17:10:58]name=ofd_packets/00118842 [17:10:58]OFD Sender: To server: pG, [17:10:58]CommunicateWithHost lk.salyk.kg:30040 [17:10:58]ConnectInit lk.salyk.kg [17:10:58]written 0, free lines is 4095 [17:10:58]Connected sock=10 [17:10:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2F 48 04 01 25 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 26 CD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A D0 01 00 35 04 06 00 D1 64 91 87 B7 FF 24 F5 EF A7 A5 0F D5 DE [17:10:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A2 3F 47 00 72 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 34 39 33 39 10 04 04 00 3A D0 01 00 F4 03 04 00 B3 7A A7 66 B6 04 01 00 00 D2 9E E9 A7 B2 D6 21 81 [17:10:58]CommunicateWithHost err = 0 [17:10:58]CheckOFDResponse [17:10:58]1017 (14) - 77093643461234 [17:10:58]1041 (16) - 0000000000874939 [17:10:58]1040 (4) - 118842 [17:10:58]1012 (4) - 29.07.2024 11:19 [17:10:58]1206 (1) - 0 [17:10:58]OFD Sender: Remove packet 118842 [17:10:58]ProducePacketName [17:10:58]name=ofd_packets/00118842 [17:10:58]NVStorageDeleteData [17:10:58]Write to MH i2c: 01 00 00 49 69 B2 [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 07 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 07 00 49 69 00 00 00 00 00 E3 0C A8 [17:10:58]RasterBufferAndPrint [17:10:58]line [17:10:58]line [17:10:58]line [17:10:58]line [17:10:58]line [17:10:58]written 0, free lines is 3305 [17:10:58]MH_Cut [17:10:58]Write to MH i2c: D1 01 00 50 69 01 8B [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: D1 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: D1 01 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: D1 01 00 50 69 00 8A [17:10:58]Write to MH i2c: 01 00 00 51 69 BA [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]OFD Sender: No OFD packet to send [17:10:59]*** Cut start [17:10:59]*** Partial cut [17:10:59]*** CUTSNS_PIN = 1 [17:10:59]*** CUTSNS_PIN = 0 [17:10:59]*** Brake cut motor [17:10:59]Read from MH i2c: 01 [17:10:59]MH_I2C_Read... [17:10:59]*** Stop cut motor [17:10:59]*** Cut end [17:10:59]Read from MH i2c: 01 07 00 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: 01 07 00 51 69 00 00 00 00 00 FF 0F CF [17:10:59]process_action close_receipt done [17:10:59]requested_data is exist [17:10:59]produce_requested_data [17:10:59]requested_item fm.sn is exist - process it [17:10:59]wFMCommunicate request_size=4 [17:10:59]MH_SAM_APDU [17:10:59]CAPDU: 80 11 00 00 [17:10:59]Write to MH i2c: E2 08 00 52 69 80 11 00 00 00 00 00 00 35 [17:10:59]Write i2c OK [17:10:59]MH_I2C_Read... [17:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:59]Read from MH i2c: E2 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: E2 17 00 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: E2 17 00 52 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 90 [17:10:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:10:59]wFMCommunicate OK [17:10:59]requested_item fd.num is exist - process it [17:10:59]SAM_PROTO_GetFieldsCounters [17:10:59]wFMCommunicate request_size=4 [17:10:59]MH_SAM_APDU [17:10:59]CAPDU: 80 13 00 00 [17:10:59]Write to MH i2c: E2 08 00 53 69 80 13 00 00 00 00 00 00 38 [17:10:59]Write i2c OK [17:10:59]MH_I2C_Read... [17:11:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:00]Read from MH i2c: E2 [17:11:00]MH_I2C_Read... [17:11:00]Read from MH i2c: E2 62 00 [17:11:00]MH_I2C_Read... [17:11:00]Read from MH i2c: E2 62 00 53 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3A D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [17:11: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3A D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:00]wFMCommunicate OK [17:11:00]SAM_PROTO_GetFieldsCounters done [17:11:00]requested_item shift.num is exist - process it [17:11:00]requested_item shift.opened is exist - process it [17:11:00]req_shift_opened [17:11:00]FM_GetShiftState [17:11:00]SAM_PROTO_GetShiftState [17:11:00]wFMCommunicate request_size=4 [17:11:00]MH_SAM_APDU [17:11:00]CAPDU: 80 13 01 00 [17:11:00]Write to MH i2c: E2 08 00 54 69 80 13 01 00 00 00 00 00 3A [17:11:00]Write i2c OK [17:11:00]MH_I2C_Read... [17:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:00]Read from MH i2c: E2 [17:11:00]MH_I2C_Read... [17:11:00]Read from MH i2c: E2 0E 00 [17:11:00]MH_I2C_Read... [17:11:00]Read from MH i2c: E2 0E 00 54 69 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 68 [17:11:00]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:11:00]wFMCommunicate OK [17:11:00]SAM_PROTO_GetShiftState done [17:11:00]FM_GetShiftState done [17:11:00]req_shift_opened done [17:11:00]requested_item shift.open_date is exist - process it [17:11:00]req_shift_open_date [17:11:00]req_shift_open_date done [17:11:00]produce_requested_data done [17:11:00]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118842,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [17:11:00]process_action_free close_receipt [17:11:00]json_value_free [17:11:00]json_value_free done [17:11:00]process_json_proto returns [17:11:00]Send response to host [17:11:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118842,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [17:11:00]free response buf [17:11:00]execute_script done [17:11:00]execute_script returns [17:11:00]free content buf [17:11:00]Sock 9.Close socket [17:11:00]Sock 9.Thread stoped [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:14]OFD Sender: No OFD packet to send [17:13:19]OFD Sender: No OFD packet to send [17:13:24]OFD Sender: No OFD packet to send [17:13:29]OFD Sender: No OFD packet to send [17:13:34]OFD Sender: No OFD packet to send [17:13:39]OFD Sender: No OFD packet to send [17:13:44]OFD Sender: No OFD packet to send [17:13:49]OFD Sender: No OFD packet to send [17:13:54]OFD Sender: No OFD packet to send [17:13:59]OFD Sender: No OFD packet to send [17:14:04]OFD Sender: No OFD packet to send [17:14:09]OFD Sender: No OFD packet to send [17:14:14]OFD Sender: No OFD packet to send [17:14:19]OFD Sender: No OFD packet to send [17:14:24]OFD Sender: No OFD packet to send [17:14:29]OFD Sender: No OFD packet to send [17:14:34]OFD Sender: No OFD packet to send [17:14:39]OFD Sender: No OFD packet to send [17:14:44]OFD Sender: No OFD packet to send [17:14:49]OFD Sender: No OFD packet to send [17:14:54]OFD Sender: No OFD packet to send [17:14:59]OFD Sender: No OFD packet to send [17:15:04]OFD Sender: No OFD packet to send [17:15:09]OFD Sender: No OFD packet to send [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:43]accept exits with 7 [17:15:43]New connection [17:15:43]New thread 3067239780 created [17:15:43]Thread 3067383140 joined [17:15:43]Waiting for new connection... [17:15:43] Sock 7.Parse request [17:15:43]Sock 7.Check first char [17:15:43]Sock 7.First char is OK [17:15:43]request: POST /json_proto HTTP/1.0 [17:15:43]Method: POST [17:15:43]URL: /json_proto [17:15:43]Method is POST - this is cgi request [17:15:43]url: /json_proto [17:15:43]query_string will be loaded in cgi processing [17:15:43]execute_cgi json_proto POST (null) [17:15:43]execute_cgi path=json_proto method=POST [17:15:43]POST find Content-Length [17:15:43]Host: 172.17.45.7:8080 [17:15:43]Content-Length: 677 [17:15:43]Content-Type: application/json [17:15:43] [17:15:43]POST finish read [17:15:43]Found Content-Length = 677 [17:15:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:43]execute_script... [17:15:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:43]POST & json_proto [17:15:43]process_json_proto [17:15:43]json parsed OK: [17:15:43]protocol is kg_v1.0 [17:15:43]action value=close_receipt [17:15:43]process_action close_receipt [17:15:43]cmd_close_receipt [17:15:43]MH_GetDate [17:15:43]Write to MH i2c: F0 00 00 55 69 AD [17:15:43]Write i2c OK [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: F0 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: F0 09 00 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: F0 09 00 55 69 00 46 CE A7 66 90 0F 3E 66 1A [17:15:43]GetLastDocTimeStamp 1722273062 [17:15:43]current date 1722273350 [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 56 69 80 13 01 00 00 00 00 00 3C [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 56 69 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 6A [17:15:43]RAPDU: 09 00 01 39 DD A6 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]opened in 1722211641 [17:15:43]opened+sec_in_day 1722298041 [17:15:43]quantity*price = 30035 [17:15:43]sum+1 = 30036 [17:15:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 219 29.07.2024 17:15 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118843 ФПД: 31838109952153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T171550&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118843&fm=31838109952153&tin=02508201610067®Number=0000000000092660&sum=30000 [17:15:45]StoreToDocumentArchive [17:15:45]shift 434 fd 118843 [17:15:45]save to /storage/0434/doc_00118843 [17:15:45]save last doc name /storage/0434/doc_00118843 to /storage/kkm_last_doc_name [17:15:45]save OK [17:15:45]Clear old archive folders... [17:15:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:15:45]tlvbuf is 01FB6560 [17:15:45]SAM_PROTO_ClearQueue [17:15:45]wFMCommunicate request_size=4 [17:15:45]MH_SAM_APDU [17:15:45]CAPDU: 80 09 00 00 [17:15:45]Write to MH i2c: E2 08 00 63 69 80 09 00 00 00 00 00 00 3E [17:15:45]Write i2c OK [17:15:45]MH_I2C_Read... [17:15:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:45]Read from MH i2c: E2 [17:15:45]MH_I2C_Read... [17:15:45]Read from MH i2c: E2 03 00 [17:15:45]MH_I2C_Read... [17:15:45]Read from MH i2c: E2 03 00 63 69 00 90 00 40 [17:15:45]RAPDU: 90 00 [17:15:45]wFMCommunicate OK [17:15:45]SAM_PROTO_ClearQueue done [17:15:45]KKMCreateOFDPacket [17:15:45]OFDProtocolAddRootSTLVToBuf [17:15:45]FM_MakeSignedData [17:15:45]FM_MakeSignedData [17:15:45]SAM_PROTO_SignData [17:15:45]wFMCommunicate request_size=4 [17:15:45]MH_SAM_APDU [17:15:45]CAPDU: 80 0D 01 02 [17:15:45]Write to MH i2c: E2 08 00 64 69 80 0D 01 02 00 00 00 00 46 [17:15:45]Write i2c OK [17:15:45]MH_I2C_Read... [17:15:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:45]Read from MH i2c: E2 [17:15:45]MH_I2C_Read... [17:15:45]Read from MH i2c: E2 03 00 [17:15:45]MH_I2C_Read... [17:15:45]Read from MH i2c: E2 03 00 64 69 00 90 00 41 [17:15:45]RAPDU: 90 00 [17:15:45]wFMCommunicate OK [17:15:45]wFMCommunicate request_size=255 [17:15:45]MH_SAM_APDU [17:15: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 46 CE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B D0 01 00 35 04 06 00 1C [17:15:45]Write to MH i2c: E2 02 01 65 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 46 CE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B D0 01 00 35 04 06 00 1C 00 00 C0 [17:15:45]Write i2c OK [17:15:45]MH_I2C_Read... [17:15:45]Read from MH i2c: E2 [17:15:45]MH_I2C_Read... [17:15:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:45]Read from MH i2c: E2 03 00 [17:15:45]MH_I2C_Read... [17:15:45]Read from MH i2c: E2 03 00 65 69 00 90 00 42 [17:15:45]RAPDU: 90 00 [17:15:45]wFMCommunicate OK [17:15:45]wFMCommunicate request_size=10 [17:15:45]MH_SAM_APDU [17:15:45]CAPDU: 80 0D 02 02 05 F4 E3 3B E8 99 [17:15:45]Write to MH i2c: E2 0D 00 66 69 80 0D 02 02 05 00 F4 E3 3B E8 99 00 00 E6 [17:15:45]Write i2c OK [17:15:45]MH_I2C_Read... [17:15:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:45]Read from MH i2c: E2 [17:15:45]MH_I2C_Read... [17:15:45]Read from MH i2c: E2 03 00 [17:15:45]MH_I2C_Read... [17:15:45]Read from MH i2c: E2 03 00 66 69 00 90 00 43 [17:15:45]RAPDU: 90 00 [17:15:45]wFMCommunicate OK [17:15:45]wFMCommunicate request_size=4 [17:15:45]MH_SAM_APDU [17:15:45]CAPDU: 80 0D 03 02 [17:15:45]Write to MH i2c: E2 08 00 67 69 80 0D 03 02 00 00 00 00 4B [17:15:45]Write i2c OK [17:15:45]MH_I2C_Read... [17:15:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:45]Read from MH i2c: E2 [17:15:45]MH_I2C_Read... [17:15:45]Read from MH i2c: E2 0B 00 [17:15:45]MH_I2C_Read... [17:15:45]Read from MH i2c: E2 0B 00 67 69 00 1D BD BF A5 F2 3E E8 27 90 00 C9 [17:15:45]RAPDU: 1D BD BF A5 F2 3E E8 27 90 00 [17:15:45]wFMCommunicate OK [17:15:45]SAM_PROTO_SignData done [17:15:45]FM_MakeSignedData done [17:15:45]CreateOFDProtocolMessage [17:15:45]wFMCommunicate request_size=4 [17:15:45]MH_SAM_APDU [17:15:45]CAPDU: 80 11 00 00 [17:15:45]Write to MH i2c: E2 08 00 68 69 80 11 00 00 00 00 00 00 4B [17:15:45]Write i2c OK [17:15:45]MH_I2C_Read... [17:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:45]Read from MH i2c: E2 [17:15:45]MH_I2C_Read... [17:15:45]Read from MH i2c: E2 17 00 [17:15:45]MH_I2C_Read... [17:15:45]Read from MH i2c: E2 17 00 68 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A6 [17:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:15:45]wFMCommunicate OK [17:15:45]CreateOFDProtocolMessage done [17:15:45]OFDSenderStorePacket 118843 [17:15:45]StoreOFDPacket docnum=118843 [17:15:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F2 A9 07 01 6D 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 46 CE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B D0 01 00 35 04 06 00 1C F4 E3 3B E8 99 1D BD BF A5 F2 3E E8 27 [17:15:45]CheckFolder [17:15:45]dirname=/storage/ofd_packets [17:15:45]CheckFolder done [17:15:45]ProducePacketName [17:15:45]name=ofd_packets/00118843 [17:15:45]NVStorageSaveData ofd_packets/00118843 [17:15:45]File name is /storage/ofd_packets/00118843 [17:15:45]Write 301 bytes [17:15:45]NVStorageSaveData done [17:15:45]OFDSenderStorePacket done [17:15:45]KKMCreateOFDPacket done [17:15:45]NVStorageSaveData kkm_last_timestamp [17:15:45]File name is /storage/kkm_last_timestamp [17:15:45]Write 4 bytes [17:15:45]NVStorageSaveData done [17:15:45]ExternCall_PrintAddStr [17:15:45]wPrintStart [17:15:45]Write to MH i2c: 01 00 00 69 69 D2 [17:15:45]Write i2c OK [17:15:45]MH_I2C_Read... [17:15:45]Read from MH i2c: 01 [17:15:45]MH_I2C_Read... [17:15:45]Read from MH i2c: 01 07 00 [17:15:45]MH_I2C_Read... [17:15:45]Read from MH i2c: 01 07 00 69 69 00 00 00 00 00 FF 0F E7 [17:15:45]RasterBufferAndPrint [17:15:45]line Счет N : (1)949734 [17:15:45]line ИНН: 02508201610067 [17:15:45]line Контрольно-Кассовый Чек [17:15:45]line ПРОДАЖА [17:15:45]line ТРК (МРК, ГНК) : 31 [17:15:45]line Товар: 2710124130 [17:15:45]line Аи-92-К-4 [17:15:45]line 4.430 * 67.80 [17:15:45]line = 300.35 [17:15:45]line НДС 12% НСП 1% [17:15:45]line > о реализуемом товаре [17:15:45]line ОКРУГЛЕНИЕ: -0.35 [17:15:45]line ИТОГО: 300.00 [17:15:45]line Внесено: 300.00 [17:15:45]line СДАЧА: 0.00 [17:15:45]line НСП 1% : 2.66 [17:15:45]line НДС 12% : 31.90 [17:15:45]line Наличными: 300.00 [17:15:45]line Безнал.: 0.00 [17:15:45]line Место: АЗС № 134 "Партнер Нефть" [17:15:45]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:15:45]line СНО: Общий режим [17:15:45]line Чек 219 29.07.2024 17:15 [17:15:45]line Смена: 434 ФФД: 1.0 [17:15:45]line ЗНМ: 0300000044 [17:15:45]line РНМ: 0000000000092660 [17:15:45]line Версия ККМ: 001 [17:15:45]line ФМ: 0000000000874939 [17:15:45]line ФД: 118843 [17:15:45]line ФПД: 31838109952153 [17:15:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T171550&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118843&fm=31838109952153&tin=02508201610067®Number=0000000000092660&sum=30000 [17:15:45]OFD Sender: Processing packet 118843 [packets to send 86, broken 85] [17:15:45]ProducePacketName [17:15:45]name=ofd_packets/00118843 [17:15:45]OFD Sender: To server: pG, [17:15:45]CommunicateWithHost lk.salyk.kg:30040 [17:15:45]ConnectInit lk.salyk.kg [17:15:45]written 0, free lines is 4095 [17:15:45]Connected sock=10 [17:15:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F2 A9 07 01 6D 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 46 CE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B D0 01 00 35 04 06 00 1C F4 E3 3B E8 99 1D BD BF A5 F2 3E E8 27 [17:15:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 94 14 47 00 8C 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 34 39 33 39 10 04 04 00 3B D0 01 00 F4 03 04 00 D3 7B A7 66 B6 04 01 00 00 75 1D C1 84 0F 47 A9 08 [17:15:46]CommunicateWithHost err = 0 [17:15:46]CheckOFDResponse [17:15:46]1017 (14) - 77093643461234 [17:15:46]1041 (16) - 0000000000874939 [17:15:46]1040 (4) - 118843 [17:15:46]1012 (4) - 29.07.2024 11:24 [17:15:46]1206 (1) - 0 [17:15:46]OFD Sender: Remove packet 118843 [17:15:46]ProducePacketName [17:15:46]name=ofd_packets/00118843 [17:15:46]NVStorageDeleteData [17:15:46]Write to MH i2c: 01 00 00 93 69 FC [17:15:46]Write i2c OK [17:15:46]MH_I2C_Read... [17:15:46]Read from MH i2c: 01 [17:15:46]MH_I2C_Read... [17:15:46]Read from MH i2c: 01 07 00 [17:15:46]MH_I2C_Read... [17:15:46]Read from MH i2c: 01 07 00 93 69 00 00 00 00 00 D1 0C E0 [17:15:46]RasterBufferAndPrint [17:15:46]line [17:15:46]line [17:15:46]line [17:15:46]line [17:15:46]line [17:15:46]written 0, free lines is 3288 [17:15:46]MH_Cut [17:15:46]Write to MH i2c: D1 01 00 9A 69 01 D5 [17:15:46]Write i2c OK [17:15:46]MH_I2C_Read... [17:15:46]Read from MH i2c: D1 [17:15:46]MH_I2C_Read... [17:15:46]Read from MH i2c: D1 01 00 [17:15:46]MH_I2C_Read... [17:15:46]Read from MH i2c: D1 01 00 9A 69 00 D4 [17:15:46]Write to MH i2c: 01 00 00 9B 69 04 [17:15:46]Write i2c OK [17:15:46]MH_I2C_Read... [17:15:46]OFD Sender: No OFD packet to send [17:15:47]*** Cut start [17:15:47]*** Partial cut [17:15:47]*** CUTSNS_PIN = 1 [17:15:47]*** CUTSNS_PIN = 0 [17:15:47]*** Brake cut motor [17:15:47]Read from MH i2c: 01 [17:15:47]MH_I2C_Read... [17:15:47]*** Stop cut motor [17:15:47]*** Cut end [17:15:47]Read from MH i2c: 01 07 00 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: 01 07 00 9B 69 00 00 00 00 00 FF 0F 19 [17:15:47]process_action close_receipt done [17:15:47]requested_data is exist [17:15:47]produce_requested_data [17:15:47]requested_item fm.sn is exist - process it [17:15:47]wFMCommunicate request_size=4 [17:15:47]MH_SAM_APDU [17:15:47]CAPDU: 80 11 00 00 [17:15:47]Write to MH i2c: E2 08 00 9C 69 80 11 00 00 00 00 00 00 7F [17:15:47]Write i2c OK [17:15:47]MH_I2C_Read... [17:15:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:47]Read from MH i2c: E2 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: E2 17 00 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: E2 17 00 9C 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DA [17:15:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:15:47]wFMCommunicate OK [17:15:47]requested_item fd.num is exist - process it [17:15:47]SAM_PROTO_GetFieldsCounters [17:15:47]wFMCommunicate request_size=4 [17:15:47]MH_SAM_APDU [17:15:47]CAPDU: 80 13 00 00 [17:15:47]Write to MH i2c: E2 08 00 9D 69 80 13 00 00 00 00 00 00 82 [17:15:47]Write i2c OK [17:15:47]MH_I2C_Read... [17:15:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:47]Read from MH i2c: E2 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: E2 62 00 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: E2 62 00 9D 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3B D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [17:15: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3B D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:47]wFMCommunicate OK [17:15:47]SAM_PROTO_GetFieldsCounters done [17:15:47]requested_item shift.num is exist - process it [17:15:47]requested_item shift.opened is exist - process it [17:15:47]req_shift_opened [17:15:47]FM_GetShiftState [17:15:47]SAM_PROTO_GetShiftState [17:15:47]wFMCommunicate request_size=4 [17:15:47]MH_SAM_APDU [17:15:47]CAPDU: 80 13 01 00 [17:15:47]Write to MH i2c: E2 08 00 9E 69 80 13 01 00 00 00 00 00 84 [17:15:47]Write i2c OK [17:15:47]MH_I2C_Read... [17:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:47]Read from MH i2c: E2 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: E2 0E 00 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: E2 0E 00 9E 69 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B2 [17:15:47]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:15:47]wFMCommunicate OK [17:15:47]SAM_PROTO_GetShiftState done [17:15:47]FM_GetShiftState done [17:15:47]req_shift_opened done [17:15:47]requested_item shift.open_date is exist - process it [17:15:47]req_shift_open_date [17:15:47]req_shift_open_date done [17:15:47]produce_requested_data done [17:15:47]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118843,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [17:15:47]process_action_free close_receipt [17:15:47]json_value_free [17:15:47]json_value_free done [17:15:47]process_json_proto returns [17:15:47]Send response to host [17:15:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118843,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [17:15:47]free response buf [17:15:47]execute_script done [17:15:47]execute_script returns [17:15:47]free content buf [17:15:47]Sock 7.Close socket [17:15:47]Sock 7.Thread stoped [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:08]accept exits with 9 [17:19:08]New connection [17:19:08]New thread 3067383140 created [17:19:08]Thread 3067239780 joined [17:19:08]Waiting for new connection... [17:19:08] Sock 9.Parse request [17:19:08]Sock 9.Check first char [17:19:08]Sock 9.First char is OK [17:19:08]request: POST /json_proto HTTP/1.0 [17:19:08]Method: POST [17:19:08]URL: /json_proto [17:19:08]Method is POST - this is cgi request [17:19:08]url: /json_proto [17:19:08]query_string will be loaded in cgi processing [17:19:08]execute_cgi json_proto POST (null) [17:19:08]execute_cgi path=json_proto method=POST [17:19:08]POST find Content-Length [17:19:08]Host: 172.17.45.7:8080 [17:19:08]Content-Length: 678 [17:19:08]Content-Type: application/json [17:19:08] [17:19:08]POST finish read [17:19:08]Found Content-Length = 678 [17:19:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:08]execute_script... [17:19: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)949735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:08]POST & json_proto [17:19:08]process_json_proto [17:19:08]json parsed OK: [17:19:08]protocol is kg_v1.0 [17:19:08]action value=close_receipt [17:19:08]process_action close_receipt [17:19:08]cmd_close_receipt [17:19:08]MH_GetDate [17:19:08]Write to MH i2c: F0 00 00 9F 69 F7 [17:19:08]Write i2c OK [17:19:08]MH_I2C_Read... [17:19:08]Read from MH i2c: F0 [17:19:08]MH_I2C_Read... [17:19:08]Read from MH i2c: F0 09 00 [17:19:08]MH_I2C_Read... [17:19:08]Read from MH i2c: F0 09 00 9F 69 00 13 CF A7 66 90 0F 3E 66 32 [17:19:08]GetLastDocTimeStamp 1722273350 [17:19:08]current date 1722273555 [17:19:08]FM_GetShiftState [17:19:08]SAM_PROTO_GetShiftState [17:19:08]wFMCommunicate request_size=4 [17:19:08]MH_SAM_APDU [17:19:08]CAPDU: 80 13 01 00 [17:19:08]Write to MH i2c: E2 08 00 A0 69 80 13 01 00 00 00 00 00 86 [17:19:08]Write i2c OK [17:19:08]MH_I2C_Read... [17:19:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:08]Read from MH i2c: E2 [17:19:08]MH_I2C_Read... [17:19:08]Read from MH i2c: E2 0E 00 [17:19:08]MH_I2C_Read... [17:19:08]Read from MH i2c: E2 0E 00 A0 69 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B4 [17:19:08]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:19:08]wFMCommunicate OK [17:19:08]SAM_PROTO_GetShiftState done [17:19:08]FM_GetShiftState done [17:19:08]opened in 1722211641 [17:19:08]opened+sec_in_day 1722298041 [17:19:08]quantity*price = 80004 [17:19:08]sum+1 = 80005 [17:19:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 220 29.07.2024 17:19 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118844 ФПД: 189443854440022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T171915&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118844&fm=189443854440022&tin=02508201610067®Number=0000000000092660&sum=80000 [17:19:09]StoreToDocumentArchive [17:19:09]shift 434 fd 118844 [17:19:09]save to /storage/0434/doc_00118844 [17:19:09]save last doc name /storage/0434/doc_00118844 to /storage/kkm_last_doc_name [17:19:09]save OK [17:19:09]Clear old archive folders... [17:19:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:09]tlvbuf is 02042320 [17:19:09]SAM_PROTO_ClearQueue [17:19:09]wFMCommunicate request_size=4 [17:19:09]MH_SAM_APDU [17:19:09]CAPDU: 80 09 00 00 [17:19:09]Write to MH i2c: E2 08 00 AD 69 80 09 00 00 00 00 00 00 88 [17:19:09]Write i2c OK [17:19:09]MH_I2C_Read... [17:19:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:09]Read from MH i2c: E2 [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: E2 03 00 [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: E2 03 00 AD 69 00 90 00 8A [17:19:09]RAPDU: 90 00 [17:19:09]wFMCommunicate OK [17:19:09]SAM_PROTO_ClearQueue done [17:19:09]KKMCreateOFDPacket [17:19:09]OFDProtocolAddRootSTLVToBuf [17:19:09]FM_MakeSignedData [17:19:09]FM_MakeSignedData [17:19:09]SAM_PROTO_SignData [17:19:09]wFMCommunicate request_size=4 [17:19:09]MH_SAM_APDU [17:19:09]CAPDU: 80 0D 01 02 [17:19:09]Write to MH i2c: E2 08 00 AE 69 80 0D 01 02 00 00 00 00 90 [17:19:09]Write i2c OK [17:19:09]MH_I2C_Read... [17:19:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:09]Read from MH i2c: E2 [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: E2 03 00 [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: E2 03 00 AE 69 00 90 00 8B [17:19:09]RAPDU: 90 00 [17:19:09]wFMCommunicate OK [17:19:09]wFMCommunicate request_size=255 [17:19:09]MH_SAM_APDU [17:19:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 13 CF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C D0 01 00 35 04 06 00 AC [17:19:09]Write to MH i2c: E2 02 01 AF 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 13 CF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C D0 01 00 35 04 06 00 AC 00 00 F8 [17:19:09]Write i2c OK [17:19:09]MH_I2C_Read... [17:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:10]Read from MH i2c: E2 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: E2 03 00 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: E2 03 00 AF 69 00 90 00 8C [17:19:10]RAPDU: 90 00 [17:19:10]wFMCommunicate OK [17:19:10]wFMCommunicate request_size=10 [17:19:10]MH_SAM_APDU [17:19:10]CAPDU: 80 0D 02 02 05 4C 55 A6 16 56 [17:19:10]Write to MH i2c: E2 0D 00 B0 69 80 0D 02 02 05 00 4C 55 A6 16 56 00 00 50 [17:19:10]Write i2c OK [17:19:10]MH_I2C_Read... [17:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:10]Read from MH i2c: E2 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: E2 03 00 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: E2 03 00 B0 69 00 90 00 8D [17:19:10]RAPDU: 90 00 [17:19:10]wFMCommunicate OK [17:19:10]wFMCommunicate request_size=4 [17:19:10]MH_SAM_APDU [17:19:10]CAPDU: 80 0D 03 02 [17:19:10]Write to MH i2c: E2 08 00 B1 69 80 0D 03 02 00 00 00 00 95 [17:19:10]Write i2c OK [17:19:10]MH_I2C_Read... [17:19:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:10]Read from MH i2c: E2 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: E2 0B 00 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: E2 0B 00 B1 69 00 B9 02 32 F0 8C 6E F9 3E 90 00 A4 [17:19:10]RAPDU: B9 02 32 F0 8C 6E F9 3E 90 00 [17:19:10]wFMCommunicate OK [17:19:10]SAM_PROTO_SignData done [17:19:10]FM_MakeSignedData done [17:19:10]CreateOFDProtocolMessage [17:19:10]wFMCommunicate request_size=4 [17:19:10]MH_SAM_APDU [17:19:10]CAPDU: 80 11 00 00 [17:19:10]Write to MH i2c: E2 08 00 B2 69 80 11 00 00 00 00 00 00 95 [17:19:10]Write i2c OK [17:19:10]MH_I2C_Read... [17:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:10]Read from MH i2c: E2 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: E2 17 00 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: E2 17 00 B2 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F0 [17:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:19:10]wFMCommunicate OK [17:19:10]CreateOFDProtocolMessage done [17:19:10]OFDSenderStorePacket 118844 [17:19:10]StoreOFDPacket docnum=118844 [17:19:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E6 7E 07 01 31 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 13 CF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C D0 01 00 35 04 06 00 AC 4C 55 A6 16 56 B9 02 32 F0 8C 6E F9 3E [17:19:10]CheckFolder [17:19:10]dirname=/storage/ofd_packets [17:19:10]CheckFolder done [17:19:10]ProducePacketName [17:19:10]name=ofd_packets/00118844 [17:19:10]NVStorageSaveData ofd_packets/00118844 [17:19:10]File name is /storage/ofd_packets/00118844 [17:19:10]Write 301 bytes [17:19:10]NVStorageSaveData done [17:19:10]OFDSenderStorePacket done [17:19:10]KKMCreateOFDPacket done [17:19:10]NVStorageSaveData kkm_last_timestamp [17:19:10]File name is /storage/kkm_last_timestamp [17:19:10]Write 4 bytes [17:19:10]NVStorageSaveData done [17:19:10]ExternCall_PrintAddStr [17:19:10]wPrintStart [17:19:10]Write to MH i2c: 01 00 00 B3 69 1C [17:19:10]Write i2c OK [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: 01 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: 01 07 00 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: 01 07 00 B3 69 00 00 00 00 00 FF 0F 31 [17:19:10]RasterBufferAndPrint [17:19:10]line Счет N : (1)949735 [17:19:10]line ИНН: 02508201610067 [17:19:10]line Контрольно-Кассовый Чек [17:19:10]line ПРОДАЖА [17:19:10]line ТРК (МРК, ГНК) : 41 [17:19:10]line Товар: 2710124130 [17:19:10]line Аи-92-К-4 [17:19:10]line 11.800 * 67.80 [17:19:10]line = 800.04 [17:19:10]line НДС 12% НСП 1% [17:19:10]line > о реализуемом товаре [17:19:10]line ОКРУГЛЕНИЕ: -0.04 [17:19:10]line ИТОГО: 800.00 [17:19:10]line Внесено: 800.00 [17:19:10]line СДАЧА: 0.00 [17:19:10]line НСП 1% : 7.08 [17:19:10]line НДС 12% : 84.96 [17:19:10]line Наличными: 800.00 [17:19:10]line Безнал.: 0.00 [17:19:10]line Место: АЗС № 134 "Партнер Нефть" [17:19:10]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:19:10]line СНО: Общий режим [17:19:10]line Чек 220 29.07.2024 17:19 [17:19:10]line Смена: 434 ФФД: 1.0 [17:19:10]line ЗНМ: 0300000044 [17:19:10]line РНМ: 0000000000092660 [17:19:10]line Версия ККМ: 001 [17:19:10]line ФМ: 0000000000874939 [17:19:10]line ФД: 118844 [17:19:10]line ФПД: 189443854440022 [17:19:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T171915&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118844&fm=189443854440022&tin=02508201610067®Number=0000000000092660&sum=80000 [17:19:10]written 0, free lines is 4095 [17:19:10]OFD Sender: Processing packet 118844 [packets to send 86, broken 85] [17:19:10]ProducePacketName [17:19:10]name=ofd_packets/00118844 [17:19:10]OFD Sender: To server: pG, [17:19:10]CommunicateWithHost lk.salyk.kg:30040 [17:19:10]ConnectInit lk.salyk.kg [17:19:10]Connected sock=10 [17:19:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E6 7E 07 01 31 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 13 CF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C D0 01 00 35 04 06 00 AC 4C 55 A6 16 56 B9 02 32 F0 8C 6E F9 3E [17:19:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EF 71 47 00 FE 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C D0 01 00 F4 03 04 00 A0 7C A7 66 B6 04 01 00 00 16 52 7F 6F 2B 27 DA 65 [17:19:10]CommunicateWithHost err = 0 [17:19:10]CheckOFDResponse [17:19:10]1017 (14) - 77093643461234 [17:19:10]1041 (16) - 0000000000874939 [17:19:10]1040 (4) - 118844 [17:19:10]1012 (4) - 29.07.2024 11:27 [17:19:10]1206 (1) - 0 [17:19:10]OFD Sender: Remove packet 118844 [17:19:10]ProducePacketName [17:19:10]name=ofd_packets/00118844 [17:19:10]NVStorageDeleteData [17:19:11]Write to MH i2c: 01 00 00 DD 69 46 [17:19:11]Write i2c OK [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: 01 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: 01 07 00 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: 01 07 00 DD 69 00 00 00 00 00 D9 0C 32 [17:19:11]RasterBufferAndPrint [17:19:11]line [17:19:11]line [17:19:11]line [17:19:11]line [17:19:11]line [17:19:11]written 0, free lines is 3296 [17:19:11]MH_Cut [17:19:11]Write to MH i2c: D1 01 00 E4 69 01 1F [17:19:11]Write i2c OK [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: D1 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: D1 01 00 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: D1 01 00 E4 69 00 1E [17:19:11]Write to MH i2c: 01 00 00 E5 69 4E [17:19:11]Write i2c OK [17:19:11]MH_I2C_Read... [17:19:11]OFD Sender: No OFD packet to send [17:19:11]*** Cut start [17:19:11]*** Partial cut [17:19:11]*** CUTSNS_PIN = 1 [17:19:11]*** CUTSNS_PIN = 0 [17:19:12]*** Brake cut motor [17:19:12]Read from MH i2c: 01 [17:19:12]MH_I2C_Read... [17:19:12]*** Stop cut motor [17:19:12]*** Cut end [17:19:12]Read from MH i2c: 01 07 00 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: 01 07 00 E5 69 00 00 00 00 00 FF 0F 63 [17:19:12]process_action close_receipt done [17:19:12]requested_data is exist [17:19:12]produce_requested_data [17:19:12]requested_item fm.sn is exist - process it [17:19:12]wFMCommunicate request_size=4 [17:19:12]MH_SAM_APDU [17:19:12]CAPDU: 80 11 00 00 [17:19:12]Write to MH i2c: E2 08 00 E6 69 80 11 00 00 00 00 00 00 C9 [17:19:12]Write i2c OK [17:19:12]MH_I2C_Read... [17:19:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:12]Read from MH i2c: E2 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 17 00 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 17 00 E6 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 24 [17:19:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:19:12]wFMCommunicate OK [17:19:12]requested_item fd.num is exist - process it [17:19:12]SAM_PROTO_GetFieldsCounters [17:19:12]wFMCommunicate request_size=4 [17:19:12]MH_SAM_APDU [17:19:12]CAPDU: 80 13 00 00 [17:19:12]Write to MH i2c: E2 08 00 E7 69 80 13 00 00 00 00 00 00 CC [17:19:12]Write i2c OK [17:19:12]MH_I2C_Read... [17:19:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:12]Read from MH i2c: E2 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 62 00 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 62 00 E7 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3C D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [17:19: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3C D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:12]wFMCommunicate OK [17:19:12]SAM_PROTO_GetFieldsCounters done [17:19:12]requested_item shift.num is exist - process it [17:19:12]requested_item shift.opened is exist - process it [17:19:12]req_shift_opened [17:19:12]FM_GetShiftState [17:19:12]SAM_PROTO_GetShiftState [17:19:12]wFMCommunicate request_size=4 [17:19:12]MH_SAM_APDU [17:19:12]CAPDU: 80 13 01 00 [17:19:12]Write to MH i2c: E2 08 00 E8 69 80 13 01 00 00 00 00 00 CE [17:19:12]Write i2c OK [17:19:12]MH_I2C_Read... [17:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:12]Read from MH i2c: E2 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 0E 00 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 0E 00 E8 69 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 FC [17:19:12]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:19:12]wFMCommunicate OK [17:19:12]SAM_PROTO_GetShiftState done [17:19:12]FM_GetShiftState done [17:19:12]req_shift_opened done [17:19:12]requested_item shift.open_date is exist - process it [17:19:12]req_shift_open_date [17:19:12]req_shift_open_date done [17:19:12]produce_requested_data done [17:19:12]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118844,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [17:19:12]process_action_free close_receipt [17:19:12]json_value_free [17:19:12]json_value_free done [17:19:12]process_json_proto returns [17:19:12]Send response to host [17:19:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118844,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [17:19:12]free response buf [17:19:12]execute_script done [17:19:12]execute_script returns [17:19:12]free content buf [17:19:12]Sock 9.Close socket [17:19:12]Sock 9.Thread stoped [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:31]OFD Sender: No OFD packet to send [17:19:36]OFD Sender: No OFD packet to send [17:19:39]accept exits with 7 [17:19:39]New connection [17:19:39]New thread 3067239780 created [17:19:39]Thread 3067383140 joined [17:19:39]Waiting for new connection... [17:19:39] Sock 7.Parse request [17:19:39]Sock 7.Check first char [17:19:39]Sock 7.First char is OK [17:19:39]request: POST /json_proto HTTP/1.0 [17:19:39]Method: POST [17:19:39]URL: /json_proto [17:19:39]Method is POST - this is cgi request [17:19:39]url: /json_proto [17:19:39]query_string will be loaded in cgi processing [17:19:39]execute_cgi json_proto POST (null) [17:19:39]execute_cgi path=json_proto method=POST [17:19:39]POST find Content-Length [17:19:39]Host: 172.17.45.7:8080 [17:19:39]Content-Length: 677 [17:19:39]Content-Type: application/json [17:19:39] [17:19:39]POST finish read [17:19:39]Found Content-Length = 677 [17:19:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:39]execute_script... [17:19:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:39]POST & json_proto [17:19:39]process_json_proto [17:19:39]json parsed OK: [17:19:39]protocol is kg_v1.0 [17:19:39]action value=close_receipt [17:19:39]process_action close_receipt [17:19:39]cmd_close_receipt [17:19:39]MH_GetDate [17:19:39]Write to MH i2c: F0 00 00 E9 69 41 [17:19:39]Write i2c OK [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: F0 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: F0 09 00 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: F0 09 00 E9 69 00 32 CF A7 66 90 0F 3E 66 9B [17:19:39]GetLastDocTimeStamp 1722273555 [17:19:39]current date 1722273586 [17:19:39]FM_GetShiftState [17:19:39]SAM_PROTO_GetShiftState [17:19:39]wFMCommunicate request_size=4 [17:19:39]MH_SAM_APDU [17:19:39]CAPDU: 80 13 01 00 [17:19:39]Write to MH i2c: E2 08 00 EA 69 80 13 01 00 00 00 00 00 D0 [17:19:39]Write i2c OK [17:19:39]MH_I2C_Read... [17:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:39]Read from MH i2c: E2 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: E2 0E 00 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: E2 0E 00 EA 69 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 FE [17:19:39]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:19:39]wFMCommunicate OK [17:19:39]SAM_PROTO_GetShiftState done [17:19:39]FM_GetShiftState done [17:19:39]opened in 1722211641 [17:19:39]opened+sec_in_day 1722298041 [17:19:39]quantity*price = 30035 [17:19:39]sum+1 = 30036 [17:19:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 221 29.07.2024 17:19 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118845 ФПД: 114671364276567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T171946&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118845&fm=114671364276567&tin=02508201610067®Number=0000000000092660&sum=30000 [17:19:40]StoreToDocumentArchive [17:19:40]shift 434 fd 118845 [17:19:40]save to /storage/0434/doc_00118845 [17:19:40]save last doc name /storage/0434/doc_00118845 to /storage/kkm_last_doc_name [17:19:40]save OK [17:19:40]Clear old archive folders... [17:19:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:40]tlvbuf is 01E98630 [17:19:40]SAM_PROTO_ClearQueue [17:19:40]wFMCommunicate request_size=4 [17:19:40]MH_SAM_APDU [17:19:40]CAPDU: 80 09 00 00 [17:19:40]Write to MH i2c: E2 08 00 F7 69 80 09 00 00 00 00 00 00 D2 [17:19:40]Write i2c OK [17:19:40]MH_I2C_Read... [17:19:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:40]Read from MH i2c: E2 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 03 00 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 03 00 F7 69 00 90 00 D4 [17:19:40]RAPDU: 90 00 [17:19:40]wFMCommunicate OK [17:19:40]SAM_PROTO_ClearQueue done [17:19:40]KKMCreateOFDPacket [17:19:40]OFDProtocolAddRootSTLVToBuf [17:19:40]FM_MakeSignedData [17:19:40]FM_MakeSignedData [17:19:40]SAM_PROTO_SignData [17:19:40]wFMCommunicate request_size=4 [17:19:40]MH_SAM_APDU [17:19:40]CAPDU: 80 0D 01 02 [17:19:40]Write to MH i2c: E2 08 00 F8 69 80 0D 01 02 00 00 00 00 DA [17:19:40]Write i2c OK [17:19:40]MH_I2C_Read... [17:19:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:40]Read from MH i2c: E2 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 03 00 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 03 00 F8 69 00 90 00 D5 [17:19:40]RAPDU: 90 00 [17:19:40]wFMCommunicate OK [17:19:40]wFMCommunicate request_size=255 [17:19:40]MH_SAM_APDU [17:19:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 32 CF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D D0 01 00 35 04 06 00 68 [17:19:40]Write to MH i2c: E2 02 01 F9 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 32 CF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D D0 01 00 35 04 06 00 68 00 00 91 [17:19:41]Write i2c OK [17:19:41]MH_I2C_Read... [17:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:41]Read from MH i2c: E2 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 03 00 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 03 00 F9 69 00 90 00 D6 [17:19:41]RAPDU: 90 00 [17:19:41]wFMCommunicate OK [17:19:41]wFMCommunicate request_size=10 [17:19:41]MH_SAM_APDU [17:19:41]CAPDU: 80 0D 02 02 05 4B 01 EF 01 57 [17:19:41]Write to MH i2c: E2 0D 00 FA 69 80 0D 02 02 05 00 4B 01 EF 01 57 00 00 7A [17:19:41]Write i2c OK [17:19:41]MH_I2C_Read... [17:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:41]Read from MH i2c: E2 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 03 00 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 03 00 FA 69 00 90 00 D7 [17:19:41]RAPDU: 90 00 [17:19:41]wFMCommunicate OK [17:19:41]wFMCommunicate request_size=4 [17:19:41]MH_SAM_APDU [17:19:41]CAPDU: 80 0D 03 02 [17:19:41]Write to MH i2c: E2 08 00 FB 69 80 0D 03 02 00 00 00 00 DF [17:19:41]Write i2c OK [17:19:41]MH_I2C_Read... [17:19:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:41]Read from MH i2c: E2 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 0B 00 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 0B 00 FB 69 00 FF 1D EF 82 77 5B 08 98 90 00 DF [17:19:41]RAPDU: FF 1D EF 82 77 5B 08 98 90 00 [17:19:41]wFMCommunicate OK [17:19:41]SAM_PROTO_SignData done [17:19:41]FM_MakeSignedData done [17:19:41]CreateOFDProtocolMessage [17:19:41]wFMCommunicate request_size=4 [17:19:41]MH_SAM_APDU [17:19:41]CAPDU: 80 11 00 00 [17:19:41]Write to MH i2c: E2 08 00 FC 69 80 11 00 00 00 00 00 00 DF [17:19:41]Write i2c OK [17:19:41]MH_I2C_Read... [17:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:41]Read from MH i2c: E2 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 17 00 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: E2 17 00 FC 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3A [17:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:19:41]wFMCommunicate OK [17:19:41]CreateOFDProtocolMessage done [17:19:41]OFDSenderStorePacket 118845 [17:19:41]StoreOFDPacket docnum=118845 [17:19:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 EC 39 07 01 6F 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 32 CF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D D0 01 00 35 04 06 00 68 4B 01 EF 01 57 FF 1D EF 82 77 5B 08 98 [17:19:41]CheckFolder [17:19:41]dirname=/storage/ofd_packets [17:19:41]CheckFolder done [17:19:41]ProducePacketName [17:19:41]name=ofd_packets/00118845 [17:19:41]NVStorageSaveData ofd_packets/00118845 [17:19:41]File name is /storage/ofd_packets/00118845 [17:19:41]Write 301 bytes [17:19:41]NVStorageSaveData done [17:19:41]OFDSenderStorePacket done [17:19:41]KKMCreateOFDPacket done [17:19:41]NVStorageSaveData kkm_last_timestamp [17:19:41]File name is /storage/kkm_last_timestamp [17:19:41]Write 4 bytes [17:19:41]NVStorageSaveData done [17:19:41]ExternCall_PrintAddStr [17:19:41]wPrintStart [17:19:41]Write to MH i2c: 01 00 00 FD 69 66 [17:19:41]Write i2c OK [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: 01 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: 01 07 00 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: 01 07 00 FD 69 00 00 00 00 00 FF 0F 7B [17:19:41]RasterBufferAndPrint [17:19:41]line Счет N : (1)949736 [17:19:41]line ИНН: 02508201610067 [17:19:41]line Контрольно-Кассовый Чек [17:19:41]line ПРОДАЖА [17:19:41]line ТРК (МРК, ГНК) : 31 [17:19:41]line Товар: 2710124130 [17:19:41]line Аи-92-К-4 [17:19:41]line 4.430 * 67.80 [17:19:41]line = 300.35 [17:19:41]line НДС 12% НСП 1% [17:19:41]line > о реализуемом товаре [17:19:41]line ОКРУГЛЕНИЕ: -0.35 [17:19:41]line ИТОГО: 300.00 [17:19:41]line Внесено: 300.00 [17:19:41]line СДАЧА: 0.00 [17:19:41]line НСП 1% : 2.66 [17:19:41]line НДС 12% : 31.90 [17:19:41]line Наличными: 300.00 [17:19:41]line Безнал.: 0.00 [17:19:41]line Место: АЗС № 134 "Партнер Нефть" [17:19:41]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:19:41]line СНО: Общий режим [17:19:41]line Чек 221 29.07.2024 17:19 [17:19:41]line Смена: 434 ФФД: 1.0 [17:19:41]line ЗНМ: 0300000044 [17:19:41]line РНМ: 0000000000092660 [17:19:41]line Версия ККМ: 001 [17:19:41]line ФМ: 0000000000874939 [17:19:41]line ФД: 118845 [17:19:41]line ФПД: 114671364276567 [17:19:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T171946&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118845&fm=114671364276567&tin=02508201610067®Number=0000000000092660&sum=30000 [17:19:41]OFD Sender: Processing packet 118845 [packets to send 86, broken 85] [17:19:41]ProducePacketName [17:19:41]name=ofd_packets/00118845 [17:19:41]OFD Sender: To server: pG, [17:19:41]CommunicateWithHost lk.salyk.kg:30040 [17:19:41]ConnectInit lk.salyk.kg [17:19:41]written 0, free lines is 4095 [17:19:41]Connected sock=10 [17:19:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 EC 39 07 01 6F 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 32 CF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D D0 01 00 35 04 06 00 68 4B 01 EF 01 57 FF 1D EF 82 77 5B 08 98 [17:19:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FA 4A 47 00 4C 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 34 39 33 39 10 04 04 00 3D D0 01 00 F4 03 04 00 BF 7C A7 66 B6 04 01 00 00 1C 90 49 B8 BE AB 63 F0 [17:19:42]CommunicateWithHost err = 0 [17:19:42]CheckOFDResponse [17:19:42]1017 (14) - 77093643461234 [17:19:42]1041 (16) - 0000000000874939 [17:19:42]1040 (4) - 118845 [17:19:42]1012 (4) - 29.07.2024 11:27 [17:19:42]1206 (1) - 0 [17:19:42]OFD Sender: Remove packet 118845 [17:19:42]ProducePacketName [17:19:42]name=ofd_packets/00118845 [17:19:42]NVStorageDeleteData [17:19:42]Write to MH i2c: 01 00 00 27 6A 91 [17:19:42]Write i2c OK [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: 01 [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: 01 07 00 [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: 01 07 00 27 6A 00 00 00 00 00 E4 0C 88 [17:19:42]RasterBufferAndPrint [17:19:42]line [17:19:42]line [17:19:42]line [17:19:42]line [17:19:42]line [17:19:42]written 0, free lines is 3306 [17:19:42]MH_Cut [17:19:42]Write to MH i2c: D1 01 00 2E 6A 01 6A [17:19:42]Write i2c OK [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: D1 [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: D1 01 00 [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: D1 01 00 2E 6A 00 69 [17:19:42]Write to MH i2c: 01 00 00 2F 6A 99 [17:19:42]Write i2c OK [17:19:42]MH_I2C_Read... [17:19:42]OFD Sender: No OFD packet to send [17:19:42]*** Cut start [17:19:42]*** Partial cut [17:19:42]*** CUTSNS_PIN = 1 [17:19:42]*** CUTSNS_PIN = 0 [17:19:43]*** Brake cut motor [17:19:43]Read from MH i2c: 01 [17:19:43]MH_I2C_Read... [17:19:43]*** Stop cut motor [17:19:43]*** Cut end [17:19:43]Read from MH i2c: 01 07 00 [17:19:43]MH_I2C_Read... [17:19:43]Read from MH i2c: 01 07 00 2F 6A 00 00 00 00 00 FF 0F AE [17:19:43]process_action close_receipt done [17:19:43]requested_data is exist [17:19:43]produce_requested_data [17:19:43]requested_item fm.sn is exist - process it [17:19:43]wFMCommunicate request_size=4 [17:19:43]MH_SAM_APDU [17:19:43]CAPDU: 80 11 00 00 [17:19:43]Write to MH i2c: E2 08 00 30 6A 80 11 00 00 00 00 00 00 14 [17:19:43]Write i2c OK [17:19:43]MH_I2C_Read... [17:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:43]Read from MH i2c: E2 [17:19:43]MH_I2C_Read... [17:19:43]Read from MH i2c: E2 17 00 [17:19:43]MH_I2C_Read... [17:19:43]Read from MH i2c: E2 17 00 30 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6F [17:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:19:43]wFMCommunicate OK [17:19:43]requested_item fd.num is exist - process it [17:19:43]SAM_PROTO_GetFieldsCounters [17:19:43]wFMCommunicate request_size=4 [17:19:43]MH_SAM_APDU [17:19:43]CAPDU: 80 13 00 00 [17:19:43]Write to MH i2c: E2 08 00 31 6A 80 13 00 00 00 00 00 00 17 [17:19:43]Write i2c OK [17:19:43]MH_I2C_Read... [17:19:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:43]Read from MH i2c: E2 [17:19:43]MH_I2C_Read... [17:19:43]Read from MH i2c: E2 62 00 [17:19:43]MH_I2C_Read... [17:19:43]Read from MH i2c: E2 62 00 31 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3D D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [17:19: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3D D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:43]wFMCommunicate OK [17:19:43]SAM_PROTO_GetFieldsCounters done [17:19:43]requested_item shift.num is exist - process it [17:19:43]requested_item shift.opened is exist - process it [17:19:43]req_shift_opened [17:19:43]FM_GetShiftState [17:19:43]SAM_PROTO_GetShiftState [17:19:43]wFMCommunicate request_size=4 [17:19:43]MH_SAM_APDU [17:19:43]CAPDU: 80 13 01 00 [17:19:43]Write to MH i2c: E2 08 00 32 6A 80 13 01 00 00 00 00 00 19 [17:19:43]Write i2c OK [17:19:43]MH_I2C_Read... [17:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:43]Read from MH i2c: E2 [17:19:43]MH_I2C_Read... [17:19:43]Read from MH i2c: E2 0E 00 [17:19:43]MH_I2C_Read... [17:19:43]Read from MH i2c: E2 0E 00 32 6A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 47 [17:19:43]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:19:43]wFMCommunicate OK [17:19:43]SAM_PROTO_GetShiftState done [17:19:43]FM_GetShiftState done [17:19:43]req_shift_opened done [17:19:43]requested_item shift.open_date is exist - process it [17:19:43]req_shift_open_date [17:19:43]req_shift_open_date done [17:19:43]produce_requested_data done [17:19:43]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118845,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [17:19:43]process_action_free close_receipt [17:19:43]json_value_free [17:19:43]json_value_free done [17:19:43]process_json_proto returns [17:19:43]Send response to host [17:19:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118845,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [17:19:43]free response buf [17:19:43]execute_script done [17:19:43]execute_script returns [17:19:43]free content buf [17:19:43]Sock 7.Close socket [17:19:43]Sock 7.Thread stoped [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:03]accept exits with 9 [17:21:03]New connection [17:21:03]New thread 3067383140 created [17:21:03]Thread 3067239780 joined [17:21:03]Waiting for new connection... [17:21:03] Sock 9.Parse request [17:21:03]Sock 9.Check first char [17:21:03]Sock 9.First char is OK [17:21:03]request: POST /json_proto HTTP/1.0 [17:21:03]Method: POST [17:21:03]URL: /json_proto [17:21:03]Method is POST - this is cgi request [17:21:03]url: /json_proto [17:21:03]query_string will be loaded in cgi processing [17:21:03]execute_cgi json_proto POST (null) [17:21:03]execute_cgi path=json_proto method=POST [17:21:03]POST find Content-Length [17:21:03]Host: 172.17.45.7:8080 [17:21:03]Content-Length: 735 [17:21:03]Content-Type: application/json [17:21:03] [17:21:03]POST finish read [17:21:03]Found Content-Length = 735 [17:21:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118844, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:03]execute_script... [17:21:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118844, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:03]POST & json_proto [17:21:03]process_json_proto [17:21:03]json parsed OK: [17:21:03]protocol is kg_v1.0 [17:21:03]action value=close_receipt [17:21:03]process_action close_receipt [17:21:03]cmd_close_receipt [17:21:03]MH_GetDate [17:21:03]Write to MH i2c: F0 00 00 33 6A 8C [17:21:03]Write i2c OK [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: F0 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: F0 09 00 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: F0 09 00 33 6A 00 85 CF A7 66 90 0F 3E 66 39 [17:21:03]GetLastDocTimeStamp 1722273586 [17:21:03]current date 1722273669 [17:21:03]FM_GetShiftState [17:21:03]SAM_PROTO_GetShiftState [17:21:03]wFMCommunicate request_size=4 [17:21:03]MH_SAM_APDU [17:21:03]CAPDU: 80 13 01 00 [17:21:03]Write to MH i2c: E2 08 00 34 6A 80 13 01 00 00 00 00 00 1B [17:21:03]Write i2c OK [17:21:03]MH_I2C_Read... [17:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:03]Read from MH i2c: E2 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: E2 0E 00 [17:21:03]MH_I2C_Read... [17:21:03]Read from MH i2c: E2 0E 00 34 6A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 49 [17:21:03]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:21:03]wFMCommunicate OK [17:21:03]SAM_PROTO_GetShiftState done [17:21:03]FM_GetShiftState done [17:21:03]opened in 1722211641 [17:21:03]opened+sec_in_day 1722298041 [17:21:03]quantity*price = 80004 [17:21:03]sum+1 = 80005 [17:21:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 222 29.07.2024 17:21 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 118844 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 118846 ФПД: 46775704874397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T172109&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118846&fm=46775704874397&tin=02508201610067®Number=0000000000092660&sum=80000 [17:21:04]StoreToDocumentArchive [17:21:04]shift 434 fd 118846 [17:21:04]save to /storage/0434/doc_00118846 [17:21:04]save last doc name /storage/0434/doc_00118846 to /storage/kkm_last_doc_name [17:21:04]save OK [17:21:04]Clear old archive folders... [17:21:04]ProcessDocumentItem done err = 0, tmpTLVsize=279 [17:21:04]tlvbuf is 01E70890 [17:21:04]SAM_PROTO_ClearQueue [17:21:04]wFMCommunicate request_size=4 [17:21:04]MH_SAM_APDU [17:21:04]CAPDU: 80 09 00 00 [17:21:04]Write to MH i2c: E2 08 00 43 6A 80 09 00 00 00 00 00 00 1F [17:21:04]Write i2c OK [17:21:04]MH_I2C_Read... [17:21:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:04]Read from MH i2c: E2 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 03 00 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 03 00 43 6A 00 90 00 21 [17:21:04]RAPDU: 90 00 [17:21:04]wFMCommunicate OK [17:21:04]SAM_PROTO_ClearQueue done [17:21:04]KKMCreateOFDPacket [17:21:04]OFDProtocolAddRootSTLVToBuf [17:21:04]FM_MakeSignedData [17:21:04]FM_MakeSignedData [17:21:04]SAM_PROTO_SignData [17:21:04]wFMCommunicate request_size=4 [17:21:04]MH_SAM_APDU [17:21:04]CAPDU: 80 0D 01 02 [17:21:04]Write to MH i2c: E2 08 00 44 6A 80 0D 01 02 00 00 00 00 27 [17:21:04]Write i2c OK [17:21:04]MH_I2C_Read... [17:21:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:04]Read from MH i2c: E2 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 03 00 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 03 00 44 6A 00 90 00 22 [17:21:04]RAPDU: 90 00 [17:21:04]wFMCommunicate OK [17:21:04]wFMCommunicate request_size=255 [17:21:04]MH_SAM_APDU [17:21:04]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 85 CF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 3C D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 [17:21:04]Write to MH i2c: E2 02 01 45 6A 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 85 CF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 3C D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 00 00 B9 [17:21:04]Write i2c OK [17:21:04]MH_I2C_Read... [17:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:04]Read from MH i2c: E2 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 03 00 [17:21:04]MH_I2C_Read... [17:21:04]Read from MH i2c: E2 03 00 45 6A 00 90 00 23 [17:21:04]RAPDU: 90 00 [17:21:04]wFMCommunicate OK [17:21:04]wFMCommunicate request_size=38 [17:21:04]MH_SAM_APDU [17:21:04]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E D0 01 00 35 04 06 00 2A 8A D1 45 ED 9D [17:21:04]Write to MH i2c: E2 29 00 46 6A 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E D0 01 00 35 04 06 00 2A 8A D1 45 ED 9D 00 00 1E [17:21:04]Write i2c OK [17:21:04]MH_I2C_Read... [17:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:05]Read from MH i2c: E2 [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: E2 03 00 [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: E2 03 00 46 6A 00 90 00 24 [17:21:05]RAPDU: 90 00 [17:21:05]wFMCommunicate OK [17:21:05]wFMCommunicate request_size=4 [17:21:05]MH_SAM_APDU [17:21:05]CAPDU: 80 0D 03 02 [17:21:05]Write to MH i2c: E2 08 00 47 6A 80 0D 03 02 00 00 00 00 2C [17:21:05]Write i2c OK [17:21:05]MH_I2C_Read... [17:21:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:05]Read from MH i2c: E2 [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: E2 0B 00 [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: E2 0B 00 47 6A 00 FE C6 B4 DA 3C 50 FC 31 90 00 38 [17:21:05]RAPDU: FE C6 B4 DA 3C 50 FC 31 90 00 [17:21:05]wFMCommunicate OK [17:21:05]SAM_PROTO_SignData done [17:21:05]FM_MakeSignedData done [17:21:05]CreateOFDProtocolMessage [17:21:05]wFMCommunicate request_size=4 [17:21:05]MH_SAM_APDU [17:21:05]CAPDU: 80 11 00 00 [17:21:05]Write to MH i2c: E2 08 00 48 6A 80 11 00 00 00 00 00 00 2C [17:21:05]Write i2c OK [17:21:05]MH_I2C_Read... [17:21:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:05]Read from MH i2c: E2 [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: E2 17 00 [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: E2 17 00 48 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 87 [17:21:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:21:05]wFMCommunicate OK [17:21:05]CreateOFDProtocolMessage done [17:21:05]OFDSenderStorePacket 118846 [17:21:05]StoreOFDPacket docnum=118846 [17:21:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 B0 5F 23 01 C9 AD 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 85 CF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 3C D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E D0 01 00 35 04 06 00 2A 8A D1 45 ED 9D FE C6 B4 DA 3C 50 FC 31 [17:21:05]CheckFolder [17:21:05]dirname=/storage/ofd_packets [17:21:05]CheckFolder done [17:21:05]ProducePacketName [17:21:05]name=ofd_packets/00118846 [17:21:05]NVStorageSaveData ofd_packets/00118846 [17:21:05]File name is /storage/ofd_packets/00118846 [17:21:05]Write 329 bytes [17:21:05]NVStorageSaveData done [17:21:05]OFDSenderStorePacket done [17:21:05]KKMCreateOFDPacket done [17:21:05]NVStorageSaveData kkm_last_timestamp [17:21:05]File name is /storage/kkm_last_timestamp [17:21:05]Write 4 bytes [17:21:05]NVStorageSaveData done [17:21:05]ExternCall_PrintAddStr [17:21:05]wPrintStart [17:21:05]Write to MH i2c: 01 00 00 49 6A B3 [17:21:05]OFD Sender: Processing packet 118846 [packets to send 86, broken 85] [17:21:05]ProducePacketName [17:21:05]name=ofd_packets/00118846 [17:21:05]OFD Sender: To server: pG, [17:21:05]CommunicateWithHost lk.salyk.kg:30040 [17:21:05]ConnectInit lk.salyk.kg [17:21:05]Write i2c OK [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: 01 [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: 01 07 00 [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: 01 07 00 49 6A 00 00 00 00 00 FF 0F C8 [17:21:05]RasterBufferAndPrint [17:21:05]line Счет N : (1)949735 [17:21:05]line ИНН: 02508201610067 [17:21:05]line Контрольно-Кассовый Чек [17:21:05]line ВОЗВРАТ ПРОДАЖИ [17:21:05]line ТРК (МРК, ГНК) : 41 [17:21:05]line Товар: 2710124130 [17:21:05]line Аи-92-К-4 [17:21:05]line 11.800 * 67.80 [17:21:05]line = 800.04 [17:21:05]line НДС 12% НСП 1% [17:21:05]line > о реализуемом товаре [17:21:05]line ОКРУГЛЕНИЕ: -0.04 [17:21:05]line ИТОГО: 800.00 [17:21:05]line НСП 1% : 7.08 [17:21:05]line НДС 12% : 84.96 [17:21:05]line Наличными: 800.00 [17:21:05]line Безнал.: 0.00 [17:21:05]line Место: АЗС № 134 "Партнер Нефть" [17:21:05]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:21:05]line СНО: Общий режим [17:21:05]line Чек 222 29.07.2024 17:21 [17:21:05]line Смена: 434 ФФД: 1.0 [17:21:05]line ЗНМ: 0300000044 [17:21:05]line РНМ: 0000000000092660 [17:21:05]line Версия ККМ: 001 [17:21:05]line ФД осн.: 118844 [17:21:05]line ФМ осн.: 0000000000874939 [17:21:05]line ФМ: 0000000000874939 [17:21:05]line ФД: 118846 [17:21:05]line ФПД: 46775704874397 [17:21:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T172109&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118846&fm=46775704874397&tin=02508201610067®Number=0000000000092660&sum=80000 [17:21:05]Connected sock=10 [17:21:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 written 0, free lines is 4095 [17:21:05]39 2B 01 00 00 B0 5F 23 01 C9 AD 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 85 CF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 3C D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E D0 01 00 35 04 06 00 2A 8A D1 45 ED 9D FE C6 B4 DA 3C 50 FC 31 [17:21:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0D 3C 47 00 56 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E D0 01 00 F4 03 04 00 13 7D A7 66 B6 04 01 00 00 35 A0 FA AB 88 98 95 05 [17:21:05]CommunicateWithHost err = 0 [17:21:05]CheckOFDResponse [17:21:05]1017 (14) - 77093643461234 [17:21:05]1041 (16) - 0000000000874939 [17:21:05]1040 (4) - 118846 [17:21:05]1012 (4) - 29.07.2024 11:29 [17:21:05]1206 (1) - 0 [17:21:05]OFD Sender: Remove packet 118846 [17:21:05]ProducePacketName [17:21:05]name=ofd_packets/00118846 [17:21:05]NVStorageDeleteData [17:21:05]Write to MH i2c: 01 00 00 73 6A DD [17:21:05]Write i2c OK [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: 01 [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: 01 07 00 [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: 01 07 00 73 6A 00 00 00 00 00 E1 0C D1 [17:21:05]RasterBufferAndPrint [17:21:05]line [17:21:05]line [17:21:05]line [17:21:05]line [17:21:05]line [17:21:05]written 0, free lines is 3307 [17:21:05]MH_Cut [17:21:05]Write to MH i2c: D1 01 00 7A 6A 01 B6 [17:21:05]Write i2c OK [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: D1 [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: D1 01 00 [17:21:05]MH_I2C_Read... [17:21:05]Read from MH i2c: D1 01 00 7A 6A 00 B5 [17:21:05]Write to MH i2c: 01 00 00 7B 6A E5 [17:21:05]Write i2c OK [17:21:05]MH_I2C_Read... [17:21:06]OFD Sender: No OFD packet to send [17:21:06]*** Cut start [17:21:06]*** Partial cut [17:21:06]*** CUTSNS_PIN = 1 [17:21:06]*** CUTSNS_PIN = 0 [17:21:06]*** Brake cut motor [17:21:07]Read from MH i2c: 01 [17:21:07]MH_I2C_Read... [17:21:07]*** Stop cut motor [17:21:07]*** Cut end [17:21:07]Read from MH i2c: 01 07 00 [17:21:07]MH_I2C_Read... [17:21:07]Read from MH i2c: 01 07 00 7B 6A 00 00 00 00 00 FF 0F FA [17:21:07]process_action close_receipt done [17:21:07]requested_data is exist [17:21:07]produce_requested_data [17:21:07]requested_item fm.sn is exist - process it [17:21:07]wFMCommunicate request_size=4 [17:21:07]MH_SAM_APDU [17:21:07]CAPDU: 80 11 00 00 [17:21:07]Write to MH i2c: E2 08 00 7C 6A 80 11 00 00 00 00 00 00 60 [17:21:07]Write i2c OK [17:21:07]MH_I2C_Read... [17:21:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:07]Read from MH i2c: E2 [17:21:07]MH_I2C_Read... [17:21:07]Read from MH i2c: E2 17 00 [17:21:07]MH_I2C_Read... [17:21:07]Read from MH i2c: E2 17 00 7C 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BB [17:21:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:21:07]wFMCommunicate OK [17:21:07]requested_item fd.num is exist - process it [17:21:07]SAM_PROTO_GetFieldsCounters [17:21:07]wFMCommunicate request_size=4 [17:21:07]MH_SAM_APDU [17:21:07]CAPDU: 80 13 00 00 [17:21:07]Write to MH i2c: E2 08 00 7D 6A 80 13 00 00 00 00 00 00 63 [17:21:07]Write i2c OK [17:21:07]MH_I2C_Read... [17:21:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:07]Read from MH i2c: E2 [17:21:07]MH_I2C_Read... [17:21:07]Read from MH i2c: E2 62 00 [17:21:07]MH_I2C_Read... [17:21:07]Read from MH i2c: E2 62 00 7D 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3E D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [17:21: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3E D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:07]wFMCommunicate OK [17:21:07]SAM_PROTO_GetFieldsCounters done [17:21:07]requested_item shift.num is exist - process it [17:21:07]requested_item shift.opened is exist - process it [17:21:07]req_shift_opened [17:21:07]FM_GetShiftState [17:21:07]SAM_PROTO_GetShiftState [17:21:07]wFMCommunicate request_size=4 [17:21:07]MH_SAM_APDU [17:21:07]CAPDU: 80 13 01 00 [17:21:07]Write to MH i2c: E2 08 00 7E 6A 80 13 01 00 00 00 00 00 65 [17:21:07]Write i2c OK [17:21:07]MH_I2C_Read... [17:21:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:07]Read from MH i2c: E2 [17:21:07]MH_I2C_Read... [17:21:07]Read from MH i2c: E2 0E 00 [17:21:07]MH_I2C_Read... [17:21:07]Read from MH i2c: E2 0E 00 7E 6A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 93 [17:21:07]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:21:07]wFMCommunicate OK [17:21:07]SAM_PROTO_GetShiftState done [17:21:07]FM_GetShiftState done [17:21:07]req_shift_opened done [17:21:07]requested_item shift.open_date is exist - process it [17:21:07]req_shift_open_date [17:21:07]req_shift_open_date done [17:21:07]produce_requested_data done [17:21:07]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118846,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [17:21:07]process_action_free close_receipt [17:21:07]json_value_free [17:21:07]json_value_free done [17:21:07]process_json_proto returns [17:21:07]Send response to host [17:21:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118846,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [17:21:07]free response buf [17:21:07]execute_script done [17:21:07]execute_script returns [17:21:07]free content buf [17:21:07]Sock 9.Close socket [17:21:07]Sock 9.Thread stoped [17:21:11]OFD Sender: No OFD packet to send [17:21:16]OFD Sender: No OFD packet to send [17:21:21]OFD Sender: No OFD packet to send [17:21:26]OFD Sender: No OFD packet to send [17:21:31]OFD Sender: No OFD packet to send [17:21:36]OFD Sender: No OFD packet to send [17:21:41]OFD Sender: No OFD packet to send [17:21:46]OFD Sender: No OFD packet to send [17:21:51]OFD Sender: No OFD packet to send [17:21:56]OFD Sender: No OFD packet to send [17:22:01]OFD Sender: No OFD packet to send [17:22:06]OFD Sender: No OFD packet to send [17:22:11]OFD Sender: No OFD packet to send [17:22:16]OFD Sender: No OFD packet to send [17:22:21]OFD Sender: No OFD packet to send [17:22:26]OFD Sender: No OFD packet to send [17:22:31]OFD Sender: No OFD packet to send [17:22:36]OFD Sender: No OFD packet to send [17:22:41]OFD Sender: No OFD packet to send [17:22:45]accept exits with 7 [17:22:45]New connection [17:22:45]New thread 3067239780 created [17:22:45]Thread 3067383140 joined [17:22:45]Waiting for new connection... [17:22:45] Sock 7.Parse request [17:22:45]Sock 7.Check first char [17:22:45]Sock 7.First char is OK [17:22:45]request: POST /json_proto HTTP/1.0 [17:22:45]Method: POST [17:22:45]URL: /json_proto [17:22:45]Method is POST - this is cgi request [17:22:45]url: /json_proto [17:22:45]query_string will be loaded in cgi processing [17:22:45]execute_cgi json_proto POST (null) [17:22:45]execute_cgi path=json_proto method=POST [17:22:45]POST find Content-Length [17:22:45]Host: 172.17.45.7:8080 [17:22:45]Content-Length: 675 [17:22:45]Content-Type: application/json [17:22:45] [17:22:45]POST finish read [17:22:45]Found Content-Length = 675 [17:22:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:45]execute_script... [17:22: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)949737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:45]POST & json_proto [17:22:45]process_json_proto [17:22:45]json parsed OK: [17:22:45]protocol is kg_v1.0 [17:22:45]action value=close_receipt [17:22:45]process_action close_receipt [17:22:45]cmd_close_receipt [17:22:45]MH_GetDate [17:22:45]Write to MH i2c: F0 00 00 7F 6A D8 [17:22:45]Write i2c OK [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: F0 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: F0 09 00 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: F0 09 00 7F 6A 00 EB CF A7 66 90 0F 3E 66 EB [17:22:45]GetLastDocTimeStamp 1722273669 [17:22:45]current date 1722273771 [17:22:45]FM_GetShiftState [17:22:45]SAM_PROTO_GetShiftState [17:22:45]wFMCommunicate request_size=4 [17:22:45]MH_SAM_APDU [17:22:45]CAPDU: 80 13 01 00 [17:22:45]Write to MH i2c: E2 08 00 80 6A 80 13 01 00 00 00 00 00 67 [17:22:45]Write i2c OK [17:22:45]MH_I2C_Read... [17:22:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:45]Read from MH i2c: E2 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: E2 0E 00 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: E2 0E 00 80 6A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 95 [17:22:45]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:22:45]wFMCommunicate OK [17:22:45]SAM_PROTO_GetShiftState done [17:22:45]FM_GetShiftState done [17:22:45]opened in 1722211641 [17:22:45]opened+sec_in_day 1722298041 [17:22:45]quantity*price = 80010 [17:22:45]sum+1 = 80011 [17:22:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 223 29.07.2024 17:22 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118847 ФПД: 28849646889715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T172251&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118847&fm=28849646889715&tin=02508201610067®Number=0000000000092660&sum=80000 [17:22:46]StoreToDocumentArchive [17:22:46]shift 434 fd 118847 [17:22:46]save to /storage/0434/doc_00118847 [17:22:46]save last doc name /storage/0434/doc_00118847 to /storage/kkm_last_doc_name [17:22:46]save OK [17:22:46]Clear old archive folders... [17:22:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:22:46]tlvbuf is 01FC9650 [17:22:46]SAM_PROTO_ClearQueue [17:22:46]wFMCommunicate request_size=4 [17:22:46]MH_SAM_APDU [17:22:46]CAPDU: 80 09 00 00 [17:22:46]Write to MH i2c: E2 08 00 8D 6A 80 09 00 00 00 00 00 00 69 [17:22:46]Write i2c OK [17:22:46]MH_I2C_Read... [17:22:46]OFD Sender: No OFD packet to send [17:22:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:46]Read from MH i2c: E2 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: E2 03 00 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: E2 03 00 8D 6A 00 90 00 6B [17:22:46]RAPDU: 90 00 [17:22:46]wFMCommunicate OK [17:22:46]SAM_PROTO_ClearQueue done [17:22:46]KKMCreateOFDPacket [17:22:46]OFDProtocolAddRootSTLVToBuf [17:22:46]FM_MakeSignedData [17:22:46]FM_MakeSignedData [17:22:46]SAM_PROTO_SignData [17:22:46]wFMCommunicate request_size=4 [17:22:46]MH_SAM_APDU [17:22:46]CAPDU: 80 0D 01 02 [17:22:46]Write to MH i2c: E2 08 00 8E 6A 80 0D 01 02 00 00 00 00 71 [17:22:46]Write i2c OK [17:22:46]MH_I2C_Read... [17:22:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:46]Read from MH i2c: E2 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: E2 03 00 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: E2 03 00 8E 6A 00 90 00 6C [17:22:46]RAPDU: 90 00 [17:22:46]wFMCommunicate OK [17:22:46]wFMCommunicate request_size=255 [17:22:46]MH_SAM_APDU [17:22: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 EB CF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F D0 01 00 35 04 06 00 1A 3D 14 F4 [17:22:46]Write to MH i2c: E2 02 01 8F 6A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 EB CF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F D0 01 00 35 04 06 00 1A 3D 14 F4 00 00 FC [17:22:46]Write i2c OK [17:22:46]MH_I2C_Read... [17:22:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:46]Read from MH i2c: E2 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: E2 03 00 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: E2 03 00 8F 6A 00 90 00 6D [17:22:46]RAPDU: 90 00 [17:22:46]wFMCommunicate OK [17:22:46]wFMCommunicate request_size=7 [17:22:46]MH_SAM_APDU [17:22:46]CAPDU: 80 0D 02 02 02 6A F3 [17:22:46]Write to MH i2c: E2 0A 00 90 6A 80 0D 02 02 02 00 6A F3 00 00 D5 [17:22:46]Write i2c OK [17:22:46]MH_I2C_Read... [17:22:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:46]Read from MH i2c: E2 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: E2 03 00 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: E2 03 00 90 6A 00 90 00 6E [17:22:46]RAPDU: 90 00 [17:22:46]wFMCommunicate OK [17:22:46]wFMCommunicate request_size=4 [17:22:46]MH_SAM_APDU [17:22:46]CAPDU: 80 0D 03 02 [17:22:46]Write to MH i2c: E2 08 00 91 6A 80 0D 03 02 00 00 00 00 76 [17:22:46]Write i2c OK [17:22:46]MH_I2C_Read... [17:22:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:46]Read from MH i2c: E2 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: E2 0B 00 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: E2 0B 00 91 6A 00 E2 FB 02 1B 86 63 6C 0C 90 00 D2 [17:22:46]RAPDU: E2 FB 02 1B 86 63 6C 0C 90 00 [17:22:46]wFMCommunicate OK [17:22:46]SAM_PROTO_SignData done [17:22:46]FM_MakeSignedData done [17:22:46]CreateOFDProtocolMessage [17:22:46]wFMCommunicate request_size=4 [17:22:46]MH_SAM_APDU [17:22:46]CAPDU: 80 11 00 00 [17:22:46]Write to MH i2c: E2 08 00 92 6A 80 11 00 00 00 00 00 00 76 [17:22:46]Write i2c OK [17:22:46]MH_I2C_Read... [17:22:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:46]Read from MH i2c: E2 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: E2 17 00 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: E2 17 00 92 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D1 [17:22:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:22:46]wFMCommunicate OK [17:22:46]CreateOFDProtocolMessage done [17:22:46]OFDSenderStorePacket 118847 [17:22:46]StoreOFDPacket docnum=118847 [17:22:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B6 82 04 01 11 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 EB CF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F D0 01 00 35 04 06 00 1A 3D 14 F4 6A F3 E2 FB 02 1B 86 63 6C 0C [17:22:46]CheckFolder [17:22:46]dirname=/storage/ofd_packets [17:22:46]CheckFolder done [17:22:46]ProducePacketName [17:22:46]name=ofd_packets/00118847 [17:22:46]NVStorageSaveData ofd_packets/00118847 [17:22:46]File name is /storage/ofd_packets/00118847 [17:22:46]Write 298 bytes [17:22:46]NVStorageSaveData done [17:22:46]OFDSenderStorePacket done [17:22:46]KKMCreateOFDPacket done [17:22:46]NVStorageSaveData kkm_last_timestamp [17:22:46]File name is /storage/kkm_last_timestamp [17:22:46]Write 4 bytes [17:22:46]NVStorageSaveData done [17:22:46]ExternCall_PrintAddStr [17:22:46]wPrintStart [17:22:46]Write to MH i2c: 01 00 00 93 6A FD [17:22:46]Write i2c OK [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: 01 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: 01 07 00 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: 01 07 00 93 6A 00 00 00 00 00 FF 0F 12 [17:22:46]RasterBufferAndPrint [17:22:46]line Счет N : (1)949737 [17:22:46]line ИНН: 02508201610067 [17:22:46]line Контрольно-Кассовый Чек [17:22:46]line ПРОДАЖА [17:22:46]line ТРК (МРК, ГНК) : 44 [17:22:46]line Товар: 2710194800 [17:22:46]line ДТ-К-5 [17:22:46]line 10.500 * 76.20 [17:22:46]line = 800.10 [17:22:46]line НДС 12% НСП 1% [17:22:46]line > о реализуемом товаре [17:22:46]line ОКРУГЛЕНИЕ: -0.10 [17:22:46]line ИТОГО: 800.00 [17:22:46]line Внесено: 800.00 [17:22:46]line СДАЧА: 0.00 [17:22:46]line НСП 1% : 7.08 [17:22:46]line НДС 12% : 84.97 [17:22:46]line Наличными: 800.00 [17:22:46]line Безнал.: 0.00 [17:22:46]line Место: АЗС № 134 "Партнер Нефть" [17:22:46]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:22:46]line СНО: Общий режим [17:22:46]line Чек 223 29.07.2024 17:22 [17:22:46]line Смена: 434 ФФД: 1.0 [17:22:46]line ЗНМ: 0300000044 [17:22:46]line РНМ: 0000000000092660 [17:22:46]line Версия ККМ: 001 [17:22:46]line ФМ: 0000000000874939 [17:22:46]line ФД: 118847 [17:22:46]line ФПД: 28849646889715 [17:22:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T172251&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118847&fm=28849646889715&tin=02508201610067®Number=0000000000092660&sum=80000 [17:22:47]OFD Sender: Processing packet 118847 [packets to send 86, broken 85] [17:22:47]ProducePacketName [17:22:47]name=ofd_packets/00118847 [17:22:47]OFD Sender: To server: pG, [17:22:47]CommunicateWithHost lk.salyk.kg:30040 [17:22:47]ConnectInit lk.salyk.kg [17:22:47]written 0, free lines is 4095 [17:22:47]Connected sock=10 [17:22:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B6 82 04 01 11 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 EB CF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F D0 01 00 35 04 06 00 1A 3D 14 F4 6A F3 E2 FB 02 1B 86 63 6C 0C [17:22:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 DD 16 47 00 61 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 34 39 33 39 10 04 04 00 3F D0 01 00 F4 03 04 00 79 7D A7 66 B6 04 01 00 00 B8 A6 51 35 4A DB A1 7B [17:22:47]CommunicateWithHost err = 0 [17:22:47]CheckOFDResponse [17:22:47]1017 (14) - 77093643461234 [17:22:47]1041 (16) - 0000000000874939 [17:22:47]1040 (4) - 118847 [17:22:47]1012 (4) - 29.07.2024 11:31 [17:22:47]1206 (1) - 0 [17:22:47]OFD Sender: Remove packet 118847 [17:22:47]ProducePacketName [17:22:47]name=ofd_packets/00118847 [17:22:47]NVStorageDeleteData [17:22:47]Write to MH i2c: 01 00 00 BD 6A 27 [17:22:47]Write i2c OK [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: 01 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: 01 07 00 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: 01 07 00 BD 6A 00 00 00 00 00 DF 0C 19 [17:22:47]RasterBufferAndPrint [17:22:47]line [17:22:47]line [17:22:47]line [17:22:47]line [17:22:47]line [17:22:47]written 0, free lines is 3301 [17:22:47]MH_Cut [17:22:47]Write to MH i2c: D1 01 00 C4 6A 01 00 [17:22:47]Write i2c OK [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: D1 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: D1 01 00 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: D1 01 00 C4 6A 00 FF [17:22:47]Write to MH i2c: 01 00 00 C5 6A 2F [17:22:47]Write i2c OK [17:22:47]MH_I2C_Read... [17:22:47]OFD Sender: No OFD packet to send [17:22:48]*** Cut start [17:22:48]*** Partial cut [17:22:48]*** CUTSNS_PIN = 1 [17:22:48]*** CUTSNS_PIN = 0 [17:22:48]*** Brake cut motor [17:22:48]Read from MH i2c: 01 [17:22:48]MH_I2C_Read... [17:22:48]*** Stop cut motor [17:22:48]*** Cut end [17:22:48]Read from MH i2c: 01 07 00 [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: 01 07 00 C5 6A 00 00 00 00 00 FF 0F 44 [17:22:48]process_action close_receipt done [17:22:48]requested_data is exist [17:22:48]produce_requested_data [17:22:48]requested_item fm.sn is exist - process it [17:22:48]wFMCommunicate request_size=4 [17:22:48]MH_SAM_APDU [17:22:48]CAPDU: 80 11 00 00 [17:22:48]Write to MH i2c: E2 08 00 C6 6A 80 11 00 00 00 00 00 00 AA [17:22:48]Write i2c OK [17:22:48]MH_I2C_Read... [17:22:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:48]Read from MH i2c: E2 [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: E2 17 00 [17:22:48]MH_I2C_Read... [17:22:48]Read from MH i2c: E2 17 00 C6 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 05 [17:22:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:22:48]wFMCommunicate OK [17:22:48]requested_item fd.num is exist - process it [17:22:48]SAM_PROTO_GetFieldsCounters [17:22:48]wFMCommunicate request_size=4 [17:22:48]MH_SAM_APDU [17:22:48]CAPDU: 80 13 00 00 [17:22:48]Write to MH i2c: E2 08 00 C7 6A 80 13 00 00 00 00 00 00 AD [17:22:48]Write i2c OK [17:22:48]MH_I2C_Read... [17:22:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:49]Read from MH i2c: E2 [17:22:49]MH_I2C_Read... [17:22:49]Read from MH i2c: E2 62 00 [17:22:49]MH_I2C_Read... [17:22:49]Read from MH i2c: E2 62 00 C7 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3F D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [17:22: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3F D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:22:49]wFMCommunicate OK [17:22:49]SAM_PROTO_GetFieldsCounters done [17:22:49]requested_item shift.num is exist - process it [17:22:49]requested_item shift.opened is exist - process it [17:22:49]req_shift_opened [17:22:49]FM_GetShiftState [17:22:49]SAM_PROTO_GetShiftState [17:22:49]wFMCommunicate request_size=4 [17:22:49]MH_SAM_APDU [17:22:49]CAPDU: 80 13 01 00 [17:22:49]Write to MH i2c: E2 08 00 C8 6A 80 13 01 00 00 00 00 00 AF [17:22:49]Write i2c OK [17:22:49]MH_I2C_Read... [17:22:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:49]Read from MH i2c: E2 [17:22:49]MH_I2C_Read... [17:22:49]Read from MH i2c: E2 0E 00 [17:22:49]MH_I2C_Read... [17:22:49]Read from MH i2c: E2 0E 00 C8 6A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 DD [17:22:49]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:22:49]wFMCommunicate OK [17:22:49]SAM_PROTO_GetShiftState done [17:22:49]FM_GetShiftState done [17:22:49]req_shift_opened done [17:22:49]requested_item shift.open_date is exist - process it [17:22:49]req_shift_open_date [17:22:49]req_shift_open_date done [17:22:49]produce_requested_data done [17:22:49]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118847,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [17:22:49]process_action_free close_receipt [17:22:49]json_value_free [17:22:49]json_value_free done [17:22:49]process_json_proto returns [17:22:49]Send response to host [17:22:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118847,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [17:22:49]free response buf [17:22:49]execute_script done [17:22:49]execute_script returns [17:22:49]free content buf [17:22:49]Sock 7.Close socket [17:22:49]Sock 7.Thread stoped [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:50]accept exits with 9 [17:23:50]New connection [17:23:50]New thread 3067383140 created [17:23:50]Thread 3067239780 joined [17:23:50]Waiting for new connection... [17:23:50] Sock 9.Parse request [17:23:50]Sock 9.Check first char [17:23:50]Sock 9.First char is OK [17:23:50]request: POST /json_proto HTTP/1.0 [17:23:50]Method: POST [17:23:50]URL: /json_proto [17:23:50]Method is POST - this is cgi request [17:23:50]url: /json_proto [17:23:50]query_string will be loaded in cgi processing [17:23:50]execute_cgi json_proto POST (null) [17:23:50]execute_cgi path=json_proto method=POST [17:23:50]POST find Content-Length [17:23:50]Host: 172.17.45.7:8080 [17:23:50]Content-Length: 679 [17:23:50]Content-Type: application/json [17:23:50] [17:23:50]POST finish read [17:23:50]Found Content-Length = 679 [17:23:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:50]execute_script... [17:23:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:50]POST & json_proto [17:23:50]process_json_proto [17:23:50]json parsed OK: [17:23:50]protocol is kg_v1.0 [17:23:50]action value=close_receipt [17:23:50]process_action close_receipt [17:23:50]cmd_close_receipt [17:23:50]MH_GetDate [17:23:50]Write to MH i2c: F0 00 00 C9 6A 22 [17:23:50]Write i2c OK [17:23:50]MH_I2C_Read... [17:23:50]Read from MH i2c: F0 [17:23:50]MH_I2C_Read... [17:23:50]Read from MH i2c: F0 09 00 [17:23:50]MH_I2C_Read... [17:23:50]Read from MH i2c: F0 09 00 C9 6A 00 2D D0 A7 66 90 0F 3E 66 78 [17:23:50]GetLastDocTimeStamp 1722273771 [17:23:50]current date 1722273837 [17:23:50]FM_GetShiftState [17:23:50]SAM_PROTO_GetShiftState [17:23:50]wFMCommunicate request_size=4 [17:23:50]MH_SAM_APDU [17:23:50]CAPDU: 80 13 01 00 [17:23:50]Write to MH i2c: E2 08 00 CA 6A 80 13 01 00 00 00 00 00 B1 [17:23:50]Write i2c OK [17:23:50]MH_I2C_Read... [17:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:50]Read from MH i2c: E2 [17:23:50]MH_I2C_Read... [17:23:50]Read from MH i2c: E2 0E 00 [17:23:50]MH_I2C_Read... [17:23:50]Read from MH i2c: E2 0E 00 CA 6A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 DF [17:23:50]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:23:50]wFMCommunicate OK [17:23:50]SAM_PROTO_GetShiftState done [17:23:50]FM_GetShiftState done [17:23:50]opened in 1722211641 [17:23:50]opened+sec_in_day 1722298041 [17:23:50]quantity*price = 100050 [17:23:50]sum+1 = 100052 [17:23:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 224 29.07.2024 17:23 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118848 ФПД: 50249231158456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T172357&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118848&fm=50249231158456&tin=02508201610067®Number=0000000000092660&sum=100000 [17:23:51]StoreToDocumentArchive [17:23:51]shift 434 fd 118848 [17:23:51]save to /storage/0434/doc_00118848 [17:23:51]save last doc name /storage/0434/doc_00118848 to /storage/kkm_last_doc_name [17:23:51]save OK [17:23:51]Clear old archive folders... [17:23:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:23:51]tlvbuf is B6FBE2D0 [17:23:51]SAM_PROTO_ClearQueue [17:23:51]wFMCommunicate request_size=4 [17:23:51]MH_SAM_APDU [17:23:51]CAPDU: 80 09 00 00 [17:23:51]Write to MH i2c: E2 08 00 D7 6A 80 09 00 00 00 00 00 00 B3 [17:23:51]Write i2c OK [17:23:51]MH_I2C_Read... [17:23:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:51]Read from MH i2c: E2 [17:23:51]MH_I2C_Read... [17:23:51]Read from MH i2c: E2 03 00 [17:23:51]MH_I2C_Read... [17:23:51]Read from MH i2c: E2 03 00 D7 6A 00 90 00 B5 [17:23:51]RAPDU: 90 00 [17:23:51]wFMCommunicate OK [17:23:51]SAM_PROTO_ClearQueue done [17:23:51]KKMCreateOFDPacket [17:23:51]OFDProtocolAddRootSTLVToBuf [17:23:51]FM_MakeSignedData [17:23:51]FM_MakeSignedData [17:23:51]SAM_PROTO_SignData [17:23:51]wFMCommunicate request_size=4 [17:23:51]MH_SAM_APDU [17:23:51]CAPDU: 80 0D 01 02 [17:23:51]Write to MH i2c: E2 08 00 D8 6A 80 0D 01 02 00 00 00 00 BB [17:23:51]Write i2c OK [17:23:51]MH_I2C_Read... [17:23:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:51]Read from MH i2c: E2 [17:23:51]MH_I2C_Read... [17:23:51]Read from MH i2c: E2 03 00 [17:23:51]MH_I2C_Read... [17:23:51]Read from MH i2c: E2 03 00 D8 6A 00 90 00 B6 [17:23:51]RAPDU: 90 00 [17:23:51]wFMCommunicate OK [17:23:51]wFMCommunicate request_size=255 [17:23:51]MH_SAM_APDU [17:23:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 2D D0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 D0 01 00 35 04 06 00 2D B3 8F 92 [17:23:51]Write to MH i2c: E2 02 01 D9 6A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 2D D0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 D0 01 00 35 04 06 00 2D B3 8F 92 00 00 FA [17:23:51]Write i2c OK [17:23:51]MH_I2C_Read... [17:23:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:52]Read from MH i2c: E2 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 03 00 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 03 00 D9 6A 00 90 00 B7 [17:23:52]RAPDU: 90 00 [17:23:52]wFMCommunicate OK [17:23:52]wFMCommunicate request_size=7 [17:23:52]MH_SAM_APDU [17:23:52]CAPDU: 80 0D 02 02 02 CC B8 [17:23:52]Write to MH i2c: E2 0A 00 DA 6A 80 0D 02 02 02 00 CC B8 00 00 46 [17:23:52]Write i2c OK [17:23:52]MH_I2C_Read... [17:23:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:52]Read from MH i2c: E2 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 03 00 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 03 00 DA 6A 00 90 00 B8 [17:23:52]RAPDU: 90 00 [17:23:52]wFMCommunicate OK [17:23:52]wFMCommunicate request_size=4 [17:23:52]MH_SAM_APDU [17:23:52]CAPDU: 80 0D 03 02 [17:23:52]Write to MH i2c: E2 08 00 DB 6A 80 0D 03 02 00 00 00 00 C0 [17:23:52]Write i2c OK [17:23:52]MH_I2C_Read... [17:23:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:52]Read from MH i2c: E2 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 0B 00 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 0B 00 DB 6A 00 49 EF BA D0 52 79 DD EB 90 00 16 [17:23:52]RAPDU: 49 EF BA D0 52 79 DD EB 90 00 [17:23:52]wFMCommunicate OK [17:23:52]SAM_PROTO_SignData done [17:23:52]FM_MakeSignedData done [17:23:52]CreateOFDProtocolMessage [17:23:52]wFMCommunicate request_size=4 [17:23:52]MH_SAM_APDU [17:23:52]CAPDU: 80 11 00 00 [17:23:52]Write to MH i2c: E2 08 00 DC 6A 80 11 00 00 00 00 00 00 C0 [17:23:52]Write i2c OK [17:23:52]MH_I2C_Read... [17:23:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:52]Read from MH i2c: E2 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 17 00 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 17 00 DC 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1B [17:23:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:23:52]wFMCommunicate OK [17:23:52]CreateOFDProtocolMessage done [17:23:52]OFDSenderStorePacket 118848 [17:23:52]StoreOFDPacket docnum=118848 [17:23:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 15 FA 04 01 20 DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 2D D0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 D0 01 00 35 04 06 00 2D B3 8F 92 CC B8 49 EF BA D0 52 79 DD EB [17:23:52]CheckFolder [17:23:52]dirname=/storage/ofd_packets [17:23:52]CheckFolder done [17:23:52]ProducePacketName [17:23:52]name=ofd_packets/00118848 [17:23:52]NVStorageSaveData ofd_packets/00118848 [17:23:52]File name is /storage/ofd_packets/00118848 [17:23:52]Write 298 bytes [17:23:52]NVStorageSaveData done [17:23:52]OFDSenderStorePacket done [17:23:52]KKMCreateOFDPacket done [17:23:52]NVStorageSaveData kkm_last_timestamp [17:23:52]File name is /storage/kkm_last_timestamp [17:23:52]Write 4 bytes [17:23:52]NVStorageSaveData done [17:23:52]ExternCall_PrintAddStr [17:23:52]wPrintStart [17:23:52]Write to MH i2c: 01 00 00 DD 6A 47 [17:23:52]Write i2c OK [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: 01 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: 01 07 00 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: 01 07 00 DD 6A 00 00 00 00 00 FF 0F 5C [17:23:52]RasterBufferAndPrint [17:23:52]line Счет N : (1)949738 [17:23:52]line ИНН: 02508201610067 [17:23:52]line Контрольно-Кассовый Чек [17:23:52]line ПРОДАЖА [17:23:52]line ТРК (МРК, ГНК) : 64 [17:23:52]line Товар: 2710194800 [17:23:52]line ДТ-К-5 [17:23:52]line 13.130 * 76.20 [17:23:52]line = 1000.51 [17:23:52]line НДС 12% НСП 1% [17:23:52]line > о реализуемом товаре [17:23:52]line ОКРУГЛЕНИЕ: -0.51 [17:23:52]line ИТОГО: 1000.00 [17:23:52]line Внесено: 1000.00 [17:23:52]line СДАЧА: 0.00 [17:23:52]line НСП 1% : 8.85 [17:23:52]line НДС 12% : 106.25 [17:23:52]line Наличными: 1000.00 [17:23:52]line Безнал.: 0.00 [17:23:52]line Место: АЗС № 134 "Партнер Нефть" [17:23:52]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:23:52]line СНО: Общий режим [17:23:52]line Чек 224 29.07.2024 17:23 [17:23:52]line Смена: 434 ФФД: 1.0 [17:23:52]line ЗНМ: 0300000044 [17:23:52]line РНМ: 0000000000092660 [17:23:52]line Версия ККМ: 001 [17:23:52]line ФМ: 0000000000874939 [17:23:52]line ФД: 118848 [17:23:52]line ФПД: 50249231158456 [17:23:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T172357&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118848&fm=50249231158456&tin=02508201610067®Number=0000000000092660&sum=100000 [17:23:52]OFD Sender: Processing packet 118848 [packets to send 86, broken 85] [17:23:52]ProducePacketName [17:23:52]name=ofd_packets/00118848 [17:23:52]OFD Sender: To server: pG, [17:23:52]CommunicateWithHost lk.salyk.kg:30040 [17:23:52]ConnectInit lk.salyk.kg [17:23:52]written 0, free lines is 4095 [17:23:52]Connected sock=10 [17:23:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 15 FA 04 01 20 DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 2D D0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 D0 01 00 35 04 06 00 2D B3 8F 92 CC B8 49 EF BA D0 52 79 DD EB [17:23:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6F 8A 47 00 88 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 34 39 33 39 10 04 04 00 40 D0 01 00 F4 03 04 00 BA 7D A7 66 B6 04 01 00 00 01 E6 27 58 B1 27 93 7E [17:23:52]CommunicateWithHost err = 0 [17:23:52]CheckOFDResponse [17:23:52]1017 (14) - 77093643461234 [17:23:52]1041 (16) - 0000000000874939 [17:23:52]1040 (4) - 118848 [17:23:52]1012 (4) - 29.07.2024 11:32 [17:23:52]1206 (1) - 0 [17:23:52]OFD Sender: Remove packet 118848 [17:23:52]ProducePacketName [17:23:52]name=ofd_packets/00118848 [17:23:52]NVStorageDeleteData [17:23:53]Write to MH i2c: 01 00 00 07 6B 72 [17:23:53]Write i2c OK [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: 01 [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: 01 07 00 [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: 01 07 00 07 6B 00 00 00 00 00 D9 0C 5E [17:23:53]RasterBufferAndPrint [17:23:53]line [17:23:53]line [17:23:53]line [17:23:53]line [17:23:53]line [17:23:53]written 0, free lines is 3297 [17:23:53]MH_Cut [17:23:53]Write to MH i2c: D1 01 00 0E 6B 01 4B [17:23:53]Write i2c OK [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: D1 [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: D1 01 00 [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: D1 01 00 0E 6B 00 4A [17:23:53]Write to MH i2c: 01 00 00 0F 6B 7A [17:23:53]Write i2c OK [17:23:53]MH_I2C_Read... [17:23:53]OFD Sender: No OFD packet to send [17:23:53]*** Cut start [17:23:53]*** Partial cut [17:23:53]*** CUTSNS_PIN = 1 [17:23:53]*** CUTSNS_PIN = 0 [17:23:54]*** Brake cut motor [17:23:54]Read from MH i2c: 01 [17:23:54]MH_I2C_Read... [17:23:54]*** Stop cut motor [17:23:54]*** Cut end [17:23:54]Read from MH i2c: 01 07 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: 01 07 00 0F 6B 00 00 00 00 00 FF 0F 8F [17:23:54]process_action close_receipt done [17:23:54]requested_data is exist [17:23:54]produce_requested_data [17:23:54]requested_item fm.sn is exist - process it [17:23:54]wFMCommunicate request_size=4 [17:23:54]MH_SAM_APDU [17:23:54]CAPDU: 80 11 00 00 [17:23:54]Write to MH i2c: E2 08 00 10 6B 80 11 00 00 00 00 00 00 F5 [17:23:54]Write i2c OK [17:23:54]MH_I2C_Read... [17:23:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:54]Read from MH i2c: E2 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 17 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 17 00 10 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 50 [17:23:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:23:54]wFMCommunicate OK [17:23:54]requested_item fd.num is exist - process it [17:23:54]SAM_PROTO_GetFieldsCounters [17:23:54]wFMCommunicate request_size=4 [17:23:54]MH_SAM_APDU [17:23:54]CAPDU: 80 13 00 00 [17:23:54]Write to MH i2c: E2 08 00 11 6B 80 13 00 00 00 00 00 00 F8 [17:23:54]Write i2c OK [17:23:54]MH_I2C_Read... [17:23:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:54]Read from MH i2c: E2 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 62 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 62 00 11 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 40 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [17:23: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 40 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:23:54]wFMCommunicate OK [17:23:54]SAM_PROTO_GetFieldsCounters done [17:23:54]requested_item shift.num is exist - process it [17:23:54]requested_item shift.opened is exist - process it [17:23:54]req_shift_opened [17:23:54]FM_GetShiftState [17:23:54]SAM_PROTO_GetShiftState [17:23:54]wFMCommunicate request_size=4 [17:23:54]MH_SAM_APDU [17:23:54]CAPDU: 80 13 01 00 [17:23:54]Write to MH i2c: E2 08 00 12 6B 80 13 01 00 00 00 00 00 FA [17:23:54]Write i2c OK [17:23:54]MH_I2C_Read... [17:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:54]Read from MH i2c: E2 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 0E 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 0E 00 12 6B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 28 [17:23:54]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:23:54]wFMCommunicate OK [17:23:54]SAM_PROTO_GetShiftState done [17:23:54]FM_GetShiftState done [17:23:54]req_shift_opened done [17:23:54]requested_item shift.open_date is exist - process it [17:23:54]req_shift_open_date [17:23:54]req_shift_open_date done [17:23:54]produce_requested_data done [17:23:54]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118848,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [17:23:54]process_action_free close_receipt [17:23:54]json_value_free [17:23:54]json_value_free done [17:23:54]process_json_proto returns [17:23:54]Send response to host [17:23:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118848,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [17:23:54]free response buf [17:23:54]execute_script done [17:23:54]execute_script returns [17:23:54]free content buf [17:23:54]Sock 9.Close socket [17:23:54]Sock 9.Thread stoped [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:23]OFD Sender: No OFD packet to send [17:26:28]OFD Sender: No OFD packet to send [17:26:33]OFD Sender: No OFD packet to send [17:26:38]OFD Sender: No OFD packet to send [17:26:43]OFD Sender: No OFD packet to send [17:26:48]OFD Sender: No OFD packet to send [17:26:53]OFD Sender: No OFD packet to send [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:11]accept exits with 7 [17:27:11]New connection [17:27:11]New thread 3067239780 created [17:27:11]Thread 3067383140 joined [17:27:11]Waiting for new connection... [17:27:11] Sock 7.Parse request [17:27:11]Sock 7.Check first char [17:27:11]Sock 7.First char is OK [17:27:11]request: POST /json_proto HTTP/1.0 [17:27:11]Method: POST [17:27:11]URL: /json_proto [17:27:11]Method is POST - this is cgi request [17:27:11]url: /json_proto [17:27:11]query_string will be loaded in cgi processing [17:27:11]execute_cgi json_proto POST (null) [17:27:11]execute_cgi path=json_proto method=POST [17:27:11]POST find Content-Length [17:27:11]Host: 172.17.45.7:8080 [17:27:11]Content-Length: 679 [17:27:11]Content-Type: application/json [17:27:11] [17:27:11]POST finish read [17:27:11]Found Content-Length = 679 [17:27:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:11]execute_script... [17:27:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:11]POST & json_proto [17:27:11]process_json_proto [17:27:11]json parsed OK: [17:27:11]protocol is kg_v1.0 [17:27:11]action value=close_receipt [17:27:11]process_action close_receipt [17:27:11]cmd_close_receipt [17:27:11]MH_GetDate [17:27:11]Write to MH i2c: F0 00 00 13 6B 6D [17:27:11]Write i2c OK [17:27:11]MH_I2C_Read... [17:27:11]Read from MH i2c: F0 [17:27:11]MH_I2C_Read... [17:27:11]Read from MH i2c: F0 09 00 [17:27:11]MH_I2C_Read... [17:27:11]Read from MH i2c: F0 09 00 13 6B 00 F5 D0 A7 66 90 0F 3E 66 8B [17:27:11]GetLastDocTimeStamp 1722273837 [17:27:11]current date 1722274037 [17:27:11]FM_GetShiftState [17:27:11]SAM_PROTO_GetShiftState [17:27:11]wFMCommunicate request_size=4 [17:27:11]MH_SAM_APDU [17:27:11]CAPDU: 80 13 01 00 [17:27:11]Write to MH i2c: E2 08 00 14 6B 80 13 01 00 00 00 00 00 FC [17:27:11]Write i2c OK [17:27:11]MH_I2C_Read... [17:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:11]Read from MH i2c: E2 [17:27:11]MH_I2C_Read... [17:27:11]Read from MH i2c: E2 0E 00 [17:27:11]MH_I2C_Read... [17:27:11]Read from MH i2c: E2 0E 00 14 6B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 2A [17:27:11]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:27:11]wFMCommunicate OK [17:27:11]SAM_PROTO_GetShiftState done [17:27:11]FM_GetShiftState done [17:27:11]opened in 1722211641 [17:27:11]opened+sec_in_day 1722298041 [17:27:11]quantity*price = 100050 [17:27:11]sum+1 = 100052 [17:27:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 225 29.07.2024 17:27 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118849 ФПД: 41927725419961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T172717&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118849&fm=41927725419961&tin=02508201610067®Number=0000000000092660&sum=100000 [17:27:12]StoreToDocumentArchive [17:27:12]shift 434 fd 118849 [17:27:12]save to /storage/0434/doc_00118849 [17:27:12]save last doc name /storage/0434/doc_00118849 to /storage/kkm_last_doc_name [17:27:12]save OK [17:27:12]Clear old archive folders... [17:27:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:27:12]tlvbuf is B6FBE010 [17:27:12]SAM_PROTO_ClearQueue [17:27:12]wFMCommunicate request_size=4 [17:27:12]MH_SAM_APDU [17:27:12]CAPDU: 80 09 00 00 [17:27:12]Write to MH i2c: E2 08 00 21 6B 80 09 00 00 00 00 00 00 FE [17:27:12]Write i2c OK [17:27:12]MH_I2C_Read... [17:27:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:12]Read from MH i2c: E2 [17:27:12]MH_I2C_Read... [17:27:12]Read from MH i2c: E2 03 00 [17:27:12]MH_I2C_Read... [17:27:12]Read from MH i2c: E2 03 00 21 6B 00 90 00 00 [17:27:12]RAPDU: 90 00 [17:27:12]wFMCommunicate OK [17:27:12]SAM_PROTO_ClearQueue done [17:27:12]KKMCreateOFDPacket [17:27:12]OFDProtocolAddRootSTLVToBuf [17:27:12]FM_MakeSignedData [17:27:12]FM_MakeSignedData [17:27:12]SAM_PROTO_SignData [17:27:12]wFMCommunicate request_size=4 [17:27:12]MH_SAM_APDU [17:27:12]CAPDU: 80 0D 01 02 [17:27:12]Write to MH i2c: E2 08 00 22 6B 80 0D 01 02 00 00 00 00 06 [17:27:12]Write i2c OK [17:27:12]MH_I2C_Read... [17:27:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:12]Read from MH i2c: E2 [17:27:12]MH_I2C_Read... [17:27:12]Read from MH i2c: E2 03 00 [17:27:12]MH_I2C_Read... [17:27:12]Read from MH i2c: E2 03 00 22 6B 00 90 00 01 [17:27:12]RAPDU: 90 00 [17:27:12]wFMCommunicate OK [17:27:12]wFMCommunicate request_size=255 [17:27:12]MH_SAM_APDU [17:27:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 F5 D0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 D0 01 00 35 04 06 00 26 22 0F 2E [17:27:12]Write to MH i2c: E2 02 01 23 6B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 F5 D0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 D0 01 00 35 04 06 00 26 22 0F 2E 00 00 93 [17:27:12]Write i2c OK [17:27:12]MH_I2C_Read... [17:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:12]Read from MH i2c: E2 [17:27:12]MH_I2C_Read... [17:27:12]Read from MH i2c: E2 03 00 [17:27:12]MH_I2C_Read... [17:27:12]Read from MH i2c: E2 03 00 23 6B 00 90 00 02 [17:27:12]RAPDU: 90 00 [17:27:12]wFMCommunicate OK [17:27:12]wFMCommunicate request_size=7 [17:27:12]MH_SAM_APDU [17:27:12]CAPDU: 80 0D 02 02 02 0D B9 [17:27:12]Write to MH i2c: E2 0A 00 24 6B 80 0D 02 02 02 00 0D B9 00 00 D3 [17:27:12]Write i2c OK [17:27:12]MH_I2C_Read... [17:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:12]Read from MH i2c: E2 [17:27:12]MH_I2C_Read... [17:27:12]Read from MH i2c: E2 03 00 [17:27:12]MH_I2C_Read... [17:27:12]Read from MH i2c: E2 03 00 24 6B 00 90 00 03 [17:27:12]RAPDU: 90 00 [17:27:12]wFMCommunicate OK [17:27:12]wFMCommunicate request_size=4 [17:27:12]MH_SAM_APDU [17:27:12]CAPDU: 80 0D 03 02 [17:27:12]Write to MH i2c: E2 08 00 25 6B 80 0D 03 02 00 00 00 00 0B [17:27:12]Write i2c OK [17:27:12]MH_I2C_Read... [17:27:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:12]Read from MH i2c: E2 [17:27:12]MH_I2C_Read... [17:27:12]Read from MH i2c: E2 0B 00 [17:27:12]MH_I2C_Read... [17:27:12]Read from MH i2c: E2 0B 00 25 6B 00 33 10 DF 50 9E 91 57 9F 90 00 A3 [17:27:12]RAPDU: 33 10 DF 50 9E 91 57 9F 90 00 [17:27:12]wFMCommunicate OK [17:27:12]SAM_PROTO_SignData done [17:27:12]FM_MakeSignedData done [17:27:12]CreateOFDProtocolMessage [17:27:12]wFMCommunicate request_size=4 [17:27:12]MH_SAM_APDU [17:27:12]CAPDU: 80 11 00 00 [17:27:12]Write to MH i2c: E2 08 00 26 6B 80 11 00 00 00 00 00 00 0B [17:27:12]Write i2c OK [17:27:12]MH_I2C_Read... [17:27:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:13]Read from MH i2c: E2 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 17 00 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 17 00 26 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 66 [17:27:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:27:13]wFMCommunicate OK [17:27:13]CreateOFDProtocolMessage done [17:27:13]OFDSenderStorePacket 118849 [17:27:13]StoreOFDPacket docnum=118849 [17:27:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 00 67 04 01 27 E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 F5 D0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 D0 01 00 35 04 06 00 26 22 0F 2E 0D B9 33 10 DF 50 9E 91 57 9F [17:27:13]CheckFolder [17:27:13]dirname=/storage/ofd_packets [17:27:13]CheckFolder done [17:27:13]ProducePacketName [17:27:13]name=ofd_packets/00118849 [17:27:13]NVStorageSaveData ofd_packets/00118849 [17:27:13]File name is /storage/ofd_packets/00118849 [17:27:13]Write 298 bytes [17:27:13]NVStorageSaveData done [17:27:13]OFDSenderStorePacket done [17:27:13]KKMCreateOFDPacket done [17:27:13]NVStorageSaveData kkm_last_timestamp [17:27:13]File name is /storage/kkm_last_timestamp [17:27:13]Write 4 bytes [17:27:13]NVStorageSaveData done [17:27:13]ExternCall_PrintAddStr [17:27:13]wPrintStart [17:27:13]Write to MH i2c: 01 00 00 27 6B 92 [17:27:13]Write i2c OK [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: 01 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: 01 07 00 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: 01 07 00 27 6B 00 00 00 00 00 FF 0F A7 [17:27:13]RasterBufferAndPrint [17:27:13]line Счет N : (1)949739 [17:27:13]line ИНН: 02508201610067 [17:27:13]line Контрольно-Кассовый Чек [17:27:13]line ПРОДАЖА [17:27:13]line ТРК (МРК, ГНК) : 21 [17:27:13]line Товар: 2710194800 [17:27:13]line ДТ-К-5 [17:27:13]line 13.130 * 76.20 [17:27:13]line = 1000.51 [17:27:13]line НДС 12% НСП 1% [17:27:13]line > о реализуемом товаре [17:27:13]line ОКРУГЛЕНИЕ: -0.51 [17:27:13]line ИТОГО: 1000.00 [17:27:13]line Внесено: 1000.00 [17:27:13]line СДАЧА: 0.00 [17:27:13]line НСП 1% : 8.85 [17:27:13]line НДС 12% : 106.25 [17:27:13]line Наличными: 1000.00 [17:27:13]line Безнал.: 0.00 [17:27:13]line Место: АЗС № 134 "Партнер Нефть" [17:27:13]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:27:13]line СНО: Общий режим [17:27:13]line Чек 225 29.07.2024 17:27 [17:27:13]line Смена: 434 ФФД: 1.0 [17:27:13]line ЗНМ: 0300000044 [17:27:13]line РНМ: 0000000000092660 [17:27:13]line Версия ККМ: 001 [17:27:13]line ФМ: 0000000000874939 [17:27:13]line ФД: 118849 [17:27:13]line ФПД: 41927725419961 [17:27:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T172717&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118849&fm=41927725419961&tin=02508201610067®Number=0000000000092660&sum=100000 [17:27:13]OFD Sender: Processing packet 118849 [packets to send 86, broken 85] [17:27:13]ProducePacketName [17:27:13]name=ofd_packets/00118849 [17:27:13]OFD Sender: To server: pG, [17:27:13]CommunicateWithHost lk.salyk.kg:30040 [17:27:13]ConnectInit lk.salyk.kg [17:27:13]written 0, free lines is 4095 [17:27:13]Connected sock=10 [17:27:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 00 67 04 01 27 E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 F5 D0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 D0 01 00 35 04 06 00 26 22 0F 2E 0D B9 33 10 DF 50 9E 91 57 9F [17:27:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EE AD 47 00 31 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 D0 01 00 F4 03 04 00 83 7E A7 66 B6 04 01 00 00 5C 62 7F 30 12 2F 40 69 [17:27:13]CommunicateWithHost err = 0 [17:27:13]CheckOFDResponse [17:27:13]1017 (14) - 77093643461234 [17:27:13]1041 (16) - 0000000000874939 [17:27:13]1040 (4) - 118849 [17:27:13]1012 (4) - 29.07.2024 11:35 [17:27:13]1206 (1) - 0 [17:27:13]OFD Sender: Remove packet 118849 [17:27:13]ProducePacketName [17:27:13]name=ofd_packets/00118849 [17:27:13]NVStorageDeleteData [17:27:13]Write to MH i2c: 01 00 00 51 6B BC [17:27:13]Write i2c OK [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: 01 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: 01 07 00 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: 01 07 00 51 6B 00 00 00 00 00 D8 0C A7 [17:27:13]RasterBufferAndPrint [17:27:13]line [17:27:13]line [17:27:13]line [17:27:13]line [17:27:13]line [17:27:13]written 0, free lines is 3295 [17:27:13]MH_Cut [17:27:13]Write to MH i2c: D1 01 00 58 6B 01 95 [17:27:13]Write i2c OK [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: D1 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: D1 01 00 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: D1 01 00 58 6B 00 94 [17:27:13]Write to MH i2c: 01 00 00 59 6B C4 [17:27:13]Write i2c OK [17:27:13]MH_I2C_Read... [17:27:14]OFD Sender: No OFD packet to send [17:27:14]*** Cut start [17:27:14]*** Partial cut [17:27:14]*** CUTSNS_PIN = 1 [17:27:14]*** CUTSNS_PIN = 0 [17:27:14]*** Brake cut motor [17:27:15]Read from MH i2c: 01 [17:27:15]MH_I2C_Read... [17:27:15]*** Stop cut motor [17:27:15]*** Cut end [17:27:15]Read from MH i2c: 01 07 00 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: 01 07 00 59 6B 00 00 00 00 00 FF 0F D9 [17:27:15]process_action close_receipt done [17:27:15]requested_data is exist [17:27:15]produce_requested_data [17:27:15]requested_item fm.sn is exist - process it [17:27:15]wFMCommunicate request_size=4 [17:27:15]MH_SAM_APDU [17:27:15]CAPDU: 80 11 00 00 [17:27:15]Write to MH i2c: E2 08 00 5A 6B 80 11 00 00 00 00 00 00 3F [17:27:15]Write i2c OK [17:27:15]MH_I2C_Read... [17:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:15]Read from MH i2c: E2 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: E2 17 00 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: E2 17 00 5A 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9A [17:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:27:15]wFMCommunicate OK [17:27:15]requested_item fd.num is exist - process it [17:27:15]SAM_PROTO_GetFieldsCounters [17:27:15]wFMCommunicate request_size=4 [17:27:15]MH_SAM_APDU [17:27:15]CAPDU: 80 13 00 00 [17:27:15]Write to MH i2c: E2 08 00 5B 6B 80 13 00 00 00 00 00 00 42 [17:27:15]Write i2c OK [17:27:15]MH_I2C_Read... [17:27:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:15]Read from MH i2c: E2 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: E2 62 00 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: E2 62 00 5B 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 41 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [17:27: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 41 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:15]wFMCommunicate OK [17:27:15]SAM_PROTO_GetFieldsCounters done [17:27:15]requested_item shift.num is exist - process it [17:27:15]requested_item shift.opened is exist - process it [17:27:15]req_shift_opened [17:27:15]FM_GetShiftState [17:27:15]SAM_PROTO_GetShiftState [17:27:15]wFMCommunicate request_size=4 [17:27:15]MH_SAM_APDU [17:27:15]CAPDU: 80 13 01 00 [17:27:15]Write to MH i2c: E2 08 00 5C 6B 80 13 01 00 00 00 00 00 44 [17:27:15]Write i2c OK [17:27:15]MH_I2C_Read... [17:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:15]Read from MH i2c: E2 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: E2 0E 00 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: E2 0E 00 5C 6B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 72 [17:27:15]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:27:15]wFMCommunicate OK [17:27:15]SAM_PROTO_GetShiftState done [17:27:15]FM_GetShiftState done [17:27:15]req_shift_opened done [17:27:15]requested_item shift.open_date is exist - process it [17:27:15]req_shift_open_date [17:27:15]req_shift_open_date done [17:27:15]produce_requested_data done [17:27:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118849,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [17:27:15]process_action_free close_receipt [17:27:15]json_value_free [17:27:15]json_value_free done [17:27:15]process_json_proto returns [17:27:15]Send response to host [17:27:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118849,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [17:27:15]free response buf [17:27:15]execute_script done [17:27:15]execute_script returns [17:27:15]free content buf [17:27:15]Sock 7.Close socket [17:27:15]Sock 7.Thread stoped [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:24]accept exits with 9 [17:28:24]New connection [17:28:24]New thread 3067383140 created [17:28:24]Thread 3067239780 joined [17:28:24]Waiting for new connection... [17:28:24] Sock 9.Parse request [17:28:24]Sock 9.Check first char [17:28:24]Sock 9.First char is OK [17:28:24]request: POST /json_proto HTTP/1.0 [17:28:24]Method: POST [17:28:24]URL: /json_proto [17:28:24]Method is POST - this is cgi request [17:28:24]url: /json_proto [17:28:24]query_string will be loaded in cgi processing [17:28:24]execute_cgi json_proto POST (null) [17:28:24]execute_cgi path=json_proto method=POST [17:28:24]POST find Content-Length [17:28:24]Host: 172.17.45.7:8080 [17:28:24]Content-Length: 677 [17:28:24]Content-Type: application/json [17:28:24] [17:28:24]POST finish read [17:28:24]Found Content-Length = 677 [17:28:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:24]execute_script... [17:28: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)949740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:24]POST & json_proto [17:28:24]process_json_proto [17:28:24]json parsed OK: [17:28:24]protocol is kg_v1.0 [17:28:24]action value=close_receipt [17:28:24]process_action close_receipt [17:28:24]cmd_close_receipt [17:28:24]MH_GetDate [17:28:24]Write to MH i2c: F0 00 00 5D 6B B7 [17:28:24]Write i2c OK [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: F0 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: F0 09 00 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: F0 09 00 5D 6B 00 3E D1 A7 66 90 0F 3E 66 1F [17:28:24]GetLastDocTimeStamp 1722274037 [17:28:24]current date 1722274110 [17:28:24]FM_GetShiftState [17:28:24]SAM_PROTO_GetShiftState [17:28:24]wFMCommunicate request_size=4 [17:28:24]MH_SAM_APDU [17:28:24]CAPDU: 80 13 01 00 [17:28:24]Write to MH i2c: E2 08 00 5E 6B 80 13 01 00 00 00 00 00 46 [17:28:24]Write i2c OK [17:28:24]MH_I2C_Read... [17:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:24]Read from MH i2c: E2 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: E2 0E 00 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: E2 0E 00 5E 6B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 74 [17:28:24]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:28:24]wFMCommunicate OK [17:28:24]SAM_PROTO_GetShiftState done [17:28:24]FM_GetShiftState done [17:28:24]opened in 1722211641 [17:28:24]opened+sec_in_day 1722298041 [17:28:24]quantity*price = 30035 [17:28:24]sum+1 = 30036 [17:28:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 226 29.07.2024 17:28 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118850 ФПД: 77895506273415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T172831&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118850&fm=77895506273415&tin=02508201610067®Number=0000000000092660&sum=30000 [17:28:25]StoreToDocumentArchive [17:28:25]shift 434 fd 118850 [17:28:25]save to /storage/0434/doc_00118850 [17:28:25]save last doc name /storage/0434/doc_00118850 to /storage/kkm_last_doc_name [17:28:25]save OK [17:28:25]Clear old archive folders... [17:28:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:25]tlvbuf is B6FBE0C0 [17:28:25]SAM_PROTO_ClearQueue [17:28:25]wFMCommunicate request_size=4 [17:28:25]MH_SAM_APDU [17:28:25]CAPDU: 80 09 00 00 [17:28:25]Write to MH i2c: E2 08 00 6B 6B 80 09 00 00 00 00 00 00 48 [17:28:25]Write i2c OK [17:28:25]MH_I2C_Read... [17:28:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:25]Read from MH i2c: E2 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: E2 03 00 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: E2 03 00 6B 6B 00 90 00 4A [17:28:25]RAPDU: 90 00 [17:28:25]wFMCommunicate OK [17:28:25]SAM_PROTO_ClearQueue done [17:28:25]KKMCreateOFDPacket [17:28:25]OFDProtocolAddRootSTLVToBuf [17:28:25]FM_MakeSignedData [17:28:25]FM_MakeSignedData [17:28:25]SAM_PROTO_SignData [17:28:25]wFMCommunicate request_size=4 [17:28:25]MH_SAM_APDU [17:28:25]CAPDU: 80 0D 01 02 [17:28:25]Write to MH i2c: E2 08 00 6C 6B 80 0D 01 02 00 00 00 00 50 [17:28:25]Write i2c OK [17:28:25]MH_I2C_Read... [17:28:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:25]Read from MH i2c: E2 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: E2 03 00 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: E2 03 00 6C 6B 00 90 00 4B [17:28:25]RAPDU: 90 00 [17:28:25]wFMCommunicate OK [17:28:25]wFMCommunicate request_size=255 [17:28:25]MH_SAM_APDU [17:28: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 3F D1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 42 D0 01 00 35 04 06 00 46 [17:28:25]Write to MH i2c: E2 02 01 6D 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 3F D1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 42 D0 01 00 35 04 06 00 46 00 00 FE [17:28:25]Write i2c OK [17:28:25]MH_I2C_Read... [17:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:25]Read from MH i2c: E2 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: E2 03 00 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: E2 03 00 6D 6B 00 90 00 4C [17:28:25]RAPDU: 90 00 [17:28:25]wFMCommunicate OK [17:28:25]wFMCommunicate request_size=10 [17:28:25]MH_SAM_APDU [17:28:25]CAPDU: 80 0D 02 02 05 D8 75 FB 24 87 [17:28:25]Write to MH i2c: E2 0D 00 6E 6B 80 0D 02 02 05 00 D8 75 FB 24 87 00 00 50 [17:28:25]Write i2c OK [17:28:25]MH_I2C_Read... [17:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:26]Read from MH i2c: E2 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 03 00 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 03 00 6E 6B 00 90 00 4D [17:28:26]RAPDU: 90 00 [17:28:26]wFMCommunicate OK [17:28:26]wFMCommunicate request_size=4 [17:28:26]MH_SAM_APDU [17:28:26]CAPDU: 80 0D 03 02 [17:28:26]Write to MH i2c: E2 08 00 6F 6B 80 0D 03 02 00 00 00 00 55 [17:28:26]Write i2c OK [17:28:26]MH_I2C_Read... [17:28:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:26]Read from MH i2c: E2 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 0B 00 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 0B 00 6F 6B 00 23 33 E5 A6 2C E4 E1 C1 90 00 E9 [17:28:26]RAPDU: 23 33 E5 A6 2C E4 E1 C1 90 00 [17:28:26]wFMCommunicate OK [17:28:26]SAM_PROTO_SignData done [17:28:26]FM_MakeSignedData done [17:28:26]CreateOFDProtocolMessage [17:28:26]wFMCommunicate request_size=4 [17:28:26]MH_SAM_APDU [17:28:26]CAPDU: 80 11 00 00 [17:28:26]Write to MH i2c: E2 08 00 70 6B 80 11 00 00 00 00 00 00 55 [17:28:26]Write i2c OK [17:28:26]MH_I2C_Read... [17:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:26]Read from MH i2c: E2 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 17 00 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 17 00 70 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B0 [17:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:28:26]wFMCommunicate OK [17:28:26]CreateOFDProtocolMessage done [17:28:26]OFDSenderStorePacket 118850 [17:28:26]StoreOFDPacket docnum=118850 [17:28:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F9 3E 07 01 65 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 3F D1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 42 D0 01 00 35 04 06 00 46 D8 75 FB 24 87 23 33 E5 A6 2C E4 E1 C1 [17:28:26]CheckFolder [17:28:26]dirname=/storage/ofd_packets [17:28:26]CheckFolder done [17:28:26]ProducePacketName [17:28:26]name=ofd_packets/00118850 [17:28:26]NVStorageSaveData ofd_packets/00118850 [17:28:26]File name is /storage/ofd_packets/00118850 [17:28:26]Write 301 bytes [17:28:26]NVStorageSaveData done [17:28:26]OFDSenderStorePacket done [17:28:26]KKMCreateOFDPacket done [17:28:26]NVStorageSaveData kkm_last_timestamp [17:28:26]File name is /storage/kkm_last_timestamp [17:28:26]Write 4 bytes [17:28:26]NVStorageSaveData done [17:28:26]ExternCall_PrintAddStr [17:28:26]wPrintStart [17:28:26]Write to MH i2c: 01 00 00 71 6B DC [17:28:26]Write i2c OK [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: 01 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: 01 07 00 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: 01 07 00 71 6B 00 00 00 00 00 FF 0F F1 [17:28:26]RasterBufferAndPrint [17:28:26]line Счет N : (1)949740 [17:28:26]line ИНН: 02508201610067 [17:28:26]line Контрольно-Кассовый Чек [17:28:26]line ПРОДАЖА [17:28:26]line ТРК (МРК, ГНК) : 51 [17:28:26]line Товар: 2710124130 [17:28:26]line Аи-92-К-4 [17:28:26]line 4.430 * 67.80 [17:28:26]line = 300.35 [17:28:26]line НДС 12% НСП 1% [17:28:26]line > о реализуемом товаре [17:28:26]line ОКРУГЛЕНИЕ: -0.35 [17:28:26]line ИТОГО: 300.00 [17:28:26]line Внесено: 300.00 [17:28:26]line СДАЧА: 0.00 [17:28:26]line НСП 1% : 2.66 [17:28:26]line НДС 12% : 31.90 [17:28:26]line Наличными: 300.00 [17:28:26]line Безнал.: 0.00 [17:28:26]line Место: АЗС № 134 "Партнер Нефть" [17:28:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:28:26]line СНО: Общий режим [17:28:26]line Чек 226 29.07.2024 17:28 [17:28:26]line Смена: 434 ФФД: 1.0 [17:28:26]line ЗНМ: 0300000044 [17:28:26]line РНМ: 0000000000092660 [17:28:26]line Версия ККМ: 001 [17:28:26]line ФМ: 0000000000874939 [17:28:26]line ФД: 118850 [17:28:26]line ФПД: 77895506273415 [17:28:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T172831&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118850&fm=77895506273415&tin=02508201610067®Number=0000000000092660&sum=30000 [17:28:26]written 0, free lines is 4095 [17:28:26]OFD Sender: Processing packet 118850 [packets to send 86, broken 85] [17:28:26]ProducePacketName [17:28:26]name=ofd_packets/00118850 [17:28:26]OFD Sender: To server: pG, [17:28:26]CommunicateWithHost lk.salyk.kg:30040 [17:28:26]ConnectInit lk.salyk.kg [17:28:26]Connected sock=10 [17:28:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F9 3E 07 01 65 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 3F D1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 42 D0 01 00 35 04 06 00 46 D8 75 FB 24 87 23 33 E5 A6 2C E4 E1 C1 [17:28:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C2 EB 47 00 37 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 34 39 33 39 10 04 04 00 42 D0 01 00 F4 03 04 00 CC 7E A7 66 B6 04 01 00 00 12 58 E9 BE B5 85 6F C2 [17:28:26]CommunicateWithHost err = 0 [17:28:26]CheckOFDResponse [17:28:26]1017 (14) - 77093643461234 [17:28:26]1041 (16) - 0000000000874939 [17:28:26]1040 (4) - 118850 [17:28:26]1012 (4) - 29.07.2024 11:36 [17:28:26]1206 (1) - 0 [17:28:26]OFD Sender: Remove packet 118850 [17:28:26]ProducePacketName [17:28:26]name=ofd_packets/00118850 [17:28:26]NVStorageDeleteData [17:28:26]Write to MH i2c: 01 00 00 9B 6B 06 [17:28:26]Write i2c OK [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: 01 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: 01 07 00 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: 01 07 00 9B 6B 00 00 00 00 00 E1 0C FA [17:28:26]RasterBufferAndPrint [17:28:26]line [17:28:26]line [17:28:26]line [17:28:26]line [17:28:26]line [17:28:26]written 0, free lines is 3306 [17:28:26]MH_Cut [17:28:26]Write to MH i2c: D1 01 00 A2 6B 01 DF [17:28:26]Write i2c OK [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: D1 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: D1 01 00 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: D1 01 00 A2 6B 00 DE [17:28:26]Write to MH i2c: 01 00 00 A3 6B 0E [17:28:26]Write i2c OK [17:28:26]MH_I2C_Read... [17:28:26]OFD Sender: No OFD packet to send [17:28:27]*** Cut start [17:28:27]*** Partial cut [17:28:27]*** CUTSNS_PIN = 1 [17:28:27]*** CUTSNS_PIN = 0 [17:28:27]*** Brake cut motor [17:28:27]Read from MH i2c: 01 [17:28:27]MH_I2C_Read... [17:28:27]*** Stop cut motor [17:28:27]*** Cut end [17:28:27]Read from MH i2c: 01 07 00 [17:28:27]MH_I2C_Read... [17:28:27]Read from MH i2c: 01 07 00 A3 6B 00 00 00 00 00 FF 0F 23 [17:28:27]process_action close_receipt done [17:28:27]requested_data is exist [17:28:27]produce_requested_data [17:28:27]requested_item fm.sn is exist - process it [17:28:27]wFMCommunicate request_size=4 [17:28:27]MH_SAM_APDU [17:28:27]CAPDU: 80 11 00 00 [17:28:27]Write to MH i2c: E2 08 00 A4 6B 80 11 00 00 00 00 00 00 89 [17:28:27]Write i2c OK [17:28:27]MH_I2C_Read... [17:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:27]Read from MH i2c: E2 [17:28:27]MH_I2C_Read... [17:28:27]Read from MH i2c: E2 17 00 [17:28:27]MH_I2C_Read... [17:28:27]Read from MH i2c: E2 17 00 A4 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E4 [17:28:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:28:27]wFMCommunicate OK [17:28:27]requested_item fd.num is exist - process it [17:28:27]SAM_PROTO_GetFieldsCounters [17:28:27]wFMCommunicate request_size=4 [17:28:27]MH_SAM_APDU [17:28:27]CAPDU: 80 13 00 00 [17:28:27]Write to MH i2c: E2 08 00 A5 6B 80 13 00 00 00 00 00 00 8C [17:28:27]Write i2c OK [17:28:27]MH_I2C_Read... [17:28:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:28]Read from MH i2c: E2 [17:28:28]MH_I2C_Read... [17:28:28]Read from MH i2c: E2 62 00 [17:28:28]MH_I2C_Read... [17:28:28]Read from MH i2c: E2 62 00 A5 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 42 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [17:28: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 42 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:28]wFMCommunicate OK [17:28:28]SAM_PROTO_GetFieldsCounters done [17:28:28]requested_item shift.num is exist - process it [17:28:28]requested_item shift.opened is exist - process it [17:28:28]req_shift_opened [17:28:28]FM_GetShiftState [17:28:28]SAM_PROTO_GetShiftState [17:28:28]wFMCommunicate request_size=4 [17:28:28]MH_SAM_APDU [17:28:28]CAPDU: 80 13 01 00 [17:28:28]Write to MH i2c: E2 08 00 A6 6B 80 13 01 00 00 00 00 00 8E [17:28:28]Write i2c OK [17:28:28]MH_I2C_Read... [17:28:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:28]Read from MH i2c: E2 [17:28:28]MH_I2C_Read... [17:28:28]Read from MH i2c: E2 0E 00 [17:28:28]MH_I2C_Read... [17:28:28]Read from MH i2c: E2 0E 00 A6 6B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 BC [17:28:28]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:28:28]wFMCommunicate OK [17:28:28]SAM_PROTO_GetShiftState done [17:28:28]FM_GetShiftState done [17:28:28]req_shift_opened done [17:28:28]requested_item shift.open_date is exist - process it [17:28:28]req_shift_open_date [17:28:28]req_shift_open_date done [17:28:28]produce_requested_data done [17:28:28]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118850,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [17:28:28]process_action_free close_receipt [17:28:28]json_value_free [17:28:28]json_value_free done [17:28:28]process_json_proto returns [17:28:28]Send response to host [17:28:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118850,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [17:28:28]free response buf [17:28:28]execute_script done [17:28:28]execute_script returns [17:28:28]free content buf [17:28:28]Sock 9.Close socket [17:28:28]Sock 9.Thread stoped [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:52]OFD Sender: No OFD packet to send [17:28:57]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [17:29:07]OFD Sender: No OFD packet to send [17:29:12]OFD Sender: No OFD packet to send [17:29:17]OFD Sender: No OFD packet to send [17:29:22]OFD Sender: No OFD packet to send [17:29:27]OFD Sender: No OFD packet to send [17:29:32]OFD Sender: No OFD packet to send [17:29:37]OFD Sender: No OFD packet to send [17:29:42]OFD Sender: No OFD packet to send [17:29:47]OFD Sender: No OFD packet to send [17:29:52]OFD Sender: No OFD packet to send [17:29:57]OFD Sender: No OFD packet to send [17:30:02]OFD Sender: No OFD packet to send [17:30:07]OFD Sender: No OFD packet to send [17:30:12]OFD Sender: No OFD packet to send [17:30:17]OFD Sender: No OFD packet to send [17:30:22]OFD Sender: No OFD packet to send [17:30:27]OFD Sender: No OFD packet to send [17:30:32]OFD Sender: No OFD packet to send [17:30:37]OFD Sender: No OFD packet to send [17:30:42]OFD Sender: No OFD packet to send [17:30:47]OFD Sender: No OFD packet to send [17:30:52]OFD Sender: No OFD packet to send [17:30:57]OFD Sender: No OFD packet to send [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:20]accept exits with 7 [17:31:20]New connection [17:31:20]New thread 3067239780 created [17:31:20]Thread 3067383140 joined [17:31:20]Waiting for new connection... [17:31:20] Sock 7.Parse request [17:31:20]Sock 7.Check first char [17:31:20]Sock 7.First char is OK [17:31:20]request: POST /json_proto HTTP/1.0 [17:31:20]Method: POST [17:31:20]URL: /json_proto [17:31:20]Method is POST - this is cgi request [17:31:20]url: /json_proto [17:31:20]query_string will be loaded in cgi processing [17:31:20]execute_cgi json_proto POST (null) [17:31:20]execute_cgi path=json_proto method=POST [17:31:20]POST find Content-Length [17:31:20]Host: 172.17.45.7:8080 [17:31:20]Content-Length: 682 [17:31:20]Content-Type: application/json [17:31:20] [17:31:20]POST finish read [17:31:20]Found Content-Length = 682 [17:31:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:20]execute_script... [17:31:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:20]POST & json_proto [17:31:20]process_json_proto [17:31:20]json parsed OK: [17:31:20]protocol is kg_v1.0 [17:31:20]action value=close_receipt [17:31:20]process_action close_receipt [17:31:20]cmd_close_receipt [17:31:20]MH_GetDate [17:31:20]Write to MH i2c: F0 00 00 A7 6B 01 [17:31:20]Write i2c OK [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: F0 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: F0 09 00 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: F0 09 00 A7 6B 00 EE D1 A7 66 90 0F 3E 66 19 [17:31:20]GetLastDocTimeStamp 1722274111 [17:31:20]current date 1722274286 [17:31:20]FM_GetShiftState [17:31:20]SAM_PROTO_GetShiftState [17:31:20]wFMCommunicate request_size=4 [17:31:20]MH_SAM_APDU [17:31:20]CAPDU: 80 13 01 00 [17:31:20]Write to MH i2c: E2 08 00 A8 6B 80 13 01 00 00 00 00 00 90 [17:31:20]Write i2c OK [17:31:20]MH_I2C_Read... [17:31:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:20]Read from MH i2c: E2 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: E2 0E 00 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: E2 0E 00 A8 6B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 BE [17:31:20]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:31:20]wFMCommunicate OK [17:31:20]SAM_PROTO_GetShiftState done [17:31:20]FM_GetShiftState done [17:31:20]opened in 1722211641 [17:31:20]opened+sec_in_day 1722298041 [17:31:20]quantity*price = 100005 [17:31:20]sum+1 = 100006 [17:31:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 227 29.07.2024 17:31 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118851 ФПД: 59230647839406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T173127&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118851&fm=59230647839406&tin=02508201610067®Number=0000000000092660&sum=100000 [17:31:21]StoreToDocumentArchive [17:31:21]shift 434 fd 118851 [17:31:21]save to /storage/0434/doc_00118851 [17:31:21]save last doc name /storage/0434/doc_00118851 to /storage/kkm_last_doc_name [17:31:21]save OK [17:31:21]Clear old archive folders... [17:31:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:21]tlvbuf is 01E53ED0 [17:31:21]SAM_PROTO_ClearQueue [17:31:21]wFMCommunicate request_size=4 [17:31:21]MH_SAM_APDU [17:31:21]CAPDU: 80 09 00 00 [17:31:21]Write to MH i2c: E2 08 00 B5 6B 80 09 00 00 00 00 00 00 92 [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:21]Read from MH i2c: E2 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 03 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 03 00 B5 6B 00 90 00 94 [17:31:21]RAPDU: 90 00 [17:31:21]wFMCommunicate OK [17:31:21]SAM_PROTO_ClearQueue done [17:31:21]KKMCreateOFDPacket [17:31:21]OFDProtocolAddRootSTLVToBuf [17:31:21]FM_MakeSignedData [17:31:21]FM_MakeSignedData [17:31:21]SAM_PROTO_SignData [17:31:21]wFMCommunicate request_size=4 [17:31:21]MH_SAM_APDU [17:31:21]CAPDU: 80 0D 01 02 [17:31:21]Write to MH i2c: E2 08 00 B6 6B 80 0D 01 02 00 00 00 00 9A [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:21]Read from MH i2c: E2 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 03 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 03 00 B6 6B 00 90 00 95 [17:31:21]RAPDU: 90 00 [17:31:21]wFMCommunicate OK [17:31:21]wFMCommunicate request_size=255 [17:31:21]MH_SAM_APDU [17:31:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 EF D1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 D0 01 00 35 04 06 00 35 [17:31:21]Write to MH i2c: E2 02 01 B7 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 EF D1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 D0 01 00 35 04 06 00 35 00 00 59 [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:21]Read from MH i2c: E2 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 03 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 03 00 B7 6B 00 90 00 96 [17:31:21]RAPDU: 90 00 [17:31:21]wFMCommunicate OK [17:31:21]wFMCommunicate request_size=10 [17:31:21]MH_SAM_APDU [17:31:21]CAPDU: 80 0D 02 02 05 DE B5 B9 6A AE [17:31:21]Write to MH i2c: E2 0D 00 B8 6B 80 0D 02 02 05 00 DE B5 B9 6A AE 00 00 0B [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:21]Read from MH i2c: E2 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 03 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 03 00 B8 6B 00 90 00 97 [17:31:21]RAPDU: 90 00 [17:31:21]wFMCommunicate OK [17:31:21]wFMCommunicate request_size=4 [17:31:21]MH_SAM_APDU [17:31:21]CAPDU: 80 0D 03 02 [17:31:21]Write to MH i2c: E2 08 00 B9 6B 80 0D 03 02 00 00 00 00 9F [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:22]Read from MH i2c: E2 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: E2 0B 00 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: E2 0B 00 B9 6B 00 A3 2F 2F 94 D5 54 C6 65 90 00 89 [17:31:22]RAPDU: A3 2F 2F 94 D5 54 C6 65 90 00 [17:31:22]wFMCommunicate OK [17:31:22]SAM_PROTO_SignData done [17:31:22]FM_MakeSignedData done [17:31:22]CreateOFDProtocolMessage [17:31:22]wFMCommunicate request_size=4 [17:31:22]MH_SAM_APDU [17:31:22]CAPDU: 80 11 00 00 [17:31:22]Write to MH i2c: E2 08 00 BA 6B 80 11 00 00 00 00 00 00 9F [17:31:22]Write i2c OK [17:31:22]MH_I2C_Read... [17:31:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:22]Read from MH i2c: E2 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: E2 17 00 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: E2 17 00 BA 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FA [17:31:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:31:22]wFMCommunicate OK [17:31:22]CreateOFDProtocolMessage done [17:31:22]OFDSenderStorePacket 118851 [17:31:22]StoreOFDPacket docnum=118851 [17:31:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 85 E7 07 01 1A 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 EF D1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 D0 01 00 35 04 06 00 35 DE B5 B9 6A AE A3 2F 2F 94 D5 54 C6 65 [17:31:22]CheckFolder [17:31:22]dirname=/storage/ofd_packets [17:31:22]CheckFolder done [17:31:22]ProducePacketName [17:31:22]name=ofd_packets/00118851 [17:31:22]NVStorageSaveData ofd_packets/00118851 [17:31:22]File name is /storage/ofd_packets/00118851 [17:31:22]Write 301 bytes [17:31:22]NVStorageSaveData done [17:31:22]OFDSenderStorePacket done [17:31:22]KKMCreateOFDPacket done [17:31:22]NVStorageSaveData kkm_last_timestamp [17:31:22]File name is /storage/kkm_last_timestamp [17:31:22]Write 4 bytes [17:31:22]NVStorageSaveData done [17:31:22]ExternCall_PrintAddStr [17:31:22]wPrintStart [17:31:22]Write to MH i2c: 01 00 00 BB 6B 26 [17:31:22]Write i2c OK [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: 01 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: 01 07 00 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: 01 07 00 BB 6B 00 00 00 00 00 FF 0F 3B [17:31:22]RasterBufferAndPrint [17:31:22]line Счет N : (1)949741 [17:31:22]line ИНН: 02508201610067 [17:31:22]line Контрольно-Кассовый Чек [17:31:22]line ПРОДАЖА [17:31:22]line ТРК (МРК, ГНК) : 51 [17:31:22]line Товар: 2710124130 [17:31:22]line Аи-92-К-4 [17:31:22]line 14.750 * 67.80 [17:31:22]line = 1000.05 [17:31:22]line НДС 12% НСП 1% [17:31:22]line > о реализуемом товаре [17:31:22]line ОКРУГЛЕНИЕ: -0.05 [17:31:22]line ИТОГО: 1000.00 [17:31:22]line Внесено: 1000.00 [17:31:22]line СДАЧА: 0.00 [17:31:22]line НСП 1% : 8.85 [17:31:22]line НДС 12% : 106.20 [17:31:22]line Наличными: 1000.00 [17:31:22]line Безнал.: 0.00 [17:31:22]line Место: АЗС № 134 "Партнер Нефть" [17:31:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:31:22]line СНО: Общий режим [17:31:22]line Чек 227 29.07.2024 17:31 [17:31:22]line Смена: 434 ФФД: 1.0 [17:31:22]line ЗНМ: 0300000044 [17:31:22]line РНМ: 0000000000092660 [17:31:22]line Версия ККМ: 001 [17:31:22]line ФМ: 0000000000874939 [17:31:22]line ФД: 118851 [17:31:22]line ФПД: 59230647839406 [17:31:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T173127&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118851&fm=59230647839406&tin=02508201610067®Number=0000000000092660&sum=100000 [17:31:22]written 0, free lines is 4095 [17:31:22]OFD Sender: Processing packet 118851 [packets to send 86, broken 85] [17:31:22]ProducePacketName [17:31:22]name=ofd_packets/00118851 [17:31:22]OFD Sender: To server: pG, [17:31:22]CommunicateWithHost lk.salyk.kg:30040 [17:31:22]ConnectInit lk.salyk.kg [17:31:22]Connected sock=10 [17:31:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 85 E7 07 01 1A 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 EF D1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 D0 01 00 35 04 06 00 35 DE B5 B9 6A AE A3 2F 2F 94 D5 54 C6 65 [17:31:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 70 74 47 00 6C 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 34 39 33 39 10 04 04 00 43 D0 01 00 F4 03 04 00 7C 7F A7 66 B6 04 01 00 00 72 2A 0B 5C CA 0A 37 41 [17:31:22]CommunicateWithHost err = 0 [17:31:22]CheckOFDResponse [17:31:22]1017 (14) - 77093643461234 [17:31:22]1041 (16) - 0000000000874939 [17:31:22]1040 (4) - 118851 [17:31:22]1012 (4) - 29.07.2024 11:39 [17:31:22]1206 (1) - 0 [17:31:22]OFD Sender: Remove packet 118851 [17:31:22]ProducePacketName [17:31:22]name=ofd_packets/00118851 [17:31:22]NVStorageDeleteData [17:31:22]Write to MH i2c: 01 00 00 E5 6B 50 [17:31:22]Write i2c OK [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: 01 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: 01 07 00 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: 01 07 00 E5 6B 00 00 00 00 00 E5 0C 48 [17:31:22]RasterBufferAndPrint [17:31:22]line [17:31:22]line [17:31:22]line [17:31:22]line [17:31:22]line [17:31:22]written 0, free lines is 3307 [17:31:22]MH_Cut [17:31:22]Write to MH i2c: D1 01 00 EC 6B 01 29 [17:31:22]Write i2c OK [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: D1 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: D1 01 00 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: D1 01 00 EC 6B 00 28 [17:31:22]Write to MH i2c: 01 00 00 ED 6B 58 [17:31:22]Write i2c OK [17:31:22]MH_I2C_Read... [17:31:22]OFD Sender: No OFD packet to send [17:31:23]*** Cut start [17:31:23]*** Partial cut [17:31:23]*** CUTSNS_PIN = 1 [17:31:23]*** CUTSNS_PIN = 0 [17:31:23]*** Brake cut motor [17:31:23]Read from MH i2c: 01 [17:31:23]MH_I2C_Read... [17:31:23]*** Stop cut motor [17:31:23]*** Cut end [17:31:23]Read from MH i2c: 01 07 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: 01 07 00 ED 6B 00 00 00 00 00 FF 0F 6D [17:31:23]process_action close_receipt done [17:31:23]requested_data is exist [17:31:23]produce_requested_data [17:31:23]requested_item fm.sn is exist - process it [17:31:23]wFMCommunicate request_size=4 [17:31:23]MH_SAM_APDU [17:31:23]CAPDU: 80 11 00 00 [17:31:23]Write to MH i2c: E2 08 00 EE 6B 80 11 00 00 00 00 00 00 D3 [17:31:23]Write i2c OK [17:31:23]MH_I2C_Read... [17:31:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:23]Read from MH i2c: E2 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 17 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 17 00 EE 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2E [17:31:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:31:23]wFMCommunicate OK [17:31:23]requested_item fd.num is exist - process it [17:31:23]SAM_PROTO_GetFieldsCounters [17:31:23]wFMCommunicate request_size=4 [17:31:23]MH_SAM_APDU [17:31:23]CAPDU: 80 13 00 00 [17:31:23]Write to MH i2c: E2 08 00 EF 6B 80 13 00 00 00 00 00 00 D6 [17:31:23]Write i2c OK [17:31:23]MH_I2C_Read... [17:31:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:24]Read from MH i2c: E2 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: E2 62 00 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: E2 62 00 EF 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 43 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [17:31: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 43 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:24]wFMCommunicate OK [17:31:24]SAM_PROTO_GetFieldsCounters done [17:31:24]requested_item shift.num is exist - process it [17:31:24]requested_item shift.opened is exist - process it [17:31:24]req_shift_opened [17:31:24]FM_GetShiftState [17:31:24]SAM_PROTO_GetShiftState [17:31:24]wFMCommunicate request_size=4 [17:31:24]MH_SAM_APDU [17:31:24]CAPDU: 80 13 01 00 [17:31:24]Write to MH i2c: E2 08 00 F0 6B 80 13 01 00 00 00 00 00 D8 [17:31:24]Write i2c OK [17:31:24]MH_I2C_Read... [17:31:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:24]Read from MH i2c: E2 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: E2 0E 00 [17:31:24]MH_I2C_Read... [17:31:24]Read from MH i2c: E2 0E 00 F0 6B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 06 [17:31:24]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:31:24]wFMCommunicate OK [17:31:24]SAM_PROTO_GetShiftState done [17:31:24]FM_GetShiftState done [17:31:24]req_shift_opened done [17:31:24]requested_item shift.open_date is exist - process it [17:31:24]req_shift_open_date [17:31:24]req_shift_open_date done [17:31:24]produce_requested_data done [17:31:24]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118851,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [17:31:24]process_action_free close_receipt [17:31:24]json_value_free [17:31:24]json_value_free done [17:31:24]process_json_proto returns [17:31:24]Send response to host [17:31:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118851,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [17:31:24]free response buf [17:31:24]execute_script done [17:31:24]execute_script returns [17:31:24]free content buf [17:31:24]Sock 7.Close socket [17:31:24]Sock 7.Thread stoped [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:17]OFD Sender: No OFD packet to send [17:32:22]OFD Sender: No OFD packet to send [17:32:27]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [17:32:48]OFD Sender: No OFD packet to send [17:32:53]OFD Sender: No OFD packet to send [17:32:58]OFD Sender: No OFD packet to send [17:33:03]OFD Sender: No OFD packet to send [17:33:08]OFD Sender: No OFD packet to send [17:33:13]OFD Sender: No OFD packet to send [17:33:18]OFD Sender: No OFD packet to send [17:33:23]OFD Sender: No OFD packet to send [17:33:28]OFD Sender: No OFD packet to send [17:33:33]OFD Sender: No OFD packet to send [17:33:38]OFD Sender: No OFD packet to send [17:33:43]OFD Sender: No OFD packet to send [17:33:48]OFD Sender: No OFD packet to send [17:33:53]OFD Sender: No OFD packet to send [17:33:58]OFD Sender: No OFD packet to send [17:34:03]OFD Sender: No OFD packet to send [17:34:08]OFD Sender: No OFD packet to send [17:34:13]OFD Sender: No OFD packet to send [17:34:18]OFD Sender: No OFD packet to send [17:34:23]OFD Sender: No OFD packet to send [17:34:28]OFD Sender: No OFD packet to send [17:34:33]OFD Sender: No OFD packet to send [17:34:38]OFD Sender: No OFD packet to send [17:34:43]OFD Sender: No OFD packet to send [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:03]OFD Sender: No OFD packet to send [17:35:08]OFD Sender: No OFD packet to send [17:35:13]OFD Sender: No OFD packet to send [17:35:18]OFD Sender: No OFD packet to send [17:35:23]OFD Sender: No OFD packet to send [17:35:28]OFD Sender: No OFD packet to send [17:35:33]OFD Sender: No OFD packet to send [17:35:38]OFD Sender: No OFD packet to send [17:35:43]OFD Sender: No OFD packet to send [17:35:48]OFD Sender: No OFD packet to send [17:35:53]OFD Sender: No OFD packet to send [17:35:58]OFD Sender: No OFD packet to send [17:36:03]OFD Sender: No OFD packet to send [17:36:08]OFD Sender: No OFD packet to send [17:36:13]OFD Sender: No OFD packet to send [17:36:18]OFD Sender: No OFD packet to send [17:36:23]OFD Sender: No OFD packet to send [17:36:28]OFD Sender: No OFD packet to send [17:36:33]OFD Sender: No OFD packet to send [17:36:38]OFD Sender: No OFD packet to send [17:36:43]OFD Sender: No OFD packet to send [17:36:48]OFD Sender: No OFD packet to send [17:36:53]OFD Sender: No OFD packet to send [17:36:58]OFD Sender: No OFD packet to send [17:37:03]OFD Sender: No OFD packet to send [17:37:08]OFD Sender: No OFD packet to send [17:37:13]OFD Sender: No OFD packet to send [17:37:18]OFD Sender: No OFD packet to send [17:37:23]OFD Sender: No OFD packet to send [17:37:28]OFD Sender: No OFD packet to send [17:37:33]OFD Sender: No OFD packet to send [17:37:38]OFD Sender: No OFD packet to send [17:37:38]accept exits with 9 [17:37:38]New connection [17:37:38]New thread 3067383140 created [17:37:38]Thread 3067239780 joined [17:37:38]Waiting for new connection... [17:37:38] Sock 9.Parse request [17:37:38]Sock 9.Check first char [17:37:38]Sock 9.First char is OK [17:37:38]request: POST /json_proto HTTP/1.0 [17:37:38]Method: POST [17:37:38]URL: /json_proto [17:37:38]Method is POST - this is cgi request [17:37:38]url: /json_proto [17:37:38]query_string will be loaded in cgi processing [17:37:38]execute_cgi json_proto POST (null) [17:37:38]execute_cgi path=json_proto method=POST [17:37:38]POST find Content-Length [17:37:38]Host: 172.17.45.7:8080 [17:37:38]Content-Length: 677 [17:37:38]Content-Type: application/json [17:37:38] [17:37:38]POST finish read [17:37:38]Found Content-Length = 677 [17:37:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:38]execute_script... [17:37:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:38]POST & json_proto [17:37:38]process_json_proto [17:37:38]json parsed OK: [17:37:38]protocol is kg_v1.0 [17:37:38]action value=close_receipt [17:37:38]process_action close_receipt [17:37:38]cmd_close_receipt [17:37:38]MH_GetDate [17:37:38]Write to MH i2c: F0 00 00 F1 6B 4B [17:37:38]Write i2c OK [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: F0 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: F0 09 00 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: F0 09 00 F1 6B 00 69 D3 A7 66 90 0F 3E 66 E0 [17:37:38]GetLastDocTimeStamp 1722274287 [17:37:38]current date 1722274665 [17:37:38]FM_GetShiftState [17:37:38]SAM_PROTO_GetShiftState [17:37:38]wFMCommunicate request_size=4 [17:37:38]MH_SAM_APDU [17:37:38]CAPDU: 80 13 01 00 [17:37:38]Write to MH i2c: E2 08 00 F2 6B 80 13 01 00 00 00 00 00 DA [17:37:38]Write i2c OK [17:37:38]MH_I2C_Read... [17:37:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:38]Read from MH i2c: E2 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: E2 0E 00 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: E2 0E 00 F2 6B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 08 [17:37:38]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:37:38]wFMCommunicate OK [17:37:38]SAM_PROTO_GetShiftState done [17:37:38]FM_GetShiftState done [17:37:38]opened in 1722211641 [17:37:38]opened+sec_in_day 1722298041 [17:37:38]quantity*price = 40002 [17:37:38]sum+1 = 40003 [17:37:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 228 29.07.2024 17:37 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118852 ФПД: 54129831429486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T173745&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118852&fm=54129831429486&tin=02508201610067®Number=0000000000092660&sum=40000 [17:37:39]StoreToDocumentArchive [17:37:39]shift 434 fd 118852 [17:37:39]save to /storage/0434/doc_00118852 [17:37:39]save last doc name /storage/0434/doc_00118852 to /storage/kkm_last_doc_name [17:37:39]save OK [17:37:39]Clear old archive folders... [17:37:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:37:39]tlvbuf is 01E53F10 [17:37:39]SAM_PROTO_ClearQueue [17:37:39]wFMCommunicate request_size=4 [17:37:39]MH_SAM_APDU [17:37:39]CAPDU: 80 09 00 00 [17:37:39]Write to MH i2c: E2 08 00 FF 6B 80 09 00 00 00 00 00 00 DC [17:37:39]Write i2c OK [17:37:39]MH_I2C_Read... [17:37:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:39]Read from MH i2c: E2 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: E2 03 00 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: E2 03 00 FF 6B 00 90 00 DE [17:37:39]RAPDU: 90 00 [17:37:39]wFMCommunicate OK [17:37:39]SAM_PROTO_ClearQueue done [17:37:39]KKMCreateOFDPacket [17:37:39]OFDProtocolAddRootSTLVToBuf [17:37:39]FM_MakeSignedData [17:37:39]FM_MakeSignedData [17:37:39]SAM_PROTO_SignData [17:37:39]wFMCommunicate request_size=4 [17:37:39]MH_SAM_APDU [17:37:39]CAPDU: 80 0D 01 02 [17:37:39]Write to MH i2c: E2 08 00 00 6C 80 0D 01 02 00 00 00 00 E5 [17:37:39]Write i2c OK [17:37:39]MH_I2C_Read... [17:37:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:40]Read from MH i2c: E2 [17:37:40]MH_I2C_Read... [17:37:40]Read from MH i2c: E2 03 00 [17:37:40]MH_I2C_Read... [17:37:40]Read from MH i2c: E2 03 00 00 6C 00 90 00 E0 [17:37:40]RAPDU: 90 00 [17:37:40]wFMCommunicate OK [17:37:40]wFMCommunicate request_size=255 [17:37:40]MH_SAM_APDU [17:37:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 69 D3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 D0 01 00 35 04 06 00 31 [17:37:40]Write to MH i2c: E2 02 01 01 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 69 D3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 D0 01 00 35 04 06 00 31 00 00 74 [17:37:40]Write i2c OK [17:37:40]MH_I2C_Read... [17:37:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:40]Read from MH i2c: E2 [17:37:40]MH_I2C_Read... [17:37:40]Read from MH i2c: E2 03 00 [17:37:40]MH_I2C_Read... [17:37:40]Read from MH i2c: E2 03 00 01 6C 00 90 00 E1 [17:37:40]RAPDU: 90 00 [17:37:40]wFMCommunicate OK [17:37:40]wFMCommunicate request_size=10 [17:37:40]MH_SAM_APDU [17:37:40]CAPDU: 80 0D 02 02 05 3B 15 5F C5 6E [17:37:40]Write to MH i2c: E2 0D 00 02 6C 80 0D 02 02 05 00 3B 15 5F C5 6E 00 00 D4 [17:37:40]Write i2c OK [17:37:40]MH_I2C_Read... [17:37:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:40]Read from MH i2c: E2 [17:37:40]MH_I2C_Read... [17:37:40]Read from MH i2c: E2 03 00 [17:37:40]MH_I2C_Read... [17:37:40]Read from MH i2c: E2 03 00 02 6C 00 90 00 E2 [17:37:40]RAPDU: 90 00 [17:37:40]wFMCommunicate OK [17:37:40]wFMCommunicate request_size=4 [17:37:40]MH_SAM_APDU [17:37:40]CAPDU: 80 0D 03 02 [17:37:40]Write to MH i2c: E2 08 00 03 6C 80 0D 03 02 00 00 00 00 EA [17:37:40]Write i2c OK [17:37:40]MH_I2C_Read... [17:37:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:40]Read from MH i2c: E2 [17:37:40]MH_I2C_Read... [17:37:40]Read from MH i2c: E2 0B 00 [17:37:40]MH_I2C_Read... [17:37:40]Read from MH i2c: E2 0B 00 03 6C 00 15 2F 42 3E 42 87 7F 54 90 00 4B [17:37:40]RAPDU: 15 2F 42 3E 42 87 7F 54 90 00 [17:37:40]wFMCommunicate OK [17:37:40]SAM_PROTO_SignData done [17:37:40]FM_MakeSignedData done [17:37:40]CreateOFDProtocolMessage [17:37:40]wFMCommunicate request_size=4 [17:37:40]MH_SAM_APDU [17:37:40]CAPDU: 80 11 00 00 [17:37:40]Write to MH i2c: E2 08 00 04 6C 80 11 00 00 00 00 00 00 EA [17:37:40]Write i2c OK [17:37:40]MH_I2C_Read... [17:37:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:40]Read from MH i2c: E2 [17:37:40]MH_I2C_Read... [17:37:40]Read from MH i2c: E2 17 00 [17:37:40]MH_I2C_Read... [17:37:40]Read from MH i2c: E2 17 00 04 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 45 [17:37:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:37:40]wFMCommunicate OK [17:37:40]CreateOFDProtocolMessage done [17:37:40]OFDSenderStorePacket 118852 [17:37:40]StoreOFDPacket docnum=118852 [17:37:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7F 48 07 01 3F E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 69 D3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 D0 01 00 35 04 06 00 31 3B 15 5F C5 6E 15 2F 42 3E 42 87 7F 54 [17:37:40]CheckFolder [17:37:40]dirname=/storage/ofd_packets [17:37:40]CheckFolder done [17:37:40]ProducePacketName [17:37:40]name=ofd_packets/00118852 [17:37:40]NVStorageSaveData ofd_packets/00118852 [17:37:40]File name is /storage/ofd_packets/00118852 [17:37:40]Write 301 bytes [17:37:40]NVStorageSaveData done [17:37:40]OFDSenderStorePacket done [17:37:40]KKMCreateOFDPacket done [17:37:40]NVStorageSaveData kkm_last_timestamp [17:37:40]File name is /storage/kkm_last_timestamp [17:37:40]Write 4 bytes [17:37:40]OFD Sender: Processing packet 118852 [packets to send 86, broken 85] [17:37:40]ProducePacketName [17:37:40]name=ofd_packets/00118852 [17:37:40]OFD Sender: To server: pG, [17:37:40]CommunicateWithHost lk.salyk.kg:30040 [17:37:40]ConnectInit lk.salyk.kg [17:37:40]NVStorageSaveData done [17:37:40]ExternCall_PrintAddStr [17:37:40]wPrintStart [17:37:40]Write to MH i2c: 01 00 00 05 6C 71 [17:37:40]Write i2c OK [17:37:40]MH_I2C_Read... [17:37:40]Read from MH i2c: 01 [17:37:40]MH_I2C_Read... [17:37:40]Read from MH i2c: 01 07 00 [17:37:40]MH_I2C_Read... [17:37:40]Read from MH i2c: 01 07 00 05 6C 00 00 00 00 00 FF 0F 86 [17:37:40]RasterBufferAndPrint [17:37:40]line Счет N : (1)949742 [17:37:40]line ИНН: 02508201610067 [17:37:40]line Контрольно-Кассовый Чек [17:37:40]line ПРОДАЖА [17:37:40]line ТРК (МРК, ГНК) : 41 [17:37:40]line Товар: 2710124130 [17:37:40]line Аи-92-К-4 [17:37:40]line 5.900 * 67.80 [17:37:40]line = 400.02 [17:37:40]line НДС 12% НСП 1% [17:37:40]line > о реализуемом товаре [17:37:40]line ОКРУГЛЕНИЕ: -0.02 [17:37:40]line ИТОГО: 400.00 [17:37:40]line Внесено: 400.00 [17:37:40]line СДАЧА: 0.00 [17:37:40]line НСП 1% : 3.54 [17:37:40]line НДС 12% : 42.48 [17:37:40]line Наличными: 400.00 [17:37:40]line Безнал.: 0.00 [17:37:40]line Место: АЗС № 134 "Партнер Нефть" [17:37:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:37:40]line СНО: Общий режим [17:37:40]line Чек 228 29.07.2024 17:37 [17:37:40]line Смена: 434 ФФД: 1.0 [17:37:40]line ЗНМ: 0300000044 [17:37:40]line РНМ: 0000000000092660 [17:37:40]line Версия ККМ: 001 [17:37:40]line ФМ: 0000000000874939 [17:37:40]line ФД: 118852 [17:37:40]line ФПД: 54129831429486 [17:37:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T173745&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118852&fm=54129831429486&tin=02508201610067®Number=0000000000092660&sum=40000 [17:37:40]Connected sock=11 [17:37:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7F 48 07 01 3F E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 69 D3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 D0 01 00 35 04 06 00 31 3B 15 5F C5 6E 15 2F 42 3E 42 87 7F 54 [17:37:40]written 0, free lines is 4095 [17:37:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D8 08 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 34 39 33 39 10 04 04 00 44 D0 01 00 F4 03 04 00 F6 80 A7 66 B6 04 01 00 00 53 39 1A D9 76 9C 16 3A [17:37:41]CommunicateWithHost err = 0 [17:37:41]CheckOFDResponse [17:37:41]1017 (14) - 77093643461234 [17:37:41]1041 (16) - 0000000000874939 [17:37:41]1040 (4) - 118852 [17:37:41]1012 (4) - 29.07.2024 11:45 [17:37:41]1206 (1) - 0 [17:37:41]OFD Sender: Remove packet 118852 [17:37:41]ProducePacketName [17:37:41]name=ofd_packets/00118852 [17:37:41]NVStorageDeleteData [17:37:41]Write to MH i2c: 01 00 00 2F 6C 9B [17:37:41]Write i2c OK [17:37:41]MH_I2C_Read... [17:37:41]Read from MH i2c: 01 [17:37:41]MH_I2C_Read... [17:37:41]Read from MH i2c: 01 07 00 [17:37:41]MH_I2C_Read... [17:37:41]Read from MH i2c: 01 07 00 2F 6C 00 00 00 00 00 E6 0C 94 [17:37:41]RasterBufferAndPrint [17:37:41]line [17:37:41]line [17:37:41]line [17:37:41]line [17:37:41]line [17:37:41]written 0, free lines is 3311 [17:37:41]MH_Cut [17:37:41]Write to MH i2c: D1 01 00 36 6C 01 74 [17:37:41]Write i2c OK [17:37:41]MH_I2C_Read... [17:37:41]Read from MH i2c: D1 [17:37:41]MH_I2C_Read... [17:37:41]Read from MH i2c: D1 01 00 [17:37:41]MH_I2C_Read... [17:37:41]Read from MH i2c: D1 01 00 36 6C 00 73 [17:37:41]Write to MH i2c: 01 00 00 37 6C A3 [17:37:41]Write i2c OK [17:37:41]MH_I2C_Read... [17:37:41]OFD Sender: No OFD packet to send [17:37:41]*** Cut start [17:37:41]*** Partial cut [17:37:41]*** CUTSNS_PIN = 1 [17:37:42]*** CUTSNS_PIN = 0 [17:37:42]*** Brake cut motor [17:37:42]Read from MH i2c: 01 [17:37:42]MH_I2C_Read... [17:37:42]*** Stop cut motor [17:37:42]*** Cut end [17:37:42]Read from MH i2c: 01 07 00 [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: 01 07 00 37 6C 00 00 00 00 00 FF 0F B8 [17:37:42]process_action close_receipt done [17:37:42]requested_data is exist [17:37:42]produce_requested_data [17:37:42]requested_item fm.sn is exist - process it [17:37:42]wFMCommunicate request_size=4 [17:37:42]MH_SAM_APDU [17:37:42]CAPDU: 80 11 00 00 [17:37:42]Write to MH i2c: E2 08 00 38 6C 80 11 00 00 00 00 00 00 1E [17:37:42]Write i2c OK [17:37:42]MH_I2C_Read... [17:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:42]Read from MH i2c: E2 [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: E2 17 00 [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: E2 17 00 38 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 79 [17:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:37:42]wFMCommunicate OK [17:37:42]requested_item fd.num is exist - process it [17:37:42]SAM_PROTO_GetFieldsCounters [17:37:42]wFMCommunicate request_size=4 [17:37:42]MH_SAM_APDU [17:37:42]CAPDU: 80 13 00 00 [17:37:42]Write to MH i2c: E2 08 00 39 6C 80 13 00 00 00 00 00 00 21 [17:37:42]Write i2c OK [17:37:42]MH_I2C_Read... [17:37:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:42]Read from MH i2c: E2 [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: E2 62 00 [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: E2 62 00 39 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 44 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [17:37: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 44 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:37:42]wFMCommunicate OK [17:37:42]SAM_PROTO_GetFieldsCounters done [17:37:42]requested_item shift.num is exist - process it [17:37:42]requested_item shift.opened is exist - process it [17:37:42]req_shift_opened [17:37:42]FM_GetShiftState [17:37:42]SAM_PROTO_GetShiftState [17:37:42]wFMCommunicate request_size=4 [17:37:42]MH_SAM_APDU [17:37:42]CAPDU: 80 13 01 00 [17:37:42]Write to MH i2c: E2 08 00 3A 6C 80 13 01 00 00 00 00 00 23 [17:37:42]Write i2c OK [17:37:42]MH_I2C_Read... [17:37:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:42]Read from MH i2c: E2 [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: E2 0E 00 [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: E2 0E 00 3A 6C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 51 [17:37:42]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:37:42]wFMCommunicate OK [17:37:42]SAM_PROTO_GetShiftState done [17:37:42]FM_GetShiftState done [17:37:42]req_shift_opened done [17:37:42]requested_item shift.open_date is exist - process it [17:37:42]req_shift_open_date [17:37:42]req_shift_open_date done [17:37:42]produce_requested_data done [17:37:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118852,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [17:37:42]process_action_free close_receipt [17:37:42]json_value_free [17:37:42]json_value_free done [17:37:42]process_json_proto returns [17:37:42]Send response to host [17:37:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118852,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [17:37:42]free response buf [17:37:42]execute_script done [17:37:42]execute_script returns [17:37:42]free content buf [17:37:42]Sock 9.Close socket [17:37:42]Sock 9.Thread stoped [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:56]OFD Sender: No OFD packet to send [17:38:01]OFD Sender: No OFD packet to send [17:38:06]OFD Sender: No OFD packet to send [17:38:11]OFD Sender: No OFD packet to send [17:38:16]OFD Sender: No OFD packet to send [17:38:21]OFD Sender: No OFD packet to send [17:38:26]OFD Sender: No OFD packet to send [17:38:31]OFD Sender: No OFD packet to send [17:38:36]OFD Sender: No OFD packet to send [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [17:39:01]OFD Sender: No OFD packet to send [17:39:06]OFD Sender: No OFD packet to send [17:39:11]OFD Sender: No OFD packet to send [17:39:11]accept exits with 7 [17:39:11]New connection [17:39:11]New thread 3067239780 created [17:39:11]Thread 3067383140 joined [17:39:11]Waiting for new connection... [17:39:11] Sock 7.Parse request [17:39:11]Sock 7.Check first char [17:39:11]Sock 7.First char is OK [17:39:11]request: POST /json_proto HTTP/1.0 [17:39:11]Method: POST [17:39:11]URL: /json_proto [17:39:11]Method is POST - this is cgi request [17:39:11]url: /json_proto [17:39:11]query_string will be loaded in cgi processing [17:39:11]execute_cgi json_proto POST (null) [17:39:11]execute_cgi path=json_proto method=POST [17:39:11]POST find Content-Length [17:39:11]Host: 172.17.45.7:8080 [17:39:11]Content-Length: 677 [17:39:11]Content-Type: application/json [17:39:11] [17:39:11]POST finish read [17:39:11]Found Content-Length = 677 [17:39:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:11]execute_script... [17:39:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:11]POST & json_proto [17:39:11]process_json_proto [17:39:11]json parsed OK: [17:39:11]protocol is kg_v1.0 [17:39:11]action value=close_receipt [17:39:11]process_action close_receipt [17:39:11]cmd_close_receipt [17:39:11]MH_GetDate [17:39:11]Write to MH i2c: F0 00 00 3B 6C 96 [17:39:11]Write i2c OK [17:39:11]MH_I2C_Read... [17:39:11]Read from MH i2c: F0 [17:39:11]MH_I2C_Read... [17:39:11]Read from MH i2c: F0 09 00 [17:39:11]MH_I2C_Read... [17:39:11]Read from MH i2c: F0 09 00 3B 6C 00 C6 D3 A7 66 90 0F 3E 66 88 [17:39:11]GetLastDocTimeStamp 1722274665 [17:39:11]current date 1722274758 [17:39:11]FM_GetShiftState [17:39:11]SAM_PROTO_GetShiftState [17:39:11]wFMCommunicate request_size=4 [17:39:11]MH_SAM_APDU [17:39:11]CAPDU: 80 13 01 00 [17:39:11]Write to MH i2c: E2 08 00 3C 6C 80 13 01 00 00 00 00 00 25 [17:39:11]Write i2c OK [17:39:11]MH_I2C_Read... [17:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:11]Read from MH i2c: E2 [17:39:11]MH_I2C_Read... [17:39:11]Read from MH i2c: E2 0E 00 [17:39:11]MH_I2C_Read... [17:39:11]Read from MH i2c: E2 0E 00 3C 6C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 53 [17:39:11]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:39:11]wFMCommunicate OK [17:39:11]SAM_PROTO_GetShiftState done [17:39:11]FM_GetShiftState done [17:39:11]opened in 1722211641 [17:39:11]opened+sec_in_day 1722298041 [17:39:11]quantity*price = 50036 [17:39:11]sum+1 = 50037 [17:39:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 229 29.07.2024 17:39 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118853 ФПД: 4956090315581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T173918&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118853&fm=4956090315581&tin=02508201610067®Number=0000000000092660&sum=50000 [17:39:12]StoreToDocumentArchive [17:39:12]shift 434 fd 118853 [17:39:12]save to /storage/0434/doc_00118853 [17:39:12]save last doc name /storage/0434/doc_00118853 to /storage/kkm_last_doc_name [17:39:12]save OK [17:39:12]Clear old archive folders... [17:39:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:39:12]tlvbuf is 01E69740 [17:39:12]SAM_PROTO_ClearQueue [17:39:12]wFMCommunicate request_size=4 [17:39:12]MH_SAM_APDU [17:39:12]CAPDU: 80 09 00 00 [17:39:12]Write to MH i2c: E2 08 00 49 6C 80 09 00 00 00 00 00 00 27 [17:39:12]Write i2c OK [17:39:12]MH_I2C_Read... [17:39:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:12]Read from MH i2c: E2 [17:39:12]MH_I2C_Read... [17:39:12]Read from MH i2c: E2 03 00 [17:39:12]MH_I2C_Read... [17:39:12]Read from MH i2c: E2 03 00 49 6C 00 90 00 29 [17:39:12]RAPDU: 90 00 [17:39:12]wFMCommunicate OK [17:39:12]SAM_PROTO_ClearQueue done [17:39:12]KKMCreateOFDPacket [17:39:12]OFDProtocolAddRootSTLVToBuf [17:39:12]FM_MakeSignedData [17:39:12]FM_MakeSignedData [17:39:12]SAM_PROTO_SignData [17:39:12]wFMCommunicate request_size=4 [17:39:12]MH_SAM_APDU [17:39:12]CAPDU: 80 0D 01 02 [17:39:12]Write to MH i2c: E2 08 00 4A 6C 80 0D 01 02 00 00 00 00 2F [17:39:12]Write i2c OK [17:39:12]MH_I2C_Read... [17:39:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:13]Read from MH i2c: E2 [17:39:13]MH_I2C_Read... [17:39:13]Read from MH i2c: E2 03 00 [17:39:13]MH_I2C_Read... [17:39:13]Read from MH i2c: E2 03 00 4A 6C 00 90 00 2A [17:39:13]RAPDU: 90 00 [17:39:13]wFMCommunicate OK [17:39:13]wFMCommunicate request_size=255 [17:39:13]MH_SAM_APDU [17: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 C6 D3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 D0 01 00 35 04 06 00 04 [17:39:13]Write to MH i2c: E2 02 01 4B 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 C6 D3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 D0 01 00 35 04 06 00 04 00 00 0B [17:39:13]Write i2c OK [17:39:13]MH_I2C_Read... [17:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:13]Read from MH i2c: E2 [17:39:13]MH_I2C_Read... [17:39:13]Read from MH i2c: E2 03 00 [17:39:13]MH_I2C_Read... [17:39:13]Read from MH i2c: E2 03 00 4B 6C 00 90 00 2B [17:39:13]RAPDU: 90 00 [17:39:13]wFMCommunicate OK [17:39:13]wFMCommunicate request_size=10 [17:39:13]MH_SAM_APDU [17:39:13]CAPDU: 80 0D 02 02 05 81 EE 00 B3 3D [17:39:13]Write to MH i2c: E2 0D 00 4C 6C 80 0D 02 02 05 00 81 EE 00 B3 3D 00 00 9B [17:39:13]Write i2c OK [17:39:13]MH_I2C_Read... [17:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:13]Read from MH i2c: E2 [17:39:13]MH_I2C_Read... [17:39:13]Read from MH i2c: E2 03 00 [17:39:13]MH_I2C_Read... [17:39:13]Read from MH i2c: E2 03 00 4C 6C 00 90 00 2C [17:39:13]RAPDU: 90 00 [17:39:13]wFMCommunicate OK [17:39:13]wFMCommunicate request_size=4 [17:39:13]MH_SAM_APDU [17:39:13]CAPDU: 80 0D 03 02 [17:39:13]Write to MH i2c: E2 08 00 4D 6C 80 0D 03 02 00 00 00 00 34 [17:39:13]Write i2c OK [17:39:13]MH_I2C_Read... [17:39:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:13]Read from MH i2c: E2 [17:39:13]MH_I2C_Read... [17:39:13]Read from MH i2c: E2 0B 00 [17:39:13]MH_I2C_Read... [17:39:13]Read from MH i2c: E2 0B 00 4D 6C 00 1C F0 31 95 39 74 13 5C 90 00 23 [17:39:13]RAPDU: 1C F0 31 95 39 74 13 5C 90 00 [17:39:13]wFMCommunicate OK [17:39:13]SAM_PROTO_SignData done [17:39:13]FM_MakeSignedData done [17:39:13]CreateOFDProtocolMessage [17:39:13]wFMCommunicate request_size=4 [17:39:13]MH_SAM_APDU [17:39:13]CAPDU: 80 11 00 00 [17:39:13]Write to MH i2c: E2 08 00 4E 6C 80 11 00 00 00 00 00 00 34 [17:39:13]Write i2c OK [17:39:13]MH_I2C_Read... [17:39:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:13]Read from MH i2c: E2 [17:39:13]MH_I2C_Read... [17:39:13]Read from MH i2c: E2 17 00 [17:39:13]MH_I2C_Read... [17:39:13]Read from MH i2c: E2 17 00 4E 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8F [17:39:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:39:13]wFMCommunicate OK [17:39:13]CreateOFDProtocolMessage done [17:39:13]OFDSenderStorePacket 118853 [17:39:13]StoreOFDPacket docnum=118853 [17:39:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5A AB 07 01 48 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 C6 D3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 D0 01 00 35 04 06 00 04 81 EE 00 B3 3D 1C F0 31 95 39 74 13 5C [17:39:13]CheckFolder [17:39:13]dirname=/storage/ofd_packets [17:39:13]CheckFolder done [17:39:13]ProducePacketName [17:39:13]name=ofd_packets/00118853 [17:39:13]NVStorageSaveData ofd_packets/00118853 [17:39:13]File name is /storage/ofd_packets/00118853 [17:39:13]Write 301 bytes [17:39:13]NVStorageSaveData done [17:39:13]OFDSenderStorePacket done [17:39:13]KKMCreateOFDPacket done [17:39:13]NVStorageSaveData kkm_last_timestamp [17:39:13]File name is /storage/kkm_last_timestamp [17:39:13]Write 4 bytes [17:39:13]NVStorageSaveData done [17:39:13]ExternCall_PrintAddStr [17:39:13]wPrintStart [17:39:13]Write to MH i2c: 01 00 00 4F 6C BB [17:39:13]Write i2c OK [17:39:13]MH_I2C_Read... [17:39:13]Read from MH i2c: 01 [17:39:13]MH_I2C_Read... [17:39:13]Read from MH i2c: 01 07 00 [17:39:13]MH_I2C_Read... [17:39:13]Read from MH i2c: 01 07 00 4F 6C 00 00 00 00 00 FF 0F D0 [17:39:13]RasterBufferAndPrint [17:39:13]line Счет N : (1)949743 [17:39:13]line ИНН: 02508201610067 [17:39:13]line Контрольно-Кассовый Чек [17:39:13]line ПРОДАЖА [17:39:13]line ТРК (МРК, ГНК) : 51 [17:39:13]line Товар: 2710124130 [17:39:13]line Аи-92-К-4 [17:39:13]line 7.380 * 67.80 [17:39:13]line = 500.36 [17:39:13]line НДС 12% НСП 1% [17:39:13]line > о реализуемом товаре [17:39:13]line ОКРУГЛЕНИЕ: -0.36 [17:39:13]line ИТОГО: 500.00 [17:39:13]line Внесено: 500.00 [17:39:13]line СДАЧА: 0.00 [17:39:13]line НСП 1% : 4.43 [17:39:13]line НДС 12% : 53.14 [17:39:13]line Наличными: 500.00 [17:39:13]line Безнал.: 0.00 [17:39:13]line Место: АЗС № 134 "Партнер Нефть" [17:39:13]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:39:13]line СНО: Общий режим [17:39:13]line Чек 229 29.07.2024 17:39 [17:39:13]line Смена: 434 ФФД: 1.0 [17:39:13]line ЗНМ: 0300000044 [17:39:13]line РНМ: 0000000000092660 [17:39:13]line Версия ККМ: 001 [17:39:13]line ФМ: 0000000000874939 [17:39:13]line ФД: 118853 [17:39:13]line ФПД: 4956090315581 [17:39:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T173918&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118853&fm=4956090315581&tin=02508201610067®Number=0000000000092660&sum=50000 [17:39:13]OFD Sender: Processing packet 118853 [packets to send 86, broken 85] [17:39:13]ProducePacketName [17:39:13]name=ofd_packets/00118853 [17:39:13]OFD Sender: To server: pG, [17:39:13]CommunicateWithHost lk.salyk.kg:30040 [17:39:13]ConnectInit lk.salyk.kg [17:39:13]written 0, free lines is 4095 [17:39:13]Connected sock=10 [17:39:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5A AB 07 01 48 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 C6 D3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 D0 01 00 35 04 06 00 04 81 EE 00 B3 3D 1C F0 31 95 39 74 13 5C [17:39:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1D D3 47 00 B6 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 34 39 33 39 10 04 04 00 45 D0 01 00 F4 03 04 00 53 81 A7 66 B6 04 01 00 00 CF 90 06 9E C2 EF 2D EC [17:39:14]CommunicateWithHost err = 0 [17:39:14]CheckOFDResponse [17:39:14]1017 (14) - 77093643461234 [17:39:14]1041 (16) - 0000000000874939 [17:39:14]1040 (4) - 118853 [17:39:14]1012 (4) - 29.07.2024 11:47 [17:39:14]1206 (1) - 0 [17:39:14]OFD Sender: Remove packet 118853 [17:39:14]ProducePacketName [17:39:14]name=ofd_packets/00118853 [17:39:14]NVStorageDeleteData [17:39:14]Write to MH i2c: 01 00 00 79 6C E5 [17:39:14]Write i2c OK [17:39:14]MH_I2C_Read... [17:39:14]Read from MH i2c: 01 [17:39:14]MH_I2C_Read... [17:39:14]Read from MH i2c: 01 07 00 [17:39:14]MH_I2C_Read... [17:39:14]Read from MH i2c: 01 07 00 79 6C 00 00 00 00 00 EB 0C E3 [17:39:14]RasterBufferAndPrint [17:39:14]line [17:39:14]line [17:39:14]line [17:39:14]line [17:39:14]line [17:39:14]written 0, free lines is 3314 [17:39:14]MH_Cut [17:39:14]Write to MH i2c: D1 01 00 80 6C 01 BE [17:39:14]Write i2c OK [17:39:14]MH_I2C_Read... [17:39:14]Read from MH i2c: D1 [17:39:14]MH_I2C_Read... [17:39:14]Read from MH i2c: D1 01 00 [17:39:14]MH_I2C_Read... [17:39:14]Read from MH i2c: D1 01 00 80 6C 00 BD [17:39:14]Write to MH i2c: 01 00 00 81 6C ED [17:39:14]Write i2c OK [17:39:14]MH_I2C_Read... [17:39:14]OFD Sender: No OFD packet to send [17:39:14]*** Cut start [17:39:14]*** Partial cut [17:39:14]*** CUTSNS_PIN = 1 [17:39:15]*** CUTSNS_PIN = 0 [17:39:15]*** Brake cut motor [17:39:15]Read from MH i2c: 01 [17:39:15]MH_I2C_Read... [17:39:15]*** Stop cut motor [17:39:15]*** Cut end [17:39:15]Read from MH i2c: 01 07 00 [17:39:15]MH_I2C_Read... [17:39:15]Read from MH i2c: 01 07 00 81 6C 00 00 00 00 00 FF 0F 02 [17:39:15]process_action close_receipt done [17:39:15]requested_data is exist [17:39:15]produce_requested_data [17:39:15]requested_item fm.sn is exist - process it [17:39:15]wFMCommunicate request_size=4 [17:39:15]MH_SAM_APDU [17:39:15]CAPDU: 80 11 00 00 [17:39:15]Write to MH i2c: E2 08 00 82 6C 80 11 00 00 00 00 00 00 68 [17:39:15]Write i2c OK [17:39:15]MH_I2C_Read... [17:39:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:15]Read from MH i2c: E2 [17:39:15]MH_I2C_Read... [17:39:15]Read from MH i2c: E2 17 00 [17:39:15]MH_I2C_Read... [17:39:15]Read from MH i2c: E2 17 00 82 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C3 [17:39:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:39:15]wFMCommunicate OK [17:39:15]requested_item fd.num is exist - process it [17:39:15]SAM_PROTO_GetFieldsCounters [17:39:15]wFMCommunicate request_size=4 [17:39:15]MH_SAM_APDU [17:39:15]CAPDU: 80 13 00 00 [17:39:15]Write to MH i2c: E2 08 00 83 6C 80 13 00 00 00 00 00 00 6B [17:39:15]Write i2c OK [17:39:15]MH_I2C_Read... [17:39:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:15]Read from MH i2c: E2 [17:39:15]MH_I2C_Read... [17:39:15]Read from MH i2c: E2 62 00 [17:39:15]MH_I2C_Read... [17:39:15]Read from MH i2c: E2 62 00 83 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 45 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [17:39: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 45 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:15]wFMCommunicate OK [17:39:15]SAM_PROTO_GetFieldsCounters done [17:39:15]requested_item shift.num is exist - process it [17:39:15]requested_item shift.opened is exist - process it [17:39:15]req_shift_opened [17:39:15]FM_GetShiftState [17:39:15]SAM_PROTO_GetShiftState [17:39:15]wFMCommunicate request_size=4 [17:39:15]MH_SAM_APDU [17:39:15]CAPDU: 80 13 01 00 [17:39:15]Write to MH i2c: E2 08 00 84 6C 80 13 01 00 00 00 00 00 6D [17:39:15]Write i2c OK [17:39:15]MH_I2C_Read... [17:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:15]Read from MH i2c: E2 [17:39:15]MH_I2C_Read... [17:39:15]Read from MH i2c: E2 0E 00 [17:39:15]MH_I2C_Read... [17:39:15]Read from MH i2c: E2 0E 00 84 6C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 9B [17:39:15]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:39:15]wFMCommunicate OK [17:39:15]SAM_PROTO_GetShiftState done [17:39:15]FM_GetShiftState done [17:39:15]req_shift_opened done [17:39:15]requested_item shift.open_date is exist - process it [17:39:15]req_shift_open_date [17:39:15]req_shift_open_date done [17:39:15]produce_requested_data done [17:39:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118853,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [17:39:15]process_action_free close_receipt [17:39:15]json_value_free [17:39:15]json_value_free done [17:39:15]process_json_proto returns [17:39:15]Send response to host [17:39:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118853,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [17:39:15]free response buf [17:39:15]execute_script done [17:39:15]execute_script returns [17:39:15]free content buf [17:39:15]Sock 7.Close socket [17:39:15]Sock 7.Thread stoped [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:59]OFD Sender: No OFD packet to send [17:40:04]OFD Sender: No OFD packet to send [17:40:09]OFD Sender: No OFD packet to send [17:40:14]OFD Sender: No OFD packet to send [17:40:19]OFD Sender: No OFD packet to send [17:40:24]OFD Sender: No OFD packet to send [17:40:29]OFD Sender: No OFD packet to send [17:40:34]OFD Sender: No OFD packet to send [17:40:39]OFD Sender: No OFD packet to send [17:40:44]OFD Sender: No OFD packet to send [17:40:49]OFD Sender: No OFD packet to send [17:40:54]OFD Sender: No OFD packet to send [17:40:59]OFD Sender: No OFD packet to send [17:41:04]OFD Sender: No OFD packet to send [17:41:09]OFD Sender: No OFD packet to send [17:41:14]OFD Sender: No OFD packet to send [17:41:19]OFD Sender: No OFD packet to send [17:41:24]OFD Sender: No OFD packet to send [17:41:29]OFD Sender: No OFD packet to send [17:41:34]OFD Sender: No OFD packet to send [17:41:39]OFD Sender: No OFD packet to send [17:41:44]OFD Sender: No OFD packet to send [17:41:49]OFD Sender: No OFD packet to send [17:41:54]OFD Sender: No OFD packet to send [17:41:59]OFD Sender: No OFD packet to send [17:42:04]OFD Sender: No OFD packet to send [17:42:09]OFD Sender: No OFD packet to send [17:42:14]OFD Sender: No OFD packet to send [17:42:14]accept exits with 9 [17:42:14]New connection [17:42:14]New thread 3067383140 created [17:42:14]Thread 3067239780 joined [17:42:14]Waiting for new connection... [17:42:14] Sock 9.Parse request [17:42:14]Sock 9.Check first char [17:42:14]Sock 9.First char is OK [17:42:14]request: POST /json_proto HTTP/1.0 [17:42:14]Method: POST [17:42:14]URL: /json_proto [17:42:14]Method is POST - this is cgi request [17:42:14]url: /json_proto [17:42:14]query_string will be loaded in cgi processing [17:42:14]execute_cgi json_proto POST (null) [17:42:14]execute_cgi path=json_proto method=POST [17:42:14]POST find Content-Length [17:42:14]Host: 172.17.45.7:8080 [17:42:14]Content-Length: 679 [17:42:14]Content-Type: application/json [17:42:14] [17:42:14]POST finish read [17:42:14]Found Content-Length = 679 [17:42:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:14]execute_script... [17:42:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:14]POST & json_proto [17:42:14]process_json_proto [17:42:14]json parsed OK: [17:42:14]protocol is kg_v1.0 [17:42:14]action value=close_receipt [17:42:14]process_action close_receipt [17:42:14]cmd_close_receipt [17:42:14]MH_GetDate [17:42:14]Write to MH i2c: F0 00 00 85 6C E0 [17:42:14]Write i2c OK [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: F0 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: F0 09 00 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: F0 09 00 85 6C 00 7D D4 A7 66 90 0F 3E 66 8A [17:42:14]GetLastDocTimeStamp 1722274758 [17:42:14]current date 1722274941 [17:42:14]FM_GetShiftState [17:42:14]SAM_PROTO_GetShiftState [17:42:14]wFMCommunicate request_size=4 [17:42:14]MH_SAM_APDU [17:42:14]CAPDU: 80 13 01 00 [17:42:14]Write to MH i2c: E2 08 00 86 6C 80 13 01 00 00 00 00 00 6F [17:42:14]Write i2c OK [17:42:14]MH_I2C_Read... [17:42:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:14]Read from MH i2c: E2 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: E2 0E 00 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: E2 0E 00 86 6C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 9D [17:42:14]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:42:14]wFMCommunicate OK [17:42:14]SAM_PROTO_GetShiftState done [17:42:14]FM_GetShiftState done [17:42:14]opened in 1722211641 [17:42:14]opened+sec_in_day 1722298041 [17:42:14]quantity*price = 100050 [17:42:14]sum+1 = 100052 [17:42:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 230 29.07.2024 17:42 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118854 ФПД: 185160383842778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T174221&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118854&fm=185160383842778&tin=02508201610067®Number=0000000000092660&sum=100000 [17:42:16]StoreToDocumentArchive [17:42:16]shift 434 fd 118854 [17:42:16]save to /storage/0434/doc_00118854 [17:42:16]save last doc name /storage/0434/doc_00118854 to /storage/kkm_last_doc_name [17:42:16]save OK [17:42:16]Clear old archive folders... [17:42:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:42:16]tlvbuf is 01FD8CE0 [17:42:16]SAM_PROTO_ClearQueue [17:42:16]wFMCommunicate request_size=4 [17:42:16]MH_SAM_APDU [17:42:16]CAPDU: 80 09 00 00 [17:42:16]Write to MH i2c: E2 08 00 93 6C 80 09 00 00 00 00 00 00 71 [17:42:16]Write i2c OK [17:42:16]MH_I2C_Read... [17:42:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:16]Read from MH i2c: E2 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 03 00 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 03 00 93 6C 00 90 00 73 [17:42:16]RAPDU: 90 00 [17:42:16]wFMCommunicate OK [17:42:16]SAM_PROTO_ClearQueue done [17:42:16]KKMCreateOFDPacket [17:42:16]OFDProtocolAddRootSTLVToBuf [17:42:16]FM_MakeSignedData [17:42:16]FM_MakeSignedData [17:42:16]SAM_PROTO_SignData [17:42:16]wFMCommunicate request_size=4 [17:42:16]MH_SAM_APDU [17:42:16]CAPDU: 80 0D 01 02 [17:42:16]Write to MH i2c: E2 08 00 94 6C 80 0D 01 02 00 00 00 00 79 [17:42:16]Write i2c OK [17:42:16]MH_I2C_Read... [17:42:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:16]Read from MH i2c: E2 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 03 00 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 03 00 94 6C 00 90 00 74 [17:42:16]RAPDU: 90 00 [17:42:16]wFMCommunicate OK [17:42:16]wFMCommunicate request_size=255 [17:42:16]MH_SAM_APDU [17:42:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 7D D4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 D0 01 00 35 04 06 00 A8 67 02 E7 [17:42:16]Write to MH i2c: E2 02 01 95 6C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 7D D4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 D0 01 00 35 04 06 00 A8 67 02 E7 00 00 0F [17:42:16]Write i2c OK [17:42:16]MH_I2C_Read... [17:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:16]Read from MH i2c: E2 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 03 00 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 03 00 95 6C 00 90 00 75 [17:42:16]RAPDU: 90 00 [17:42:16]wFMCommunicate OK [17:42:16]wFMCommunicate request_size=7 [17:42:16]MH_SAM_APDU [17:42:16]CAPDU: 80 0D 02 02 02 C9 DA [17:42:16]Write to MH i2c: E2 0A 00 96 6C 80 0D 02 02 02 00 C9 DA 00 00 23 [17:42:16]Write i2c OK [17:42:16]MH_I2C_Read... [17:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:16]Read from MH i2c: E2 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 03 00 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 03 00 96 6C 00 90 00 76 [17:42:16]RAPDU: 90 00 [17:42:16]wFMCommunicate OK [17:42:16]wFMCommunicate request_size=4 [17:42:16]MH_SAM_APDU [17:42:16]CAPDU: 80 0D 03 02 [17:42:16]Write to MH i2c: E2 08 00 97 6C 80 0D 03 02 00 00 00 00 7E [17:42:16]Write i2c OK [17:42:16]MH_I2C_Read... [17:42:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:16]Read from MH i2c: E2 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 0B 00 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 0B 00 97 6C 00 82 23 EC 44 11 17 25 02 90 00 A3 [17:42:16]RAPDU: 82 23 EC 44 11 17 25 02 90 00 [17:42:16]wFMCommunicate OK [17:42:16]SAM_PROTO_SignData done [17:42:16]FM_MakeSignedData done [17:42:16]CreateOFDProtocolMessage [17:42:16]wFMCommunicate request_size=4 [17:42:16]MH_SAM_APDU [17:42:16]CAPDU: 80 11 00 00 [17:42:16]Write to MH i2c: E2 08 00 98 6C 80 11 00 00 00 00 00 00 7E [17:42:16]Write i2c OK [17:42:16]MH_I2C_Read... [17:42:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:16]Read from MH i2c: E2 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 17 00 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 17 00 98 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D9 [17:42:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:42:16]wFMCommunicate OK [17:42:16]CreateOFDProtocolMessage done [17:42:16]OFDSenderStorePacket 118854 [17:42:16]StoreOFDPacket docnum=118854 [17:42:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C8 3F 04 01 37 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 7D D4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 D0 01 00 35 04 06 00 A8 67 02 E7 C9 DA 82 23 EC 44 11 17 25 02 [17:42:16]CheckFolder [17:42:16]dirname=/storage/ofd_packets [17:42:16]CheckFolder done [17:42:16]ProducePacketName [17:42:16]name=ofd_packets/00118854 [17:42:16]NVStorageSaveData ofd_packets/00118854 [17:42:16]File name is /storage/ofd_packets/00118854 [17:42:16]Write 298 bytes [17:42:16]NVStorageSaveData done [17:42:16]OFDSenderStorePacket done [17:42:16]KKMCreateOFDPacket done [17:42:16]NVStorageSaveData kkm_last_timestamp [17:42:16]File name is /storage/kkm_last_timestamp [17:42:16]Write 4 bytes [17:42:16]NVStorageSaveData done [17:42:16]ExternCall_PrintAddStr [17:42:16]wPrintStart [17:42:16]Write to MH i2c: 01 00 00 99 6C 05 [17:42:16]Write i2c OK [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: 01 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: 01 07 00 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: 01 07 00 99 6C 00 00 00 00 00 FF 0F 1A [17:42:16]RasterBufferAndPrint [17:42:16]line Счет N : (1)949744 [17:42:16]line ИНН: 02508201610067 [17:42:16]line Контрольно-Кассовый Чек [17:42:16]line ПРОДАЖА [17:42:16]line ТРК (МРК, ГНК) : 34 [17:42:16]line Товар: 2710194800 [17:42:16]line ДТ-К-5 [17:42:16]line 13.130 * 76.20 [17:42:16]line = 1000.51 [17:42:16]line НДС 12% НСП 1% [17:42:16]line > о реализуемом товаре [17:42:16]line ОКРУГЛЕНИЕ: -0.51 [17:42:16]line ИТОГО: 1000.00 [17:42:16]line Внесено: 1000.00 [17:42:16]line СДАЧА: 0.00 [17:42:16]line НСП 1% : 8.85 [17:42:16]line НДС 12% : 106.25 [17:42:16]line Наличными: 1000.00 [17:42:16]line Безнал.: 0.00 [17:42:16]line Место: АЗС № 134 "Партнер Нефть" [17:42:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:42:16]line СНО: Общий режим [17:42:16]line Чек 230 29.07.2024 17:42 [17:42:16]line Смена: 434 ФФД: 1.0 [17:42:16]line ЗНМ: 0300000044 [17:42:16]line РНМ: 0000000000092660 [17:42:16]line Версия ККМ: 001 [17:42:16]line ФМ: 0000000000874939 [17:42:16]line ФД: 118854 [17:42:16]line ФПД: 185160383842778 [17:42:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T174221&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118854&fm=185160383842778&tin=02508201610067®Number=0000000000092660&sum=100000 [17:42:16]OFD Sender: Processing packet 118854 [packets to send 86, broken 85] [17:42:16]ProducePacketName [17:42:16]name=ofd_packets/00118854 [17:42:16]OFD Sender: To server: pG, [17:42:16]CommunicateWithHost lk.salyk.kg:30040 [17:42:16]ConnectInit lk.salyk.kg [17:42:16]written 0, free lines is 4095 [17:42:16]Connected sock=10 [17:42:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C8 3F 04 01 37 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 7D D4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 D0 01 00 35 04 06 00 A8 67 02 E7 C9 DA 82 23 EC 44 11 17 25 02 [17:42:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 57 28 47 00 41 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 34 39 33 39 10 04 04 00 46 D0 01 00 F4 03 04 00 0A 82 A7 66 B6 04 01 00 00 18 F1 B2 36 DB E3 08 30 [17:42:17]CommunicateWithHost err = 0 [17:42:17]CheckOFDResponse [17:42:17]1017 (14) - 77093643461234 [17:42:17]1041 (16) - 0000000000874939 [17:42:17]1040 (4) - 118854 [17:42:17]1012 (4) - 29.07.2024 11:50 [17:42:17]1206 (1) - 0 [17:42:17]OFD Sender: Remove packet 118854 [17:42:17]ProducePacketName [17:42:17]name=ofd_packets/00118854 [17:42:17]NVStorageDeleteData [17:42:17]Write to MH i2c: 01 00 00 C3 6C 2F [17:42:17]Write i2c OK [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: 01 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: 01 07 00 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: 01 07 00 C3 6C 00 00 00 00 00 E6 0C 28 [17:42:17]RasterBufferAndPrint [17:42:17]line [17:42:17]line [17:42:17]line [17:42:17]line [17:42:17]line [17:42:17]written 0, free lines is 3307 [17:42:17]MH_Cut [17:42:17]Write to MH i2c: D1 01 00 CA 6C 01 08 [17:42:17]Write i2c OK [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: D1 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: D1 01 00 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: D1 01 00 CA 6C 00 07 [17:42:17]Write to MH i2c: 01 00 00 CB 6C 37 [17:42:17]Write i2c OK [17:42:17]MH_I2C_Read... [17:42:17]OFD Sender: No OFD packet to send [17:42:18]*** Cut start [17:42:18]*** Partial cut [17:42:18]*** CUTSNS_PIN = 1 [17:42:18]*** CUTSNS_PIN = 0 [17:42:18]*** Brake cut motor [17:42:18]Read from MH i2c: 01 [17:42:18]MH_I2C_Read... [17:42:18]*** Stop cut motor [17:42:18]*** Cut end [17:42:18]Read from MH i2c: 01 07 00 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: 01 07 00 CB 6C 00 00 00 00 00 FF 0F 4C [17:42:18]process_action close_receipt done [17:42:18]requested_data is exist [17:42:18]produce_requested_data [17:42:18]requested_item fm.sn is exist - process it [17:42:18]wFMCommunicate request_size=4 [17:42:18]MH_SAM_APDU [17:42:18]CAPDU: 80 11 00 00 [17:42:18]Write to MH i2c: E2 08 00 CC 6C 80 11 00 00 00 00 00 00 B2 [17:42:18]Write i2c OK [17:42:18]MH_I2C_Read... [17:42:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:18]Read from MH i2c: E2 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 17 00 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 17 00 CC 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0D [17:42:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:42:18]wFMCommunicate OK [17:42:18]requested_item fd.num is exist - process it [17:42:18]SAM_PROTO_GetFieldsCounters [17:42:18]wFMCommunicate request_size=4 [17:42:18]MH_SAM_APDU [17:42:18]CAPDU: 80 13 00 00 [17:42:18]Write to MH i2c: E2 08 00 CD 6C 80 13 00 00 00 00 00 00 B5 [17:42:18]Write i2c OK [17:42:18]MH_I2C_Read... [17:42:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:18]Read from MH i2c: E2 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 62 00 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 62 00 CD 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 46 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [17:42: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 46 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:42:18]wFMCommunicate OK [17:42:18]SAM_PROTO_GetFieldsCounters done [17:42:18]requested_item shift.num is exist - process it [17:42:18]requested_item shift.opened is exist - process it [17:42:18]req_shift_opened [17:42:18]FM_GetShiftState [17:42:18]SAM_PROTO_GetShiftState [17:42:18]wFMCommunicate request_size=4 [17:42:18]MH_SAM_APDU [17:42:18]CAPDU: 80 13 01 00 [17:42:18]Write to MH i2c: E2 08 00 CE 6C 80 13 01 00 00 00 00 00 B7 [17:42:18]Write i2c OK [17:42:18]MH_I2C_Read... [17:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:18]Read from MH i2c: E2 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 0E 00 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 0E 00 CE 6C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E5 [17:42:18]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:42:18]wFMCommunicate OK [17:42:18]SAM_PROTO_GetShiftState done [17:42:18]FM_GetShiftState done [17:42:18]req_shift_opened done [17:42:18]requested_item shift.open_date is exist - process it [17:42:18]req_shift_open_date [17:42:18]req_shift_open_date done [17:42:18]produce_requested_data done [17:42:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118854,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [17:42:18]process_action_free close_receipt [17:42:18]json_value_free [17:42:18]json_value_free done [17:42:18]process_json_proto returns [17:42:18]Send response to host [17:42:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118854,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [17:42:18]free response buf [17:42:18]execute_script done [17:42:18]execute_script returns [17:42:18]free content buf [17:42:18]Sock 9.Close socket [17:42:18]Sock 9.Thread stoped [17:42:22]OFD Sender: No OFD packet to send [17:42:27]OFD Sender: No OFD packet to send [17:42:32]OFD Sender: No OFD packet to send [17:42:37]OFD Sender: No OFD packet to send [17:42:42]OFD Sender: No OFD packet to send [17:42:47]OFD Sender: No OFD packet to send [17:42:52]OFD Sender: No OFD packet to send [17:42:57]OFD Sender: No OFD packet to send [17:43:00]accept exits with 7 [17:43:00]New connection [17:43:00]New thread 3067239780 created [17:43:00]Thread 3067383140 joined [17:43:00]Waiting for new connection... [17:43:00] Sock 7.Parse request [17:43:00]Sock 7.Check first char [17:43:00]Sock 7.First char is OK [17:43:00]request: POST /json_proto HTTP/1.0 [17:43:00]Method: POST [17:43:00]URL: /json_proto [17:43:00]Method is POST - this is cgi request [17:43:00]url: /json_proto [17:43:00]query_string will be loaded in cgi processing [17:43:00]execute_cgi json_proto POST (null) [17:43:00]execute_cgi path=json_proto method=POST [17:43:00]POST find Content-Length [17:43:00]Host: 172.17.45.7:8080 [17:43:00]Content-Length: 819 [17:43:00]Content-Type: application/json [17:43:00] [17:43:00]POST finish read [17:43:00]Found Content-Length = 819 [17:43:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:00]execute_script... [17:43: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)949745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:00]POST & json_proto [17:43:00]process_json_proto [17:43:00]json parsed OK: [17:43:00]protocol is kg_v1.0 [17:43:00]action value=close_receipt [17:43:00]process_action close_receipt [17:43:00]cmd_close_receipt [17:43:00]MH_GetDate [17:43:00]Write to MH i2c: F0 00 00 CF 6C 2A [17:43:00]Write i2c OK [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: F0 [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: F0 09 00 [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: F0 09 00 CF 6C 00 AB D4 A7 66 90 0F 3E 66 02 [17:43:00]GetLastDocTimeStamp 1722274941 [17:43:00]current date 1722274987 [17:43:00]FM_GetShiftState [17:43:00]SAM_PROTO_GetShiftState [17:43:00]wFMCommunicate request_size=4 [17:43:00]MH_SAM_APDU [17:43:00]CAPDU: 80 13 01 00 [17:43:00]Write to MH i2c: E2 08 00 D0 6C 80 13 01 00 00 00 00 00 B9 [17:43:00]Write i2c OK [17:43:00]MH_I2C_Read... [17:43:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:00]Read from MH i2c: E2 [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: E2 0E 00 [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: E2 0E 00 D0 6C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E7 [17:43:00]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:43:00]wFMCommunicate OK [17:43:00]SAM_PROTO_GetShiftState done [17:43:00]FM_GetShiftState done [17:43:00]opened in 1722211641 [17:43:00]opened+sec_in_day 1722298041 [17:43:00]quantity*price = 200025 [17:43:00]sum+1 = 200026 [17:43:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 231 29.07.2024 17:43 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118855 ФПД: 239866931393681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T174307&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118855&fm=239866931393681&tin=02508201610067®Number=0000000000092660&sum=200000 [17:43:01]StoreToDocumentArchive [17:43:01]shift 434 fd 118855 [17:43:01]save to /storage/0434/doc_00118855 [17:43:01]save last doc name /storage/0434/doc_00118855 to /storage/kkm_last_doc_name [17:43:01]save OK [17:43:01]Clear old archive folders... [17:43:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:43:01]tlvbuf is 0203E210 [17:43:01]SAM_PROTO_ClearQueue [17:43:01]wFMCommunicate request_size=4 [17:43:01]MH_SAM_APDU [17:43:01]CAPDU: 80 09 00 00 [17:43:01]Write to MH i2c: E2 08 00 DD 6C 80 09 00 00 00 00 00 00 BB [17:43:01]Write i2c OK [17:43:01]MH_I2C_Read... [17:43:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:01]Read from MH i2c: E2 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: E2 03 00 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: E2 03 00 DD 6C 00 90 00 BD [17:43:01]RAPDU: 90 00 [17:43:01]wFMCommunicate OK [17:43:01]SAM_PROTO_ClearQueue done [17:43:01]KKMCreateOFDPacket [17:43:01]OFDProtocolAddRootSTLVToBuf [17:43:01]FM_MakeSignedData [17:43:01]FM_MakeSignedData [17:43:01]SAM_PROTO_SignData [17:43:01]wFMCommunicate request_size=4 [17:43:01]MH_SAM_APDU [17:43:01]CAPDU: 80 0D 01 02 [17:43:01]Write to MH i2c: E2 08 00 DE 6C 80 0D 01 02 00 00 00 00 C3 [17:43:01]Write i2c OK [17:43:01]MH_I2C_Read... [17:43:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:01]Read from MH i2c: E2 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: E2 03 00 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: E2 03 00 DE 6C 00 90 00 BE [17:43:01]RAPDU: 90 00 [17:43:01]wFMCommunicate OK [17:43:01]wFMCommunicate request_size=255 [17:43:01]MH_SAM_APDU [17:43:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 AB D4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 D0 01 00 35 04 06 00 DA 28 5F 3D [17:43:01]Write to MH i2c: E2 02 01 DF 6C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 AB D4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 D0 01 00 35 04 06 00 DA 28 5F 3D 00 00 1D [17:43:01]Write i2c OK [17:43:01]MH_I2C_Read... [17:43:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:02]Read from MH i2c: E2 [17:43:02]MH_I2C_Read... [17:43:02]Read from MH i2c: E2 03 00 [17:43:02]MH_I2C_Read... [17:43:02]Read from MH i2c: E2 03 00 DF 6C 00 90 00 BF [17:43:02]RAPDU: 90 00 [17:43:02]wFMCommunicate OK [17:43:02]wFMCommunicate request_size=7 [17:43:02]MH_SAM_APDU [17:43:02]CAPDU: 80 0D 02 02 02 34 91 [17:43:02]Write to MH i2c: E2 0A 00 E0 6C 80 0D 02 02 02 00 34 91 00 00 8F [17:43:02]Write i2c OK [17:43:02]MH_I2C_Read... [17:43:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:02]Read from MH i2c: E2 [17:43:02]MH_I2C_Read... [17:43:02]Read from MH i2c: E2 03 00 [17:43:02]MH_I2C_Read... [17:43:02]Read from MH i2c: E2 03 00 E0 6C 00 90 00 C0 [17:43:02]RAPDU: 90 00 [17:43:02]wFMCommunicate OK [17:43:02]wFMCommunicate request_size=4 [17:43:02]MH_SAM_APDU [17:43:02]CAPDU: 80 0D 03 02 [17:43:02]Write to MH i2c: E2 08 00 E1 6C 80 0D 03 02 00 00 00 00 C8 [17:43:02]Write i2c OK [17:43:02]MH_I2C_Read... [17:43:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:02]Read from MH i2c: E2 [17:43:02]MH_I2C_Read... [17:43:02]Read from MH i2c: E2 0B 00 [17:43:02]MH_I2C_Read... [17:43:02]Read from MH i2c: E2 0B 00 E1 6C 00 B7 89 A9 03 15 9A 8F 0D 90 00 00 [17:43:02]RAPDU: B7 89 A9 03 15 9A 8F 0D 90 00 [17:43:02]wFMCommunicate OK [17:43:02]SAM_PROTO_SignData done [17:43:02]FM_MakeSignedData done [17:43:02]CreateOFDProtocolMessage [17:43:02]wFMCommunicate request_size=4 [17:43:02]MH_SAM_APDU [17:43:02]CAPDU: 80 11 00 00 [17:43:02]Write to MH i2c: E2 08 00 E2 6C 80 11 00 00 00 00 00 00 C8 [17:43:02]Write i2c OK [17:43:02]MH_I2C_Read... [17:43:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:02]Read from MH i2c: E2 [17:43:02]MH_I2C_Read... [17:43:02]Read from MH i2c: E2 17 00 [17:43:02]MH_I2C_Read... [17:43:02]Read from MH i2c: E2 17 00 E2 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 23 [17:43:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:43:02]wFMCommunicate OK [17:43:02]CreateOFDProtocolMessage done [17:43:02]OFDSenderStorePacket 118855 [17:43:02]StoreOFDPacket docnum=118855 [17:43:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C0 9D 04 01 4C E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 AB D4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 D0 01 00 35 04 06 00 DA 28 5F 3D 34 91 B7 89 A9 03 15 9A 8F 0D [17:43:02]CheckFolder [17:43:02]dirname=/storage/ofd_packets [17:43:02]CheckFolder done [17:43:02]ProducePacketName [17:43:02]name=ofd_packets/00118855 [17:43:02]NVStorageSaveData ofd_packets/00118855 [17:43:02]File name is /storage/ofd_packets/00118855 [17:43:02]Write 298 bytes [17:43:02]NVStorageSaveData done [17:43:02]OFDSenderStorePacket done [17:43:02]KKMCreateOFDPacket done [17:43:02]NVStorageSaveData kkm_last_timestamp [17:43:02]File name is /storage/kkm_last_timestamp [17:43:02]Write 4 bytes [17:43:02]NVStorageSaveData done [17:43:02]ExternCall_PrintAddStr [17:43:02]wPrintStart [17:43:02]Write to MH i2c: 01 00 00 E3 6C 4F [17:43:02]Write i2c OK [17:43:02]MH_I2C_Read... [17:43:02]Read from MH i2c: 01 [17:43:02]MH_I2C_Read... [17:43:02]Read from MH i2c: 01 07 00 [17:43:02]MH_I2C_Read... [17:43:02]Read from MH i2c: 01 07 00 E3 6C 00 00 00 00 00 FF 0F 64 [17:43:02]RasterBufferAndPrint [17:43:02]line Счет N : (1)949745 [17:43:02]line ИНН: 02508201610067 [17:43:02]line Контрольно-Кассовый Чек [17:43:02]line ПРОДАЖА [17:43:02]line ТРК (МРК, ГНК) : 11 [17:43:02]line Товар: 2710194800 [17:43:02]line ДТ-К-5 [17:43:02]line 26.250 * 76.20 [17:43:02]line = 2000.25 [17:43:02]line НДС 12% НСП 1% [17:43:02]line > о реализуемом товаре [17:43:02]line ОКРУГЛЕНИЕ: -0.25 [17:43:02]line ИТОГО: 2000.00 [17:43:02]line НСП 1% : 17.70 [17:43:02]line НДС 12% : 212.42 [17:43:02]line Наличными: 0.00 [17:43:02]line Безнал.: 2000.00 [17:43:02]line Место: АЗС № 134 "Партнер Нефть" [17:43:02]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:43:02]line СНО: Общий режим [17:43:02]line Чек 231 29.07.2024 17:43 [17:43:02]line Смена: 434 ФФД: 1.0 [17:43:02]line ЗНМ: 0300000044 [17:43:02]line РНМ: 0000000000092660 [17:43:02]line Версия ККМ: 001 [17:43:02]line Платежная система: O! деньги [17:43:02]line ФМ: 0000000000874939 [17:43:02]line ФД: 118855 [17:43:02]line ФПД: 239866931393681 [17:43:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T174307&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118855&fm=239866931393681&tin=02508201610067®Number=0000000000092660&sum=200000 [17:43:02]OFD Sender: Processing packet 118855 [packets to send 86, broken 85] [17:43:02]ProducePacketName [17:43:02]name=ofd_packets/00118855 [17:43:02]OFD Sender: To server: pG, [17:43:02]CommunicateWithHost lk.salyk.kg:30040 [17:43:02]ConnectInit lk.salyk.kg [17:43:02]written 0, free lines is 4095 [17:43:02]Connected sock=10 [17:43:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C0 9D 04 01 4C E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 AB D4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 D0 01 00 35 04 06 00 DA 28 5F 3D 34 91 B7 89 A9 03 15 9A 8F 0D [17:43:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1C 96 47 00 59 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 34 39 33 39 10 04 04 00 47 D0 01 00 F4 03 04 00 38 82 A7 66 B6 04 01 00 00 67 67 CD 2F 60 D2 EC 63 [17:43:02]CommunicateWithHost err = 0 [17:43:02]CheckOFDResponse [17:43:02]1017 (14) - 77093643461234 [17:43:02]1041 (16) - 0000000000874939 [17:43:02]1040 (4) - 118855 [17:43:02]1012 (4) - 29.07.2024 11:51 [17:43:02]1206 (1) - 0 [17:43:02]OFD Sender: Remove packet 118855 [17:43:02]ProducePacketName [17:43:02]name=ofd_packets/00118855 [17:43:02]NVStorageDeleteData [17:43:03]Write to MH i2c: 01 00 00 0D 6D 7A [17:43:03]Write i2c OK [17:43:03]MH_I2C_Read... [17:43:03]Read from MH i2c: 01 [17:43:03]MH_I2C_Read... [17:43:03]Read from MH i2c: 01 07 00 [17:43:03]MH_I2C_Read... [17:43:03]Read from MH i2c: 01 07 00 0D 6D 00 00 00 00 00 E9 0C 76 [17:43:03]RasterBufferAndPrint [17:43:03]line [17:43:03]line [17:43:03]line [17:43:03]line [17:43:03]line [17:43:03]written 0, free lines is 3311 [17:43:03]MH_Cut [17:43:03]Write to MH i2c: D1 01 00 14 6D 01 53 [17:43:03]Write i2c OK [17:43:03]MH_I2C_Read... [17:43:03]Read from MH i2c: D1 [17:43:03]MH_I2C_Read... [17:43:03]Read from MH i2c: D1 01 00 [17:43:03]MH_I2C_Read... [17:43:03]Read from MH i2c: D1 01 00 14 6D 00 52 [17:43:03]Write to MH i2c: 01 00 00 15 6D 82 [17:43:03]Write i2c OK [17:43:03]MH_I2C_Read... [17:43:03]OFD Sender: No OFD packet to send [17:43:03]*** Cut start [17:43:03]*** Partial cut [17:43:03]*** CUTSNS_PIN = 1 [17:43:03]*** CUTSNS_PIN = 0 [17:43:04]*** Brake cut motor [17:43:04]Read from MH i2c: 01 [17:43:04]MH_I2C_Read... [17:43:04]*** Stop cut motor [17:43:04]*** Cut end [17:43:04]Read from MH i2c: 01 07 00 [17:43:04]MH_I2C_Read... [17:43:04]Read from MH i2c: 01 07 00 15 6D 00 00 00 00 00 FF 0F 97 [17:43:04]process_action close_receipt done [17:43:04]requested_data is exist [17:43:04]produce_requested_data [17:43:04]requested_item fm.sn is exist - process it [17:43:04]wFMCommunicate request_size=4 [17:43:04]MH_SAM_APDU [17:43:04]CAPDU: 80 11 00 00 [17:43:04]Write to MH i2c: E2 08 00 16 6D 80 11 00 00 00 00 00 00 FD [17:43:04]Write i2c OK [17:43:04]MH_I2C_Read... [17:43:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:04]Read from MH i2c: E2 [17:43:04]MH_I2C_Read... [17:43:04]Read from MH i2c: E2 17 00 [17:43:04]MH_I2C_Read... [17:43:04]Read from MH i2c: E2 17 00 16 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 58 [17:43:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:43:04]wFMCommunicate OK [17:43:04]requested_item fd.num is exist - process it [17:43:04]SAM_PROTO_GetFieldsCounters [17:43:04]wFMCommunicate request_size=4 [17:43:04]MH_SAM_APDU [17:43:04]CAPDU: 80 13 00 00 [17:43:04]Write to MH i2c: E2 08 00 17 6D 80 13 00 00 00 00 00 00 00 [17:43:04]Write i2c OK [17:43:04]MH_I2C_Read... [17:43:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:04]Read from MH i2c: E2 [17:43:04]MH_I2C_Read... [17:43:04]Read from MH i2c: E2 62 00 [17:43:04]MH_I2C_Read... [17:43:04]Read from MH i2c: E2 62 00 17 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 47 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [17:43: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 47 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:04]wFMCommunicate OK [17:43:04]SAM_PROTO_GetFieldsCounters done [17:43:04]requested_item shift.num is exist - process it [17:43:04]requested_item shift.opened is exist - process it [17:43:04]req_shift_opened [17:43:04]FM_GetShiftState [17:43:04]SAM_PROTO_GetShiftState [17:43:04]wFMCommunicate request_size=4 [17:43:04]MH_SAM_APDU [17:43:04]CAPDU: 80 13 01 00 [17:43:04]Write to MH i2c: E2 08 00 18 6D 80 13 01 00 00 00 00 00 02 [17:43:04]Write i2c OK [17:43:04]MH_I2C_Read... [17:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:04]Read from MH i2c: E2 [17:43:04]MH_I2C_Read... [17:43:04]Read from MH i2c: E2 0E 00 [17:43:04]MH_I2C_Read... [17:43:04]Read from MH i2c: E2 0E 00 18 6D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 30 [17:43:04]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:43:04]wFMCommunicate OK [17:43:04]SAM_PROTO_GetShiftState done [17:43:04]FM_GetShiftState done [17:43:04]req_shift_opened done [17:43:04]requested_item shift.open_date is exist - process it [17:43:04]req_shift_open_date [17:43:04]req_shift_open_date done [17:43:04]produce_requested_data done [17:43:04]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118855,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [17:43:04]process_action_free close_receipt [17:43:04]json_value_free [17:43:04]json_value_free done [17:43:04]process_json_proto returns [17:43:04]Send response to host [17:43:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118855,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [17:43:04]free response buf [17:43:04]execute_script done [17:43:04]execute_script returns [17:43:04]free content buf [17:43:04]Sock 7.Close socket [17:43:04]Sock 7.Thread stoped [17:43:08]OFD Sender: No OFD packet to send [17:43:13]OFD Sender: No OFD packet to send [17:43:18]OFD Sender: No OFD packet to send [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:43:58]OFD Sender: No OFD packet to send [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:18]OFD Sender: No OFD packet to send [17:44:23]OFD Sender: No OFD packet to send [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:05]accept exits with 9 [17:45:05]New connection [17:45:05]New thread 3067383140 created [17:45:05]Thread 3067239780 joined [17:45:05]Waiting for new connection... [17:45:05] Sock 9.Parse request [17:45:05]Sock 9.Check first char [17:45:05]Sock 9.First char is OK [17:45:05]request: POST /json_proto HTTP/1.0 [17:45:05]Method: POST [17:45:05]URL: /json_proto [17:45:05]Method is POST - this is cgi request [17:45:05]url: /json_proto [17:45:05]query_string will be loaded in cgi processing [17:45:05]execute_cgi json_proto POST (null) [17:45:05]execute_cgi path=json_proto method=POST [17:45:05]POST find Content-Length [17:45:05]Host: 172.17.45.7:8080 [17:45:05]Content-Length: 677 [17:45:05]Content-Type: application/json [17:45:05] [17:45:05]POST finish read [17:45:05]Found Content-Length = 677 [17:45:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:05]execute_script... [17:45: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)949746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:05]POST & json_proto [17:45:05]process_json_proto [17:45:05]json parsed OK: [17:45:05]protocol is kg_v1.0 [17:45:05]action value=close_receipt [17:45:05]process_action close_receipt [17:45:05]cmd_close_receipt [17:45:05]MH_GetDate [17:45:05]Write to MH i2c: F0 00 00 19 6D 75 [17:45:05]Write i2c OK [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: F0 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: F0 09 00 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: F0 09 00 19 6D 00 28 D5 A7 66 90 0F 3E 66 CB [17:45:05]GetLastDocTimeStamp 1722274987 [17:45:05]current date 1722275112 [17:45:05]FM_GetShiftState [17:45:05]SAM_PROTO_GetShiftState [17:45:05]wFMCommunicate request_size=4 [17:45:05]MH_SAM_APDU [17:45:05]CAPDU: 80 13 01 00 [17:45:05]Write to MH i2c: E2 08 00 1A 6D 80 13 01 00 00 00 00 00 04 [17:45:05]Write i2c OK [17:45:05]MH_I2C_Read... [17:45:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:05]Read from MH i2c: E2 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: E2 0E 00 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: E2 0E 00 1A 6D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 32 [17:45:05]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:45:05]wFMCommunicate OK [17:45:05]SAM_PROTO_GetShiftState done [17:45:05]FM_GetShiftState done [17:45:05]opened in 1722211641 [17:45:05]opened+sec_in_day 1722298041 [17:45:05]quantity*price = 50036 [17:45:05]sum+1 = 50037 [17:45:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 232 29.07.2024 17:45 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118856 ФПД: 3005463169610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T174512&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118856&fm=3005463169610&tin=02508201610067®Number=0000000000092660&sum=50000 [17:45:06]StoreToDocumentArchive [17:45:06]shift 434 fd 118856 [17:45:06]save to /storage/0434/doc_00118856 [17:45:06]save last doc name /storage/0434/doc_00118856 to /storage/kkm_last_doc_name [17:45:06]save OK [17:45:06]Clear old archive folders... [17:45:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:45:06]tlvbuf is 01E805D0 [17:45:06]SAM_PROTO_ClearQueue [17:45:06]wFMCommunicate request_size=4 [17:45:06]MH_SAM_APDU [17:45:06]CAPDU: 80 09 00 00 [17:45:06]Write to MH i2c: E2 08 00 27 6D 80 09 00 00 00 00 00 00 06 [17:45:06]Write i2c OK [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: E2 [17:45:06]MH_I2C_Read... [17:45:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:06]Read from MH i2c: E2 03 00 [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: E2 03 00 27 6D 00 90 00 08 [17:45:06]RAPDU: 90 00 [17:45:06]wFMCommunicate OK [17:45:06]SAM_PROTO_ClearQueue done [17:45:06]KKMCreateOFDPacket [17:45:06]OFDProtocolAddRootSTLVToBuf [17:45:06]FM_MakeSignedData [17:45:06]FM_MakeSignedData [17:45:06]SAM_PROTO_SignData [17:45:06]wFMCommunicate request_size=4 [17:45:06]MH_SAM_APDU [17:45:06]CAPDU: 80 0D 01 02 [17:45:06]Write to MH i2c: E2 08 00 28 6D 80 0D 01 02 00 00 00 00 0E [17:45:06]Write i2c OK [17:45:06]MH_I2C_Read... [17:45:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:06]Read from MH i2c: E2 [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: E2 03 00 [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: E2 03 00 28 6D 00 90 00 09 [17:45:06]RAPDU: 90 00 [17:45:06]wFMCommunicate OK [17:45:06]wFMCommunicate request_size=255 [17:45:06]MH_SAM_APDU [17:45:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 28 D5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 D0 01 00 35 04 06 00 02 [17:45:06]Write to MH i2c: E2 02 01 29 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 28 D5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 D0 01 00 35 04 06 00 02 00 00 52 [17:45:06]Write i2c OK [17:45:06]MH_I2C_Read... [17:45:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:07]Read from MH i2c: E2 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 03 00 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 03 00 29 6D 00 90 00 0A [17:45:07]RAPDU: 90 00 [17:45:07]wFMCommunicate OK [17:45:07]wFMCommunicate request_size=10 [17:45:07]MH_SAM_APDU [17:45:07]CAPDU: 80 0D 02 02 05 BB C3 90 8A 4A [17:45:07]Write to MH i2c: E2 0D 00 2A 6D 80 0D 02 02 05 00 BB C3 90 8A 4A 00 00 FD [17:45:07]Write i2c OK [17:45:07]MH_I2C_Read... [17:45:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:07]Read from MH i2c: E2 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 03 00 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 03 00 2A 6D 00 90 00 0B [17:45:07]RAPDU: 90 00 [17:45:07]wFMCommunicate OK [17:45:07]wFMCommunicate request_size=4 [17:45:07]MH_SAM_APDU [17:45:07]CAPDU: 80 0D 03 02 [17:45:07]Write to MH i2c: E2 08 00 2B 6D 80 0D 03 02 00 00 00 00 13 [17:45:07]Write i2c OK [17:45:07]MH_I2C_Read... [17:45:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:07]Read from MH i2c: E2 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 0B 00 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 0B 00 2B 6D 00 00 6D 86 A9 A9 64 3B 89 90 00 81 [17:45:07]RAPDU: 00 6D 86 A9 A9 64 3B 89 90 00 [17:45:07]wFMCommunicate OK [17:45:07]SAM_PROTO_SignData done [17:45:07]FM_MakeSignedData done [17:45:07]CreateOFDProtocolMessage [17:45:07]wFMCommunicate request_size=4 [17:45:07]MH_SAM_APDU [17:45:07]CAPDU: 80 11 00 00 [17:45:07]Write to MH i2c: E2 08 00 2C 6D 80 11 00 00 00 00 00 00 13 [17:45:07]Write i2c OK [17:45:07]MH_I2C_Read... [17:45:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:07]Read from MH i2c: E2 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 17 00 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 17 00 2C 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6E [17:45:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:45:07]wFMCommunicate OK [17:45:07]CreateOFDProtocolMessage done [17:45:07]OFDSenderStorePacket 118856 [17:45:07]StoreOFDPacket docnum=118856 [17:45:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C2 77 07 01 8D 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 28 D5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 D0 01 00 35 04 06 00 02 BB C3 90 8A 4A 00 6D 86 A9 A9 64 3B 89 [17:45:07]CheckFolder [17:45:07]dirname=/storage/ofd_packets [17:45:07]CheckFolder done [17:45:07]ProducePacketName [17:45:07]name=ofd_packets/00118856 [17:45:07]NVStorageSaveData ofd_packets/00118856 [17:45:07]File name is /storage/ofd_packets/00118856 [17:45:07]Write 301 bytes [17:45:07]NVStorageSaveData done [17:45:07]OFDSenderStorePacket done [17:45:07]KKMCreateOFDPacket done [17:45:07]NVStorageSaveData kkm_last_timestamp [17:45:07]File name is /storage/kkm_last_timestamp [17:45:07]Write 4 bytes [17:45:07]NVStorageSaveData done [17:45:07]ExternCall_PrintAddStr [17:45:07]wPrintStart [17:45:07]Write to MH i2c: 01 00 00 2D 6D 9A [17:45:07]Write i2c OK [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: 01 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: 01 07 00 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: 01 07 00 2D 6D 00 00 00 00 00 FF 0F AF [17:45:07]RasterBufferAndPrint [17:45:07]line Счет N : (1)949746 [17:45:07]line ИНН: 02508201610067 [17:45:07]line Контрольно-Кассовый Чек [17:45:07]line ПРОДАЖА [17:45:07]line ТРК (МРК, ГНК) : 41 [17:45:07]line Товар: 2710124130 [17:45:07]line Аи-92-К-4 [17:45:07]line 7.380 * 67.80 [17:45:07]line = 500.36 [17:45:07]line НДС 12% НСП 1% [17:45:07]line > о реализуемом товаре [17:45:07]line ОКРУГЛЕНИЕ: -0.36 [17:45:07]line ИТОГО: 500.00 [17:45:07]line Внесено: 500.00 [17:45:07]line СДАЧА: 0.00 [17:45:07]line НСП 1% : 4.43 [17:45:07]line НДС 12% : 53.14 [17:45:07]line Наличными: 500.00 [17:45:07]line Безнал.: 0.00 [17:45:07]line Место: АЗС № 134 "Партнер Нефть" [17:45:07]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:45:07]line СНО: Общий режим [17:45:07]line Чек 232 29.07.2024 17:45 [17:45:07]line Смена: 434 ФФД: 1.0 [17:45:07]line ЗНМ: 0300000044 [17:45:07]line РНМ: 0000000000092660 [17:45:07]line Версия ККМ: 001 [17:45:07]line ФМ: 0000000000874939 [17:45:07]line ФД: 118856 [17:45:07]line ФПД: 3005463169610 [17:45:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T174512&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118856&fm=3005463169610&tin=02508201610067®Number=0000000000092660&sum=50000 [17:45:07]OFD Sender: Processing packet 118856 [packets to send 86, broken 85] [17:45:07]ProducePacketName [17:45:07]name=ofd_packets/00118856 [17:45:07]OFD Sender: To server: pG, [17:45:07]CommunicateWithHost lk.salyk.kg:30040 [17:45:07]ConnectInit lk.salyk.kg [17:45:07]written 0, free lines is 4095 [17:45:07]Connected sock=10 [17:45:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C2 77 07 01 8D 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 28 D5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 D0 01 00 35 04 06 00 02 BB C3 90 8A 4A 00 6D 86 A9 A9 64 3B 89 [17:45:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 DD C7 47 00 A6 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 D0 01 00 F4 03 04 00 B5 82 A7 66 B6 04 01 00 00 79 D7 C5 F0 2F A4 04 0E [17:45:07]CommunicateWithHost err = 0 [17:45:07]CheckOFDResponse [17:45:07]1017 (14) - 77093643461234 [17:45:07]1041 (16) - 0000000000874939 [17:45:07]1040 (4) - 118856 [17:45:07]1012 (4) - 29.07.2024 11:53 [17:45:07]1206 (1) - 0 [17:45:07]OFD Sender: Remove packet 118856 [17:45:07]ProducePacketName [17:45:07]name=ofd_packets/00118856 [17:45:07]NVStorageDeleteData [17:45:08]Write to MH i2c: 01 00 00 57 6D C4 [17:45:08]Write i2c OK [17:45:08]MH_I2C_Read... [17:45:08]Read from MH i2c: 01 [17:45:08]MH_I2C_Read... [17:45:08]Read from MH i2c: 01 07 00 [17:45:08]MH_I2C_Read... [17:45:08]Read from MH i2c: 01 07 00 57 6D 00 00 00 00 00 EE 0C C5 [17:45:08]RasterBufferAndPrint [17:45:08]line [17:45:08]line [17:45:08]line [17:45:08]line [17:45:08]line [17:45:08]written 0, free lines is 3316 [17:45:08]MH_Cut [17:45:08]Write to MH i2c: D1 01 00 5E 6D 01 9D [17:45:08]Write i2c OK [17:45:08]MH_I2C_Read... [17:45:08]Read from MH i2c: D1 [17:45:08]MH_I2C_Read... [17:45:08]Read from MH i2c: D1 01 00 [17:45:08]MH_I2C_Read... [17:45:08]Read from MH i2c: D1 01 00 5E 6D 00 9C [17:45:08]Write to MH i2c: 01 00 00 5F 6D CC [17:45:08]Write i2c OK [17:45:08]MH_I2C_Read... [17:45:08]OFD Sender: No OFD packet to send [17:45:08]*** Cut start [17:45:08]*** Partial cut [17:45:08]*** CUTSNS_PIN = 1 [17:45:08]*** CUTSNS_PIN = 0 [17:45:09]*** Brake cut motor [17:45:09]Read from MH i2c: 01 [17:45:09]MH_I2C_Read... [17:45:09]*** Stop cut motor [17:45:09]*** Cut end [17:45:09]Read from MH i2c: 01 07 00 [17:45:09]MH_I2C_Read... [17:45:09]Read from MH i2c: 01 07 00 5F 6D 00 00 00 00 00 FF 0F E1 [17:45:09]process_action close_receipt done [17:45:09]requested_data is exist [17:45:09]produce_requested_data [17:45:09]requested_item fm.sn is exist - process it [17:45:09]wFMCommunicate request_size=4 [17:45:09]MH_SAM_APDU [17:45:09]CAPDU: 80 11 00 00 [17:45:09]Write to MH i2c: E2 08 00 60 6D 80 11 00 00 00 00 00 00 47 [17:45:09]Write i2c OK [17:45:09]MH_I2C_Read... [17:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:09]Read from MH i2c: E2 [17:45:09]MH_I2C_Read... [17:45:09]Read from MH i2c: E2 17 00 [17:45:09]MH_I2C_Read... [17:45:09]Read from MH i2c: E2 17 00 60 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A2 [17:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:45:09]wFMCommunicate OK [17:45:09]requested_item fd.num is exist - process it [17:45:09]SAM_PROTO_GetFieldsCounters [17:45:09]wFMCommunicate request_size=4 [17:45:09]MH_SAM_APDU [17:45:09]CAPDU: 80 13 00 00 [17:45:09]Write to MH i2c: E2 08 00 61 6D 80 13 00 00 00 00 00 00 4A [17:45:09]Write i2c OK [17:45:09]MH_I2C_Read... [17:45:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:09]Read from MH i2c: E2 [17:45:09]MH_I2C_Read... [17:45:09]Read from MH i2c: E2 62 00 [17:45:09]MH_I2C_Read... [17:45:09]Read from MH i2c: E2 62 00 61 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 48 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [17:45: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 48 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:09]wFMCommunicate OK [17:45:09]SAM_PROTO_GetFieldsCounters done [17:45:09]requested_item shift.num is exist - process it [17:45:09]requested_item shift.opened is exist - process it [17:45:09]req_shift_opened [17:45:09]FM_GetShiftState [17:45:09]SAM_PROTO_GetShiftState [17:45:09]wFMCommunicate request_size=4 [17:45:09]MH_SAM_APDU [17:45:09]CAPDU: 80 13 01 00 [17:45:09]Write to MH i2c: E2 08 00 62 6D 80 13 01 00 00 00 00 00 4C [17:45:09]Write i2c OK [17:45:09]MH_I2C_Read... [17:45:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:09]Read from MH i2c: E2 [17:45:09]MH_I2C_Read... [17:45:09]Read from MH i2c: E2 0E 00 [17:45:09]MH_I2C_Read... [17:45:09]Read from MH i2c: E2 0E 00 62 6D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 7A [17:45:09]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:45:09]wFMCommunicate OK [17:45:09]SAM_PROTO_GetShiftState done [17:45:09]FM_GetShiftState done [17:45:09]req_shift_opened done [17:45:09]requested_item shift.open_date is exist - process it [17:45:09]req_shift_open_date [17:45:09]req_shift_open_date done [17:45:09]produce_requested_data done [17:45:09]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118856,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [17:45:09]process_action_free close_receipt [17:45:09]json_value_free [17:45:09]json_value_free done [17:45:09]process_json_proto returns [17:45:09]Send response to host [17:45:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118856,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [17:45:09]free response buf [17:45:09]execute_script done [17:45:09]execute_script returns [17:45:09]free content buf [17:45:09]Sock 9.Close socket [17:45:09]Sock 9.Thread stoped [17:45:13]OFD Sender: No OFD packet to send [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:33]OFD Sender: No OFD packet to send [17:45:38]OFD Sender: No OFD packet to send [17:45:43]OFD Sender: No OFD packet to send [17:45:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:08]OFD Sender: No OFD packet to send [17:46:13]OFD Sender: No OFD packet to send [17:46:18]OFD Sender: No OFD packet to send [17:46:23]OFD Sender: No OFD packet to send [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]OFD Sender: No OFD packet to send [17:47:13]OFD Sender: No OFD packet to send [17:47:18]OFD Sender: No OFD packet to send [17:47:23]OFD Sender: No OFD packet to send [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:38]OFD Sender: No OFD packet to send [17:47:43]OFD Sender: No OFD packet to send [17:47:45]accept exits with 7 [17:47:45]New connection [17:47:45]New thread 3067239780 created [17:47:45]Thread 3067383140 joined [17:47:45]Waiting for new connection... [17:47:45] Sock 7.Parse request [17:47:45]Sock 7.Check first char [17:47:45]Sock 7.First char is OK [17:47:45]request: POST /json_proto HTTP/1.0 [17:47:45]Method: POST [17:47:45]URL: /json_proto [17:47:45]Method is POST - this is cgi request [17:47:45]url: /json_proto [17:47:45]query_string will be loaded in cgi processing [17:47:45]execute_cgi json_proto POST (null) [17:47:45]execute_cgi path=json_proto method=POST [17:47:45]POST find Content-Length [17:47:45]Host: 172.17.45.7:8080 [17:47:45]Content-Length: 677 [17:47:45]Content-Type: application/json [17:47:45] [17:47:45]POST finish read [17:47:45]Found Content-Length = 677 [17:47:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:45]execute_script... [17: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)949747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:45]POST & json_proto [17:47:45]process_json_proto [17:47:45]json parsed OK: [17:47:45]protocol is kg_v1.0 [17:47:45]action value=close_receipt [17:47:45]process_action close_receipt [17:47:45]cmd_close_receipt [17:47:45]MH_GetDate [17:47:45]Write to MH i2c: F0 00 00 63 6D BF [17:47:45]Write i2c OK [17:47:45]MH_I2C_Read... [17:47:45]Read from MH i2c: F0 [17:47:45]MH_I2C_Read... [17:47:45]Read from MH i2c: F0 09 00 [17:47:45]MH_I2C_Read... [17:47:45]Read from MH i2c: F0 09 00 63 6D 00 C8 D5 A7 66 90 0F 3E 66 B5 [17:47:45]GetLastDocTimeStamp 1722275112 [17:47:45]current date 1722275272 [17:47:45]FM_GetShiftState [17:47:45]SAM_PROTO_GetShiftState [17:47:45]wFMCommunicate request_size=4 [17:47:45]MH_SAM_APDU [17:47:45]CAPDU: 80 13 01 00 [17:47:45]Write to MH i2c: E2 08 00 64 6D 80 13 01 00 00 00 00 00 4E [17:47:45]Write i2c OK [17:47:45]MH_I2C_Read... [17:47:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:46]Read from MH i2c: E2 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 0E 00 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 0E 00 64 6D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 7C [17:47:46]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:47:46]wFMCommunicate OK [17:47:46]SAM_PROTO_GetShiftState done [17:47:46]FM_GetShiftState done [17:47:46]opened in 1722211641 [17:47:46]opened+sec_in_day 1722298041 [17:47:46]quantity*price = 10034 [17:47:46]sum+1 = 10035 [17:47:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 233 29.07.2024 17:47 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118857 ФПД: 98511831949776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T174752&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118857&fm=98511831949776&tin=02508201610067®Number=0000000000092660&sum=10000 [17:47:47]StoreToDocumentArchive [17:47:47]shift 434 fd 118857 [17:47:47]save to /storage/0434/doc_00118857 [17:47:47]save last doc name /storage/0434/doc_00118857 to /storage/kkm_last_doc_name [17:47:47]save OK [17:47:47]Clear old archive folders... [17:47:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:47]tlvbuf is 01EC03F0 [17:47:47]SAM_PROTO_ClearQueue [17:47:47]wFMCommunicate request_size=4 [17:47:47]MH_SAM_APDU [17:47:47]CAPDU: 80 09 00 00 [17:47:47]Write to MH i2c: E2 08 00 71 6D 80 09 00 00 00 00 00 00 50 [17:47:47]Write i2c OK [17:47:47]MH_I2C_Read... [17:47:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:47]Read from MH i2c: E2 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: E2 03 00 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: E2 03 00 71 6D 00 90 00 52 [17:47:47]RAPDU: 90 00 [17:47:47]wFMCommunicate OK [17:47:47]SAM_PROTO_ClearQueue done [17:47:47]KKMCreateOFDPacket [17:47:47]OFDProtocolAddRootSTLVToBuf [17:47:47]FM_MakeSignedData [17:47:47]FM_MakeSignedData [17:47:47]SAM_PROTO_SignData [17:47:47]wFMCommunicate request_size=4 [17:47:47]MH_SAM_APDU [17:47:47]CAPDU: 80 0D 01 02 [17:47:47]Write to MH i2c: E2 08 00 72 6D 80 0D 01 02 00 00 00 00 58 [17:47:47]Write i2c OK [17:47:47]MH_I2C_Read... [17:47:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:47]Read from MH i2c: E2 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: E2 03 00 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: E2 03 00 72 6D 00 90 00 53 [17:47:47]RAPDU: 90 00 [17:47:47]wFMCommunicate OK [17:47:47]wFMCommunicate request_size=255 [17:47:47]MH_SAM_APDU [17:47:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 C8 D5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 D0 01 00 35 04 06 00 59 [17:47:47]Write to MH i2c: E2 02 01 73 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 C8 D5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 D0 01 00 35 04 06 00 59 00 00 D1 [17:47:47]Write i2c OK [17:47:47]MH_I2C_Read... [17:47:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:47]Read from MH i2c: E2 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: E2 03 00 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: E2 03 00 73 6D 00 90 00 54 [17:47:47]RAPDU: 90 00 [17:47:47]wFMCommunicate OK [17:47:47]wFMCommunicate request_size=10 [17:47:47]MH_SAM_APDU [17:47:47]CAPDU: 80 0D 02 02 05 98 92 BF E1 D0 [17:47:47]Write to MH i2c: E2 0D 00 74 6D 80 0D 02 02 05 00 98 92 BF E1 D0 00 00 FF [17:47:47]Write i2c OK [17:47:47]MH_I2C_Read... [17:47:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:47]Read from MH i2c: E2 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: E2 03 00 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: E2 03 00 74 6D 00 90 00 55 [17:47:47]RAPDU: 90 00 [17:47:47]wFMCommunicate OK [17:47:47]wFMCommunicate request_size=4 [17:47:47]MH_SAM_APDU [17:47:47]CAPDU: 80 0D 03 02 [17:47:47]Write to MH i2c: E2 08 00 75 6D 80 0D 03 02 00 00 00 00 5D [17:47:47]Write i2c OK [17:47:47]MH_I2C_Read... [17:47:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:47]Read from MH i2c: E2 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: E2 0B 00 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: E2 0B 00 75 6D 00 25 50 3C 59 28 D5 5D F6 90 00 B8 [17:47:47]RAPDU: 25 50 3C 59 28 D5 5D F6 90 00 [17:47:47]wFMCommunicate OK [17:47:47]SAM_PROTO_SignData done [17:47:47]FM_MakeSignedData done [17:47:47]CreateOFDProtocolMessage [17:47:47]wFMCommunicate request_size=4 [17:47:47]MH_SAM_APDU [17:47:47]CAPDU: 80 11 00 00 [17:47:47]Write to MH i2c: E2 08 00 76 6D 80 11 00 00 00 00 00 00 5D [17:47:47]Write i2c OK [17:47:47]MH_I2C_Read... [17:47:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:47]Read from MH i2c: E2 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: E2 17 00 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: E2 17 00 76 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B8 [17:47:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:47:47]wFMCommunicate OK [17:47:47]CreateOFDProtocolMessage done [17:47:47]OFDSenderStorePacket 118857 [17:47:47]StoreOFDPacket docnum=118857 [17:47:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 54 56 07 01 64 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 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 C8 D5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 D0 01 00 35 04 06 00 59 98 92 BF E1 D0 25 50 3C 59 28 D5 5D F6 [17:47:47]CheckFolder [17:47:47]dirname=/storage/ofd_packets [17:47:47]CheckFolder done [17:47:47]ProducePacketName [17:47:47]name=ofd_packets/00118857 [17:47:47]NVStorageSaveData ofd_packets/00118857 [17:47:47]File name is /storage/ofd_packets/00118857 [17:47:47]Write 301 bytes [17:47:47]NVStorageSaveData done [17:47:47]OFDSenderStorePacket done [17:47:47]KKMCreateOFDPacket done [17:47:47]NVStorageSaveData kkm_last_timestamp [17:47:47]File name is /storage/kkm_last_timestamp [17:47:47]Write 4 bytes [17:47:47]NVStorageSaveData done [17:47:47]ExternCall_PrintAddStr [17:47:47]wPrintStart [17:47:47]Write to MH i2c: 01 00 00 77 6D E4 [17:47:47]Write i2c OK [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: 01 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: 01 07 00 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: 01 07 00 77 6D 00 00 00 00 00 FF 0F F9 [17:47:47]RasterBufferAndPrint [17:47:47]line Счет N : (1)949747 [17:47:47]line ИНН: 02508201610067 [17:47:47]line Контрольно-Кассовый Чек [17:47:47]line ПРОДАЖА [17:47:47]line ТРК (МРК, ГНК) : 61 [17:47:47]line Товар: 2710124130 [17:47:47]line Аи-92-К-4 [17:47:47]line 1.480 * 67.80 [17:47:47]line = 100.34 [17:47:47]line НДС 12% НСП 1% [17:47:47]line > о реализуемом товаре [17:47:47]line ОКРУГЛЕНИЕ: -0.34 [17:47:47]line ИТОГО: 100.00 [17:47:47]line Внесено: 100.00 [17:47:47]line СДАЧА: 0.00 [17:47:47]line НСП 1% : 0.89 [17:47:47]line НДС 12% : 10.66 [17:47:47]line Наличными: 100.00 [17:47:47]line Безнал.: 0.00 [17:47:47]line Место: АЗС № 134 "Партнер Нефть" [17:47:47]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:47:47]line СНО: Общий режим [17:47:47]line Чек 233 29.07.2024 17:47 [17:47:47]line Смена: 434 ФФД: 1.0 [17:47:47]line ЗНМ: 0300000044 [17:47:47]line РНМ: 0000000000092660 [17:47:47]line Версия ККМ: 001 [17:47:47]line ФМ: 0000000000874939 [17:47:47]line ФД: 118857 [17:47:47]line ФПД: 98511831949776 [17:47:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T174752&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118857&fm=98511831949776&tin=02508201610067®Number=0000000000092660&sum=10000 [17:47:47]written 0, free lines is 4095 [17:47:47]OFD Sender: Processing packet 118857 [packets to send 86, broken 85] [17:47:47]ProducePacketName [17:47:47]name=ofd_packets/00118857 [17:47:47]OFD Sender: To server: pG, [17:47:47]CommunicateWithHost lk.salyk.kg:30040 [17:47:47]ConnectInit lk.salyk.kg [17:47:47]Connected sock=10 [17:47:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 54 56 07 01 64 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 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 C8 D5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 D0 01 00 35 04 06 00 59 98 92 BF E1 D0 25 50 3C 59 28 D5 5D F6 [17:47:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 85 B2 47 00 98 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 34 39 33 39 10 04 04 00 49 D0 01 00 F4 03 04 00 55 83 A7 66 B6 04 01 00 00 39 B4 38 A5 EC 78 7E CF [17:47:48]CommunicateWithHost err = 0 [17:47:48]CheckOFDResponse [17:47:48]1017 (14) - 77093643461234 [17:47:48]1041 (16) - 0000000000874939 [17:47:48]1040 (4) - 118857 [17:47:48]1012 (4) - 29.07.2024 11:56 [17:47:48]1206 (1) - 0 [17:47:48]OFD Sender: Remove packet 118857 [17:47:48]ProducePacketName [17:47:48]name=ofd_packets/00118857 [17:47:48]NVStorageDeleteData [17:47:48]Write to MH i2c: 01 00 00 A1 6D 0E [17:47:48]Write i2c OK [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: 01 [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: 01 07 00 [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: 01 07 00 A1 6D 00 00 00 00 00 EB 0C 0C [17:47:48]RasterBufferAndPrint [17:47:48]line [17:47:48]line [17:47:48]line [17:47:48]line [17:47:48]line [17:47:48]written 0, free lines is 3314 [17:47:48]MH_Cut [17:47:48]Write to MH i2c: D1 01 00 A8 6D 01 E7 [17:47:48]Write i2c OK [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: D1 [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: D1 01 00 [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: D1 01 00 A8 6D 00 E6 [17:47:48]Write to MH i2c: 01 00 00 A9 6D 16 [17:47:48]Write i2c OK [17:47:48]MH_I2C_Read... [17:47:48]OFD Sender: No OFD packet to send [17:47:48]*** Cut start [17:47:48]*** Partial cut [17:47:48]*** CUTSNS_PIN = 1 [17:47:48]*** CUTSNS_PIN = 0 [17:47:49]*** Brake cut motor [17:47:49]Read from MH i2c: 01 [17:47:49]MH_I2C_Read... [17:47:49]*** Stop cut motor [17:47:49]*** Cut end [17:47:49]Read from MH i2c: 01 07 00 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: 01 07 00 A9 6D 00 00 00 00 00 FF 0F 2B [17:47:49]process_action close_receipt done [17:47:49]requested_data is exist [17:47:49]produce_requested_data [17:47:49]requested_item fm.sn is exist - process it [17:47:49]wFMCommunicate request_size=4 [17:47:49]MH_SAM_APDU [17:47:49]CAPDU: 80 11 00 00 [17:47:49]Write to MH i2c: E2 08 00 AA 6D 80 11 00 00 00 00 00 00 91 [17:47:49]Write i2c OK [17:47:49]MH_I2C_Read... [17:47:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:49]Read from MH i2c: E2 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 17 00 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 17 00 AA 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EC [17:47:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:47:49]wFMCommunicate OK [17:47:49]requested_item fd.num is exist - process it [17:47:49]SAM_PROTO_GetFieldsCounters [17:47:49]wFMCommunicate request_size=4 [17:47:49]MH_SAM_APDU [17:47:49]CAPDU: 80 13 00 00 [17:47:49]Write to MH i2c: E2 08 00 AB 6D 80 13 00 00 00 00 00 00 94 [17:47:49]Write i2c OK [17:47:49]MH_I2C_Read... [17:47:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:49]Read from MH i2c: E2 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 62 00 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 62 00 AB 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 49 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [17:47: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 49 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:49]wFMCommunicate OK [17:47:49]SAM_PROTO_GetFieldsCounters done [17:47:49]requested_item shift.num is exist - process it [17:47:49]requested_item shift.opened is exist - process it [17:47:49]req_shift_opened [17:47:49]FM_GetShiftState [17:47:49]SAM_PROTO_GetShiftState [17:47:49]wFMCommunicate request_size=4 [17:47:49]MH_SAM_APDU [17:47:49]CAPDU: 80 13 01 00 [17:47:49]Write to MH i2c: E2 08 00 AC 6D 80 13 01 00 00 00 00 00 96 [17:47:49]Write i2c OK [17:47:49]MH_I2C_Read... [17:47:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:49]Read from MH i2c: E2 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 0E 00 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 0E 00 AC 6D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C4 [17:47:49]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:47:49]wFMCommunicate OK [17:47:49]SAM_PROTO_GetShiftState done [17:47:49]FM_GetShiftState done [17:47:49]req_shift_opened done [17:47:49]requested_item shift.open_date is exist - process it [17:47:49]req_shift_open_date [17:47:49]req_shift_open_date done [17:47:49]produce_requested_data done [17:47:49]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118857,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [17:47:49]process_action_free close_receipt [17:47:49]json_value_free [17:47:49]json_value_free done [17:47:49]process_json_proto returns [17:47:49]Send response to host [17:47:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118857,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [17:47:49]free response buf [17:47:49]execute_script done [17:47:49]execute_script returns [17:47:49]free content buf [17:47:49]Sock 7.Close socket [17:47:49]Sock 7.Thread stoped [17:47:53]OFD Sender: No OFD packet to send [17:47:58]OFD Sender: No OFD packet to send [17:48:03]OFD Sender: No OFD packet to send [17:48:08]OFD Sender: No OFD packet to send [17:48:13]OFD Sender: No OFD packet to send [17:48:18]OFD Sender: No OFD packet to send [17:48:23]OFD Sender: No OFD packet to send [17:48:28]OFD Sender: No OFD packet to send [17:48:33]OFD Sender: No OFD packet to send [17:48:38]OFD Sender: No OFD packet to send [17:48:43]OFD Sender: No OFD packet to send [17:48:48]OFD Sender: No OFD packet to send [17:48:53]OFD Sender: No OFD packet to send [17:48:58]OFD Sender: No OFD packet to send [17:49:03]OFD Sender: No OFD packet to send [17:49:08]OFD Sender: No OFD packet to send [17:49:13]OFD Sender: No OFD packet to send [17:49:18]OFD Sender: No OFD packet to send [17:49:23]OFD Sender: No OFD packet to send [17:49:28]OFD Sender: No OFD packet to send [17:49:33]OFD Sender: No OFD packet to send [17:49:38]OFD Sender: No OFD packet to send [17:49:43]OFD Sender: No OFD packet to send [17:49:48]OFD Sender: No OFD packet to send [17:49:53]OFD Sender: No OFD packet to send [17:49:58]OFD Sender: No OFD packet to send [17:50:03]OFD Sender: No OFD packet to send [17:50:08]OFD Sender: No OFD packet to send [17:50:13]OFD Sender: No OFD packet to send [17:50:14]accept exits with 9 [17:50:14]New connection [17:50:14]New thread 3067383140 created [17:50:14]Thread 3067239780 joined [17:50:14]Waiting for new connection... [17:50:14] Sock 9.Parse request [17:50:14]Sock 9.Check first char [17:50:14]Sock 9.First char is OK [17:50:14]request: POST /json_proto HTTP/1.0 [17:50:14]Method: POST [17:50:14]URL: /json_proto [17:50:14]Method is POST - this is cgi request [17:50:14]url: /json_proto [17:50:14]query_string will be loaded in cgi processing [17:50:14]execute_cgi json_proto POST (null) [17:50:14]execute_cgi path=json_proto method=POST [17:50:14]POST find Content-Length [17:50:14]Host: 172.17.45.7:8080 [17:50:14]Content-Length: 682 [17:50:14]Content-Type: application/json [17:50:14] [17:50:14]POST finish read [17:50:14]Found Content-Length = 682 [17:50:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:14]execute_script... [17:50:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:14]POST & json_proto [17:50:14]process_json_proto [17:50:14]json parsed OK: [17:50:14]protocol is kg_v1.0 [17:50:14]action value=close_receipt [17:50:14]process_action close_receipt [17:50:14]cmd_close_receipt [17:50:14]MH_GetDate [17:50:14]Write to MH i2c: F0 00 00 AD 6D 09 [17:50:14]Write i2c OK [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: F0 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: F0 09 00 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: F0 09 00 AD 6D 00 5D D6 A7 66 90 0F 3E 66 95 [17:50:14]GetLastDocTimeStamp 1722275272 [17:50:14]current date 1722275421 [17:50:14]FM_GetShiftState [17:50:14]SAM_PROTO_GetShiftState [17:50:14]wFMCommunicate request_size=4 [17:50:14]MH_SAM_APDU [17:50:14]CAPDU: 80 13 01 00 [17:50:14]Write to MH i2c: E2 08 00 AE 6D 80 13 01 00 00 00 00 00 98 [17:50:14]Write i2c OK [17:50:14]MH_I2C_Read... [17:50:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:14]Read from MH i2c: E2 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 0E 00 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 0E 00 AE 6D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C6 [17:50:14]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:50:14]wFMCommunicate OK [17:50:14]SAM_PROTO_GetShiftState done [17:50:14]FM_GetShiftState done [17:50:14]opened in 1722211641 [17:50:14]opened+sec_in_day 1722298041 [17:50:14]quantity*price = 100005 [17:50:14]sum+1 = 100006 [17:50:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 234 29.07.2024 17:50 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118858 ФПД: 175057448242915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175021&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118858&fm=175057448242915&tin=02508201610067®Number=0000000000092660&sum=100000 [17:50:16]StoreToDocumentArchive [17:50:16]shift 434 fd 118858 [17:50:16]save to /storage/0434/doc_00118858 [17:50:16]save last doc name /storage/0434/doc_00118858 to /storage/kkm_last_doc_name [17:50:16]save OK [17:50:16]Clear old archive folders... [17:50:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:50:16]tlvbuf is 01E58E40 [17:50:16]SAM_PROTO_ClearQueue [17:50:16]wFMCommunicate request_size=4 [17:50:16]MH_SAM_APDU [17:50:16]CAPDU: 80 09 00 00 [17:50:16]Write to MH i2c: E2 08 00 BB 6D 80 09 00 00 00 00 00 00 9A [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:16]Read from MH i2c: E2 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 03 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 03 00 BB 6D 00 90 00 9C [17:50:16]RAPDU: 90 00 [17:50:16]wFMCommunicate OK [17:50:16]SAM_PROTO_ClearQueue done [17:50:16]KKMCreateOFDPacket [17:50:16]OFDProtocolAddRootSTLVToBuf [17:50:16]FM_MakeSignedData [17:50:16]FM_MakeSignedData [17:50:16]SAM_PROTO_SignData [17:50:16]wFMCommunicate request_size=4 [17:50:16]MH_SAM_APDU [17:50:16]CAPDU: 80 0D 01 02 [17:50:16]Write to MH i2c: E2 08 00 BC 6D 80 0D 01 02 00 00 00 00 A2 [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:16]Read from MH i2c: E2 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 03 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 03 00 BC 6D 00 90 00 9D [17:50:16]RAPDU: 90 00 [17:50:16]wFMCommunicate OK [17:50:16]wFMCommunicate request_size=255 [17:50:16]MH_SAM_APDU [17:50:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 5D D6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A D0 01 00 35 04 06 00 9F [17:50:16]Write to MH i2c: E2 02 01 BD 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 5D D6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A D0 01 00 35 04 06 00 9F 00 00 4C [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:16]Read from MH i2c: E2 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 03 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 03 00 BD 6D 00 90 00 9E [17:50:16]RAPDU: 90 00 [17:50:16]wFMCommunicate OK [17:50:16]wFMCommunicate request_size=10 [17:50:16]MH_SAM_APDU [17:50:16]CAPDU: 80 0D 02 02 05 36 BD 04 8E E3 [17:50:16]Write to MH i2c: E2 0D 00 BE 6D 80 0D 02 02 05 00 36 BD 04 8E E3 00 00 17 [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:16]Read from MH i2c: E2 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 03 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 03 00 BE 6D 00 90 00 9F [17:50:16]RAPDU: 90 00 [17:50:16]wFMCommunicate OK [17:50:16]wFMCommunicate request_size=4 [17:50:16]MH_SAM_APDU [17:50:16]CAPDU: 80 0D 03 02 [17:50:16]Write to MH i2c: E2 08 00 BF 6D 80 0D 03 02 00 00 00 00 A7 [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:16]Read from MH i2c: E2 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 0B 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 0B 00 BF 6D 00 28 53 27 5D ED 73 07 D1 90 00 DF [17:50:16]RAPDU: 28 53 27 5D ED 73 07 D1 90 00 [17:50:16]wFMCommunicate OK [17:50:16]SAM_PROTO_SignData done [17:50:16]FM_MakeSignedData done [17:50:16]CreateOFDProtocolMessage [17:50:16]wFMCommunicate request_size=4 [17:50:16]MH_SAM_APDU [17:50:16]CAPDU: 80 11 00 00 [17:50:16]Write to MH i2c: E2 08 00 C0 6D 80 11 00 00 00 00 00 00 A7 [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:16]Read from MH i2c: E2 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 17 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 17 00 C0 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 02 [17:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:50:16]wFMCommunicate OK [17:50:16]CreateOFDProtocolMessage done [17:50:16]OFDSenderStorePacket 118858 [17:50:16]StoreOFDPacket docnum=118858 [17:50:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A3 B3 07 01 0E AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 5D D6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A D0 01 00 35 04 06 00 9F 36 BD 04 8E E3 28 53 27 5D ED 73 07 D1 [17:50:16]CheckFolder [17:50:16]dirname=/storage/ofd_packets [17:50:16]CheckFolder done [17:50:16]ProducePacketName [17:50:16]name=ofd_packets/00118858 [17:50:16]NVStorageSaveData ofd_packets/00118858 [17:50:16]File name is /storage/ofd_packets/00118858 [17:50:16]Write 301 bytes [17:50:16]NVStorageSaveData done [17:50:16]OFDSenderStorePacket done [17:50:16]KKMCreateOFDPacket done [17:50:16]NVStorageSaveData kkm_last_timestamp [17:50:16]File name is /storage/kkm_last_timestamp [17:50:16]Write 4 bytes [17:50:16]NVStorageSaveData done [17:50:16]ExternCall_PrintAddStr [17:50:16]wPrintStart [17:50:16]Write to MH i2c: 01 00 00 C1 6D 2E [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: 01 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: 01 07 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: 01 07 00 C1 6D 00 00 00 00 00 FF 0F 43 [17:50:16]RasterBufferAndPrint [17:50:16]line Счет N : (1)949748 [17:50:16]line ИНН: 02508201610067 [17:50:16]line Контрольно-Кассовый Чек [17:50:16]line ПРОДАЖА [17:50:16]line ТРК (МРК, ГНК) : 31 [17:50:16]line Товар: 2710124130 [17:50:16]line Аи-92-К-4 [17:50:16]line 14.750 * 67.80 [17:50:16]line = 1000.05 [17:50:16]line НДС 12% НСП 1% [17:50:16]line > о реализуемом товаре [17:50:16]line ОКРУГЛЕНИЕ: -0.05 [17:50:16]line ИТОГО: 1000.00 [17:50:16]line Внесено: 1000.00 [17:50:16]line СДАЧА: 0.00 [17:50:16]line НСП 1% : 8.85 [17:50:16]line НДС 12% : 106.20 [17:50:16]line Наличными: 1000.00 [17:50:16]line Безнал.: 0.00 [17:50:16]line Место: АЗС № 134 "Партнер Нефть" [17:50:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:50:16]line СНО: Общий режим [17:50:16]line Чек 234 29.07.2024 17:50 [17:50:16]line Смена: 434 ФФД: 1.0 [17:50:16]line ЗНМ: 0300000044 [17:50:16]line РНМ: 0000000000092660 [17:50:16]line Версия ККМ: 001 [17:50:16]line ФМ: 0000000000874939 [17:50:16]line ФД: 118858 [17:50:16]line ФПД: 175057448242915 [17:50:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175021&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118858&fm=175057448242915&tin=02508201610067®Number=0000000000092660&sum=100000 [17:50:16]written 0, free lines is 4095 [17:50:16]OFD Sender: Processing packet 118858 [packets to send 86, broken 85] [17:50:16]ProducePacketName [17:50:16]name=ofd_packets/00118858 [17:50:16]OFD Sender: To server: pG, [17:50:16]CommunicateWithHost lk.salyk.kg:30040 [17:50:16]ConnectInit lk.salyk.kg [17:50:16]Connected sock=10 [17:50:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A3 B3 07 01 0E AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 5D D6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A D0 01 00 35 04 06 00 9F 36 BD 04 8E E3 28 53 27 5D ED 73 07 D1 [17:50:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 96 75 47 00 C0 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A D0 01 00 F4 03 04 00 EA 83 A7 66 B6 04 01 00 00 E3 92 BE 7D 66 5D A5 68 [17:50:17]CommunicateWithHost err = 0 [17:50:17]CheckOFDResponse [17:50:17]1017 (14) - 77093643461234 [17:50:17]1041 (16) - 0000000000874939 [17:50:17]1040 (4) - 118858 [17:50:17]1012 (4) - 29.07.2024 11:58 [17:50:17]1206 (1) - 0 [17:50:17]OFD Sender: Remove packet 118858 [17:50:17]ProducePacketName [17:50:17]name=ofd_packets/00118858 [17:50:17]NVStorageDeleteData [17:50:17]Write to MH i2c: 01 00 00 EB 6D 58 [17:50:17]Write i2c OK [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: 01 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: 01 07 00 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: 01 07 00 EB 6D 00 00 00 00 00 E4 0C 4F [17:50:17]RasterBufferAndPrint [17:50:17]line [17:50:17]line [17:50:17]line [17:50:17]line [17:50:17]line [17:50:17]written 0, free lines is 3305 [17:50:17]MH_Cut [17:50:17]Write to MH i2c: D1 01 00 F2 6D 01 31 [17:50:17]Write i2c OK [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: D1 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: D1 01 00 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: D1 01 00 F2 6D 00 30 [17:50:17]Write to MH i2c: 01 00 00 F3 6D 60 [17:50:17]Write i2c OK [17:50:17]MH_I2C_Read... [17:50:17]OFD Sender: No OFD packet to send [17:50:18]*** Cut start [17:50:18]*** Partial cut [17:50:18]*** CUTSNS_PIN = 1 [17:50:18]*** CUTSNS_PIN = 0 [17:50:18]*** Brake cut motor [17:50:18]Read from MH i2c: 01 [17:50:18]MH_I2C_Read... [17:50:18]*** Stop cut motor [17:50:18]*** Cut end [17:50:18]Read from MH i2c: 01 07 00 [17:50:18]MH_I2C_Read... [17:50:18]Read from MH i2c: 01 07 00 F3 6D 00 00 00 00 00 FF 0F 75 [17:50:18]process_action close_receipt done [17:50:18]requested_data is exist [17:50:18]produce_requested_data [17:50:18]requested_item fm.sn is exist - process it [17:50:18]wFMCommunicate request_size=4 [17:50:18]MH_SAM_APDU [17:50:18]CAPDU: 80 11 00 00 [17:50:18]Write to MH i2c: E2 08 00 F4 6D 80 11 00 00 00 00 00 00 DB [17:50:18]Write i2c OK [17:50:18]MH_I2C_Read... [17:50:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:18]Read from MH i2c: E2 [17:50:18]MH_I2C_Read... [17:50:18]Read from MH i2c: E2 17 00 [17:50:18]MH_I2C_Read... [17:50:18]Read from MH i2c: E2 17 00 F4 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 36 [17:50:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:50:18]wFMCommunicate OK [17:50:18]requested_item fd.num is exist - process it [17:50:18]SAM_PROTO_GetFieldsCounters [17:50:18]wFMCommunicate request_size=4 [17:50:18]MH_SAM_APDU [17:50:18]CAPDU: 80 13 00 00 [17:50:18]Write to MH i2c: E2 08 00 F5 6D 80 13 00 00 00 00 00 00 DE [17:50:18]Write i2c OK [17:50:18]MH_I2C_Read... [17:50:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:18]Read from MH i2c: E2 [17:50:18]MH_I2C_Read... [17:50:18]Read from MH i2c: E2 62 00 [17:50:18]MH_I2C_Read... [17:50:18]Read from MH i2c: E2 62 00 F5 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4A D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [17:50: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4A D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:18]wFMCommunicate OK [17:50:18]SAM_PROTO_GetFieldsCounters done [17:50:18]requested_item shift.num is exist - process it [17:50:18]requested_item shift.opened is exist - process it [17:50:18]req_shift_opened [17:50:18]FM_GetShiftState [17:50:18]SAM_PROTO_GetShiftState [17:50:18]wFMCommunicate request_size=4 [17:50:18]MH_SAM_APDU [17:50:18]CAPDU: 80 13 01 00 [17:50:18]Write to MH i2c: E2 08 00 F6 6D 80 13 01 00 00 00 00 00 E0 [17:50:18]Write i2c OK [17:50:18]MH_I2C_Read... [17:50:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:18]Read from MH i2c: E2 [17:50:18]MH_I2C_Read... [17:50:18]Read from MH i2c: E2 0E 00 [17:50:18]MH_I2C_Read... [17:50:18]Read from MH i2c: E2 0E 00 F6 6D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 0E [17:50:18]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:50:18]wFMCommunicate OK [17:50:18]SAM_PROTO_GetShiftState done [17:50:18]FM_GetShiftState done [17:50:18]req_shift_opened done [17:50:18]requested_item shift.open_date is exist - process it [17:50:18]req_shift_open_date [17:50:18]req_shift_open_date done [17:50:18]produce_requested_data done [17:50:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118858,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [17:50:18]process_action_free close_receipt [17:50:18]json_value_free [17:50:18]json_value_free done [17:50:18]process_json_proto returns [17:50:18]Send response to host [17:50:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118858,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [17:50:18]free response buf [17:50:18]execute_script done [17:50:18]execute_script returns [17:50:18]free content buf [17:50:18]Sock 9.Close socket [17:50:18]Sock 9.Thread stoped [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]accept exits with 7 [17:50:52]New connection [17:50:52]New thread 3067239780 created [17:50:52]Thread 3067383140 joined [17:50:52]Waiting for new connection... [17:50:52] Sock 7.Parse request [17:50:52]Sock 7.Check first char [17:50:52]Sock 7.First char is OK [17:50:52]request: POST /json_proto HTTP/1.0 [17:50:52]Method: POST [17:50:52]URL: /json_proto [17:50:52]Method is POST - this is cgi request [17:50:52]url: /json_proto [17:50:52]query_string will be loaded in cgi processing [17:50:52]execute_cgi json_proto POST (null) [17:50:52]execute_cgi path=json_proto method=POST [17:50:52]POST find Content-Length [17:50:52]Host: 172.17.45.7:8080 [17:50:52]Content-Length: 739 [17:50:52]Content-Type: application/json [17:50:52] [17:50:52]POST finish read [17:50:52]Found Content-Length = 739 [17:50:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118858, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:52]execute_script... [17:50:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118858, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:52]POST & json_proto [17:50:52]process_json_proto [17:50:52]json parsed OK: [17:50:52]protocol is kg_v1.0 [17:50:52]action value=close_receipt [17:50:52]process_action close_receipt [17:50:52]cmd_close_receipt [17:50:52]MH_GetDate [17:50:52]Write to MH i2c: F0 00 00 F7 6D 53 [17:50:52]Write i2c OK [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: F0 [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: F0 09 00 [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: F0 09 00 F7 6D 00 82 D6 A7 66 90 0F 3E 66 04 [17:50:52]GetLastDocTimeStamp 1722275421 [17:50:52]current date 1722275458 [17:50:52]FM_GetShiftState [17:50:52]SAM_PROTO_GetShiftState [17:50:52]wFMCommunicate request_size=4 [17:50:52]MH_SAM_APDU [17:50:52]CAPDU: 80 13 01 00 [17:50:52]Write to MH i2c: E2 08 00 F8 6D 80 13 01 00 00 00 00 00 E2 [17:50:52]Write i2c OK [17:50:52]MH_I2C_Read... [17:50:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:52]Read from MH i2c: E2 [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: E2 0E 00 [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: E2 0E 00 F8 6D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 10 [17:50:52]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:50:52]wFMCommunicate OK [17:50:52]SAM_PROTO_GetShiftState done [17:50:52]FM_GetShiftState done [17:50:52]opened in 1722211641 [17:50:52]opened+sec_in_day 1722298041 [17:50:52]quantity*price = 100005 [17:50:52]sum+1 = 100006 [17:50:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 235 29.07.2024 17:50 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 118858 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 118859 ФПД: 242843947112767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175058&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118859&fm=242843947112767&tin=02508201610067®Number=0000000000092660&sum=100000 [17:50:53]StoreToDocumentArchive [17:50:53]shift 434 fd 118859 [17:50:53]save to /storage/0434/doc_00118859 [17:50:53]save last doc name /storage/0434/doc_00118859 to /storage/kkm_last_doc_name [17:50:53]save OK [17:50:53]Clear old archive folders... [17:50:53]ProcessDocumentItem done err = 0, tmpTLVsize=279 [17:50:53]tlvbuf is 01FF8B50 [17:50:53]SAM_PROTO_ClearQueue [17:50:53]wFMCommunicate request_size=4 [17:50:53]MH_SAM_APDU [17:50:53]CAPDU: 80 09 00 00 [17:50:53]Write to MH i2c: E2 08 00 07 6E 80 09 00 00 00 00 00 00 E7 [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:53]Read from MH i2c: E2 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 03 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 03 00 07 6E 00 90 00 E9 [17:50:53]RAPDU: 90 00 [17:50:53]wFMCommunicate OK [17:50:53]SAM_PROTO_ClearQueue done [17:50:53]KKMCreateOFDPacket [17:50:53]OFDProtocolAddRootSTLVToBuf [17:50:53]FM_MakeSignedData [17:50:53]FM_MakeSignedData [17:50:53]SAM_PROTO_SignData [17:50:53]wFMCommunicate request_size=4 [17:50:53]MH_SAM_APDU [17:50:53]CAPDU: 80 0D 01 02 [17:50:53]Write to MH i2c: E2 08 00 08 6E 80 0D 01 02 00 00 00 00 EF [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:53]Read from MH i2c: E2 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 03 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 03 00 08 6E 00 90 00 EA [17:50:53]RAPDU: 90 00 [17:50:53]wFMCommunicate OK [17:50:53]wFMCommunicate request_size=255 [17:50:53]MH_SAM_APDU [17:50:53]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 82 D6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 4A D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 [17:50:53]Write to MH i2c: E2 02 01 09 6E 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 82 D6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 4A D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 00 00 82 [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:53]Read from MH i2c: E2 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 03 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 03 00 09 6E 00 90 00 EB [17:50:53]RAPDU: 90 00 [17:50:53]wFMCommunicate OK [17:50:53]wFMCommunicate request_size=38 [17:50:53]MH_SAM_APDU [17:50:53]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B D0 01 00 35 04 06 00 DC DD 83 34 19 3F [17:50:53]Write to MH i2c: E2 29 00 0A 6E 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B D0 01 00 35 04 06 00 DC DD 83 34 19 3F 00 00 67 [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:53]Read from MH i2c: E2 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 03 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 03 00 0A 6E 00 90 00 EC [17:50:53]RAPDU: 90 00 [17:50:53]wFMCommunicate OK [17:50:53]wFMCommunicate request_size=4 [17:50:53]MH_SAM_APDU [17:50:53]CAPDU: 80 0D 03 02 [17:50:53]Write to MH i2c: E2 08 00 0B 6E 80 0D 03 02 00 00 00 00 F4 [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:53]Read from MH i2c: E2 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 0B 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 0B 00 0B 6E 00 FE A2 10 08 54 24 25 97 90 00 E1 [17:50:53]RAPDU: FE A2 10 08 54 24 25 97 90 00 [17:50:53]wFMCommunicate OK [17:50:53]SAM_PROTO_SignData done [17:50:53]FM_MakeSignedData done [17:50:53]CreateOFDProtocolMessage [17:50:53]wFMCommunicate request_size=4 [17:50:53]MH_SAM_APDU [17:50:53]CAPDU: 80 11 00 00 [17:50:53]Write to MH i2c: E2 08 00 0C 6E 80 11 00 00 00 00 00 00 F4 [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:53]Read from MH i2c: E2 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 17 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 17 00 0C 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4F [17:50:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:50:53]wFMCommunicate OK [17:50:53]CreateOFDProtocolMessage done [17:50:53]OFDSenderStorePacket 118859 [17:50:53]StoreOFDPacket docnum=118859 [17:50:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 CC C1 23 01 30 38 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 82 D6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 4A D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B D0 01 00 35 04 06 00 DC DD 83 34 19 3F FE A2 10 08 54 24 25 97 [17:50:53]CheckFolder [17:50:53]dirname=/storage/ofd_packets [17:50:53]CheckFolder done [17:50:53]ProducePacketName [17:50:53]name=ofd_packets/00118859 [17:50:53]NVStorageSaveData ofd_packets/00118859 [17:50:53]File name is /storage/ofd_packets/00118859 [17:50:53]Write 329 bytes [17:50:53]NVStorageSaveData done [17:50:53]OFDSenderStorePacket done [17:50:53]KKMCreateOFDPacket done [17:50:53]NVStorageSaveData kkm_last_timestamp [17:50:53]File name is /storage/kkm_last_timestamp [17:50:53]Write 4 bytes [17:50:53]NVStorageSaveData done [17:50:53]ExternCall_PrintAddStr [17:50:53]wPrintStart [17:50:53]Write to MH i2c: 01 00 00 0D 6E 7B [17:50:53]OFD Sender: Processing packet 118859 [packets to send 86, broken 85] [17:50:53]ProducePacketName [17:50:53]name=ofd_packets/00118859 [17:50:53]OFD Sender: To server: pG, [17:50:53]CommunicateWithHost lk.salyk.kg:30040 [17:50:53]ConnectInit lk.salyk.kg [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: 01 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: 01 07 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: 01 07 00 0D 6E 00 00 00 00 00 FF 0F 90 [17:50:53]RasterBufferAndPrint [17:50:53]line Счет N : (1)949748 [17:50:53]line ИНН: 02508201610067 [17:50:53]line Контрольно-Кассовый Чек [17:50:53]line ВОЗВРАТ ПРОДАЖИ [17:50:53]line ТРК (МРК, ГНК) : 31 [17:50:53]line Товар: 2710124130 [17:50:53]line Аи-92-К-4 [17:50:53]line 14.750 * 67.80 [17:50:53]line = 1000.05 [17:50:53]line НДС 12% НСП 1% [17:50:53]line > о реализуемом товаре [17:50:53]line ОКРУГЛЕНИЕ: -0.05 [17:50:53]line ИТОГО: 1000.00 [17:50:53]line НСП 1% : 8.85 [17:50:53]line НДС 12% : 106.20 [17:50:53]line Наличными: 1000.00 [17:50:53]line Безнал.: 0.00 [17:50:53]line Место: АЗС № 134 "Партнер Нефть" [17:50:53]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:50:53]line СНО: Общий режим [17:50:53]line Чек 235 29.07.2024 17:50 [17:50:53]line Смена: 434 ФФД: 1.0 [17:50:53]line ЗНМ: 0300000044 [17:50:53]line РНМ: 0000000000092660 [17:50:53]line Версия ККМ: 001 [17:50:53]line ФД осн.: 118858 [17:50:53]line ФМ осн.: 0000000000874939 [17:50:53]line ФМ: 0000000000874939 [17:50:53]line ФД: 118859 [17:50:53]line ФПД: 242843947112767 [17:50:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175058&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118859&fm=242843947112767&tin=02508201610067®Number=0000000000092660&sum=100000 [17:50:54]written 0, free lines is 4095 [17:50:54]Write to MH i2c: 01 00 00 37 6E A5 [17:50:54]Write i2c OK [17:50:54]MH_I2C_Read... [17:50:54]Read from MH i2c: 01 [17:50:54]MH_I2C_Read... [17:50:54]Read from MH i2c: 01 07 00 [17:50:54]MH_I2C_Read... [17:50:54]Read from MH i2c: 01 07 00 37 6E 00 00 00 00 00 EA 0C A2 [17:50:54]RasterBufferAndPrint [17:50:54]line [17:50:54]line [17:50:54]line [17:50:54]line [17:50:54]line [17:50:54]written 0, free lines is 3312 [17:50:54]MH_Cut [17:50:54]Write to MH i2c: D1 01 00 3E 6E 01 7E [17:50:54]Write i2c OK [17:50:54]MH_I2C_Read... [17:50:54]Read from MH i2c: D1 [17:50:54]MH_I2C_Read... [17:50:54]Read from MH i2c: D1 01 00 [17:50:54]MH_I2C_Read... [17:50:54]Read from MH i2c: D1 01 00 3E 6E 00 7D [17:50:54]Write to MH i2c: 01 00 00 3F 6E AD [17:50:54]Write i2c OK [17:50:54]MH_I2C_Read... [17:50:55]*** Cut start [17:50:55]*** Partial cut [17:50:55]*** CUTSNS_PIN = 1 [17:50:55]*** CUTSNS_PIN = 0 [17:50:55]*** Brake cut motor [17:50:55]Read from MH i2c: 01 [17:50:56]MH_I2C_Read... [17:50:56]*** Stop cut motor [17:50:56]*** Cut end [17:50:56]Read from MH i2c: 01 07 00 [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: 01 07 00 3F 6E 00 00 00 00 00 FF 0F C2 [17:50:56]process_action close_receipt done [17:50:56]requested_data is exist [17:50:56]produce_requested_data [17:50:56]requested_item fm.sn is exist - process it [17:50:56]wFMCommunicate request_size=4 [17:50:56]MH_SAM_APDU [17:50:56]CAPDU: 80 11 00 00 [17:50:56]Write to MH i2c: E2 08 00 40 6E 80 11 00 00 00 00 00 00 28 [17:50:56]Write i2c OK [17:50:56]MH_I2C_Read... [17:50:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:56]Read from MH i2c: E2 [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: E2 17 00 [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: E2 17 00 40 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 83 [17:50:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:50:56]wFMCommunicate OK [17:50:56]requested_item fd.num is exist - process it [17:50:56]SAM_PROTO_GetFieldsCounters [17:50:56]wFMCommunicate request_size=4 [17:50:56]MH_SAM_APDU [17:50:56]CAPDU: 80 13 00 00 [17:50:56]Write to MH i2c: E2 08 00 41 6E 80 13 00 00 00 00 00 00 2B [17:50:56]Write i2c OK [17:50:56]MH_I2C_Read... [17:50:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:56]Read from MH i2c: E2 [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: E2 62 00 [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: E2 62 00 41 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4B D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [17:50: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4B D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:56]wFMCommunicate OK [17:50:56]SAM_PROTO_GetFieldsCounters done [17:50:56]requested_item shift.num is exist - process it [17:50:56]requested_item shift.opened is exist - process it [17:50:56]req_shift_opened [17:50:56]FM_GetShiftState [17:50:56]SAM_PROTO_GetShiftState [17:50:56]wFMCommunicate request_size=4 [17:50:56]MH_SAM_APDU [17:50:56]CAPDU: 80 13 01 00 [17:50:56]Write to MH i2c: E2 08 00 42 6E 80 13 01 00 00 00 00 00 2D [17:50:56]Write i2c OK [17:50:56]MH_I2C_Read... [17:50:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:56]Read from MH i2c: E2 [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: E2 0E 00 [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: E2 0E 00 42 6E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 5B [17:50:56]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:50:56]wFMCommunicate OK [17:50:56]SAM_PROTO_GetShiftState done [17:50:56]FM_GetShiftState done [17:50:56]req_shift_opened done [17:50:56]requested_item shift.open_date is exist - process it [17:50:56]req_shift_open_date [17:50:56]req_shift_open_date done [17:50:56]produce_requested_data done [17:50:56]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118859,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [17:50:56]process_action_free close_receipt [17:50:56]json_value_free [17:50:56]json_value_free done [17:50:56]process_json_proto returns [17:50:56]Send response to host [17:50:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118859,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [17:50:56]free response buf [17:50:56]execute_script done [17:50:56]execute_script returns [17:50:56]free content buf [17:50:56]Sock 7.Close socket [17:50:56]Sock 7.Thread stoped [17:50:56]accept exits with 9 [17:50:56]New connection [17:50:56]New thread 3067383140 created [17:50:56]Thread 3067239780 joined [17:50:56]Waiting for new connection... [17:50:56] Sock 9.Parse request [17:50:56]Sock 9.Check first char [17:50:56]Sock 9.First char is OK [17:50:56]request: POST /json_proto HTTP/1.0 [17:50:56]Method: POST [17:50:56]URL: /json_proto [17:50:56]Method is POST - this is cgi request [17:50:56]url: /json_proto [17:50:56]query_string will be loaded in cgi processing [17:50:56]execute_cgi json_proto POST (null) [17:50:56]execute_cgi path=json_proto method=POST [17:50:56]POST find Content-Length [17:50:56]Host: 172.17.45.7:8080 [17:50:56]Content-Length: 682 [17:50:56]Content-Type: application/json [17:50:56] [17:50:56]POST finish read [17:50:56]Found Content-Length = 682 [17:50:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:56]execute_script... [17:50:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:56]POST & json_proto [17:50:56]process_json_proto [17:50:56]json parsed OK: [17:50:56]protocol is kg_v1.0 [17:50:56]action value=close_receipt [17:50:56]process_action close_receipt [17:50:56]cmd_close_receipt [17:50:56]MH_GetDate [17:50:56]Write to MH i2c: F0 00 00 43 6E A0 [17:50:56]Write i2c OK [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: F0 [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: F0 09 00 [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: F0 09 00 43 6E 00 87 D6 A7 66 90 0F 3E 66 56 [17:50:56]GetLastDocTimeStamp 1722275458 [17:50:56]current date 1722275463 [17:50:56]FM_GetShiftState [17:50:56]SAM_PROTO_GetShiftState [17:50:56]wFMCommunicate request_size=4 [17:50:56]MH_SAM_APDU [17:50:56]CAPDU: 80 13 01 00 [17:50:56]Write to MH i2c: E2 08 00 44 6E 80 13 01 00 00 00 00 00 2F [17:50:56]Write i2c OK [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: E2 [17:50:56]MH_I2C_Read... [17:50:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:56]Read from MH i2c: E2 0E 00 [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: E2 0E 00 44 6E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 5D [17:50:56]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:50:56]wFMCommunicate OK [17:50:56]SAM_PROTO_GetShiftState done [17:50:56]FM_GetShiftState done [17:50:56]opened in 1722211641 [17:50:56]opened+sec_in_day 1722298041 [17:50:56]quantity*price = 100005 [17:50:56]sum+1 = 100006 [17:50:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 236 29.07.2024 17:51 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118860 ФПД: 233214655256172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175103&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118860&fm=233214655256172&tin=02508201610067®Number=0000000000092660&sum=100000 [17:50:57]StoreToDocumentArchive [17:50:57]shift 434 fd 118860 [17:50:57]save to /storage/0434/doc_00118860 [17:50:57]save last doc name /storage/0434/doc_00118860 to /storage/kkm_last_doc_name [17:50:57]save OK [17:50:57]Clear old archive folders... [17:50:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:50:57]tlvbuf is 01E8C480 [17:50:57]SAM_PROTO_ClearQueue [17:50:57]wFMCommunicate request_size=4 [17:50:57]MH_SAM_APDU [17:50:57]CAPDU: 80 09 00 00 [17:50:57]Write to MH i2c: E2 08 00 51 6E 80 09 00 00 00 00 00 00 31 [17:50:57]Write i2c OK [17:50:57]MH_I2C_Read... [17:50:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:57]Read from MH i2c: E2 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: E2 03 00 [17:50:57]MH_I2C_Read... [17:50:57]Read from MH i2c: E2 03 00 51 6E 00 90 00 33 [17:50:57]RAPDU: 90 00 [17:50:57]wFMCommunicate OK [17:50:57]SAM_PROTO_ClearQueue done [17:50:57]KKMCreateOFDPacket [17:50:57]OFDProtocolAddRootSTLVToBuf [17:50:57]FM_MakeSignedData [17:50:57]FM_MakeSignedData [17:50:57]SAM_PROTO_SignData [17:50:57]wFMCommunicate request_size=4 [17:50:57]MH_SAM_APDU [17:50:57]CAPDU: 80 0D 01 02 [17:50:57]Write to MH i2c: E2 08 00 52 6E 80 0D 01 02 00 00 00 00 39 [17:50:57]Write i2c OK [17:50:57]MH_I2C_Read... [17:50:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:58]Read from MH i2c: E2 [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: E2 03 00 [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: E2 03 00 52 6E 00 90 00 34 [17:50:58]RAPDU: 90 00 [17:50:58]wFMCommunicate OK [17:50:58]wFMCommunicate request_size=255 [17:50:58]MH_SAM_APDU [17:50:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 87 D6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C D0 01 00 35 04 06 00 D4 [17:50:58]Write to MH i2c: E2 02 01 53 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 87 D6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C D0 01 00 35 04 06 00 D4 00 00 46 [17:50:58]Write i2c OK [17:50:58]MH_I2C_Read... [17:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:58]Read from MH i2c: E2 [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: E2 03 00 [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: E2 03 00 53 6E 00 90 00 35 [17:50:58]RAPDU: 90 00 [17:50:58]wFMCommunicate OK [17:50:58]wFMCommunicate request_size=10 [17:50:58]MH_SAM_APDU [17:50:58]CAPDU: 80 0D 02 02 05 1B 84 AE D6 6C [17:50:58]Write to MH i2c: E2 0D 00 54 6E 80 0D 02 02 05 00 1B 84 AE D6 6C 00 00 D5 [17:50:58]Write i2c OK [17:50:58]MH_I2C_Read... [17:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:58]Read from MH i2c: E2 [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: E2 03 00 [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: E2 03 00 54 6E 00 90 00 36 [17:50:58]RAPDU: 90 00 [17:50:58]wFMCommunicate OK [17:50:58]wFMCommunicate request_size=4 [17:50:58]MH_SAM_APDU [17:50:58]CAPDU: 80 0D 03 02 [17:50:58]Write to MH i2c: E2 08 00 55 6E 80 0D 03 02 00 00 00 00 3E [17:50:58]Write i2c OK [17:50:58]MH_I2C_Read... [17:50:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:58]Read from MH i2c: E2 [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: E2 0B 00 [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: E2 0B 00 55 6E 00 D4 CB 4E 3B A7 D4 15 23 90 00 1A [17:50:58]RAPDU: D4 CB 4E 3B A7 D4 15 23 90 00 [17:50:58]wFMCommunicate OK [17:50:58]SAM_PROTO_SignData done [17:50:58]FM_MakeSignedData done [17:50:58]CreateOFDProtocolMessage [17:50:58]wFMCommunicate request_size=4 [17:50:58]MH_SAM_APDU [17:50:58]CAPDU: 80 11 00 00 [17:50:58]Write to MH i2c: E2 08 00 56 6E 80 11 00 00 00 00 00 00 3E [17:50:58]Write i2c OK [17:50:58]MH_I2C_Read... [17:50:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:58]Read from MH i2c: E2 [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: E2 17 00 [17:50:58]MH_I2C_Read... [17:50:58]Read from MH i2c: E2 17 00 56 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 99 [17:50:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:50:58]wFMCommunicate OK [17:50:58]CreateOFDProtocolMessage done [17:50:58]OFDSenderStorePacket 118860 [17:50:58]StoreOFDPacket docnum=118860 [17:50:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 83 ED 07 01 8A 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 87 D6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C D0 01 00 35 04 06 00 D4 1B 84 AE D6 6C D4 CB 4E 3B A7 D4 15 23 [17:50:58]CheckFolder [17:50:58]dirname=/storage/ofd_packets [17:50:58]CheckFolder done [17:50:58]ProducePacketName [17:50:58]name=ofd_packets/00118860 [17:50:58]NVStorageSaveData ofd_packets/00118860 [17:50:58]File name is /storage/ofd_packets/00118860 [17:50:58]Write 301 bytes [17:50:59]NVStorageSaveData done [17:50:59]OFDSenderStorePacket done [17:50:59]KKMCreateOFDPacket done [17:50:59]NVStorageSaveData kkm_last_timestamp [17:50:59]File name is /storage/kkm_last_timestamp [17:50:59]Write 4 bytes [17:50:59]NVStorageSaveData done [17:50:59]ExternCall_PrintAddStr [17:50:59]wPrintStart [17:50:59]Write to MH i2c: 01 00 00 57 6E C5 [17:50:59]Write i2c OK [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: 01 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: 01 07 00 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: 01 07 00 57 6E 00 00 00 00 00 FF 0F DA [17:50:59]RasterBufferAndPrint [17:50:59]line Счет N : (1)949749 [17:50:59]line ИНН: 02508201610067 [17:50:59]line Контрольно-Кассовый Чек [17:50:59]line ПРОДАЖА [17:50:59]line ТРК (МРК, ГНК) : 41 [17:50:59]line Товар: 2710124130 [17:50:59]line Аи-92-К-4 [17:50:59]line 14.750 * 67.80 [17:50:59]line = 1000.05 [17:50:59]line НДС 12% НСП 1% [17:50:59]line > о реализуемом товаре [17:50:59]line ОКРУГЛЕНИЕ: -0.05 [17:50:59]line ИТОГО: 1000.00 [17:50:59]line Внесено: 1000.00 [17:50:59]line СДАЧА: 0.00 [17:50:59]line НСП 1% : 8.85 [17:50:59]line НДС 12% : 106.20 [17:50:59]line Наличными: 1000.00 [17:50:59]line Безнал.: 0.00 [17:50:59]line Место: АЗС № 134 "Партнер Нефть" [17:50:59]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:50:59]line СНО: Общий режим [17:50:59]line Чек 236 29.07.2024 17:51 [17:50:59]line Смена: 434 ФФД: 1.0 [17:50:59]line ЗНМ: 0300000044 [17:50:59]line РНМ: 0000000000092660 [17:50:59]line Версия ККМ: 001 [17:50:59]line ФМ: 0000000000874939 [17:50:59]line ФД: 118860 [17:50:59]line ФПД: 233214655256172 [17:50:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175103&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118860&fm=233214655256172&tin=02508201610067®Number=0000000000092660&sum=100000 [17:50:59]written 0, free lines is 4095 [17:50:59]Write to MH i2c: 01 00 00 81 6E EF [17:50:59]Write i2c OK [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: 01 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: 01 07 00 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: 01 07 00 81 6E 00 00 00 00 00 E1 0C E3 [17:50:59]RasterBufferAndPrint [17:50:59]line [17:50:59]line [17:50:59]line [17:50:59]line [17:50:59]line [17:50:59]written 0, free lines is 3305 [17:50:59]MH_Cut [17:50:59]Write to MH i2c: D1 01 00 88 6E 01 C8 [17:50:59]Write i2c OK [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: D1 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: D1 01 00 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: D1 01 00 88 6E 00 C7 [17:50:59]Write to MH i2c: 01 00 00 89 6E F7 [17:50:59]Write i2c OK [17:50:59]MH_I2C_Read... [17:51:00]*** Cut start [17:51:00]*** Partial cut [17:51:00]*** CUTSNS_PIN = 1 [17:51:00]*** CUTSNS_PIN = 0 [17:51:00]*** Brake cut motor [17:51:00]Read from MH i2c: 01 [17:51:00]MH_I2C_Read... [17:51:00]*** Stop cut motor [17:51:00]*** Cut end [17:51:00]Read from MH i2c: 01 07 00 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: 01 07 00 89 6E 00 00 00 00 00 FF 0F 0C [17:51:00]process_action close_receipt done [17:51:00]requested_data is exist [17:51:00]produce_requested_data [17:51:00]requested_item fm.sn is exist - process it [17:51:00]wFMCommunicate request_size=4 [17:51:00]MH_SAM_APDU [17:51:00]CAPDU: 80 11 00 00 [17:51:00]Write to MH i2c: E2 08 00 8A 6E 80 11 00 00 00 00 00 00 72 [17:51:00]Write i2c OK [17:51:00]MH_I2C_Read... [17:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:00]Read from MH i2c: E2 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: E2 17 00 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: E2 17 00 8A 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CD [17:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:51:00]wFMCommunicate OK [17:51:00]requested_item fd.num is exist - process it [17:51:00]SAM_PROTO_GetFieldsCounters [17:51:00]wFMCommunicate request_size=4 [17:51:00]MH_SAM_APDU [17:51:00]CAPDU: 80 13 00 00 [17:51:00]Write to MH i2c: E2 08 00 8B 6E 80 13 00 00 00 00 00 00 75 [17:51:00]Write i2c OK [17:51:00]MH_I2C_Read... [17:51:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:01]Read from MH i2c: E2 [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: E2 62 00 [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: E2 62 00 8B 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4C D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [17:51: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4C D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:01]wFMCommunicate OK [17:51:01]SAM_PROTO_GetFieldsCounters done [17:51:01]requested_item shift.num is exist - process it [17:51:01]requested_item shift.opened is exist - process it [17:51:01]req_shift_opened [17:51:01]FM_GetShiftState [17:51:01]SAM_PROTO_GetShiftState [17:51:01]wFMCommunicate request_size=4 [17:51:01]MH_SAM_APDU [17:51:01]CAPDU: 80 13 01 00 [17:51:01]Write to MH i2c: E2 08 00 8C 6E 80 13 01 00 00 00 00 00 77 [17:51:01]Write i2c OK [17:51:01]MH_I2C_Read... [17:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:01]Read from MH i2c: E2 [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: E2 0E 00 [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: E2 0E 00 8C 6E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A5 [17:51:01]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:51:01]wFMCommunicate OK [17:51:01]SAM_PROTO_GetShiftState done [17:51:01]FM_GetShiftState done [17:51:01]req_shift_opened done [17:51:01]requested_item shift.open_date is exist - process it [17:51:01]req_shift_open_date [17:51:01]req_shift_open_date done [17:51:01]produce_requested_data done [17:51:01]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118860,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [17:51:01]process_action_free close_receipt [17:51:01]json_value_free [17:51:01]json_value_free done [17:51:01]process_json_proto returns [17:51:01]Send response to host [17:51:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118860,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [17:51:01]free response buf [17:51:01]execute_script done [17:51:01]execute_script returns [17:51:01]free content buf [17:51:01]Sock 9.Close socket [17:51:01]Sock 9.Thread stoped [17:52:27]accept exits with 7 [17:52:27]New connection [17:52:27]New thread 3067239780 created [17:52:27]Thread 3067383140 joined [17:52:27]Waiting for new connection... [17:52:27] Sock 7.Parse request [17:52:27]Sock 7.Check first char [17:52:27]Sock 7.First char is OK [17:52:27]request: POST /json_proto HTTP/1.0 [17:52:27]Method: POST [17:52:27]URL: /json_proto [17:52:27]Method is POST - this is cgi request [17:52:27]url: /json_proto [17:52:27]query_string will be loaded in cgi processing [17:52:27]execute_cgi json_proto POST (null) [17:52:27]execute_cgi path=json_proto method=POST [17:52:27]POST find Content-Length [17:52:27]Host: 172.17.45.7:8080 [17:52:27]Content-Length: 1205 [17:52:27]Content-Type: application/json [17:52:27] [17:52:27]POST finish read [17:52:27]Found Content-Length = 1205 [17:52:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949750\u000A29.07.2024 17:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-3\u000A 20.000 x 74.20\u000A\u0418\u0422\u041E\u0413: 1484.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1638165;1638164\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:27]execute_script... [17:52:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949750\u000A29.07.2024 17:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-3\u000A 20.000 x 74.20\u000A\u0418\u0422\u041E\u0413: 1484.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1638165;1638164\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:27]POST & json_proto [17:52:27]process_json_proto [17:52:27]json parsed OK: [17:52:27]protocol is kg_v1.0 [17:52:27]action value=print_text [17:52:27]process_action print_text [17:52:27]cmd_print_text [17:52:27]ExternCall_PrintAddStr [17:52:27]wPrintStart [17:52:27]Write to MH i2c: 01 00 00 8D 6E FB [17:52:27]Write i2c OK [17:52:27]MH_I2C_Read... [17:52:27]Read from MH i2c: 01 [17:52:27]MH_I2C_Read... [17:52:27]Read from MH i2c: 01 07 00 [17:52:27]MH_I2C_Read... [17:52:27]Read from MH i2c: 01 07 00 8D 6E 00 00 00 00 00 FF 0F 10 [17:52:27]RasterBufferAndPrint [17:52:27]line *****ТОВАРНЫЙ ЧЕК***** [17:52:27]line АЗС-134 [17:52:27]line Партнер нефть [17:52:27]line 02508201610067 [17:52:27]line Кассир : Казаков Ч. [17:52:27]line Счет N : (1)949750 [17:52:27]line 29.07.2024 17:50 [17:52:27]line ПРОДАЖА [17:52:27]line ТРК (МРК, ГНК): 53 [17:52:27]line Вид ГСМ : 2710124500 [17:52:27]line Аи-95-К-3 [17:52:27]line 20.000 x 74.20 [17:52:27]line ИТОГ: 1484.00 [17:52:27]line Тип оплаты: Талоны: Топливные Талоны [17:52:27]line 1638165;1638164 [17:52:27]line ______________________ [17:52:27]line (подпись) [17:52:27]written 0, free lines is 4095 [17:52:28]Write to MH i2c: 01 00 00 A1 6E 0F [17:52:28]Write i2c OK [17:52:28]MH_I2C_Read... [17:52:28]Read from MH i2c: 01 [17:52:28]MH_I2C_Read... [17:52:28]Read from MH i2c: 01 07 00 [17:52:28]MH_I2C_Read... [17:52:28]Read from MH i2c: 01 07 00 A1 6E 00 00 00 00 00 12 0E 36 [17:52:28]RasterBufferAndPrint [17:52:28]line [17:52:28]line [17:52:28]line [17:52:28]line [17:52:28]line [17:52:28]written 0, free lines is 3604 [17:52:28]MH_Cut [17:52:28]Write to MH i2c: D1 01 00 A8 6E 01 E8 [17:52:28]Write i2c OK [17:52:28]MH_I2C_Read... [17:52:28]Read from MH i2c: D1 [17:52:28]MH_I2C_Read... [17:52:28]Read from MH i2c: D1 01 00 [17:52:28]MH_I2C_Read... [17:52:28]Read from MH i2c: D1 01 00 A8 6E 00 E7 [17:52:28]Write to MH i2c: 01 00 00 A9 6E 17 [17:52:28]Write i2c OK [17:52:28]MH_I2C_Read... [17:52:28]*** Cut start [17:52:28]*** Partial cut [17:52:28]*** CUTSNS_PIN = 1 [17:52:28]*** CUTSNS_PIN = 0 [17:52:28]*** Brake cut motor [17:52:29]Read from MH i2c: 01 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: 01 07 00 [17:52:29]MH_I2C_Read... [17:52:29]*** Stop cut motor [17:52:29]*** Cut end [17:52:29]Read from MH i2c: 01 07 00 A9 6E 00 00 00 00 00 FF 0F 2C [17:52:29]process_action print_text done [17:52:29]requested_data is exist [17:52:29]produce_requested_data [17:52:29]requested_item fm.sn is exist - process it [17:52:29]wFMCommunicate request_size=4 [17:52:29]MH_SAM_APDU [17:52:29]CAPDU: 80 11 00 00 [17:52:29]Write to MH i2c: E2 08 00 AA 6E 80 11 00 00 00 00 00 00 92 [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:29]Read from MH i2c: E2 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 17 00 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 17 00 AA 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 ED [17:52:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:52:29]wFMCommunicate OK [17:52:29]requested_item fd.num is exist - process it [17:52:29]SAM_PROTO_GetFieldsCounters [17:52:29]wFMCommunicate request_size=4 [17:52:29]MH_SAM_APDU [17:52:29]CAPDU: 80 13 00 00 [17:52:29]Write to MH i2c: E2 08 00 AB 6E 80 13 00 00 00 00 00 00 95 [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 [17:52:29]MH_I2C_Read... [17:52:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:29]Read from MH i2c: E2 62 00 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 62 00 AB 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4C D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [17:52: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4C D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:52:29]wFMCommunicate OK [17:52:29]SAM_PROTO_GetFieldsCounters done [17:52:29]requested_item shift.num is exist - process it [17:52:29]requested_item shift.opened is exist - process it [17:52:29]req_shift_opened [17:52:29]FM_GetShiftState [17:52:29]SAM_PROTO_GetShiftState [17:52:29]wFMCommunicate request_size=4 [17:52:29]MH_SAM_APDU [17:52:29]CAPDU: 80 13 01 00 [17:52:29]Write to MH i2c: E2 08 00 AC 6E 80 13 01 00 00 00 00 00 97 [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:29]Read from MH i2c: E2 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 0E 00 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 0E 00 AC 6E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C5 [17:52:29]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:52:29]wFMCommunicate OK [17:52:29]SAM_PROTO_GetShiftState done [17:52:29]FM_GetShiftState done [17:52:29]req_shift_opened done [17:52:29]requested_item shift.open_date is exist - process it [17:52:29]req_shift_open_date [17:52:29]req_shift_open_date done [17:52:29]produce_requested_data done [17:52:29]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118860,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [17:52:29]process_action_free print_text [17:52:29]json_value_free [17:52:29]json_value_free done [17:52:29]process_json_proto returns [17:52:29]Send response to host [17:52:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118860,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [17:52:29]free response buf [17:52:29]execute_script done [17:52:29]execute_script returns [17:52:29]free content buf [17:52:29]Sock 7.Close socket [17:52:29]Sock 7.Thread stoped [17:53:05]ConnectInit Can't connect to host [17:53:05]CommunicateWithHost connect error [17:53:05]CommunicateWithHost err = -1 [17:53:05]OFD Sender: Server communicate error [17:53:05]OFD Sender: Processing packet 118859 [packets to send 87, broken 85] [17:53:05]ProducePacketName [17:53:05]name=ofd_packets/00118859 [17:53:05]OFD Sender: To server: pG, [17:53:05]CommunicateWithHost lk.salyk.kg:30040 [17:53:05]ConnectInit lk.salyk.kg [17:53:05]Connected sock=7 [17:53:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 CC C1 23 01 30 38 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 82 D6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 4A D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B D0 01 00 35 04 06 00 DC DD 83 34 19 3F FE A2 10 08 54 24 25 97 [17:53:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CD 17 47 00 83 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 34 39 33 39 10 04 04 00 4B D0 01 00 F4 03 04 00 93 84 A7 66 B6 04 01 00 00 23 43 86 68 FB 67 B5 AA [17:53:05]CommunicateWithHost err = 0 [17:53:05]CheckOFDResponse [17:53:05]1017 (14) - 77093643461234 [17:53:05]1041 (16) - 0000000000874939 [17:53:05]1040 (4) - 118859 [17:53:05]1012 (4) - 29.07.2024 12:01 [17:53:05]1206 (1) - 0 [17:53:05]OFD Sender: Remove packet 118859 [17:53:05]ProducePacketName [17:53:05]name=ofd_packets/00118859 [17:53:05]NVStorageDeleteData [17:53:06]OFD Sender: Processing packet 118860 [packets to send 86, broken 85] [17:53:06]ProducePacketName [17:53:06]name=ofd_packets/00118860 [17:53:06]OFD Sender: To server: pG, [17:53:06]CommunicateWithHost lk.salyk.kg:30040 [17:53:06]ConnectInit lk.salyk.kg [17:53:06]Connected sock=10 [17:53:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 83 ED 07 01 8A 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 87 D6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C D0 01 00 35 04 06 00 D4 1B 84 AE D6 6C D4 CB 4E 3B A7 D4 15 23 [17:53:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 77 A2 47 00 5E 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 34 39 33 39 10 04 04 00 4C D0 01 00 F4 03 04 00 93 84 A7 66 B6 04 01 00 00 BD E0 4E CB ED BD AF 2C [17:53:06]CommunicateWithHost err = 0 [17:53:06]CheckOFDResponse [17:53:06]1017 (14) - 77093643461234 [17:53:06]1041 (16) - 0000000000874939 [17:53:06]1040 (4) - 118860 [17:53:06]1012 (4) - 29.07.2024 12:01 [17:53:06]1206 (1) - 0 [17:53:06]OFD Sender: Remove packet 118860 [17:53:06]ProducePacketName [17:53:06]name=ofd_packets/00118860 [17:53:06]NVStorageDeleteData [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:37]accept exits with 9 [17:55:37]New connection [17:55:37]New thread 3067383140 created [17:55:37]Thread 3067239780 joined [17:55:37]Waiting for new connection... [17:55:37] Sock 9.Parse request [17:55:37]Sock 9.Check first char [17:55:37]Sock 9.First char is OK [17:55:37]request: POST /json_proto HTTP/1.0 [17:55:37]Method: POST [17:55:37]URL: /json_proto [17:55:37]Method is POST - this is cgi request [17:55:37]url: /json_proto [17:55:37]query_string will be loaded in cgi processing [17:55:37]execute_cgi json_proto POST (null) [17:55:37]execute_cgi path=json_proto method=POST [17:55:37]POST find Content-Length [17:55:37]Host: 172.17.45.7:8080 [17:55:37]Content-Length: 682 [17:55:37]Content-Type: application/json [17:55:37] [17:55:37]POST finish read [17:55:37]Found Content-Length = 682 [17:55:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:37]execute_script... [17: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 : (1)949751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:37]POST & json_proto [17:55:37]process_json_proto [17:55:37]json parsed OK: [17:55:37]protocol is kg_v1.0 [17:55:37]action value=close_receipt [17:55:37]process_action close_receipt [17:55:37]cmd_close_receipt [17:55:37]MH_GetDate [17:55:37]Write to MH i2c: F0 00 00 AD 6E 0A [17:55:37]Write i2c OK [17:55:37]MH_I2C_Read... [17:55:37]Read from MH i2c: F0 [17:55:37]MH_I2C_Read... [17:55:37]Read from MH i2c: F0 09 00 [17:55:37]MH_I2C_Read... [17:55:37]Read from MH i2c: F0 09 00 AD 6E 00 9F D7 A7 66 90 0F 3E 66 D9 [17:55:37]GetLastDocTimeStamp 1722275463 [17:55:37]current date 1722275743 [17:55:37]FM_GetShiftState [17:55:37]SAM_PROTO_GetShiftState [17:55:37]wFMCommunicate request_size=4 [17:55:37]MH_SAM_APDU [17:55:37]CAPDU: 80 13 01 00 [17:55:37]Write to MH i2c: E2 08 00 AE 6E 80 13 01 00 00 00 00 00 99 [17:55:37]Write i2c OK [17:55:37]MH_I2C_Read... [17:55:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:37]Read from MH i2c: E2 [17:55:37]MH_I2C_Read... [17:55:37]Read from MH i2c: E2 0E 00 [17:55:37]MH_I2C_Read... [17:55:37]Read from MH i2c: E2 0E 00 AE 6E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C7 [17:55:37]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:55:37]wFMCommunicate OK [17:55:37]SAM_PROTO_GetShiftState done [17:55:37]FM_GetShiftState done [17:55:37]opened in 1722211641 [17:55:37]opened+sec_in_day 1722298041 [17:55:37]quantity*price = 100005 [17:55:37]sum+1 = 100006 [17:55:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 237 29.07.2024 17:55 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118861 ФПД: 11967304545677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175543&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118861&fm=11967304545677&tin=02508201610067®Number=0000000000092660&sum=100000 [17:55:38]StoreToDocumentArchive [17:55:38]shift 434 fd 118861 [17:55:38]save to /storage/0434/doc_00118861 [17:55:38]save last doc name /storage/0434/doc_00118861 to /storage/kkm_last_doc_name [17:55:38]save OK [17:55:38]Clear old archive folders... [17:55:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:55:38]tlvbuf is 01F08F70 [17:55:38]SAM_PROTO_ClearQueue [17:55:38]wFMCommunicate request_size=4 [17:55:38]MH_SAM_APDU [17:55:38]CAPDU: 80 09 00 00 [17:55:38]Write to MH i2c: E2 08 00 BB 6E 80 09 00 00 00 00 00 00 9B [17:55:38]Write i2c OK [17:55:38]MH_I2C_Read... [17:55:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:38]Read from MH i2c: E2 [17:55:38]MH_I2C_Read... [17:55:38]Read from MH i2c: E2 03 00 [17:55:38]MH_I2C_Read... [17:55:38]Read from MH i2c: E2 03 00 BB 6E 00 90 00 9D [17:55:38]RAPDU: 90 00 [17:55:38]wFMCommunicate OK [17:55:38]SAM_PROTO_ClearQueue done [17:55:38]KKMCreateOFDPacket [17:55:38]OFDProtocolAddRootSTLVToBuf [17:55:38]FM_MakeSignedData [17:55:38]FM_MakeSignedData [17:55:38]SAM_PROTO_SignData [17:55:38]wFMCommunicate request_size=4 [17:55:38]MH_SAM_APDU [17:55:38]CAPDU: 80 0D 01 02 [17:55:38]Write to MH i2c: E2 08 00 BC 6E 80 0D 01 02 00 00 00 00 A3 [17:55:38]Write i2c OK [17:55:38]MH_I2C_Read... [17:55:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:38]Read from MH i2c: E2 [17:55:38]MH_I2C_Read... [17:55:38]Read from MH i2c: E2 03 00 [17:55:38]MH_I2C_Read... [17:55:38]Read from MH i2c: E2 03 00 BC 6E 00 90 00 9E [17:55:38]RAPDU: 90 00 [17:55:38]wFMCommunicate OK [17:55:38]wFMCommunicate request_size=255 [17:55:38]MH_SAM_APDU [17:55: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 9F D7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D D0 01 00 35 04 06 00 0A [17:55:38]Write to MH i2c: E2 02 01 BD 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 9F D7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D D0 01 00 35 04 06 00 0A 00 00 01 [17:55:38]Write i2c OK [17:55:38]MH_I2C_Read... [17:55:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:38]Read from MH i2c: E2 [17:55:38]MH_I2C_Read... [17:55:38]Read from MH i2c: E2 03 00 [17:55:38]MH_I2C_Read... [17:55:38]Read from MH i2c: E2 03 00 BD 6E 00 90 00 9F [17:55:38]RAPDU: 90 00 [17:55:38]wFMCommunicate OK [17:55:38]wFMCommunicate request_size=10 [17:55:38]MH_SAM_APDU [17:55:38]CAPDU: 80 0D 02 02 05 E2 5A EF B5 8D [17:55:38]Write to MH i2c: E2 0D 00 BE 6E 80 0D 02 02 05 00 E2 5A EF B5 8D 00 00 1D [17:55:38]Write i2c OK [17:55:38]MH_I2C_Read... [17:55:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:38]Read from MH i2c: E2 [17:55:38]MH_I2C_Read... [17:55:38]Read from MH i2c: E2 03 00 [17:55:38]MH_I2C_Read... [17:55:38]Read from MH i2c: E2 03 00 BE 6E 00 90 00 A0 [17:55:38]RAPDU: 90 00 [17:55:38]wFMCommunicate OK [17:55:38]wFMCommunicate request_size=4 [17:55:38]MH_SAM_APDU [17:55:38]CAPDU: 80 0D 03 02 [17:55:38]Write to MH i2c: E2 08 00 BF 6E 80 0D 03 02 00 00 00 00 A8 [17:55:38]Write i2c OK [17:55:38]MH_I2C_Read... [17:55:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:38]Read from MH i2c: E2 [17:55:38]MH_I2C_Read... [17:55:38]Read from MH i2c: E2 0B 00 [17:55:38]MH_I2C_Read... [17:55:38]Read from MH i2c: E2 0B 00 BF 6E 00 68 27 98 78 1B 77 08 05 90 00 E7 [17:55:38]RAPDU: 68 27 98 78 1B 77 08 05 90 00 [17:55:38]wFMCommunicate OK [17:55:38]SAM_PROTO_SignData done [17:55:38]FM_MakeSignedData done [17:55:38]CreateOFDProtocolMessage [17:55:38]wFMCommunicate request_size=4 [17:55:38]MH_SAM_APDU [17:55:38]CAPDU: 80 11 00 00 [17:55:38]Write to MH i2c: E2 08 00 C0 6E 80 11 00 00 00 00 00 00 A8 [17:55:38]Write i2c OK [17:55:38]MH_I2C_Read... [17:55:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:38]Read from MH i2c: E2 [17:55:38]MH_I2C_Read... [17:55:38]Read from MH i2c: E2 17 00 [17:55:38]MH_I2C_Read... [17:55:38]Read from MH i2c: E2 17 00 C0 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 03 [17:55:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:55:38]wFMCommunicate OK [17:55:38]CreateOFDProtocolMessage done [17:55:38]OFDSenderStorePacket 118861 [17:55:38]StoreOFDPacket docnum=118861 [17:55:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4D AE 07 01 9D 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 9F D7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D D0 01 00 35 04 06 00 0A E2 5A EF B5 8D 68 27 98 78 1B 77 08 05 [17:55:38]CheckFolder [17:55:38]dirname=/storage/ofd_packets [17:55:38]CheckFolder done [17:55:38]ProducePacketName [17:55:38]name=ofd_packets/00118861 [17:55:38]NVStorageSaveData ofd_packets/00118861 [17:55:38]File name is /storage/ofd_packets/00118861 [17:55:38]Write 301 bytes [17:55:38]NVStorageSaveData done [17:55:38]OFDSenderStorePacket done [17:55:38]KKMCreateOFDPacket done [17:55:38]NVStorageSaveData kkm_last_timestamp [17:55:38]File name is /storage/kkm_last_timestamp [17:55:38]Write 4 bytes [17:55:38]NVStorageSaveData done [17:55:38]ExternCall_PrintAddStr [17:55:38]wPrintStart [17:55:38]Write to MH i2c: 01 00 00 C1 6E 2F [17:55:38]Write i2c OK [17:55:38]MH_I2C_Read... [17:55:38]Read from MH i2c: 01 [17:55:38]MH_I2C_Read... [17:55:38]Read from MH i2c: 01 07 00 [17:55:38]MH_I2C_Read... [17:55:38]Read from MH i2c: 01 07 00 C1 6E 00 00 00 00 00 FF 0F 44 [17:55:38]RasterBufferAndPrint [17:55:38]line Счет N : (1)949751 [17:55:38]line ИНН: 02508201610067 [17:55:38]line Контрольно-Кассовый Чек [17:55:38]line ПРОДАЖА [17:55:38]line ТРК (МРК, ГНК) : 51 [17:55:38]line Товар: 2710124130 [17:55:38]line Аи-92-К-4 [17:55:38]line 14.750 * 67.80 [17:55:38]line = 1000.05 [17:55:38]line НДС 12% НСП 1% [17:55:38]line > о реализуемом товаре [17:55:38]line ОКРУГЛЕНИЕ: -0.05 [17:55:38]line ИТОГО: 1000.00 [17:55:38]line Внесено: 1000.00 [17:55:38]line СДАЧА: 0.00 [17:55:38]line НСП 1% : 8.85 [17:55:38]line НДС 12% : 106.20 [17:55:38]line Наличными: 1000.00 [17:55:38]line Безнал.: 0.00 [17:55:38]line Место: АЗС № 134 "Партнер Нефть" [17:55:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:55:38]OFD Sender: Processing packet 118861 [packets to send 86, broken 85] [17:55:38]ProducePacketName [17:55:38]name=ofd_packets/00118861 [17:55:38]OFD Sender: To server: pG, [17:55:38]CommunicateWithHost lk.salyk.kg:30040 [17:55:38]ConnectInit lk.salyk.kg [17:55:38]line СНО: Общий режим [17:55:38]line Чек 237 29.07.2024 17:55 [17:55:38]line Смена: 434 ФФД: 1.0 [17:55:38]line ЗНМ: 0300000044 [17:55:38]line РНМ: 0000000000092660 [17:55:38]line Версия ККМ: 001 [17:55:38]line ФМ: 0000000000874939 [17:55:38]line ФД: 118861 [17:55:38]line ФПД: 11967304545677 [17:55:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175543&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118861&fm=11967304545677&tin=02508201610067®Number=0000000000092660&sum=100000 [17:55:38]written 0, free lines is 4095 [17:55:39]Connected sock=11 [17: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 34 39 33 39 0F 01 00 00 4D AE 07 01 9D 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 9F D7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D D0 01 00 35 04 06 00 0A E2 5A EF B5 8D 68 27 98 78 1B 77 08 05 [17:55:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D4 8C 47 00 C8 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D D0 01 00 F4 03 04 00 2C 85 A7 66 B6 04 01 00 00 D9 34 4B 78 EB 7C 60 D4 [17:55:39]CommunicateWithHost err = 0 [17:55:39]CheckOFDResponse [17:55:39]1017 (14) - 77093643461234 [17:55:39]1041 (16) - 0000000000874939 [17:55:39]1040 (4) - 118861 [17:55:39]1012 (4) - 29.07.2024 12:03 [17:55:39]1206 (1) - 0 [17:55:39]OFD Sender: Remove packet 118861 [17:55:39]ProducePacketName [17:55:39]name=ofd_packets/00118861 [17:55:39]NVStorageDeleteData [17:55:39]Write to MH i2c: 01 00 00 EB 6E 59 [17:55:39]Write i2c OK [17:55:39]MH_I2C_Read... [17:55:39]Read from MH i2c: 01 [17:55:39]MH_I2C_Read... [17:55:39]Read from MH i2c: 01 07 00 [17:55:39]MH_I2C_Read... [17:55:39]Read from MH i2c: 01 07 00 EB 6E 00 00 00 00 00 D5 0C 41 [17:55:39]RasterBufferAndPrint [17:55:39]line [17:55:39]line [17:55:39]line [17:55:39]line [17:55:39]line [17:55:39]written 0, free lines is 3292 [17:55:39]MH_Cut [17:55:39]Write to MH i2c: D1 01 00 F2 6E 01 32 [17:55:39]Write i2c OK [17:55:39]MH_I2C_Read... [17:55:39]Read from MH i2c: D1 [17:55:39]MH_I2C_Read... [17:55:39]Read from MH i2c: D1 01 00 [17:55:39]MH_I2C_Read... [17:55:39]Read from MH i2c: D1 01 00 F2 6E 00 31 [17:55:39]Write to MH i2c: 01 00 00 F3 6E 61 [17:55:39]Write i2c OK [17:55:39]MH_I2C_Read... [17:55:39]OFD Sender: No OFD packet to send [17:55:40]*** Cut start [17:55:40]*** Partial cut [17:55:40]*** CUTSNS_PIN = 1 [17:55:40]*** CUTSNS_PIN = 0 [17:55:40]*** Brake cut motor [17:55:40]Read from MH i2c: 01 [17:55:40]MH_I2C_Read... [17:55:40]*** Stop cut motor [17:55:40]*** Cut end [17:55:40]Read from MH i2c: 01 07 00 [17:55:40]MH_I2C_Read... [17:55:40]Read from MH i2c: 01 07 00 F3 6E 00 00 00 00 00 FF 0F 76 [17:55:40]process_action close_receipt done [17:55:40]requested_data is exist [17:55:40]produce_requested_data [17:55:40]requested_item fm.sn is exist - process it [17:55:40]wFMCommunicate request_size=4 [17:55:40]MH_SAM_APDU [17:55:40]CAPDU: 80 11 00 00 [17:55:40]Write to MH i2c: E2 08 00 F4 6E 80 11 00 00 00 00 00 00 DC [17:55:40]Write i2c OK [17:55:40]MH_I2C_Read... [17:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:40]Read from MH i2c: E2 [17:55:40]MH_I2C_Read... [17:55:40]Read from MH i2c: E2 17 00 [17:55:40]MH_I2C_Read... [17:55:40]Read from MH i2c: E2 17 00 F4 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 37 [17:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:55:40]wFMCommunicate OK [17:55:40]requested_item fd.num is exist - process it [17:55:40]SAM_PROTO_GetFieldsCounters [17:55:40]wFMCommunicate request_size=4 [17:55:40]MH_SAM_APDU [17:55:40]CAPDU: 80 13 00 00 [17:55:40]Write to MH i2c: E2 08 00 F5 6E 80 13 00 00 00 00 00 00 DF [17:55:40]Write i2c OK [17:55:40]MH_I2C_Read... [17:55:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:40]Read from MH i2c: E2 [17:55:40]MH_I2C_Read... [17:55:40]Read from MH i2c: E2 62 00 [17:55:40]MH_I2C_Read... [17:55:40]Read from MH i2c: E2 62 00 F5 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4D D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [17:55: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4D D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:55:40]wFMCommunicate OK [17:55:40]SAM_PROTO_GetFieldsCounters done [17:55:40]requested_item shift.num is exist - process it [17:55:40]requested_item shift.opened is exist - process it [17:55:40]req_shift_opened [17:55:40]FM_GetShiftState [17:55:40]SAM_PROTO_GetShiftState [17:55:40]wFMCommunicate request_size=4 [17:55:40]MH_SAM_APDU [17:55:40]CAPDU: 80 13 01 00 [17:55:40]Write to MH i2c: E2 08 00 F6 6E 80 13 01 00 00 00 00 00 E1 [17:55:40]Write i2c OK [17:55:40]MH_I2C_Read... [17:55:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:40]Read from MH i2c: E2 [17:55:40]MH_I2C_Read... [17:55:40]Read from MH i2c: E2 0E 00 [17:55:40]MH_I2C_Read... [17:55:40]Read from MH i2c: E2 0E 00 F6 6E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 0F [17:55:40]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:55:40]wFMCommunicate OK [17:55:40]SAM_PROTO_GetShiftState done [17:55:40]FM_GetShiftState done [17:55:40]req_shift_opened done [17:55:40]requested_item shift.open_date is exist - process it [17:55:40]req_shift_open_date [17:55:40]req_shift_open_date done [17:55:40]produce_requested_data done [17:55:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118861,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [17:55:40]process_action_free close_receipt [17:55:40]json_value_free [17:55:40]json_value_free done [17:55:40]process_json_proto returns [17:55:40]Send response to host [17:55:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118861,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [17:55:40]free response buf [17:55:40]execute_script done [17:55:40]execute_script returns [17:55:40]free content buf [17:55:40]Sock 9.Close socket [17:55:40]Sock 9.Thread stoped [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:50]accept exits with 7 [17:58:50]New connection [17:58:50]New thread 3067239780 created [17:58:50]Thread 3067383140 joined [17:58:50]Waiting for new connection... [17:58:50] Sock 7.Parse request [17:58:50]Sock 7.Check first char [17:58:50]Sock 7.First char is OK [17:58:50]request: POST /json_proto HTTP/1.0 [17:58:50]Method: POST [17:58:50]URL: /json_proto [17:58:50]Method is POST - this is cgi request [17:58:50]url: /json_proto [17:58:50]query_string will be loaded in cgi processing [17:58:50]execute_cgi json_proto POST (null) [17:58:50]execute_cgi path=json_proto method=POST [17:58:50]POST find Content-Length [17:58:50]Host: 172.17.45.7:8080 [17:58:50]Content-Length: 677 [17:58:50]Content-Type: application/json [17:58:50] [17:58:50]POST finish read [17:58:50]Found Content-Length = 677 [17:58:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:50]execute_script... [17:58:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:50]POST & json_proto [17:58:50]process_json_proto [17:58:50]json parsed OK: [17:58:50]protocol is kg_v1.0 [17:58:50]action value=close_receipt [17:58:50]process_action close_receipt [17:58:50]cmd_close_receipt [17:58:50]MH_GetDate [17:58:50]Write to MH i2c: F0 00 00 F7 6E 54 [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: F0 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: F0 09 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: F0 09 00 F7 6E 00 61 D8 A7 66 90 0F 3E 66 E6 [17:58:50]GetLastDocTimeStamp 1722275743 [17:58:50]current date 1722275937 [17:58:50]FM_GetShiftState [17:58:50]SAM_PROTO_GetShiftState [17:58:50]wFMCommunicate request_size=4 [17:58:50]MH_SAM_APDU [17:58:50]CAPDU: 80 13 01 00 [17:58:50]Write to MH i2c: E2 08 00 F8 6E 80 13 01 00 00 00 00 00 E3 [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:50]Read from MH i2c: E2 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 0E 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 0E 00 F8 6E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 11 [17:58:50]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:58:50]wFMCommunicate OK [17:58:50]SAM_PROTO_GetShiftState done [17:58:50]FM_GetShiftState done [17:58:50]opened in 1722211641 [17:58:50]opened+sec_in_day 1722298041 [17:58:50]quantity*price = 40002 [17:58:50]sum+1 = 40003 [17:58:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 238 29.07.2024 17:58 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118862 ФПД: 223808148744153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175857&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118862&fm=223808148744153&tin=02508201610067®Number=0000000000092660&sum=40000 [17:58:51]StoreToDocumentArchive [17:58:51]shift 434 fd 118862 [17:58:51]save to /storage/0434/doc_00118862 [17:58:51]save last doc name /storage/0434/doc_00118862 to /storage/kkm_last_doc_name [17:58:51]save OK [17:58:51]Clear old archive folders... [17:58:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:51]tlvbuf is 01FB60E0 [17:58:51]SAM_PROTO_ClearQueue [17:58:51]wFMCommunicate request_size=4 [17:58:51]MH_SAM_APDU [17:58:51]CAPDU: 80 09 00 00 [17:58:51]Write to MH i2c: E2 08 00 05 6F 80 09 00 00 00 00 00 00 E6 [17:58:51]Write i2c OK [17:58:51]MH_I2C_Read... [17:58:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:51]Read from MH i2c: E2 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: E2 03 00 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: E2 03 00 05 6F 00 90 00 E8 [17:58:51]RAPDU: 90 00 [17:58:51]wFMCommunicate OK [17:58:51]SAM_PROTO_ClearQueue done [17:58:51]KKMCreateOFDPacket [17:58:51]OFDProtocolAddRootSTLVToBuf [17:58:51]FM_MakeSignedData [17:58:51]FM_MakeSignedData [17:58:51]SAM_PROTO_SignData [17:58:51]wFMCommunicate request_size=4 [17:58:51]MH_SAM_APDU [17:58:51]CAPDU: 80 0D 01 02 [17:58:51]Write to MH i2c: E2 08 00 06 6F 80 0D 01 02 00 00 00 00 EE [17:58:51]Write i2c OK [17:58:51]MH_I2C_Read... [17:58:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:52]Read from MH i2c: E2 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 03 00 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 03 00 06 6F 00 90 00 E9 [17:58:52]RAPDU: 90 00 [17:58:52]wFMCommunicate OK [17:58:52]wFMCommunicate request_size=255 [17:58:52]MH_SAM_APDU [17:58: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 61 D8 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E D0 01 00 35 04 06 00 CB [17:58:52]Write to MH i2c: E2 02 01 07 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 61 D8 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E D0 01 00 35 04 06 00 CB 00 00 28 [17:58:52]Write i2c OK [17:58:52]MH_I2C_Read... [17:58:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:52]Read from MH i2c: E2 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 03 00 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 03 00 07 6F 00 90 00 EA [17:58:52]RAPDU: 90 00 [17:58:52]wFMCommunicate OK [17:58:52]wFMCommunicate request_size=10 [17:58:52]MH_SAM_APDU [17:58:52]CAPDU: 80 0D 02 02 05 8D 65 34 27 D9 [17:58:52]Write to MH i2c: E2 0D 00 08 6F 80 0D 02 02 05 00 8D 65 34 27 D9 00 00 21 [17:58:52]Write i2c OK [17:58:52]MH_I2C_Read... [17:58:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:52]Read from MH i2c: E2 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 03 00 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 03 00 08 6F 00 90 00 EB [17:58:52]RAPDU: 90 00 [17:58:52]wFMCommunicate OK [17:58:52]wFMCommunicate request_size=4 [17:58:52]MH_SAM_APDU [17:58:52]CAPDU: 80 0D 03 02 [17:58:52]Write to MH i2c: E2 08 00 09 6F 80 0D 03 02 00 00 00 00 F3 [17:58:52]Write i2c OK [17:58:52]MH_I2C_Read... [17:58:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:52]Read from MH i2c: E2 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 0B 00 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 0B 00 09 6F 00 BE A4 17 9B 2A 25 D8 28 90 00 57 [17:58:52]RAPDU: BE A4 17 9B 2A 25 D8 28 90 00 [17:58:52]wFMCommunicate OK [17:58:52]SAM_PROTO_SignData done [17:58:52]FM_MakeSignedData done [17:58:52]CreateOFDProtocolMessage [17:58:52]wFMCommunicate request_size=4 [17:58:52]MH_SAM_APDU [17:58:52]CAPDU: 80 11 00 00 [17:58:52]Write to MH i2c: E2 08 00 0A 6F 80 11 00 00 00 00 00 00 F3 [17:58:52]Write i2c OK [17:58:52]MH_I2C_Read... [17:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:52]Read from MH i2c: E2 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 17 00 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 17 00 0A 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4E [17:58:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:58:52]wFMCommunicate OK [17:58:52]CreateOFDProtocolMessage done [17:58:52]OFDSenderStorePacket 118862 [17:58:52]StoreOFDPacket docnum=118862 [17:58:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 75 90 07 01 A4 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 61 D8 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E D0 01 00 35 04 06 00 CB 8D 65 34 27 D9 BE A4 17 9B 2A 25 D8 28 [17:58:52]CheckFolder [17:58:52]dirname=/storage/ofd_packets [17:58:52]CheckFolder done [17:58:52]ProducePacketName [17:58:52]name=ofd_packets/00118862 [17:58:52]NVStorageSaveData ofd_packets/00118862 [17:58:52]File name is /storage/ofd_packets/00118862 [17:58:52]Write 301 bytes [17:58:52]NVStorageSaveData done [17:58:52]OFDSenderStorePacket done [17:58:52]KKMCreateOFDPacket done [17:58:52]NVStorageSaveData kkm_last_timestamp [17:58:52]File name is /storage/kkm_last_timestamp [17:58:52]Write 4 bytes [17:58:52]NVStorageSaveData done [17:58:52]ExternCall_PrintAddStr [17:58:52]wPrintStart [17:58:52]Write to MH i2c: 01 00 00 0B 6F 7A [17:58:52]Write i2c OK [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: 01 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: 01 07 00 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: 01 07 00 0B 6F 00 00 00 00 00 FF 0F 8F [17:58:52]RasterBufferAndPrint [17:58:52]line Счет N : (1)949752 [17:58:52]line ИНН: 02508201610067 [17:58:52]line Контрольно-Кассовый Чек [17:58:52]line ПРОДАЖА [17:58:52]line ТРК (МРК, ГНК) : 51 [17:58:52]line Товар: 2710124130 [17:58:52]line Аи-92-К-4 [17:58:52]line 5.900 * 67.80 [17:58:52]line = 400.02 [17:58:52]line НДС 12% НСП 1% [17:58:52]line > о реализуемом товаре [17:58:52]line ОКРУГЛЕНИЕ: -0.02 [17:58:52]line ИТОГО: 400.00 [17:58:52]line Внесено: 400.00 [17:58:52]line СДАЧА: 0.00 [17:58:52]line НСП 1% : 3.54 [17:58:52]line НДС 12% : 42.48 [17:58:52]line Наличными: 400.00 [17:58:52]line Безнал.: 0.00 [17:58:52]line Место: АЗС № 134 "Партнер Нефть" [17:58:52]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:58:52]line СНО: Общий режим [17:58:52]line Чек 238 29.07.2024 17:58 [17:58:52]line Смена: 434 ФФД: 1.0 [17:58:52]line ЗНМ: 0300000044 [17:58:52]line РНМ: 0000000000092660 [17:58:52]line Версия ККМ: 001 [17:58:52]line ФМ: 0000000000874939 [17:58:52]line ФД: 118862 [17:58:52]line ФПД: 223808148744153 [17:58:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175857&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118862&fm=223808148744153&tin=02508201610067®Number=0000000000092660&sum=40000 [17:58:52]OFD Sender: Processing packet 118862 [packets to send 86, broken 85] [17:58:52]ProducePacketName [17:58:52]name=ofd_packets/00118862 [17:58:52]OFD Sender: To server: pG, [17:58:52]CommunicateWithHost lk.salyk.kg:30040 [17:58:52]ConnectInit lk.salyk.kg [17:58:52]written 0, free lines is 4095 [17:58:52]Connected sock=10 [17:58:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 75 90 07 01 A4 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 61 D8 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E D0 01 00 35 04 06 00 CB 8D 65 34 27 D9 BE A4 17 9B 2A 25 D8 28 [17:58:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 06 C4 47 00 22 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 34 39 33 39 10 04 04 00 4E D0 01 00 F4 03 04 00 EE 85 A7 66 B6 04 01 00 00 BE 25 39 5C EA 98 78 C0 [17:58:53]CommunicateWithHost err = 0 [17:58:53]CheckOFDResponse [17:58:53]1017 (14) - 77093643461234 [17:58:53]1041 (16) - 0000000000874939 [17:58:53]1040 (4) - 118862 [17:58:53]1012 (4) - 29.07.2024 12:07 [17:58:53]1206 (1) - 0 [17:58:53]OFD Sender: Remove packet 118862 [17:58:53]ProducePacketName [17:58:53]name=ofd_packets/00118862 [17:58:53]NVStorageDeleteData [17:58:53]Write to MH i2c: 01 00 00 35 6F A4 [17:58:53]Write i2c OK [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: 01 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: 01 07 00 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: 01 07 00 35 6F 00 00 00 00 00 DD 0C 94 [17:58:53]RasterBufferAndPrint [17:58:53]line [17:58:53]line [17:58:53]line [17:58:53]line [17:58:53]line [17:58:53]written 0, free lines is 3302 [17:58:53]MH_Cut [17:58:53]Write to MH i2c: D1 01 00 3C 6F 01 7D [17:58:53]Write i2c OK [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: D1 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: D1 01 00 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: D1 01 00 3C 6F 00 7C [17:58:53]Write to MH i2c: 01 00 00 3D 6F AC [17:58:53]Write i2c OK [17:58:53]MH_I2C_Read... [17:58:53]OFD Sender: No OFD packet to send [17:58:53]*** Cut start [17:58:53]*** Partial cut [17:58:53]*** CUTSNS_PIN = 1 [17:58:54]*** CUTSNS_PIN = 0 [17:58:54]*** Brake cut motor [17:58:54]Read from MH i2c: 01 [17:58:54]MH_I2C_Read... [17:58:54]*** Stop cut motor [17:58:54]*** Cut end [17:58:54]Read from MH i2c: 01 07 00 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: 01 07 00 3D 6F 00 00 00 00 00 FF 0F C1 [17:58:54]process_action close_receipt done [17:58:54]requested_data is exist [17:58:54]produce_requested_data [17:58:54]requested_item fm.sn is exist - process it [17:58:54]wFMCommunicate request_size=4 [17:58:54]MH_SAM_APDU [17:58:54]CAPDU: 80 11 00 00 [17:58:54]Write to MH i2c: E2 08 00 3E 6F 80 11 00 00 00 00 00 00 27 [17:58:54]Write i2c OK [17:58:54]MH_I2C_Read... [17:58:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:54]Read from MH i2c: E2 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 17 00 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 17 00 3E 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 82 [17:58:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:58:54]wFMCommunicate OK [17:58:54]requested_item fd.num is exist - process it [17:58:54]SAM_PROTO_GetFieldsCounters [17:58:54]wFMCommunicate request_size=4 [17:58:54]MH_SAM_APDU [17:58:54]CAPDU: 80 13 00 00 [17:58:54]Write to MH i2c: E2 08 00 3F 6F 80 13 00 00 00 00 00 00 2A [17:58:54]Write i2c OK [17:58:54]MH_I2C_Read... [17:58:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:54]Read from MH i2c: E2 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 62 00 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 62 00 3F 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4E D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [17:58: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4E D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:54]wFMCommunicate OK [17:58:54]SAM_PROTO_GetFieldsCounters done [17:58:54]requested_item shift.num is exist - process it [17:58:54]requested_item shift.opened is exist - process it [17:58:54]req_shift_opened [17:58:54]FM_GetShiftState [17:58:54]SAM_PROTO_GetShiftState [17:58:54]wFMCommunicate request_size=4 [17:58:54]MH_SAM_APDU [17:58:54]CAPDU: 80 13 01 00 [17:58:54]Write to MH i2c: E2 08 00 40 6F 80 13 01 00 00 00 00 00 2C [17:58:54]Write i2c OK [17:58:54]MH_I2C_Read... [17:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:54]Read from MH i2c: E2 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 0E 00 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 0E 00 40 6F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 5A [17:58:54]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [17:58:54]wFMCommunicate OK [17:58:54]SAM_PROTO_GetShiftState done [17:58:54]FM_GetShiftState done [17:58:54]req_shift_opened done [17:58:54]requested_item shift.open_date is exist - process it [17:58:54]req_shift_open_date [17:58:54]req_shift_open_date done [17:58:54]produce_requested_data done [17:58:54]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118862,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [17:58:54]process_action_free close_receipt [17:58:54]json_value_free [17:58:54]json_value_free done [17:58:54]process_json_proto returns [17:58:54]Send response to host [17:58:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118862,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [17:58:54]free response buf [17:58:54]execute_script done [17:58:54]execute_script returns [17:58:54]free content buf [17:58:54]Sock 7.Close socket [17:58:54]Sock 7.Thread stoped [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]accept exits with 9 [18:01:23]New connection [18:01:23]New thread 3067383140 created [18:01:23]Thread 3067239780 joined [18:01:23]Waiting for new connection... [18:01:23] Sock 9.Parse request [18:01:23]Sock 9.Check first char [18:01:23]Sock 9.First char is OK [18:01:23]request: POST /json_proto HTTP/1.0 [18:01:23]Method: POST [18:01:23]URL: /json_proto [18:01:23]Method is POST - this is cgi request [18:01:23]url: /json_proto [18:01:23]query_string will be loaded in cgi processing [18:01:23]execute_cgi json_proto POST (null) [18:01:23]execute_cgi path=json_proto method=POST [18:01:23]POST find Content-Length [18:01:23]Host: 172.17.45.7:8080 [18:01:23]Content-Length: 677 [18:01:23]Content-Type: application/json [18:01:23] [18:01:23]POST finish read [18:01:23]Found Content-Length = 677 [18:01:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.610, "sum" : 380.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:23]execute_script... [18:01:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.610, "sum" : 380.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:23]POST & json_proto [18:01:23]process_json_proto [18:01:23]json parsed OK: [18:01:23]protocol is kg_v1.0 [18:01:23]action value=close_receipt [18:01:23]process_action close_receipt [18:01:23]cmd_close_receipt [18:01:23]MH_GetDate [18:01:23]Write to MH i2c: F0 00 00 41 6F 9F [18:01:23]Write i2c OK [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: F0 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: F0 09 00 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: F0 09 00 41 6F 00 F9 D8 A7 66 90 0F 3E 66 C9 [18:01:23]GetLastDocTimeStamp 1722275937 [18:01:23]current date 1722276089 [18:01:23]FM_GetShiftState [18:01:23]SAM_PROTO_GetShiftState [18:01:23]wFMCommunicate request_size=4 [18:01:23]MH_SAM_APDU [18:01:23]CAPDU: 80 13 01 00 [18:01:23]Write to MH i2c: E2 08 00 42 6F 80 13 01 00 00 00 00 00 2E [18:01:23]Write i2c OK [18:01:23]MH_I2C_Read... [18:01:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:23]Read from MH i2c: E2 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: E2 0E 00 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: E2 0E 00 42 6F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 5C [18:01:23]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:01:23]wFMCommunicate OK [18:01:23]SAM_PROTO_GetShiftState done [18:01:23]FM_GetShiftState done [18:01:23]opened in 1722211641 [18:01:23]opened+sec_in_day 1722298041 [18:01:23]quantity*price = 38035 [18:01:23]sum+1 = 38037 [18:01:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 380.00 Внесено: 380.00 СДАЧА: 0.00 НСП 1% : 3.37 НДС 12% : 40.39 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 239 29.07.2024 18:01 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118863 ФПД: 238274122243948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180129&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118863&fm=238274122243948&tin=02508201610067®Number=0000000000092660&sum=38000 [18:01:24]StoreToDocumentArchive [18:01:24]shift 434 fd 118863 [18:01:24]save to /storage/0434/doc_00118863 [18:01:24]save last doc name /storage/0434/doc_00118863 to /storage/kkm_last_doc_name [18:01:24]save OK [18:01:24]Clear old archive folders... [18:01:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:24]tlvbuf is 020816A0 [18:01:24]SAM_PROTO_ClearQueue [18:01:24]wFMCommunicate request_size=4 [18:01:24]MH_SAM_APDU [18:01:24]CAPDU: 80 09 00 00 [18:01:24]Write to MH i2c: E2 08 00 4F 6F 80 09 00 00 00 00 00 00 30 [18:01:24]Write i2c OK [18:01:24]MH_I2C_Read... [18:01:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:24]Read from MH i2c: E2 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 03 00 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 03 00 4F 6F 00 90 00 32 [18:01:24]RAPDU: 90 00 [18:01:24]wFMCommunicate OK [18:01:24]SAM_PROTO_ClearQueue done [18:01:24]KKMCreateOFDPacket [18:01:24]OFDProtocolAddRootSTLVToBuf [18:01:24]FM_MakeSignedData [18:01:24]FM_MakeSignedData [18:01:24]SAM_PROTO_SignData [18:01:24]wFMCommunicate request_size=4 [18:01:24]MH_SAM_APDU [18:01:24]CAPDU: 80 0D 01 02 [18:01:24]Write to MH i2c: E2 08 00 50 6F 80 0D 01 02 00 00 00 00 38 [18:01:24]Write i2c OK [18:01:24]MH_I2C_Read... [18:01:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:24]Read from MH i2c: E2 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 03 00 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 03 00 50 6F 00 90 00 33 [18:01:24]RAPDU: 90 00 [18:01:24]wFMCommunicate OK [18:01:24]wFMCommunicate request_size=255 [18:01:24]MH_SAM_APDU [18:01:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EA 15 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 94 94 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 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 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 EF 00 00 00 F4 03 04 00 F9 D8 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F D0 01 00 35 04 06 00 D8 [18:01:24]Write to MH i2c: E2 02 01 51 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 EA 15 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 94 94 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 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 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 EF 00 00 00 F4 03 04 00 F9 D8 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F D0 01 00 35 04 06 00 D8 00 00 AC [18:01:24]Write i2c OK [18:01:24]MH_I2C_Read... [18:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:24]Read from MH i2c: E2 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 03 00 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 03 00 51 6F 00 90 00 34 [18:01:24]RAPDU: 90 00 [18:01:24]wFMCommunicate OK [18:01:24]wFMCommunicate request_size=10 [18:01:24]MH_SAM_APDU [18:01:24]CAPDU: 80 0D 02 02 05 B5 84 6A 5F 6C [18:01:24]Write to MH i2c: E2 0D 00 52 6F 80 0D 02 02 05 00 B5 84 6A 5F 6C 00 00 B3 [18:01:24]Write i2c OK [18:01:24]MH_I2C_Read... [18:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:24]Read from MH i2c: E2 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 03 00 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 03 00 52 6F 00 90 00 35 [18:01:24]RAPDU: 90 00 [18:01:24]wFMCommunicate OK [18:01:24]wFMCommunicate request_size=4 [18:01:24]MH_SAM_APDU [18:01:24]CAPDU: 80 0D 03 02 [18:01:24]Write to MH i2c: E2 08 00 53 6F 80 0D 03 02 00 00 00 00 3D [18:01:24]Write i2c OK [18:01:24]MH_I2C_Read... [18:01:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:24]Read from MH i2c: E2 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 0B 00 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 0B 00 53 6F 00 9A EE D5 84 1C 97 3F 5C 90 00 6D [18:01:24]RAPDU: 9A EE D5 84 1C 97 3F 5C 90 00 [18:01:24]wFMCommunicate OK [18:01:24]SAM_PROTO_SignData done [18:01:24]FM_MakeSignedData done [18:01:24]CreateOFDProtocolMessage [18:01:24]wFMCommunicate request_size=4 [18:01:24]MH_SAM_APDU [18:01:24]CAPDU: 80 11 00 00 [18:01:24]Write to MH i2c: E2 08 00 54 6F 80 11 00 00 00 00 00 00 3D [18:01:24]Write i2c OK [18:01:24]MH_I2C_Read... [18:01:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:24]Read from MH i2c: E2 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 17 00 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 17 00 54 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 98 [18:01:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:01:24]wFMCommunicate OK [18:01:24]CreateOFDProtocolMessage done [18:01:24]OFDSenderStorePacket 118863 [18:01:24]StoreOFDPacket docnum=118863 [18:01:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 39 40 07 01 EC 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EA 15 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 94 94 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 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 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 EF 00 00 00 F4 03 04 00 F9 D8 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F D0 01 00 35 04 06 00 D8 B5 84 6A 5F 6C 9A EE D5 84 1C 97 3F 5C [18:01:24]CheckFolder [18:01:24]dirname=/storage/ofd_packets [18:01:24]CheckFolder done [18:01:24]ProducePacketName [18:01:24]name=ofd_packets/00118863 [18:01:24]NVStorageSaveData ofd_packets/00118863 [18:01:24]File name is /storage/ofd_packets/00118863 [18:01:24]Write 301 bytes [18:01:24]NVStorageSaveData done [18:01:24]OFDSenderStorePacket done [18:01:24]KKMCreateOFDPacket done [18:01:24]NVStorageSaveData kkm_last_timestamp [18:01:24]File name is /storage/kkm_last_timestamp [18:01:24]Write 4 bytes [18:01:24]NVStorageSaveData done [18:01:24]ExternCall_PrintAddStr [18:01:24]wPrintStart [18:01:24]Write to MH i2c: 01 00 00 55 6F C4 [18:01:24]Write i2c OK [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: 01 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: 01 07 00 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: 01 07 00 55 6F 00 00 00 00 00 FF 0F D9 [18:01:24]RasterBufferAndPrint [18:01:24]line Счет N : (1)949753 [18:01:24]line ИНН: 02508201610067 [18:01:24]line Контрольно-Кассовый Чек [18:01:24]line ПРОДАЖА [18:01:24]line ТРК (МРК, ГНК) : 31 [18:01:24]line Товар: 2710124130 [18:01:24]line Аи-92-К-4 [18:01:24]line 5.610 * 67.80 [18:01:24]line = 380.36 [18:01:24]line НДС 12% НСП 1% [18:01:24]line > о реализуемом товаре [18:01:24]line ОКРУГЛЕНИЕ: -0.36 [18:01:24]line ИТОГО: 380.00 [18:01:24]line Внесено: 380.00 [18:01:24]line СДАЧА: 0.00 [18:01:24]line НСП 1% : 3.37 [18:01:24]line НДС 12% : 40.39 [18:01:24]line Наличными: 380.00 [18:01:24]line Безнал.: 0.00 [18:01:24]line Место: АЗС № 134 "Партнер Нефть" [18:01:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:01:24]line СНО: Общий режим [18:01:24]line Чек 239 29.07.2024 18:01 [18:01:24]line Смена: 434 ФФД: 1.0 [18:01:24]line ЗНМ: 0300000044 [18:01:24]line РНМ: 0000000000092660 [18:01:24]line Версия ККМ: 001 [18:01:24]line ФМ: 0000000000874939 [18:01:24]line ФД: 118863 [18:01:24]line ФПД: 238274122243948 [18:01:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180129&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118863&fm=238274122243948&tin=02508201610067®Number=0000000000092660&sum=38000 [18:01:25]written 0, free lines is 4095 [18:01:25]OFD Sender: Processing packet 118863 [packets to send 86, broken 85] [18:01:25]ProducePacketName [18:01:25]name=ofd_packets/00118863 [18:01:25]OFD Sender: To server: pG, [18:01:25]CommunicateWithHost lk.salyk.kg:30040 [18:01:25]ConnectInit lk.salyk.kg [18:01:25]Connected sock=10 [18:01:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 39 40 07 01 EC 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EA 15 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 94 94 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 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 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 EF 00 00 00 F4 03 04 00 F9 D8 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F D0 01 00 35 04 06 00 D8 B5 84 6A 5F 6C 9A EE D5 84 1C 97 3F 5C [18:01:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5A 4F 47 00 96 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 34 39 33 39 10 04 04 00 4F D0 01 00 F4 03 04 00 87 86 A7 66 B6 04 01 00 00 4A 8C 85 AB 78 4C 98 4E [18:01:25]CommunicateWithHost err = 0 [18:01:25]CheckOFDResponse [18:01:25]1017 (14) - 77093643461234 [18:01:25]1041 (16) - 0000000000874939 [18:01:25]1040 (4) - 118863 [18:01:25]1012 (4) - 29.07.2024 12:09 [18:01:25]1206 (1) - 0 [18:01:25]OFD Sender: Remove packet 118863 [18:01:25]ProducePacketName [18:01:25]name=ofd_packets/00118863 [18:01:25]NVStorageDeleteData [18:01:25]Write to MH i2c: 01 00 00 7F 6F EE [18:01:25]Write i2c OK [18:01:25]MH_I2C_Read... [18:01:25]Read from MH i2c: 01 [18:01:25]MH_I2C_Read... [18:01:25]Read from MH i2c: 01 07 00 [18:01:25]MH_I2C_Read... [18:01:25]Read from MH i2c: 01 07 00 7F 6F 00 00 00 00 00 DB 0C DC [18:01:25]RasterBufferAndPrint [18:01:25]line [18:01:25]line [18:01:25]line [18:01:25]line [18:01:25]line [18:01:25]written 0, free lines is 3298 [18:01:25]MH_Cut [18:01:25]Write to MH i2c: D1 01 00 86 6F 01 C7 [18:01:25]Write i2c OK [18:01:25]MH_I2C_Read... [18:01:25]Read from MH i2c: D1 [18:01:25]MH_I2C_Read... [18:01:25]Read from MH i2c: D1 01 00 [18:01:25]MH_I2C_Read... [18:01:25]Read from MH i2c: D1 01 00 86 6F 00 C6 [18:01:25]Write to MH i2c: 01 00 00 87 6F F6 [18:01:25]Write i2c OK [18:01:25]MH_I2C_Read... [18:01:26]OFD Sender: No OFD packet to send [18:01:26]*** Cut start [18:01:26]*** Partial cut [18:01:26]*** CUTSNS_PIN = 1 [18:01:26]*** CUTSNS_PIN = 0 [18:01:26]*** Brake cut motor [18:01:27]Read from MH i2c: 01 [18:01:27]MH_I2C_Read... [18:01:27]*** Stop cut motor [18:01:27]*** Cut end [18:01:27]Read from MH i2c: 01 07 00 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: 01 07 00 87 6F 00 00 00 00 00 FF 0F 0B [18:01:27]process_action close_receipt done [18:01:27]requested_data is exist [18:01:27]produce_requested_data [18:01:27]requested_item fm.sn is exist - process it [18:01:27]wFMCommunicate request_size=4 [18:01:27]MH_SAM_APDU [18:01:27]CAPDU: 80 11 00 00 [18:01:27]Write to MH i2c: E2 08 00 88 6F 80 11 00 00 00 00 00 00 71 [18:01:27]Write i2c OK [18:01:27]MH_I2C_Read... [18:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:27]Read from MH i2c: E2 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: E2 17 00 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: E2 17 00 88 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CC [18:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:01:27]wFMCommunicate OK [18:01:27]requested_item fd.num is exist - process it [18:01:27]SAM_PROTO_GetFieldsCounters [18:01:27]wFMCommunicate request_size=4 [18:01:27]MH_SAM_APDU [18:01:27]CAPDU: 80 13 00 00 [18:01:27]Write to MH i2c: E2 08 00 89 6F 80 13 00 00 00 00 00 00 74 [18:01:27]Write i2c OK [18:01:27]MH_I2C_Read... [18:01:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:27]Read from MH i2c: E2 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: E2 62 00 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: E2 62 00 89 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4F D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [18:01: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4F D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:27]wFMCommunicate OK [18:01:27]SAM_PROTO_GetFieldsCounters done [18:01:27]requested_item shift.num is exist - process it [18:01:27]requested_item shift.opened is exist - process it [18:01:27]req_shift_opened [18:01:27]FM_GetShiftState [18:01:27]SAM_PROTO_GetShiftState [18:01:27]wFMCommunicate request_size=4 [18:01:27]MH_SAM_APDU [18:01:27]CAPDU: 80 13 01 00 [18:01:27]Write to MH i2c: E2 08 00 8A 6F 80 13 01 00 00 00 00 00 76 [18:01:27]Write i2c OK [18:01:27]MH_I2C_Read... [18:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:27]Read from MH i2c: E2 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: E2 0E 00 [18:01:27]MH_I2C_Read... [18:01:27]Read from MH i2c: E2 0E 00 8A 6F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A4 [18:01:27]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:01:27]wFMCommunicate OK [18:01:27]SAM_PROTO_GetShiftState done [18:01:27]FM_GetShiftState done [18:01:27]req_shift_opened done [18:01:27]requested_item shift.open_date is exist - process it [18:01:27]req_shift_open_date [18:01:27]req_shift_open_date done [18:01:27]produce_requested_data done [18:01:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118863,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:01:27]process_action_free close_receipt [18:01:27]json_value_free [18:01:27]json_value_free done [18:01:27]process_json_proto returns [18:01:27]Send response to host [18:01:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118863,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:01:27]free response buf [18:01:27]execute_script done [18:01:27]execute_script returns [18:01:27]free content buf [18:01:27]Sock 9.Close socket [18:01:27]Sock 9.Thread stoped [18:01:31]OFD Sender: No OFD packet to send [18:01:36]OFD Sender: No OFD packet to send [18:01:41]OFD Sender: No OFD packet to send [18:01:46]OFD Sender: No OFD packet to send [18:01:51]OFD Sender: No OFD packet to send [18:01:56]OFD Sender: No OFD packet to send [18:02:01]OFD Sender: No OFD packet to send [18:02:06]OFD Sender: No OFD packet to send [18:02:11]OFD Sender: No OFD packet to send [18:02:16]OFD Sender: No OFD packet to send [18:02:21]OFD Sender: No OFD packet to send [18:02:26]OFD Sender: No OFD packet to send [18:02:31]OFD Sender: No OFD packet to send [18:02:36]OFD Sender: No OFD packet to send [18:02:41]OFD Sender: No OFD packet to send [18:02:46]OFD Sender: No OFD packet to send [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:26]OFD Sender: No OFD packet to send [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:41]OFD Sender: No OFD packet to send [18:03:46]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send [18:07:46]OFD Sender: No OFD packet to send [18:07:49]accept exits with 7 [18:07:49]New connection [18:07:49]New thread 3067239780 created [18:07:49]Thread 3067383140 joined [18:07:49]Waiting for new connection... [18:07:49] Sock 7.Parse request [18:07:49]Sock 7.Check first char [18:07:49]Sock 7.First char is OK [18:07:49]request: POST /json_proto HTTP/1.0 [18:07:49]Method: POST [18:07:49]URL: /json_proto [18:07:49]Method is POST - this is cgi request [18:07:49]url: /json_proto [18:07:49]query_string will be loaded in cgi processing [18:07:49]execute_cgi json_proto POST (null) [18:07:49]execute_cgi path=json_proto method=POST [18:07:49]POST find Content-Length [18:07:49]Host: 172.17.45.7:8080 [18:07:49]Content-Length: 674 [18:07:49]Content-Type: application/json [18:07:49] [18:07:49]POST finish read [18:07:49]Found Content-Length = 674 [18:07:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:49]execute_script... [18:07:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:49]POST & json_proto [18:07:49]process_json_proto [18:07:49]json parsed OK: [18:07:49]protocol is kg_v1.0 [18:07:49]action value=close_receipt [18:07:49]process_action close_receipt [18:07:49]cmd_close_receipt [18:07:49]MH_GetDate [18:07:49]Write to MH i2c: F0 00 00 8B 6F E9 [18:07:49]Write i2c OK [18:07:49]MH_I2C_Read... [18:07:49]Read from MH i2c: F0 [18:07:49]MH_I2C_Read... [18:07:49]Read from MH i2c: F0 09 00 [18:07:49]MH_I2C_Read... [18:07:49]Read from MH i2c: F0 09 00 8B 6F 00 7C DA A7 66 90 0F 3E 66 98 [18:07:49]GetLastDocTimeStamp 1722276089 [18:07:49]current date 1722276476 [18:07:49]FM_GetShiftState [18:07:49]SAM_PROTO_GetShiftState [18:07:49]wFMCommunicate request_size=4 [18:07:49]MH_SAM_APDU [18:07:49]CAPDU: 80 13 01 00 [18:07:49]Write to MH i2c: E2 08 00 8C 6F 80 13 01 00 00 00 00 00 78 [18:07:49]Write i2c OK [18:07:49]MH_I2C_Read... [18:07:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:49]Read from MH i2c: E2 [18:07:49]MH_I2C_Read... [18:07:49]Read from MH i2c: E2 0E 00 [18:07:49]MH_I2C_Read... [18:07:49]Read from MH i2c: E2 0E 00 8C 6F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A6 [18:07:49]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:07:49]wFMCommunicate OK [18:07:49]SAM_PROTO_GetShiftState done [18:07:49]FM_GetShiftState done [18:07:49]opened in 1722211641 [18:07:49]opened+sec_in_day 1722298041 [18:07:49]quantity*price = 70027 [18:07:49]sum+1 = 70029 [18:07:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 240 29.07.2024 18:07 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118864 ФПД: 13280945425348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180756&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118864&fm=13280945425348&tin=02508201610067®Number=0000000000092660&sum=70000 [18:07:50]StoreToDocumentArchive [18:07:50]shift 434 fd 118864 [18:07:50]save to /storage/0434/doc_00118864 [18:07:50]save last doc name /storage/0434/doc_00118864 to /storage/kkm_last_doc_name [18:07:50]save OK [18:07:50]Clear old archive folders... [18:07:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:07:50]tlvbuf is 01ED6020 [18:07:50]SAM_PROTO_ClearQueue [18:07:50]wFMCommunicate request_size=4 [18:07:50]MH_SAM_APDU [18:07:50]CAPDU: 80 09 00 00 [18:07:50]Write to MH i2c: E2 08 00 99 6F 80 09 00 00 00 00 00 00 7A [18:07:50]Write i2c OK [18:07:50]MH_I2C_Read... [18:07:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:51]Read from MH i2c: E2 [18:07:51]MH_I2C_Read... [18:07:51]Read from MH i2c: E2 03 00 [18:07:51]MH_I2C_Read... [18:07:51]Read from MH i2c: E2 03 00 99 6F 00 90 00 7C [18:07:51]RAPDU: 90 00 [18:07:51]wFMCommunicate OK [18:07:51]SAM_PROTO_ClearQueue done [18:07:51]KKMCreateOFDPacket [18:07:51]OFDProtocolAddRootSTLVToBuf [18:07:51]FM_MakeSignedData [18:07:51]FM_MakeSignedData [18:07:51]SAM_PROTO_SignData [18:07:51]wFMCommunicate request_size=4 [18:07:51]MH_SAM_APDU [18:07:51]CAPDU: 80 0D 01 02 [18:07:51]Write to MH i2c: E2 08 00 9A 6F 80 0D 01 02 00 00 00 00 82 [18:07:51]Write i2c OK [18:07:51]MH_I2C_Read... [18:07:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:51]Read from MH i2c: E2 [18:07:51]MH_I2C_Read... [18:07:51]Read from MH i2c: E2 03 00 [18:07:51]MH_I2C_Read... [18:07:51]Read from MH i2c: E2 03 00 9A 6F 00 90 00 7D [18:07:51]RAPDU: 90 00 [18:07:51]wFMCommunicate OK [18:07:51]wFMCommunicate request_size=255 [18:07:51]MH_SAM_APDU [18:07:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 7C DA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 D0 01 00 35 04 06 00 0C 14 36 08 [18:07:51]Write to MH i2c: E2 02 01 9B 6F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 7C DA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 D0 01 00 35 04 06 00 0C 14 36 08 00 00 93 [18:07:51]Write i2c OK [18:07:51]MH_I2C_Read... [18:07:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:51]Read from MH i2c: E2 [18:07:51]MH_I2C_Read... [18:07:51]Read from MH i2c: E2 03 00 [18:07:51]MH_I2C_Read... [18:07:51]Read from MH i2c: E2 03 00 9B 6F 00 90 00 7E [18:07:51]RAPDU: 90 00 [18:07:51]wFMCommunicate OK [18:07:51]wFMCommunicate request_size=7 [18:07:51]MH_SAM_APDU [18:07:51]CAPDU: 80 0D 02 02 02 CB C4 [18:07:51]Write to MH i2c: E2 0A 00 9C 6F 80 0D 02 02 02 00 CB C4 00 00 18 [18:07:51]Write i2c OK [18:07:51]MH_I2C_Read... [18:07:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:51]Read from MH i2c: E2 [18:07:51]MH_I2C_Read... [18:07:51]Read from MH i2c: E2 03 00 [18:07:51]MH_I2C_Read... [18:07:51]Read from MH i2c: E2 03 00 9C 6F 00 90 00 7F [18:07:51]RAPDU: 90 00 [18:07:51]wFMCommunicate OK [18:07:51]wFMCommunicate request_size=4 [18:07:51]MH_SAM_APDU [18:07:51]CAPDU: 80 0D 03 02 [18:07:51]Write to MH i2c: E2 08 00 9D 6F 80 0D 03 02 00 00 00 00 87 [18:07:51]Write i2c OK [18:07:51]MH_I2C_Read... [18:07:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:51]Read from MH i2c: E2 [18:07:51]MH_I2C_Read... [18:07:51]Read from MH i2c: E2 0B 00 [18:07:51]MH_I2C_Read... [18:07:51]Read from MH i2c: E2 0B 00 9D 6F 00 E4 BA 23 19 E8 60 CE 25 90 00 9D [18:07:51]RAPDU: E4 BA 23 19 E8 60 CE 25 90 00 [18:07:51]wFMCommunicate OK [18:07:51]SAM_PROTO_SignData done [18:07:51]FM_MakeSignedData done [18:07:51]CreateOFDProtocolMessage [18:07:51]wFMCommunicate request_size=4 [18:07:51]MH_SAM_APDU [18:07:51]CAPDU: 80 11 00 00 [18:07:51]Write to MH i2c: E2 08 00 9E 6F 80 11 00 00 00 00 00 00 87 [18:07:51]Write i2c OK [18:07:51]MH_I2C_Read... [18:07:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:51]Read from MH i2c: E2 [18:07:51]MH_I2C_Read... [18:07:51]Read from MH i2c: E2 17 00 [18:07:51]MH_I2C_Read... [18:07:51]Read from MH i2c: E2 17 00 9E 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E2 [18:07:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:07:51]wFMCommunicate OK [18:07:51]CreateOFDProtocolMessage done [18:07:51]OFDSenderStorePacket 118864 [18:07:51]StoreOFDPacket docnum=118864 [18:07:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 94 B8 04 01 FD A7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 7C DA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 D0 01 00 35 04 06 00 0C 14 36 08 CB C4 E4 BA 23 19 E8 60 CE 25 [18:07:51]CheckFolder [18:07:51]dirname=/storage/ofd_packets [18:07:51]CheckFolder done [18:07:51]ProducePacketName [18:07:51]name=ofd_packets/00118864 [18:07:51]NVStorageSaveData ofd_packets/00118864 [18:07:51]File name is /storage/ofd_packets/00118864 [18:07:51]Write 298 bytes [18:07:51]NVStorageSaveData done [18:07:51]OFDSenderStorePacket done [18:07:51]KKMCreateOFDPacket done [18:07:51]NVStorageSaveData kkm_last_timestamp [18:07:51]File name is /storage/kkm_last_timestamp [18:07:51]Write 4 bytes [18:07:51]NVStorageSaveData done [18:07:51]ExternCall_PrintAddStr [18:07:51]wPrintStart [18:07:51]Write to MH i2c: 01 00 00 9F 6F 0E [18:07:51]Write i2c OK [18:07:51]MH_I2C_Read... [18:07:51]Read from MH i2c: 01 [18:07:51]MH_I2C_Read... [18:07:51]Read from MH i2c: 01 07 00 [18:07:51]MH_I2C_Read... [18:07:51]Read from MH i2c: 01 07 00 9F 6F 00 00 00 00 00 FF 0F 23 [18:07:51]RasterBufferAndPrint [18:07:51]line Счет N : (1)949755 [18:07:51]line ИНН: 02508201610067 [18:07:51]line Контрольно-Кассовый Чек [18:07:51]line ПРОДАЖА [18:07:51]line ТРК (МРК, ГНК) : 44 [18:07:51]line Товар: 2710194800 [18:07:51]line ДТ-К-5 [18:07:51]line 9.190 * 76.20 [18:07:51]line = 700.28 [18:07:51]line НДС 12% НСП 1% [18:07:51]line > о реализуемом товаре [18:07:51]line ОКРУГЛЕНИЕ: -0.28 [18:07:51]line ИТОГО: 700.00 [18:07:51]line Внесено: 700.00 [18:07:51]line СДАЧА: 0.00 [18:07:51]line НСП 1% : 6.20 [18:07:51]line НДС 12% : 74.37 [18:07:51]line Наличными: 700.00 [18:07:51]line Безнал.: 0.00 [18:07:51]line Место: АЗС № 134 "Партнер Нефть" [18:07:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:07:51]line СНО: Общий режим [18:07:51]line Чек 240 29.07.2024 18:07 [18:07:51]line Смена: 434 ФФД: 1.0 [18:07:51]line ЗНМ: 0300000044 [18:07:51]line РНМ: 0000000000092660 [18:07:51]line Версия ККМ: 001 [18:07:51]line ФМ: 0000000000874939 [18:07:51]line ФД: 118864 [18:07:51]line ФПД: 13280945425348 [18:07:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180756&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118864&fm=13280945425348&tin=02508201610067®Number=0000000000092660&sum=70000 [18:07:51]OFD Sender: Processing packet 118864 [packets to send 86, broken 85] [18:07:51]ProducePacketName [18:07:51]name=ofd_packets/00118864 [18:07:51]OFD Sender: To server: pG, [18:07:51]CommunicateWithHost lk.salyk.kg:30040 [18:07:51]ConnectInit lk.salyk.kg [18:07:51]written 0, free lines is 4095 [18:07:51]Connected sock=11 [18:07:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 94 B8 04 01 FD A7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 7C DA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 D0 01 00 35 04 06 00 0C 14 36 08 CB C4 E4 BA 23 19 E8 60 CE 25 [18:07:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6E 71 47 00 F2 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 34 39 33 39 10 04 04 00 50 D0 01 00 F4 03 04 00 09 88 A7 66 B6 04 01 00 00 3F 2E 66 EE 99 DE 45 82 [18:07:52]CommunicateWithHost err = 0 [18:07:52]CheckOFDResponse [18:07:52]1017 (14) - 77093643461234 [18:07:52]1041 (16) - 0000000000874939 [18:07:52]1040 (4) - 118864 [18:07:52]1012 (4) - 29.07.2024 12:16 [18:07:52]1206 (1) - 0 [18:07:52]OFD Sender: Remove packet 118864 [18:07:52]ProducePacketName [18:07:52]name=ofd_packets/00118864 [18:07:52]NVStorageDeleteData [18:07:52]Write to MH i2c: 01 00 00 C9 6F 38 [18:07:52]Write i2c OK [18:07:52]MH_I2C_Read... [18:07:52]Read from MH i2c: 01 [18:07:52]MH_I2C_Read... [18:07:52]Read from MH i2c: 01 07 00 [18:07:52]MH_I2C_Read... [18:07:52]Read from MH i2c: 01 07 00 C9 6F 00 00 00 00 00 EC 0C 37 [18:07:52]RasterBufferAndPrint [18:07:52]line [18:07:52]line [18:07:52]line [18:07:52]line [18:07:52]line [18:07:52]written 0, free lines is 3315 [18:07:52]MH_Cut [18:07:52]Write to MH i2c: D1 01 00 D0 6F 01 11 [18:07:52]Write i2c OK [18:07:52]MH_I2C_Read... [18:07:52]Read from MH i2c: D1 [18:07:52]MH_I2C_Read... [18:07:52]Read from MH i2c: D1 01 00 [18:07:52]MH_I2C_Read... [18:07:52]Read from MH i2c: D1 01 00 D0 6F 00 10 [18:07:52]Write to MH i2c: 01 00 00 D1 6F 40 [18:07:52]Write i2c OK [18:07:52]MH_I2C_Read... [18:07:52]OFD Sender: No OFD packet to send [18:07:52]*** Cut start [18:07:52]*** Partial cut [18:07:52]*** CUTSNS_PIN = 1 [18:07:53]*** CUTSNS_PIN = 0 [18:07:53]*** Brake cut motor [18:07:53]Read from MH i2c: 01 [18:07:53]MH_I2C_Read... [18:07:53]*** Stop cut motor [18:07:53]*** Cut end [18:07:53]Read from MH i2c: 01 07 00 [18:07:53]MH_I2C_Read... [18:07:53]Read from MH i2c: 01 07 00 D1 6F 00 00 00 00 00 FF 0F 55 [18:07:53]process_action close_receipt done [18:07:53]requested_data is exist [18:07:53]produce_requested_data [18:07:53]requested_item fm.sn is exist - process it [18:07:53]wFMCommunicate request_size=4 [18:07:53]MH_SAM_APDU [18:07:53]CAPDU: 80 11 00 00 [18:07:53]Write to MH i2c: E2 08 00 D2 6F 80 11 00 00 00 00 00 00 BB [18:07:53]Write i2c OK [18:07:53]MH_I2C_Read... [18:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:53]Read from MH i2c: E2 [18:07:53]MH_I2C_Read... [18:07:53]Read from MH i2c: E2 17 00 [18:07:53]MH_I2C_Read... [18:07:53]Read from MH i2c: E2 17 00 D2 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 16 [18:07:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:07:53]wFMCommunicate OK [18:07:53]requested_item fd.num is exist - process it [18:07:53]SAM_PROTO_GetFieldsCounters [18:07:53]wFMCommunicate request_size=4 [18:07:53]MH_SAM_APDU [18:07:53]CAPDU: 80 13 00 00 [18:07:53]Write to MH i2c: E2 08 00 D3 6F 80 13 00 00 00 00 00 00 BE [18:07:53]Write i2c OK [18:07:53]MH_I2C_Read... [18:07:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:53]Read from MH i2c: E2 [18:07:53]MH_I2C_Read... [18:07:53]Read from MH i2c: E2 62 00 [18:07:53]MH_I2C_Read... [18:07:53]Read from MH i2c: E2 62 00 D3 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 50 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [18:07: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 50 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:53]wFMCommunicate OK [18:07:53]SAM_PROTO_GetFieldsCounters done [18:07:53]requested_item shift.num is exist - process it [18:07:53]requested_item shift.opened is exist - process it [18:07:53]req_shift_opened [18:07:53]FM_GetShiftState [18:07:53]SAM_PROTO_GetShiftState [18:07:53]wFMCommunicate request_size=4 [18:07:53]MH_SAM_APDU [18:07:53]CAPDU: 80 13 01 00 [18:07:53]Write to MH i2c: E2 08 00 D4 6F 80 13 01 00 00 00 00 00 C0 [18:07:53]Write i2c OK [18:07:53]MH_I2C_Read... [18:07:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:53]Read from MH i2c: E2 [18:07:53]MH_I2C_Read... [18:07:53]Read from MH i2c: E2 0E 00 [18:07:53]MH_I2C_Read... [18:07:53]Read from MH i2c: E2 0E 00 D4 6F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 EE [18:07:53]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:07:53]wFMCommunicate OK [18:07:53]SAM_PROTO_GetShiftState done [18:07:53]FM_GetShiftState done [18:07:53]req_shift_opened done [18:07:53]requested_item shift.open_date is exist - process it [18:07:53]req_shift_open_date [18:07:53]req_shift_open_date done [18:07:53]produce_requested_data done [18:07:53]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118864,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:07:53]process_action_free close_receipt [18:07:53]json_value_free [18:07:53]json_value_free done [18:07:53]process_json_proto returns [18:07:53]Send response to host [18:07:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118864,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:07:53]free response buf [18:07:53]execute_script done [18:07:53]execute_script returns [18:07:53]free content buf [18:07:53]Sock 7.Close socket [18:07:53]Sock 7.Thread stoped [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:11]accept exits with 9 [18:08:11]New connection [18:08:11]New thread 3067383140 created [18:08:11]Thread 3067239780 joined [18:08:11]Waiting for new connection... [18:08:11] Sock 9.Parse request [18:08:11]Sock 9.Check first char [18:08:11]Sock 9.First char is OK [18:08:11]request: POST /json_proto HTTP/1.0 [18:08:11]Method: POST [18:08:11]URL: /json_proto [18:08:11]Method is POST - this is cgi request [18:08:11]url: /json_proto [18:08:11]query_string will be loaded in cgi processing [18:08:11]execute_cgi json_proto POST (null) [18:08:11]execute_cgi path=json_proto method=POST [18:08:11]POST find Content-Length [18:08:11]Host: 172.17.45.7:8080 [18:08:11]Content-Length: 819 [18:08:11]Content-Type: application/json [18:08:11] [18:08:11]POST finish read [18:08:11]Found Content-Length = 819 [18:08:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:11]execute_script... [18:08:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:11]POST & json_proto [18:08:11]process_json_proto [18:08:11]json parsed OK: [18:08:11]protocol is kg_v1.0 [18:08:11]action value=close_receipt [18:08:11]process_action close_receipt [18:08:11]cmd_close_receipt [18:08:11]MH_GetDate [18:08:11]Write to MH i2c: F0 00 00 D5 6F 33 [18:08:11]Write i2c OK [18:08:11]MH_I2C_Read... [18:08:11]Read from MH i2c: F0 [18:08:11]MH_I2C_Read... [18:08:11]Read from MH i2c: F0 09 00 [18:08:11]MH_I2C_Read... [18:08:11]Read from MH i2c: F0 09 00 D5 6F 00 92 DA A7 66 90 0F 3E 66 F8 [18:08:11]GetLastDocTimeStamp 1722276476 [18:08:11]current date 1722276498 [18:08:11]FM_GetShiftState [18:08:11]SAM_PROTO_GetShiftState [18:08:11]wFMCommunicate request_size=4 [18:08:11]MH_SAM_APDU [18:08:11]CAPDU: 80 13 01 00 [18:08:11]Write to MH i2c: E2 08 00 D6 6F 80 13 01 00 00 00 00 00 C2 [18:08:11]Write i2c OK [18:08:11]MH_I2C_Read... [18:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:11]Read from MH i2c: E2 [18:08:11]MH_I2C_Read... [18:08:11]Read from MH i2c: E2 0E 00 [18:08:11]MH_I2C_Read... [18:08:11]Read from MH i2c: E2 0E 00 D6 6F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F0 [18:08:11]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:08:11]wFMCommunicate OK [18:08:11]SAM_PROTO_GetShiftState done [18:08:11]FM_GetShiftState done [18:08:11]opened in 1722211641 [18:08:11]opened+sec_in_day 1722298041 [18:08:11]quantity*price = 300075 [18:08:11]sum+1 = 300077 [18:08:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 241 29.07.2024 18:08 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118865 ФПД: 168975184232664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180818&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118865&fm=168975184232664&tin=02508201610067®Number=0000000000092660&sum=300000 [18:08:13]StoreToDocumentArchive [18:08:13]shift 434 fd 118865 [18:08:13]save to /storage/0434/doc_00118865 [18:08:13]save last doc name /storage/0434/doc_00118865 to /storage/kkm_last_doc_name [18:08:13]save OK [18:08:13]Clear old archive folders... [18:08:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:08:13]tlvbuf is 01E941C0 [18:08:13]SAM_PROTO_ClearQueue [18:08:13]wFMCommunicate request_size=4 [18:08:13]MH_SAM_APDU [18:08:13]CAPDU: 80 09 00 00 [18:08:13]Write to MH i2c: E2 08 00 E3 6F 80 09 00 00 00 00 00 00 C4 [18:08:13]Write i2c OK [18:08:13]MH_I2C_Read... [18:08:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:13]Read from MH i2c: E2 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: E2 03 00 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: E2 03 00 E3 6F 00 90 00 C6 [18:08:13]RAPDU: 90 00 [18:08:13]wFMCommunicate OK [18:08:13]SAM_PROTO_ClearQueue done [18:08:13]KKMCreateOFDPacket [18:08:13]OFDProtocolAddRootSTLVToBuf [18:08:13]FM_MakeSignedData [18:08:13]FM_MakeSignedData [18:08:13]SAM_PROTO_SignData [18:08:13]wFMCommunicate request_size=4 [18:08:13]MH_SAM_APDU [18:08:13]CAPDU: 80 0D 01 02 [18:08:13]Write to MH i2c: E2 08 00 E4 6F 80 0D 01 02 00 00 00 00 CC [18:08:13]Write i2c OK [18:08:13]MH_I2C_Read... [18:08:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:13]Read from MH i2c: E2 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: E2 03 00 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: E2 03 00 E4 6F 00 90 00 C7 [18:08:13]RAPDU: 90 00 [18:08:13]wFMCommunicate OK [18:08:13]wFMCommunicate request_size=255 [18:08:13]MH_SAM_APDU [18:08:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 92 DA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 D0 01 00 35 04 06 00 99 AE 99 D5 [18:08:13]Write to MH i2c: E2 02 01 E5 6F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 92 DA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 D0 01 00 35 04 06 00 99 AE 99 D5 00 00 87 [18:08:13]Write i2c OK [18:08:13]MH_I2C_Read... [18:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:13]Read from MH i2c: E2 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: E2 03 00 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: E2 03 00 E5 6F 00 90 00 C8 [18:08:13]RAPDU: 90 00 [18:08:13]wFMCommunicate OK [18:08:13]wFMCommunicate request_size=7 [18:08:13]MH_SAM_APDU [18:08:13]CAPDU: 80 0D 02 02 02 00 D8 [18:08:13]Write to MH i2c: E2 0A 00 E6 6F 80 0D 02 02 02 00 00 D8 00 00 AB [18:08:13]Write i2c OK [18:08:13]MH_I2C_Read... [18:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:13]Read from MH i2c: E2 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: E2 03 00 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: E2 03 00 E6 6F 00 90 00 C9 [18:08:13]RAPDU: 90 00 [18:08:13]wFMCommunicate OK [18:08:13]wFMCommunicate request_size=4 [18:08:13]MH_SAM_APDU [18:08:13]CAPDU: 80 0D 03 02 [18:08:13]Write to MH i2c: E2 08 00 E7 6F 80 0D 03 02 00 00 00 00 D1 [18:08:13]Write i2c OK [18:08:13]MH_I2C_Read... [18:08:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:13]Read from MH i2c: E2 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: E2 0B 00 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: E2 0B 00 E7 6F 00 2D 57 DA C5 E9 5D 25 7C 90 00 DC [18:08:13]RAPDU: 2D 57 DA C5 E9 5D 25 7C 90 00 [18:08:13]wFMCommunicate OK [18:08:13]SAM_PROTO_SignData done [18:08:13]FM_MakeSignedData done [18:08:13]CreateOFDProtocolMessage [18:08:13]wFMCommunicate request_size=4 [18:08:13]MH_SAM_APDU [18:08:13]CAPDU: 80 11 00 00 [18:08:13]Write to MH i2c: E2 08 00 E8 6F 80 11 00 00 00 00 00 00 D1 [18:08:13]Write i2c OK [18:08:13]MH_I2C_Read... [18:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:13]Read from MH i2c: E2 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: E2 17 00 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: E2 17 00 E8 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2C [18:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:08:13]wFMCommunicate OK [18:08:13]CreateOFDProtocolMessage done [18:08:13]OFDSenderStorePacket 118865 [18:08:13]StoreOFDPacket docnum=118865 [18:08:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 84 3D 04 01 B2 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 92 DA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 D0 01 00 35 04 06 00 99 AE 99 D5 00 D8 2D 57 DA C5 E9 5D 25 7C [18:08:13]CheckFolder [18:08:13]dirname=/storage/ofd_packets [18:08:13]CheckFolder done [18:08:13]ProducePacketName [18:08:13]name=ofd_packets/00118865 [18:08:13]NVStorageSaveData ofd_packets/00118865 [18:08:13]File name is /storage/ofd_packets/00118865 [18:08:13]Write 298 bytes [18:08:13]NVStorageSaveData done [18:08:13]OFDSenderStorePacket done [18:08:13]KKMCreateOFDPacket done [18:08:13]NVStorageSaveData kkm_last_timestamp [18:08:13]File name is /storage/kkm_last_timestamp [18:08:13]Write 4 bytes [18:08:13]NVStorageSaveData done [18:08:13]ExternCall_PrintAddStr [18:08:13]wPrintStart [18:08:13]Write to MH i2c: 01 00 00 E9 6F 58 [18:08:13]Write i2c OK [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: 01 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: 01 07 00 [18:08:13]MH_I2C_Read... [18:08:13]Read from MH i2c: 01 07 00 E9 6F 00 00 00 00 00 FF 0F 6D [18:08:13]RasterBufferAndPrint [18:08:13]line Счет N : (1)949754 [18:08:13]line ИНН: 02508201610067 [18:08:13]line Контрольно-Кассовый Чек [18:08:13]line ПРОДАЖА [18:08:13]line ТРК (МРК, ГНК) : 54 [18:08:13]line Товар: 2710194800 [18:08:13]line ДТ-К-5 [18:08:13]line 39.380 * 76.20 [18:08:13]line = 3000.76 [18:08:13]line НДС 12% НСП 1% [18:08:13]line > о реализуемом товаре [18:08:13]line ОКРУГЛЕНИЕ: -0.76 [18:08:13]line ИТОГО: 3000.00 [18:08:13]line НСП 1% : 26.55 [18:08:13]line НДС 12% : 318.66 [18:08:13]line Наличными: 0.00 [18:08:13]line Безнал.: 3000.00 [18:08:13]line Место: АЗС № 134 "Партнер Нефть" [18:08:13]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:08:13]line СНО: Общий режим [18:08:13]line Чек 241 29.07.2024 18:08 [18:08:13]line Смена: 434 ФФД: 1.0 [18:08:13]line ЗНМ: 0300000044 [18:08:13]line РНМ: 0000000000092660 [18:08:13]line Версия ККМ: 001 [18:08:13]line Платежная система: O! деньги [18:08:13]line ФМ: 0000000000874939 [18:08:13]line ФД: 118865 [18:08:13]line ФПД: 168975184232664 [18:08:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180818&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118865&fm=168975184232664&tin=02508201610067®Number=0000000000092660&sum=300000 [18:08:13]OFD Sender: Processing packet 118865 [packets to send 86, broken 85] [18:08:13]ProducePacketName [18:08:13]name=ofd_packets/00118865 [18:08:13]OFD Sender: To server: pG, [18:08:13]CommunicateWithHost lk.salyk.kg:30040 [18:08:13]ConnectInit lk.salyk.kg [18:08:13]written 0, free lines is 4095 [18:08:13]Connected sock=10 [18:08:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 84 3D 04 01 B2 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 92 DA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 D0 01 00 35 04 06 00 99 AE 99 D5 00 D8 2D 57 DA C5 E9 5D 25 7C [18:08:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1B CE 47 00 B1 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 34 39 33 39 10 04 04 00 51 D0 01 00 F4 03 04 00 1F 88 A7 66 B6 04 01 00 00 5C D5 9C 30 DD 0C 89 97 [18:08:14]CommunicateWithHost err = 0 [18:08:14]CheckOFDResponse [18:08:14]1017 (14) - 77093643461234 [18:08:14]1041 (16) - 0000000000874939 [18:08:14]1040 (4) - 118865 [18:08:14]1012 (4) - 29.07.2024 12:16 [18:08:14]1206 (1) - 0 [18:08:14]OFD Sender: Remove packet 118865 [18:08:14]ProducePacketName [18:08:14]name=ofd_packets/00118865 [18:08:14]NVStorageDeleteData [18:08:14]Write to MH i2c: 01 00 00 13 70 83 [18:08:14]Write i2c OK [18:08:14]MH_I2C_Read... [18:08:14]Read from MH i2c: 01 [18:08:14]MH_I2C_Read... [18:08:14]Read from MH i2c: 01 07 00 [18:08:14]MH_I2C_Read... [18:08:14]Read from MH i2c: 01 07 00 13 70 00 00 00 00 00 EB 0C 81 [18:08:14]RasterBufferAndPrint [18:08:14]line [18:08:14]line [18:08:14]line [18:08:14]line [18:08:14]line [18:08:14]written 0, free lines is 3314 [18:08:14]MH_Cut [18:08:14]Write to MH i2c: D1 01 00 1A 70 01 5C [18:08:14]Write i2c OK [18:08:14]MH_I2C_Read... [18:08:14]Read from MH i2c: D1 [18:08:14]MH_I2C_Read... [18:08:14]Read from MH i2c: D1 01 00 [18:08:14]MH_I2C_Read... [18:08:14]Read from MH i2c: D1 01 00 1A 70 00 5B [18:08:14]Write to MH i2c: 01 00 00 1B 70 8B [18:08:14]Write i2c OK [18:08:14]MH_I2C_Read... [18:08:14]OFD Sender: No OFD packet to send [18:08:15]*** Cut start [18:08:15]*** Partial cut [18:08:15]*** CUTSNS_PIN = 1 [18:08:15]*** CUTSNS_PIN = 0 [18:08:15]*** Brake cut motor [18:08:15]Read from MH i2c: 01 [18:08:15]MH_I2C_Read... [18:08:15]*** Stop cut motor [18:08:15]*** Cut end [18:08:15]Read from MH i2c: 01 07 00 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: 01 07 00 1B 70 00 00 00 00 00 FF 0F A0 [18:08:15]process_action close_receipt done [18:08:15]requested_data is exist [18:08:15]produce_requested_data [18:08:15]requested_item fm.sn is exist - process it [18:08:15]wFMCommunicate request_size=4 [18:08:15]MH_SAM_APDU [18:08:15]CAPDU: 80 11 00 00 [18:08:15]Write to MH i2c: E2 08 00 1C 70 80 11 00 00 00 00 00 00 06 [18:08:15]Write i2c OK [18:08:15]MH_I2C_Read... [18:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:15]Read from MH i2c: E2 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: E2 17 00 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: E2 17 00 1C 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 61 [18:08:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:08:15]wFMCommunicate OK [18:08:15]requested_item fd.num is exist - process it [18:08:15]SAM_PROTO_GetFieldsCounters [18:08:15]wFMCommunicate request_size=4 [18:08:15]MH_SAM_APDU [18:08:15]CAPDU: 80 13 00 00 [18:08:15]Write to MH i2c: E2 08 00 1D 70 80 13 00 00 00 00 00 00 09 [18:08:15]Write i2c OK [18:08:15]MH_I2C_Read... [18:08:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:15]Read from MH i2c: E2 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: E2 62 00 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: E2 62 00 1D 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 51 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [18:08:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 51 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:08:15]wFMCommunicate OK [18:08:15]SAM_PROTO_GetFieldsCounters done [18:08:15]requested_item shift.num is exist - process it [18:08:15]requested_item shift.opened is exist - process it [18:08:15]req_shift_opened [18:08:15]FM_GetShiftState [18:08:15]SAM_PROTO_GetShiftState [18:08:15]wFMCommunicate request_size=4 [18:08:15]MH_SAM_APDU [18:08:15]CAPDU: 80 13 01 00 [18:08:15]Write to MH i2c: E2 08 00 1E 70 80 13 01 00 00 00 00 00 0B [18:08:15]Write i2c OK [18:08:15]MH_I2C_Read... [18:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:15]Read from MH i2c: E2 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: E2 0E 00 [18:08:15]MH_I2C_Read... [18:08:15]Read from MH i2c: E2 0E 00 1E 70 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 39 [18:08:15]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:08:15]wFMCommunicate OK [18:08:15]SAM_PROTO_GetShiftState done [18:08:15]FM_GetShiftState done [18:08:15]req_shift_opened done [18:08:15]requested_item shift.open_date is exist - process it [18:08:15]req_shift_open_date [18:08:15]req_shift_open_date done [18:08:15]produce_requested_data done [18:08:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118865,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:08:15]process_action_free close_receipt [18:08:15]json_value_free [18:08:15]json_value_free done [18:08:15]process_json_proto returns [18:08:15]Send response to host [18:08:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118865,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:08:15]free response buf [18:08:15]execute_script done [18:08:15]execute_script returns [18:08:15]free content buf [18:08:15]Sock 9.Close socket [18:08:15]Sock 9.Thread stoped [18:08:19]OFD Sender: No OFD packet to send [18:08:24]OFD Sender: No OFD packet to send [18:08:29]OFD Sender: No OFD packet to send [18:08:34]OFD Sender: No OFD packet to send [18:08:39]OFD Sender: No OFD packet to send [18:08:44]OFD Sender: No OFD packet to send [18:08:49]OFD Sender: No OFD packet to send [18:08:54]OFD Sender: No OFD packet to send [18:08:59]OFD Sender: No OFD packet to send [18:09:04]OFD Sender: No OFD packet to send [18:09:09]OFD Sender: No OFD packet to send [18:09:14]OFD Sender: No OFD packet to send [18:09:19]OFD Sender: No OFD packet to send [18:09:24]OFD Sender: No OFD packet to send [18:09:29]OFD Sender: No OFD packet to send [18:09:34]OFD Sender: No OFD packet to send [18:09:39]OFD Sender: No OFD packet to send [18:09:44]OFD Sender: No OFD packet to send [18:09:49]OFD Sender: No OFD packet to send [18:09:54]OFD Sender: No OFD packet to send [18:09:59]OFD Sender: No OFD packet to send [18:10:01]accept exits with 7 [18:10:01]New connection [18:10:01]New thread 3067239780 created [18:10:01]Thread 3067383140 joined [18:10:01]Waiting for new connection... [18:10:01] Sock 7.Parse request [18:10:01]Sock 7.Check first char [18:10:01]Sock 7.First char is OK [18:10:01]request: POST /json_proto HTTP/1.0 [18:10:01]Method: POST [18:10:01]URL: /json_proto [18:10:01]Method is POST - this is cgi request [18:10:01]url: /json_proto [18:10:01]query_string will be loaded in cgi processing [18:10:01]execute_cgi json_proto POST (null) [18:10:01]execute_cgi path=json_proto method=POST [18:10:01]POST find Content-Length [18:10:01]Host: 172.17.45.7:8080 [18:10:01]Content-Length: 679 [18:10:01]Content-Type: application/json [18:10:01] [18:10:01]POST finish read [18:10:01]Found Content-Length = 679 [18:10:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:01]execute_script... [18:10:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:01]POST & json_proto [18:10:01]process_json_proto [18:10:01]json parsed OK: [18:10:01]protocol is kg_v1.0 [18:10:01]action value=close_receipt [18:10:01]process_action close_receipt [18:10:01]cmd_close_receipt [18:10:01]MH_GetDate [18:10:01]Write to MH i2c: F0 00 00 1F 70 7E [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: F0 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: F0 09 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: F0 09 00 1F 70 00 00 DB A7 66 90 0F 3E 66 B2 [18:10:01]GetLastDocTimeStamp 1722276498 [18:10:01]current date 1722276608 [18:10:01]FM_GetShiftState [18:10:01]SAM_PROTO_GetShiftState [18:10:01]wFMCommunicate request_size=4 [18:10:01]MH_SAM_APDU [18:10:01]CAPDU: 80 13 01 00 [18:10:01]Write to MH i2c: E2 08 00 20 70 80 13 01 00 00 00 00 00 0D [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:01]Read from MH i2c: E2 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 0E 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 0E 00 20 70 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 3B [18:10:01]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:10:01]wFMCommunicate OK [18:10:01]SAM_PROTO_GetShiftState done [18:10:01]FM_GetShiftState done [18:10:01]opened in 1722211641 [18:10:01]opened+sec_in_day 1722298041 [18:10:01]quantity*price = 180060 [18:10:01]sum+1 = 180062 [18:10:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.21 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 242 29.07.2024 18:10 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118866 ФПД: 55157954052082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T181008&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118866&fm=55157954052082&tin=02508201610067®Number=0000000000092660&sum=180000 [18:10:02]StoreToDocumentArchive [18:10:02]shift 434 fd 118866 [18:10:02]save to /storage/0434/doc_00118866 [18:10:02]save last doc name /storage/0434/doc_00118866 to /storage/kkm_last_doc_name [18:10:02]save OK [18:10:02]Clear old archive folders... [18:10:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:10:02]tlvbuf is 01E59100 [18:10:02]SAM_PROTO_ClearQueue [18:10:02]wFMCommunicate request_size=4 [18:10:02]MH_SAM_APDU [18:10:02]CAPDU: 80 09 00 00 [18:10:02]Write to MH i2c: E2 08 00 2D 70 80 09 00 00 00 00 00 00 0F [18:10:02]Write i2c OK [18:10:02]MH_I2C_Read... [18:10:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:02]Read from MH i2c: E2 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 03 00 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 03 00 2D 70 00 90 00 11 [18:10:02]RAPDU: 90 00 [18:10:02]wFMCommunicate OK [18:10:02]SAM_PROTO_ClearQueue done [18:10:02]KKMCreateOFDPacket [18:10:02]OFDProtocolAddRootSTLVToBuf [18:10:02]FM_MakeSignedData [18:10:02]FM_MakeSignedData [18:10:02]SAM_PROTO_SignData [18:10:02]wFMCommunicate request_size=4 [18:10:02]MH_SAM_APDU [18:10:02]CAPDU: 80 0D 01 02 [18:10:02]Write to MH i2c: E2 08 00 2E 70 80 0D 01 02 00 00 00 00 17 [18:10:02]Write i2c OK [18:10:02]MH_I2C_Read... [18:10:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:02]Read from MH i2c: E2 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 03 00 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 03 00 2E 70 00 90 00 12 [18:10:02]RAPDU: 90 00 [18:10:02]wFMCommunicate OK [18:10:02]wFMCommunicate request_size=255 [18:10:02]MH_SAM_APDU [18:10:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 00 DB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 D0 01 00 35 04 06 00 32 2A 76 41 [18:10:02]Write to MH i2c: E2 02 01 2F 70 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 00 DB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 D0 01 00 35 04 06 00 32 2A 76 41 00 00 E7 [18:10:02]Write i2c OK [18:10:02]MH_I2C_Read... [18:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:03]Read from MH i2c: E2 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: E2 03 00 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: E2 03 00 2F 70 00 90 00 13 [18:10:03]RAPDU: 90 00 [18:10:03]wFMCommunicate OK [18:10:03]wFMCommunicate request_size=7 [18:10:03]MH_SAM_APDU [18:10:03]CAPDU: 80 0D 02 02 02 FF F2 [18:10:03]Write to MH i2c: E2 0A 00 30 70 80 0D 02 02 02 00 FF F2 00 00 0F [18:10:03]Write i2c OK [18:10:03]MH_I2C_Read... [18:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:03]Read from MH i2c: E2 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: E2 03 00 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: E2 03 00 30 70 00 90 00 14 [18:10:03]RAPDU: 90 00 [18:10:03]wFMCommunicate OK [18:10:03]wFMCommunicate request_size=4 [18:10:03]MH_SAM_APDU [18:10:03]CAPDU: 80 0D 03 02 [18:10:03]Write to MH i2c: E2 08 00 31 70 80 0D 03 02 00 00 00 00 1C [18:10:03]Write i2c OK [18:10:03]MH_I2C_Read... [18:10:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:03]Read from MH i2c: E2 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: E2 0B 00 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: E2 0B 00 31 70 00 0A 54 45 D9 76 5A 23 32 90 00 BE [18:10:03]RAPDU: 0A 54 45 D9 76 5A 23 32 90 00 [18:10:03]wFMCommunicate OK [18:10:03]SAM_PROTO_SignData done [18:10:03]FM_MakeSignedData done [18:10:03]CreateOFDProtocolMessage [18:10:03]wFMCommunicate request_size=4 [18:10:03]MH_SAM_APDU [18:10:03]CAPDU: 80 11 00 00 [18:10:03]Write to MH i2c: E2 08 00 32 70 80 11 00 00 00 00 00 00 1C [18:10:03]Write i2c OK [18:10:03]MH_I2C_Read... [18:10:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:03]Read from MH i2c: E2 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: E2 17 00 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: E2 17 00 32 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 77 [18:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:10:03]wFMCommunicate OK [18:10:03]CreateOFDProtocolMessage done [18:10:03]OFDSenderStorePacket 118866 [18:10:03]StoreOFDPacket docnum=118866 [18:10:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5A A7 04 01 41 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 00 DB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 D0 01 00 35 04 06 00 32 2A 76 41 FF F2 0A 54 45 D9 76 5A 23 32 [18:10:03]CheckFolder [18:10:03]dirname=/storage/ofd_packets [18:10:03]CheckFolder done [18:10:03]ProducePacketName [18:10:03]name=ofd_packets/00118866 [18:10:03]NVStorageSaveData ofd_packets/00118866 [18:10:03]File name is /storage/ofd_packets/00118866 [18:10:03]Write 298 bytes [18:10:03]NVStorageSaveData done [18:10:03]OFDSenderStorePacket done [18:10:03]KKMCreateOFDPacket done [18:10:03]NVStorageSaveData kkm_last_timestamp [18:10:03]File name is /storage/kkm_last_timestamp [18:10:03]Write 4 bytes [18:10:03]NVStorageSaveData done [18:10:03]ExternCall_PrintAddStr [18:10:03]wPrintStart [18:10:03]Write to MH i2c: 01 00 00 33 70 A3 [18:10:03]Write i2c OK [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: 01 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: 01 07 00 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: 01 07 00 33 70 00 00 00 00 00 FF 0F B8 [18:10:03]RasterBufferAndPrint [18:10:03]line Счет N : (1)949756 [18:10:03]line ИНН: 02508201610067 [18:10:03]line Контрольно-Кассовый Чек [18:10:03]line ПРОДАЖА [18:10:03]line ТРК (МРК, ГНК) : 44 [18:10:03]line Товар: 2710194800 [18:10:03]line ДТ-К-5 [18:10:03]line 23.630 * 76.20 [18:10:03]line = 1800.61 [18:10:03]line НДС 12% НСП 1% [18:10:03]line > о реализуемом товаре [18:10:03]line ОКРУГЛЕНИЕ: -0.61 [18:10:03]line ИТОГО: 1800.00 [18:10:03]line Внесено: 1800.00 [18:10:03]line СДАЧА: 0.00 [18:10:03]line НСП 1% : 15.93 [18:10:03]line НДС 12% : 191.21 [18:10:03]line Наличными: 1800.00 [18:10:03]line Безнал.: 0.00 [18:10:03]line Место: АЗС № 134 "Партнер Нефть" [18:10:03]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:10:03]line СНО: Общий режим [18:10:03]line Чек 242 29.07.2024 18:10 [18:10:03]line Смена: 434 ФФД: 1.0 [18:10:03]line ЗНМ: 0300000044 [18:10:03]line РНМ: 0000000000092660 [18:10:03]line Версия ККМ: 001 [18:10:03]line ФМ: 0000000000874939 [18:10:03]line ФД: 118866 [18:10:03]line ФПД: 55157954052082 [18:10:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T181008&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118866&fm=55157954052082&tin=02508201610067®Number=0000000000092660&sum=180000 [18:10:03]OFD Sender: Processing packet 118866 [packets to send 86, broken 85] [18:10:03]ProducePacketName [18:10:03]name=ofd_packets/00118866 [18:10:03]OFD Sender: To server: pG, [18:10:03]CommunicateWithHost lk.salyk.kg:30040 [18:10:03]ConnectInit lk.salyk.kg [18:10:03]written 0, free lines is 4095 [18:10:03]Write to MH i2c: 01 00 00 5D 70 CD [18:10:03]Write i2c OK [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: 01 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: 01 07 00 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: 01 07 00 5D 70 00 00 00 00 00 D9 0C B9 [18:10:03]RasterBufferAndPrint [18:10:03]line [18:10:03]line [18:10:03]line [18:10:03]line [18:10:03]line [18:10:03]written 0, free lines is 3294 [18:10:03]MH_Cut [18:10:03]Write to MH i2c: D1 01 00 64 70 01 A6 [18:10:03]Write i2c OK [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: D1 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: D1 01 00 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: D1 01 00 64 70 00 A5 [18:10:03]Write to MH i2c: 01 00 00 65 70 D5 [18:10:03]Write i2c OK [18:10:03]MH_I2C_Read... [18:10:04]*** Cut start [18:10:04]*** Partial cut [18:10:04]*** CUTSNS_PIN = 1 [18:10:04]*** CUTSNS_PIN = 0 [18:10:04]*** Brake cut motor [18:10:05]Read from MH i2c: 01 [18:10:05]MH_I2C_Read... [18:10:05]*** Stop cut motor [18:10:05]*** Cut end [18:10:05]Read from MH i2c: 01 07 00 [18:10:05]MH_I2C_Read... [18:10:05]Read from MH i2c: 01 07 00 65 70 00 00 00 00 00 FF 0F EA [18:10:05]process_action close_receipt done [18:10:05]requested_data is exist [18:10:05]produce_requested_data [18:10:05]requested_item fm.sn is exist - process it [18:10:05]wFMCommunicate request_size=4 [18:10:05]MH_SAM_APDU [18:10:05]CAPDU: 80 11 00 00 [18:10:05]Write to MH i2c: E2 08 00 66 70 80 11 00 00 00 00 00 00 50 [18:10:05]Write i2c OK [18:10:05]MH_I2C_Read... [18:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:05]Read from MH i2c: E2 [18:10:05]MH_I2C_Read... [18:10:05]Read from MH i2c: E2 17 00 [18:10:05]MH_I2C_Read... [18:10:05]Read from MH i2c: E2 17 00 66 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AB [18:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:10:05]wFMCommunicate OK [18:10:05]requested_item fd.num is exist - process it [18:10:05]SAM_PROTO_GetFieldsCounters [18:10:05]wFMCommunicate request_size=4 [18:10:05]MH_SAM_APDU [18:10:05]CAPDU: 80 13 00 00 [18:10:05]Write to MH i2c: E2 08 00 67 70 80 13 00 00 00 00 00 00 53 [18:10:05]Write i2c OK [18:10:05]MH_I2C_Read... [18:10:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:05]Read from MH i2c: E2 [18:10:05]MH_I2C_Read... [18:10:05]Read from MH i2c: E2 62 00 [18:10:05]MH_I2C_Read... [18:10:05]Read from MH i2c: E2 62 00 67 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 52 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [18:10: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 52 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:05]wFMCommunicate OK [18:10:05]SAM_PROTO_GetFieldsCounters done [18:10:05]requested_item shift.num is exist - process it [18:10:05]requested_item shift.opened is exist - process it [18:10:05]req_shift_opened [18:10:05]FM_GetShiftState [18:10:05]SAM_PROTO_GetShiftState [18:10:05]wFMCommunicate request_size=4 [18:10:05]MH_SAM_APDU [18:10:05]CAPDU: 80 13 01 00 [18:10:05]Write to MH i2c: E2 08 00 68 70 80 13 01 00 00 00 00 00 55 [18:10:05]Write i2c OK [18:10:05]MH_I2C_Read... [18:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:05]Read from MH i2c: E2 [18:10:05]MH_I2C_Read... [18:10:05]Read from MH i2c: E2 0E 00 [18:10:05]MH_I2C_Read... [18:10:05]Read from MH i2c: E2 0E 00 68 70 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 83 [18:10:05]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:10:05]wFMCommunicate OK [18:10:05]SAM_PROTO_GetShiftState done [18:10:05]FM_GetShiftState done [18:10:05]req_shift_opened done [18:10:05]requested_item shift.open_date is exist - process it [18:10:05]req_shift_open_date [18:10:05]req_shift_open_date done [18:10:05]produce_requested_data done [18:10:05]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118866,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:10:05]process_action_free close_receipt [18:10:05]json_value_free [18:10:05]json_value_free done [18:10:05]process_json_proto returns [18:10:05]Send response to host [18:10:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118866,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:10:05]free response buf [18:10:05]execute_script done [18:10:05]execute_script returns [18:10:05]free content buf [18:10:05]Sock 7.Close socket [18:10:05]Sock 7.Thread stoped [18:11:18]accept exits with 9 [18:11:18]New connection [18:11:18]New thread 3067383140 created [18:11:18]Thread 3067239780 joined [18:11:18]Waiting for new connection... [18:11:18] Sock 9.Parse request [18:11:18]Sock 9.Check first char [18:11:18]Sock 9.First char is OK [18:11:18]request: POST /json_proto HTTP/1.0 [18:11:18]Method: POST [18:11:18]URL: /json_proto [18:11:18]Method is POST - this is cgi request [18:11:18]url: /json_proto [18:11:18]query_string will be loaded in cgi processing [18:11:18]execute_cgi json_proto POST (null) [18:11:18]execute_cgi path=json_proto method=POST [18:11:18]POST find Content-Length [18:11:18]Host: 172.17.45.7:8080 [18:11:18]Content-Length: 679 [18:11:18]Content-Type: application/json [18:11:18] [18:11:18]POST finish read [18:11:18]Found Content-Length = 679 [18:11:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:18]execute_script... [18:11:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:18]POST & json_proto [18:11:18]process_json_proto [18:11:18]json parsed OK: [18:11:18]protocol is kg_v1.0 [18:11:18]action value=close_receipt [18:11:18]process_action close_receipt [18:11:18]cmd_close_receipt [18:11:18]MH_GetDate [18:11:18]Write to MH i2c: F0 00 00 69 70 C8 [18:11:18]Write i2c OK [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: F0 [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: F0 09 00 [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: F0 09 00 69 70 00 4D DB A7 66 90 0F 3E 66 49 [18:11:18]GetLastDocTimeStamp 1722276608 [18:11:18]current date 1722276685 [18:11:18]FM_GetShiftState [18:11:18]SAM_PROTO_GetShiftState [18:11:18]wFMCommunicate request_size=4 [18:11:18]MH_SAM_APDU [18:11:18]CAPDU: 80 13 01 00 [18:11:18]Write to MH i2c: E2 08 00 6A 70 80 13 01 00 00 00 00 00 57 [18:11:18]Write i2c OK [18:11:18]MH_I2C_Read... [18:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:18]Read from MH i2c: E2 [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: E2 0E 00 [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: E2 0E 00 6A 70 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 85 [18:11:18]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:11:18]wFMCommunicate OK [18:11:18]SAM_PROTO_GetShiftState done [18:11:18]FM_GetShiftState done [18:11:18]opened in 1722211641 [18:11:18]opened+sec_in_day 1722298041 [18:11:18]quantity*price = 180060 [18:11:18]sum+1 = 180062 [18:11:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.21 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 243 29.07.2024 18:11 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118867 ФПД: 192633361689632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T181125&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118867&fm=192633361689632&tin=02508201610067®Number=0000000000092660&sum=180000 [18:11:19]StoreToDocumentArchive [18:11:19]shift 434 fd 118867 [18:11:19]save to /storage/0434/doc_00118867 [18:11:19]save last doc name /storage/0434/doc_00118867 to /storage/kkm_last_doc_name [18:11:19]save OK [18:11:19]Clear old archive folders... [18:11:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:11:19]tlvbuf is 02081850 [18:11:19]SAM_PROTO_ClearQueue [18:11:19]wFMCommunicate request_size=4 [18:11:19]MH_SAM_APDU [18:11:19]CAPDU: 80 09 00 00 [18:11:19]Write to MH i2c: E2 08 00 77 70 80 09 00 00 00 00 00 00 59 [18:11:19]Write i2c OK [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 [18:11:19]MH_I2C_Read... [18:11:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:19]Read from MH i2c: E2 03 00 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 03 00 77 70 00 90 00 5B [18:11:19]RAPDU: 90 00 [18:11:19]wFMCommunicate OK [18:11:19]SAM_PROTO_ClearQueue done [18:11:19]KKMCreateOFDPacket [18:11:19]OFDProtocolAddRootSTLVToBuf [18:11:19]FM_MakeSignedData [18:11:19]FM_MakeSignedData [18:11:19]SAM_PROTO_SignData [18:11:19]wFMCommunicate request_size=4 [18:11:19]MH_SAM_APDU [18:11:19]CAPDU: 80 0D 01 02 [18:11:19]Write to MH i2c: E2 08 00 78 70 80 0D 01 02 00 00 00 00 61 [18:11:19]Write i2c OK [18:11:19]MH_I2C_Read... [18:11:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:19]Read from MH i2c: E2 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 03 00 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 03 00 78 70 00 90 00 5C [18:11:19]RAPDU: 90 00 [18:11:19]wFMCommunicate OK [18:11:19]wFMCommunicate request_size=255 [18:11:19]MH_SAM_APDU [18:11:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 4D DB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 D0 01 00 35 04 06 00 AF 32 F3 18 [18:11:19]Write to MH i2c: E2 02 01 79 70 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 4D DB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 D0 01 00 35 04 06 00 AF 32 F3 18 00 00 59 [18:11:19]Write i2c OK [18:11:19]MH_I2C_Read... [18:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:20]Read from MH i2c: E2 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 03 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 03 00 79 70 00 90 00 5D [18:11:20]RAPDU: 90 00 [18:11:20]wFMCommunicate OK [18:11:20]wFMCommunicate request_size=7 [18:11:20]MH_SAM_APDU [18:11:20]CAPDU: 80 0D 02 02 02 6C 20 [18:11:20]Write to MH i2c: E2 0A 00 7A 70 80 0D 02 02 02 00 6C 20 00 00 F4 [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:20]Read from MH i2c: E2 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 03 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 03 00 7A 70 00 90 00 5E [18:11:20]RAPDU: 90 00 [18:11:20]wFMCommunicate OK [18:11:20]wFMCommunicate request_size=4 [18:11:20]MH_SAM_APDU [18:11:20]CAPDU: 80 0D 03 02 [18:11:20]Write to MH i2c: E2 08 00 7B 70 80 0D 03 02 00 00 00 00 66 [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:20]Read from MH i2c: E2 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 0B 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 0B 00 7B 70 00 26 6D 1A 2E 72 FC 12 D7 90 00 99 [18:11:20]RAPDU: 26 6D 1A 2E 72 FC 12 D7 90 00 [18:11:20]wFMCommunicate OK [18:11:20]SAM_PROTO_SignData done [18:11:20]FM_MakeSignedData done [18:11:20]CreateOFDProtocolMessage [18:11:20]wFMCommunicate request_size=4 [18:11:20]MH_SAM_APDU [18:11:20]CAPDU: 80 11 00 00 [18:11:20]Write to MH i2c: E2 08 00 7C 70 80 11 00 00 00 00 00 00 66 [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:20]Read from MH i2c: E2 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 17 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: E2 17 00 7C 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C1 [18:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:11:20]wFMCommunicate OK [18:11:20]CreateOFDProtocolMessage done [18:11:20]OFDSenderStorePacket 118867 [18:11:20]StoreOFDPacket docnum=118867 [18:11:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 3F 75 04 01 2F 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 4D DB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 D0 01 00 35 04 06 00 AF 32 F3 18 6C 20 26 6D 1A 2E 72 FC 12 D7 [18:11:20]CheckFolder [18:11:20]dirname=/storage/ofd_packets [18:11:20]CheckFolder done [18:11:20]ProducePacketName [18:11:20]name=ofd_packets/00118867 [18:11:20]NVStorageSaveData ofd_packets/00118867 [18:11:20]File name is /storage/ofd_packets/00118867 [18:11:20]Write 298 bytes [18:11:20]NVStorageSaveData done [18:11:20]OFDSenderStorePacket done [18:11:20]KKMCreateOFDPacket done [18:11:20]NVStorageSaveData kkm_last_timestamp [18:11:20]File name is /storage/kkm_last_timestamp [18:11:20]Write 4 bytes [18:11:20]NVStorageSaveData done [18:11:20]ExternCall_PrintAddStr [18:11:20]wPrintStart [18:11:20]Write to MH i2c: 01 00 00 7D 70 ED [18:11:20]Write i2c OK [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: 01 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: 01 07 00 [18:11:20]MH_I2C_Read... [18:11:20]Read from MH i2c: 01 07 00 7D 70 00 00 00 00 00 FF 0F 02 [18:11:20]RasterBufferAndPrint [18:11:20]line Счет N : (1)949757 [18:11:20]line ИНН: 02508201610067 [18:11:20]line Контрольно-Кассовый Чек [18:11:20]line ПРОДАЖА [18:11:20]line ТРК (МРК, ГНК) : 54 [18:11:20]line Товар: 2710194800 [18:11:20]line ДТ-К-5 [18:11:20]line 23.630 * 76.20 [18:11:20]line = 1800.61 [18:11:20]line НДС 12% НСП 1% [18:11:20]line > о реализуемом товаре [18:11:20]line ОКРУГЛЕНИЕ: -0.61 [18:11:20]line ИТОГО: 1800.00 [18:11:20]line Внесено: 1800.00 [18:11:20]line СДАЧА: 0.00 [18:11:20]line НСП 1% : 15.93 [18:11:20]line НДС 12% : 191.21 [18:11:20]line Наличными: 1800.00 [18:11:20]line Безнал.: 0.00 [18:11:20]line Место: АЗС № 134 "Партнер Нефть" [18:11:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:11:20]line СНО: Общий режим [18:11:20]line Чек 243 29.07.2024 18:11 [18:11:20]line Смена: 434 ФФД: 1.0 [18:11:20]line ЗНМ: 0300000044 [18:11:20]line РНМ: 0000000000092660 [18:11:20]line Версия ККМ: 001 [18:11:20]line ФМ: 0000000000874939 [18:11:20]line ФД: 118867 [18:11:20]line ФПД: 192633361689632 [18:11:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T181125&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118867&fm=192633361689632&tin=02508201610067®Number=0000000000092660&sum=180000 [18:11:20]written 0, free lines is 4095 [18:11:21]Write to MH i2c: 01 00 00 A7 70 17 [18:11:21]Write i2c OK [18:11:21]MH_I2C_Read... [18:11:21]Read from MH i2c: 01 [18:11:21]MH_I2C_Read... [18:11:21]Read from MH i2c: 01 07 00 [18:11:21]MH_I2C_Read... [18:11:21]Read from MH i2c: 01 07 00 A7 70 00 00 00 00 00 D8 0C 02 [18:11:21]RasterBufferAndPrint [18:11:21]line [18:11:21]line [18:11:21]line [18:11:21]line [18:11:21]line [18:11:21]written 0, free lines is 3295 [18:11:21]MH_Cut [18:11:21]Write to MH i2c: D1 01 00 AE 70 01 F0 [18:11:21]Write i2c OK [18:11:21]MH_I2C_Read... [18:11:21]Read from MH i2c: D1 [18:11:21]MH_I2C_Read... [18:11:21]Read from MH i2c: D1 01 00 [18:11:21]MH_I2C_Read... [18:11:21]Read from MH i2c: D1 01 00 AE 70 00 EF [18:11:21]Write to MH i2c: 01 00 00 AF 70 1F [18:11:21]Write i2c OK [18:11:21]MH_I2C_Read... [18:11:21]*** Cut start [18:11:21]*** Partial cut [18:11:21]*** CUTSNS_PIN = 1 [18:11:21]*** CUTSNS_PIN = 0 [18:11:22]*** Brake cut motor [18:11:22]Read from MH i2c: 01 [18:11:22]MH_I2C_Read... [18:11:22]*** Stop cut motor [18:11:22]*** Cut end [18:11:22]Read from MH i2c: 01 07 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: 01 07 00 AF 70 00 00 00 00 00 FF 0F 34 [18:11:22]process_action close_receipt done [18:11:22]requested_data is exist [18:11:22]produce_requested_data [18:11:22]requested_item fm.sn is exist - process it [18:11:22]wFMCommunicate request_size=4 [18:11:22]MH_SAM_APDU [18:11:22]CAPDU: 80 11 00 00 [18:11:22]Write to MH i2c: E2 08 00 B0 70 80 11 00 00 00 00 00 00 9A [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:22]Read from MH i2c: E2 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 17 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 17 00 B0 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F5 [18:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:11:22]wFMCommunicate OK [18:11:22]requested_item fd.num is exist - process it [18:11:22]SAM_PROTO_GetFieldsCounters [18:11:22]wFMCommunicate request_size=4 [18:11:22]MH_SAM_APDU [18:11:22]CAPDU: 80 13 00 00 [18:11:22]Write to MH i2c: E2 08 00 B1 70 80 13 00 00 00 00 00 00 9D [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:22]Read from MH i2c: E2 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 62 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 62 00 B1 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 53 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [18:11: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 53 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:22]wFMCommunicate OK [18:11:22]SAM_PROTO_GetFieldsCounters done [18:11:22]requested_item shift.num is exist - process it [18:11:22]requested_item shift.opened is exist - process it [18:11:22]req_shift_opened [18:11:22]FM_GetShiftState [18:11:22]SAM_PROTO_GetShiftState [18:11:22]wFMCommunicate request_size=4 [18:11:22]MH_SAM_APDU [18:11:22]CAPDU: 80 13 01 00 [18:11:22]Write to MH i2c: E2 08 00 B2 70 80 13 01 00 00 00 00 00 9F [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:22]Read from MH i2c: E2 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 0E 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 0E 00 B2 70 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 CD [18:11:22]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:11:22]wFMCommunicate OK [18:11:22]SAM_PROTO_GetShiftState done [18:11:22]FM_GetShiftState done [18:11:22]req_shift_opened done [18:11:22]requested_item shift.open_date is exist - process it [18:11:22]req_shift_open_date [18:11:22]req_shift_open_date done [18:11:22]produce_requested_data done [18:11:22]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118867,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:11:22]process_action_free close_receipt [18:11:22]json_value_free [18:11:22]json_value_free done [18:11:22]process_json_proto returns [18:11:22]Send response to host [18:11:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118867,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:11:22]free response buf [18:11:22]execute_script done [18:11:22]execute_script returns [18:11:22]free content buf [18:11:22]Sock 9.Close socket [18:11:22]Sock 9.Thread stoped [18:11:25]accept exits with 7 [18:11:25]New connection [18:11:25]New thread 3067239780 created [18:11:25]Thread 3067383140 joined [18:11:25]Waiting for new connection... [18:11:25] Sock 7.Parse request [18:11:25]Sock 7.Check first char [18:11:25]Sock 7.First char is OK [18:11:25]request: POST /json_proto HTTP/1.0 [18:11:25]Method: POST [18:11:25]URL: /json_proto [18:11:25]Method is POST - this is cgi request [18:11:25]url: /json_proto [18:11:25]query_string will be loaded in cgi processing [18:11:25]execute_cgi json_proto POST (null) [18:11:25]execute_cgi path=json_proto method=POST [18:11:25]POST find Content-Length [18:11:25]Host: 172.17.45.7:8080 [18:11:25]Content-Length: 677 [18:11:25]Content-Type: application/json [18:11:25] [18:11:25]POST finish read [18:11:25]Found Content-Length = 677 [18:11:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:25]execute_script... [18:11: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)949758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:25]POST & json_proto [18:11:25]process_json_proto [18:11:25]json parsed OK: [18:11:25]protocol is kg_v1.0 [18:11:25]action value=close_receipt [18:11:25]process_action close_receipt [18:11:25]cmd_close_receipt [18:11:25]MH_GetDate [18:11:25]Write to MH i2c: F0 00 00 B3 70 12 [18:11:25]Write i2c OK [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: F0 [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: F0 09 00 [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: F0 09 00 B3 70 00 54 DB A7 66 90 0F 3E 66 9A [18:11:25]GetLastDocTimeStamp 1722276685 [18:11:25]current date 1722276692 [18:11:25]FM_GetShiftState [18:11:25]SAM_PROTO_GetShiftState [18:11:25]wFMCommunicate request_size=4 [18:11:25]MH_SAM_APDU [18:11:25]CAPDU: 80 13 01 00 [18:11:25]Write to MH i2c: E2 08 00 B4 70 80 13 01 00 00 00 00 00 A1 [18:11:25]Write i2c OK [18:11:25]MH_I2C_Read... [18:11:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:25]Read from MH i2c: E2 [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: E2 0E 00 [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: E2 0E 00 B4 70 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 CF [18:11:25]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:11:25]wFMCommunicate OK [18:11:25]SAM_PROTO_GetShiftState done [18:11:25]FM_GetShiftState done [18:11:25]opened in 1722211641 [18:11:25]opened+sec_in_day 1722298041 [18:11:25]quantity*price = 50036 [18:11:25]sum+1 = 50037 [18:11:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 244 29.07.2024 18:11 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118868 ФПД: 30937167388819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T181132&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118868&fm=30937167388819&tin=02508201610067®Number=0000000000092660&sum=50000 [18:11:26]StoreToDocumentArchive [18:11:26]shift 434 fd 118868 [18:11:26]save to /storage/0434/doc_00118868 [18:11:26]save last doc name /storage/0434/doc_00118868 to /storage/kkm_last_doc_name [18:11:26]save OK [18:11:26]Clear old archive folders... [18:11:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:11:26]tlvbuf is 020551E0 [18:11:26]SAM_PROTO_ClearQueue [18:11:26]wFMCommunicate request_size=4 [18:11:26]MH_SAM_APDU [18:11:26]CAPDU: 80 09 00 00 [18:11:26]Write to MH i2c: E2 08 00 C1 70 80 09 00 00 00 00 00 00 A3 [18:11:26]Write i2c OK [18:11:26]MH_I2C_Read... [18:11:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:26]Read from MH i2c: E2 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 03 00 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 03 00 C1 70 00 90 00 A5 [18:11:26]RAPDU: 90 00 [18:11:26]wFMCommunicate OK [18:11:26]SAM_PROTO_ClearQueue done [18:11:26]KKMCreateOFDPacket [18:11:26]OFDProtocolAddRootSTLVToBuf [18:11:26]FM_MakeSignedData [18:11:26]FM_MakeSignedData [18:11:26]SAM_PROTO_SignData [18:11:26]wFMCommunicate request_size=4 [18:11:26]MH_SAM_APDU [18:11:26]CAPDU: 80 0D 01 02 [18:11:26]Write to MH i2c: E2 08 00 C2 70 80 0D 01 02 00 00 00 00 AB [18:11:26]Write i2c OK [18:11:26]MH_I2C_Read... [18:11:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:26]Read from MH i2c: E2 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 03 00 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 03 00 C2 70 00 90 00 A6 [18:11:26]RAPDU: 90 00 [18:11:26]wFMCommunicate OK [18:11:26]wFMCommunicate request_size=255 [18:11:26]MH_SAM_APDU [18:11: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 54 DB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 D0 01 00 35 04 06 00 1C [18:11:26]Write to MH i2c: E2 02 01 C3 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 54 DB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 D0 01 00 35 04 06 00 1C 00 00 53 [18:11:26]Write i2c OK [18:11:26]MH_I2C_Read... [18:11:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:27]Read from MH i2c: E2 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: E2 03 00 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: E2 03 00 C3 70 00 90 00 A7 [18:11:27]RAPDU: 90 00 [18:11:27]wFMCommunicate OK [18:11:27]wFMCommunicate request_size=10 [18:11:27]MH_SAM_APDU [18:11:27]CAPDU: 80 0D 02 02 05 23 1E DF 60 93 [18:11:27]Write to MH i2c: E2 0D 00 C4 70 80 0D 02 02 05 00 23 1E DF 60 93 00 00 CB [18:11:27]Write i2c OK [18:11:27]MH_I2C_Read... [18:11:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:27]Read from MH i2c: E2 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: E2 03 00 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: E2 03 00 C4 70 00 90 00 A8 [18:11:27]RAPDU: 90 00 [18:11:27]wFMCommunicate OK [18:11:27]wFMCommunicate request_size=4 [18:11:27]MH_SAM_APDU [18:11:27]CAPDU: 80 0D 03 02 [18:11:27]Write to MH i2c: E2 08 00 C5 70 80 0D 03 02 00 00 00 00 B0 [18:11:27]Write i2c OK [18:11:27]MH_I2C_Read... [18:11:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:27]Read from MH i2c: E2 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: E2 0B 00 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: E2 0B 00 C5 70 00 D8 53 43 3C 31 B3 EA C3 90 00 EC [18:11:27]RAPDU: D8 53 43 3C 31 B3 EA C3 90 00 [18:11:27]wFMCommunicate OK [18:11:27]SAM_PROTO_SignData done [18:11:27]FM_MakeSignedData done [18:11:27]CreateOFDProtocolMessage [18:11:27]wFMCommunicate request_size=4 [18:11:27]MH_SAM_APDU [18:11:27]CAPDU: 80 11 00 00 [18:11:27]Write to MH i2c: E2 08 00 C6 70 80 11 00 00 00 00 00 00 B0 [18:11:27]Write i2c OK [18:11:27]MH_I2C_Read... [18:11:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:27]Read from MH i2c: E2 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: E2 17 00 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: E2 17 00 C6 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0B [18:11:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:11:27]wFMCommunicate OK [18:11:27]CreateOFDProtocolMessage done [18:11:27]OFDSenderStorePacket 118868 [18:11:27]StoreOFDPacket docnum=118868 [18:11:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BA 60 07 01 33 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 54 DB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 D0 01 00 35 04 06 00 1C 23 1E DF 60 93 D8 53 43 3C 31 B3 EA C3 [18:11:27]CheckFolder [18:11:27]dirname=/storage/ofd_packets [18:11:27]CheckFolder done [18:11:27]ProducePacketName [18:11:27]name=ofd_packets/00118868 [18:11:27]NVStorageSaveData ofd_packets/00118868 [18:11:27]File name is /storage/ofd_packets/00118868 [18:11:27]Write 301 bytes [18:11:27]NVStorageSaveData done [18:11:27]OFDSenderStorePacket done [18:11:27]KKMCreateOFDPacket done [18:11:27]NVStorageSaveData kkm_last_timestamp [18:11:27]File name is /storage/kkm_last_timestamp [18:11:27]Write 4 bytes [18:11:27]NVStorageSaveData done [18:11:27]ExternCall_PrintAddStr [18:11:27]wPrintStart [18:11:27]Write to MH i2c: 01 00 00 C7 70 37 [18:11:27]Write i2c OK [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: 01 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: 01 07 00 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: 01 07 00 C7 70 00 00 00 00 00 FF 0F 4C [18:11:27]RasterBufferAndPrint [18:11:27]line Счет N : (1)949758 [18:11:27]line ИНН: 02508201610067 [18:11:27]line Контрольно-Кассовый Чек [18:11:27]line ПРОДАЖА [18:11:27]line ТРК (МРК, ГНК) : 31 [18:11:27]line Товар: 2710124130 [18:11:27]line Аи-92-К-4 [18:11:27]line 7.380 * 67.80 [18:11:27]line = 500.36 [18:11:27]line НДС 12% НСП 1% [18:11:27]line > о реализуемом товаре [18:11:27]line ОКРУГЛЕНИЕ: -0.36 [18:11:27]line ИТОГО: 500.00 [18:11:27]line Внесено: 500.00 [18:11:27]line СДАЧА: 0.00 [18:11:27]line НСП 1% : 4.43 [18:11:27]line НДС 12% : 53.14 [18:11:27]line Наличными: 500.00 [18:11:27]line Безнал.: 0.00 [18:11:27]line Место: АЗС № 134 "Партнер Нефть" [18:11:27]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:11:27]line СНО: Общий режим [18:11:27]line Чек 244 29.07.2024 18:11 [18:11:27]line Смена: 434 ФФД: 1.0 [18:11:27]line ЗНМ: 0300000044 [18:11:27]line РНМ: 0000000000092660 [18:11:27]line Версия ККМ: 001 [18:11:27]line ФМ: 0000000000874939 [18:11:27]line ФД: 118868 [18:11:27]line ФПД: 30937167388819 [18:11:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T181132&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118868&fm=30937167388819&tin=02508201610067®Number=0000000000092660&sum=50000 [18:11:27]written 0, free lines is 4095 [18:11:27]Write to MH i2c: 01 00 00 F1 70 61 [18:11:27]Write i2c OK [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: 01 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: 01 07 00 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: 01 07 00 F1 70 00 00 00 00 00 D4 0C 48 [18:11:27]RasterBufferAndPrint [18:11:27]line [18:11:27]line [18:11:27]line [18:11:27]line [18:11:27]line [18:11:27]written 0, free lines is 3294 [18:11:27]MH_Cut [18:11:27]Write to MH i2c: D1 01 00 F8 70 01 3A [18:11:27]Write i2c OK [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: D1 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: D1 01 00 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: D1 01 00 F8 70 00 39 [18:11:27]Write to MH i2c: 01 00 00 F9 70 69 [18:11:27]Write i2c OK [18:11:27]MH_I2C_Read... [18:11:28]*** Cut start [18:11:28]*** Partial cut [18:11:28]*** CUTSNS_PIN = 1 [18:11:28]*** CUTSNS_PIN = 0 [18:11:28]*** Brake cut motor [18:11:28]Read from MH i2c: 01 [18:11:28]MH_I2C_Read... [18:11:28]*** Stop cut motor [18:11:28]*** Cut end [18:11:28]Read from MH i2c: 01 07 00 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: 01 07 00 F9 70 00 00 00 00 00 FF 0F 7E [18:11:28]process_action close_receipt done [18:11:28]requested_data is exist [18:11:28]produce_requested_data [18:11:28]requested_item fm.sn is exist - process it [18:11:28]wFMCommunicate request_size=4 [18:11:28]MH_SAM_APDU [18:11:28]CAPDU: 80 11 00 00 [18:11:28]Write to MH i2c: E2 08 00 FA 70 80 11 00 00 00 00 00 00 E4 [18:11:28]Write i2c OK [18:11:28]MH_I2C_Read... [18:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:29]Read from MH i2c: E2 [18:11:29]MH_I2C_Read... [18:11:29]Read from MH i2c: E2 17 00 [18:11:29]MH_I2C_Read... [18:11:29]Read from MH i2c: E2 17 00 FA 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3F [18:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:11:29]wFMCommunicate OK [18:11:29]requested_item fd.num is exist - process it [18:11:29]SAM_PROTO_GetFieldsCounters [18:11:29]wFMCommunicate request_size=4 [18:11:29]MH_SAM_APDU [18:11:29]CAPDU: 80 13 00 00 [18:11:29]Write to MH i2c: E2 08 00 FB 70 80 13 00 00 00 00 00 00 E7 [18:11:29]Write i2c OK [18:11:29]MH_I2C_Read... [18:11:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:29]Read from MH i2c: E2 [18:11:29]MH_I2C_Read... [18:11:29]Read from MH i2c: E2 62 00 [18:11:29]MH_I2C_Read... [18:11:29]Read from MH i2c: E2 62 00 FB 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 54 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [18:11: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 54 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:29]wFMCommunicate OK [18:11:29]SAM_PROTO_GetFieldsCounters done [18:11:29]requested_item shift.num is exist - process it [18:11:29]requested_item shift.opened is exist - process it [18:11:29]req_shift_opened [18:11:29]FM_GetShiftState [18:11:29]SAM_PROTO_GetShiftState [18:11:29]wFMCommunicate request_size=4 [18:11:29]MH_SAM_APDU [18:11:29]CAPDU: 80 13 01 00 [18:11:29]Write to MH i2c: E2 08 00 FC 70 80 13 01 00 00 00 00 00 E9 [18:11:29]Write i2c OK [18:11:29]MH_I2C_Read... [18:11:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:29]Read from MH i2c: E2 [18:11:29]MH_I2C_Read... [18:11:29]Read from MH i2c: E2 0E 00 [18:11:29]MH_I2C_Read... [18:11:29]Read from MH i2c: E2 0E 00 FC 70 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 17 [18:11:29]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:11:29]wFMCommunicate OK [18:11:29]SAM_PROTO_GetShiftState done [18:11:29]FM_GetShiftState done [18:11:29]req_shift_opened done [18:11:29]requested_item shift.open_date is exist - process it [18:11:29]req_shift_open_date [18:11:29]req_shift_open_date done [18:11:29]produce_requested_data done [18:11:29]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118868,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:11:29]process_action_free close_receipt [18:11:29]json_value_free [18:11:29]json_value_free done [18:11:29]process_json_proto returns [18:11:29]Send response to host [18:11:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118868,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:11:29]free response buf [18:11:29]execute_script done [18:11:29]execute_script returns [18:11:29]free content buf [18:11:29]Sock 7.Close socket [18:11:29]Sock 7.Thread stoped [18:12:17]ConnectInit Can't connect to host [18:12:17]CommunicateWithHost connect error [18:12:17]CommunicateWithHost err = -1 [18:12:17]OFD Sender: Server communicate error [18:12:17]OFD Sender: Processing packet 118866 [packets to send 88, broken 85] [18:12:17]ProducePacketName [18:12:17]name=ofd_packets/00118866 [18:12:17]OFD Sender: To server: pG, [18:12:17]CommunicateWithHost lk.salyk.kg:30040 [18:12:17]ConnectInit lk.salyk.kg [18:12:17]Connected sock=7 [18:12:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5A A7 04 01 41 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 00 DB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 D0 01 00 35 04 06 00 32 2A 76 41 FF F2 0A 54 45 D9 76 5A 23 32 [18:12:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 51 FF 47 00 05 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 D0 01 00 F4 03 04 00 13 89 A7 66 B6 04 01 00 00 B7 CA 8F BB 85 35 2B BE [18:12:17]CommunicateWithHost err = 0 [18:12:17]CheckOFDResponse [18:12:17]1017 (14) - 77093643461234 [18:12:17]1041 (16) - 0000000000874939 [18:12:17]1040 (4) - 118866 [18:12:17]1012 (4) - 29.07.2024 12:20 [18:12:17]1206 (1) - 0 [18:12:17]OFD Sender: Remove packet 118866 [18:12:17]ProducePacketName [18:12:17]name=ofd_packets/00118866 [18:12:17]NVStorageDeleteData [18:12:18]OFD Sender: Processing packet 118867 [packets to send 87, broken 85] [18:12:18]ProducePacketName [18:12:18]name=ofd_packets/00118867 [18:12:18]OFD Sender: To server: pG, [18:12:18]CommunicateWithHost lk.salyk.kg:30040 [18:12:18]ConnectInit lk.salyk.kg [18:12:18]Connected sock=7 [18:12:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 3F 75 04 01 2F 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 4D DB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 D0 01 00 35 04 06 00 AF 32 F3 18 6C 20 26 6D 1A 2E 72 FC 12 D7 [18:12:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B9 C6 47 00 A2 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 D0 01 00 F4 03 04 00 14 89 A7 66 B6 04 01 00 00 24 55 17 22 65 D1 4C 9C [18:12:18]CommunicateWithHost err = 0 [18:12:18]CheckOFDResponse [18:12:18]1017 (14) - 77093643461234 [18:12:18]1041 (16) - 0000000000874939 [18:12:18]1040 (4) - 118867 [18:12:18]1012 (4) - 29.07.2024 12:20 [18:12:18]1206 (1) - 0 [18:12:18]OFD Sender: Remove packet 118867 [18:12:18]ProducePacketName [18:12:18]name=ofd_packets/00118867 [18:12:18]NVStorageDeleteData [18:12:18]OFD Sender: Processing packet 118868 [packets to send 86, broken 85] [18:12:18]ProducePacketName [18:12:18]name=ofd_packets/00118868 [18:12:18]OFD Sender: To server: pG, [18:12:18]CommunicateWithHost lk.salyk.kg:30040 [18:12:18]ConnectInit lk.salyk.kg [18:12:18]Connected sock=7 [18:12:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BA 60 07 01 33 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 54 DB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 D0 01 00 35 04 06 00 1C 23 1E DF 60 93 D8 53 43 3C 31 B3 EA C3 [18:12:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 97 74 47 00 D3 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 D0 01 00 F4 03 04 00 14 89 A7 66 B6 04 01 00 00 95 F6 AC 43 6A 7C 89 0B [18:12:19]CommunicateWithHost err = 0 [18:12:19]CheckOFDResponse [18:12:19]1017 (14) - 77093643461234 [18:12:19]1041 (16) - 0000000000874939 [18:12:19]1040 (4) - 118868 [18:12:19]1012 (4) - 29.07.2024 12:20 [18:12:19]1206 (1) - 0 [18:12:19]OFD Sender: Remove packet 118868 [18:12:19]ProducePacketName [18:12:19]name=ofd_packets/00118868 [18:12:19]NVStorageDeleteData [18:12:19]OFD Sender: No OFD packet to send [18:12:21]accept exits with 9 [18:12:21]New connection [18:12:21]New thread 3067383140 created [18:12:21]Thread 3067239780 joined [18:12:21]Waiting for new connection... [18:12:21] Sock 9.Parse request [18:12:21]Sock 9.Check first char [18:12:21]Sock 9.First char is OK [18:12:21]request: POST /json_proto HTTP/1.0 [18:12:21]Method: POST [18:12:21]URL: /json_proto [18:12:21]Method is POST - this is cgi request [18:12:21]url: /json_proto [18:12:21]query_string will be loaded in cgi processing [18:12:21]execute_cgi json_proto POST (null) [18:12:21]execute_cgi path=json_proto method=POST [18:12:21]POST find Content-Length [18:12:21]Host: 172.17.45.7:8080 [18:12:21]Content-Length: 674 [18:12:21]Content-Type: application/json [18:12:21] [18:12:21]POST finish read [18:12:21]Found Content-Length = 674 [18:12:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:21]execute_script... [18:12:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:21]POST & json_proto [18:12:21]process_json_proto [18:12:21]json parsed OK: [18:12:21]protocol is kg_v1.0 [18:12:21]action value=close_receipt [18:12:21]process_action close_receipt [18:12:21]cmd_close_receipt [18:12:21]MH_GetDate [18:12:21]Write to MH i2c: F0 00 00 FD 70 5C [18:12:21]Write i2c OK [18:12:21]MH_I2C_Read... [18:12:21]Read from MH i2c: F0 [18:12:21]MH_I2C_Read... [18:12:21]Read from MH i2c: F0 09 00 [18:12:21]MH_I2C_Read... [18:12:21]Read from MH i2c: F0 09 00 FD 70 00 8C DB A7 66 90 0F 3E 66 1C [18:12:21]GetLastDocTimeStamp 1722276692 [18:12:21]current date 1722276748 [18:12:21]FM_GetShiftState [18:12:21]SAM_PROTO_GetShiftState [18:12:21]wFMCommunicate request_size=4 [18:12:21]MH_SAM_APDU [18:12:21]CAPDU: 80 13 01 00 [18:12:21]Write to MH i2c: E2 08 00 FE 70 80 13 01 00 00 00 00 00 EB [18:12:21]Write i2c OK [18:12:21]MH_I2C_Read... [18:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:21]Read from MH i2c: E2 [18:12:21]MH_I2C_Read... [18:12:21]Read from MH i2c: E2 0E 00 [18:12:21]MH_I2C_Read... [18:12:21]Read from MH i2c: E2 0E 00 FE 70 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 19 [18:12:21]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:12:21]wFMCommunicate OK [18:12:21]SAM_PROTO_GetShiftState done [18:12:21]FM_GetShiftState done [18:12:21]opened in 1722211641 [18:12:21]opened+sec_in_day 1722298041 [18:12:21]quantity*price = 20040 [18:12:21]sum+1 = 20042 [18:12:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 245 29.07.2024 18:12 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118869 ФПД: 215787951851901 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T181228&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118869&fm=215787951851901&tin=02508201610067®Number=0000000000092660&sum=20000 [18:12:22]StoreToDocumentArchive [18:12:22]shift 434 fd 118869 [18:12:22]save to /storage/0434/doc_00118869 [18:12:22]save last doc name /storage/0434/doc_00118869 to /storage/kkm_last_doc_name [18:12:22]save OK [18:12:22]Clear old archive folders... [18:12:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:12:22]tlvbuf is 01E4D800 [18:12:22]SAM_PROTO_ClearQueue [18:12:22]wFMCommunicate request_size=4 [18:12:22]MH_SAM_APDU [18:12:22]CAPDU: 80 09 00 00 [18:12:22]Write to MH i2c: E2 08 00 0B 71 80 09 00 00 00 00 00 00 EE [18:12:22]Write i2c OK [18:12:22]MH_I2C_Read... [18:12:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:22]Read from MH i2c: E2 [18:12:22]MH_I2C_Read... [18:12:22]Read from MH i2c: E2 03 00 [18:12:22]MH_I2C_Read... [18:12:22]Read from MH i2c: E2 03 00 0B 71 00 90 00 F0 [18:12:22]RAPDU: 90 00 [18:12:22]wFMCommunicate OK [18:12:22]SAM_PROTO_ClearQueue done [18:12:22]KKMCreateOFDPacket [18:12:22]OFDProtocolAddRootSTLVToBuf [18:12:22]FM_MakeSignedData [18:12:22]FM_MakeSignedData [18:12:22]SAM_PROTO_SignData [18:12:22]wFMCommunicate request_size=4 [18:12:22]MH_SAM_APDU [18:12:22]CAPDU: 80 0D 01 02 [18:12:22]Write to MH i2c: E2 08 00 0C 71 80 0D 01 02 00 00 00 00 F6 [18:12:22]Write i2c OK [18:12:22]MH_I2C_Read... [18:12:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:22]Read from MH i2c: E2 [18:12:22]MH_I2C_Read... [18:12:22]Read from MH i2c: E2 03 00 [18:12:22]MH_I2C_Read... [18:12:22]Read from MH i2c: E2 03 00 0C 71 00 90 00 F1 [18:12:22]RAPDU: 90 00 [18:12:22]wFMCommunicate OK [18:12:22]wFMCommunicate request_size=255 [18:12:22]MH_SAM_APDU [18:12:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 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 F5 00 00 00 F4 03 04 00 8C DB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 D0 01 00 35 04 06 00 C4 42 0C 37 [18:12:22]Write to MH i2c: E2 02 01 0D 71 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 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 F5 00 00 00 F4 03 04 00 8C DB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 D0 01 00 35 04 06 00 C4 42 0C 37 00 00 96 [18:12:22]Write i2c OK [18:12:22]MH_I2C_Read... [18:12:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:23]Read from MH i2c: E2 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 03 00 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 03 00 0D 71 00 90 00 F2 [18:12:23]RAPDU: 90 00 [18:12:23]wFMCommunicate OK [18:12:23]wFMCommunicate request_size=7 [18:12:23]MH_SAM_APDU [18:12:23]CAPDU: 80 0D 02 02 02 89 7D [18:12:23]Write to MH i2c: E2 0A 00 0E 71 80 0D 02 02 02 00 89 7D 00 00 03 [18:12:23]Write i2c OK [18:12:23]MH_I2C_Read... [18:12:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:23]Read from MH i2c: E2 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 03 00 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 03 00 0E 71 00 90 00 F3 [18:12:23]RAPDU: 90 00 [18:12:23]wFMCommunicate OK [18:12:23]wFMCommunicate request_size=4 [18:12:23]MH_SAM_APDU [18:12:23]CAPDU: 80 0D 03 02 [18:12:23]Write to MH i2c: E2 08 00 0F 71 80 0D 03 02 00 00 00 00 FB [18:12:23]Write i2c OK [18:12:23]MH_I2C_Read... [18:12:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:23]Read from MH i2c: E2 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 0B 00 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 0B 00 0F 71 00 34 BA A6 35 72 E1 77 71 90 00 00 [18:12:23]RAPDU: 34 BA A6 35 72 E1 77 71 90 00 [18:12:23]wFMCommunicate OK [18:12:23]SAM_PROTO_SignData done [18:12:23]FM_MakeSignedData done [18:12:23]CreateOFDProtocolMessage [18:12:23]wFMCommunicate request_size=4 [18:12:23]MH_SAM_APDU [18:12:23]CAPDU: 80 11 00 00 [18:12:23]Write to MH i2c: E2 08 00 10 71 80 11 00 00 00 00 00 00 FB [18:12:23]Write i2c OK [18:12:23]MH_I2C_Read... [18:12:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:23]Read from MH i2c: E2 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 17 00 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 17 00 10 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 56 [18:12:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:12:23]wFMCommunicate OK [18:12:23]CreateOFDProtocolMessage done [18:12:23]OFDSenderStorePacket 118869 [18:12:23]StoreOFDPacket docnum=118869 [18:12:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2A 7E 04 01 94 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 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 F5 00 00 00 F4 03 04 00 8C DB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 D0 01 00 35 04 06 00 C4 42 0C 37 89 7D 34 BA A6 35 72 E1 77 71 [18:12:23]CheckFolder [18:12:23]dirname=/storage/ofd_packets [18:12:23]CheckFolder done [18:12:23]ProducePacketName [18:12:23]name=ofd_packets/00118869 [18:12:23]NVStorageSaveData ofd_packets/00118869 [18:12:23]File name is /storage/ofd_packets/00118869 [18:12:23]Write 298 bytes [18:12:23]NVStorageSaveData done [18:12:23]OFDSenderStorePacket done [18:12:23]KKMCreateOFDPacket done [18:12:23]NVStorageSaveData kkm_last_timestamp [18:12:23]File name is /storage/kkm_last_timestamp [18:12:23]Write 4 bytes [18:12:23]NVStorageSaveData done [18:12:23]ExternCall_PrintAddStr [18:12:23]wPrintStart [18:12:23]Write to MH i2c: 01 00 00 11 71 82 [18:12:23]Write i2c OK [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: 01 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: 01 07 00 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: 01 07 00 11 71 00 00 00 00 00 FF 0F 97 [18:12:23]RasterBufferAndPrint [18:12:23]line Счет N : (1)949759 [18:12:23]line ИНН: 02508201610067 [18:12:23]line Контрольно-Кассовый Чек [18:12:23]line ПРОДАЖА [18:12:23]line ТРК (МРК, ГНК) : 44 [18:12:23]line Товар: 2710194800 [18:12:23]line ДТ-К-5 [18:12:23]line 2.630 * 76.20 [18:12:23]line = 200.41 [18:12:23]line НДС 12% НСП 1% [18:12:23]line > о реализуемом товаре [18:12:23]line ОКРУГЛЕНИЕ: -0.41 [18:12:23]line ИТОГО: 200.00 [18:12:23]line Внесено: 200.00 [18:12:23]line СДАЧА: 0.00 [18:12:23]line НСП 1% : 1.77 [18:12:23]line НДС 12% : 21.28 [18:12:23]line Наличными: 200.00 [18:12:23]line Безнал.: 0.00 [18:12:23]line Место: АЗС № 134 "Партнер Нефть" [18:12:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:12:23]line СНО: Общий режим [18:12:23]line Чек 245 29.07.2024 18:12 [18:12:23]line Смена: 434 ФФД: 1.0 [18:12:23]line ЗНМ: 0300000044 [18:12:23]line РНМ: 0000000000092660 [18:12:23]line Версия ККМ: 001 [18:12:23]line ФМ: 0000000000874939 [18:12:23]line ФД: 118869 [18:12:23]line ФПД: 215787951851901 [18:12:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T181228&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118869&fm=215787951851901&tin=02508201610067®Number=0000000000092660&sum=20000 [18:12:23]OFD Sender: Processing packet 118869 [packets to send 86, broken 85] [18:12:23]ProducePacketName [18:12:23]name=ofd_packets/00118869 [18:12:23]OFD Sender: To server: pG, [18:12:23]CommunicateWithHost lk.salyk.kg:30040 [18:12:23]ConnectInit lk.salyk.kg [18:12:23]written 0, free lines is 4095 [18:12:23]Connected sock=10 [18:12:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2A 7E 04 01 94 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 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 F5 00 00 00 F4 03 04 00 8C DB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 D0 01 00 35 04 06 00 C4 42 0C 37 89 7D 34 BA A6 35 72 E1 77 71 [18:12:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B9 4B 47 00 8C 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 D0 01 00 F4 03 04 00 19 89 A7 66 B6 04 01 00 00 85 69 01 7D 42 D5 FA CE [18:12:23]CommunicateWithHost err = 0 [18:12:23]CheckOFDResponse [18:12:23]1017 (14) - 77093643461234 [18:12:23]1041 (16) - 0000000000874939 [18:12:23]1040 (4) - 118869 [18:12:23]1012 (4) - 29.07.2024 12:20 [18:12:23]1206 (1) - 0 [18:12:23]OFD Sender: Remove packet 118869 [18:12:23]ProducePacketName [18:12:23]name=ofd_packets/00118869 [18:12:23]NVStorageDeleteData [18:12:23]Write to MH i2c: 01 00 00 3B 71 AC [18:12:23]Write i2c OK [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: 01 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: 01 07 00 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: 01 07 00 3B 71 00 00 00 00 00 CF 0C 8E [18:12:23]RasterBufferAndPrint [18:12:23]line [18:12:23]line [18:12:23]line [18:12:23]line [18:12:23]line [18:12:23]written 0, free lines is 3286 [18:12:23]MH_Cut [18:12:23]Write to MH i2c: D1 01 00 42 71 01 85 [18:12:23]Write i2c OK [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: D1 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: D1 01 00 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: D1 01 00 42 71 00 84 [18:12:23]Write to MH i2c: 01 00 00 43 71 B4 [18:12:23]Write i2c OK [18:12:23]MH_I2C_Read... [18:12:24]OFD Sender: No OFD packet to send [18:12:24]*** Cut start [18:12:24]*** Partial cut [18:12:24]*** CUTSNS_PIN = 1 [18:12:24]*** CUTSNS_PIN = 0 [18:12:24]*** Brake cut motor [18:12:25]Read from MH i2c: 01 [18:12:25]MH_I2C_Read... [18:12:25]*** Stop cut motor [18:12:25]*** Cut end [18:12:25]Read from MH i2c: 01 07 00 [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: 01 07 00 43 71 00 00 00 00 00 FF 0F C9 [18:12:25]process_action close_receipt done [18:12:25]requested_data is exist [18:12:25]produce_requested_data [18:12:25]requested_item fm.sn is exist - process it [18:12:25]wFMCommunicate request_size=4 [18:12:25]MH_SAM_APDU [18:12:25]CAPDU: 80 11 00 00 [18:12:25]Write to MH i2c: E2 08 00 44 71 80 11 00 00 00 00 00 00 2F [18:12:25]Write i2c OK [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: E2 [18:12:25]MH_I2C_Read... [18:12:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:25]Read from MH i2c: E2 17 00 [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: E2 17 00 44 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8A [18:12:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:12:25]wFMCommunicate OK [18:12:25]requested_item fd.num is exist - process it [18:12:25]SAM_PROTO_GetFieldsCounters [18:12:25]wFMCommunicate request_size=4 [18:12:25]MH_SAM_APDU [18:12:25]CAPDU: 80 13 00 00 [18:12:25]Write to MH i2c: E2 08 00 45 71 80 13 00 00 00 00 00 00 32 [18:12:25]Write i2c OK [18:12:25]MH_I2C_Read... [18:12:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:25]Read from MH i2c: E2 [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: E2 62 00 [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: E2 62 00 45 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 55 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [18:12: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 55 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:12:25]wFMCommunicate OK [18:12:25]SAM_PROTO_GetFieldsCounters done [18:12:25]requested_item shift.num is exist - process it [18:12:25]requested_item shift.opened is exist - process it [18:12:25]req_shift_opened [18:12:25]FM_GetShiftState [18:12:25]SAM_PROTO_GetShiftState [18:12:25]wFMCommunicate request_size=4 [18:12:25]MH_SAM_APDU [18:12:25]CAPDU: 80 13 01 00 [18:12:25]Write to MH i2c: E2 08 00 46 71 80 13 01 00 00 00 00 00 34 [18:12:25]Write i2c OK [18:12:25]MH_I2C_Read... [18:12:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:25]Read from MH i2c: E2 [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: E2 0E 00 [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: E2 0E 00 46 71 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 62 [18:12:25]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:12:25]wFMCommunicate OK [18:12:25]SAM_PROTO_GetShiftState done [18:12:25]FM_GetShiftState done [18:12:25]req_shift_opened done [18:12:25]requested_item shift.open_date is exist - process it [18:12:25]req_shift_open_date [18:12:25]req_shift_open_date done [18:12:25]produce_requested_data done [18:12:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118869,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:12:25]process_action_free close_receipt [18:12:25]json_value_free [18:12:25]json_value_free done [18:12:25]process_json_proto returns [18:12:25]Send response to host [18:12:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118869,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:12:25]free response buf [18:12:25]execute_script done [18:12:25]execute_script returns [18:12:25]free content buf [18:12:25]Sock 9.Close socket [18:12:25]Sock 9.Thread stoped [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:04]OFD Sender: No OFD packet to send [18:15:09]OFD Sender: No OFD packet to send [18:15:14]OFD Sender: No OFD packet to send [18:15:19]OFD Sender: No OFD packet to send [18:15:24]OFD Sender: No OFD packet to send [18:15:29]OFD Sender: No OFD packet to send [18:15:34]OFD Sender: No OFD packet to send [18:15:39]OFD Sender: No OFD packet to send [18:15:44]OFD Sender: No OFD packet to send [18:15:49]OFD Sender: No OFD packet to send [18:15:54]OFD Sender: No OFD packet to send [18:15:59]OFD Sender: No OFD packet to send [18:16:04]OFD Sender: No OFD packet to send [18:16:09]OFD Sender: No OFD packet to send [18:16:14]OFD Sender: No OFD packet to send [18:16:19]OFD Sender: No OFD packet to send [18:16:24]OFD Sender: No OFD packet to send [18:16:29]OFD Sender: No OFD packet to send [18:16:34]OFD Sender: No OFD packet to send [18:16:39]OFD Sender: No OFD packet to send [18:16:44]OFD Sender: No OFD packet to send [18:16:49]OFD Sender: No OFD packet to send [18:16:54]OFD Sender: No OFD packet to send [18:16:59]OFD Sender: No OFD packet to send [18:17:04]OFD Sender: No OFD packet to send [18:17:09]OFD Sender: No OFD packet to send [18:17:14]OFD Sender: No OFD packet to send [18:17:19]OFD Sender: No OFD packet to send [18:17:24]OFD Sender: No OFD packet to send [18:17:29]OFD Sender: No OFD packet to send [18:17:34]OFD Sender: No OFD packet to send [18:17:39]OFD Sender: No OFD packet to send [18:17:44]OFD Sender: No OFD packet to send [18:17:49]OFD Sender: No OFD packet to send [18:17:54]OFD Sender: No OFD packet to send [18:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:24]OFD Sender: No OFD packet to send [18:18:25]accept exits with 7 [18:18:25]New connection [18:18:25]New thread 3067239780 created [18:18:25]Thread 3067383140 joined [18:18:25]Waiting for new connection... [18:18:25] Sock 7.Parse request [18:18:25]Sock 7.Check first char [18:18:25]Sock 7.First char is OK [18:18:25]request: POST /json_proto HTTP/1.0 [18:18:25]Method: POST [18:18:25]URL: /json_proto [18:18:25]Method is POST - this is cgi request [18:18:25]url: /json_proto [18:18:25]query_string will be loaded in cgi processing [18:18:25]execute_cgi json_proto POST (null) [18:18:25]execute_cgi path=json_proto method=POST [18:18:25]POST find Content-Length [18:18:25]Host: 172.17.45.7:8080 [18:18:25]Content-Length: 677 [18:18:25]Content-Type: application/json [18:18:25] [18:18:25]POST finish read [18:18:25]Found Content-Length = 677 [18:18:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:25]execute_script... [18:18:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:25]POST & json_proto [18:18:25]process_json_proto [18:18:25]json parsed OK: [18:18:25]protocol is kg_v1.0 [18:18:25]action value=close_receipt [18:18:25]process_action close_receipt [18:18:25]cmd_close_receipt [18:18:25]MH_GetDate [18:18:25]Write to MH i2c: F0 00 00 47 71 A7 [18:18:25]Write i2c OK [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: F0 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: F0 09 00 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: F0 09 00 47 71 00 F7 DC A7 66 90 0F 3E 66 D3 [18:18:25]GetLastDocTimeStamp 1722276748 [18:18:25]current date 1722277111 [18:18:25]FM_GetShiftState [18:18:25]SAM_PROTO_GetShiftState [18:18:25]wFMCommunicate request_size=4 [18:18:25]MH_SAM_APDU [18:18:25]CAPDU: 80 13 01 00 [18:18:25]Write to MH i2c: E2 08 00 48 71 80 13 01 00 00 00 00 00 36 [18:18:25]Write i2c OK [18:18:25]MH_I2C_Read... [18:18:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:25]Read from MH i2c: E2 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: E2 0E 00 [18:18:25]MH_I2C_Read... [18:18:25]Read from MH i2c: E2 0E 00 48 71 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 64 [18:18:25]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:18:25]wFMCommunicate OK [18:18:25]SAM_PROTO_GetShiftState done [18:18:25]FM_GetShiftState done [18:18:25]opened in 1722211641 [18:18:25]opened+sec_in_day 1722298041 [18:18:25]quantity*price = 60003 [18:18:25]sum+1 = 60004 [18:18:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 246 29.07.2024 18:18 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118870 ФПД: 127226094943547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T181831&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118870&fm=127226094943547&tin=02508201610067®Number=0000000000092660&sum=60000 [18:18:26]StoreToDocumentArchive [18:18:26]shift 434 fd 118870 [18:18:26]save to /storage/0434/doc_00118870 [18:18:26]save last doc name /storage/0434/doc_00118870 to /storage/kkm_last_doc_name [18:18:26]save OK [18:18:26]Clear old archive folders... [18:18:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:26]tlvbuf is 02086A10 [18:18:26]SAM_PROTO_ClearQueue [18:18:26]wFMCommunicate request_size=4 [18:18:26]MH_SAM_APDU [18:18:26]CAPDU: 80 09 00 00 [18:18:26]Write to MH i2c: E2 08 00 55 71 80 09 00 00 00 00 00 00 38 [18:18:26]Write i2c OK [18:18:26]MH_I2C_Read... [18:18:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:26]Read from MH i2c: E2 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: E2 03 00 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: E2 03 00 55 71 00 90 00 3A [18:18:26]RAPDU: 90 00 [18:18:26]wFMCommunicate OK [18:18:26]SAM_PROTO_ClearQueue done [18:18:26]KKMCreateOFDPacket [18:18:26]OFDProtocolAddRootSTLVToBuf [18:18:26]FM_MakeSignedData [18:18:26]FM_MakeSignedData [18:18:26]SAM_PROTO_SignData [18:18:26]wFMCommunicate request_size=4 [18:18:26]MH_SAM_APDU [18:18:26]CAPDU: 80 0D 01 02 [18:18:26]Write to MH i2c: E2 08 00 56 71 80 0D 01 02 00 00 00 00 40 [18:18:26]Write i2c OK [18:18:26]MH_I2C_Read... [18:18:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:26]Read from MH i2c: E2 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: E2 03 00 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: E2 03 00 56 71 00 90 00 3B [18:18:26]RAPDU: 90 00 [18:18:26]wFMCommunicate OK [18:18:26]wFMCommunicate request_size=255 [18:18:26]MH_SAM_APDU [18:18: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 F7 DC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 D0 01 00 35 04 06 00 73 [18:18:26]Write to MH i2c: E2 02 01 57 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 F7 DC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 D0 01 00 35 04 06 00 73 00 00 AE [18:18:26]Write i2c OK [18:18:26]MH_I2C_Read... [18:18:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:26]Read from MH i2c: E2 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: E2 03 00 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: E2 03 00 57 71 00 90 00 3C [18:18:26]RAPDU: 90 00 [18:18:26]wFMCommunicate OK [18:18:26]wFMCommunicate request_size=10 [18:18:26]MH_SAM_APDU [18:18:26]CAPDU: 80 0D 02 02 05 B6 22 31 FD 3B [18:18:26]Write to MH i2c: E2 0D 00 58 71 80 0D 02 02 05 00 B6 22 31 FD 3B 00 00 8E [18:18:26]Write i2c OK [18:18:26]MH_I2C_Read... [18:18:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:26]Read from MH i2c: E2 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: E2 03 00 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: E2 03 00 58 71 00 90 00 3D [18:18:26]RAPDU: 90 00 [18:18:26]wFMCommunicate OK [18:18:26]wFMCommunicate request_size=4 [18:18:26]MH_SAM_APDU [18:18:26]CAPDU: 80 0D 03 02 [18:18:26]Write to MH i2c: E2 08 00 59 71 80 0D 03 02 00 00 00 00 45 [18:18:26]Write i2c OK [18:18:26]MH_I2C_Read... [18:18:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:26]Read from MH i2c: E2 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: E2 0B 00 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: E2 0B 00 59 71 00 D9 5D 21 14 41 06 2B 2B 90 00 4E [18:18:26]RAPDU: D9 5D 21 14 41 06 2B 2B 90 00 [18:18:26]wFMCommunicate OK [18:18:26]SAM_PROTO_SignData done [18:18:26]FM_MakeSignedData done [18:18:26]CreateOFDProtocolMessage [18:18:26]wFMCommunicate request_size=4 [18:18:26]MH_SAM_APDU [18:18:26]CAPDU: 80 11 00 00 [18:18:26]Write to MH i2c: E2 08 00 5A 71 80 11 00 00 00 00 00 00 45 [18:18:26]Write i2c OK [18:18:26]MH_I2C_Read... [18:18:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:26]Read from MH i2c: E2 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: E2 17 00 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: E2 17 00 5A 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A0 [18:18:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:18:26]wFMCommunicate OK [18:18:26]CreateOFDProtocolMessage done [18:18:26]OFDSenderStorePacket 118870 [18:18:26]StoreOFDPacket docnum=118870 [18:18:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7D 67 07 01 9F E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 F7 DC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 D0 01 00 35 04 06 00 73 B6 22 31 FD 3B D9 5D 21 14 41 06 2B 2B [18:18:26]CheckFolder [18:18:26]dirname=/storage/ofd_packets [18:18:26]CheckFolder done [18:18:26]ProducePacketName [18:18:26]name=ofd_packets/00118870 [18:18:26]NVStorageSaveData ofd_packets/00118870 [18:18:26]File name is /storage/ofd_packets/00118870 [18:18:26]Write 301 bytes [18:18:26]NVStorageSaveData done [18:18:26]OFDSenderStorePacket done [18:18:26]KKMCreateOFDPacket done [18:18:26]NVStorageSaveData kkm_last_timestamp [18:18:26]File name is /storage/kkm_last_timestamp [18:18:26]Write 4 bytes [18:18:26]NVStorageSaveData done [18:18:26]ExternCall_PrintAddStr [18:18:26]wPrintStart [18:18:26]Write to MH i2c: 01 00 00 5B 71 CC [18:18:26]Write i2c OK [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: 01 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: 01 07 00 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: 01 07 00 5B 71 00 00 00 00 00 FF 0F E1 [18:18:26]RasterBufferAndPrint [18:18:26]line Счет N : (1)949760 [18:18:26]line ИНН: 02508201610067 [18:18:26]line Контрольно-Кассовый Чек [18:18:26]line ПРОДАЖА [18:18:26]line ТРК (МРК, ГНК) : 31 [18:18:26]line Товар: 2710124130 [18:18:26]line Аи-92-К-4 [18:18:26]line 8.850 * 67.80 [18:18:26]line = 600.03 [18:18:26]line НДС 12% НСП 1% [18:18:26]line > о реализуемом товаре [18:18:26]line ОКРУГЛЕНИЕ: -0.03 [18:18:26]line ИТОГО: 600.00 [18:18:26]line Внесено: 600.00 [18:18:26]line СДАЧА: 0.00 [18:18:26]line НСП 1% : 5.31 [18:18:26]line НДС 12% : 63.72 [18:18:26]line Наличными: 600.00 [18:18:26]line Безнал.: 0.00 [18:18:26]line Место: АЗС № 134 "Партнер Нефть" [18:18:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:18:26]line СНО: Общий режим [18:18:26]line Чек 246 29.07.2024 18:18 [18:18:26]line Смена: 434 ФФД: 1.0 [18:18:26]line ЗНМ: 0300000044 [18:18:26]line РНМ: 0000000000092660 [18:18:26]line Версия ККМ: 001 [18:18:26]line ФМ: 0000000000874939 [18:18:26]line ФД: 118870 [18:18:26]line ФПД: 127226094943547 [18:18:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T181831&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118870&fm=127226094943547&tin=02508201610067®Number=0000000000092660&sum=60000 [18:18:27]written 0, free lines is 4095 [18:18:27]OFD Sender: Processing packet 118870 [packets to send 86, broken 85] [18:18:27]ProducePacketName [18:18:27]name=ofd_packets/00118870 [18:18:27]OFD Sender: To server: pG, [18:18:27]CommunicateWithHost lk.salyk.kg:30040 [18:18:27]ConnectInit lk.salyk.kg [18:18:27]Connected sock=10 [18:18:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7D 67 07 01 9F E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 F7 DC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 D0 01 00 35 04 06 00 73 B6 22 31 FD 3B D9 5D 21 14 41 06 2B 2B [18:18:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6A BF 47 00 37 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 D0 01 00 F4 03 04 00 85 8A A7 66 B6 04 01 00 00 21 D8 C2 53 6F 61 95 61 [18:18:27]CommunicateWithHost err = 0 [18:18:27]CheckOFDResponse [18:18:27]1017 (14) - 77093643461234 [18:18:27]1041 (16) - 0000000000874939 [18:18:27]1040 (4) - 118870 [18:18:27]1012 (4) - 29.07.2024 12:26 [18:18:27]1206 (1) - 0 [18:18:27]OFD Sender: Remove packet 118870 [18:18:27]ProducePacketName [18:18:27]name=ofd_packets/00118870 [18:18:27]NVStorageDeleteData [18:18:27]Write to MH i2c: 01 00 00 85 71 F6 [18:18:27]Write i2c OK [18:18:27]MH_I2C_Read... [18:18:27]Read from MH i2c: 01 [18:18:27]MH_I2C_Read... [18:18:27]Read from MH i2c: 01 07 00 [18:18:27]MH_I2C_Read... [18:18:27]Read from MH i2c: 01 07 00 85 71 00 00 00 00 00 DD 0C E6 [18:18:27]RasterBufferAndPrint [18:18:27]line [18:18:27]line [18:18:27]line [18:18:27]line [18:18:27]line [18:18:27]written 0, free lines is 3299 [18:18:27]MH_Cut [18:18:27]Write to MH i2c: D1 01 00 8C 71 01 CF [18:18:27]Write i2c OK [18:18:27]MH_I2C_Read... [18:18:27]Read from MH i2c: D1 [18:18:27]MH_I2C_Read... [18:18:27]Read from MH i2c: D1 01 00 [18:18:27]MH_I2C_Read... [18:18:27]Read from MH i2c: D1 01 00 8C 71 00 CE [18:18:27]Write to MH i2c: 01 00 00 8D 71 FE [18:18:27]Write i2c OK [18:18:27]MH_I2C_Read... [18:18:28]OFD Sender: No OFD packet to send [18:18:28]*** Cut start [18:18:28]*** Partial cut [18:18:28]*** CUTSNS_PIN = 1 [18:18:28]*** CUTSNS_PIN = 0 [18:18:28]*** Brake cut motor [18:18:28]Read from MH i2c: 01 [18:18:28]MH_I2C_Read... [18:18:28]*** Stop cut motor [18:18:29]*** Cut end [18:18:29]Read from MH i2c: 01 07 00 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: 01 07 00 8D 71 00 00 00 00 00 FF 0F 13 [18:18:29]process_action close_receipt done [18:18:29]requested_data is exist [18:18:29]produce_requested_data [18:18:29]requested_item fm.sn is exist - process it [18:18:29]wFMCommunicate request_size=4 [18:18:29]MH_SAM_APDU [18:18:29]CAPDU: 80 11 00 00 [18:18:29]Write to MH i2c: E2 08 00 8E 71 80 11 00 00 00 00 00 00 79 [18:18:29]Write i2c OK [18:18:29]MH_I2C_Read... [18:18:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:29]Read from MH i2c: E2 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 17 00 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 17 00 8E 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D4 [18:18:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:18:29]wFMCommunicate OK [18:18:29]requested_item fd.num is exist - process it [18:18:29]SAM_PROTO_GetFieldsCounters [18:18:29]wFMCommunicate request_size=4 [18:18:29]MH_SAM_APDU [18:18:29]CAPDU: 80 13 00 00 [18:18:29]Write to MH i2c: E2 08 00 8F 71 80 13 00 00 00 00 00 00 7C [18:18:29]Write i2c OK [18:18:29]MH_I2C_Read... [18:18:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:29]Read from MH i2c: E2 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 62 00 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 62 00 8F 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 56 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [18:18: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 56 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:18:29]wFMCommunicate OK [18:18:29]SAM_PROTO_GetFieldsCounters done [18:18:29]requested_item shift.num is exist - process it [18:18:29]requested_item shift.opened is exist - process it [18:18:29]req_shift_opened [18:18:29]FM_GetShiftState [18:18:29]SAM_PROTO_GetShiftState [18:18:29]wFMCommunicate request_size=4 [18:18:29]MH_SAM_APDU [18:18:29]CAPDU: 80 13 01 00 [18:18:29]Write to MH i2c: E2 08 00 90 71 80 13 01 00 00 00 00 00 7E [18:18:29]Write i2c OK [18:18:29]MH_I2C_Read... [18:18:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:29]Read from MH i2c: E2 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 0E 00 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 0E 00 90 71 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 AC [18:18:29]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:18:29]wFMCommunicate OK [18:18:29]SAM_PROTO_GetShiftState done [18:18:29]FM_GetShiftState done [18:18:29]req_shift_opened done [18:18:29]requested_item shift.open_date is exist - process it [18:18:29]req_shift_open_date [18:18:29]req_shift_open_date done [18:18:29]produce_requested_data done [18:18:29]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118870,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:18:29]process_action_free close_receipt [18:18:29]json_value_free [18:18:29]json_value_free done [18:18:29]process_json_proto returns [18:18:29]Send response to host [18:18:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118870,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:18:29]free response buf [18:18:29]execute_script done [18:18:29]execute_script returns [18:18:29]free content buf [18:18:29]Sock 7.Close socket [18:18:29]Sock 7.Thread stoped [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:53]OFD Sender: No OFD packet to send [18:18:57]accept exits with 9 [18:18:57]New connection [18:18:57]New thread 3067383140 created [18:18:57]Thread 3067239780 joined [18:18:57]Waiting for new connection... [18:18:57] Sock 9.Parse request [18:18:57]Sock 9.Check first char [18:18:57]Sock 9.First char is OK [18:18:57]request: POST /json_proto HTTP/1.0 [18:18:57]Method: POST [18:18:57]URL: /json_proto [18:18:57]Method is POST - this is cgi request [18:18:57]url: /json_proto [18:18:57]query_string will be loaded in cgi processing [18:18:57]execute_cgi json_proto POST (null) [18:18:57]execute_cgi path=json_proto method=POST [18:18:57]POST find Content-Length [18:18:57]Host: 172.17.45.7:8080 [18:18:57]Content-Length: 677 [18:18:57]Content-Type: application/json [18:18:57] [18:18:57]POST finish read [18:18:57]Found Content-Length = 677 [18:18:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:57]execute_script... [18:18:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:57]POST & json_proto [18:18:57]process_json_proto [18:18:57]json parsed OK: [18:18:57]protocol is kg_v1.0 [18:18:57]action value=close_receipt [18:18:57]process_action close_receipt [18:18:57]cmd_close_receipt [18:18:57]MH_GetDate [18:18:57]Write to MH i2c: F0 00 00 91 71 F1 [18:18:57]Write i2c OK [18:18:57]MH_I2C_Read... [18:18:57]Read from MH i2c: F0 [18:18:57]MH_I2C_Read... [18:18:57]Read from MH i2c: F0 09 00 [18:18:57]MH_I2C_Read... [18:18:57]Read from MH i2c: F0 09 00 91 71 00 18 DD A7 66 90 0F 3E 66 3F [18:18:57]GetLastDocTimeStamp 1722277111 [18:18:57]current date 1722277144 [18:18:57]FM_GetShiftState [18:18:57]SAM_PROTO_GetShiftState [18:18:57]wFMCommunicate request_size=4 [18:18:57]MH_SAM_APDU [18:18:57]CAPDU: 80 13 01 00 [18:18:57]Write to MH i2c: E2 08 00 92 71 80 13 01 00 00 00 00 00 80 [18:18:57]Write i2c OK [18:18:57]MH_I2C_Read... [18:18:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:57]Read from MH i2c: E2 [18:18:57]MH_I2C_Read... [18:18:57]Read from MH i2c: E2 0E 00 [18:18:57]MH_I2C_Read... [18:18:57]Read from MH i2c: E2 0E 00 92 71 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 AE [18:18:57]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:18:57]wFMCommunicate OK [18:18:57]SAM_PROTO_GetShiftState done [18:18:57]FM_GetShiftState done [18:18:57]opened in 1722211641 [18:18:57]opened+sec_in_day 1722298041 [18:18:57]quantity*price = 40002 [18:18:57]sum+1 = 40003 [18:18:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 247 29.07.2024 18:19 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118871 ФПД: 15253962771081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T181904&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118871&fm=15253962771081&tin=02508201610067®Number=0000000000092660&sum=40000 [18:18:59]StoreToDocumentArchive [18:18:59]shift 434 fd 118871 [18:18:59]save to /storage/0434/doc_00118871 [18:18:59]save last doc name /storage/0434/doc_00118871 to /storage/kkm_last_doc_name [18:18:59]save OK [18:18:59]Clear old archive folders... [18:18:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:59]tlvbuf is 02063C70 [18:18:59]SAM_PROTO_ClearQueue [18:18:59]wFMCommunicate request_size=4 [18:18:59]MH_SAM_APDU [18:18:59]CAPDU: 80 09 00 00 [18:18:59]Write to MH i2c: E2 08 00 9F 71 80 09 00 00 00 00 00 00 82 [18:18:59]Write i2c OK [18:18:59]MH_I2C_Read... [18:18:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:59]Read from MH i2c: E2 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: E2 03 00 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: E2 03 00 9F 71 00 90 00 84 [18:18:59]RAPDU: 90 00 [18:18:59]wFMCommunicate OK [18:18:59]SAM_PROTO_ClearQueue done [18:18:59]KKMCreateOFDPacket [18:18:59]OFDProtocolAddRootSTLVToBuf [18:18:59]FM_MakeSignedData [18:18:59]FM_MakeSignedData [18:18:59]SAM_PROTO_SignData [18:18:59]wFMCommunicate request_size=4 [18:18:59]MH_SAM_APDU [18:18:59]CAPDU: 80 0D 01 02 [18:18:59]Write to MH i2c: E2 08 00 A0 71 80 0D 01 02 00 00 00 00 8A [18:18:59]Write i2c OK [18:18:59]MH_I2C_Read... [18:18:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:59]Read from MH i2c: E2 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: E2 03 00 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: E2 03 00 A0 71 00 90 00 85 [18:18:59]RAPDU: 90 00 [18:18:59]wFMCommunicate OK [18:18:59]wFMCommunicate request_size=255 [18:18:59]MH_SAM_APDU [18:18:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 18 DD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 57 D0 01 00 35 04 06 00 0D [18:18:59]Write to MH i2c: E2 02 01 A1 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 18 DD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 57 D0 01 00 35 04 06 00 0D 00 00 D4 [18:18:59]Write i2c OK [18:18:59]MH_I2C_Read... [18:18:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:59]Read from MH i2c: E2 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: E2 03 00 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: E2 03 00 A1 71 00 90 00 86 [18:18:59]RAPDU: 90 00 [18:18:59]wFMCommunicate OK [18:18:59]wFMCommunicate request_size=10 [18:18:59]MH_SAM_APDU [18:18:59]CAPDU: 80 0D 02 02 05 DF 97 08 4A 89 [18:18:59]Write to MH i2c: E2 0D 00 A2 71 80 0D 02 02 05 00 DF 97 08 4A 89 00 00 E8 [18:18:59]Write i2c OK [18:18:59]MH_I2C_Read... [18:18:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:59]Read from MH i2c: E2 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: E2 03 00 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: E2 03 00 A2 71 00 90 00 87 [18:18:59]RAPDU: 90 00 [18:18:59]wFMCommunicate OK [18:18:59]wFMCommunicate request_size=4 [18:18:59]MH_SAM_APDU [18:18:59]CAPDU: 80 0D 03 02 [18:18:59]Write to MH i2c: E2 08 00 A3 71 80 0D 03 02 00 00 00 00 8F [18:18:59]Write i2c OK [18:18:59]MH_I2C_Read... [18:18:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:59]Read from MH i2c: E2 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: E2 0B 00 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: E2 0B 00 A3 71 00 C0 58 EF 34 22 61 21 47 90 00 B6 [18:18:59]RAPDU: C0 58 EF 34 22 61 21 47 90 00 [18:18:59]wFMCommunicate OK [18:18:59]SAM_PROTO_SignData done [18:18:59]FM_MakeSignedData done [18:18:59]CreateOFDProtocolMessage [18:18:59]wFMCommunicate request_size=4 [18:18:59]MH_SAM_APDU [18:18:59]CAPDU: 80 11 00 00 [18:18:59]Write to MH i2c: E2 08 00 A4 71 80 11 00 00 00 00 00 00 8F [18:18:59]Write i2c OK [18:18:59]MH_I2C_Read... [18:18:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:59]Read from MH i2c: E2 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: E2 17 00 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: E2 17 00 A4 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EA [18:18:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:18:59]wFMCommunicate OK [18:18:59]CreateOFDProtocolMessage done [18:18:59]OFDSenderStorePacket 118871 [18:18:59]StoreOFDPacket docnum=118871 [18:18:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C0 BC 07 01 11 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 18 DD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 57 D0 01 00 35 04 06 00 0D DF 97 08 4A 89 C0 58 EF 34 22 61 21 47 [18:18:59]CheckFolder [18:18:59]dirname=/storage/ofd_packets [18:18:59]CheckFolder done [18:18:59]ProducePacketName [18:18:59]name=ofd_packets/00118871 [18:18:59]NVStorageSaveData ofd_packets/00118871 [18:18:59]File name is /storage/ofd_packets/00118871 [18:18:59]Write 301 bytes [18:18:59]NVStorageSaveData done [18:18:59]OFDSenderStorePacket done [18:18:59]KKMCreateOFDPacket done [18:18:59]NVStorageSaveData kkm_last_timestamp [18:18:59]File name is /storage/kkm_last_timestamp [18:18:59]Write 4 bytes [18:18:59]NVStorageSaveData done [18:18:59]ExternCall_PrintAddStr [18:18:59]wPrintStart [18:18:59]Write to MH i2c: 01 00 00 A5 71 16 [18:18:59]Write i2c OK [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: 01 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: 01 07 00 [18:18:59]MH_I2C_Read... [18:18:59]Read from MH i2c: 01 07 00 A5 71 00 00 00 00 00 FF 0F 2B [18:18:59]RasterBufferAndPrint [18:18:59]line Счет N : (1)949761 [18:18:59]line ИНН: 02508201610067 [18:18:59]line Контрольно-Кассовый Чек [18:18:59]line ПРОДАЖА [18:18:59]line ТРК (МРК, ГНК) : 61 [18:18:59]line Товар: 2710124130 [18:18:59]line Аи-92-К-4 [18:18:59]line 5.900 * 67.80 [18:18:59]line = 400.02 [18:18:59]line НДС 12% НСП 1% [18:18:59]line > о реализуемом товаре [18:18:59]line ОКРУГЛЕНИЕ: -0.02 [18:18:59]line ИТОГО: 400.00 [18:18:59]line Внесено: 400.00 [18:18:59]line СДАЧА: 0.00 [18:18:59]line НСП 1% : 3.54 [18:18:59]line НДС 12% : 42.48 [18:18:59]line Наличными: 400.00 [18:18:59]line Безнал.: 0.00 [18:18:59]line Место: АЗС № 134 "Партнер Нефть" [18:18:59]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:18:59]line СНО: Общий режим [18:18:59]line Чек 247 29.07.2024 18:19 [18:18:59]line Смена: 434 ФФД: 1.0 [18:18:59]line ЗНМ: 0300000044 [18:18:59]line РНМ: 0000000000092660 [18:18:59]line Версия ККМ: 001 [18:18:59]line ФМ: 0000000000874939 [18:18:59]line ФД: 118871 [18:18:59]line ФПД: 15253962771081 [18:18:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T181904&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118871&fm=15253962771081&tin=02508201610067®Number=0000000000092660&sum=40000 [18:19:00]written 0, free lines is 4095 [18:19:00]OFD Sender: Processing packet 118871 [packets to send 86, broken 85] [18:19:00]ProducePacketName [18:19:00]name=ofd_packets/00118871 [18:19:00]OFD Sender: To server: pG, [18:19:00]CommunicateWithHost lk.salyk.kg:30040 [18:19:00]ConnectInit lk.salyk.kg [18:19:00]Connected sock=10 [18:19:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C0 BC 07 01 11 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 18 DD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 57 D0 01 00 35 04 06 00 0D DF 97 08 4A 89 C0 58 EF 34 22 61 21 47 [18:19:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CB 4D 47 00 E9 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 34 39 33 39 10 04 04 00 57 D0 01 00 F4 03 04 00 A6 8A A7 66 B6 04 01 00 00 50 59 3B 74 88 AF 6D C5 [18:19:00]CommunicateWithHost err = 0 [18:19:00]CheckOFDResponse [18:19:00]1017 (14) - 77093643461234 [18:19:00]1041 (16) - 0000000000874939 [18:19:00]1040 (4) - 118871 [18:19:00]1012 (4) - 29.07.2024 12:27 [18:19:00]1206 (1) - 0 [18:19:00]OFD Sender: Remove packet 118871 [18:19:00]ProducePacketName [18:19:00]name=ofd_packets/00118871 [18:19:00]NVStorageDeleteData [18:19:00]Write to MH i2c: 01 00 00 CF 71 40 [18:19:00]Write i2c OK [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: 01 [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: 01 07 00 [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: 01 07 00 CF 71 00 00 00 00 00 DE 0C 31 [18:19:00]RasterBufferAndPrint [18:19:00]line [18:19:00]line [18:19:00]line [18:19:00]line [18:19:00]line [18:19:00]written 0, free lines is 3301 [18:19:00]MH_Cut [18:19:00]Write to MH i2c: D1 01 00 D6 71 01 19 [18:19:00]Write i2c OK [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: D1 [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: D1 01 00 [18:19:00]MH_I2C_Read... [18:19:00]Read from MH i2c: D1 01 00 D6 71 00 18 [18:19:00]Write to MH i2c: 01 00 00 D7 71 48 [18:19:00]Write i2c OK [18:19:00]MH_I2C_Read... [18:19:00]OFD Sender: No OFD packet to send [18:19:01]*** Cut start [18:19:01]*** Partial cut [18:19:01]*** CUTSNS_PIN = 1 [18:19:01]*** CUTSNS_PIN = 0 [18:19:01]*** Brake cut motor [18:19:01]Read from MH i2c: 01 [18:19:01]MH_I2C_Read... [18:19:01]*** Stop cut motor [18:19:01]*** Cut end [18:19:01]Read from MH i2c: 01 07 00 [18:19:01]MH_I2C_Read... [18:19:01]Read from MH i2c: 01 07 00 D7 71 00 00 00 00 00 FF 0F 5D [18:19:01]process_action close_receipt done [18:19:01]requested_data is exist [18:19:01]produce_requested_data [18:19:01]requested_item fm.sn is exist - process it [18:19:01]wFMCommunicate request_size=4 [18:19:01]MH_SAM_APDU [18:19:01]CAPDU: 80 11 00 00 [18:19:01]Write to MH i2c: E2 08 00 D8 71 80 11 00 00 00 00 00 00 C3 [18:19:01]Write i2c OK [18:19:01]MH_I2C_Read... [18:19:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:01]Read from MH i2c: E2 [18:19:01]MH_I2C_Read... [18:19:01]Read from MH i2c: E2 17 00 [18:19:01]MH_I2C_Read... [18:19:01]Read from MH i2c: E2 17 00 D8 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1E [18:19:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:19:01]wFMCommunicate OK [18:19:01]requested_item fd.num is exist - process it [18:19:01]SAM_PROTO_GetFieldsCounters [18:19:01]wFMCommunicate request_size=4 [18:19:01]MH_SAM_APDU [18:19:01]CAPDU: 80 13 00 00 [18:19:01]Write to MH i2c: E2 08 00 D9 71 80 13 00 00 00 00 00 00 C6 [18:19:01]Write i2c OK [18:19:01]MH_I2C_Read... [18:19:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:01]Read from MH i2c: E2 [18:19:01]MH_I2C_Read... [18:19:01]Read from MH i2c: E2 62 00 [18:19:01]MH_I2C_Read... [18:19:01]Read from MH i2c: E2 62 00 D9 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 57 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [18:19: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 57 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:19:01]wFMCommunicate OK [18:19:01]SAM_PROTO_GetFieldsCounters done [18:19:01]requested_item shift.num is exist - process it [18:19:01]requested_item shift.opened is exist - process it [18:19:01]req_shift_opened [18:19:01]FM_GetShiftState [18:19:01]SAM_PROTO_GetShiftState [18:19:01]wFMCommunicate request_size=4 [18:19:01]MH_SAM_APDU [18:19:01]CAPDU: 80 13 01 00 [18:19:01]Write to MH i2c: E2 08 00 DA 71 80 13 01 00 00 00 00 00 C8 [18:19:01]Write i2c OK [18:19:01]MH_I2C_Read... [18:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:02]Read from MH i2c: E2 [18:19:02]MH_I2C_Read... [18:19:02]Read from MH i2c: E2 0E 00 [18:19:02]MH_I2C_Read... [18:19:02]Read from MH i2c: E2 0E 00 DA 71 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F6 [18:19:02]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:19:02]wFMCommunicate OK [18:19:02]SAM_PROTO_GetShiftState done [18:19:02]FM_GetShiftState done [18:19:02]req_shift_opened done [18:19:02]requested_item shift.open_date is exist - process it [18:19:02]req_shift_open_date [18:19:02]req_shift_open_date done [18:19:02]produce_requested_data done [18:19:02]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118871,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:19:02]process_action_free close_receipt [18:19:02]json_value_free [18:19:02]json_value_free done [18:19:02]process_json_proto returns [18:19:02]Send response to host [18:19:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118871,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:19:02]free response buf [18:19:02]execute_script done [18:19:02]execute_script returns [18:19:02]free content buf [18:19:02]Sock 9.Close socket [18:19:02]Sock 9.Thread stoped [18:19:05]OFD Sender: No OFD packet to send [18:19:10]OFD Sender: No OFD packet to send [18:19:15]OFD Sender: No OFD packet to send [18:19:20]OFD Sender: No OFD packet to send [18:19:25]OFD Sender: No OFD packet to send [18:19:30]OFD Sender: No OFD packet to send [18:19:35]OFD Sender: No OFD packet to send [18:19:40]OFD Sender: No OFD packet to send [18:19:45]OFD Sender: No OFD packet to send [18:19:50]OFD Sender: No OFD packet to send [18:19:55]OFD Sender: No OFD packet to send [18:20:00]OFD Sender: No OFD packet to send [18:20:05]OFD Sender: No OFD packet to send [18:20:10]OFD Sender: No OFD packet to send [18:20:15]OFD Sender: No OFD packet to send [18:20:20]OFD Sender: No OFD packet to send [18:20:25]OFD Sender: No OFD packet to send [18:20:30]OFD Sender: No OFD packet to send [18:20:35]OFD Sender: No OFD packet to send [18:20:40]OFD Sender: No OFD packet to send [18:20:45]OFD Sender: No OFD packet to send [18:20:50]OFD Sender: No OFD packet to send [18:20:55]OFD Sender: No OFD packet to send [18:21:00]OFD Sender: No OFD packet to send [18:21:05]OFD Sender: No OFD packet to send [18:21:10]OFD Sender: No OFD packet to send [18:21:15]OFD Sender: No OFD packet to send [18:21:20]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:31]OFD Sender: No OFD packet to send [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]OFD Sender: No OFD packet to send [18:23:56]OFD Sender: No OFD packet to send [18:24:01]OFD Sender: No OFD packet to send [18:24:06]OFD Sender: No OFD packet to send [18:24:11]OFD Sender: No OFD packet to send [18:24:16]OFD Sender: No OFD packet to send [18:24:21]OFD Sender: No OFD packet to send [18:24:24]accept exits with 7 [18:24:24]New connection [18:24:24]New thread 3067239780 created [18:24:24]Thread 3067383140 joined [18:24:24]Waiting for new connection... [18:24:24] Sock 7.Parse request [18:24:24]Sock 7.Check first char [18:24:24]Sock 7.First char is OK [18:24:24]request: POST /json_proto HTTP/1.0 [18:24:24]Method: POST [18:24:24]URL: /json_proto [18:24:24]Method is POST - this is cgi request [18:24:24]url: /json_proto [18:24:24]query_string will be loaded in cgi processing [18:24:24]execute_cgi json_proto POST (null) [18:24:24]execute_cgi path=json_proto method=POST [18:24:24]POST find Content-Length [18:24:24]Host: 172.17.45.7:8080 [18:24:24]Content-Length: 682 [18:24:24]Content-Type: application/json [18:24:24] [18:24:24]POST finish read [18:24:24]Found Content-Length = 682 [18:24:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:24]execute_script... [18:24: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)949762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:24]POST & json_proto [18:24:24]process_json_proto [18:24:24]json parsed OK: [18:24:24]protocol is kg_v1.0 [18:24:24]action value=close_receipt [18:24:24]process_action close_receipt [18:24:24]cmd_close_receipt [18:24:24]MH_GetDate [18:24:24]Write to MH i2c: F0 00 00 DB 71 3B [18:24:24]Write i2c OK [18:24:24]MH_I2C_Read... [18:24:24]Read from MH i2c: F0 [18:24:24]MH_I2C_Read... [18:24:24]Read from MH i2c: F0 09 00 [18:24:24]MH_I2C_Read... [18:24:24]Read from MH i2c: F0 09 00 DB 71 00 5F DE A7 66 90 0F 3E 66 D1 [18:24:24]GetLastDocTimeStamp 1722277144 [18:24:24]current date 1722277471 [18:24:24]FM_GetShiftState [18:24:24]SAM_PROTO_GetShiftState [18:24:24]wFMCommunicate request_size=4 [18:24:24]MH_SAM_APDU [18:24:24]CAPDU: 80 13 01 00 [18:24:24]Write to MH i2c: E2 08 00 DC 71 80 13 01 00 00 00 00 00 CA [18:24:24]Write i2c OK [18:24:24]MH_I2C_Read... [18:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:24]Read from MH i2c: E2 [18:24:24]MH_I2C_Read... [18:24:24]Read from MH i2c: E2 0E 00 [18:24:24]MH_I2C_Read... [18:24:24]Read from MH i2c: E2 0E 00 DC 71 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F8 [18:24:24]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:24:24]wFMCommunicate OK [18:24:24]SAM_PROTO_GetShiftState done [18:24:24]FM_GetShiftState done [18:24:24]opened in 1722211641 [18:24:24]opened+sec_in_day 1722298041 [18:24:24]quantity*price = 100005 [18:24:24]sum+1 = 100006 [18:24:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 248 29.07.2024 18:24 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118872 ФПД: 167010903708677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182431&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118872&fm=167010903708677&tin=02508201610067®Number=0000000000092660&sum=100000 [18:24:25]StoreToDocumentArchive [18:24:25]shift 434 fd 118872 [18:24:25]save to /storage/0434/doc_00118872 [18:24:25]save last doc name /storage/0434/doc_00118872 to /storage/kkm_last_doc_name [18:24:25]save OK [18:24:25]Clear old archive folders... [18:24:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:24:25]tlvbuf is 01F69AB0 [18:24:25]SAM_PROTO_ClearQueue [18:24:25]wFMCommunicate request_size=4 [18:24:25]MH_SAM_APDU [18:24:25]CAPDU: 80 09 00 00 [18:24:25]Write to MH i2c: E2 08 00 E9 71 80 09 00 00 00 00 00 00 CC [18:24:25]Write i2c OK [18:24:25]MH_I2C_Read... [18:24:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:24:25]Read from MH i2c: E2 [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: E2 03 00 [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: E2 03 00 E9 71 00 90 00 CE [18:24:25]RAPDU: 90 00 [18:24:25]wFMCommunicate OK [18:24:25]SAM_PROTO_ClearQueue done [18:24:25]KKMCreateOFDPacket [18:24:25]OFDProtocolAddRootSTLVToBuf [18:24:25]FM_MakeSignedData [18:24:25]FM_MakeSignedData [18:24:25]SAM_PROTO_SignData [18:24:25]wFMCommunicate request_size=4 [18:24:25]MH_SAM_APDU [18:24:25]CAPDU: 80 0D 01 02 [18:24:25]Write to MH i2c: E2 08 00 EA 71 80 0D 01 02 00 00 00 00 D4 [18:24:25]Write i2c OK [18:24:25]MH_I2C_Read... [18:24:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:24:25]Read from MH i2c: E2 [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: E2 03 00 [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: E2 03 00 EA 71 00 90 00 CF [18:24:25]RAPDU: 90 00 [18:24:25]wFMCommunicate OK [18:24:25]wFMCommunicate request_size=255 [18:24:25]MH_SAM_APDU [18:24: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 5F DE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 D0 01 00 35 04 06 00 97 [18:24:25]Write to MH i2c: E2 02 01 EB 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 5F DE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 D0 01 00 35 04 06 00 97 00 00 9C [18:24:25]Write i2c OK [18:24:25]MH_I2C_Read... [18:24:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:26]Read from MH i2c: E2 [18:24:26]MH_I2C_Read... [18:24:26]Read from MH i2c: E2 03 00 [18:24:26]MH_I2C_Read... [18:24:26]Read from MH i2c: E2 03 00 EB 71 00 90 00 D0 [18:24:26]RAPDU: 90 00 [18:24:26]wFMCommunicate OK [18:24:26]wFMCommunicate request_size=10 [18:24:26]MH_SAM_APDU [18:24:26]CAPDU: 80 0D 02 02 05 E5 41 96 D4 05 [18:24:26]Write to MH i2c: E2 0D 00 EC 71 80 0D 02 02 05 00 E5 41 96 D4 05 00 00 76 [18:24:26]Write i2c OK [18:24:26]OFD Sender: No OFD packet to send [18:24:26]MH_I2C_Read... [18:24:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:26]Read from MH i2c: E2 [18:24:26]MH_I2C_Read... [18:24:26]Read from MH i2c: E2 03 00 [18:24:26]MH_I2C_Read... [18:24:26]Read from MH i2c: E2 03 00 EC 71 00 90 00 D1 [18:24:26]RAPDU: 90 00 [18:24:26]wFMCommunicate OK [18:24:26]wFMCommunicate request_size=4 [18:24:26]MH_SAM_APDU [18:24:26]CAPDU: 80 0D 03 02 [18:24:26]Write to MH i2c: E2 08 00 ED 71 80 0D 03 02 00 00 00 00 D9 [18:24:26]Write i2c OK [18:24:26]MH_I2C_Read... [18:24:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:24:26]Read from MH i2c: E2 [18:24:26]MH_I2C_Read... [18:24:26]Read from MH i2c: E2 0B 00 [18:24:26]MH_I2C_Read... [18:24:26]Read from MH i2c: E2 0B 00 ED 71 00 9D 30 41 0E 4C 0B 6F 9A 90 00 56 [18:24:26]RAPDU: 9D 30 41 0E 4C 0B 6F 9A 90 00 [18:24:26]wFMCommunicate OK [18:24:26]SAM_PROTO_SignData done [18:24:26]FM_MakeSignedData done [18:24:26]CreateOFDProtocolMessage [18:24:26]wFMCommunicate request_size=4 [18:24:26]MH_SAM_APDU [18:24:26]CAPDU: 80 11 00 00 [18:24:26]Write to MH i2c: E2 08 00 EE 71 80 11 00 00 00 00 00 00 D9 [18:24:26]Write i2c OK [18:24:26]MH_I2C_Read... [18:24:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:26]Read from MH i2c: E2 [18:24:26]MH_I2C_Read... [18:24:26]Read from MH i2c: E2 17 00 [18:24:26]MH_I2C_Read... [18:24:26]Read from MH i2c: E2 17 00 EE 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 34 [18:24:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:24:26]wFMCommunicate OK [18:24:26]CreateOFDProtocolMessage done [18:24:26]OFDSenderStorePacket 118872 [18:24:26]StoreOFDPacket docnum=118872 [18:24:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DF 50 07 01 6B FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 5F DE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 D0 01 00 35 04 06 00 97 E5 41 96 D4 05 9D 30 41 0E 4C 0B 6F 9A [18:24:26]CheckFolder [18:24:26]dirname=/storage/ofd_packets [18:24:26]CheckFolder done [18:24:26]ProducePacketName [18:24:26]name=ofd_packets/00118872 [18:24:26]NVStorageSaveData ofd_packets/00118872 [18:24:26]File name is /storage/ofd_packets/00118872 [18:24:26]Write 301 bytes [18:24:26]NVStorageSaveData done [18:24:26]OFDSenderStorePacket done [18:24:26]KKMCreateOFDPacket done [18:24:26]NVStorageSaveData kkm_last_timestamp [18:24:26]File name is /storage/kkm_last_timestamp [18:24:26]Write 4 bytes [18:24:26]NVStorageSaveData done [18:24:26]ExternCall_PrintAddStr [18:24:26]wPrintStart [18:24:26]Write to MH i2c: 01 00 00 EF 71 60 [18:24:26]Write i2c OK [18:24:26]MH_I2C_Read... [18:24:26]Read from MH i2c: 01 [18:24:26]MH_I2C_Read... [18:24:26]Read from MH i2c: 01 07 00 [18:24:26]MH_I2C_Read... [18:24:26]Read from MH i2c: 01 07 00 EF 71 00 00 00 00 00 FF 0F 75 [18:24:26]RasterBufferAndPrint [18:24:26]line Счет N : (1)949762 [18:24:26]line ИНН: 02508201610067 [18:24:26]line Контрольно-Кассовый Чек [18:24:26]line ПРОДАЖА [18:24:26]line ТРК (МРК, ГНК) : 51 [18:24:26]line Товар: 2710124130 [18:24:26]line Аи-92-К-4 [18:24:26]line 14.750 * 67.80 [18:24:26]line = 1000.05 [18:24:26]line НДС 12% НСП 1% [18:24:26]line > о реализуемом товаре [18:24:26]line ОКРУГЛЕНИЕ: -0.05 [18:24:26]line ИТОГО: 1000.00 [18:24:26]line Внесено: 1000.00 [18:24:26]line СДАЧА: 0.00 [18:24:26]line НСП 1% : 8.85 [18:24:26]line НДС 12% : 106.20 [18:24:26]line Наличными: 1000.00 [18:24:26]line Безнал.: 0.00 [18:24:26]line Место: АЗС № 134 "Партнер Нефть" [18:24:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:24:26]line СНО: Общий режим [18:24:26]line Чек 248 29.07.2024 18:24 [18:24:26]line Смена: 434 ФФД: 1.0 [18:24:26]line ЗНМ: 0300000044 [18:24:26]line РНМ: 0000000000092660 [18:24:26]line Версия ККМ: 001 [18:24:26]line ФМ: 0000000000874939 [18:24:26]line ФД: 118872 [18:24:26]line ФПД: 167010903708677 [18:24:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182431&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118872&fm=167010903708677&tin=02508201610067®Number=0000000000092660&sum=100000 [18:24:26]OFD Sender: Processing packet 118872 [packets to send 86, broken 85] [18:24:26]ProducePacketName [18:24:26]name=ofd_packets/00118872 [18:24:26]OFD Sender: To server: pG, [18:24:26]CommunicateWithHost lk.salyk.kg:30040 [18:24:26]ConnectInit lk.salyk.kg [18:24:26]written 0, free lines is 4095 [18:24:26]Connected sock=10 [18:24:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DF 50 07 01 6B FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 5F DE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 D0 01 00 35 04 06 00 97 E5 41 96 D4 05 9D 30 41 0E 4C 0B 6F 9A [18:24:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 27 40 47 00 E2 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 34 39 33 39 10 04 04 00 58 D0 01 00 F4 03 04 00 EC 8B A7 66 B6 04 01 00 00 15 B9 BD AF D7 9C B8 39 [18:24:27]CommunicateWithHost err = 0 [18:24:27]CheckOFDResponse [18:24:27]1017 (14) - 77093643461234 [18:24:27]1041 (16) - 0000000000874939 [18:24:27]1040 (4) - 118872 [18:24:27]1012 (4) - 29.07.2024 12:32 [18:24:27]1206 (1) - 0 [18:24:27]OFD Sender: Remove packet 118872 [18:24:27]ProducePacketName [18:24:27]name=ofd_packets/00118872 [18:24:27]NVStorageDeleteData [18:24:27]Write to MH i2c: 01 00 00 19 72 8B [18:24:27]Write i2c OK [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: 01 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: 01 07 00 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: 01 07 00 19 72 00 00 00 00 00 E5 0C 83 [18:24:27]RasterBufferAndPrint [18:24:27]line [18:24:27]line [18:24:27]line [18:24:27]line [18:24:27]line [18:24:27]written 0, free lines is 3307 [18:24:27]MH_Cut [18:24:27]Write to MH i2c: D1 01 00 20 72 01 64 [18:24:27]Write i2c OK [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: D1 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: D1 01 00 [18:24:27]MH_I2C_Read... [18:24:27]Read from MH i2c: D1 01 00 20 72 00 63 [18:24:27]Write to MH i2c: 01 00 00 21 72 93 [18:24:27]Write i2c OK [18:24:27]MH_I2C_Read... [18:24:27]OFD Sender: No OFD packet to send [18:24:27]*** Cut start [18:24:27]*** Partial cut [18:24:27]*** CUTSNS_PIN = 1 [18:24:27]*** CUTSNS_PIN = 0 [18:24:28]*** Brake cut motor [18:24:28]Read from MH i2c: 01 [18:24:28]MH_I2C_Read... [18:24:28]*** Stop cut motor [18:24:28]*** Cut end [18:24:28]Read from MH i2c: 01 07 00 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: 01 07 00 21 72 00 00 00 00 00 FF 0F A8 [18:24:28]process_action close_receipt done [18:24:28]requested_data is exist [18:24:28]produce_requested_data [18:24:28]requested_item fm.sn is exist - process it [18:24:28]wFMCommunicate request_size=4 [18:24:28]MH_SAM_APDU [18:24:28]CAPDU: 80 11 00 00 [18:24:28]Write to MH i2c: E2 08 00 22 72 80 11 00 00 00 00 00 00 0E [18:24:28]Write i2c OK [18:24:28]MH_I2C_Read... [18:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:28]Read from MH i2c: E2 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: E2 17 00 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: E2 17 00 22 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 69 [18:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:24:28]wFMCommunicate OK [18:24:28]requested_item fd.num is exist - process it [18:24:28]SAM_PROTO_GetFieldsCounters [18:24:28]wFMCommunicate request_size=4 [18:24:28]MH_SAM_APDU [18:24:28]CAPDU: 80 13 00 00 [18:24:28]Write to MH i2c: E2 08 00 23 72 80 13 00 00 00 00 00 00 11 [18:24:28]Write i2c OK [18:24:28]MH_I2C_Read... [18:24:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:24:28]Read from MH i2c: E2 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: E2 62 00 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: E2 62 00 23 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 58 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [18:24: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 58 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:24:28]wFMCommunicate OK [18:24:28]SAM_PROTO_GetFieldsCounters done [18:24:28]requested_item shift.num is exist - process it [18:24:28]requested_item shift.opened is exist - process it [18:24:28]req_shift_opened [18:24:28]FM_GetShiftState [18:24:28]SAM_PROTO_GetShiftState [18:24:28]wFMCommunicate request_size=4 [18:24:28]MH_SAM_APDU [18:24:28]CAPDU: 80 13 01 00 [18:24:28]Write to MH i2c: E2 08 00 24 72 80 13 01 00 00 00 00 00 13 [18:24:28]Write i2c OK [18:24:28]MH_I2C_Read... [18:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:28]Read from MH i2c: E2 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: E2 0E 00 [18:24:28]MH_I2C_Read... [18:24:28]Read from MH i2c: E2 0E 00 24 72 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 41 [18:24:28]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:24:28]wFMCommunicate OK [18:24:28]SAM_PROTO_GetShiftState done [18:24:28]FM_GetShiftState done [18:24:28]req_shift_opened done [18:24:28]requested_item shift.open_date is exist - process it [18:24:28]req_shift_open_date [18:24:28]req_shift_open_date done [18:24:28]produce_requested_data done [18:24:28]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118872,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:24:28]process_action_free close_receipt [18:24:28]json_value_free [18:24:28]json_value_free done [18:24:28]process_json_proto returns [18:24:28]Send response to host [18:24:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118872,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:24:28]free response buf [18:24:28]execute_script done [18:24:28]execute_script returns [18:24:28]free content buf [18:24:28]Sock 7.Close socket [18:24:28]Sock 7.Thread stoped [18:24:32]OFD Sender: No OFD packet to send [18:24:37]OFD Sender: No OFD packet to send [18:24:42]OFD Sender: No OFD packet to send [18:24:47]OFD Sender: No OFD packet to send [18:24:50]accept exits with 9 [18:24:50]New connection [18:24:50]New thread 3067383140 created [18:24:50]Thread 3067239780 joined [18:24:50]Waiting for new connection... [18:24:50] Sock 9.Parse request [18:24:50]Sock 9.Check first char [18:24:50]Sock 9.First char is OK [18:24:50]request: POST /json_proto HTTP/1.0 [18:24:50]Method: POST [18:24:50]URL: /json_proto [18:24:50]Method is POST - this is cgi request [18:24:50]url: /json_proto [18:24:50]query_string will be loaded in cgi processing [18:24:50]execute_cgi json_proto POST (null) [18:24:50]execute_cgi path=json_proto method=POST [18:24:50]POST find Content-Length [18:24:50]Host: 172.17.45.7:8080 [18:24:50]Content-Length: 682 [18:24:50]Content-Type: application/json [18:24:50] [18:24:50]POST finish read [18:24:50]Found Content-Length = 682 [18:24:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:50]execute_script... [18:24:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:50]POST & json_proto [18:24:50]process_json_proto [18:24:50]json parsed OK: [18:24:50]protocol is kg_v1.0 [18:24:50]action value=close_receipt [18:24:50]process_action close_receipt [18:24:50]cmd_close_receipt [18:24:50]MH_GetDate [18:24:50]Write to MH i2c: F0 00 00 25 72 86 [18:24:50]Write i2c OK [18:24:50]MH_I2C_Read... [18:24:50]Read from MH i2c: F0 [18:24:50]MH_I2C_Read... [18:24:50]Read from MH i2c: F0 09 00 [18:24:50]MH_I2C_Read... [18:24:50]Read from MH i2c: F0 09 00 25 72 00 79 DE A7 66 90 0F 3E 66 36 [18:24:50]GetLastDocTimeStamp 1722277471 [18:24:50]current date 1722277497 [18:24:50]FM_GetShiftState [18:24:50]SAM_PROTO_GetShiftState [18:24:50]wFMCommunicate request_size=4 [18:24:50]MH_SAM_APDU [18:24:50]CAPDU: 80 13 01 00 [18:24:50]Write to MH i2c: E2 08 00 26 72 80 13 01 00 00 00 00 00 15 [18:24:50]Write i2c OK [18:24:50]MH_I2C_Read... [18:24:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:50]Read from MH i2c: E2 [18:24:50]MH_I2C_Read... [18:24:50]Read from MH i2c: E2 0E 00 [18:24:50]MH_I2C_Read... [18:24:50]Read from MH i2c: E2 0E 00 26 72 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 43 [18:24:50]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:24:50]wFMCommunicate OK [18:24:50]SAM_PROTO_GetShiftState done [18:24:50]FM_GetShiftState done [18:24:50]opened in 1722211641 [18:24:50]opened+sec_in_day 1722298041 [18:24:50]quantity*price = 100005 [18:24:50]sum+1 = 100006 [18:24:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 249 29.07.2024 18:24 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118873 ФПД: 11177555869962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182457&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118873&fm=11177555869962&tin=02508201610067®Number=0000000000092660&sum=100000 [18:24:51]StoreToDocumentArchive [18:24:51]shift 434 fd 118873 [18:24:51]save to /storage/0434/doc_00118873 [18:24:51]save last doc name /storage/0434/doc_00118873 to /storage/kkm_last_doc_name [18:24:51]save OK [18:24:51]Clear old archive folders... [18:24:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:24:51]tlvbuf is 01E8A270 [18:24:51]SAM_PROTO_ClearQueue [18:24:51]wFMCommunicate request_size=4 [18:24:51]MH_SAM_APDU [18:24:51]CAPDU: 80 09 00 00 [18:24:51]Write to MH i2c: E2 08 00 33 72 80 09 00 00 00 00 00 00 17 [18:24:51]Write i2c OK [18:24:51]MH_I2C_Read... [18:24:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:24:51]Read from MH i2c: E2 [18:24:51]MH_I2C_Read... [18:24:51]Read from MH i2c: E2 03 00 [18:24:51]MH_I2C_Read... [18:24:51]Read from MH i2c: E2 03 00 33 72 00 90 00 19 [18:24:51]RAPDU: 90 00 [18:24:51]wFMCommunicate OK [18:24:51]SAM_PROTO_ClearQueue done [18:24:51]KKMCreateOFDPacket [18:24:51]OFDProtocolAddRootSTLVToBuf [18:24:51]FM_MakeSignedData [18:24:51]FM_MakeSignedData [18:24:51]SAM_PROTO_SignData [18:24:51]wFMCommunicate request_size=4 [18:24:51]MH_SAM_APDU [18:24:51]CAPDU: 80 0D 01 02 [18:24:51]Write to MH i2c: E2 08 00 34 72 80 0D 01 02 00 00 00 00 1F [18:24:51]Write i2c OK [18:24:51]MH_I2C_Read... [18:24:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:24:51]Read from MH i2c: E2 [18:24:51]MH_I2C_Read... [18:24:51]Read from MH i2c: E2 03 00 [18:24:51]MH_I2C_Read... [18:24:51]Read from MH i2c: E2 03 00 34 72 00 90 00 1A [18:24:51]RAPDU: 90 00 [18:24:51]wFMCommunicate OK [18:24:51]wFMCommunicate request_size=255 [18:24:51]MH_SAM_APDU [18:24:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 79 DE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 D0 01 00 35 04 06 00 0A [18:24:51]Write to MH i2c: E2 02 01 35 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 79 DE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 D0 01 00 35 04 06 00 0A 00 00 76 [18:24:51]Write i2c OK [18:24:51]MH_I2C_Read... [18:24:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:51]Read from MH i2c: E2 [18:24:51]MH_I2C_Read... [18:24:51]Read from MH i2c: E2 03 00 [18:24:51]MH_I2C_Read... [18:24:51]Read from MH i2c: E2 03 00 35 72 00 90 00 1B [18:24:51]RAPDU: 90 00 [18:24:51]wFMCommunicate OK [18:24:51]wFMCommunicate request_size=10 [18:24:51]MH_SAM_APDU [18:24:51]CAPDU: 80 0D 02 02 05 2A 7A 3F 41 0A [18:24:51]Write to MH i2c: E2 0D 00 36 72 80 0D 02 02 05 00 2A 7A 3F 41 0A 00 00 5A [18:24:51]Write i2c OK [18:24:51]MH_I2C_Read... [18:24:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:51]Read from MH i2c: E2 [18:24:51]MH_I2C_Read... [18:24:51]Read from MH i2c: E2 03 00 [18:24:51]MH_I2C_Read... [18:24:51]Read from MH i2c: E2 03 00 36 72 00 90 00 1C [18:24:51]RAPDU: 90 00 [18:24:51]wFMCommunicate OK [18:24:51]wFMCommunicate request_size=4 [18:24:51]MH_SAM_APDU [18:24:51]CAPDU: 80 0D 03 02 [18:24:51]Write to MH i2c: E2 08 00 37 72 80 0D 03 02 00 00 00 00 24 [18:24:51]Write i2c OK [18:24:51]MH_I2C_Read... [18:24:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:24:51]Read from MH i2c: E2 [18:24:51]MH_I2C_Read... [18:24:51]Read from MH i2c: E2 0B 00 [18:24:51]MH_I2C_Read... [18:24:51]Read from MH i2c: E2 0B 00 37 72 00 AF D6 BA 33 E8 D3 54 21 90 00 C7 [18:24:51]RAPDU: AF D6 BA 33 E8 D3 54 21 90 00 [18:24:51]wFMCommunicate OK [18:24:51]SAM_PROTO_SignData done [18:24:51]FM_MakeSignedData done [18:24:51]CreateOFDProtocolMessage [18:24:51]wFMCommunicate request_size=4 [18:24:51]MH_SAM_APDU [18:24:51]CAPDU: 80 11 00 00 [18:24:51]Write to MH i2c: E2 08 00 38 72 80 11 00 00 00 00 00 00 24 [18:24:51]Write i2c OK [18:24:51]MH_I2C_Read... [18:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:51]Read from MH i2c: E2 [18:24:51]MH_I2C_Read... [18:24:51]Read from MH i2c: E2 17 00 [18:24:51]MH_I2C_Read... [18:24:51]Read from MH i2c: E2 17 00 38 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7F [18:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:24:51]wFMCommunicate OK [18:24:51]CreateOFDProtocolMessage done [18:24:51]OFDSenderStorePacket 118873 [18:24:51]StoreOFDPacket docnum=118873 [18:24:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 11 58 07 01 70 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 79 DE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 D0 01 00 35 04 06 00 0A 2A 7A 3F 41 0A AF D6 BA 33 E8 D3 54 21 [18:24:51]CheckFolder [18:24:51]dirname=/storage/ofd_packets [18:24:51]CheckFolder done [18:24:51]ProducePacketName [18:24:51]name=ofd_packets/00118873 [18:24:51]NVStorageSaveData ofd_packets/00118873 [18:24:51]File name is /storage/ofd_packets/00118873 [18:24:51]Write 301 bytes [18:24:51]NVStorageSaveData done [18:24:51]OFDSenderStorePacket done [18:24:51]KKMCreateOFDPacket done [18:24:51]NVStorageSaveData kkm_last_timestamp [18:24:51]File name is /storage/kkm_last_timestamp [18:24:51]Write 4 bytes [18:24:51]NVStorageSaveData done [18:24:51]ExternCall_PrintAddStr [18:24:51]wPrintStart [18:24:51]Write to MH i2c: 01 00 00 39 72 AB [18:24:51]Write i2c OK [18:24:51]MH_I2C_Read... [18:24:51]Read from MH i2c: 01 [18:24:51]MH_I2C_Read... [18:24:51]Read from MH i2c: 01 07 00 [18:24:51]MH_I2C_Read... [18:24:51]Read from MH i2c: 01 07 00 39 72 00 00 00 00 00 FF 0F C0 [18:24:51]RasterBufferAndPrint [18:24:51]line Счет N : (1)949763 [18:24:51]line ИНН: 02508201610067 [18:24:51]line Контрольно-Кассовый Чек [18:24:51]line ПРОДАЖА [18:24:51]line ТРК (МРК, ГНК) : 61 [18:24:51]line Товар: 2710124130 [18:24:51]line Аи-92-К-4 [18:24:51]line 14.750 * 67.80 [18:24:51]line = 1000.05 [18:24:51]line НДС 12% НСП 1% [18:24:51]line > о реализуемом товаре [18:24:51]line ОКРУГЛЕНИЕ: -0.05 [18:24:51]line ИТОГО: 1000.00 [18:24:51]line Внесено: 1000.00 [18:24:51]line СДАЧА: 0.00 [18:24:51]line НСП 1% : 8.85 [18:24:51]line НДС 12% : 106.20 [18:24:51]line Наличными: 1000.00 [18:24:51]line Безнал.: 0.00 [18:24:51]line Место: АЗС № 134 "Партнер Нефть" [18:24:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:24:51]line СНО: Общий режим [18:24:51]line Чек 249 29.07.2024 18:24 [18:24:51]line Смена: 434 ФФД: 1.0 [18:24:51]line ЗНМ: 0300000044 [18:24:51]line РНМ: 0000000000092660 [18:24:51]line Версия ККМ: 001 [18:24:51]line ФМ: 0000000000874939 [18:24:51]line ФД: 118873 [18:24:51]line ФПД: 11177555869962 [18:24:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182457&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118873&fm=11177555869962&tin=02508201610067®Number=0000000000092660&sum=100000 [18:24:52]OFD Sender: Processing packet 118873 [packets to send 86, broken 85] [18:24:52]ProducePacketName [18:24:52]name=ofd_packets/00118873 [18:24:52]OFD Sender: To server: pG, [18:24:52]CommunicateWithHost lk.salyk.kg:30040 [18:24:52]ConnectInit lk.salyk.kg [18:24:52]written 0, free lines is 4095 [18:24:52]Connected sock=10 [18:24:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 11 58 07 01 70 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 79 DE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 D0 01 00 35 04 06 00 0A 2A 7A 3F 41 0A AF D6 BA 33 E8 D3 54 21 [18:24:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3F 68 47 00 72 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 D0 01 00 F4 03 04 00 06 8C A7 66 B6 04 01 00 00 8D 25 90 30 4B 6B C8 74 [18:24:52]CommunicateWithHost err = 0 [18:24:52]CheckOFDResponse [18:24:52]1017 (14) - 77093643461234 [18:24:52]1041 (16) - 0000000000874939 [18:24:52]1040 (4) - 118873 [18:24:52]1012 (4) - 29.07.2024 12:33 [18:24:52]1206 (1) - 0 [18:24:52]OFD Sender: Remove packet 118873 [18:24:52]ProducePacketName [18:24:52]name=ofd_packets/00118873 [18:24:52]NVStorageDeleteData [18:24:52]Write to MH i2c: 01 00 00 63 72 D5 [18:24:52]Write i2c OK [18:24:52]MH_I2C_Read... [18:24:52]Read from MH i2c: 01 [18:24:52]MH_I2C_Read... [18:24:52]Read from MH i2c: 01 07 00 [18:24:52]MH_I2C_Read... [18:24:52]Read from MH i2c: 01 07 00 63 72 00 00 00 00 00 EB 0C D3 [18:24:52]RasterBufferAndPrint [18:24:52]line [18:24:52]line [18:24:52]line [18:24:52]line [18:24:52]line [18:24:52]written 0, free lines is 3313 [18:24:52]MH_Cut [18:24:52]Write to MH i2c: D1 01 00 6A 72 01 AE [18:24:52]Write i2c OK [18:24:52]MH_I2C_Read... [18:24:52]Read from MH i2c: D1 [18:24:52]MH_I2C_Read... [18:24:52]Read from MH i2c: D1 01 00 [18:24:52]MH_I2C_Read... [18:24:52]Read from MH i2c: D1 01 00 6A 72 00 AD [18:24:52]Write to MH i2c: 01 00 00 6B 72 DD [18:24:52]Write i2c OK [18:24:52]MH_I2C_Read... [18:24:53]OFD Sender: No OFD packet to send [18:24:53]*** Cut start [18:24:53]*** Partial cut [18:24:53]*** CUTSNS_PIN = 1 [18:24:53]*** CUTSNS_PIN = 0 [18:24:53]*** Brake cut motor [18:24:54]Read from MH i2c: 01 [18:24:54]MH_I2C_Read... [18:24:54]*** Stop cut motor [18:24:54]*** Cut end [18:24:54]Read from MH i2c: 01 07 00 [18:24:54]MH_I2C_Read... [18:24:54]Read from MH i2c: 01 07 00 6B 72 00 00 00 00 00 FF 0F F2 [18:24:54]process_action close_receipt done [18:24:54]requested_data is exist [18:24:54]produce_requested_data [18:24:54]requested_item fm.sn is exist - process it [18:24:54]wFMCommunicate request_size=4 [18:24:54]MH_SAM_APDU [18:24:54]CAPDU: 80 11 00 00 [18:24:54]Write to MH i2c: E2 08 00 6C 72 80 11 00 00 00 00 00 00 58 [18:24:54]Write i2c OK [18:24:54]MH_I2C_Read... [18:24:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:54]Read from MH i2c: E2 [18:24:54]MH_I2C_Read... [18:24:54]Read from MH i2c: E2 17 00 [18:24:54]MH_I2C_Read... [18:24:54]Read from MH i2c: E2 17 00 6C 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B3 [18:24:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:24:54]wFMCommunicate OK [18:24:54]requested_item fd.num is exist - process it [18:24:54]SAM_PROTO_GetFieldsCounters [18:24:54]wFMCommunicate request_size=4 [18:24:54]MH_SAM_APDU [18:24:54]CAPDU: 80 13 00 00 [18:24:54]Write to MH i2c: E2 08 00 6D 72 80 13 00 00 00 00 00 00 5B [18:24:54]Write i2c OK [18:24:54]MH_I2C_Read... [18:24:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:24:54]Read from MH i2c: E2 [18:24:54]MH_I2C_Read... [18:24:54]Read from MH i2c: E2 62 00 [18:24:54]MH_I2C_Read... [18:24:54]Read from MH i2c: E2 62 00 6D 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 59 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [18: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 59 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:24:54]wFMCommunicate OK [18:24:54]SAM_PROTO_GetFieldsCounters done [18:24:54]requested_item shift.num is exist - process it [18:24:54]requested_item shift.opened is exist - process it [18:24:54]req_shift_opened [18:24:54]FM_GetShiftState [18:24:54]SAM_PROTO_GetShiftState [18:24:54]wFMCommunicate request_size=4 [18:24:54]MH_SAM_APDU [18:24:54]CAPDU: 80 13 01 00 [18:24:54]Write to MH i2c: E2 08 00 6E 72 80 13 01 00 00 00 00 00 5D [18:24:54]Write i2c OK [18:24:54]MH_I2C_Read... [18:24:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:54]Read from MH i2c: E2 [18:24:54]MH_I2C_Read... [18:24:54]Read from MH i2c: E2 0E 00 [18:24:54]MH_I2C_Read... [18:24:54]Read from MH i2c: E2 0E 00 6E 72 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 8B [18:24:54]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:24:54]wFMCommunicate OK [18:24:54]SAM_PROTO_GetShiftState done [18:24:54]FM_GetShiftState done [18:24:54]req_shift_opened done [18:24:54]requested_item shift.open_date is exist - process it [18:24:54]req_shift_open_date [18:24:54]req_shift_open_date done [18:24:54]produce_requested_data done [18:24:54]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118873,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:24:54]process_action_free close_receipt [18:24:54]json_value_free [18:24:54]json_value_free done [18:24:54]process_json_proto returns [18:24:54]Send response to host [18:24:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118873,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:24:54]free response buf [18:24:54]execute_script done [18:24:54]execute_script returns [18:24:54]free content buf [18:24:54]Sock 9.Close socket [18:24:54]Sock 9.Thread stoped [18:24:58]OFD Sender: No OFD packet to send [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:53]accept exits with 7 [18:25:53]New connection [18:25:53]New thread 3067239780 created [18:25:53]Thread 3067383140 joined [18:25:53]Waiting for new connection... [18:25:53] Sock 7.Parse request [18:25:53]Sock 7.Check first char [18:25:53]Sock 7.First char is OK [18:25:53]request: POST /json_proto HTTP/1.0 [18:25:53]Method: POST [18:25:53]URL: /json_proto [18:25:53]Method is POST - this is cgi request [18:25:53]url: /json_proto [18:25:53]query_string will be loaded in cgi processing [18:25:53]execute_cgi json_proto POST (null) [18:25:53]execute_cgi path=json_proto method=POST [18:25:53]POST find Content-Length [18:25:53]Host: 172.17.45.7:8080 [18:25:53]Content-Length: 677 [18:25:53]Content-Type: application/json [18:25:53] [18:25:53]POST finish read [18:25:53]Found Content-Length = 677 [18:25:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.250, "sum" : 220.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:53]execute_script... [18:25:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.250, "sum" : 220.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:53]POST & json_proto [18:25:53]process_json_proto [18:25:53]json parsed OK: [18:25:53]protocol is kg_v1.0 [18:25:53]action value=close_receipt [18:25:53]process_action close_receipt [18:25:53]cmd_close_receipt [18:25:53]MH_GetDate [18:25:53]Write to MH i2c: F0 00 00 6F 72 D0 [18:25:53]Write i2c OK [18:25:53]MH_I2C_Read... [18:25:53]Read from MH i2c: F0 [18:25:53]MH_I2C_Read... [18:25:53]Read from MH i2c: F0 09 00 [18:25:53]MH_I2C_Read... [18:25:53]Read from MH i2c: F0 09 00 6F 72 00 B8 DE A7 66 90 0F 3E 66 BF [18:25:53]GetLastDocTimeStamp 1722277497 [18:25:53]current date 1722277560 [18:25:53]FM_GetShiftState [18:25:53]SAM_PROTO_GetShiftState [18:25:53]wFMCommunicate request_size=4 [18:25:53]MH_SAM_APDU [18:25:53]CAPDU: 80 13 01 00 [18:25:53]Write to MH i2c: E2 08 00 70 72 80 13 01 00 00 00 00 00 5F [18:25:53]Write i2c OK [18:25:53]MH_I2C_Read... [18:25:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:53]Read from MH i2c: E2 [18:25:53]MH_I2C_Read... [18:25:53]Read from MH i2c: E2 0E 00 [18:25:53]MH_I2C_Read... [18:25:53]Read from MH i2c: E2 0E 00 70 72 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 8D [18:25:53]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:25:53]wFMCommunicate OK [18:25:53]SAM_PROTO_GetShiftState done [18:25:53]FM_GetShiftState done [18:25:53]opened in 1722211641 [18:25:53]opened+sec_in_day 1722298041 [18:25:53]quantity*price = 22035 [18:25:53]sum+1 = 22036 [18:25:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.40 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 250 29.07.2024 18:26 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118874 ФПД: 184891410537691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182600&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118874&fm=184891410537691&tin=02508201610067®Number=0000000000092660&sum=22000 [18:25:54]StoreToDocumentArchive [18:25:54]shift 434 fd 118874 [18:25:54]save to /storage/0434/doc_00118874 [18:25:54]save last doc name /storage/0434/doc_00118874 to /storage/kkm_last_doc_name [18:25:54]save OK [18:25:54]Clear old archive folders... [18:25:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:25:54]tlvbuf is 02098640 [18:25:54]SAM_PROTO_ClearQueue [18:25:54]wFMCommunicate request_size=4 [18:25:54]MH_SAM_APDU [18:25:54]CAPDU: 80 09 00 00 [18:25:54]Write to MH i2c: E2 08 00 7D 72 80 09 00 00 00 00 00 00 61 [18:25:54]Write i2c OK [18:25:54]MH_I2C_Read... [18:25:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:54]Read from MH i2c: E2 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: E2 03 00 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: E2 03 00 7D 72 00 90 00 63 [18:25:54]RAPDU: 90 00 [18:25:54]wFMCommunicate OK [18:25:54]SAM_PROTO_ClearQueue done [18:25:54]KKMCreateOFDPacket [18:25:54]OFDProtocolAddRootSTLVToBuf [18:25:54]FM_MakeSignedData [18:25:54]FM_MakeSignedData [18:25:54]SAM_PROTO_SignData [18:25:54]wFMCommunicate request_size=4 [18:25:54]MH_SAM_APDU [18:25:54]CAPDU: 80 0D 01 02 [18:25:54]Write to MH i2c: E2 08 00 7E 72 80 0D 01 02 00 00 00 00 69 [18:25:54]Write i2c OK [18:25:54]MH_I2C_Read... [18:25:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:54]Read from MH i2c: E2 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: E2 03 00 [18:25:54]MH_I2C_Read... [18:25:54]Read from MH i2c: E2 03 00 7E 72 00 90 00 64 [18:25:54]RAPDU: 90 00 [18:25:54]wFMCommunicate OK [18:25:54]wFMCommunicate request_size=255 [18:25:54]MH_SAM_APDU [18:25: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 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 56 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 24 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 FA 00 00 00 F4 03 04 00 B8 DE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A D0 01 00 35 04 06 00 A8 [18:25:54]Write to MH i2c: E2 02 01 7F 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 56 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 24 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 FA 00 00 00 F4 03 04 00 B8 DE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A D0 01 00 35 04 06 00 A8 00 00 D2 [18:25:54]Write i2c OK [18:25:54]MH_I2C_Read... [18:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:55]Read from MH i2c: E2 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: E2 03 00 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: E2 03 00 7F 72 00 90 00 65 [18:25:55]RAPDU: 90 00 [18:25:55]wFMCommunicate OK [18:25:55]wFMCommunicate request_size=10 [18:25:55]MH_SAM_APDU [18:25:55]CAPDU: 80 0D 02 02 05 28 62 D8 DC DB [18:25:55]Write to MH i2c: E2 0D 00 80 72 80 0D 02 02 05 00 28 62 D8 DC DB 00 00 8F [18:25:55]Write i2c OK [18:25:55]MH_I2C_Read... [18:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:55]Read from MH i2c: E2 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: E2 03 00 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: E2 03 00 80 72 00 90 00 66 [18:25:55]RAPDU: 90 00 [18:25:55]wFMCommunicate OK [18:25:55]wFMCommunicate request_size=4 [18:25:55]MH_SAM_APDU [18:25:55]CAPDU: 80 0D 03 02 [18:25:55]Write to MH i2c: E2 08 00 81 72 80 0D 03 02 00 00 00 00 6E [18:25:55]Write i2c OK [18:25:55]MH_I2C_Read... [18:25:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:55]Read from MH i2c: E2 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: E2 0B 00 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: E2 0B 00 81 72 00 F8 B3 6A 0E B3 D0 8F 08 90 00 AC [18:25:55]RAPDU: F8 B3 6A 0E B3 D0 8F 08 90 00 [18:25:55]wFMCommunicate OK [18:25:55]SAM_PROTO_SignData done [18:25:55]FM_MakeSignedData done [18:25:55]CreateOFDProtocolMessage [18:25:55]wFMCommunicate request_size=4 [18:25:55]MH_SAM_APDU [18:25:55]CAPDU: 80 11 00 00 [18:25:55]Write to MH i2c: E2 08 00 82 72 80 11 00 00 00 00 00 00 6E [18:25:55]Write i2c OK [18:25:55]MH_I2C_Read... [18:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:55]Read from MH i2c: E2 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: E2 17 00 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: E2 17 00 82 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C9 [18:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:25:55]wFMCommunicate OK [18:25:55]CreateOFDProtocolMessage done [18:25:55]OFDSenderStorePacket 118874 [18:25:55]StoreOFDPacket docnum=118874 [18:25:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 71 32 07 01 F9 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 56 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 24 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 FA 00 00 00 F4 03 04 00 B8 DE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A D0 01 00 35 04 06 00 A8 28 62 D8 DC DB F8 B3 6A 0E B3 D0 8F 08 [18:25:55]CheckFolder [18:25:55]dirname=/storage/ofd_packets [18:25:55]CheckFolder done [18:25:55]ProducePacketName [18:25:55]name=ofd_packets/00118874 [18:25:55]NVStorageSaveData ofd_packets/00118874 [18:25:55]File name is /storage/ofd_packets/00118874 [18:25:55]Write 301 bytes [18:25:55]NVStorageSaveData done [18:25:55]OFDSenderStorePacket done [18:25:55]KKMCreateOFDPacket done [18:25:55]NVStorageSaveData kkm_last_timestamp [18:25:55]File name is /storage/kkm_last_timestamp [18:25:55]Write 4 bytes [18:25:55]NVStorageSaveData done [18:25:55]ExternCall_PrintAddStr [18:25:55]wPrintStart [18:25:55]Write to MH i2c: 01 00 00 83 72 F5 [18:25:55]Write i2c OK [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: 01 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: 01 07 00 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: 01 07 00 83 72 00 00 00 00 00 FF 0F 0A [18:25:55]RasterBufferAndPrint [18:25:55]line Счет N : (1)949764 [18:25:55]line ИНН: 02508201610067 [18:25:55]line Контрольно-Кассовый Чек [18:25:55]line ПРОДАЖА [18:25:55]line ТРК (МРК, ГНК) : 41 [18:25:55]line Товар: 2710124130 [18:25:55]line Аи-92-К-4 [18:25:55]line 3.250 * 67.80 [18:25:55]line = 220.35 [18:25:55]line НДС 12% НСП 1% [18:25:55]line > о реализуемом товаре [18:25:55]line ОКРУГЛЕНИЕ: -0.35 [18:25:55]line ИТОГО: 220.00 [18:25:55]line Внесено: 220.00 [18:25:55]line СДАЧА: 0.00 [18:25:55]line НСП 1% : 1.95 [18:25:55]line НДС 12% : 23.40 [18:25:55]line Наличными: 220.00 [18:25:55]line Безнал.: 0.00 [18:25:55]line Место: АЗС № 134 "Партнер Нефть" [18:25:55]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:25:55]line СНО: Общий режим [18:25:55]line Чек 250 29.07.2024 18:26 [18:25:55]line Смена: 434 ФФД: 1.0 [18:25:55]line ЗНМ: 0300000044 [18:25:55]line РНМ: 0000000000092660 [18:25:55]line Версия ККМ: 001 [18:25:55]line ФМ: 0000000000874939 [18:25:55]line ФД: 118874 [18:25:55]line ФПД: 184891410537691 [18:25:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182600&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118874&fm=184891410537691&tin=02508201610067®Number=0000000000092660&sum=22000 [18:25:55]written 0, free lines is 4095 [18:25:55]OFD Sender: Processing packet 118874 [packets to send 86, broken 85] [18:25:55]ProducePacketName [18:25:55]name=ofd_packets/00118874 [18:25:55]OFD Sender: To server: pG, [18:25:55]CommunicateWithHost lk.salyk.kg:30040 [18:25:55]ConnectInit lk.salyk.kg [18:25:55]Connected sock=10 [18:25:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 71 32 07 01 F9 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 56 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 24 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 FA 00 00 00 F4 03 04 00 B8 DE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A D0 01 00 35 04 06 00 A8 28 62 D8 DC DB F8 B3 6A 0E B3 D0 8F 08 [18:25:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9D 77 47 00 9B 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 34 39 33 39 10 04 04 00 5A D0 01 00 F4 03 04 00 45 8C A7 66 B6 04 01 00 00 01 6F 1E 86 ED 4B 24 97 [18:25:55]CommunicateWithHost err = 0 [18:25:55]CheckOFDResponse [18:25:55]1017 (14) - 77093643461234 [18:25:55]1041 (16) - 0000000000874939 [18:25:55]1040 (4) - 118874 [18:25:55]1012 (4) - 29.07.2024 12:34 [18:25:55]1206 (1) - 0 [18:25:55]OFD Sender: Remove packet 118874 [18:25:55]ProducePacketName [18:25:55]name=ofd_packets/00118874 [18:25:55]NVStorageDeleteData [18:25:55]Write to MH i2c: 01 00 00 AD 72 1F [18:25:55]Write i2c OK [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: 01 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: 01 07 00 [18:25:55]MH_I2C_Read... [18:25:55]Read from MH i2c: 01 07 00 AD 72 00 00 00 00 00 F4 0C 26 [18:25:55]RasterBufferAndPrint [18:25:55]line [18:25:55]line [18:25:55]line [18:25:55]line [18:25:55]line [18:25:55]written 0, free lines is 3323 [18:25:56]MH_Cut [18:25:56]Write to MH i2c: D1 01 00 B4 72 01 F8 [18:25:56]Write i2c OK [18:25:56]MH_I2C_Read... [18:25:56]Read from MH i2c: D1 [18:25:56]MH_I2C_Read... [18:25:56]Read from MH i2c: D1 01 00 [18:25:56]MH_I2C_Read... [18:25:56]Read from MH i2c: D1 01 00 B4 72 00 F7 [18:25:56]Write to MH i2c: 01 00 00 B5 72 27 [18:25:56]Write i2c OK [18:25:56]MH_I2C_Read... [18:25:56]OFD Sender: No OFD packet to send [18:25:56]*** Cut start [18:25:56]*** Partial cut [18:25:56]*** CUTSNS_PIN = 1 [18:25:56]*** CUTSNS_PIN = 0 [18:25:56]*** Brake cut motor [18:25:57]Read from MH i2c: 01 [18:25:57]MH_I2C_Read... [18:25:57]*** Stop cut motor [18:25:57]*** Cut end [18:25:57]Read from MH i2c: 01 07 00 [18:25:57]MH_I2C_Read... [18:25:57]Read from MH i2c: 01 07 00 B5 72 00 00 00 00 00 FF 0F 3C [18:25:57]process_action close_receipt done [18:25:57]requested_data is exist [18:25:57]produce_requested_data [18:25:57]requested_item fm.sn is exist - process it [18:25:57]wFMCommunicate request_size=4 [18:25:57]MH_SAM_APDU [18:25:57]CAPDU: 80 11 00 00 [18:25:57]Write to MH i2c: E2 08 00 B6 72 80 11 00 00 00 00 00 00 A2 [18:25:57]Write i2c OK [18:25:57]MH_I2C_Read... [18:25:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:57]Read from MH i2c: E2 [18:25:57]MH_I2C_Read... [18:25:57]Read from MH i2c: E2 17 00 [18:25:57]MH_I2C_Read... [18:25:57]Read from MH i2c: E2 17 00 B6 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FD [18:25:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:25:57]wFMCommunicate OK [18:25:57]requested_item fd.num is exist - process it [18:25:57]SAM_PROTO_GetFieldsCounters [18:25:57]wFMCommunicate request_size=4 [18:25:57]MH_SAM_APDU [18:25:57]CAPDU: 80 13 00 00 [18:25:57]Write to MH i2c: E2 08 00 B7 72 80 13 00 00 00 00 00 00 A5 [18:25:57]Write i2c OK [18:25:57]MH_I2C_Read... [18:25:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:57]Read from MH i2c: E2 [18:25:57]MH_I2C_Read... [18:25:57]Read from MH i2c: E2 62 00 [18:25:57]MH_I2C_Read... [18:25:57]Read from MH i2c: E2 62 00 B7 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5A D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [18:25:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5A D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:57]wFMCommunicate OK [18:25:57]SAM_PROTO_GetFieldsCounters done [18:25:57]requested_item shift.num is exist - process it [18:25:57]requested_item shift.opened is exist - process it [18:25:57]req_shift_opened [18:25:57]FM_GetShiftState [18:25:57]SAM_PROTO_GetShiftState [18:25:57]wFMCommunicate request_size=4 [18:25:57]MH_SAM_APDU [18:25:57]CAPDU: 80 13 01 00 [18:25:57]Write to MH i2c: E2 08 00 B8 72 80 13 01 00 00 00 00 00 A7 [18:25:57]Write i2c OK [18:25:57]MH_I2C_Read... [18:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:57]Read from MH i2c: E2 [18:25:57]MH_I2C_Read... [18:25:57]Read from MH i2c: E2 0E 00 [18:25:57]MH_I2C_Read... [18:25:57]Read from MH i2c: E2 0E 00 B8 72 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D5 [18:25:57]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:25:57]wFMCommunicate OK [18:25:57]SAM_PROTO_GetShiftState done [18:25:57]FM_GetShiftState done [18:25:57]req_shift_opened done [18:25:57]requested_item shift.open_date is exist - process it [18:25:57]req_shift_open_date [18:25:57]req_shift_open_date done [18:25:57]produce_requested_data done [18:25:57]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118874,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:25:57]process_action_free close_receipt [18:25:57]json_value_free [18:25:57]json_value_free done [18:25:57]process_json_proto returns [18:25:57]Send response to host [18:25:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118874,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:25:57]free response buf [18:25:57]execute_script done [18:25:57]execute_script returns [18:25:57]free content buf [18:25:57]Sock 7.Close socket [18:25:57]Sock 7.Thread stoped [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:31]accept exits with 9 [18:27:31]New connection [18:27:31]New thread 3067383140 created [18:27:31]Thread 3067239780 joined [18:27:31]Waiting for new connection... [18:27:31] Sock 9.Parse request [18:27:31]Sock 9.Check first char [18:27:31]Sock 9.First char is OK [18:27:31]request: POST /json_proto HTTP/1.0 [18:27:31]Method: POST [18:27:31]URL: /json_proto [18:27:31]Method is POST - this is cgi request [18:27:31]url: /json_proto [18:27:31]query_string will be loaded in cgi processing [18:27:31]execute_cgi json_proto POST (null) [18:27:31]execute_cgi path=json_proto method=POST [18:27:31]POST find Content-Length [18:27:31]Host: 172.17.45.7:8080 [18:27:31]Content-Length: 677 [18:27:31]Content-Type: application/json [18:27:31] [18:27:31]POST finish read [18:27:31]Found Content-Length = 677 [18:27:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:31]execute_script... [18:27:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:31]POST & json_proto [18:27:31]process_json_proto [18:27:31]json parsed OK: [18:27:31]protocol is kg_v1.0 [18:27:31]action value=close_receipt [18:27:31]process_action close_receipt [18:27:31]cmd_close_receipt [18:27:31]MH_GetDate [18:27:31]Write to MH i2c: F0 00 00 B9 72 1A [18:27:31]Write i2c OK [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: F0 [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: F0 09 00 [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: F0 09 00 B9 72 00 1A DF A7 66 90 0F 3E 66 6C [18:27:31]GetLastDocTimeStamp 1722277560 [18:27:31]current date 1722277658 [18:27:31]FM_GetShiftState [18:27:31]SAM_PROTO_GetShiftState [18:27:31]wFMCommunicate request_size=4 [18:27:31]MH_SAM_APDU [18:27:31]CAPDU: 80 13 01 00 [18:27:31]Write to MH i2c: E2 08 00 BA 72 80 13 01 00 00 00 00 00 A9 [18:27:31]Write i2c OK [18:27:31]MH_I2C_Read... [18:27:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:32]Read from MH i2c: E2 [18:27:32]MH_I2C_Read... [18:27:32]Read from MH i2c: E2 0E 00 [18:27:32]MH_I2C_Read... [18:27:32]Read from MH i2c: E2 0E 00 BA 72 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D7 [18:27:32]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:27:32]wFMCommunicate OK [18:27:32]SAM_PROTO_GetShiftState done [18:27:32]FM_GetShiftState done [18:27:32]opened in 1722211641 [18:27:32]opened+sec_in_day 1722298041 [18:27:32]quantity*price = 50036 [18:27:32]sum+1 = 50037 [18:27:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 251 29.07.2024 18:27 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118875 ФПД: 150625606089593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182738&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118875&fm=150625606089593&tin=02508201610067®Number=0000000000092660&sum=50000 [18:27:33]StoreToDocumentArchive [18:27:33]shift 434 fd 118875 [18:27:33]save to /storage/0434/doc_00118875 [18:27:33]save last doc name /storage/0434/doc_00118875 to /storage/kkm_last_doc_name [18:27:33]save OK [18:27:33]Clear old archive folders... [18:27:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:33]tlvbuf is 01EBD930 [18:27:33]SAM_PROTO_ClearQueue [18:27:33]wFMCommunicate request_size=4 [18:27:33]MH_SAM_APDU [18:27:33]CAPDU: 80 09 00 00 [18:27:33]Write to MH i2c: E2 08 00 C7 72 80 09 00 00 00 00 00 00 AB [18:27:33]Write i2c OK [18:27:33]MH_I2C_Read... [18:27:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:33]Read from MH i2c: E2 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 03 00 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 03 00 C7 72 00 90 00 AD [18:27:33]RAPDU: 90 00 [18:27:33]wFMCommunicate OK [18:27:33]SAM_PROTO_ClearQueue done [18:27:33]KKMCreateOFDPacket [18:27:33]OFDProtocolAddRootSTLVToBuf [18:27:33]FM_MakeSignedData [18:27:33]FM_MakeSignedData [18:27:33]SAM_PROTO_SignData [18:27:33]wFMCommunicate request_size=4 [18:27:33]MH_SAM_APDU [18:27:33]CAPDU: 80 0D 01 02 [18:27:33]Write to MH i2c: E2 08 00 C8 72 80 0D 01 02 00 00 00 00 B3 [18:27:33]Write i2c OK [18:27:33]MH_I2C_Read... [18:27:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:33]Read from MH i2c: E2 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 03 00 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 03 00 C8 72 00 90 00 AE [18:27:33]RAPDU: 90 00 [18:27:33]wFMCommunicate OK [18:27:33]wFMCommunicate request_size=255 [18:27:33]MH_SAM_APDU [18:27:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 1A DF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B D0 01 00 35 04 06 00 88 [18:27:33]Write to MH i2c: E2 02 01 C9 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 1A DF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B D0 01 00 35 04 06 00 88 00 00 9F [18:27:33]Write i2c OK [18:27:33]MH_I2C_Read... [18:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:33]Read from MH i2c: E2 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 03 00 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 03 00 C9 72 00 90 00 AF [18:27:33]RAPDU: 90 00 [18:27:33]wFMCommunicate OK [18:27:33]wFMCommunicate request_size=10 [18:27:33]MH_SAM_APDU [18:27:33]CAPDU: 80 0D 02 02 05 FE 41 BE BB 79 [18:27:33]Write to MH i2c: E2 0D 00 CA 72 80 0D 02 02 05 00 FE 41 BE BB 79 00 00 F1 [18:27:33]Write i2c OK [18:27:33]MH_I2C_Read... [18:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:33]Read from MH i2c: E2 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 03 00 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 03 00 CA 72 00 90 00 B0 [18:27:33]RAPDU: 90 00 [18:27:33]wFMCommunicate OK [18:27:33]wFMCommunicate request_size=4 [18:27:33]MH_SAM_APDU [18:27:33]CAPDU: 80 0D 03 02 [18:27:33]Write to MH i2c: E2 08 00 CB 72 80 0D 03 02 00 00 00 00 B8 [18:27:33]Write i2c OK [18:27:33]MH_I2C_Read... [18:27:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:33]Read from MH i2c: E2 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 0B 00 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 0B 00 CB 72 00 A3 77 57 A0 D8 81 09 C4 90 00 F0 [18:27:33]RAPDU: A3 77 57 A0 D8 81 09 C4 90 00 [18:27:33]wFMCommunicate OK [18:27:33]SAM_PROTO_SignData done [18:27:33]FM_MakeSignedData done [18:27:33]CreateOFDProtocolMessage [18:27:33]wFMCommunicate request_size=4 [18:27:33]MH_SAM_APDU [18:27:33]CAPDU: 80 11 00 00 [18:27:33]Write to MH i2c: E2 08 00 CC 72 80 11 00 00 00 00 00 00 B8 [18:27:33]Write i2c OK [18:27:33]MH_I2C_Read... [18:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:33]Read from MH i2c: E2 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 17 00 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: E2 17 00 CC 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 13 [18:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:27:33]wFMCommunicate OK [18:27:33]CreateOFDProtocolMessage done [18:27:33]OFDSenderStorePacket 118875 [18:27:33]StoreOFDPacket docnum=118875 [18:27:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7A D8 07 01 B3 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 1A DF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B D0 01 00 35 04 06 00 88 FE 41 BE BB 79 A3 77 57 A0 D8 81 09 C4 [18:27:33]CheckFolder [18:27:33]dirname=/storage/ofd_packets [18:27:33]CheckFolder done [18:27:33]ProducePacketName [18:27:33]name=ofd_packets/00118875 [18:27:33]NVStorageSaveData ofd_packets/00118875 [18:27:33]File name is /storage/ofd_packets/00118875 [18:27:33]Write 301 bytes [18:27:33]NVStorageSaveData done [18:27:33]OFDSenderStorePacket done [18:27:33]KKMCreateOFDPacket done [18:27:33]NVStorageSaveData kkm_last_timestamp [18:27:33]File name is /storage/kkm_last_timestamp [18:27:33]Write 4 bytes [18:27:33]NVStorageSaveData done [18:27:33]ExternCall_PrintAddStr [18:27:33]wPrintStart [18:27:33]Write to MH i2c: 01 00 00 CD 72 3F [18:27:33]Write i2c OK [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: 01 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: 01 07 00 [18:27:33]MH_I2C_Read... [18:27:33]Read from MH i2c: 01 07 00 CD 72 00 00 00 00 00 FF 0F 54 [18:27:33]RasterBufferAndPrint [18:27:33]line Счет N : (1)949765 [18:27:33]line ИНН: 02508201610067 [18:27:33]line Контрольно-Кассовый Чек [18:27:33]line ПРОДАЖА [18:27:33]line ТРК (МРК, ГНК) : 61 [18:27:33]line Товар: 2710124130 [18:27:33]line Аи-92-К-4 [18:27:33]line 7.380 * 67.80 [18:27:33]line = 500.36 [18:27:33]line НДС 12% НСП 1% [18:27:33]line > о реализуемом товаре [18:27:33]line ОКРУГЛЕНИЕ: -0.36 [18:27:33]line ИТОГО: 500.00 [18:27:33]line Внесено: 500.00 [18:27:33]line СДАЧА: 0.00 [18:27:33]line НСП 1% : 4.43 [18:27:33]line НДС 12% : 53.14 [18:27:33]line Наличными: 500.00 [18:27:33]line Безнал.: 0.00 [18:27:33]line Место: АЗС № 134 "Партнер Нефть" [18:27:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:27:33]line СНО: Общий режим [18:27:33]line Чек 251 29.07.2024 18:27 [18:27:33]line Смена: 434 ФФД: 1.0 [18:27:33]line ЗНМ: 0300000044 [18:27:33]line РНМ: 0000000000092660 [18:27:33]line Версия ККМ: 001 [18:27:33]line ФМ: 0000000000874939 [18:27:33]line ФД: 118875 [18:27:33]line ФПД: 150625606089593 [18:27:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182738&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118875&fm=150625606089593&tin=02508201610067®Number=0000000000092660&sum=50000 [18:27:33]OFD Sender: Processing packet 118875 [packets to send 86, broken 85] [18:27:33]ProducePacketName [18:27:33]name=ofd_packets/00118875 [18:27:33]OFD Sender: To server: pG, [18:27:33]CommunicateWithHost lk.salyk.kg:30040 [18:27:33]ConnectInit lk.salyk.kg [18:27:33]written 0, free lines is 4095 [18:27:34]Connected sock=10 [18:27:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7A D8 07 01 B3 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 1A DF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B D0 01 00 35 04 06 00 88 FE 41 BE BB 79 A3 77 57 A0 D8 81 09 C4 [18:27:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 95 98 47 00 D4 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B D0 01 00 F4 03 04 00 A7 8C A7 66 B6 04 01 00 00 A5 10 C9 8F 13 E0 31 DB [18:27:34]CommunicateWithHost err = 0 [18:27:34]CheckOFDResponse [18:27:34]1017 (14) - 77093643461234 [18:27:34]1041 (16) - 0000000000874939 [18:27:34]1040 (4) - 118875 [18:27:34]1012 (4) - 29.07.2024 12:35 [18:27:34]1206 (1) - 0 [18:27:34]OFD Sender: Remove packet 118875 [18:27:34]ProducePacketName [18:27:34]name=ofd_packets/00118875 [18:27:34]NVStorageDeleteData [18:27:34]Write to MH i2c: 01 00 00 F7 72 69 [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: 01 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: 01 07 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: 01 07 00 F7 72 00 00 00 00 00 E6 0C 62 [18:27:34]RasterBufferAndPrint [18:27:34]line [18:27:34]line [18:27:34]line [18:27:34]line [18:27:34]line [18:27:34]written 0, free lines is 3308 [18:27:34]MH_Cut [18:27:34]Write to MH i2c: D1 01 00 FE 72 01 42 [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: D1 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: D1 01 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: D1 01 00 FE 72 00 41 [18:27:34]Write to MH i2c: 01 00 00 FF 72 71 [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]OFD Sender: No OFD packet to send [18:27:35]*** Cut start [18:27:35]*** Partial cut [18:27:35]*** CUTSNS_PIN = 1 [18:27:35]*** CUTSNS_PIN = 0 [18:27:35]*** Brake cut motor [18:27:35]Read from MH i2c: 01 [18:27:35]MH_I2C_Read... [18:27:35]*** Stop cut motor [18:27:35]*** Cut end [18:27:35]Read from MH i2c: 01 07 00 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: 01 07 00 FF 72 00 00 00 00 00 FF 0F 86 [18:27:35]process_action close_receipt done [18:27:35]requested_data is exist [18:27:35]produce_requested_data [18:27:35]requested_item fm.sn is exist - process it [18:27:35]wFMCommunicate request_size=4 [18:27:35]MH_SAM_APDU [18:27:35]CAPDU: 80 11 00 00 [18:27:35]Write to MH i2c: E2 08 00 00 73 80 11 00 00 00 00 00 00 ED [18:27:35]Write i2c OK [18:27:35]MH_I2C_Read... [18:27:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:35]Read from MH i2c: E2 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: E2 17 00 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: E2 17 00 00 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 48 [18:27:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:27:35]wFMCommunicate OK [18:27:35]requested_item fd.num is exist - process it [18:27:35]SAM_PROTO_GetFieldsCounters [18:27:35]wFMCommunicate request_size=4 [18:27:35]MH_SAM_APDU [18:27:35]CAPDU: 80 13 00 00 [18:27:35]Write to MH i2c: E2 08 00 01 73 80 13 00 00 00 00 00 00 F0 [18:27:35]Write i2c OK [18:27:35]MH_I2C_Read... [18:27:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:35]Read from MH i2c: E2 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: E2 62 00 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: E2 62 00 01 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5B D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [18:27: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5B D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:35]wFMCommunicate OK [18:27:35]SAM_PROTO_GetFieldsCounters done [18:27:35]requested_item shift.num is exist - process it [18:27:35]requested_item shift.opened is exist - process it [18:27:35]req_shift_opened [18:27:35]FM_GetShiftState [18:27:35]SAM_PROTO_GetShiftState [18:27:35]wFMCommunicate request_size=4 [18:27:35]MH_SAM_APDU [18:27:35]CAPDU: 80 13 01 00 [18:27:35]Write to MH i2c: E2 08 00 02 73 80 13 01 00 00 00 00 00 F2 [18:27:35]Write i2c OK [18:27:35]MH_I2C_Read... [18:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:36]Read from MH i2c: E2 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 0E 00 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 0E 00 02 73 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 20 [18:27:36]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:27:36]wFMCommunicate OK [18:27:36]SAM_PROTO_GetShiftState done [18:27:36]FM_GetShiftState done [18:27:36]req_shift_opened done [18:27:36]requested_item shift.open_date is exist - process it [18:27:36]req_shift_open_date [18:27:36]req_shift_open_date done [18:27:36]produce_requested_data done [18:27:36]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118875,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:27:36]process_action_free close_receipt [18:27:36]json_value_free [18:27:36]json_value_free done [18:27:36]process_json_proto returns [18:27:36]Send response to host [18:27:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118875,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:27:36]free response buf [18:27:36]execute_script done [18:27:36]execute_script returns [18:27:36]free content buf [18:27:36]Sock 9.Close socket [18:27:36]Sock 9.Thread stoped [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:09]OFD Sender: No OFD packet to send [18:28:14]OFD Sender: No OFD packet to send [18:28:19]OFD Sender: No OFD packet to send [18:28:24]OFD Sender: No OFD packet to send [18:28:29]OFD Sender: No OFD packet to send [18:28:34]OFD Sender: No OFD packet to send [18:28:39]OFD Sender: No OFD packet to send [18:28:44]OFD Sender: No OFD packet to send [18:28:49]OFD Sender: No OFD packet to send [18:28:54]OFD Sender: No OFD packet to send [18:28:59]OFD Sender: No OFD packet to send [18:29:04]OFD Sender: No OFD packet to send [18:29:09]OFD Sender: No OFD packet to send [18:29:14]OFD Sender: No OFD packet to send [18:29:19]OFD Sender: No OFD packet to send [18:29:24]OFD Sender: No OFD packet to send [18:29:29]OFD Sender: No OFD packet to send [18:29:34]OFD Sender: No OFD packet to send [18:29:39]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:20]OFD Sender: No OFD packet to send [18:31:25]OFD Sender: No OFD packet to send [18:31:30]OFD Sender: No OFD packet to send [18:31:35]OFD Sender: No OFD packet to send [18:31:40]OFD Sender: No OFD packet to send [18:31:45]OFD Sender: No OFD packet to send [18:31:50]OFD Sender: No OFD packet to send [18:31:55]OFD Sender: No OFD packet to send [18:32:00]OFD Sender: No OFD packet to send [18:32:05]OFD Sender: No OFD packet to send [18:32:10]OFD Sender: No OFD packet to send [18:32:15]OFD Sender: No OFD packet to send [18:32:20]OFD Sender: No OFD packet to send [18:32:25]OFD Sender: No OFD packet to send [18:32:30]OFD Sender: No OFD packet to send [18:32:35]OFD Sender: No OFD packet to send [18:32:40]OFD Sender: No OFD packet to send [18:32:45]OFD Sender: No OFD packet to send [18:32:50]OFD Sender: No OFD packet to send [18:32:55]OFD Sender: No OFD packet to send [18:33:00]OFD Sender: No OFD packet to send [18:33:05]OFD Sender: No OFD packet to send [18:33:10]OFD Sender: No OFD packet to send [18:33:15]OFD Sender: No OFD packet to send [18:33:20]OFD Sender: No OFD packet to send [18:33:25]OFD Sender: No OFD packet to send [18:33:30]OFD Sender: No OFD packet to send [18:33:35]OFD Sender: No OFD packet to send [18:33:40]OFD Sender: No OFD packet to send [18:33:45]OFD Sender: No OFD packet to send [18:33:50]OFD Sender: No OFD packet to send [18:33:55]OFD Sender: No OFD packet to send [18:34:00]OFD Sender: No OFD packet to send [18:34:05]OFD Sender: No OFD packet to send [18:34:10]OFD Sender: No OFD packet to send [18:34:15]OFD Sender: No OFD packet to send [18:34:20]OFD Sender: No OFD packet to send [18:34:25]OFD Sender: No OFD packet to send [18:34:30]OFD Sender: No OFD packet to send [18:34:35]OFD Sender: No OFD packet to send [18:34:40]OFD Sender: No OFD packet to send [18:34:45]OFD Sender: No OFD packet to send [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:18]accept exits with 7 [18:35:18]New connection [18:35:18]New thread 3067239780 created [18:35:18]Thread 3067383140 joined [18:35:18]Waiting for new connection... [18:35:18] Sock 7.Parse request [18:35:18]Sock 7.Check first char [18:35:18]Sock 7.First char is OK [18:35:18]request: POST /json_proto HTTP/1.0 [18:35:18]Method: POST [18:35:18]URL: /json_proto [18:35:18]Method is POST - this is cgi request [18:35:18]url: /json_proto [18:35:18]query_string will be loaded in cgi processing [18:35:18]execute_cgi json_proto POST (null) [18:35:18]execute_cgi path=json_proto method=POST [18:35:18]POST find Content-Length [18:35:18]Host: 172.17.45.7:8080 [18:35:18]Content-Length: 677 [18:35:18]Content-Type: application/json [18:35:18] [18:35:18]POST finish read [18:35:18]Found Content-Length = 677 [18:35:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:18]execute_script... [18:35:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:18]POST & json_proto [18:35:18]process_json_proto [18:35:18]json parsed OK: [18:35:18]protocol is kg_v1.0 [18:35:18]action value=close_receipt [18:35:18]process_action close_receipt [18:35:18]cmd_close_receipt [18:35:18]MH_GetDate [18:35:18]Write to MH i2c: F0 00 00 03 73 65 [18:35:18]Write i2c OK [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: F0 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: F0 09 00 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: F0 09 00 03 73 00 ED E0 A7 66 90 0F 3E 66 8B [18:35:18]GetLastDocTimeStamp 1722277658 [18:35:18]current date 1722278125 [18:35:18]FM_GetShiftState [18:35:18]SAM_PROTO_GetShiftState [18:35:18]wFMCommunicate request_size=4 [18:35:18]MH_SAM_APDU [18:35:18]CAPDU: 80 13 01 00 [18:35:18]Write to MH i2c: E2 08 00 04 73 80 13 01 00 00 00 00 00 F4 [18:35:18]Write i2c OK [18:35:18]MH_I2C_Read... [18:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:18]Read from MH i2c: E2 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: E2 0E 00 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: E2 0E 00 04 73 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 22 [18:35:18]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:35:18]wFMCommunicate OK [18:35:18]SAM_PROTO_GetShiftState done [18:35:18]FM_GetShiftState done [18:35:18]opened in 1722211641 [18:35:18]opened+sec_in_day 1722298041 [18:35:18]quantity*price = 40002 [18:35:18]sum+1 = 40003 [18:35:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 252 29.07.2024 18:35 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118876 ФПД: 215586775418453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T183525&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118876&fm=215586775418453&tin=02508201610067®Number=0000000000092660&sum=40000 [18:35:19]StoreToDocumentArchive [18:35:19]shift 434 fd 118876 [18:35:19]save to /storage/0434/doc_00118876 [18:35:19]save last doc name /storage/0434/doc_00118876 to /storage/kkm_last_doc_name [18:35:19]save OK [18:35:19]Clear old archive folders... [18:35:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:35:19]tlvbuf is 01E9A610 [18:35:19]SAM_PROTO_ClearQueue [18:35:19]wFMCommunicate request_size=4 [18:35:19]MH_SAM_APDU [18:35:19]CAPDU: 80 09 00 00 [18:35:19]Write to MH i2c: E2 08 00 11 73 80 09 00 00 00 00 00 00 F6 [18:35:19]Write i2c OK [18:35:19]MH_I2C_Read... [18:35:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:19]Read from MH i2c: E2 [18:35:19]MH_I2C_Read... [18:35:19]Read from MH i2c: E2 03 00 [18:35:19]MH_I2C_Read... [18:35:19]Read from MH i2c: E2 03 00 11 73 00 90 00 F8 [18:35:19]RAPDU: 90 00 [18:35:19]wFMCommunicate OK [18:35:19]SAM_PROTO_ClearQueue done [18:35:19]KKMCreateOFDPacket [18:35:19]OFDProtocolAddRootSTLVToBuf [18:35:19]FM_MakeSignedData [18:35:19]FM_MakeSignedData [18:35:19]SAM_PROTO_SignData [18:35:19]wFMCommunicate request_size=4 [18:35:19]MH_SAM_APDU [18:35:19]CAPDU: 80 0D 01 02 [18:35:19]Write to MH i2c: E2 08 00 12 73 80 0D 01 02 00 00 00 00 FE [18:35:19]Write i2c OK [18:35:19]MH_I2C_Read... [18:35:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:19]Read from MH i2c: E2 [18:35:19]MH_I2C_Read... [18:35:19]Read from MH i2c: E2 03 00 [18:35:19]MH_I2C_Read... [18:35:19]Read from MH i2c: E2 03 00 12 73 00 90 00 F9 [18:35:19]RAPDU: 90 00 [18:35:19]wFMCommunicate OK [18:35:19]wFMCommunicate request_size=255 [18:35:19]MH_SAM_APDU [18:35:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 ED E0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C D0 01 00 35 04 06 00 C4 [18:35:19]Write to MH i2c: E2 02 01 13 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 ED E0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C D0 01 00 35 04 06 00 C4 00 00 E1 [18:35:19]Write i2c OK [18:35:19]MH_I2C_Read... [18:35:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:19]Read from MH i2c: E2 [18:35:19]MH_I2C_Read... [18:35:19]Read from MH i2c: E2 03 00 [18:35:19]MH_I2C_Read... [18:35:19]Read from MH i2c: E2 03 00 13 73 00 90 00 FA [18:35:19]RAPDU: 90 00 [18:35:19]wFMCommunicate OK [18:35:19]wFMCommunicate request_size=10 [18:35:19]MH_SAM_APDU [18:35:19]CAPDU: 80 0D 02 02 05 13 35 2A C6 55 [18:35:19]Write to MH i2c: E2 0D 00 14 73 80 0D 02 02 05 00 13 35 2A C6 55 00 00 98 [18:35:19]Write i2c OK [18:35:19]MH_I2C_Read... [18:35:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:19]Read from MH i2c: E2 [18:35:19]MH_I2C_Read... [18:35:19]Read from MH i2c: E2 03 00 [18:35:19]MH_I2C_Read... [18:35:19]Read from MH i2c: E2 03 00 14 73 00 90 00 FB [18:35:19]RAPDU: 90 00 [18:35:19]wFMCommunicate OK [18:35:19]wFMCommunicate request_size=4 [18:35:19]MH_SAM_APDU [18:35:19]CAPDU: 80 0D 03 02 [18:35:19]Write to MH i2c: E2 08 00 15 73 80 0D 03 02 00 00 00 00 03 [18:35:19]Write i2c OK [18:35:19]MH_I2C_Read... [18:35:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:19]Read from MH i2c: E2 [18:35:19]MH_I2C_Read... [18:35:19]Read from MH i2c: E2 0B 00 [18:35:19]MH_I2C_Read... [18:35:19]Read from MH i2c: E2 0B 00 15 73 00 CD 62 B0 96 61 B0 3D E5 90 00 AC [18:35:19]RAPDU: CD 62 B0 96 61 B0 3D E5 90 00 [18:35:19]wFMCommunicate OK [18:35:19]SAM_PROTO_SignData done [18:35:19]FM_MakeSignedData done [18:35:19]CreateOFDProtocolMessage [18:35:19]wFMCommunicate request_size=4 [18:35:19]MH_SAM_APDU [18:35:19]CAPDU: 80 11 00 00 [18:35:19]Write to MH i2c: E2 08 00 16 73 80 11 00 00 00 00 00 00 03 [18:35:19]Write i2c OK [18:35:19]MH_I2C_Read... [18:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:20]Read from MH i2c: E2 [18:35:20]MH_I2C_Read... [18:35:20]Read from MH i2c: E2 17 00 [18:35:20]MH_I2C_Read... [18:35:20]Read from MH i2c: E2 17 00 16 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5E [18:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:35:20]wFMCommunicate OK [18:35:20]CreateOFDProtocolMessage done [18:35:20]OFDSenderStorePacket 118876 [18:35:20]StoreOFDPacket docnum=118876 [18:35:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CD 4D 07 01 15 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 ED E0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C D0 01 00 35 04 06 00 C4 13 35 2A C6 55 CD 62 B0 96 61 B0 3D E5 [18:35:20]CheckFolder [18:35:20]dirname=/storage/ofd_packets [18:35:20]CheckFolder done [18:35:20]ProducePacketName [18:35:20]name=ofd_packets/00118876 [18:35:20]NVStorageSaveData ofd_packets/00118876 [18:35:20]File name is /storage/ofd_packets/00118876 [18:35:20]Write 301 bytes [18:35:20]NVStorageSaveData done [18:35:20]OFDSenderStorePacket done [18:35:20]KKMCreateOFDPacket done [18:35:20]NVStorageSaveData kkm_last_timestamp [18:35:20]File name is /storage/kkm_last_timestamp [18:35:20]Write 4 bytes [18:35:20]NVStorageSaveData done [18:35:20]ExternCall_PrintAddStr [18:35:20]wPrintStart [18:35:20]Write to MH i2c: 01 00 00 17 73 8A [18:35:20]Write i2c OK [18:35:20]MH_I2C_Read... [18:35:20]Read from MH i2c: 01 [18:35:20]MH_I2C_Read... [18:35:20]Read from MH i2c: 01 07 00 [18:35:20]MH_I2C_Read... [18:35:20]Read from MH i2c: 01 07 00 17 73 00 00 00 00 00 FF 0F 9F [18:35:20]RasterBufferAndPrint [18:35:20]line Счет N : (1)949766 [18:35:20]line ИНН: 02508201610067 [18:35:20]line Контрольно-Кассовый Чек [18:35:20]line ПРОДАЖА [18:35:20]line ТРК (МРК, ГНК) : 41 [18:35:20]line Товар: 2710124130 [18:35:20]line Аи-92-К-4 [18:35:20]line 5.900 * 67.80 [18:35:20]line = 400.02 [18:35:20]line НДС 12% НСП 1% [18:35:20]line > о реализуемом товаре [18:35:20]line ОКРУГЛЕНИЕ: -0.02 [18:35:20]line ИТОГО: 400.00 [18:35:20]line Внесено: 400.00 [18:35:20]line СДАЧА: 0.00 [18:35:20]line НСП 1% : 3.54 [18:35:20]line НДС 12% : 42.48 [18:35:20]line Наличными: 400.00 [18:35:20]line Безнал.: 0.00 [18:35:20]line Место: АЗС № 134 "Партнер Нефть" [18:35:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:35:20]line СНО: Общий режим [18:35:20]line Чек 252 29.07.2024 18:35 [18:35:20]line Смена: 434 ФФД: 1.0 [18:35:20]line ЗНМ: 0300000044 [18:35:20]line РНМ: 0000000000092660 [18:35:20]line Версия ККМ: 001 [18:35:20]line ФМ: 0000000000874939 [18:35:20]line ФД: 118876 [18:35:20]line ФПД: 215586775418453 [18:35:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T183525&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118876&fm=215586775418453&tin=02508201610067®Number=0000000000092660&sum=40000 [18:35:20]written 0, free lines is 4095 [18:35:20]OFD Sender: Processing packet 118876 [packets to send 86, broken 85] [18:35:20]ProducePacketName [18:35:20]name=ofd_packets/00118876 [18:35:20]OFD Sender: To server: pG, [18:35:20]CommunicateWithHost lk.salyk.kg:30040 [18:35:20]ConnectInit lk.salyk.kg [18:35:20]Connected sock=10 [18:35:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CD 4D 07 01 15 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 ED E0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C D0 01 00 35 04 06 00 C4 13 35 2A C6 55 CD 62 B0 96 61 B0 3D E5 [18:35:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 37 2D 47 00 85 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 34 39 33 39 10 04 04 00 5C D0 01 00 F4 03 04 00 7A 8E A7 66 B6 04 01 00 00 BA AA 64 E3 CA B5 3E DD [18:35:20]CommunicateWithHost err = 0 [18:35:20]CheckOFDResponse [18:35:20]1017 (14) - 77093643461234 [18:35:20]1041 (16) - 0000000000874939 [18:35:20]1040 (4) - 118876 [18:35:20]1012 (4) - 29.07.2024 12:43 [18:35:20]1206 (1) - 0 [18:35:20]OFD Sender: Remove packet 118876 [18:35:20]ProducePacketName [18:35:20]name=ofd_packets/00118876 [18:35:20]NVStorageDeleteData [18:35:20]Write to MH i2c: 01 00 00 41 73 B4 [18:35:20]Write i2c OK [18:35:20]MH_I2C_Read... [18:35:20]Read from MH i2c: 01 [18:35:20]MH_I2C_Read... [18:35:20]Read from MH i2c: 01 07 00 [18:35:20]MH_I2C_Read... [18:35:20]Read from MH i2c: 01 07 00 41 73 00 00 00 00 00 F2 0C B9 [18:35:20]RasterBufferAndPrint [18:35:20]line [18:35:20]line [18:35:20]line [18:35:20]line [18:35:20]line [18:35:20]written 0, free lines is 3322 [18:35:20]MH_Cut [18:35:20]Write to MH i2c: D1 01 00 48 73 01 8D [18:35:20]Write i2c OK [18:35:20]MH_I2C_Read... [18:35:20]Read from MH i2c: D1 [18:35:20]MH_I2C_Read... [18:35:20]Read from MH i2c: D1 01 00 [18:35:20]MH_I2C_Read... [18:35:20]Read from MH i2c: D1 01 00 48 73 00 8C [18:35:20]Write to MH i2c: 01 00 00 49 73 BC [18:35:20]Write i2c OK [18:35:20]MH_I2C_Read... [18:35:21]OFD Sender: No OFD packet to send [18:35:21]*** Cut start [18:35:21]*** Partial cut [18:35:21]*** CUTSNS_PIN = 1 [18:35:21]*** CUTSNS_PIN = 0 [18:35:21]*** Brake cut motor [18:35:22]Read from MH i2c: 01 [18:35:22]MH_I2C_Read... [18:35:22]*** Stop cut motor [18:35:22]*** Cut end [18:35:22]Read from MH i2c: 01 07 00 [18:35:22]MH_I2C_Read... [18:35:22]Read from MH i2c: 01 07 00 49 73 00 00 00 00 00 FF 0F D1 [18:35:22]process_action close_receipt done [18:35:22]requested_data is exist [18:35:22]produce_requested_data [18:35:22]requested_item fm.sn is exist - process it [18:35:22]wFMCommunicate request_size=4 [18:35:22]MH_SAM_APDU [18:35:22]CAPDU: 80 11 00 00 [18:35:22]Write to MH i2c: E2 08 00 4A 73 80 11 00 00 00 00 00 00 37 [18:35:22]Write i2c OK [18:35:22]MH_I2C_Read... [18:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:22]Read from MH i2c: E2 [18:35:22]MH_I2C_Read... [18:35:22]Read from MH i2c: E2 17 00 [18:35:22]MH_I2C_Read... [18:35:22]Read from MH i2c: E2 17 00 4A 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 92 [18:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:35:22]wFMCommunicate OK [18:35:22]requested_item fd.num is exist - process it [18:35:22]SAM_PROTO_GetFieldsCounters [18:35:22]wFMCommunicate request_size=4 [18:35:22]MH_SAM_APDU [18:35:22]CAPDU: 80 13 00 00 [18:35:22]Write to MH i2c: E2 08 00 4B 73 80 13 00 00 00 00 00 00 3A [18:35:22]Write i2c OK [18:35:22]MH_I2C_Read... [18:35:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:22]Read from MH i2c: E2 [18:35:22]MH_I2C_Read... [18:35:22]Read from MH i2c: E2 62 00 [18:35:22]MH_I2C_Read... [18:35:22]Read from MH i2c: E2 62 00 4B 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5C D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [18:35: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5C D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:22]wFMCommunicate OK [18:35:22]SAM_PROTO_GetFieldsCounters done [18:35:22]requested_item shift.num is exist - process it [18:35:22]requested_item shift.opened is exist - process it [18:35:22]req_shift_opened [18:35:22]FM_GetShiftState [18:35:22]SAM_PROTO_GetShiftState [18:35:22]wFMCommunicate request_size=4 [18:35:22]MH_SAM_APDU [18:35:22]CAPDU: 80 13 01 00 [18:35:22]Write to MH i2c: E2 08 00 4C 73 80 13 01 00 00 00 00 00 3C [18:35:22]Write i2c OK [18:35:22]MH_I2C_Read... [18:35:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:22]Read from MH i2c: E2 [18:35:22]MH_I2C_Read... [18:35:22]Read from MH i2c: E2 0E 00 [18:35:22]MH_I2C_Read... [18:35:22]Read from MH i2c: E2 0E 00 4C 73 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 6A [18:35:22]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:35:22]wFMCommunicate OK [18:35:22]SAM_PROTO_GetShiftState done [18:35:22]FM_GetShiftState done [18:35:22]req_shift_opened done [18:35:22]requested_item shift.open_date is exist - process it [18:35:22]req_shift_open_date [18:35:22]req_shift_open_date done [18:35:22]produce_requested_data done [18:35:22]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118876,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:35:22]process_action_free close_receipt [18:35:22]json_value_free [18:35:22]json_value_free done [18:35:22]process_json_proto returns [18:35:22]Send response to host [18:35:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118876,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:35:22]free response buf [18:35:22]execute_script done [18:35:22]execute_script returns [18:35:22]free content buf [18:35:22]Sock 7.Close socket [18:35:22]Sock 7.Thread stoped [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:26]OFD Sender: No OFD packet to send [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:51]OFD Sender: No OFD packet to send [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:06]OFD Sender: No OFD packet to send [18:37:11]OFD Sender: No OFD packet to send [18:37:16]OFD Sender: No OFD packet to send [18:37:21]OFD Sender: No OFD packet to send [18:37:26]OFD Sender: No OFD packet to send [18:37:31]OFD Sender: No OFD packet to send [18:37:36]OFD Sender: No OFD packet to send [18:37:41]OFD Sender: No OFD packet to send [18:37:46]OFD Sender: No OFD packet to send [18:37:51]OFD Sender: No OFD packet to send [18:37:56]OFD Sender: No OFD packet to send [18:38:01]OFD Sender: No OFD packet to send [18:38:06]OFD Sender: No OFD packet to send [18:38:11]OFD Sender: No OFD packet to send [18:38:16]OFD Sender: No OFD packet to send [18:38:21]OFD Sender: No OFD packet to send [18:38:26]OFD Sender: No OFD packet to send [18:38:31]OFD Sender: No OFD packet to send [18:38:36]OFD Sender: No OFD packet to send [18:38:41]OFD Sender: No OFD packet to send [18:38:46]OFD Sender: No OFD packet to send [18:38:51]OFD Sender: No OFD packet to send [18:38:56]OFD Sender: No OFD packet to send [18:39:01]OFD Sender: No OFD packet to send [18:39:06]OFD Sender: No OFD packet to send [18:39:11]OFD Sender: No OFD packet to send [18:39:16]OFD Sender: No OFD packet to send [18:39:21]OFD Sender: No OFD packet to send [18:39:26]OFD Sender: No OFD packet to send [18:39:31]OFD Sender: No OFD packet to send [18:39:36]OFD Sender: No OFD packet to send [18:39:41]OFD Sender: No OFD packet to send [18:39:46]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [18:39:56]OFD Sender: No OFD packet to send [18:40:01]OFD Sender: No OFD packet to send [18:40:06]OFD Sender: No OFD packet to send [18:40:11]OFD Sender: No OFD packet to send [18:40:16]OFD Sender: No OFD packet to send [18:40:21]OFD Sender: No OFD packet to send [18:40:26]OFD Sender: No OFD packet to send [18:40:31]OFD Sender: No OFD packet to send [18:40:36]OFD Sender: No OFD packet to send [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:41]OFD Sender: No OFD packet to send [18:41:46]OFD Sender: No OFD packet to send [18:41:51]OFD Sender: No OFD packet to send [18:41:56]OFD Sender: No OFD packet to send [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:41]OFD Sender: No OFD packet to send [18:42:46]OFD Sender: No OFD packet to send [18:42:51]OFD Sender: No OFD packet to send [18:42:56]OFD Sender: No OFD packet to send [18:43:01]OFD Sender: No OFD packet to send [18:43:06]OFD Sender: No OFD packet to send [18:43:11]OFD Sender: No OFD packet to send [18:43:16]OFD Sender: No OFD packet to send [18:43:21]OFD Sender: No OFD packet to send [18:43:26]OFD Sender: No OFD packet to send [18:43:31]OFD Sender: No OFD packet to send [18:43:36]OFD Sender: No OFD packet to send [18:43:41]OFD Sender: No OFD packet to send [18:43:46]OFD Sender: No OFD packet to send [18:43:51]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:36]OFD Sender: No OFD packet to send [18:44:41]OFD Sender: No OFD packet to send [18:44:46]OFD Sender: No OFD packet to send [18:44:51]OFD Sender: No OFD packet to send [18:44:56]OFD Sender: No OFD packet to send [18:45:01]OFD Sender: No OFD packet to send [18:45:06]OFD Sender: No OFD packet to send [18:45:11]OFD Sender: No OFD packet to send [18:45:16]OFD Sender: No OFD packet to send [18:45:21]OFD Sender: No OFD packet to send [18:45:23]accept exits with 9 [18:45:23]New connection [18:45:23]New thread 3067383140 created [18:45:23]Thread 3067239780 joined [18:45:23]Waiting for new connection... [18:45:23] Sock 9.Parse request [18:45:23]Sock 9.Check first char [18:45:23]Sock 9.First char is OK [18:45:23]request: POST /json_proto HTTP/1.0 [18:45:23]Method: POST [18:45:23]URL: /json_proto [18:45:23]Method is POST - this is cgi request [18:45:23]url: /json_proto [18:45:23]query_string will be loaded in cgi processing [18:45:23]execute_cgi json_proto POST (null) [18:45:23]execute_cgi path=json_proto method=POST [18:45:23]POST find Content-Length [18:45:23]Host: 172.17.45.7:8080 [18:45:23]Content-Length: 677 [18:45:23]Content-Type: application/json [18:45:23] [18:45:23]POST finish read [18:45:23]Found Content-Length = 677 [18:45:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:23]execute_script... [18:45:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:23]POST & json_proto [18:45:23]process_json_proto [18:45:23]json parsed OK: [18:45:23]protocol is kg_v1.0 [18:45:23]action value=close_receipt [18:45:23]process_action close_receipt [18:45:23]cmd_close_receipt [18:45:23]MH_GetDate [18:45:23]Write to MH i2c: F0 00 00 4D 73 AF [18:45:23]Write i2c OK [18:45:23]MH_I2C_Read... [18:45:23]Read from MH i2c: F0 [18:45:23]MH_I2C_Read... [18:45:23]Read from MH i2c: F0 09 00 [18:45:23]MH_I2C_Read... [18:45:23]Read from MH i2c: F0 09 00 4D 73 00 4A E3 A7 66 90 0F 3E 66 35 [18:45:23]GetLastDocTimeStamp 1722278125 [18:45:23]current date 1722278730 [18:45:23]FM_GetShiftState [18:45:23]SAM_PROTO_GetShiftState [18:45:23]wFMCommunicate request_size=4 [18:45:23]MH_SAM_APDU [18:45:23]CAPDU: 80 13 01 00 [18:45:23]Write to MH i2c: E2 08 00 4E 73 80 13 01 00 00 00 00 00 3E [18:45:23]Write i2c OK [18:45:23]MH_I2C_Read... [18:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:23]Read from MH i2c: E2 [18:45:23]MH_I2C_Read... [18:45:23]Read from MH i2c: E2 0E 00 [18:45:23]MH_I2C_Read... [18:45:23]Read from MH i2c: E2 0E 00 4E 73 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 6C [18:45:23]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:45:23]wFMCommunicate OK [18:45:23]SAM_PROTO_GetShiftState done [18:45:23]FM_GetShiftState done [18:45:23]opened in 1722211641 [18:45:23]opened+sec_in_day 1722298041 [18:45:23]quantity*price = 30035 [18:45:23]sum+1 = 30036 [18:45:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 253 29.07.2024 18:45 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118877 ФПД: 13555013078041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T184530&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118877&fm=13555013078041&tin=02508201610067®Number=0000000000092660&sum=30000 [18:45:24]StoreToDocumentArchive [18:45:24]shift 434 fd 118877 [18:45:24]save to /storage/0434/doc_00118877 [18:45:24]save last doc name /storage/0434/doc_00118877 to /storage/kkm_last_doc_name [18:45:24]save OK [18:45:24]Clear old archive folders... [18:45:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:24]tlvbuf is 02060DC0 [18:45:24]SAM_PROTO_ClearQueue [18:45:24]wFMCommunicate request_size=4 [18:45:24]MH_SAM_APDU [18:45:24]CAPDU: 80 09 00 00 [18:45:24]Write to MH i2c: E2 08 00 5B 73 80 09 00 00 00 00 00 00 40 [18:45:24]Write i2c OK [18:45:24]MH_I2C_Read... [18:45:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:24]Read from MH i2c: E2 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 03 00 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 03 00 5B 73 00 90 00 42 [18:45:24]RAPDU: 90 00 [18:45:24]wFMCommunicate OK [18:45:24]SAM_PROTO_ClearQueue done [18:45:24]KKMCreateOFDPacket [18:45:24]OFDProtocolAddRootSTLVToBuf [18:45:24]FM_MakeSignedData [18:45:24]FM_MakeSignedData [18:45:24]SAM_PROTO_SignData [18:45:24]wFMCommunicate request_size=4 [18:45:24]MH_SAM_APDU [18:45:24]CAPDU: 80 0D 01 02 [18:45:24]Write to MH i2c: E2 08 00 5C 73 80 0D 01 02 00 00 00 00 48 [18:45:24]Write i2c OK [18:45:24]MH_I2C_Read... [18:45:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:24]Read from MH i2c: E2 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 03 00 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 03 00 5C 73 00 90 00 43 [18:45:24]RAPDU: 90 00 [18:45:24]wFMCommunicate OK [18:45:24]wFMCommunicate request_size=255 [18:45:24]MH_SAM_APDU [18:45:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 4A E3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D D0 01 00 35 04 06 00 0C [18:45:24]Write to MH i2c: E2 02 01 5D 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 4A E3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D D0 01 00 35 04 06 00 0C 00 00 0F [18:45:24]Write i2c OK [18:45:24]MH_I2C_Read... [18:45:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:24]Read from MH i2c: E2 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 03 00 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 03 00 5D 73 00 90 00 44 [18:45:24]RAPDU: 90 00 [18:45:24]wFMCommunicate OK [18:45:24]wFMCommunicate request_size=10 [18:45:24]MH_SAM_APDU [18:45:24]CAPDU: 80 0D 02 02 05 54 05 BD 4C 19 [18:45:24]Write to MH i2c: E2 0D 00 5E 73 80 0D 02 02 05 00 54 05 BD 4C 19 00 00 D0 [18:45:24]Write i2c OK [18:45:24]MH_I2C_Read... [18:45:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:24]Read from MH i2c: E2 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 03 00 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 03 00 5E 73 00 90 00 45 [18:45:24]RAPDU: 90 00 [18:45:24]wFMCommunicate OK [18:45:24]wFMCommunicate request_size=4 [18:45:24]MH_SAM_APDU [18:45:24]CAPDU: 80 0D 03 02 [18:45:24]Write to MH i2c: E2 08 00 5F 73 80 0D 03 02 00 00 00 00 4D [18:45:24]Write i2c OK [18:45:24]MH_I2C_Read... [18:45:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:24]Read from MH i2c: E2 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 0B 00 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 0B 00 5F 73 00 96 F9 2A C7 35 4F A6 97 90 00 8F [18:45:24]RAPDU: 96 F9 2A C7 35 4F A6 97 90 00 [18:45:24]wFMCommunicate OK [18:45:24]SAM_PROTO_SignData done [18:45:24]FM_MakeSignedData done [18:45:24]CreateOFDProtocolMessage [18:45:24]wFMCommunicate request_size=4 [18:45:24]MH_SAM_APDU [18:45:24]CAPDU: 80 11 00 00 [18:45:24]Write to MH i2c: E2 08 00 60 73 80 11 00 00 00 00 00 00 4D [18:45:24]Write i2c OK [18:45:24]MH_I2C_Read... [18:45:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:24]Read from MH i2c: E2 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 17 00 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 17 00 60 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A8 [18:45:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:45:24]wFMCommunicate OK [18:45:24]CreateOFDProtocolMessage done [18:45:24]OFDSenderStorePacket 118877 [18:45:24]StoreOFDPacket docnum=118877 [18:45:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5F 7C 07 01 9C 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 4A E3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D D0 01 00 35 04 06 00 0C 54 05 BD 4C 19 96 F9 2A C7 35 4F A6 97 [18:45:24]CheckFolder [18:45:24]dirname=/storage/ofd_packets [18:45:24]CheckFolder done [18:45:24]ProducePacketName [18:45:24]name=ofd_packets/00118877 [18:45:24]NVStorageSaveData ofd_packets/00118877 [18:45:24]File name is /storage/ofd_packets/00118877 [18:45:24]Write 301 bytes [18:45:24]NVStorageSaveData done [18:45:24]OFDSenderStorePacket done [18:45:24]KKMCreateOFDPacket done [18:45:24]NVStorageSaveData kkm_last_timestamp [18:45:24]File name is /storage/kkm_last_timestamp [18:45:24]Write 4 bytes [18:45:24]NVStorageSaveData done [18:45:24]ExternCall_PrintAddStr [18:45:24]wPrintStart [18:45:24]Write to MH i2c: 01 00 00 61 73 D4 [18:45:24]Write i2c OK [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: 01 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: 01 07 00 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: 01 07 00 61 73 00 00 00 00 00 FF 0F E9 [18:45:24]RasterBufferAndPrint [18:45:24]line Счет N : (1)949767 [18:45:24]line ИНН: 02508201610067 [18:45:24]line Контрольно-Кассовый Чек [18:45:24]line ПРОДАЖА [18:45:24]line ТРК (МРК, ГНК) : 51 [18:45:24]line Товар: 2710124130 [18:45:24]line Аи-92-К-4 [18:45:24]line 4.430 * 67.80 [18:45:24]line = 300.35 [18:45:24]line НДС 12% НСП 1% [18:45:24]line > о реализуемом товаре [18:45:24]line ОКРУГЛЕНИЕ: -0.35 [18:45:24]line ИТОГО: 300.00 [18:45:24]line Внесено: 300.00 [18:45:24]line СДАЧА: 0.00 [18:45:24]line НСП 1% : 2.66 [18:45:24]line НДС 12% : 31.90 [18:45:24]line Наличными: 300.00 [18:45:24]line Безнал.: 0.00 [18:45:24]line Место: АЗС № 134 "Партнер Нефть" [18:45:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:45:24]line СНО: Общий режим [18:45:24]line Чек 253 29.07.2024 18:45 [18:45:24]line Смена: 434 ФФД: 1.0 [18:45:24]line ЗНМ: 0300000044 [18:45:24]line РНМ: 0000000000092660 [18:45:24]line Версия ККМ: 001 [18:45:24]line ФМ: 0000000000874939 [18:45:24]line ФД: 118877 [18:45:24]line ФПД: 13555013078041 [18:45:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T184530&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118877&fm=13555013078041&tin=02508201610067®Number=0000000000092660&sum=30000 [18:45:25]OFD Sender: Processing packet 118877 [packets to send 86, broken 85] [18:45:25]ProducePacketName [18:45:25]name=ofd_packets/00118877 [18:45:25]OFD Sender: To server: pG, [18:45:25]CommunicateWithHost lk.salyk.kg:30040 [18:45:25]ConnectInit lk.salyk.kg [18:45:25]written 0, free lines is 4095 [18:45:25]Connected sock=10 [18:45:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5F 7C 07 01 9C 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 4A E3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D D0 01 00 35 04 06 00 0C 54 05 BD 4C 19 96 F9 2A C7 35 4F A6 97 [18:45:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 15 6F 47 00 B9 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D D0 01 00 F4 03 04 00 D7 90 A7 66 B6 04 01 00 00 6C 98 56 BC 0B 89 1B 1D [18:45:25]CommunicateWithHost err = 0 [18:45:25]CheckOFDResponse [18:45:25]1017 (14) - 77093643461234 [18:45:25]1041 (16) - 0000000000874939 [18:45:25]1040 (4) - 118877 [18:45:25]1012 (4) - 29.07.2024 12:53 [18:45:25]1206 (1) - 0 [18:45:25]OFD Sender: Remove packet 118877 [18:45:25]ProducePacketName [18:45:25]name=ofd_packets/00118877 [18:45:25]NVStorageDeleteData [18:45:25]Write to MH i2c: 01 00 00 8B 73 FE [18:45:25]Write i2c OK [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: 01 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: 01 07 00 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: 01 07 00 8B 73 00 00 00 00 00 E4 0C F5 [18:45:25]RasterBufferAndPrint [18:45:25]line [18:45:25]line [18:45:25]line [18:45:25]line [18:45:25]line [18:45:25]written 0, free lines is 3306 [18:45:25]MH_Cut [18:45:25]Write to MH i2c: D1 01 00 92 73 01 D7 [18:45:25]Write i2c OK [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: D1 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: D1 01 00 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: D1 01 00 92 73 00 D6 [18:45:25]Write to MH i2c: 01 00 00 93 73 06 [18:45:25]Write i2c OK [18:45:25]MH_I2C_Read... [18:45:26]OFD Sender: No OFD packet to send [18:45:26]*** Cut start [18:45:26]*** Partial cut [18:45:26]*** CUTSNS_PIN = 1 [18:45:26]*** CUTSNS_PIN = 0 [18:45:26]*** Brake cut motor [18:45:27]Read from MH i2c: 01 [18:45:27]MH_I2C_Read... [18:45:27]*** Stop cut motor [18:45:27]*** Cut end [18:45:27]Read from MH i2c: 01 07 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: 01 07 00 93 73 00 00 00 00 00 FF 0F 1B [18:45:27]process_action close_receipt done [18:45:27]requested_data is exist [18:45:27]produce_requested_data [18:45:27]requested_item fm.sn is exist - process it [18:45:27]wFMCommunicate request_size=4 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 11 00 00 [18:45:27]Write to MH i2c: E2 08 00 94 73 80 11 00 00 00 00 00 00 81 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 17 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 17 00 94 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DC [18:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:45:27]wFMCommunicate OK [18:45:27]requested_item fd.num is exist - process it [18:45:27]SAM_PROTO_GetFieldsCounters [18:45:27]wFMCommunicate request_size=4 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 13 00 00 [18:45:27]Write to MH i2c: E2 08 00 95 73 80 13 00 00 00 00 00 00 84 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 62 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 62 00 95 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5D D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [18:45: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5D D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:27]wFMCommunicate OK [18:45:27]SAM_PROTO_GetFieldsCounters done [18:45:27]requested_item shift.num is exist - process it [18:45:27]requested_item shift.opened is exist - process it [18:45:27]req_shift_opened [18:45:27]FM_GetShiftState [18:45:27]SAM_PROTO_GetShiftState [18:45:27]wFMCommunicate request_size=4 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 13 01 00 [18:45:27]Write to MH i2c: E2 08 00 96 73 80 13 01 00 00 00 00 00 86 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 0E 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 0E 00 96 73 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B4 [18:45:27]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:45:27]wFMCommunicate OK [18:45:27]SAM_PROTO_GetShiftState done [18:45:27]FM_GetShiftState done [18:45:27]req_shift_opened done [18:45:27]requested_item shift.open_date is exist - process it [18:45:27]req_shift_open_date [18:45:27]req_shift_open_date done [18:45:27]produce_requested_data done [18:45:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118877,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:45:27]process_action_free close_receipt [18:45:27]json_value_free [18:45:27]json_value_free done [18:45:27]process_json_proto returns [18:45:27]Send response to host [18:45:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118877,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:45:27]free response buf [18:45:27]execute_script done [18:45:27]execute_script returns [18:45:27]free content buf [18:45:27]Sock 9.Close socket [18:45:27]Sock 9.Thread stoped [18:45:31]OFD Sender: No OFD packet to send [18:45:36]OFD Sender: No OFD packet to send [18:45:37]accept exits with 7 [18:45:37]New connection [18:45:37]New thread 3067239780 created [18:45:37]Thread 3067383140 joined [18:45:37]Waiting for new connection... [18:45:37] Sock 7.Parse request [18:45:37]Sock 7.Check first char [18:45:37]Sock 7.First char is OK [18:45:37]request: POST /json_proto HTTP/1.0 [18:45:37]Method: POST [18:45:37]URL: /json_proto [18:45:37]Method is POST - this is cgi request [18:45:37]url: /json_proto [18:45:37]query_string will be loaded in cgi processing [18:45:37]execute_cgi json_proto POST (null) [18:45:37]execute_cgi path=json_proto method=POST [18:45:37]POST find Content-Length [18:45:37]Host: 172.17.45.7:8080 [18:45:37]Content-Length: 682 [18:45:37]Content-Type: application/json [18:45:37] [18:45:37]POST finish read [18:45:37]Found Content-Length = 682 [18:45:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:37]execute_script... [18:45:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:37]POST & json_proto [18:45:37]process_json_proto [18:45:37]json parsed OK: [18:45:37]protocol is kg_v1.0 [18:45:37]action value=close_receipt [18:45:37]process_action close_receipt [18:45:37]cmd_close_receipt [18:45:37]MH_GetDate [18:45:37]Write to MH i2c: F0 00 00 97 73 F9 [18:45:37]Write i2c OK [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: F0 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: F0 09 00 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: F0 09 00 97 73 00 57 E3 A7 66 90 0F 3E 66 8C [18:45:37]GetLastDocTimeStamp 1722278730 [18:45:37]current date 1722278743 [18:45:37]FM_GetShiftState [18:45:37]SAM_PROTO_GetShiftState [18:45:37]wFMCommunicate request_size=4 [18:45:37]MH_SAM_APDU [18:45:37]CAPDU: 80 13 01 00 [18:45:37]Write to MH i2c: E2 08 00 98 73 80 13 01 00 00 00 00 00 88 [18:45:37]Write i2c OK [18:45:37]MH_I2C_Read... [18:45:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:37]Read from MH i2c: E2 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 0E 00 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 0E 00 98 73 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B6 [18:45:37]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:45:37]wFMCommunicate OK [18:45:37]SAM_PROTO_GetShiftState done [18:45:37]FM_GetShiftState done [18:45:37]opened in 1722211641 [18:45:37]opened+sec_in_day 1722298041 [18:45:37]quantity*price = 100005 [18:45:37]sum+1 = 100006 [18:45:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 254 29.07.2024 18:45 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118878 ФПД: 158519073623912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T184543&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118878&fm=158519073623912&tin=02508201610067®Number=0000000000092660&sum=100000 [18:45:38]StoreToDocumentArchive [18:45:38]shift 434 fd 118878 [18:45:38]save to /storage/0434/doc_00118878 [18:45:38]save last doc name /storage/0434/doc_00118878 to /storage/kkm_last_doc_name [18:45:38]save OK [18:45:38]Clear old archive folders... [18:45:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:38]tlvbuf is B6FBE3C0 [18:45:38]SAM_PROTO_ClearQueue [18:45:38]wFMCommunicate request_size=4 [18:45:38]MH_SAM_APDU [18:45:38]CAPDU: 80 09 00 00 [18:45:38]Write to MH i2c: E2 08 00 A5 73 80 09 00 00 00 00 00 00 8A [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:38]Read from MH i2c: E2 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 03 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 03 00 A5 73 00 90 00 8C [18:45:38]RAPDU: 90 00 [18:45:38]wFMCommunicate OK [18:45:38]SAM_PROTO_ClearQueue done [18:45:38]KKMCreateOFDPacket [18:45:38]OFDProtocolAddRootSTLVToBuf [18:45:38]FM_MakeSignedData [18:45:38]FM_MakeSignedData [18:45:38]SAM_PROTO_SignData [18:45:38]wFMCommunicate request_size=4 [18:45:38]MH_SAM_APDU [18:45:38]CAPDU: 80 0D 01 02 [18:45:38]Write to MH i2c: E2 08 00 A6 73 80 0D 01 02 00 00 00 00 92 [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:38]Read from MH i2c: E2 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 03 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 03 00 A6 73 00 90 00 8D [18:45:38]RAPDU: 90 00 [18:45:38]wFMCommunicate OK [18:45:38]wFMCommunicate request_size=255 [18:45:38]MH_SAM_APDU [18:45: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 57 E3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E D0 01 00 35 04 06 00 90 [18:45:38]Write to MH i2c: E2 02 01 A7 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 57 E3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E D0 01 00 35 04 06 00 90 00 00 5C [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:38]Read from MH i2c: E2 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 03 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 03 00 A7 73 00 90 00 8E [18:45:38]RAPDU: 90 00 [18:45:38]wFMCommunicate OK [18:45:38]wFMCommunicate request_size=10 [18:45:38]MH_SAM_APDU [18:45:38]CAPDU: 80 0D 02 02 05 2C 19 12 CF 68 [18:45:38]Write to MH i2c: E2 0D 00 A8 73 80 0D 02 02 05 00 2C 19 12 CF 68 00 00 2D [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:38]Read from MH i2c: E2 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 03 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 03 00 A8 73 00 90 00 8F [18:45:38]RAPDU: 90 00 [18:45:38]wFMCommunicate OK [18:45:38]wFMCommunicate request_size=4 [18:45:38]MH_SAM_APDU [18:45:38]CAPDU: 80 0D 03 02 [18:45:38]Write to MH i2c: E2 08 00 A9 73 80 0D 03 02 00 00 00 00 97 [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:38]Read from MH i2c: E2 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 0B 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 0B 00 A9 73 00 F7 7F FC E8 A2 23 83 00 90 00 3A [18:45:38]RAPDU: F7 7F FC E8 A2 23 83 00 90 00 [18:45:38]wFMCommunicate OK [18:45:38]SAM_PROTO_SignData done [18:45:38]FM_MakeSignedData done [18:45:38]CreateOFDProtocolMessage [18:45:38]wFMCommunicate request_size=4 [18:45:38]MH_SAM_APDU [18:45:38]CAPDU: 80 11 00 00 [18:45:38]Write to MH i2c: E2 08 00 AA 73 80 11 00 00 00 00 00 00 97 [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:38]Read from MH i2c: E2 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 17 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 17 00 AA 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F2 [18:45:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:45:38]wFMCommunicate OK [18:45:38]CreateOFDProtocolMessage done [18:45:38]OFDSenderStorePacket 118878 [18:45:38]StoreOFDPacket docnum=118878 [18:45:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 32 D1 07 01 5F 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 57 E3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E D0 01 00 35 04 06 00 90 2C 19 12 CF 68 F7 7F FC E8 A2 23 83 00 [18:45:38]CheckFolder [18:45:38]dirname=/storage/ofd_packets [18:45:38]CheckFolder done [18:45:38]ProducePacketName [18:45:38]name=ofd_packets/00118878 [18:45:38]NVStorageSaveData ofd_packets/00118878 [18:45:38]File name is /storage/ofd_packets/00118878 [18:45:38]Write 301 bytes [18:45:38]NVStorageSaveData done [18:45:38]OFDSenderStorePacket done [18:45:38]KKMCreateOFDPacket done [18:45:38]NVStorageSaveData kkm_last_timestamp [18:45:38]File name is /storage/kkm_last_timestamp [18:45:38]Write 4 bytes [18:45:38]NVStorageSaveData done [18:45:38]ExternCall_PrintAddStr [18:45:38]wPrintStart [18:45:38]Write to MH i2c: 01 00 00 AB 73 1E [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: 01 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: 01 07 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: 01 07 00 AB 73 00 00 00 00 00 FF 0F 33 [18:45:38]RasterBufferAndPrint [18:45:38]line Счет N : (1)949768 [18:45:38]line ИНН: 02508201610067 [18:45:38]line Контрольно-Кассовый Чек [18:45:38]line ПРОДАЖА [18:45:38]line ТРК (МРК, ГНК) : 41 [18:45:38]line Товар: 2710124130 [18:45:38]line Аи-92-К-4 [18:45:38]line 14.750 * 67.80 [18:45:38]line = 1000.05 [18:45:38]line НДС 12% НСП 1% [18:45:38]line > о реализуемом товаре [18:45:38]line ОКРУГЛЕНИЕ: -0.05 [18:45:38]line ИТОГО: 1000.00 [18:45:38]line Внесено: 1000.00 [18:45:38]line СДАЧА: 0.00 [18:45:38]line НСП 1% : 8.85 [18:45:38]line НДС 12% : 106.20 [18:45:38]line Наличными: 1000.00 [18:45:38]line Безнал.: 0.00 [18:45:38]line Место: АЗС № 134 "Партнер Нефть" [18:45:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:45:38]line СНО: Общий режим [18:45:38]line Чек 254 29.07.2024 18:45 [18:45:38]line Смена: 434 ФФД: 1.0 [18:45:38]line ЗНМ: 0300000044 [18:45:38]line РНМ: 0000000000092660 [18:45:38]line Версия ККМ: 001 [18:45:38]line ФМ: 0000000000874939 [18:45:38]line ФД: 118878 [18:45:38]line ФПД: 158519073623912 [18:45:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T184543&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118878&fm=158519073623912&tin=02508201610067®Number=0000000000092660&sum=100000 [18:45:38]written 0, free lines is 4095 [18:45:38]OFD Sender: Processing packet 118878 [packets to send 86, broken 85] [18:45:38]ProducePacketName [18:45:38]name=ofd_packets/00118878 [18:45:38]OFD Sender: To server: pG, [18:45:38]CommunicateWithHost lk.salyk.kg:30040 [18:45:38]ConnectInit lk.salyk.kg [18:45:38]Connected sock=10 [18:45:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 32 D1 07 01 5F 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 57 E3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E D0 01 00 35 04 06 00 90 2C 19 12 CF 68 F7 7F FC E8 A2 23 83 00 [18:45:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BC 5A 47 00 34 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 34 39 33 39 10 04 04 00 5E D0 01 00 F4 03 04 00 E4 90 A7 66 B6 04 01 00 00 FF A0 6A 0D 72 62 16 DB [18:45:39]CommunicateWithHost err = 0 [18:45:39]CheckOFDResponse [18:45:39]1017 (14) - 77093643461234 [18:45:39]1041 (16) - 0000000000874939 [18:45:39]1040 (4) - 118878 [18:45:39]1012 (4) - 29.07.2024 12:53 [18:45:39]1206 (1) - 0 [18:45:39]OFD Sender: Remove packet 118878 [18:45:39]ProducePacketName [18:45:39]name=ofd_packets/00118878 [18:45:39]NVStorageDeleteData [18:45:39]Write to MH i2c: 01 00 00 D5 73 48 [18:45:39]Write i2c OK [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: 01 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: 01 07 00 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: 01 07 00 D5 73 00 00 00 00 00 EC 0C 47 [18:45:39]RasterBufferAndPrint [18:45:39]line [18:45:39]line [18:45:39]line [18:45:39]line [18:45:39]line [18:45:39]written 0, free lines is 3315 [18:45:39]MH_Cut [18:45:39]Write to MH i2c: D1 01 00 DC 73 01 21 [18:45:39]Write i2c OK [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: D1 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: D1 01 00 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: D1 01 00 DC 73 00 20 [18:45:39]Write to MH i2c: 01 00 00 DD 73 50 [18:45:39]Write i2c OK [18:45:39]MH_I2C_Read... [18:45:39]OFD Sender: No OFD packet to send [18:45:40]*** Cut start [18:45:40]*** Partial cut [18:45:40]*** CUTSNS_PIN = 1 [18:45:40]*** CUTSNS_PIN = 0 [18:45:40]*** Brake cut motor [18:45:40]Read from MH i2c: 01 [18:45:40]MH_I2C_Read... [18:45:40]*** Stop cut motor [18:45:40]*** Cut end [18:45:40]Read from MH i2c: 01 07 00 [18:45:40]MH_I2C_Read... [18:45:40]Read from MH i2c: 01 07 00 DD 73 00 00 00 00 00 FF 0F 65 [18:45:40]process_action close_receipt done [18:45:40]requested_data is exist [18:45:40]produce_requested_data [18:45:40]requested_item fm.sn is exist - process it [18:45:40]wFMCommunicate request_size=4 [18:45:40]MH_SAM_APDU [18:45:40]CAPDU: 80 11 00 00 [18:45:40]Write to MH i2c: E2 08 00 DE 73 80 11 00 00 00 00 00 00 CB [18:45:40]Write i2c OK [18:45:40]MH_I2C_Read... [18:45:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:40]Read from MH i2c: E2 [18:45:40]MH_I2C_Read... [18:45:40]Read from MH i2c: E2 17 00 [18:45:40]MH_I2C_Read... [18:45:40]Read from MH i2c: E2 17 00 DE 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 26 [18:45:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:45:40]wFMCommunicate OK [18:45:40]requested_item fd.num is exist - process it [18:45:40]SAM_PROTO_GetFieldsCounters [18:45:40]wFMCommunicate request_size=4 [18:45:40]MH_SAM_APDU [18:45:40]CAPDU: 80 13 00 00 [18:45:40]Write to MH i2c: E2 08 00 DF 73 80 13 00 00 00 00 00 00 CE [18:45:40]Write i2c OK [18:45:40]MH_I2C_Read... [18:45:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:40]Read from MH i2c: E2 [18:45:40]MH_I2C_Read... [18:45:40]Read from MH i2c: E2 62 00 [18:45:40]MH_I2C_Read... [18:45:40]Read from MH i2c: E2 62 00 DF 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5E D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [18:45: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5E D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:40]wFMCommunicate OK [18:45:40]SAM_PROTO_GetFieldsCounters done [18:45:40]requested_item shift.num is exist - process it [18:45:40]requested_item shift.opened is exist - process it [18:45:40]req_shift_opened [18:45:40]FM_GetShiftState [18:45:40]SAM_PROTO_GetShiftState [18:45:40]wFMCommunicate request_size=4 [18:45:40]MH_SAM_APDU [18:45:40]CAPDU: 80 13 01 00 [18:45:40]Write to MH i2c: E2 08 00 E0 73 80 13 01 00 00 00 00 00 D0 [18:45:40]Write i2c OK [18:45:40]MH_I2C_Read... [18:45:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:40]Read from MH i2c: E2 [18:45:40]MH_I2C_Read... [18:45:40]Read from MH i2c: E2 0E 00 [18:45:40]MH_I2C_Read... [18:45:40]Read from MH i2c: E2 0E 00 E0 73 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 FE [18:45:40]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:45:40]wFMCommunicate OK [18:45:40]SAM_PROTO_GetShiftState done [18:45:40]FM_GetShiftState done [18:45:40]req_shift_opened done [18:45:40]requested_item shift.open_date is exist - process it [18:45:40]req_shift_open_date [18:45:40]req_shift_open_date done [18:45:40]produce_requested_data done [18:45:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118878,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:45:40]process_action_free close_receipt [18:45:40]json_value_free [18:45:40]json_value_free done [18:45:40]process_json_proto returns [18:45:40]Send response to host [18:45:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118878,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:45:40]free response buf [18:45:40]execute_script done [18:45:40]execute_script returns [18:45:40]free content buf [18:45:40]Sock 7.Close socket [18:45:40]Sock 7.Thread stoped [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:49]OFD Sender: No OFD packet to send [18:46:54]OFD Sender: No OFD packet to send [18:46:59]OFD Sender: No OFD packet to send [18:47:04]OFD Sender: No OFD packet to send [18:47:09]OFD Sender: No OFD packet to send [18:47:14]OFD Sender: No OFD packet to send [18:47:19]OFD Sender: No OFD packet to send [18:47:24]OFD Sender: No OFD packet to send [18:47:29]OFD Sender: No OFD packet to send [18:47:34]OFD Sender: No OFD packet to send [18:47:39]OFD Sender: No OFD packet to send [18:47:44]OFD Sender: No OFD packet to send [18:47:49]OFD Sender: No OFD packet to send [18:47:54]OFD Sender: No OFD packet to send [18:47:59]OFD Sender: No OFD packet to send [18:48:04]OFD Sender: No OFD packet to send [18:48:09]OFD Sender: No OFD packet to send [18:48:14]OFD Sender: No OFD packet to send [18:48:19]OFD Sender: No OFD packet to send [18:48:24]OFD Sender: No OFD packet to send [18:48:29]OFD Sender: No OFD packet to send [18:48:34]OFD Sender: No OFD packet to send [18:48:39]OFD Sender: No OFD packet to send [18:48:44]OFD Sender: No OFD packet to send [18:48:49]OFD Sender: No OFD packet to send [18:48:54]OFD Sender: No OFD packet to send [18:48:59]OFD Sender: No OFD packet to send [18:49:04]OFD Sender: No OFD packet to send [18:49:09]OFD Sender: No OFD packet to send [18:49:14]OFD Sender: No OFD packet to send [18:49:19]OFD Sender: No OFD packet to send [18:49:24]OFD Sender: No OFD packet to send [18:49:29]OFD Sender: No OFD packet to send [18:49:34]OFD Sender: No OFD packet to send [18:49:39]OFD Sender: No OFD packet to send [18:49:44]OFD Sender: No OFD packet to send [18:49:49]OFD Sender: No OFD packet to send [18:49:54]OFD Sender: No OFD packet to send [18:49:59]OFD Sender: No OFD packet to send [18:50:04]OFD Sender: No OFD packet to send [18:50:09]OFD Sender: No OFD packet to send [18:50:14]OFD Sender: No OFD packet to send [18:50:19]OFD Sender: No OFD packet to send [18:50:24]OFD Sender: No OFD packet to send [18:50:29]OFD Sender: No OFD packet to send [18:50:34]OFD Sender: No OFD packet to send [18:50:39]OFD Sender: No OFD packet to send [18:50:44]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:40]OFD Sender: No OFD packet to send [18:53:40]accept exits with 9 [18:53:40]New connection [18:53:40]New thread 3067383140 created [18:53:40]Thread 3067239780 joined [18:53:40]Waiting for new connection... [18:53:40] Sock 9.Parse request [18:53:40]Sock 9.Check first char [18:53:40]Sock 9.First char is OK [18:53:40]request: POST /json_proto HTTP/1.0 [18:53:40]Method: POST [18:53:40]URL: /json_proto [18:53:40]Method is POST - this is cgi request [18:53:40]url: /json_proto [18:53:40]query_string will be loaded in cgi processing [18:53:40]execute_cgi json_proto POST (null) [18:53:40]execute_cgi path=json_proto method=POST [18:53:40]POST find Content-Length [18:53:40]Host: 172.17.45.7:8080 [18:53:40]Content-Length: 677 [18:53:40]Content-Type: application/json [18:53:40] [18:53:40]POST finish read [18:53:40]Found Content-Length = 677 [18:53:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:40]execute_script... [18:53:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:40]POST & json_proto [18:53:40]process_json_proto [18:53:40]json parsed OK: [18:53:40]protocol is kg_v1.0 [18:53:40]action value=close_receipt [18:53:40]process_action close_receipt [18:53:40]cmd_close_receipt [18:53:40]MH_GetDate [18:53:40]Write to MH i2c: F0 00 00 E1 73 43 [18:53:40]Write i2c OK [18:53:40]MH_I2C_Read... [18:53:40]Read from MH i2c: F0 [18:53:40]MH_I2C_Read... [18:53:40]Read from MH i2c: F0 09 00 [18:53:40]MH_I2C_Read... [18:53:40]Read from MH i2c: F0 09 00 E1 73 00 3B E5 A7 66 90 0F 3E 66 BC [18:53:40]GetLastDocTimeStamp 1722278743 [18:53:40]current date 1722279227 [18:53:40]FM_GetShiftState [18:53:40]SAM_PROTO_GetShiftState [18:53:40]wFMCommunicate request_size=4 [18:53:40]MH_SAM_APDU [18:53:40]CAPDU: 80 13 01 00 [18:53:40]Write to MH i2c: E2 08 00 E2 73 80 13 01 00 00 00 00 00 D2 [18:53:40]Write i2c OK [18:53:40]MH_I2C_Read... [18:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:40]Read from MH i2c: E2 [18:53:40]MH_I2C_Read... [18:53:40]Read from MH i2c: E2 0E 00 [18:53:40]MH_I2C_Read... [18:53:40]Read from MH i2c: E2 0E 00 E2 73 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 00 [18:53:40]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:53:40]wFMCommunicate OK [18:53:40]SAM_PROTO_GetShiftState done [18:53:40]FM_GetShiftState done [18:53:40]opened in 1722211641 [18:53:40]opened+sec_in_day 1722298041 [18:53:40]quantity*price = 40002 [18:53:40]sum+1 = 40003 [18:53:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 255 29.07.2024 18:53 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118879 ФПД: 61702231960062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T185347&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118879&fm=61702231960062&tin=02508201610067®Number=0000000000092660&sum=40000 [18:53:41]StoreToDocumentArchive [18:53:41]shift 434 fd 118879 [18:53:41]save to /storage/0434/doc_00118879 [18:53:41]save last doc name /storage/0434/doc_00118879 to /storage/kkm_last_doc_name [18:53:41]save OK [18:53:41]Clear old archive folders... [18:53:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:53:41]tlvbuf is 01F6A170 [18:53:41]SAM_PROTO_ClearQueue [18:53:41]wFMCommunicate request_size=4 [18:53:41]MH_SAM_APDU [18:53:41]CAPDU: 80 09 00 00 [18:53:41]Write to MH i2c: E2 08 00 EF 73 80 09 00 00 00 00 00 00 D4 [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:41]Read from MH i2c: E2 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 03 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 03 00 EF 73 00 90 00 D6 [18:53:41]RAPDU: 90 00 [18:53:41]wFMCommunicate OK [18:53:41]SAM_PROTO_ClearQueue done [18:53:41]KKMCreateOFDPacket [18:53:41]OFDProtocolAddRootSTLVToBuf [18:53:41]FM_MakeSignedData [18:53:41]FM_MakeSignedData [18:53:41]SAM_PROTO_SignData [18:53:41]wFMCommunicate request_size=4 [18:53:41]MH_SAM_APDU [18:53:41]CAPDU: 80 0D 01 02 [18:53:41]Write to MH i2c: E2 08 00 F0 73 80 0D 01 02 00 00 00 00 DC [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:41]Read from MH i2c: E2 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 03 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 03 00 F0 73 00 90 00 D7 [18:53:41]RAPDU: 90 00 [18:53:41]wFMCommunicate OK [18:53:41]wFMCommunicate request_size=255 [18:53:41]MH_SAM_APDU [18:53:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 3B E5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F D0 01 00 35 04 06 00 38 [18:53:41]Write to MH i2c: E2 02 01 F1 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 3B E5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F D0 01 00 35 04 06 00 38 00 00 8C [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:41]Read from MH i2c: E2 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 03 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 03 00 F1 73 00 90 00 D8 [18:53:41]RAPDU: 90 00 [18:53:41]wFMCommunicate OK [18:53:41]wFMCommunicate request_size=10 [18:53:41]MH_SAM_APDU [18:53:41]CAPDU: 80 0D 02 02 05 1E 2B 9E 29 FE [18:53:41]Write to MH i2c: E2 0D 00 F2 73 80 0D 02 02 05 00 1E 2B 9E 29 FE 00 00 F7 [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:41]Read from MH i2c: E2 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 03 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 03 00 F2 73 00 90 00 D9 [18:53:41]RAPDU: 90 00 [18:53:41]wFMCommunicate OK [18:53:41]wFMCommunicate request_size=4 [18:53:41]MH_SAM_APDU [18:53:41]CAPDU: 80 0D 03 02 [18:53:41]Write to MH i2c: E2 08 00 F3 73 80 0D 03 02 00 00 00 00 E1 [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:41]Read from MH i2c: E2 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 0B 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 0B 00 F3 73 00 13 9C 6C C8 99 8F E8 FF 90 00 D4 [18:53:41]RAPDU: 13 9C 6C C8 99 8F E8 FF 90 00 [18:53:41]wFMCommunicate OK [18:53:41]SAM_PROTO_SignData done [18:53:41]FM_MakeSignedData done [18:53:41]CreateOFDProtocolMessage [18:53:41]wFMCommunicate request_size=4 [18:53:41]MH_SAM_APDU [18:53:41]CAPDU: 80 11 00 00 [18:53:41]Write to MH i2c: E2 08 00 F4 73 80 11 00 00 00 00 00 00 E1 [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:41]Read from MH i2c: E2 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 17 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: E2 17 00 F4 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3C [18:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:53:41]wFMCommunicate OK [18:53:41]CreateOFDProtocolMessage done [18:53:41]OFDSenderStorePacket 118879 [18:53:41]StoreOFDPacket docnum=118879 [18:53:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 82 2F 07 01 9B 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 3B E5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F D0 01 00 35 04 06 00 38 1E 2B 9E 29 FE 13 9C 6C C8 99 8F E8 FF [18:53:41]CheckFolder [18:53:41]dirname=/storage/ofd_packets [18:53:41]CheckFolder done [18:53:41]ProducePacketName [18:53:41]name=ofd_packets/00118879 [18:53:41]NVStorageSaveData ofd_packets/00118879 [18:53:41]File name is /storage/ofd_packets/00118879 [18:53:41]Write 301 bytes [18:53:41]NVStorageSaveData done [18:53:41]OFDSenderStorePacket done [18:53:41]KKMCreateOFDPacket done [18:53:41]NVStorageSaveData kkm_last_timestamp [18:53:41]File name is /storage/kkm_last_timestamp [18:53:41]Write 4 bytes [18:53:41]NVStorageSaveData done [18:53:41]ExternCall_PrintAddStr [18:53:41]wPrintStart [18:53:41]Write to MH i2c: 01 00 00 F5 73 68 [18:53:41]Write i2c OK [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: 01 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: 01 07 00 [18:53:41]MH_I2C_Read... [18:53:41]Read from MH i2c: 01 07 00 F5 73 00 00 00 00 00 FF 0F 7D [18:53:41]RasterBufferAndPrint [18:53:41]line Счет N : (1)949772 [18:53:41]line ИНН: 02508201610067 [18:53:41]line Контрольно-Кассовый Чек [18:53:41]line ПРОДАЖА [18:53:41]line ТРК (МРК, ГНК) : 41 [18:53:41]line Товар: 2710124130 [18:53:41]line Аи-92-К-4 [18:53:41]line 5.900 * 67.80 [18:53:41]line = 400.02 [18:53:41]line НДС 12% НСП 1% [18:53:41]line > о реализуемом товаре [18:53:41]line ОКРУГЛЕНИЕ: -0.02 [18:53:41]line ИТОГО: 400.00 [18:53:41]line Внесено: 400.00 [18:53:41]line СДАЧА: 0.00 [18:53:41]line НСП 1% : 3.54 [18:53:41]line НДС 12% : 42.48 [18:53:41]line Наличными: 400.00 [18:53:41]line Безнал.: 0.00 [18:53:41]line Место: АЗС № 134 "Партнер Нефть" [18:53:41]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:53:41]line СНО: Общий режим [18:53:41]line Чек 255 29.07.2024 18:53 [18:53:41]line Смена: 434 ФФД: 1.0 [18:53:41]line ЗНМ: 0300000044 [18:53:41]line РНМ: 0000000000092660 [18:53:41]line Версия ККМ: 001 [18:53:41]line ФМ: 0000000000874939 [18:53:41]line ФД: 118879 [18:53:41]line ФПД: 61702231960062 [18:53:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T185347&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118879&fm=61702231960062&tin=02508201610067®Number=0000000000092660&sum=40000 [18:53:41]written 0, free lines is 4095 [18:53:41]OFD Sender: Processing packet 118879 [packets to send 86, broken 85] [18:53:41]ProducePacketName [18:53:41]name=ofd_packets/00118879 [18:53:42]OFD Sender: To server: pG, [18:53:42]CommunicateWithHost lk.salyk.kg:30040 [18:53:42]ConnectInit lk.salyk.kg [18:53:42]Connected sock=10 [18:53:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 82 2F 07 01 9B 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 3B E5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F D0 01 00 35 04 06 00 38 1E 2B 9E 29 FE 13 9C 6C C8 99 8F E8 FF [18:53:42]Write to MH i2c: 01 00 00 1F 74 93 [18:53:42]Write i2c OK [18:53:42]MH_I2C_Read... [18:53:42]Read from MH i2c: 01 [18:53:42]MH_I2C_Read... [18:53:42]Read from MH i2c: 01 07 00 [18:53:42]MH_I2C_Read... [18:53:42]Read from MH i2c: 01 07 00 1F 74 00 00 00 00 00 F4 0C 9A [18:53:42]RasterBufferAndPrint [18:53:42]line [18:53:42]line [18:53:42]line [18:53:42]line [18:53:42]line [18:53:42]written 0, free lines is 3324 [18:53:42]MH_Cut [18:53:42]Write to MH i2c: D1 01 00 26 74 01 6C [18:53:42]Write i2c OK [18:53:42]MH_I2C_Read... [18:53:42]Read from MH i2c: D1 [18:53:42]MH_I2C_Read... [18:53:42]Read from MH i2c: D1 01 00 [18:53:42]MH_I2C_Read... [18:53:42]Read from MH i2c: D1 01 00 26 74 00 6B [18:53:42]Write to MH i2c: 01 00 00 27 74 9B [18:53:42]Write i2c OK [18:53:42]MH_I2C_Read... [18:53:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 21 3D 47 00 3D 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 34 39 33 39 10 04 04 00 5F D0 01 00 F4 03 04 00 C8 92 A7 66 B6 04 01 00 00 5A 2A 3E CF 9A 3D 29 A1 [18:53:42]CommunicateWithHost err = 0 [18:53:42]CheckOFDResponse [18:53:42]1017 (14) - 77093643461234 [18:53:42]1041 (16) - 0000000000874939 [18:53:42]1040 (4) - 118879 [18:53:42]1012 (4) - 29.07.2024 13:02 [18:53:42]1206 (1) - 0 [18:53:42]OFD Sender: Remove packet 118879 [18:53:42]ProducePacketName [18:53:42]name=ofd_packets/00118879 [18:53:42]NVStorageDeleteData [18:53:43]OFD Sender: No OFD packet to send [18:53:43]*** Cut start [18:53:43]*** Partial cut [18:53:43]*** CUTSNS_PIN = 1 [18:53:43]*** CUTSNS_PIN = 0 [18:53:43]*** Brake cut motor [18:53:43]Read from MH i2c: 01 [18:53:43]MH_I2C_Read... [18:53:43]*** Stop cut motor [18:53:43]*** Cut end [18:53:43]Read from MH i2c: 01 07 00 [18:53:43]MH_I2C_Read... [18:53:43]Read from MH i2c: 01 07 00 27 74 00 00 00 00 00 FF 0F B0 [18:53:43]process_action close_receipt done [18:53:43]requested_data is exist [18:53:43]produce_requested_data [18:53:43]requested_item fm.sn is exist - process it [18:53:43]wFMCommunicate request_size=4 [18:53:43]MH_SAM_APDU [18:53:43]CAPDU: 80 11 00 00 [18:53:43]Write to MH i2c: E2 08 00 28 74 80 11 00 00 00 00 00 00 16 [18:53:43]Write i2c OK [18:53:43]MH_I2C_Read... [18:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:43]Read from MH i2c: E2 [18:53:43]MH_I2C_Read... [18:53:43]Read from MH i2c: E2 17 00 [18:53:43]MH_I2C_Read... [18:53:43]Read from MH i2c: E2 17 00 28 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 71 [18:53:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:53:43]wFMCommunicate OK [18:53:43]requested_item fd.num is exist - process it [18:53:43]SAM_PROTO_GetFieldsCounters [18:53:43]wFMCommunicate request_size=4 [18:53:43]MH_SAM_APDU [18:53:43]CAPDU: 80 13 00 00 [18:53:43]Write to MH i2c: E2 08 00 29 74 80 13 00 00 00 00 00 00 19 [18:53:43]Write i2c OK [18:53:43]MH_I2C_Read... [18:53:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:43]Read from MH i2c: E2 [18:53:43]MH_I2C_Read... [18:53:43]Read from MH i2c: E2 62 00 [18:53:43]MH_I2C_Read... [18:53:43]Read from MH i2c: E2 62 00 29 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5F D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [18:53: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5F D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:43]wFMCommunicate OK [18:53:43]SAM_PROTO_GetFieldsCounters done [18:53:43]requested_item shift.num is exist - process it [18:53:43]requested_item shift.opened is exist - process it [18:53:43]req_shift_opened [18:53:43]FM_GetShiftState [18:53:43]SAM_PROTO_GetShiftState [18:53:43]wFMCommunicate request_size=4 [18:53:43]MH_SAM_APDU [18:53:43]CAPDU: 80 13 01 00 [18:53:43]Write to MH i2c: E2 08 00 2A 74 80 13 01 00 00 00 00 00 1B [18:53:43]Write i2c OK [18:53:43]MH_I2C_Read... [18:53:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:44]Read from MH i2c: E2 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: E2 0E 00 [18:53:44]MH_I2C_Read... [18:53:44]Read from MH i2c: E2 0E 00 2A 74 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 49 [18:53:44]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:53:44]wFMCommunicate OK [18:53:44]SAM_PROTO_GetShiftState done [18:53:44]FM_GetShiftState done [18:53:44]req_shift_opened done [18:53:44]requested_item shift.open_date is exist - process it [18:53:44]req_shift_open_date [18:53:44]req_shift_open_date done [18:53:44]produce_requested_data done [18:53:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118879,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:53:44]process_action_free close_receipt [18:53:44]json_value_free [18:53:44]json_value_free done [18:53:44]process_json_proto returns [18:53:44]Send response to host [18:53:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118879,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:53:44]free response buf [18:53:44]execute_script done [18:53:44]execute_script returns [18:53:44]free content buf [18:53:44]Sock 9.Close socket [18:53:44]Sock 9.Thread stoped [18:53:48]OFD Sender: No OFD packet to send [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:06]accept exits with 7 [18:54:06]New connection [18:54:06]New thread 3067239780 created [18:54:06]Thread 3067383140 joined [18:54:06]Waiting for new connection... [18:54:06] Sock 7.Parse request [18:54:06]Sock 7.Check first char [18:54:06]Sock 7.First char is OK [18:54:06]request: POST /json_proto HTTP/1.0 [18:54:06]Method: POST [18:54:06]URL: /json_proto [18:54:06]Method is POST - this is cgi request [18:54:06]url: /json_proto [18:54:06]query_string will be loaded in cgi processing [18:54:06]execute_cgi json_proto POST (null) [18:54:06]execute_cgi path=json_proto method=POST [18:54:06]POST find Content-Length [18:54:06]Host: 172.17.45.7:8080 [18:54:06]Content-Length: 1187 [18:54:06]Content-Type: application/json [18:54:06] [18:54:06]POST finish read [18:54:06]Found Content-Length = 1187 [18:54:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949770\u000A29.07.2024 18:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A29814\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:06]execute_script... [18:54:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949770\u000A29.07.2024 18:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A29814\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:06]POST & json_proto [18:54:06]process_json_proto [18:54:06]json parsed OK: [18:54:06]protocol is kg_v1.0 [18:54:06]action value=print_text [18:54:06]process_action print_text [18:54:06]cmd_print_text [18:54:06]ExternCall_PrintAddStr [18:54:06]wPrintStart [18:54:06]Write to MH i2c: 01 00 00 2B 74 9F [18:54:06]Write i2c OK [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: 01 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: 01 07 00 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: 01 07 00 2B 74 00 00 00 00 00 FF 0F B4 [18:54:06]RasterBufferAndPrint [18:54:06]line *****ТОВАРНЫЙ ЧЕК***** [18:54:06]line АЗС-134 [18:54:06]line Партнер нефть [18:54:06]line 02508201610067 [18:54:06]line Кассир : Казаков Ч. [18:54:06]line Счет N : (1)949770 [18:54:06]line 29.07.2024 18:51 [18:54:06]line ПРОДАЖА [18:54:06]line ТРК (МРК, ГНК): 21 [18:54:06]line Вид ГСМ : 2710194800 [18:54:06]line ДТ-К-5 [18:54:06]line 100.000 x 76.20 [18:54:06]line ИТОГ: 7620.00 [18:54:06]line Тип оплаты: Талоны: Топливная Карта [18:54:06]line 29814 [18:54:06]line ______________________ [18:54:06]line (подпись) [18:54:06]written 0, free lines is 4095 [18:54:06]Write to MH i2c: 01 00 00 3F 74 B3 [18:54:06]Write i2c OK [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: 01 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: 01 07 00 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: 01 07 00 3F 74 00 00 00 00 00 0F 0E D7 [18:54:06]RasterBufferAndPrint [18:54:06]line [18:54:06]line [18:54:06]line [18:54:06]line [18:54:06]line [18:54:06]written 0, free lines is 3601 [18:54:06]MH_Cut [18:54:06]Write to MH i2c: D1 01 00 46 74 01 8C [18:54:06]Write i2c OK [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: D1 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: D1 01 00 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: D1 01 00 46 74 00 8B [18:54:06]Write to MH i2c: 01 00 00 47 74 BB [18:54:06]Write i2c OK [18:54:06]MH_I2C_Read... [18:54:07]*** Cut start [18:54:07]*** Partial cut [18:54:07]*** CUTSNS_PIN = 1 [18:54:07]*** CUTSNS_PIN = 0 [18:54:07]*** Brake cut motor [18:54:07]Read from MH i2c: 01 [18:54:07]MH_I2C_Read... [18:54:07]*** Stop cut motor [18:54:07]*** Cut end [18:54:07]Read from MH i2c: 01 07 00 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: 01 07 00 47 74 00 00 00 00 00 FF 0F D0 [18:54:07]process_action print_text done [18:54:07]requested_data is exist [18:54:07]produce_requested_data [18:54:07]requested_item fm.sn is exist - process it [18:54:07]wFMCommunicate request_size=4 [18:54:07]MH_SAM_APDU [18:54:07]CAPDU: 80 11 00 00 [18:54:07]Write to MH i2c: E2 08 00 48 74 80 11 00 00 00 00 00 00 36 [18:54:07]Write i2c OK [18:54:07]MH_I2C_Read... [18:54:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:07]Read from MH i2c: E2 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 17 00 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 17 00 48 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 91 [18:54:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:54:07]wFMCommunicate OK [18:54:07]requested_item fd.num is exist - process it [18:54:07]SAM_PROTO_GetFieldsCounters [18:54:07]wFMCommunicate request_size=4 [18:54:07]MH_SAM_APDU [18:54:07]CAPDU: 80 13 00 00 [18:54:07]Write to MH i2c: E2 08 00 49 74 80 13 00 00 00 00 00 00 39 [18:54:07]Write i2c OK [18:54:07]MH_I2C_Read... [18:54:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:08]Read from MH i2c: E2 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: E2 62 00 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: E2 62 00 49 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5F D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 41 [18:54: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5F D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:08]wFMCommunicate OK [18:54:08]SAM_PROTO_GetFieldsCounters done [18:54:08]requested_item shift.num is exist - process it [18:54:08]requested_item shift.opened is exist - process it [18:54:08]req_shift_opened [18:54:08]FM_GetShiftState [18:54:08]SAM_PROTO_GetShiftState [18:54:08]wFMCommunicate request_size=4 [18:54:08]MH_SAM_APDU [18:54:08]CAPDU: 80 13 01 00 [18:54:08]Write to MH i2c: E2 08 00 4A 74 80 13 01 00 00 00 00 00 3B [18:54:08]Write i2c OK [18:54:08]MH_I2C_Read... [18:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:08]Read from MH i2c: E2 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: E2 0E 00 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: E2 0E 00 4A 74 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 69 [18:54:08]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:54:08]wFMCommunicate OK [18:54:08]SAM_PROTO_GetShiftState done [18:54:08]FM_GetShiftState done [18:54:08]req_shift_opened done [18:54:08]requested_item shift.open_date is exist - process it [18:54:08]req_shift_open_date [18:54:08]req_shift_open_date done [18:54:08]produce_requested_data done [18:54:08]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118879,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:54:08]process_action_free print_text [18:54:08]json_value_free [18:54:08]json_value_free done [18:54:08]process_json_proto returns [18:54:08]Send response to host [18:54:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118879,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:54:08]free response buf [18:54:08]execute_script done [18:54:08]execute_script returns [18:54:08]free content buf [18:54:08]Sock 7.Close socket [18:54:08]Sock 7.Thread stoped [18:54:08]OFD Sender: No OFD packet to send [18:54:08]accept exits with 9 [18:54:08]New connection [18:54:08]New thread 3067383140 created [18:54:08]Thread 3067239780 joined [18:54:08]Waiting for new connection... [18:54:08] Sock 9.Parse request [18:54:08]Sock 9.Check first char [18:54:08]Sock 9.First char is OK [18:54:08]request: POST /json_proto HTTP/1.0 [18:54:08]Method: POST [18:54:08]URL: /json_proto [18:54:08]Method is POST - this is cgi request [18:54:08]url: /json_proto [18:54:08]query_string will be loaded in cgi processing [18:54:08]execute_cgi json_proto POST (null) [18:54:08]execute_cgi path=json_proto method=POST [18:54:08]POST find Content-Length [18:54:08]Host: 172.17.45.7:8080 [18:54:08]Content-Length: 835 [18:54:08]Content-Type: application/json [18:54:08] [18:54:08]POST finish read [18:54:08]Found Content-Length = 835 [18:54:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 45.020, "sum" : 3400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 3400.00, "payments": [ { "type": 1, "sum" : 3400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:08]execute_script... [18:54:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 45.020, "sum" : 3400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 3400.00, "payments": [ { "type": 1, "sum" : 3400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:08]POST & json_proto [18:54:08]process_json_proto [18:54:08]json parsed OK: [18:54:08]protocol is kg_v1.0 [18:54:08]action value=close_receipt [18:54:08]process_action close_receipt [18:54:08]cmd_close_receipt [18:54:08]MH_GetDate [18:54:08]Write to MH i2c: F0 00 00 4B 74 AE [18:54:08]Write i2c OK [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: F0 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: F0 09 00 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: F0 09 00 4B 74 00 57 E5 A7 66 90 0F 3E 66 43 [18:54:08]GetLastDocTimeStamp 1722279227 [18:54:08]current date 1722279255 [18:54:08]FM_GetShiftState [18:54:08]SAM_PROTO_GetShiftState [18:54:08]wFMCommunicate request_size=4 [18:54:08]MH_SAM_APDU [18:54:08]CAPDU: 80 13 01 00 [18:54:08]Write to MH i2c: E2 08 00 4C 74 80 13 01 00 00 00 00 00 3D [18:54:08]Write i2c OK [18:54:08]MH_I2C_Read... [18:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:08]Read from MH i2c: E2 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: E2 0E 00 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: E2 0E 00 4C 74 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 6B [18:54:08]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:54:08]wFMCommunicate OK [18:54:08]SAM_PROTO_GetShiftState done [18:54:08]FM_GetShiftState done [18:54:08]opened in 1722211641 [18:54:08]opened+sec_in_day 1722298041 [18:54:08]quantity*price = 340036 [18:54:08]sum+1 = 340037 [18:54:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 3400.00 НСП 1% : 30.09 НДС 12% : 361.10 Наличными: 0.00 Безнал.: 3400.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 256 29.07.2024 18:54 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 118880 ФПД: 27467282359970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T185415&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118880&fm=27467282359970&tin=02508201610067®Number=0000000000092660&sum=340000 [18:54:09]StoreToDocumentArchive [18:54:09]shift 434 fd 118880 [18:54:09]save to /storage/0434/doc_00118880 [18:54:09]save last doc name /storage/0434/doc_00118880 to /storage/kkm_last_doc_name [18:54:09]save OK [18:54:09]Clear old archive folders... [18:54:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:54:09]tlvbuf is 01E4D0D0 [18:54:09]SAM_PROTO_ClearQueue [18:54:09]wFMCommunicate request_size=4 [18:54:09]MH_SAM_APDU [18:54:09]CAPDU: 80 09 00 00 [18:54:09]Write to MH i2c: E2 08 00 59 74 80 09 00 00 00 00 00 00 3F [18:54:09]Write i2c OK [18:54:09]MH_I2C_Read... [18:54:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:09]Read from MH i2c: E2 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 03 00 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 03 00 59 74 00 90 00 41 [18:54:09]RAPDU: 90 00 [18:54:09]wFMCommunicate OK [18:54:09]SAM_PROTO_ClearQueue done [18:54:09]KKMCreateOFDPacket [18:54:09]OFDProtocolAddRootSTLVToBuf [18:54:09]FM_MakeSignedData [18:54:09]FM_MakeSignedData [18:54:09]SAM_PROTO_SignData [18:54:09]wFMCommunicate request_size=4 [18:54:09]MH_SAM_APDU [18:54:09]CAPDU: 80 0D 01 02 [18:54:09]Write to MH i2c: E2 08 00 5A 74 80 0D 01 02 00 00 00 00 47 [18:54:09]Write i2c OK [18:54:09]MH_I2C_Read... [18:54:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:09]Read from MH i2c: E2 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 03 00 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 03 00 5A 74 00 90 00 42 [18:54:09]RAPDU: 90 00 [18:54:09]wFMCommunicate OK [18:54:09]wFMCommunicate request_size=255 [18:54:09]MH_SAM_APDU [18:54:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC AF 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 44 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 8D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 30 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 57 E5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 D0 01 00 35 04 06 00 18 FB 39 9B [18:54:09]Write to MH i2c: E2 02 01 5B 74 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC AF 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 44 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 8D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 30 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 57 E5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 D0 01 00 35 04 06 00 18 FB 39 9B 00 00 77 [18:54:09]Write i2c OK [18:54:09]MH_I2C_Read... [18:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:09]Read from MH i2c: E2 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 03 00 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 03 00 5B 74 00 90 00 43 [18:54:09]RAPDU: 90 00 [18:54:09]wFMCommunicate OK [18:54:09]wFMCommunicate request_size=7 [18:54:09]MH_SAM_APDU [18:54:09]CAPDU: 80 0D 02 02 02 A6 A2 [18:54:09]Write to MH i2c: E2 0A 00 5C 74 80 0D 02 02 02 00 A6 A2 00 00 96 [18:54:09]Write i2c OK [18:54:09]MH_I2C_Read... [18:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:10]Read from MH i2c: E2 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 03 00 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 03 00 5C 74 00 90 00 44 [18:54:10]RAPDU: 90 00 [18:54:10]wFMCommunicate OK [18:54:10]wFMCommunicate request_size=4 [18:54:10]MH_SAM_APDU [18:54:10]CAPDU: 80 0D 03 02 [18:54:10]Write to MH i2c: E2 08 00 5D 74 80 0D 03 02 00 00 00 00 4C [18:54:10]Write i2c OK [18:54:10]MH_I2C_Read... [18:54:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:10]Read from MH i2c: E2 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 0B 00 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 0B 00 5D 74 00 73 83 01 DF A1 7F 77 CD 90 00 87 [18:54:10]RAPDU: 73 83 01 DF A1 7F 77 CD 90 00 [18:54:10]wFMCommunicate OK [18:54:10]SAM_PROTO_SignData done [18:54:10]FM_MakeSignedData done [18:54:10]CreateOFDProtocolMessage [18:54:10]wFMCommunicate request_size=4 [18:54:10]MH_SAM_APDU [18:54:10]CAPDU: 80 11 00 00 [18:54:10]Write to MH i2c: E2 08 00 5E 74 80 11 00 00 00 00 00 00 4C [18:54:10]Write i2c OK [18:54:10]MH_I2C_Read... [18:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:10]Read from MH i2c: E2 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 17 00 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 17 00 5E 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A7 [18:54:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:54:10]wFMCommunicate OK [18:54:10]CreateOFDProtocolMessage done [18:54:10]OFDSenderStorePacket 118880 [18:54:10]StoreOFDPacket docnum=118880 [18:54:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F2 C9 04 01 9D 15 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC AF 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 44 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 8D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 30 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 57 E5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 D0 01 00 35 04 06 00 18 FB 39 9B A6 A2 73 83 01 DF A1 7F 77 CD [18:54:10]CheckFolder [18:54:10]dirname=/storage/ofd_packets [18:54:10]CheckFolder done [18:54:10]ProducePacketName [18:54:10]name=ofd_packets/00118880 [18:54:10]NVStorageSaveData ofd_packets/00118880 [18:54:10]File name is /storage/ofd_packets/00118880 [18:54:10]Write 298 bytes [18:54:10]NVStorageSaveData done [18:54:10]OFDSenderStorePacket done [18:54:10]KKMCreateOFDPacket done [18:54:10]NVStorageSaveData kkm_last_timestamp [18:54:10]File name is /storage/kkm_last_timestamp [18:54:10]Write 4 bytes [18:54:10]NVStorageSaveData done [18:54:10]ExternCall_PrintAddStr [18:54:10]wPrintStart [18:54:10]Write to MH i2c: 01 00 00 5F 74 D3 [18:54:10]OFD Sender: Processing packet 118880 [packets to send 86, broken 85] [18:54:10]ProducePacketName [18:54:10]name=ofd_packets/00118880 [18:54:10]Write i2c OK [18:54:10]MH_I2C_Read... [18:54:10]OFD Sender: To server: pG, [18:54:10]CommunicateWithHost lk.salyk.kg:30040 [18:54:10]ConnectInit lk.salyk.kg [18:54:10]Read from MH i2c: 01 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: 01 07 00 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: 01 07 00 5F 74 00 00 00 00 00 FF 0F E8 [18:54:10]RasterBufferAndPrint [18:54:10]line Счет N : (1)949771 [18:54:10]line ИНН: 02508201610067 [18:54:10]line Контрольно-Кассовый Чек [18:54:10]line ПРОДАЖА [18:54:10]line ТРК (МРК, ГНК) : 54 [18:54:10]line Товар: 2710194800 [18:54:10]line ДТ-К-5 [18:54:10]line 45.020 * 75.53 [18:54:10]line = 3400.36 [18:54:10]line НДС 12% НСП 1% [18:54:10]line > о реализуемом товаре [18:54:10]line ОКРУГЛЕНИЕ: -0.36 [18:54:10]line ИТОГО: 3400.00 [18:54:10]line НСП 1% : 30.09 [18:54:10]line НДС 12% : 361.10 [18:54:10]line Наличными: 0.00 [18:54:10]line Безнал.: 3400.00 [18:54:10]line Место: АЗС № 134 "Партнер Нефть" [18:54:10]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:54:10]line СНО: Общий режим [18:54:10]line Чек 256 29.07.2024 18:54 [18:54:10]line Смена: 434 ФФД: 1.0 [18:54:10]line ЗНМ: 0300000044 [18:54:10]line РНМ: 0000000000092660 [18:54:10]line Версия ККМ: 001 [18:54:10]line Платежная система: Бакай Банк [18:54:10]line ФМ: 0000000000874939 [18:54:10]line ФД: 118880 [18:54:10]line ФПД: 27467282359970 [18:54:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T185415&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118880&fm=27467282359970&tin=02508201610067®Number=0000000000092660&sum=340000 [18:54:10]written 0, free lines is 4095 [18:54:10]Connected sock=11 [18:54:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F2 C9 04 01 9D 15 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC AF 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 44 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 8D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 30 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 57 E5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 D0 01 00 35 04 06 00 18 FB 39 9B A6 A2 73 83 01 DF A1 7F 77 CD [18:54:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 10 1D 47 00 0E 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 34 39 33 39 10 04 04 00 60 D0 01 00 F4 03 04 00 E4 92 A7 66 B6 04 01 00 00 4C 28 C0 61 2E C2 B5 0B [18:54:11]CommunicateWithHost err = 0 [18:54:11]CheckOFDResponse [18:54:11]1017 (14) - 77093643461234 [18:54:11]1041 (16) - 0000000000874939 [18:54:11]1040 (4) - 118880 [18:54:11]1012 (4) - 29.07.2024 13:02 [18:54:11]1206 (1) - 0 [18:54:11]OFD Sender: Remove packet 118880 [18:54:11]ProducePacketName [18:54:11]name=ofd_packets/00118880 [18:54:11]NVStorageDeleteData [18:54:11]Write to MH i2c: 01 00 00 89 74 FD [18:54:11]Write i2c OK [18:54:11]MH_I2C_Read... [18:54:11]Read from MH i2c: 01 [18:54:11]MH_I2C_Read... [18:54:11]Read from MH i2c: 01 07 00 [18:54:11]MH_I2C_Read... [18:54:11]Read from MH i2c: 01 07 00 89 74 00 00 00 00 00 10 0D 21 [18:54:11]RasterBufferAndPrint [18:54:11]line [18:54:11]line [18:54:11]line [18:54:11]line [18:54:11]line [18:54:11]written 0, free lines is 3353 [18:54:11]MH_Cut [18:54:11]Write to MH i2c: D1 01 00 90 74 01 D6 [18:54:11]Write i2c OK [18:54:11]MH_I2C_Read... [18:54:11]Read from MH i2c: D1 [18:54:11]MH_I2C_Read... [18:54:11]Read from MH i2c: D1 01 00 [18:54:11]MH_I2C_Read... [18:54:11]Read from MH i2c: D1 01 00 90 74 00 D5 [18:54:11]Write to MH i2c: 01 00 00 91 74 05 [18:54:11]Write i2c OK [18:54:11]MH_I2C_Read... [18:54:11]OFD Sender: No OFD packet to send [18:54:11]*** Cut start [18:54:11]*** Partial cut [18:54:11]*** CUTSNS_PIN = 1 [18:54:12]*** CUTSNS_PIN = 0 [18:54:12]*** Brake cut motor [18:54:12]Read from MH i2c: 01 [18:54:12]MH_I2C_Read... [18:54:12]*** Stop cut motor [18:54:12]*** Cut end [18:54:12]Read from MH i2c: 01 07 00 [18:54:12]MH_I2C_Read... [18:54:12]Read from MH i2c: 01 07 00 91 74 00 00 00 00 00 FF 0F 1A [18:54:12]process_action close_receipt done [18:54:12]requested_data is exist [18:54:12]produce_requested_data [18:54:12]requested_item fm.sn is exist - process it [18:54:12]wFMCommunicate request_size=4 [18:54:12]MH_SAM_APDU [18:54:12]CAPDU: 80 11 00 00 [18:54:12]Write to MH i2c: E2 08 00 92 74 80 11 00 00 00 00 00 00 80 [18:54:12]Write i2c OK [18:54:12]MH_I2C_Read... [18:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:12]Read from MH i2c: E2 [18:54:12]MH_I2C_Read... [18:54:12]Read from MH i2c: E2 17 00 [18:54:12]MH_I2C_Read... [18:54:12]Read from MH i2c: E2 17 00 92 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DB [18:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:54:12]wFMCommunicate OK [18:54:12]requested_item fd.num is exist - process it [18:54:12]SAM_PROTO_GetFieldsCounters [18:54:12]wFMCommunicate request_size=4 [18:54:12]MH_SAM_APDU [18:54:12]CAPDU: 80 13 00 00 [18:54:12]Write to MH i2c: E2 08 00 93 74 80 13 00 00 00 00 00 00 83 [18:54:12]Write i2c OK [18:54:12]MH_I2C_Read... [18:54:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:12]Read from MH i2c: E2 [18:54:12]MH_I2C_Read... [18:54:12]Read from MH i2c: E2 62 00 [18:54:12]MH_I2C_Read... [18:54:12]Read from MH i2c: E2 62 00 93 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 60 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 91 [18:54: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 60 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:12]wFMCommunicate OK [18:54:12]SAM_PROTO_GetFieldsCounters done [18:54:12]requested_item shift.num is exist - process it [18:54:12]requested_item shift.opened is exist - process it [18:54:12]req_shift_opened [18:54:12]FM_GetShiftState [18:54:12]SAM_PROTO_GetShiftState [18:54:12]wFMCommunicate request_size=4 [18:54:12]MH_SAM_APDU [18:54:12]CAPDU: 80 13 01 00 [18:54:12]Write to MH i2c: E2 08 00 94 74 80 13 01 00 00 00 00 00 85 [18:54:12]Write i2c OK [18:54:12]MH_I2C_Read... [18:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:12]Read from MH i2c: E2 [18:54:12]MH_I2C_Read... [18:54:12]Read from MH i2c: E2 0E 00 [18:54:12]MH_I2C_Read... [18:54:12]Read from MH i2c: E2 0E 00 94 74 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B3 [18:54:12]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:54:12]wFMCommunicate OK [18:54:12]SAM_PROTO_GetShiftState done [18:54:12]FM_GetShiftState done [18:54:12]req_shift_opened done [18:54:12]requested_item shift.open_date is exist - process it [18:54:12]req_shift_open_date [18:54:12]req_shift_open_date done [18:54:12]produce_requested_data done [18:54:12]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118880,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:54:12]process_action_free close_receipt [18:54:12]json_value_free [18:54:12]json_value_free done [18:54:12]process_json_proto returns [18:54:12]Send response to host [18:54:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118880,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:54:12]free response buf [18:54:12]execute_script done [18:54:12]execute_script returns [18:54:12]free content buf [18:54:12]Sock 9.Close socket [18:54:12]Sock 9.Thread stoped [18:54:15]accept exits with 7 [18:54:15]New connection [18:54:15]New thread 3067239780 created [18:54:15]Thread 3067383140 joined [18:54:15]Waiting for new connection... [18:54:15] Sock 7.Parse request [18:54:15]Sock 7.Check first char [18:54:15]Sock 7.First char is OK [18:54:15]request: POST /json_proto HTTP/1.0 [18:54:15]Method: POST [18:54:15]URL: /json_proto [18:54:15]Method is POST - this is cgi request [18:54:15]url: /json_proto [18:54:15]query_string will be loaded in cgi processing [18:54:15]execute_cgi json_proto POST (null) [18:54:15]execute_cgi path=json_proto method=POST [18:54:15]POST find Content-Length [18:54:15]Host: 172.17.45.7:8080 [18:54:15]Content-Length: 1187 [18:54:15]Content-Type: application/json [18:54:15] [18:54:15]POST finish read [18:54:15]Found Content-Length = 1187 [18:54:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949769\u000A29.07.2024 18:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A29814\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:15]execute_script... [18:54:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949769\u000A29.07.2024 18:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A29814\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:15]POST & json_proto [18:54:15]process_json_proto [18:54:15]json parsed OK: [18:54:15]protocol is kg_v1.0 [18:54:15]action value=print_text [18:54:15]process_action print_text [18:54:15]cmd_print_text [18:54:15]ExternCall_PrintAddStr [18:54:15]wPrintStart [18:54:15]Write to MH i2c: 01 00 00 95 74 09 [18:54:15]Write i2c OK [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: 01 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: 01 07 00 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: 01 07 00 95 74 00 00 00 00 00 FF 0F 1E [18:54:15]RasterBufferAndPrint [18:54:15]line *****ТОВАРНЫЙ ЧЕК***** [18:54:15]line АЗС-134 [18:54:15]line Партнер нефть [18:54:15]line 02508201610067 [18:54:15]line Кассир : Казаков Ч. [18:54:15]line Счет N : (1)949769 [18:54:15]line 29.07.2024 18:52 [18:54:15]line ПРОДАЖА [18:54:15]line ТРК (МРК, ГНК): 11 [18:54:15]line Вид ГСМ : 2710194800 [18:54:15]line ДТ-К-5 [18:54:15]line 100.000 x 76.20 [18:54:15]line ИТОГ: 7620.00 [18:54:15]line Тип оплаты: Талоны: Топливная Карта [18:54:15]line 29814 [18:54:15]line ______________________ [18:54:15]line (подпись) [18:54:15]written 0, free lines is 4095 [18:54:15]Write to MH i2c: 01 00 00 A9 74 1D [18:54:15]Write i2c OK [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: 01 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: 01 07 00 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: 01 07 00 A9 74 00 00 00 00 00 10 0E 42 [18:54:15]RasterBufferAndPrint [18:54:15]line [18:54:15]line [18:54:15]line [18:54:15]line [18:54:15]line [18:54:15]written 0, free lines is 3605 [18:54:15]MH_Cut [18:54:15]Write to MH i2c: D1 01 00 B0 74 01 F6 [18:54:15]Write i2c OK [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: D1 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: D1 01 00 [18:54:15]MH_I2C_Read... [18:54:15]Read from MH i2c: D1 01 00 B0 74 00 F5 [18:54:15]Write to MH i2c: 01 00 00 B1 74 25 [18:54:15]Write i2c OK [18:54:15]MH_I2C_Read... [18:54:16]*** Cut start [18:54:16]*** Partial cut [18:54:16]*** CUTSNS_PIN = 1 [18:54:16]*** CUTSNS_PIN = 0 [18:54:16]OFD Sender: No OFD packet to send [18:54:16]*** Brake cut motor [18:54:17]Read from MH i2c: 01 [18:54:17]MH_I2C_Read... [18:54:17]*** Stop cut motor [18:54:17]*** Cut end [18:54:17]Read from MH i2c: 01 07 00 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: 01 07 00 B1 74 00 00 00 00 00 FF 0F 3A [18:54:17]process_action print_text done [18:54:17]requested_data is exist [18:54:17]produce_requested_data [18:54:17]requested_item fm.sn is exist - process it [18:54:17]wFMCommunicate request_size=4 [18:54:17]MH_SAM_APDU [18:54:17]CAPDU: 80 11 00 00 [18:54:17]Write to MH i2c: E2 08 00 B2 74 80 11 00 00 00 00 00 00 A0 [18:54:17]Write i2c OK [18:54:17]MH_I2C_Read... [18:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:17]Read from MH i2c: E2 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 17 00 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 17 00 B2 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FB [18:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:54:17]wFMCommunicate OK [18:54:17]requested_item fd.num is exist - process it [18:54:17]SAM_PROTO_GetFieldsCounters [18:54:17]wFMCommunicate request_size=4 [18:54:17]MH_SAM_APDU [18:54:17]CAPDU: 80 13 00 00 [18:54:17]Write to MH i2c: E2 08 00 B3 74 80 13 00 00 00 00 00 00 A3 [18:54:17]Write i2c OK [18:54:17]MH_I2C_Read... [18:54:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:17]Read from MH i2c: E2 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 62 00 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 62 00 B3 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 60 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 B1 [18:54: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 60 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:17]wFMCommunicate OK [18:54:17]SAM_PROTO_GetFieldsCounters done [18:54:17]requested_item shift.num is exist - process it [18:54:17]requested_item shift.opened is exist - process it [18:54:17]req_shift_opened [18:54:17]FM_GetShiftState [18:54:17]SAM_PROTO_GetShiftState [18:54:17]wFMCommunicate request_size=4 [18:54:17]MH_SAM_APDU [18:54:17]CAPDU: 80 13 01 00 [18:54:17]Write to MH i2c: E2 08 00 B4 74 80 13 01 00 00 00 00 00 A5 [18:54:17]Write i2c OK [18:54:17]MH_I2C_Read... [18:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:17]Read from MH i2c: E2 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 0E 00 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 0E 00 B4 74 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D3 [18:54:17]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:54:17]wFMCommunicate OK [18:54:17]SAM_PROTO_GetShiftState done [18:54:17]FM_GetShiftState done [18:54:17]req_shift_opened done [18:54:17]requested_item shift.open_date is exist - process it [18:54:17]req_shift_open_date [18:54:17]req_shift_open_date done [18:54:17]produce_requested_data done [18:54:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118880,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:54:17]process_action_free print_text [18:54:17]json_value_free [18:54:17]json_value_free done [18:54:17]process_json_proto returns [18:54:17]Send response to host [18:54:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118880,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:54:17]free response buf [18:54:17]execute_script done [18:54:17]execute_script returns [18:54:17]free content buf [18:54:17]Sock 7.Close socket [18:54:17]Sock 7.Thread stoped [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:23]accept exits with 9 [18:55:23]New connection [18:55:23]New thread 3067383140 created [18:55:23]Thread 3067239780 joined [18:55:23]Waiting for new connection... [18:55:23] Sock 9.Parse request [18:55:23]Sock 9.Check first char [18:55:23]Sock 9.First char is OK [18:55:23]request: POST /json_proto HTTP/1.0 [18:55:23]Method: POST [18:55:23]URL: /json_proto [18:55:23]Method is POST - this is cgi request [18:55:23]url: /json_proto [18:55:23]query_string will be loaded in cgi processing [18:55:23]execute_cgi json_proto POST (null) [18:55:23]execute_cgi path=json_proto method=POST [18:55:23]POST find Content-Length [18:55:23]Host: 172.17.45.7:8080 [18:55:23]Content-Length: 819 [18:55:23]Content-Type: application/json [18:55:23] [18:55:23]POST finish read [18:55:23]Found Content-Length = 819 [18:55:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:23]execute_script... [18:55:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:23]POST & json_proto [18:55:23]process_json_proto [18:55:23]json parsed OK: [18:55:23]protocol is kg_v1.0 [18:55:23]action value=close_receipt [18:55:23]process_action close_receipt [18:55:23]cmd_close_receipt [18:55:23]MH_GetDate [18:55:23]Write to MH i2c: F0 00 00 B5 74 18 [18:55:23]Write i2c OK [18:55:23]MH_I2C_Read... [18:55:23]Read from MH i2c: F0 [18:55:23]MH_I2C_Read... [18:55:23]Read from MH i2c: F0 09 00 [18:55:23]MH_I2C_Read... [18:55:23]Read from MH i2c: F0 09 00 B5 74 00 A2 E5 A7 66 90 0F 3E 66 F8 [18:55:23]GetLastDocTimeStamp 1722279255 [18:55:23]current date 1722279330 [18:55:23]FM_GetShiftState [18:55:23]SAM_PROTO_GetShiftState [18:55:23]wFMCommunicate request_size=4 [18:55:23]MH_SAM_APDU [18:55:23]CAPDU: 80 13 01 00 [18:55:23]Write to MH i2c: E2 08 00 B6 74 80 13 01 00 00 00 00 00 A7 [18:55:23]Write i2c OK [18:55:23]MH_I2C_Read... [18:55:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:23]Read from MH i2c: E2 [18:55:23]MH_I2C_Read... [18:55:23]Read from MH i2c: E2 0E 00 [18:55:23]MH_I2C_Read... [18:55:23]Read from MH i2c: E2 0E 00 B6 74 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D5 [18:55:23]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:55:23]wFMCommunicate OK [18:55:23]SAM_PROTO_GetShiftState done [18:55:23]FM_GetShiftState done [18:55:23]opened in 1722211641 [18:55:23]opened+sec_in_day 1722298041 [18:55:23]quantity*price = 200025 [18:55:23]sum+1 = 200026 [18:55:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 257 29.07.2024 18:55 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118881 ФПД: 75853445745557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T185530&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118881&fm=75853445745557&tin=02508201610067®Number=0000000000092660&sum=200000 [18:55:24]StoreToDocumentArchive [18:55:24]shift 434 fd 118881 [18:55:24]save to /storage/0434/doc_00118881 [18:55:24]save last doc name /storage/0434/doc_00118881 to /storage/kkm_last_doc_name [18:55:24]save OK [18:55:24]Clear old archive folders... [18:55:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:55:24]tlvbuf is 01E47840 [18:55:24]SAM_PROTO_ClearQueue [18:55:24]wFMCommunicate request_size=4 [18:55:24]MH_SAM_APDU [18:55:24]CAPDU: 80 09 00 00 [18:55:24]Write to MH i2c: E2 08 00 C3 74 80 09 00 00 00 00 00 00 A9 [18:55:24]Write i2c OK [18:55:24]MH_I2C_Read... [18:55:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:24]Read from MH i2c: E2 [18:55:24]MH_I2C_Read... [18:55:24]Read from MH i2c: E2 03 00 [18:55:24]MH_I2C_Read... [18:55:24]Read from MH i2c: E2 03 00 C3 74 00 90 00 AB [18:55:24]RAPDU: 90 00 [18:55:24]wFMCommunicate OK [18:55:24]SAM_PROTO_ClearQueue done [18:55:24]KKMCreateOFDPacket [18:55:24]OFDProtocolAddRootSTLVToBuf [18:55:24]FM_MakeSignedData [18:55:24]FM_MakeSignedData [18:55:24]SAM_PROTO_SignData [18:55:24]wFMCommunicate request_size=4 [18:55:24]MH_SAM_APDU [18:55:24]CAPDU: 80 0D 01 02 [18:55:24]Write to MH i2c: E2 08 00 C4 74 80 0D 01 02 00 00 00 00 B1 [18:55:25]Write i2c OK [18:55:25]MH_I2C_Read... [18:55:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:25]Read from MH i2c: E2 [18:55:25]MH_I2C_Read... [18:55:25]Read from MH i2c: E2 03 00 [18:55:25]MH_I2C_Read... [18:55:25]Read from MH i2c: E2 03 00 C4 74 00 90 00 AC [18:55:25]RAPDU: 90 00 [18:55:25]wFMCommunicate OK [18:55:25]wFMCommunicate request_size=255 [18:55:25]MH_SAM_APDU [18:55:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 A2 E5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 D0 01 00 35 04 06 00 44 FD 01 B0 [18:55:25]Write to MH i2c: E2 02 01 C5 74 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 A2 E5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 D0 01 00 35 04 06 00 44 FD 01 B0 00 00 9C [18:55:25]Write i2c OK [18:55:25]MH_I2C_Read... [18:55:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:25]Read from MH i2c: E2 [18:55:25]MH_I2C_Read... [18:55:25]Read from MH i2c: E2 03 00 [18:55:25]MH_I2C_Read... [18:55:25]Read from MH i2c: E2 03 00 C5 74 00 90 00 AD [18:55:25]RAPDU: 90 00 [18:55:25]wFMCommunicate OK [18:55:25]wFMCommunicate request_size=7 [18:55:25]MH_SAM_APDU [18:55:25]CAPDU: 80 0D 02 02 02 4B 95 [18:55:25]Write to MH i2c: E2 0A 00 C6 74 80 0D 02 02 02 00 4B 95 00 00 98 [18:55:25]Write i2c OK [18:55:25]MH_I2C_Read... [18:55:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:25]Read from MH i2c: E2 [18:55:25]MH_I2C_Read... [18:55:25]Read from MH i2c: E2 03 00 [18:55:25]MH_I2C_Read... [18:55:25]Read from MH i2c: E2 03 00 C6 74 00 90 00 AE [18:55:25]RAPDU: 90 00 [18:55:25]wFMCommunicate OK [18:55:25]wFMCommunicate request_size=4 [18:55:25]MH_SAM_APDU [18:55:25]CAPDU: 80 0D 03 02 [18:55:25]Write to MH i2c: E2 08 00 C7 74 80 0D 03 02 00 00 00 00 B6 [18:55:25]Write i2c OK [18:55:25]MH_I2C_Read... [18:55:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:25]Read from MH i2c: E2 [18:55:25]MH_I2C_Read... [18:55:25]Read from MH i2c: E2 0B 00 [18:55:25]MH_I2C_Read... [18:55:25]Read from MH i2c: E2 0B 00 C7 74 00 E0 BF 35 93 4E 79 CD 63 90 00 15 [18:55:25]RAPDU: E0 BF 35 93 4E 79 CD 63 90 00 [18:55:25]wFMCommunicate OK [18:55:25]SAM_PROTO_SignData done [18:55:25]FM_MakeSignedData done [18:55:25]CreateOFDProtocolMessage [18:55:25]wFMCommunicate request_size=4 [18:55:25]MH_SAM_APDU [18:55:25]CAPDU: 80 11 00 00 [18:55:25]Write to MH i2c: E2 08 00 C8 74 80 11 00 00 00 00 00 00 B6 [18:55:25]Write i2c OK [18:55:25]MH_I2C_Read... [18:55:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:25]Read from MH i2c: E2 [18:55:25]MH_I2C_Read... [18:55:25]Read from MH i2c: E2 17 00 [18:55:25]MH_I2C_Read... [18:55:25]Read from MH i2c: E2 17 00 C8 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 11 [18:55:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:55:25]wFMCommunicate OK [18:55:25]CreateOFDProtocolMessage done [18:55:25]OFDSenderStorePacket 118881 [18:55:25]StoreOFDPacket docnum=118881 [18:55:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 29 59 04 01 3C 3F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 A2 E5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 D0 01 00 35 04 06 00 44 FD 01 B0 4B 95 E0 BF 35 93 4E 79 CD 63 [18:55:25]CheckFolder [18:55:25]dirname=/storage/ofd_packets [18:55:25]CheckFolder done [18:55:25]ProducePacketName [18:55:25]name=ofd_packets/00118881 [18:55:25]NVStorageSaveData ofd_packets/00118881 [18:55:25]File name is /storage/ofd_packets/00118881 [18:55:25]Write 298 bytes [18:55:25]NVStorageSaveData done [18:55:25]OFDSenderStorePacket done [18:55:25]KKMCreateOFDPacket done [18:55:25]NVStorageSaveData kkm_last_timestamp [18:55:25]File name is /storage/kkm_last_timestamp [18:55:25]Write 4 bytes [18:55:25]NVStorageSaveData done [18:55:25]ExternCall_PrintAddStr [18:55:25]wPrintStart [18:55:25]Write to MH i2c: 01 00 00 C9 74 3D [18:55:25]Write i2c OK [18:55:25]MH_I2C_Read... [18:55:25]Read from MH i2c: 01 [18:55:25]MH_I2C_Read... [18:55:25]Read from MH i2c: 01 07 00 [18:55:25]MH_I2C_Read... [18:55:25]Read from MH i2c: 01 07 00 C9 74 00 00 00 00 00 FF 0F 52 [18:55:25]RasterBufferAndPrint [18:55:25]line Счет N : (1)949773 [18:55:25]line ИНН: 02508201610067 [18:55:25]line Контрольно-Кассовый Чек [18:55:25]line ПРОДАЖА [18:55:25]line ТРК (МРК, ГНК) : 11 [18:55:25]line Товар: 2710194800 [18:55:25]line ДТ-К-5 [18:55:25]line 26.250 * 76.20 [18:55:25]line = 2000.25 [18:55:25]line НДС 12% НСП 1% [18:55:25]line > о реализуемом товаре [18:55:25]line ОКРУГЛЕНИЕ: -0.25 [18:55:25]line ИТОГО: 2000.00 [18:55:25]line НСП 1% : 17.70 [18:55:25]line НДС 12% : 212.42 [18:55:25]line Наличными: 0.00 [18:55:25]line Безнал.: 2000.00 [18:55:25]line Место: АЗС № 134 "Партнер Нефть" [18:55:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:55:25]line СНО: Общий режим [18:55:25]line Чек 257 29.07.2024 18:55 [18:55:25]line Смена: 434 ФФД: 1.0 [18:55:25]line ЗНМ: 0300000044 [18:55:25]line РНМ: 0000000000092660 [18:55:25]line Версия ККМ: 001 [18:55:25]line Платежная система: O! деньги [18:55:25]line ФМ: 0000000000874939 [18:55:25]line ФД: 118881 [18:55:25]line ФПД: 75853445745557 [18:55:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T185530&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118881&fm=75853445745557&tin=02508201610067®Number=0000000000092660&sum=200000 [18:55:25]OFD Sender: Processing packet 118881 [packets to send 86, broken 85] [18:55:25]ProducePacketName [18:55:25]name=ofd_packets/00118881 [18:55:25]OFD Sender: To server: pG, [18:55:25]CommunicateWithHost lk.salyk.kg:30040 [18:55:25]ConnectInit lk.salyk.kg [18:55:25]written 0, free lines is 4095 [18:55:25]Connected sock=10 [18:55:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 29 59 04 01 3C 3F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 A2 E5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 D0 01 00 35 04 06 00 44 FD 01 B0 4B 95 E0 BF 35 93 4E 79 CD 63 [18:55:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 67 A3 47 00 BC 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 34 39 33 39 10 04 04 00 61 D0 01 00 F4 03 04 00 2F 93 A7 66 B6 04 01 00 00 62 EF 9F 5C B3 C8 1B DC [18:55:26]CommunicateWithHost err = 0 [18:55:26]CheckOFDResponse [18:55:26]1017 (14) - 77093643461234 [18:55:26]1041 (16) - 0000000000874939 [18:55:26]1040 (4) - 118881 [18:55:26]1012 (4) - 29.07.2024 13:03 [18:55:26]1206 (1) - 0 [18:55:26]OFD Sender: Remove packet 118881 [18:55:26]ProducePacketName [18:55:26]name=ofd_packets/00118881 [18:55:26]NVStorageDeleteData [18:55:26]Write to MH i2c: 01 00 00 F3 74 67 [18:55:26]Write i2c OK [18:55:26]MH_I2C_Read... [18:55:26]Read from MH i2c: 01 [18:55:26]MH_I2C_Read... [18:55:26]Read from MH i2c: 01 07 00 [18:55:26]MH_I2C_Read... [18:55:26]Read from MH i2c: 01 07 00 F3 74 00 00 00 00 00 DC 0C 56 [18:55:26]RasterBufferAndPrint [18:55:26]line [18:55:26]line [18:55:26]line [18:55:26]line [18:55:26]line [18:55:26]written 0, free lines is 3298 [18:55:26]MH_Cut [18:55:26]Write to MH i2c: D1 01 00 FA 74 01 40 [18:55:26]Write i2c OK [18:55:26]MH_I2C_Read... [18:55:26]Read from MH i2c: D1 [18:55:26]MH_I2C_Read... [18:55:26]Read from MH i2c: D1 01 00 [18:55:26]MH_I2C_Read... [18:55:26]Read from MH i2c: D1 01 00 FA 74 00 3F [18:55:26]Write to MH i2c: 01 00 00 FB 74 6F [18:55:26]Write i2c OK [18:55:26]MH_I2C_Read... [18:55:26]OFD Sender: No OFD packet to send [18:55:26]*** Cut start [18:55:26]*** Partial cut [18:55:26]*** CUTSNS_PIN = 1 [18:55:27]*** CUTSNS_PIN = 0 [18:55:27]*** Brake cut motor [18:55:27]Read from MH i2c: 01 [18:55:27]MH_I2C_Read... [18:55:27]*** Stop cut motor [18:55:27]*** Cut end [18:55:27]Read from MH i2c: 01 07 00 [18:55:27]MH_I2C_Read... [18:55:27]Read from MH i2c: 01 07 00 FB 74 00 00 00 00 00 FF 0F 84 [18:55:27]process_action close_receipt done [18:55:27]requested_data is exist [18:55:27]produce_requested_data [18:55:27]requested_item fm.sn is exist - process it [18:55:27]wFMCommunicate request_size=4 [18:55:27]MH_SAM_APDU [18:55:27]CAPDU: 80 11 00 00 [18:55:27]Write to MH i2c: E2 08 00 FC 74 80 11 00 00 00 00 00 00 EA [18:55:27]Write i2c OK [18:55:27]MH_I2C_Read... [18:55:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:27]Read from MH i2c: E2 [18:55:27]MH_I2C_Read... [18:55:27]Read from MH i2c: E2 17 00 [18:55:27]MH_I2C_Read... [18:55:27]Read from MH i2c: E2 17 00 FC 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 45 [18:55:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:55:27]wFMCommunicate OK [18:55:27]requested_item fd.num is exist - process it [18:55:27]SAM_PROTO_GetFieldsCounters [18:55:27]wFMCommunicate request_size=4 [18:55:27]MH_SAM_APDU [18:55:27]CAPDU: 80 13 00 00 [18:55:27]Write to MH i2c: E2 08 00 FD 74 80 13 00 00 00 00 00 00 ED [18:55:27]Write i2c OK [18:55:27]MH_I2C_Read... [18:55:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:27]Read from MH i2c: E2 [18:55:27]MH_I2C_Read... [18:55:27]Read from MH i2c: E2 62 00 [18:55:27]MH_I2C_Read... [18:55:27]Read from MH i2c: E2 62 00 FD 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 61 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 FF [18:55: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 61 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:55:27]wFMCommunicate OK [18:55:27]SAM_PROTO_GetFieldsCounters done [18:55:27]requested_item shift.num is exist - process it [18:55:27]requested_item shift.opened is exist - process it [18:55:27]req_shift_opened [18:55:27]FM_GetShiftState [18:55:27]SAM_PROTO_GetShiftState [18:55:27]wFMCommunicate request_size=4 [18:55:27]MH_SAM_APDU [18:55:27]CAPDU: 80 13 01 00 [18:55:27]Write to MH i2c: E2 08 00 FE 74 80 13 01 00 00 00 00 00 EF [18:55:27]Write i2c OK [18:55:27]MH_I2C_Read... [18:55:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:27]Read from MH i2c: E2 [18:55:27]MH_I2C_Read... [18:55:27]Read from MH i2c: E2 0E 00 [18:55:27]MH_I2C_Read... [18:55:27]Read from MH i2c: E2 0E 00 FE 74 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 1D [18:55:27]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:55:27]wFMCommunicate OK [18:55:27]SAM_PROTO_GetShiftState done [18:55:27]FM_GetShiftState done [18:55:27]req_shift_opened done [18:55:27]requested_item shift.open_date is exist - process it [18:55:27]req_shift_open_date [18:55:27]req_shift_open_date done [18:55:27]produce_requested_data done [18:55:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118881,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:55:27]process_action_free close_receipt [18:55:27]json_value_free [18:55:27]json_value_free done [18:55:27]process_json_proto returns [18:55:27]Send response to host [18:55:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118881,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:55:27]free response buf [18:55:27]execute_script done [18:55:27]execute_script returns [18:55:27]free content buf [18:55:27]Sock 9.Close socket [18:55:27]Sock 9.Thread stoped [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:15]int [18:56:15]Write to MH i2c: 01 00 00 FF 74 73 [18:56:15]*** FLAG_PRN_PAP1 set [18:56:15]Write i2c OK [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: 01 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: 01 07 00 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: 01 07 00 FF 74 00 01 00 00 00 FF 0F 89 [18:56:15]state=0 [18:56:15]No paper [18:56:15]int [18:56:15]Write to MH i2c: 01 00 00 00 75 75 [18:56:15]*** FLAG_PRN_PAP2 set [18:56:15]Write i2c OK [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: 01 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: 01 07 00 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: 01 07 00 00 75 00 03 00 00 00 FF 0F 8D [18:56:15]state=0 [18:56:15]No paper [18:56:15]Cover opened [18:56:16]int [18:56:16]Write to MH i2c: 01 00 00 01 75 76 [18:56:16]*** FLAG_PRN_PAP2 reset [18:56:16]Write i2c OK [18:56:16]MH_I2C_Read... [18:56:16]Read from MH i2c: 01 [18:56:16]MH_I2C_Read... [18:56:16]Read from MH i2c: 01 07 00 [18:56:16]MH_I2C_Read... [18:56:16]Read from MH i2c: 01 07 00 01 75 00 01 00 00 00 FF 0F 8C [18:56:16]state=3 [18:56:16]No paper [18:56:16]Cover closed [18:56:16]int [18:56:16]Write to MH i2c: 01 00 00 02 75 77 [18:56:16]*** FLAG_PRN_PAP2 set [18:56:16]Write i2c OK [18:56:16]MH_I2C_Read... [18:56:16]Read from MH i2c: 01 [18:56:16]MH_I2C_Read... [18:56:16]Read from MH i2c: 01 07 00 [18:56:16]MH_I2C_Read... [18:56:16]Read from MH i2c: 01 07 00 02 75 00 03 00 00 00 FF 0F 8F [18:56:16]state=0 [18:56:16]No paper [18:56:16]Cover opened [18:56:16]OFD Sender: No OFD packet to send [18:56:17]int [18:56:17]Write to MH i2c: 01 00 00 03 75 78 [18:56:17]*** FLAG_PRN_PAP2 reset [18:56:17]Write i2c OK [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: 01 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: 01 07 00 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: 01 07 00 03 75 00 01 00 00 00 FF 0F 8E [18:56:17]state=3 [18:56:17]No paper [18:56:17]Cover closed [18:56:17]int [18:56:17]Write to MH i2c: 01 00 00 04 75 79 [18:56:17]*** FLAG_PRN_PAP2 set [18:56:17]Write i2c OK [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: 01 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: 01 07 00 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: 01 07 00 04 75 00 03 00 00 00 FF 0F 91 [18:56:17]state=0 [18:56:17]No paper [18:56:17]Cover opened [18:56:21]OFD Sender: No OFD packet to send [18:56:22]int [18:56:22]Write to MH i2c: 01 00 00 05 75 7A [18:56:22]*** FLAG_PRN_PAP2 reset [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 05 75 00 01 00 00 00 FF 0F 90 [18:56:22]state=3 [18:56:22]No paper [18:56:22]Cover closed [18:56:22]int line is 0 - check status [18:56:22]Write to MH i2c: 01 00 00 06 75 7B [18:56:22]*** FLAG_PRN_PAP1 reset [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 06 75 00 00 00 00 00 FF 0F 90 [18:56:22]state=0 [18:56:22]int [18:56:22]Write to MH i2c: 01 00 00 07 75 7C [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 07 75 00 00 00 00 00 FF 0F 91 [18:56:22]state=0 [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:17]accept exits with 7 [18:58:17]New connection [18:58:17]New thread 3067239780 created [18:58:17]Thread 3067383140 joined [18:58:17]Waiting for new connection... [18:58:17] Sock 7.Parse request [18:58:17]Sock 7.Check first char [18:58:17]Sock 7.First char is OK [18:58:17]request: POST /json_proto HTTP/1.0 [18:58:17]Method: POST [18:58:17]URL: /json_proto [18:58:17]Method is POST - this is cgi request [18:58:17]url: /json_proto [18:58:17]query_string will be loaded in cgi processing [18:58:17]execute_cgi json_proto POST (null) [18:58:17]execute_cgi path=json_proto method=POST [18:58:17]POST find Content-Length [18:58:17]Host: 172.17.45.7:8080 [18:58:17]Content-Length: 674 [18:58:17]Content-Type: application/json [18:58:17] [18:58:17]POST finish read [18:58:17]Found Content-Length = 674 [18:58:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:17]execute_script... [18:58:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:17]POST & json_proto [18:58:17]process_json_proto [18:58:17]json parsed OK: [18:58:17]protocol is kg_v1.0 [18:58:17]action value=close_receipt [18:58:17]process_action close_receipt [18:58:17]cmd_close_receipt [18:58:17]MH_GetDate [18:58:17]Write to MH i2c: F0 00 00 08 75 6C [18:58:17]Write i2c OK [18:58:17]MH_I2C_Read... [18:58:17]Read from MH i2c: F0 [18:58:17]MH_I2C_Read... [18:58:17]Read from MH i2c: F0 09 00 [18:58:17]MH_I2C_Read... [18:58:17]Read from MH i2c: F0 09 00 08 75 00 50 E6 A7 66 90 0F 3E 66 FB [18:58:17]GetLastDocTimeStamp 1722279330 [18:58:17]current date 1722279504 [18:58:17]FM_GetShiftState [18:58:17]SAM_PROTO_GetShiftState [18:58:17]wFMCommunicate request_size=4 [18:58:17]MH_SAM_APDU [18:58:17]CAPDU: 80 13 01 00 [18:58:17]Write to MH i2c: E2 08 00 09 75 80 13 01 00 00 00 00 00 FB [18:58:17]Write i2c OK [18:58:17]MH_I2C_Read... [18:58:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:17]Read from MH i2c: E2 [18:58:17]MH_I2C_Read... [18:58:17]Read from MH i2c: E2 0E 00 [18:58:17]MH_I2C_Read... [18:58:17]Read from MH i2c: E2 0E 00 09 75 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 29 [18:58:17]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:58:17]wFMCommunicate OK [18:58:17]SAM_PROTO_GetShiftState done [18:58:17]FM_GetShiftState done [18:58:17]opened in 1722211641 [18:58:17]opened+sec_in_day 1722298041 [18:58:17]quantity*price = 70027 [18:58:17]sum+1 = 70029 [18:58:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 258 29.07.2024 18:58 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118882 ФПД: 51418021075821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T185824&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118882&fm=51418021075821&tin=02508201610067®Number=0000000000092660&sum=70000 [18:58:18]StoreToDocumentArchive [18:58:18]shift 434 fd 118882 [18:58:18]save to /storage/0434/doc_00118882 [18:58:18]save last doc name /storage/0434/doc_00118882 to /storage/kkm_last_doc_name [18:58:18]save OK [18:58:18]Clear old archive folders... [18:58:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:58:18]tlvbuf is 020F7330 [18:58:18]SAM_PROTO_ClearQueue [18:58:18]wFMCommunicate request_size=4 [18:58:18]MH_SAM_APDU [18:58:18]CAPDU: 80 09 00 00 [18:58:18]Write to MH i2c: E2 08 00 16 75 80 09 00 00 00 00 00 00 FD [18:58:18]Write i2c OK [18:58:18]MH_I2C_Read... [18:58:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:18]Read from MH i2c: E2 [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: E2 03 00 [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: E2 03 00 16 75 00 90 00 FF [18:58:18]RAPDU: 90 00 [18:58:18]wFMCommunicate OK [18:58:18]SAM_PROTO_ClearQueue done [18:58:18]KKMCreateOFDPacket [18:58:18]OFDProtocolAddRootSTLVToBuf [18:58:18]FM_MakeSignedData [18:58:18]FM_MakeSignedData [18:58:18]SAM_PROTO_SignData [18:58:18]wFMCommunicate request_size=4 [18:58:18]MH_SAM_APDU [18:58:18]CAPDU: 80 0D 01 02 [18:58:18]Write to MH i2c: E2 08 00 17 75 80 0D 01 02 00 00 00 00 05 [18:58:18]Write i2c OK [18:58:18]MH_I2C_Read... [18:58:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:18]Read from MH i2c: E2 [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: E2 03 00 [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: E2 03 00 17 75 00 90 00 00 [18:58:18]RAPDU: 90 00 [18:58:18]wFMCommunicate OK [18:58:18]wFMCommunicate request_size=255 [18:58:18]MH_SAM_APDU [18:58:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 50 E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 D0 01 00 35 04 06 00 2E C3 B0 E1 [18:58:18]Write to MH i2c: E2 02 01 18 75 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 50 E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 D0 01 00 35 04 06 00 2E C3 B0 E1 00 00 3F [18:58:18]Write i2c OK [18:58:18]MH_I2C_Read... [18:58:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:18]Read from MH i2c: E2 [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: E2 03 00 [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: E2 03 00 18 75 00 90 00 01 [18:58:18]RAPDU: 90 00 [18:58:18]wFMCommunicate OK [18:58:18]wFMCommunicate request_size=7 [18:58:18]MH_SAM_APDU [18:58:18]CAPDU: 80 0D 02 02 02 9B 6D [18:58:18]Write to MH i2c: E2 0A 00 19 75 80 0D 02 02 02 00 9B 6D 00 00 14 [18:58:18]Write i2c OK [18:58:18]MH_I2C_Read... [18:58:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:18]Read from MH i2c: E2 [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: E2 03 00 [18:58:18]MH_I2C_Read... [18:58:18]Read from MH i2c: E2 03 00 19 75 00 90 00 02 [18:58:18]RAPDU: 90 00 [18:58:18]wFMCommunicate OK [18:58:18]wFMCommunicate request_size=4 [18:58:18]MH_SAM_APDU [18:58:18]CAPDU: 80 0D 03 02 [18:58:18]Write to MH i2c: E2 08 00 1A 75 80 0D 03 02 00 00 00 00 0A [18:58:18]Write i2c OK [18:58:18]MH_I2C_Read... [18:58:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:19]Read from MH i2c: E2 [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: E2 0B 00 [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: E2 0B 00 1A 75 00 17 07 80 98 C9 13 0E D9 90 00 04 [18:58:19]RAPDU: 17 07 80 98 C9 13 0E D9 90 00 [18:58:19]wFMCommunicate OK [18:58:19]SAM_PROTO_SignData done [18:58:19]FM_MakeSignedData done [18:58:19]CreateOFDProtocolMessage [18:58:19]wFMCommunicate request_size=4 [18:58:19]MH_SAM_APDU [18:58:19]CAPDU: 80 11 00 00 [18:58:19]Write to MH i2c: E2 08 00 1B 75 80 11 00 00 00 00 00 00 0A [18:58:19]Write i2c OK [18:58:19]MH_I2C_Read... [18:58:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:19]Read from MH i2c: E2 [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: E2 17 00 [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: E2 17 00 1B 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 65 [18:58:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:58:19]wFMCommunicate OK [18:58:19]CreateOFDProtocolMessage done [18:58:19]OFDSenderStorePacket 118882 [18:58:19]StoreOFDPacket docnum=118882 [18:58:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 DB 34 04 01 B2 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 50 E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 D0 01 00 35 04 06 00 2E C3 B0 E1 9B 6D 17 07 80 98 C9 13 0E D9 [18:58:19]CheckFolder [18:58:19]dirname=/storage/ofd_packets [18:58:19]CheckFolder done [18:58:19]ProducePacketName [18:58:19]name=ofd_packets/00118882 [18:58:19]NVStorageSaveData ofd_packets/00118882 [18:58:19]File name is /storage/ofd_packets/00118882 [18:58:19]Write 298 bytes [18:58:19]NVStorageSaveData done [18:58:19]OFDSenderStorePacket done [18:58:19]KKMCreateOFDPacket done [18:58:19]NVStorageSaveData kkm_last_timestamp [18:58:19]File name is /storage/kkm_last_timestamp [18:58:19]Write 4 bytes [18:58:19]NVStorageSaveData done [18:58:19]ExternCall_PrintAddStr [18:58:19]wPrintStart [18:58:19]Write to MH i2c: 01 00 00 1C 75 91 [18:58:19]Write i2c OK [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: 01 [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: 01 07 00 [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: 01 07 00 1C 75 00 00 00 00 00 FF 0F A6 [18:58:19]RasterBufferAndPrint [18:58:19]line Счет N : (1)949774 [18:58:19]line ИНН: 02508201610067 [18:58:19]line Контрольно-Кассовый Чек [18:58:19]line ПРОДАЖА [18:58:19]line ТРК (МРК, ГНК) : 34 [18:58:19]line Товар: 2710194800 [18:58:19]line ДТ-К-5 [18:58:19]line 9.190 * 76.20 [18:58:19]line = 700.28 [18:58:19]line НДС 12% НСП 1% [18:58:19]line > о реализуемом товаре [18:58:19]line ОКРУГЛЕНИЕ: -0.28 [18:58:19]line ИТОГО: 700.00 [18:58:19]line Внесено: 700.00 [18:58:19]line СДАЧА: 0.00 [18:58:19]line НСП 1% : 6.20 [18:58:19]line НДС 12% : 74.37 [18:58:19]line Наличными: 700.00 [18:58:19]line Безнал.: 0.00 [18:58:19]line Место: АЗС № 134 "Партнер Нефть" [18:58:19]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:58:19]line СНО: Общий режим [18:58:19]line Чек 258 29.07.2024 18:58 [18:58:19]line Смена: 434 ФФД: 1.0 [18:58:19]line ЗНМ: 0300000044 [18:58:19]line РНМ: 0000000000092660 [18:58:19]line Версия ККМ: 001 [18:58:19]line ФМ: 0000000000874939 [18:58:19]line ФД: 118882 [18:58:19]line ФПД: 51418021075821 [18:58:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T185824&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118882&fm=51418021075821&tin=02508201610067®Number=0000000000092660&sum=70000 [18:58:19]OFD Sender: Processing packet 118882 [packets to send 86, broken 85] [18:58:19]ProducePacketName [18:58:19]name=ofd_packets/00118882 [18:58:19]OFD Sender: To server: pG, [18:58:19]CommunicateWithHost lk.salyk.kg:30040 [18:58:19]ConnectInit lk.salyk.kg [18:58:19]written 0, free lines is 4095 [18:58:19]Connected sock=10 [18:58:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 DB 34 04 01 B2 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 50 E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 D0 01 00 35 04 06 00 2E C3 B0 E1 9B 6D 17 07 80 98 C9 13 0E D9 [18:58:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C3 07 47 00 F1 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 D0 01 00 F4 03 04 00 DD 93 A7 66 B6 04 01 00 00 83 1C 39 57 2A B1 5D BD [18:58:19]CommunicateWithHost err = 0 [18:58:19]CheckOFDResponse [18:58:19]1017 (14) - 77093643461234 [18:58:19]1041 (16) - 0000000000874939 [18:58:19]1040 (4) - 118882 [18:58:19]1012 (4) - 29.07.2024 13:06 [18:58:19]1206 (1) - 0 [18:58:19]OFD Sender: Remove packet 118882 [18:58:19]ProducePacketName [18:58:19]name=ofd_packets/00118882 [18:58:19]NVStorageDeleteData [18:58:19]Write to MH i2c: 01 00 00 46 75 BB [18:58:19]Write i2c OK [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: 01 [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: 01 07 00 [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: 01 07 00 46 75 00 00 00 00 00 E9 0C B7 [18:58:19]RasterBufferAndPrint [18:58:19]line [18:58:19]line [18:58:19]line [18:58:19]line [18:58:19]line [18:58:19]written 0, free lines is 3311 [18:58:19]MH_Cut [18:58:19]Write to MH i2c: D1 01 00 4D 75 01 94 [18:58:19]Write i2c OK [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: D1 [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: D1 01 00 [18:58:19]MH_I2C_Read... [18:58:19]Read from MH i2c: D1 01 00 4D 75 00 93 [18:58:19]Write to MH i2c: 01 00 00 4E 75 C3 [18:58:19]Write i2c OK [18:58:19]MH_I2C_Read... [18:58:20]OFD Sender: No OFD packet to send [18:58:20]*** Cut start [18:58:20]*** Partial cut [18:58:20]*** CUTSNS_PIN = 1 [18:58:20]*** CUTSNS_PIN = 0 [18:58:20]*** Brake cut motor [18:58:21]Read from MH i2c: 01 [18:58:21]MH_I2C_Read... [18:58:21]*** Stop cut motor [18:58:21]*** Cut end [18:58:21]Read from MH i2c: 01 07 00 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: 01 07 00 4E 75 00 00 00 00 00 FF 0F D8 [18:58:21]process_action close_receipt done [18:58:21]requested_data is exist [18:58:21]produce_requested_data [18:58:21]requested_item fm.sn is exist - process it [18:58:21]wFMCommunicate request_size=4 [18:58:21]MH_SAM_APDU [18:58:21]CAPDU: 80 11 00 00 [18:58:21]Write to MH i2c: E2 08 00 4F 75 80 11 00 00 00 00 00 00 3E [18:58:21]Write i2c OK [18:58:21]MH_I2C_Read... [18:58:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:21]Read from MH i2c: E2 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: E2 17 00 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: E2 17 00 4F 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 99 [18:58:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:58:21]wFMCommunicate OK [18:58:21]requested_item fd.num is exist - process it [18:58:21]SAM_PROTO_GetFieldsCounters [18:58:21]wFMCommunicate request_size=4 [18:58:21]MH_SAM_APDU [18:58:21]CAPDU: 80 13 00 00 [18:58:21]Write to MH i2c: E2 08 00 50 75 80 13 00 00 00 00 00 00 41 [18:58:21]Write i2c OK [18:58:21]MH_I2C_Read... [18:58:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:21]Read from MH i2c: E2 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: E2 62 00 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: E2 62 00 50 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 62 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 57 [18:58: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 62 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:21]wFMCommunicate OK [18:58:21]SAM_PROTO_GetFieldsCounters done [18:58:21]requested_item shift.num is exist - process it [18:58:21]requested_item shift.opened is exist - process it [18:58:21]req_shift_opened [18:58:21]FM_GetShiftState [18:58:21]SAM_PROTO_GetShiftState [18:58:21]wFMCommunicate request_size=4 [18:58:21]MH_SAM_APDU [18:58:21]CAPDU: 80 13 01 00 [18:58:21]Write to MH i2c: E2 08 00 51 75 80 13 01 00 00 00 00 00 43 [18:58:21]Write i2c OK [18:58:21]MH_I2C_Read... [18:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:21]Read from MH i2c: E2 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: E2 0E 00 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: E2 0E 00 51 75 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 71 [18:58:21]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:58:21]wFMCommunicate OK [18:58:21]SAM_PROTO_GetShiftState done [18:58:21]FM_GetShiftState done [18:58:21]req_shift_opened done [18:58:21]requested_item shift.open_date is exist - process it [18:58:21]req_shift_open_date [18:58:21]req_shift_open_date done [18:58:21]produce_requested_data done [18:58:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118882,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:58:21]process_action_free close_receipt [18:58:21]json_value_free [18:58:21]json_value_free done [18:58:21]process_json_proto returns [18:58:21]Send response to host [18:58:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118882,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:58:21]free response buf [18:58:21]execute_script done [18:58:21]execute_script returns [18:58:21]free content buf [18:58:21]Sock 7.Close socket [18:58:21]Sock 7.Thread stoped [18:58:25]OFD Sender: No OFD packet to send [18:58:30]OFD Sender: No OFD packet to send [18:58:35]OFD Sender: No OFD packet to send [18:58:40]OFD Sender: No OFD packet to send [18:58:45]OFD Sender: No OFD packet to send [18:58:49]accept exits with 9 [18:58:49]New connection [18:58:49]New thread 3067383140 created [18:58:49]Thread 3067239780 joined [18:58:49]Waiting for new connection... [18:58:49] Sock 9.Parse request [18:58:49]Sock 9.Check first char [18:58:49]Sock 9.First char is OK [18:58:49]request: POST /json_proto HTTP/1.0 [18:58:49]Method: POST [18:58:49]URL: /json_proto [18:58:49]Method is POST - this is cgi request [18:58:49]url: /json_proto [18:58:49]query_string will be loaded in cgi processing [18:58:49]execute_cgi json_proto POST (null) [18:58:49]execute_cgi path=json_proto method=POST [18:58:49]POST find Content-Length [18:58:49]Host: 172.17.45.7:8080 [18:58:49]Content-Length: 677 [18:58:49]Content-Type: application/json [18:58:49] [18:58:49]POST finish read [18:58:49]Found Content-Length = 677 [18:58:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:49]execute_script... [18:58:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:49]POST & json_proto [18:58:49]process_json_proto [18:58:49]json parsed OK: [18:58:49]protocol is kg_v1.0 [18:58:49]action value=close_receipt [18:58:49]process_action close_receipt [18:58:49]cmd_close_receipt [18:58:49]MH_GetDate [18:58:49]Write to MH i2c: F0 00 00 52 75 B6 [18:58:49]Write i2c OK [18:58:49]MH_I2C_Read... [18:58:49]Read from MH i2c: F0 [18:58:49]MH_I2C_Read... [18:58:49]Read from MH i2c: F0 09 00 [18:58:49]MH_I2C_Read... [18:58:49]Read from MH i2c: F0 09 00 52 75 00 70 E6 A7 66 90 0F 3E 66 65 [18:58:49]GetLastDocTimeStamp 1722279504 [18:58:49]current date 1722279536 [18:58:49]FM_GetShiftState [18:58:49]SAM_PROTO_GetShiftState [18:58:49]wFMCommunicate request_size=4 [18:58:49]MH_SAM_APDU [18:58:49]CAPDU: 80 13 01 00 [18:58:49]Write to MH i2c: E2 08 00 53 75 80 13 01 00 00 00 00 00 45 [18:58:49]Write i2c OK [18:58:49]MH_I2C_Read... [18:58:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:49]Read from MH i2c: E2 [18:58:49]MH_I2C_Read... [18:58:49]Read from MH i2c: E2 0E 00 [18:58:49]MH_I2C_Read... [18:58:49]Read from MH i2c: E2 0E 00 53 75 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 73 [18:58:49]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:58:49]wFMCommunicate OK [18:58:49]SAM_PROTO_GetShiftState done [18:58:49]FM_GetShiftState done [18:58:49]opened in 1722211641 [18:58:49]opened+sec_in_day 1722298041 [18:58:49]quantity*price = 60003 [18:58:49]sum+1 = 60004 [18:58:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 259 29.07.2024 18:58 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118883 ФПД: 94596859370151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T185856&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118883&fm=94596859370151&tin=02508201610067®Number=0000000000092660&sum=60000 [18:58:50]StoreToDocumentArchive [18:58:50]shift 434 fd 118883 [18:58:50]save to /storage/0434/doc_00118883 [18:58:50]save last doc name /storage/0434/doc_00118883 to /storage/kkm_last_doc_name [18:58:50]save OK [18:58:50]Clear old archive folders... [18:58:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:58:50]tlvbuf is 01E658D0 [18:58:50]SAM_PROTO_ClearQueue [18:58:50]wFMCommunicate request_size=4 [18:58:50]MH_SAM_APDU [18:58:50]CAPDU: 80 09 00 00 [18:58:50]Write to MH i2c: E2 08 00 60 75 80 09 00 00 00 00 00 00 47 [18:58:50]Write i2c OK [18:58:50]MH_I2C_Read... [18:58:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:50]Read from MH i2c: E2 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 03 00 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 03 00 60 75 00 90 00 49 [18:58:50]RAPDU: 90 00 [18:58:50]wFMCommunicate OK [18:58:50]SAM_PROTO_ClearQueue done [18:58:50]KKMCreateOFDPacket [18:58:50]OFDProtocolAddRootSTLVToBuf [18:58:50]FM_MakeSignedData [18:58:50]FM_MakeSignedData [18:58:50]SAM_PROTO_SignData [18:58:50]wFMCommunicate request_size=4 [18:58:50]MH_SAM_APDU [18:58:50]CAPDU: 80 0D 01 02 [18:58:50]Write to MH i2c: E2 08 00 61 75 80 0D 01 02 00 00 00 00 4F [18:58:50]Write i2c OK [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 [18:58:50]MH_I2C_Read... [18:58:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:50]Read from MH i2c: E2 03 00 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 03 00 61 75 00 90 00 4A [18:58:50]RAPDU: 90 00 [18:58:50]wFMCommunicate OK [18:58:50]wFMCommunicate request_size=255 [18:58:50]MH_SAM_APDU [18:58:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 70 E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 D0 01 00 35 04 06 00 56 [18:58:50]Write to MH i2c: E2 02 01 62 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 70 E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 D0 01 00 35 04 06 00 56 00 00 3E [18:58:50]Write i2c OK [18:58:50]MH_I2C_Read... [18:58:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:50]Read from MH i2c: E2 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 03 00 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 03 00 62 75 00 90 00 4B [18:58:50]RAPDU: 90 00 [18:58:50]wFMCommunicate OK [18:58:50]wFMCommunicate request_size=10 [18:58:50]MH_SAM_APDU [18:58:50]CAPDU: 80 0D 02 02 05 09 0C 33 1A A7 [18:58:50]Write to MH i2c: E2 0D 00 63 75 80 0D 02 02 05 00 09 0C 33 1A A7 00 00 65 [18:58:50]Write i2c OK [18:58:50]MH_I2C_Read... [18:58:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:50]Read from MH i2c: E2 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 03 00 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 03 00 63 75 00 90 00 4C [18:58:50]RAPDU: 90 00 [18:58:50]wFMCommunicate OK [18:58:50]wFMCommunicate request_size=4 [18:58:50]MH_SAM_APDU [18:58:50]CAPDU: 80 0D 03 02 [18:58:50]Write to MH i2c: E2 08 00 64 75 80 0D 03 02 00 00 00 00 54 [18:58:50]Write i2c OK [18:58:50]MH_I2C_Read... [18:58:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:50]Read from MH i2c: E2 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 0B 00 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 0B 00 64 75 00 59 AC 25 4A 26 0A 53 A8 90 00 F4 [18:58:50]RAPDU: 59 AC 25 4A 26 0A 53 A8 90 00 [18:58:50]wFMCommunicate OK [18:58:50]SAM_PROTO_SignData done [18:58:50]FM_MakeSignedData done [18:58:50]CreateOFDProtocolMessage [18:58:50]wFMCommunicate request_size=4 [18:58:50]MH_SAM_APDU [18:58:50]CAPDU: 80 11 00 00 [18:58:50]Write to MH i2c: E2 08 00 65 75 80 11 00 00 00 00 00 00 54 [18:58:50]Write i2c OK [18:58:50]MH_I2C_Read... [18:58:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:50]Read from MH i2c: E2 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 17 00 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: E2 17 00 65 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AF [18:58:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:58:50]wFMCommunicate OK [18:58:50]CreateOFDProtocolMessage done [18:58:50]OFDSenderStorePacket 118883 [18:58:50]StoreOFDPacket docnum=118883 [18:58:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B7 80 07 01 6E 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 70 E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 D0 01 00 35 04 06 00 56 09 0C 33 1A A7 59 AC 25 4A 26 0A 53 A8 [18:58:50]CheckFolder [18:58:50]dirname=/storage/ofd_packets [18:58:50]CheckFolder done [18:58:50]ProducePacketName [18:58:50]name=ofd_packets/00118883 [18:58:50]NVStorageSaveData ofd_packets/00118883 [18:58:50]File name is /storage/ofd_packets/00118883 [18:58:50]Write 301 bytes [18:58:50]NVStorageSaveData done [18:58:50]OFDSenderStorePacket done [18:58:50]KKMCreateOFDPacket done [18:58:50]NVStorageSaveData kkm_last_timestamp [18:58:50]File name is /storage/kkm_last_timestamp [18:58:50]Write 4 bytes [18:58:50]NVStorageSaveData done [18:58:50]ExternCall_PrintAddStr [18:58:50]wPrintStart [18:58:50]Write to MH i2c: 01 00 00 66 75 DB [18:58:50]Write i2c OK [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: 01 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: 01 07 00 [18:58:50]MH_I2C_Read... [18:58:50]Read from MH i2c: 01 07 00 66 75 00 00 00 00 00 FF 0F F0 [18:58:50]RasterBufferAndPrint [18:58:50]line Счет N : (1)949775 [18:58:50]line ИНН: 02508201610067 [18:58:50]line Контрольно-Кассовый Чек [18:58:50]line ПРОДАЖА [18:58:50]line ТРК (МРК, ГНК) : 41 [18:58:50]line Товар: 2710124130 [18:58:50]line Аи-92-К-4 [18:58:50]line 8.850 * 67.80 [18:58:50]line = 600.03 [18:58:50]line НДС 12% НСП 1% [18:58:50]line > о реализуемом товаре [18:58:50]line ОКРУГЛЕНИЕ: -0.03 [18:58:50]line ИТОГО: 600.00 [18:58:50]line Внесено: 600.00 [18:58:50]line СДАЧА: 0.00 [18:58:50]line НСП 1% : 5.31 [18:58:50]line НДС 12% : 63.72 [18:58:50]line Наличными: 600.00 [18:58:50]line Безнал.: 0.00 [18:58:50]line Место: АЗС № 134 "Партнер Нефть" [18:58:50]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:58:50]line СНО: Общий режим [18:58:50]line Чек 259 29.07.2024 18:58 [18:58:50]line Смена: 434 ФФД: 1.0 [18:58:50]line ЗНМ: 0300000044 [18:58:50]line РНМ: 0000000000092660 [18:58:50]line Версия ККМ: 001 [18:58:50]line ФМ: 0000000000874939 [18:58:50]line ФД: 118883 [18:58:50]line ФПД: 94596859370151 [18:58:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T185856&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118883&fm=94596859370151&tin=02508201610067®Number=0000000000092660&sum=60000 [18:58:50]written 0, free lines is 4095 [18:58:50]OFD Sender: Processing packet 118883 [packets to send 86, broken 85] [18:58:50]ProducePacketName [18:58:50]name=ofd_packets/00118883 [18:58:50]OFD Sender: To server: pG, [18:58:50]CommunicateWithHost lk.salyk.kg:30040 [18:58:50]ConnectInit lk.salyk.kg [18:58:50]Connected sock=10 [18:58:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B7 80 07 01 6E 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 70 E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 D0 01 00 35 04 06 00 56 09 0C 33 1A A7 59 AC 25 4A 26 0A 53 A8 [18:58:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6B 99 47 00 D7 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 34 39 33 39 10 04 04 00 63 D0 01 00 F4 03 04 00 FC 93 A7 66 B6 04 01 00 00 F8 C9 83 4C 6C FC 32 80 [18:58:51]CommunicateWithHost err = 0 [18:58:51]CheckOFDResponse [18:58:51]1017 (14) - 77093643461234 [18:58:51]1041 (16) - 0000000000874939 [18:58:51]1040 (4) - 118883 [18:58:51]1012 (4) - 29.07.2024 13:07 [18:58:51]1206 (1) - 0 [18:58:51]OFD Sender: Remove packet 118883 [18:58:51]ProducePacketName [18:58:51]name=ofd_packets/00118883 [18:58:51]NVStorageDeleteData [18:58:51]Write to MH i2c: 01 00 00 90 75 05 [18:58:51]Write i2c OK [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: 01 [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: 01 07 00 [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: 01 07 00 90 75 00 00 00 00 00 EE 0C 06 [18:58:51]RasterBufferAndPrint [18:58:51]line [18:58:51]line [18:58:51]line [18:58:51]line [18:58:51]line [18:58:51]written 0, free lines is 3316 [18:58:51]MH_Cut [18:58:51]Write to MH i2c: D1 01 00 97 75 01 DE [18:58:51]Write i2c OK [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: D1 [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: D1 01 00 [18:58:51]MH_I2C_Read... [18:58:51]Read from MH i2c: D1 01 00 97 75 00 DD [18:58:51]Write to MH i2c: 01 00 00 98 75 0D [18:58:51]Write i2c OK [18:58:51]MH_I2C_Read... [18:58:51]OFD Sender: No OFD packet to send [18:58:52]*** Cut start [18:58:52]*** Partial cut [18:58:52]*** CUTSNS_PIN = 1 [18:58:52]*** CUTSNS_PIN = 0 [18:58:52]*** Brake cut motor [18:58:52]Read from MH i2c: 01 [18:58:52]MH_I2C_Read... [18:58:52]*** Stop cut motor [18:58:52]*** Cut end [18:58:52]Read from MH i2c: 01 07 00 [18:58:52]MH_I2C_Read... [18:58:52]Read from MH i2c: 01 07 00 98 75 00 00 00 00 00 FF 0F 22 [18:58:52]process_action close_receipt done [18:58:52]requested_data is exist [18:58:52]produce_requested_data [18:58:52]requested_item fm.sn is exist - process it [18:58:52]wFMCommunicate request_size=4 [18:58:52]MH_SAM_APDU [18:58:52]CAPDU: 80 11 00 00 [18:58:52]Write to MH i2c: E2 08 00 99 75 80 11 00 00 00 00 00 00 88 [18:58:52]Write i2c OK [18:58:52]MH_I2C_Read... [18:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:52]Read from MH i2c: E2 [18:58:52]MH_I2C_Read... [18:58:52]Read from MH i2c: E2 17 00 [18:58:52]MH_I2C_Read... [18:58:52]Read from MH i2c: E2 17 00 99 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E3 [18:58:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:58:52]wFMCommunicate OK [18:58:52]requested_item fd.num is exist - process it [18:58:52]SAM_PROTO_GetFieldsCounters [18:58:52]wFMCommunicate request_size=4 [18:58:52]MH_SAM_APDU [18:58:52]CAPDU: 80 13 00 00 [18:58:52]Write to MH i2c: E2 08 00 9A 75 80 13 00 00 00 00 00 00 8B [18:58:52]Write i2c OK [18:58:52]MH_I2C_Read... [18:58:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:52]Read from MH i2c: E2 [18:58:52]MH_I2C_Read... [18:58:52]Read from MH i2c: E2 62 00 [18:58:52]MH_I2C_Read... [18:58:52]Read from MH i2c: E2 62 00 9A 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 63 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 A5 [18:58: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 63 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:52]wFMCommunicate OK [18:58:52]SAM_PROTO_GetFieldsCounters done [18:58:52]requested_item shift.num is exist - process it [18:58:52]requested_item shift.opened is exist - process it [18:58:52]req_shift_opened [18:58:52]FM_GetShiftState [18:58:52]SAM_PROTO_GetShiftState [18:58:52]wFMCommunicate request_size=4 [18:58:52]MH_SAM_APDU [18:58:52]CAPDU: 80 13 01 00 [18:58:52]Write to MH i2c: E2 08 00 9B 75 80 13 01 00 00 00 00 00 8D [18:58:52]Write i2c OK [18:58:52]MH_I2C_Read... [18:58:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:52]Read from MH i2c: E2 [18:58:52]MH_I2C_Read... [18:58:52]Read from MH i2c: E2 0E 00 [18:58:52]MH_I2C_Read... [18:58:52]Read from MH i2c: E2 0E 00 9B 75 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 BB [18:58:52]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:58:52]wFMCommunicate OK [18:58:52]SAM_PROTO_GetShiftState done [18:58:52]FM_GetShiftState done [18:58:52]req_shift_opened done [18:58:52]requested_item shift.open_date is exist - process it [18:58:52]req_shift_open_date [18:58:52]req_shift_open_date done [18:58:52]produce_requested_data done [18:58:52]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118883,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:58:52]process_action_free close_receipt [18:58:52]json_value_free [18:58:52]json_value_free done [18:58:52]process_json_proto returns [18:58:52]Send response to host [18:58:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118883,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:58:52]free response buf [18:58:52]execute_script done [18:58:52]execute_script returns [18:58:52]free content buf [18:58:52]Sock 9.Close socket [18:58:52]Sock 9.Thread stoped [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [18:59:16]OFD Sender: No OFD packet to send [18:59:21]OFD Sender: No OFD packet to send [18:59:26]OFD Sender: No OFD packet to send [18:59:31]OFD Sender: No OFD packet to send [18:59:36]OFD Sender: No OFD packet to send [18:59:41]OFD Sender: No OFD packet to send [18:59:46]OFD Sender: No OFD packet to send [18:59:48]accept exits with 7 [18:59:48]New connection [18:59:48]New thread 3067239780 created [18:59:48]Thread 3067383140 joined [18:59:48]Waiting for new connection... [18:59:48] Sock 7.Parse request [18:59:48]Sock 7.Check first char [18:59:48]Sock 7.First char is OK [18:59:48]request: POST /json_proto HTTP/1.0 [18:59:48]Method: POST [18:59:48]URL: /json_proto [18:59:48]Method is POST - this is cgi request [18:59:48]url: /json_proto [18:59:48]query_string will be loaded in cgi processing [18:59:48]execute_cgi json_proto POST (null) [18:59:48]execute_cgi path=json_proto method=POST [18:59:48]POST find Content-Length [18:59:48]Host: 172.17.45.7:8080 [18:59:48]Content-Length: 677 [18:59:48]Content-Type: application/json [18:59:48] [18:59:48]POST finish read [18:59:48]Found Content-Length = 677 [18:59:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:48]execute_script... [18:59: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)949776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:48]POST & json_proto [18:59:48]process_json_proto [18:59:48]json parsed OK: [18:59:48]protocol is kg_v1.0 [18:59:48]action value=close_receipt [18:59:48]process_action close_receipt [18:59:48]cmd_close_receipt [18:59:48]MH_GetDate [18:59:48]Write to MH i2c: F0 00 00 9C 75 00 [18:59:48]Write i2c OK [18:59:48]MH_I2C_Read... [18:59:48]Read from MH i2c: F0 [18:59:48]MH_I2C_Read... [18:59:48]Read from MH i2c: F0 09 00 [18:59:48]MH_I2C_Read... [18:59:48]Read from MH i2c: F0 09 00 9C 75 00 AB E6 A7 66 90 0F 3E 66 EA [18:59:48]GetLastDocTimeStamp 1722279536 [18:59:48]current date 1722279595 [18:59:48]FM_GetShiftState [18:59:48]SAM_PROTO_GetShiftState [18:59:48]wFMCommunicate request_size=4 [18:59:48]MH_SAM_APDU [18:59:48]CAPDU: 80 13 01 00 [18:59:48]Write to MH i2c: E2 08 00 9D 75 80 13 01 00 00 00 00 00 8F [18:59:48]Write i2c OK [18:59:48]MH_I2C_Read... [18:59:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:48]Read from MH i2c: E2 [18:59:48]MH_I2C_Read... [18:59:48]Read from MH i2c: E2 0E 00 [18:59:48]MH_I2C_Read... [18:59:48]Read from MH i2c: E2 0E 00 9D 75 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 BD [18:59:48]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:59:48]wFMCommunicate OK [18:59:48]SAM_PROTO_GetShiftState done [18:59:48]FM_GetShiftState done [18:59:48]opened in 1722211641 [18:59:48]opened+sec_in_day 1722298041 [18:59:48]quantity*price = 30035 [18:59:48]sum+1 = 30036 [18:59:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 260 29.07.2024 18:59 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118884 ФПД: 236728621455867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T185955&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118884&fm=236728621455867&tin=02508201610067®Number=0000000000092660&sum=30000 [18:59:49]StoreToDocumentArchive [18:59:49]shift 434 fd 118884 [18:59:49]save to /storage/0434/doc_00118884 [18:59:49]save last doc name /storage/0434/doc_00118884 to /storage/kkm_last_doc_name [18:59:49]save OK [18:59:49]Clear old archive folders... [18:59:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:59:49]tlvbuf is 01E654B0 [18:59:49]SAM_PROTO_ClearQueue [18:59:49]wFMCommunicate request_size=4 [18:59:49]MH_SAM_APDU [18:59:49]CAPDU: 80 09 00 00 [18:59:49]Write to MH i2c: E2 08 00 AA 75 80 09 00 00 00 00 00 00 91 [18:59:49]Write i2c OK [18:59:49]MH_I2C_Read... [18:59:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:49]Read from MH i2c: E2 [18:59:49]MH_I2C_Read... [18:59:49]Read from MH i2c: E2 03 00 [18:59:49]MH_I2C_Read... [18:59:49]Read from MH i2c: E2 03 00 AA 75 00 90 00 93 [18:59:49]RAPDU: 90 00 [18:59:49]wFMCommunicate OK [18:59:49]SAM_PROTO_ClearQueue done [18:59:49]KKMCreateOFDPacket [18:59:49]OFDProtocolAddRootSTLVToBuf [18:59:49]FM_MakeSignedData [18:59:49]FM_MakeSignedData [18:59:49]SAM_PROTO_SignData [18:59:49]wFMCommunicate request_size=4 [18:59:49]MH_SAM_APDU [18:59:49]CAPDU: 80 0D 01 02 [18:59:49]Write to MH i2c: E2 08 00 AB 75 80 0D 01 02 00 00 00 00 99 [18:59:49]Write i2c OK [18:59:49]MH_I2C_Read... [18:59:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:49]Read from MH i2c: E2 [18:59:49]MH_I2C_Read... [18:59:49]Read from MH i2c: E2 03 00 [18:59:49]MH_I2C_Read... [18:59:49]Read from MH i2c: E2 03 00 AB 75 00 90 00 94 [18:59:49]RAPDU: 90 00 [18:59:49]wFMCommunicate OK [18:59:49]wFMCommunicate request_size=255 [18:59:49]MH_SAM_APDU [18:59:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 AB E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 D0 01 00 35 04 06 00 D7 [18:59:49]Write to MH i2c: E2 02 01 AC 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 AB E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 D0 01 00 35 04 06 00 D7 00 00 9E [18:59:49]Write i2c OK [18:59:49]MH_I2C_Read... [18:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:49]Read from MH i2c: E2 [18:59:49]MH_I2C_Read... [18:59:49]Read from MH i2c: E2 03 00 [18:59:49]MH_I2C_Read... [18:59:49]Read from MH i2c: E2 03 00 AC 75 00 90 00 95 [18:59:49]RAPDU: 90 00 [18:59:49]wFMCommunicate OK [18:59:49]wFMCommunicate request_size=10 [18:59:49]MH_SAM_APDU [18:59:49]CAPDU: 80 0D 02 02 05 4D AD 63 D9 FB [18:59:49]Write to MH i2c: E2 0D 00 AD 75 80 0D 02 02 05 00 4D AD 63 D9 FB 00 00 D7 [18:59:49]Write i2c OK [18:59:49]MH_I2C_Read... [18:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:49]Read from MH i2c: E2 [18:59:49]MH_I2C_Read... [18:59:49]Read from MH i2c: E2 03 00 [18:59:49]MH_I2C_Read... [18:59:49]Read from MH i2c: E2 03 00 AD 75 00 90 00 96 [18:59:49]RAPDU: 90 00 [18:59:49]wFMCommunicate OK [18:59:49]wFMCommunicate request_size=4 [18:59:49]MH_SAM_APDU [18:59:49]CAPDU: 80 0D 03 02 [18:59:49]Write to MH i2c: E2 08 00 AE 75 80 0D 03 02 00 00 00 00 9E [18:59:49]Write i2c OK [18:59:49]MH_I2C_Read... [18:59:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:50]Read from MH i2c: E2 [18:59:50]MH_I2C_Read... [18:59:50]Read from MH i2c: E2 0B 00 [18:59:50]MH_I2C_Read... [18:59:50]Read from MH i2c: E2 0B 00 AE 75 00 85 5D 30 23 0A 98 40 6F 90 00 25 [18:59:50]RAPDU: 85 5D 30 23 0A 98 40 6F 90 00 [18:59:50]wFMCommunicate OK [18:59:50]SAM_PROTO_SignData done [18:59:50]FM_MakeSignedData done [18:59:50]CreateOFDProtocolMessage [18:59:50]wFMCommunicate request_size=4 [18:59:50]MH_SAM_APDU [18:59:50]CAPDU: 80 11 00 00 [18:59:50]Write to MH i2c: E2 08 00 AF 75 80 11 00 00 00 00 00 00 9E [18:59:50]Write i2c OK [18:59:50]MH_I2C_Read... [18:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:50]Read from MH i2c: E2 [18:59:50]MH_I2C_Read... [18:59:50]Read from MH i2c: E2 17 00 [18:59:50]MH_I2C_Read... [18:59:50]Read from MH i2c: E2 17 00 AF 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F9 [18:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:59:50]wFMCommunicate OK [18:59:50]CreateOFDProtocolMessage done [18:59:50]OFDSenderStorePacket 118884 [18:59:50]StoreOFDPacket docnum=118884 [18:59:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 02 22 07 01 47 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 AB E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 D0 01 00 35 04 06 00 D7 4D AD 63 D9 FB 85 5D 30 23 0A 98 40 6F [18:59:50]CheckFolder [18:59:50]dirname=/storage/ofd_packets [18:59:50]CheckFolder done [18:59:50]ProducePacketName [18:59:50]name=ofd_packets/00118884 [18:59:50]NVStorageSaveData ofd_packets/00118884 [18:59:50]File name is /storage/ofd_packets/00118884 [18:59:50]Write 301 bytes [18:59:50]NVStorageSaveData done [18:59:50]OFDSenderStorePacket done [18:59:50]KKMCreateOFDPacket done [18:59:50]NVStorageSaveData kkm_last_timestamp [18:59:50]File name is /storage/kkm_last_timestamp [18:59:50]Write 4 bytes [18:59:50]NVStorageSaveData done [18:59:50]ExternCall_PrintAddStr [18:59:50]wPrintStart [18:59:50]Write to MH i2c: 01 00 00 B0 75 25 [18:59:50]Write i2c OK [18:59:50]MH_I2C_Read... [18:59:50]Read from MH i2c: 01 [18:59:50]MH_I2C_Read... [18:59:50]Read from MH i2c: 01 07 00 [18:59:50]MH_I2C_Read... [18:59:50]Read from MH i2c: 01 07 00 B0 75 00 00 00 00 00 FF 0F 3A [18:59:50]RasterBufferAndPrint [18:59:50]line Счет N : (1)949776 [18:59:50]line ИНН: 02508201610067 [18:59:50]line Контрольно-Кассовый Чек [18:59:50]line ПРОДАЖА [18:59:50]line ТРК (МРК, ГНК) : 31 [18:59:50]line Товар: 2710124130 [18:59:50]line Аи-92-К-4 [18:59:50]line 4.430 * 67.80 [18:59:50]line = 300.35 [18:59:50]line НДС 12% НСП 1% [18:59:50]line > о реализуемом товаре [18:59:50]line ОКРУГЛЕНИЕ: -0.35 [18:59:50]line ИТОГО: 300.00 [18:59:50]line Внесено: 300.00 [18:59:50]line СДАЧА: 0.00 [18:59:50]line НСП 1% : 2.66 [18:59:50]line НДС 12% : 31.90 [18:59:50]line Наличными: 300.00 [18:59:50]line Безнал.: 0.00 [18:59:50]line Место: АЗС № 134 "Партнер Нефть" [18:59:50]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:59:50]line СНО: Общий режим [18:59:50]line Чек 260 29.07.2024 18:59 [18:59:50]line Смена: 434 ФФД: 1.0 [18:59:50]line ЗНМ: 0300000044 [18:59:50]line РНМ: 0000000000092660 [18:59:50]line Версия ККМ: 001 [18:59:50]line ФМ: 0000000000874939 [18:59:50]line ФД: 118884 [18:59:50]line ФПД: 236728621455867 [18:59:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T185955&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118884&fm=236728621455867&tin=02508201610067®Number=0000000000092660&sum=30000 [18:59:50]written 0, free lines is 4095 [18:59:50]OFD Sender: Processing packet 118884 [packets to send 86, broken 85] [18:59:50]ProducePacketName [18:59:50]name=ofd_packets/00118884 [18:59:50]OFD Sender: To server: pG, [18:59:50]CommunicateWithHost lk.salyk.kg:30040 [18:59:50]ConnectInit lk.salyk.kg [18:59:50]Connected sock=9 [18:59:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 02 22 07 01 47 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 AB E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 D0 01 00 35 04 06 00 D7 4D AD 63 D9 FB 85 5D 30 23 0A 98 40 6F [18:59:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F0 D0 47 00 24 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 34 39 33 39 10 04 04 00 64 D0 01 00 F4 03 04 00 38 94 A7 66 B6 04 01 00 00 3D CE C0 0E 81 D8 D1 BD [18:59:50]CommunicateWithHost err = 0 [18:59:50]CheckOFDResponse [18:59:50]1017 (14) - 77093643461234 [18:59:50]1041 (16) - 0000000000874939 [18:59:50]1040 (4) - 118884 [18:59:50]1012 (4) - 29.07.2024 13:08 [18:59:50]1206 (1) - 0 [18:59:50]OFD Sender: Remove packet 118884 [18:59:50]ProducePacketName [18:59:50]name=ofd_packets/00118884 [18:59:50]NVStorageDeleteData [18:59:50]Write to MH i2c: 01 00 00 DA 75 4F [18:59:50]Write i2c OK [18:59:50]MH_I2C_Read... [18:59:50]Read from MH i2c: 01 [18:59:50]MH_I2C_Read... [18:59:50]Read from MH i2c: 01 07 00 [18:59:50]MH_I2C_Read... [18:59:50]Read from MH i2c: 01 07 00 DA 75 00 00 00 00 00 E1 0C 43 [18:59:50]RasterBufferAndPrint [18:59:50]line [18:59:50]line [18:59:50]line [18:59:50]line [18:59:50]line [18:59:50]written 0, free lines is 3306 [18:59:50]MH_Cut [18:59:50]Write to MH i2c: D1 01 00 E1 75 01 28 [18:59:50]Write i2c OK [18:59:50]MH_I2C_Read... [18:59:50]Read from MH i2c: D1 [18:59:50]MH_I2C_Read... [18:59:50]Read from MH i2c: D1 01 00 [18:59:50]MH_I2C_Read... [18:59:50]Read from MH i2c: D1 01 00 E1 75 00 27 [18:59:50]Write to MH i2c: 01 00 00 E2 75 57 [18:59:50]Write i2c OK [18:59:50]MH_I2C_Read... [18:59:51]OFD Sender: No OFD packet to send [18:59:51]*** Cut start [18:59:51]*** Partial cut [18:59:51]*** CUTSNS_PIN = 1 [18:59:51]*** CUTSNS_PIN = 0 [18:59:51]*** Brake cut motor [18:59:52]Read from MH i2c: 01 [18:59:52]MH_I2C_Read... [18:59:52]*** Stop cut motor [18:59:52]*** Cut end [18:59:52]Read from MH i2c: 01 07 00 [18:59:52]MH_I2C_Read... [18:59:52]Read from MH i2c: 01 07 00 E2 75 00 00 00 00 00 FF 0F 6C [18:59:52]process_action close_receipt done [18:59:52]requested_data is exist [18:59:52]produce_requested_data [18:59:52]requested_item fm.sn is exist - process it [18:59:52]wFMCommunicate request_size=4 [18:59:52]MH_SAM_APDU [18:59:52]CAPDU: 80 11 00 00 [18:59:52]Write to MH i2c: E2 08 00 E3 75 80 11 00 00 00 00 00 00 D2 [18:59:52]Write i2c OK [18:59:52]MH_I2C_Read... [18:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:52]Read from MH i2c: E2 [18:59:52]MH_I2C_Read... [18:59:52]Read from MH i2c: E2 17 00 [18:59:52]MH_I2C_Read... [18:59:52]Read from MH i2c: E2 17 00 E3 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2D [18:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [18:59:52]wFMCommunicate OK [18:59:52]requested_item fd.num is exist - process it [18:59:52]SAM_PROTO_GetFieldsCounters [18:59:52]wFMCommunicate request_size=4 [18:59:52]MH_SAM_APDU [18:59:52]CAPDU: 80 13 00 00 [18:59:52]Write to MH i2c: E2 08 00 E4 75 80 13 00 00 00 00 00 00 D5 [18:59:52]Write i2c OK [18:59:52]MH_I2C_Read... [18:59:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:52]Read from MH i2c: E2 [18:59:52]MH_I2C_Read... [18:59:52]Read from MH i2c: E2 62 00 [18:59:52]MH_I2C_Read... [18:59:52]Read from MH i2c: E2 62 00 E4 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 64 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 F3 [18:59: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 64 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:52]wFMCommunicate OK [18:59:52]SAM_PROTO_GetFieldsCounters done [18:59:52]requested_item shift.num is exist - process it [18:59:52]requested_item shift.opened is exist - process it [18:59:52]req_shift_opened [18:59:52]FM_GetShiftState [18:59:52]SAM_PROTO_GetShiftState [18:59:52]wFMCommunicate request_size=4 [18:59:52]MH_SAM_APDU [18:59:52]CAPDU: 80 13 01 00 [18:59:52]Write to MH i2c: E2 08 00 E5 75 80 13 01 00 00 00 00 00 D7 [18:59:52]Write i2c OK [18:59:52]MH_I2C_Read... [18:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:52]Read from MH i2c: E2 [18:59:52]MH_I2C_Read... [18:59:52]Read from MH i2c: E2 0E 00 [18:59:52]MH_I2C_Read... [18:59:52]Read from MH i2c: E2 0E 00 E5 75 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 05 [18:59:52]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [18:59:52]wFMCommunicate OK [18:59:52]SAM_PROTO_GetShiftState done [18:59:52]FM_GetShiftState done [18:59:52]req_shift_opened done [18:59:52]requested_item shift.open_date is exist - process it [18:59:52]req_shift_open_date [18:59:52]req_shift_open_date done [18:59:52]produce_requested_data done [18:59:52]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118884,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [18:59:52]process_action_free close_receipt [18:59:52]json_value_free [18:59:52]json_value_free done [18:59:52]process_json_proto returns [18:59:52]Send response to host [18:59:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118884,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [18:59:52]free response buf [18:59:52]execute_script done [18:59:52]execute_script returns [18:59:52]free content buf [18:59:52]Sock 7.Close socket [18:59:52]Sock 7.Thread stoped [18:59:56]OFD Sender: No OFD packet to send [19:00:01]OFD Sender: No OFD packet to send [19:00:06]OFD Sender: No OFD packet to send [19:00:11]OFD Sender: No OFD packet to send [19:00:16]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:53]accept exits with 10 [19:00:53]New connection [19:00:53]New thread 3067383140 created [19:00:53]Thread 3067239780 joined [19:00:53]Waiting for new connection... [19:00:53] Sock 10.Parse request [19:00:53]Sock 10.Check first char [19:00:53]Sock 10.First char is OK [19:00:53]request: POST /json_proto HTTP/1.0 [19:00:53]Method: POST [19:00:53]URL: /json_proto [19:00:53]Method is POST - this is cgi request [19:00:53]url: /json_proto [19:00:53]query_string will be loaded in cgi processing [19:00:53]execute_cgi json_proto POST (null) [19:00:53]execute_cgi path=json_proto method=POST [19:00:53]POST find Content-Length [19:00:53]Host: 172.17.45.7:8080 [19:00:53]Content-Length: 734 [19:00:53]Content-Type: application/json [19:00:53] [19:00:53]POST finish read [19:00:53]Found Content-Length = 734 [19:00:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118884, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:53]execute_script... [19:00:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118884, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:53]POST & json_proto [19:00:53]process_json_proto [19:00:53]json parsed OK: [19:00:53]protocol is kg_v1.0 [19:00:53]action value=close_receipt [19:00:53]process_action close_receipt [19:00:53]cmd_close_receipt [19:00:53]MH_GetDate [19:00:53]Write to MH i2c: F0 00 00 E6 75 4A [19:00:53]Write i2c OK [19:00:53]MH_I2C_Read... [19:00:53]Read from MH i2c: F0 [19:00:53]MH_I2C_Read... [19:00:53]Read from MH i2c: F0 09 00 [19:00:53]MH_I2C_Read... [19:00:53]Read from MH i2c: F0 09 00 E6 75 00 EC E6 A7 66 90 0F 3E 66 75 [19:00:53]GetLastDocTimeStamp 1722279595 [19:00:53]current date 1722279660 [19:00:53]FM_GetShiftState [19:00:53]SAM_PROTO_GetShiftState [19:00:53]wFMCommunicate request_size=4 [19:00:53]MH_SAM_APDU [19:00:53]CAPDU: 80 13 01 00 [19:00:53]Write to MH i2c: E2 08 00 E7 75 80 13 01 00 00 00 00 00 D9 [19:00:53]Write i2c OK [19:00:53]MH_I2C_Read... [19:00:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:53]Read from MH i2c: E2 [19:00:53]MH_I2C_Read... [19:00:53]Read from MH i2c: E2 0E 00 [19:00:53]MH_I2C_Read... [19:00:53]Read from MH i2c: E2 0E 00 E7 75 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 07 [19:00:53]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:00:53]wFMCommunicate OK [19:00:53]SAM_PROTO_GetShiftState done [19:00:53]FM_GetShiftState done [19:00:53]opened in 1722211641 [19:00:53]opened+sec_in_day 1722298041 [19:00:53]quantity*price = 30035 [19:00:53]sum+1 = 30036 [19:00:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 261 29.07.2024 19:01 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 118884 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 118885 ФПД: 269126043489770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T190100&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118885&fm=269126043489770&tin=02508201610067®Number=0000000000092660&sum=30000 [19:00:54]StoreToDocumentArchive [19:00:54]shift 434 fd 118885 [19:00:54]save to /storage/0434/doc_00118885 [19:00:54]save last doc name /storage/0434/doc_00118885 to /storage/kkm_last_doc_name [19:00:54]save OK [19:00:54]Clear old archive folders... [19:00:54]ProcessDocumentItem done err = 0, tmpTLVsize=279 [19:00:54]tlvbuf is B6FC14E0 [19:00:54]SAM_PROTO_ClearQueue [19:00:54]wFMCommunicate request_size=4 [19:00:54]MH_SAM_APDU [19:00:54]CAPDU: 80 09 00 00 [19:00:54]Write to MH i2c: E2 08 00 F6 75 80 09 00 00 00 00 00 00 DD [19:00:54]Write i2c OK [19:00:54]MH_I2C_Read... [19:00:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:00:54]Read from MH i2c: E2 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: E2 03 00 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: E2 03 00 F6 75 00 90 00 DF [19:00:54]RAPDU: 90 00 [19:00:54]wFMCommunicate OK [19:00:54]SAM_PROTO_ClearQueue done [19:00:54]KKMCreateOFDPacket [19:00:54]OFDProtocolAddRootSTLVToBuf [19:00:54]FM_MakeSignedData [19:00:54]FM_MakeSignedData [19:00:54]SAM_PROTO_SignData [19:00:54]wFMCommunicate request_size=4 [19:00:54]MH_SAM_APDU [19:00:54]CAPDU: 80 0D 01 02 [19:00:54]Write to MH i2c: E2 08 00 F7 75 80 0D 01 02 00 00 00 00 E5 [19:00:54]Write i2c OK [19:00:54]MH_I2C_Read... [19:00:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:00:54]Read from MH i2c: E2 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: E2 03 00 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: E2 03 00 F7 75 00 90 00 E0 [19:00:54]RAPDU: 90 00 [19:00:54]wFMCommunicate OK [19:00:54]wFMCommunicate request_size=255 [19:00:54]MH_SAM_APDU [19:00:54]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 EC E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 64 D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 [19:00:54]Write to MH i2c: E2 02 01 F8 75 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 EC E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 64 D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 00 00 B7 [19:00:54]Write i2c OK [19:00:54]MH_I2C_Read... [19:00:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:54]Read from MH i2c: E2 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: E2 03 00 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: E2 03 00 F8 75 00 90 00 E1 [19:00:54]RAPDU: 90 00 [19:00:54]wFMCommunicate OK [19:00:54]wFMCommunicate request_size=38 [19:00:54]MH_SAM_APDU [19:00:54]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 D0 01 00 35 04 06 00 F4 C4 CA 38 D5 EA [19:00:54]Write to MH i2c: E2 29 00 F9 75 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 D0 01 00 35 04 06 00 F4 C4 CA 38 D5 EA 00 00 28 [19:00:54]Write i2c OK [19:00:54]MH_I2C_Read... [19:00:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:54]Read from MH i2c: E2 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: E2 03 00 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: E2 03 00 F9 75 00 90 00 E2 [19:00:54]RAPDU: 90 00 [19:00:54]wFMCommunicate OK [19:00:54]wFMCommunicate request_size=4 [19:00:54]MH_SAM_APDU [19:00:54]CAPDU: 80 0D 03 02 [19:00:54]Write to MH i2c: E2 08 00 FA 75 80 0D 03 02 00 00 00 00 EA [19:00:54]Write i2c OK [19:00:54]MH_I2C_Read... [19:00:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:00:55]Read from MH i2c: E2 [19:00:55]MH_I2C_Read... [19:00:55]Read from MH i2c: E2 0B 00 [19:00:55]MH_I2C_Read... [19:00:55]Read from MH i2c: E2 0B 00 FA 75 00 01 E1 66 29 92 3F 32 A3 90 00 02 [19:00:55]RAPDU: 01 E1 66 29 92 3F 32 A3 90 00 [19:00:55]wFMCommunicate OK [19:00:55]SAM_PROTO_SignData done [19:00:55]FM_MakeSignedData done [19:00:55]CreateOFDProtocolMessage [19:00:55]wFMCommunicate request_size=4 [19:00:55]MH_SAM_APDU [19:00:55]CAPDU: 80 11 00 00 [19:00:55]Write to MH i2c: E2 08 00 FB 75 80 11 00 00 00 00 00 00 EA [19:00:55]Write i2c OK [19:00:55]MH_I2C_Read... [19:00:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:55]Read from MH i2c: E2 [19:00:55]MH_I2C_Read... [19:00:55]Read from MH i2c: E2 17 00 [19:00:55]MH_I2C_Read... [19:00:55]Read from MH i2c: E2 17 00 FB 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 45 [19:00:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:00:55]wFMCommunicate OK [19:00:55]CreateOFDProtocolMessage done [19:00:55]OFDSenderStorePacket 118885 [19:00:55]StoreOFDPacket docnum=118885 [19:00:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 C1 A9 23 01 78 17 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 EC E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 64 D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 D0 01 00 35 04 06 00 F4 C4 CA 38 D5 EA 01 E1 66 29 92 3F 32 A3 [19:00:55]CheckFolder [19:00:55]dirname=/storage/ofd_packets [19:00:55]CheckFolder done [19:00:55]ProducePacketName [19:00:55]name=ofd_packets/00118885 [19:00:55]NVStorageSaveData ofd_packets/00118885 [19:00:55]File name is /storage/ofd_packets/00118885 [19:00:55]Write 329 bytes [19:00:55]NVStorageSaveData done [19:00:55]OFDSenderStorePacket done [19:00:55]KKMCreateOFDPacket done [19:00:55]NVStorageSaveData kkm_last_timestamp [19:00:55]File name is /storage/kkm_last_timestamp [19:00:55]Write 4 bytes [19:00:55]NVStorageSaveData done [19:00:55]ExternCall_PrintAddStr [19:00:55]wPrintStart [19:00:55]Write to MH i2c: 01 00 00 FC 75 71 [19:00:55]Write i2c OK [19:00:55]MH_I2C_Read... [19:00:55]Read from MH i2c: 01 [19:00:55]MH_I2C_Read... [19:00:55]Read from MH i2c: 01 07 00 [19:00:55]MH_I2C_Read... [19:00:55]Read from MH i2c: 01 07 00 FC 75 00 00 00 00 00 FF 0F 86 [19:00:55]RasterBufferAndPrint [19:00:55]line Счет N : (1)949776 [19:00:55]line ИНН: 02508201610067 [19:00:55]line Контрольно-Кассовый Чек [19:00:55]line ВОЗВРАТ ПРОДАЖИ [19:00:55]line ТРК (МРК, ГНК) : 31 [19:00:55]line Товар: 2710124130 [19:00:55]line Аи-92-К-4 [19:00:55]line 4.430 * 67.80 [19:00:55]line = 300.35 [19:00:55]line НДС 12% НСП 1% [19:00:55]line > о реализуемом товаре [19:00:55]line ОКРУГЛЕНИЕ: -0.35 [19:00:55]line ИТОГО: 300.00 [19:00:55]line НСП 1% : 2.66 [19:00:55]line НДС 12% : 31.90 [19:00:55]line Наличными: 300.00 [19:00:55]line Безнал.: 0.00 [19:00:55]line Место: АЗС № 134 "Партнер Нефть" [19:00:55]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:00:55]line СНО: Общий режим [19:00:55]line Чек 261 29.07.2024 19:01 [19:00:55]line Смена: 434 ФФД: 1.0 [19:00:55]line ЗНМ: 0300000044 [19:00:55]line РНМ: 0000000000092660 [19:00:55]line Версия ККМ: 001 [19:00:55]line ФД осн.: 118884 [19:00:55]line ФМ осн.: 0000000000874939 [19:00:55]line ФМ: 0000000000874939 [19:00:55]line ФД: 118885 [19:00:55]line ФПД: 269126043489770 [19:00:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T190100&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118885&fm=269126043489770&tin=02508201610067®Number=0000000000092660&sum=30000 [19:00:55]OFD Sender: Processing packet 118885 [packets to send 86, broken 85] [19:00:55]ProducePacketName [19:00:55]name=ofd_packets/00118885 [19:00:55]OFD Sender: To server: pG, [19:00:55]CommunicateWithHost lk.salyk.kg:30040 [19:00:55]ConnectInit lk.salyk.kg [19:00:55]written 0, free lines is 4095 [19:00:55]Connected sock=9 [19:00:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 C1 A9 23 01 78 17 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 EC E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 64 D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 D0 01 00 35 04 06 00 F4 C4 CA 38 D5 EA 01 E1 66 29 92 3F 32 A3 [19:00:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 51 09 47 00 31 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 D0 01 00 F4 03 04 00 79 94 A7 66 B6 04 01 00 00 43 EE 34 2A A5 7E F0 01 [19:00:55]CommunicateWithHost err = 0 [19:00:55]CheckOFDResponse [19:00:55]1017 (14) - 77093643461234 [19:00:55]1041 (16) - 0000000000874939 [19:00:55]1040 (4) - 118885 [19:00:55]1012 (4) - 29.07.2024 13:09 [19:00:55]1206 (1) - 0 [19:00:55]OFD Sender: Remove packet 118885 [19:00:55]ProducePacketName [19:00:55]name=ofd_packets/00118885 [19:00:55]NVStorageDeleteData [19:00:55]Write to MH i2c: 01 00 00 26 76 9C [19:00:55]Write i2c OK [19:00:55]MH_I2C_Read... [19:00:55]Read from MH i2c: 01 [19:00:55]MH_I2C_Read... [19:00:55]Read from MH i2c: 01 07 00 [19:00:55]MH_I2C_Read... [19:00:55]Read from MH i2c: 01 07 00 26 76 00 00 00 00 00 03 0D B3 [19:00:55]RasterBufferAndPrint [19:00:55]line [19:00:55]line [19:00:55]line [19:00:55]line [19:00:55]line [19:00:55]written 0, free lines is 3338 [19:00:55]MH_Cut [19:00:55]Write to MH i2c: D1 01 00 2D 76 01 75 [19:00:55]Write i2c OK [19:00:55]MH_I2C_Read... [19:00:55]Read from MH i2c: D1 [19:00:55]MH_I2C_Read... [19:00:55]Read from MH i2c: D1 01 00 [19:00:55]MH_I2C_Read... [19:00:55]Read from MH i2c: D1 01 00 2D 76 00 74 [19:00:55]Write to MH i2c: 01 00 00 2E 76 A4 [19:00:55]Write i2c OK [19:00:55]MH_I2C_Read... [19:00:56]OFD Sender: No OFD packet to send [19:00:56]*** Cut start [19:00:56]*** Partial cut [19:00:56]*** CUTSNS_PIN = 1 [19:00:56]*** CUTSNS_PIN = 0 [19:00:56]*** Brake cut motor [19:00:57]Read from MH i2c: 01 [19:00:57]MH_I2C_Read... [19:00:57]*** Stop cut motor [19:00:57]*** Cut end [19:00:57]Read from MH i2c: 01 07 00 [19:00:57]MH_I2C_Read... [19:00:57]Read from MH i2c: 01 07 00 2E 76 00 00 00 00 00 FF 0F B9 [19:00:57]process_action close_receipt done [19:00:57]requested_data is exist [19:00:57]produce_requested_data [19:00:57]requested_item fm.sn is exist - process it [19:00:57]wFMCommunicate request_size=4 [19:00:57]MH_SAM_APDU [19:00:57]CAPDU: 80 11 00 00 [19:00:57]Write to MH i2c: E2 08 00 2F 76 80 11 00 00 00 00 00 00 1F [19:00:57]Write i2c OK [19:00:57]MH_I2C_Read... [19:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:57]Read from MH i2c: E2 [19:00:57]MH_I2C_Read... [19:00:57]Read from MH i2c: E2 17 00 [19:00:57]MH_I2C_Read... [19:00:57]Read from MH i2c: E2 17 00 2F 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7A [19:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:00:57]wFMCommunicate OK [19:00:57]requested_item fd.num is exist - process it [19:00:57]SAM_PROTO_GetFieldsCounters [19:00:57]wFMCommunicate request_size=4 [19:00:57]MH_SAM_APDU [19:00:57]CAPDU: 80 13 00 00 [19:00:57]Write to MH i2c: E2 08 00 30 76 80 13 00 00 00 00 00 00 22 [19:00:57]Write i2c OK [19:00:57]MH_I2C_Read... [19:00:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:57]Read from MH i2c: E2 [19:00:57]MH_I2C_Read... [19:00:57]Read from MH i2c: E2 62 00 [19:00:57]MH_I2C_Read... [19:00:57]Read from MH i2c: E2 62 00 30 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 65 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 44 [19:00: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 65 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:00:57]wFMCommunicate OK [19:00:57]SAM_PROTO_GetFieldsCounters done [19:00:57]requested_item shift.num is exist - process it [19:00:57]requested_item shift.opened is exist - process it [19:00:57]req_shift_opened [19:00:57]FM_GetShiftState [19:00:57]SAM_PROTO_GetShiftState [19:00:57]wFMCommunicate request_size=4 [19:00:57]MH_SAM_APDU [19:00:57]CAPDU: 80 13 01 00 [19:00:57]Write to MH i2c: E2 08 00 31 76 80 13 01 00 00 00 00 00 24 [19:00:57]Write i2c OK [19:00:57]MH_I2C_Read... [19:00:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:57]Read from MH i2c: E2 [19:00:57]MH_I2C_Read... [19:00:57]Read from MH i2c: E2 0E 00 [19:00:57]MH_I2C_Read... [19:00:57]Read from MH i2c: E2 0E 00 31 76 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 52 [19:00:57]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:00:57]wFMCommunicate OK [19:00:57]SAM_PROTO_GetShiftState done [19:00:57]FM_GetShiftState done [19:00:57]req_shift_opened done [19:00:57]requested_item shift.open_date is exist - process it [19:00:57]req_shift_open_date [19:00:57]req_shift_open_date done [19:00:57]produce_requested_data done [19:00:57]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118885,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [19:00:57]process_action_free close_receipt [19:00:57]json_value_free [19:00:57]json_value_free done [19:00:57]process_json_proto returns [19:00:57]Send response to host [19:00:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118885,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [19:00:57]free response buf [19:00:57]execute_script done [19:00:57]execute_script returns [19:00:57]free content buf [19:00:57]Sock 10.Close socket [19:00:57]Sock 10.Thread stoped [19:00:57]accept exits with 7 [19:00:57]New connection [19:00:57]New thread 3067239780 created [19:00:57]Thread 3067383140 joined [19:00:57]Waiting for new connection... [19:00:57] Sock 7.Parse request [19:00:57]Sock 7.Check first char [19:00:57]Sock 7.First char is OK [19:00:57]request: POST /json_proto HTTP/1.0 [19:00:57]Method: POST [19:00:57]URL: /json_proto [19:00:57]Method is POST - this is cgi request [19:00:57]url: /json_proto [19:00:57]query_string will be loaded in cgi processing [19:00:57]execute_cgi json_proto POST (null) [19:00:57]execute_cgi path=json_proto method=POST [19:00:57]POST find Content-Length [19:00:57]Host: 172.17.45.7:8080 [19:00:57]Content-Length: 677 [19:00:57]Content-Type: application/json [19:00:57] [19:00:57]POST finish read [19:00:57]Found Content-Length = 677 [19:00:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:57]execute_script... [19: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 : (1)949777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:57]POST & json_proto [19:00:57]process_json_proto [19:00:57]json parsed OK: [19:00:57]protocol is kg_v1.0 [19:00:57]action value=close_receipt [19:00:57]process_action close_receipt [19:00:57]cmd_close_receipt [19:00:57]MH_GetDate [19:00:57]Write to MH i2c: F0 00 00 32 76 97 [19:00:57]Write i2c OK [19:00:57]MH_I2C_Read... [19:00:57]Read from MH i2c: F0 [19:00:57]MH_I2C_Read... [19:00:57]Read from MH i2c: F0 09 00 [19:00:57]MH_I2C_Read... [19:00:57]Read from MH i2c: F0 09 00 32 76 00 F0 E6 A7 66 90 0F 3E 66 C6 [19:00:57]GetLastDocTimeStamp 1722279660 [19:00:57]current date 1722279664 [19:00:57]FM_GetShiftState [19:00:57]SAM_PROTO_GetShiftState [19:00:57]wFMCommunicate request_size=4 [19:00:57]MH_SAM_APDU [19:00:57]CAPDU: 80 13 01 00 [19:00:57]Write to MH i2c: E2 08 00 33 76 80 13 01 00 00 00 00 00 26 [19:00:57]Write i2c OK [19:00:57]MH_I2C_Read... [19:00:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:57]Read from MH i2c: E2 [19:00:57]MH_I2C_Read... [19:00:57]Read from MH i2c: E2 0E 00 [19:00:57]MH_I2C_Read... [19:00:57]Read from MH i2c: E2 0E 00 33 76 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 54 [19:00:57]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:00:57]wFMCommunicate OK [19:00:57]SAM_PROTO_GetShiftState done [19:00:57]FM_GetShiftState done [19:00:57]opened in 1722211641 [19:00:57]opened+sec_in_day 1722298041 [19:00:57]quantity*price = 30051 [19:00:57]sum+1 = 30052 [19:00:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 262 29.07.2024 19:01 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118886 ФПД: 62908879748359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T190104&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118886&fm=62908879748359&tin=02508201610067®Number=0000000000092660&sum=30000 [19:00:59]StoreToDocumentArchive [19:00:59]shift 434 fd 118886 [19:00:59]save to /storage/0434/doc_00118886 [19:00:59]save last doc name /storage/0434/doc_00118886 to /storage/kkm_last_doc_name [19:00:59]save OK [19:00:59]Clear old archive folders... [19:00:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:00:59]tlvbuf is 01FB8A80 [19:00:59]SAM_PROTO_ClearQueue [19:00:59]wFMCommunicate request_size=4 [19:00:59]MH_SAM_APDU [19:00:59]CAPDU: 80 09 00 00 [19:00:59]Write to MH i2c: E2 08 00 40 76 80 09 00 00 00 00 00 00 28 [19:00:59]Write i2c OK [19:00:59]MH_I2C_Read... [19:00:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:00:59]Read from MH i2c: E2 [19:00:59]MH_I2C_Read... [19:00:59]Read from MH i2c: E2 03 00 [19:00:59]MH_I2C_Read... [19:00:59]Read from MH i2c: E2 03 00 40 76 00 90 00 2A [19:00:59]RAPDU: 90 00 [19:00:59]wFMCommunicate OK [19:00:59]SAM_PROTO_ClearQueue done [19:00:59]KKMCreateOFDPacket [19:00:59]OFDProtocolAddRootSTLVToBuf [19:00:59]FM_MakeSignedData [19:00:59]FM_MakeSignedData [19:00:59]SAM_PROTO_SignData [19:00:59]wFMCommunicate request_size=4 [19:00:59]MH_SAM_APDU [19:00:59]CAPDU: 80 0D 01 02 [19:00:59]Write to MH i2c: E2 08 00 41 76 80 0D 01 02 00 00 00 00 30 [19:00:59]Write i2c OK [19:00:59]MH_I2C_Read... [19:00:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:00:59]Read from MH i2c: E2 [19:00:59]MH_I2C_Read... [19:00:59]Read from MH i2c: E2 03 00 [19:00:59]MH_I2C_Read... [19:00:59]Read from MH i2c: E2 03 00 41 76 00 90 00 2B [19:00:59]RAPDU: 90 00 [19:00:59]wFMCommunicate OK [19:00:59]wFMCommunicate request_size=255 [19:00:59]MH_SAM_APDU [19:00: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 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 F0 E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 D0 01 00 35 04 06 00 39 [19:00:59]Write to MH i2c: E2 02 01 42 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 F0 E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 D0 01 00 35 04 06 00 39 00 00 F8 [19:00:59]Write i2c OK [19:00:59]MH_I2C_Read... [19:00:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:59]Read from MH i2c: E2 [19:00:59]MH_I2C_Read... [19:00:59]Read from MH i2c: E2 03 00 [19:00:59]MH_I2C_Read... [19:00:59]Read from MH i2c: E2 03 00 42 76 00 90 00 2C [19:00:59]RAPDU: 90 00 [19:00:59]wFMCommunicate OK [19:00:59]wFMCommunicate request_size=10 [19:00:59]MH_SAM_APDU [19:00:59]CAPDU: 80 0D 02 02 05 37 1D 6E 3D 07 [19:00:59]Write to MH i2c: E2 0D 00 43 76 80 0D 02 02 05 00 37 1D 6E 3D 07 00 00 43 [19:00:59]Write i2c OK [19:00:59]MH_I2C_Read... [19:00:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:59]Read from MH i2c: E2 [19:00:59]MH_I2C_Read... [19:00:59]Read from MH i2c: E2 03 00 [19:00:59]MH_I2C_Read... [19:00:59]Read from MH i2c: E2 03 00 43 76 00 90 00 2D [19:00:59]RAPDU: 90 00 [19:00:59]wFMCommunicate OK [19:00:59]wFMCommunicate request_size=4 [19:00:59]MH_SAM_APDU [19:00:59]CAPDU: 80 0D 03 02 [19:00:59]Write to MH i2c: E2 08 00 44 76 80 0D 03 02 00 00 00 00 35 [19:00:59]Write i2c OK [19:00:59]MH_I2C_Read... [19:00:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:00:59]Read from MH i2c: E2 [19:00:59]MH_I2C_Read... [19:00:59]Read from MH i2c: E2 0B 00 [19:00:59]MH_I2C_Read... [19:00:59]Read from MH i2c: E2 0B 00 44 76 00 B1 21 B2 DE 48 62 34 AC 90 00 22 [19:00:59]RAPDU: B1 21 B2 DE 48 62 34 AC 90 00 [19:00:59]wFMCommunicate OK [19:00:59]SAM_PROTO_SignData done [19:00:59]FM_MakeSignedData done [19:00:59]CreateOFDProtocolMessage [19:00:59]wFMCommunicate request_size=4 [19:00:59]MH_SAM_APDU [19:00:59]CAPDU: 80 11 00 00 [19:00:59]Write to MH i2c: E2 08 00 45 76 80 11 00 00 00 00 00 00 35 [19:00:59]Write i2c OK [19:00:59]MH_I2C_Read... [19:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:59]Read from MH i2c: E2 [19:00:59]MH_I2C_Read... [19:00:59]Read from MH i2c: E2 17 00 [19:00:59]MH_I2C_Read... [19:00:59]Read from MH i2c: E2 17 00 45 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 90 [19:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:00:59]wFMCommunicate OK [19:00:59]CreateOFDProtocolMessage done [19:00:59]OFDSenderStorePacket 118886 [19:00:59]StoreOFDPacket docnum=118886 [19:00:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 0F 5D 07 01 DF 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 F0 E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 D0 01 00 35 04 06 00 39 37 1D 6E 3D 07 B1 21 B2 DE 48 62 34 AC [19:00:59]CheckFolder [19:00:59]dirname=/storage/ofd_packets [19:00:59]CheckFolder done [19:00:59]ProducePacketName [19:00:59]name=ofd_packets/00118886 [19:00:59]NVStorageSaveData ofd_packets/00118886 [19:00:59]File name is /storage/ofd_packets/00118886 [19:00:59]Write 301 bytes [19:00:59]NVStorageSaveData done [19:00:59]OFDSenderStorePacket done [19:00:59]KKMCreateOFDPacket done [19:00:59]NVStorageSaveData kkm_last_timestamp [19:00:59]File name is /storage/kkm_last_timestamp [19:00:59]Write 4 bytes [19:00:59]NVStorageSaveData done [19:00:59]ExternCall_PrintAddStr [19:00:59]wPrintStart [19:00:59]Write to MH i2c: 01 00 00 46 76 BC [19:00:59]Write i2c OK [19:00:59]MH_I2C_Read... [19:00:59]Read from MH i2c: 01 [19:00:59]MH_I2C_Read... [19:00:59]Read from MH i2c: 01 07 00 [19:00:59]MH_I2C_Read... [19:00:59]Read from MH i2c: 01 07 00 46 76 00 00 00 00 00 FF 0F D1 [19:00:59]RasterBufferAndPrint [19:00:59]line Счет N : (1)949777 [19:00:59]line ИНН: 02508201610067 [19:00:59]line Контрольно-Кассовый Чек [19:00:59]line ПРОДАЖА [19:00:59]line ТРК (МРК, ГНК) : 33 [19:00:59]line Товар: 2710124500 [19:00:59]line Аи-95-К-3 [19:00:59]line 4.050 * 74.20 [19:00:59]line = 300.51 [19:00:59]line НДС 12% НСП 1% [19:00:59]line > о реализуемом товаре [19:00:59]line ОКРУГЛЕНИЕ: -0.51 [19:00:59]line ИТОГО: 300.00 [19:00:59]line Внесено: 300.00 [19:00:59]line СДАЧА: 0.00 [19:00:59]line НСП 1% : 2.66 [19:00:59]line НДС 12% : 31.91 [19:00:59]line Наличными: 300.00 [19:00:59]line Безнал.: 0.00 [19:01:00]line Место: АЗС № 134 "Партнер Нефть" [19:01:00]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:01:00]line СНО: Общий режим [19:01:00]line Чек 262 29.07.2024 19:01 [19:01:00]line Смена: 434 ФФД: 1.0 [19:01:00]line ЗНМ: 0300000044 [19:01:00]line РНМ: 0000000000092660 [19:01:00]line Версия ККМ: 001 [19:01:00]line ФМ: 0000000000874939 [19:01:00]line ФД: 118886 [19:01:00]line ФПД: 62908879748359 [19:01:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T190104&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118886&fm=62908879748359&tin=02508201610067®Number=0000000000092660&sum=30000 [19:01:00]OFD Sender: Processing packet 118886 [packets to send 86, broken 85] [19:01:00]ProducePacketName [19:01:00]name=ofd_packets/00118886 [19:01:00]OFD Sender: To server: pG, [19:01:00]CommunicateWithHost lk.salyk.kg:30040 [19:01:00]ConnectInit lk.salyk.kg [19:01:00]written 0, free lines is 4095 [19:01:00]Connected sock=10 [19: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 34 39 33 39 0F 01 00 00 0F 5D 07 01 DF 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 F0 E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 D0 01 00 35 04 06 00 39 37 1D 6E 3D 07 B1 21 B2 DE 48 62 34 AC [19:01:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A0 51 47 00 D1 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 D0 01 00 F4 03 04 00 7E 94 A7 66 B6 04 01 00 00 54 AF 46 3D 7E CE 7B 67 [19:01:00]CommunicateWithHost err = 0 [19:01:00]CheckOFDResponse [19:01:00]1017 (14) - 77093643461234 [19:01:00]1041 (16) - 0000000000874939 [19:01:00]1040 (4) - 118886 [19:01:00]1012 (4) - 29.07.2024 13:09 [19:01:00]1206 (1) - 0 [19:01:00]OFD Sender: Remove packet 118886 [19:01:00]ProducePacketName [19:01:00]name=ofd_packets/00118886 [19:01:00]NVStorageDeleteData [19:01:00]Write to MH i2c: 01 00 00 70 76 E6 [19:01:00]Write i2c OK [19:01:00]MH_I2C_Read... [19:01:00]Read from MH i2c: 01 [19:01:00]MH_I2C_Read... [19:01:00]Read from MH i2c: 01 07 00 [19:01:00]MH_I2C_Read... [19:01:00]Read from MH i2c: 01 07 00 70 76 00 00 00 00 00 E9 0C E2 [19:01:00]RasterBufferAndPrint [19:01:00]line [19:01:00]line [19:01:00]line [19:01:00]line [19:01:00]line [19:01:00]written 0, free lines is 3320 [19:01:00]MH_Cut [19:01:00]Write to MH i2c: D1 01 00 77 76 01 BF [19:01:00]Write i2c OK [19:01:00]MH_I2C_Read... [19:01:00]Read from MH i2c: D1 [19:01:00]MH_I2C_Read... [19:01:00]Read from MH i2c: D1 01 00 [19:01:00]MH_I2C_Read... [19:01:00]Read from MH i2c: D1 01 00 77 76 00 BE [19:01:00]Write to MH i2c: 01 00 00 78 76 EE [19:01:00]Write i2c OK [19:01:00]MH_I2C_Read... [19:01:01]OFD Sender: No OFD packet to send [19:01:01]*** Cut start [19:01:01]*** Partial cut [19:01:01]*** CUTSNS_PIN = 1 [19:01:01]*** CUTSNS_PIN = 0 [19:01:01]*** Brake cut motor [19:01:02]*** Stop cut motor [19:01:02]*** Cut end [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 78 76 00 00 00 00 00 FF 0F 03 [19:01:02]process_action close_receipt done [19:01:02]requested_data is exist [19:01:02]produce_requested_data [19:01:02]requested_item fm.sn is exist - process it [19:01:02]wFMCommunicate request_size=4 [19:01:02]MH_SAM_APDU [19:01:02]CAPDU: 80 11 00 00 [19:01:02]Write to MH i2c: E2 08 00 79 76 80 11 00 00 00 00 00 00 69 [19:01:02]Write i2c OK [19:01:02]MH_I2C_Read... [19:01:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:02]Read from MH i2c: E2 [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: E2 17 00 [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: E2 17 00 79 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C4 [19:01:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:01:02]wFMCommunicate OK [19:01:02]requested_item fd.num is exist - process it [19:01:02]SAM_PROTO_GetFieldsCounters [19:01:02]wFMCommunicate request_size=4 [19:01:02]MH_SAM_APDU [19:01:02]CAPDU: 80 13 00 00 [19:01:02]Write to MH i2c: E2 08 00 7A 76 80 13 00 00 00 00 00 00 6C [19:01:02]Write i2c OK [19:01:02]MH_I2C_Read... [19:01:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:02]Read from MH i2c: E2 [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: E2 62 00 [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: E2 62 00 7A 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 66 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 92 [19:01: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 66 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:02]wFMCommunicate OK [19:01:02]SAM_PROTO_GetFieldsCounters done [19:01:02]requested_item shift.num is exist - process it [19:01:02]requested_item shift.opened is exist - process it [19:01:02]req_shift_opened [19:01:02]FM_GetShiftState [19:01:02]SAM_PROTO_GetShiftState [19:01:02]wFMCommunicate request_size=4 [19:01:02]MH_SAM_APDU [19:01:02]CAPDU: 80 13 01 00 [19:01:02]Write to MH i2c: E2 08 00 7B 76 80 13 01 00 00 00 00 00 6E [19:01:02]Write i2c OK [19:01:02]MH_I2C_Read... [19:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:02]Read from MH i2c: E2 [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: E2 0E 00 [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: E2 0E 00 7B 76 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 9C [19:01:02]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:01:02]wFMCommunicate OK [19:01:02]SAM_PROTO_GetShiftState done [19:01:02]FM_GetShiftState done [19:01:02]req_shift_opened done [19:01:02]requested_item shift.open_date is exist - process it [19:01:02]req_shift_open_date [19:01:02]req_shift_open_date done [19:01:02]produce_requested_data done [19:01:02]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118886,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [19:01:02]process_action_free close_receipt [19:01:02]json_value_free [19:01:02]json_value_free done [19:01:02]process_json_proto returns [19:01:02]Send response to host [19:01:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118886,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [19:01:02]free response buf [19:01:02]execute_script done [19:01:02]execute_script returns [19:01:02]free content buf [19:01:02]Sock 7.Close socket [19:01:02]Sock 7.Thread stoped [19:01:06]OFD Sender: No OFD packet to send [19:01:11]OFD Sender: No OFD packet to send [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]OFD Sender: No OFD packet to send [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]OFD Sender: No OFD packet to send [19:02:31]OFD Sender: No OFD packet to send [19:02:36]OFD Sender: No OFD packet to send [19:02:41]OFD Sender: No OFD packet to send [19:02:46]OFD Sender: No OFD packet to send [19:02:51]OFD Sender: No OFD packet to send [19:02:56]OFD Sender: No OFD packet to send [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:11]OFD Sender: No OFD packet to send [19:03:16]OFD Sender: No OFD packet to send [19:03:21]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]OFD Sender: No OFD packet to send [19:06:56]OFD Sender: No OFD packet to send [19:07:01]OFD Sender: No OFD packet to send [19:07:06]OFD Sender: No OFD packet to send [19:07:11]OFD Sender: No OFD packet to send [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:56]OFD Sender: No OFD packet to send [19:11:01]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:21]OFD Sender: No OFD packet to send [19:11:26]OFD Sender: No OFD packet to send [19:11:31]OFD Sender: No OFD packet to send [19:11:36]OFD Sender: No OFD packet to send [19:11:41]OFD Sender: No OFD packet to send [19:11:46]OFD Sender: No OFD packet to send [19:11:51]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:11]accept exits with 9 [19:13:11]New connection [19:13:11]New thread 3067383140 created [19:13:11]Thread 3067239780 joined [19:13:11]Waiting for new connection... [19:13:11] Sock 9.Parse request [19:13:11]Sock 9.Check first char [19:13:11]Sock 9.First char is OK [19:13:11]request: POST /json_proto HTTP/1.0 [19:13:11]Method: POST [19:13:11]URL: /json_proto [19:13:11]Method is POST - this is cgi request [19:13:11]url: /json_proto [19:13:11]query_string will be loaded in cgi processing [19:13:11]execute_cgi json_proto POST (null) [19:13:11]execute_cgi path=json_proto method=POST [19:13:11]POST find Content-Length [19:13:11]Host: 172.17.45.7:8080 [19:13:11]Content-Length: 674 [19:13:11]Content-Type: application/json [19:13:11] [19:13:11]POST finish read [19:13:11]Found Content-Length = 674 [19:13:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:11]execute_script... [19:13:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:11]POST & json_proto [19:13:11]process_json_proto [19:13:11]json parsed OK: [19:13:11]protocol is kg_v1.0 [19:13:11]action value=close_receipt [19:13:11]process_action close_receipt [19:13:11]cmd_close_receipt [19:13:11]MH_GetDate [19:13:11]Write to MH i2c: F0 00 00 7C 76 E1 [19:13:11]Write i2c OK [19:13:11]MH_I2C_Read... [19:13:11]Read from MH i2c: F0 [19:13:11]MH_I2C_Read... [19:13:11]Read from MH i2c: F0 09 00 [19:13:11]MH_I2C_Read... [19:13:11]Read from MH i2c: F0 09 00 7C 76 00 CE E9 A7 66 90 0F 3E 66 F1 [19:13:11]GetLastDocTimeStamp 1722279664 [19:13:11]current date 1722280398 [19:13:11]FM_GetShiftState [19:13:11]SAM_PROTO_GetShiftState [19:13:11]wFMCommunicate request_size=4 [19:13:11]MH_SAM_APDU [19:13:11]CAPDU: 80 13 01 00 [19:13:11]Write to MH i2c: E2 08 00 7D 76 80 13 01 00 00 00 00 00 70 [19:13:11]Write i2c OK [19:13:11]MH_I2C_Read... [19:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:11]Read from MH i2c: E2 [19:13:11]MH_I2C_Read... [19:13:11]Read from MH i2c: E2 0E 00 [19:13:11]MH_I2C_Read... [19:13:11]Read from MH i2c: E2 0E 00 7D 76 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 9E [19:13:11]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:13:11]wFMCommunicate OK [19:13:11]SAM_PROTO_GetShiftState done [19:13:11]FM_GetShiftState done [19:13:11]opened in 1722211641 [19:13:11]opened+sec_in_day 1722298041 [19:13:11]quantity*price = 60045 [19:13:11]sum+1 = 60047 [19:13:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 263 29.07.2024 19:13 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118887 ФПД: 123856860701375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T191318&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118887&fm=123856860701375&tin=02508201610067®Number=0000000000092660&sum=60000 [19:13:12]StoreToDocumentArchive [19:13:12]shift 434 fd 118887 [19:13:12]save to /storage/0434/doc_00118887 [19:13:12]save last doc name /storage/0434/doc_00118887 to /storage/kkm_last_doc_name [19:13:12]save OK [19:13:12]Clear old archive folders... [19:13:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:13:12]tlvbuf is 02086210 [19:13:12]SAM_PROTO_ClearQueue [19:13:12]wFMCommunicate request_size=4 [19:13:12]MH_SAM_APDU [19:13:12]CAPDU: 80 09 00 00 [19:13:12]Write to MH i2c: E2 08 00 8A 76 80 09 00 00 00 00 00 00 72 [19:13:12]Write i2c OK [19:13:12]MH_I2C_Read... [19:13:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:12]Read from MH i2c: E2 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: E2 03 00 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: E2 03 00 8A 76 00 90 00 74 [19:13:12]RAPDU: 90 00 [19:13:12]wFMCommunicate OK [19:13:12]SAM_PROTO_ClearQueue done [19:13:12]KKMCreateOFDPacket [19:13:12]OFDProtocolAddRootSTLVToBuf [19:13:12]FM_MakeSignedData [19:13:12]FM_MakeSignedData [19:13:12]SAM_PROTO_SignData [19:13:12]wFMCommunicate request_size=4 [19:13:12]MH_SAM_APDU [19:13:12]CAPDU: 80 0D 01 02 [19:13:12]Write to MH i2c: E2 08 00 8B 76 80 0D 01 02 00 00 00 00 7A [19:13:12]Write i2c OK [19:13:12]MH_I2C_Read... [19:13:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:12]Read from MH i2c: E2 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: E2 03 00 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: E2 03 00 8B 76 00 90 00 75 [19:13:12]RAPDU: 90 00 [19:13:12]wFMCommunicate OK [19:13:12]wFMCommunicate request_size=255 [19:13:12]MH_SAM_APDU [19:13:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 CE E9 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 D0 01 00 35 04 06 00 70 A5 AC 2F [19:13:12]Write to MH i2c: E2 02 01 8C 76 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 CE E9 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 D0 01 00 35 04 06 00 70 A5 AC 2F 00 00 72 [19:13:12]Write i2c OK [19:13:12]MH_I2C_Read... [19:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:12]Read from MH i2c: E2 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: E2 03 00 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: E2 03 00 8C 76 00 90 00 76 [19:13:12]RAPDU: 90 00 [19:13:12]wFMCommunicate OK [19:13:12]wFMCommunicate request_size=7 [19:13:12]MH_SAM_APDU [19:13:12]CAPDU: 80 0D 02 02 02 62 BF [19:13:12]Write to MH i2c: E2 0A 00 8D 76 80 0D 02 02 02 00 62 BF 00 00 A2 [19:13:12]Write i2c OK [19:13:12]MH_I2C_Read... [19:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:12]Read from MH i2c: E2 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: E2 03 00 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: E2 03 00 8D 76 00 90 00 77 [19:13:12]RAPDU: 90 00 [19:13:12]wFMCommunicate OK [19:13:12]wFMCommunicate request_size=4 [19:13:12]MH_SAM_APDU [19:13:12]CAPDU: 80 0D 03 02 [19:13:12]Write to MH i2c: E2 08 00 8E 76 80 0D 03 02 00 00 00 00 7F [19:13:12]Write i2c OK [19:13:12]MH_I2C_Read... [19:13:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:12]Read from MH i2c: E2 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: E2 0B 00 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: E2 0B 00 8E 76 00 16 49 14 7D 38 38 89 38 90 00 A1 [19:13:12]RAPDU: 16 49 14 7D 38 38 89 38 90 00 [19:13:12]wFMCommunicate OK [19:13:12]SAM_PROTO_SignData done [19:13:12]FM_MakeSignedData done [19:13:12]CreateOFDProtocolMessage [19:13:12]wFMCommunicate request_size=4 [19:13:12]MH_SAM_APDU [19:13:12]CAPDU: 80 11 00 00 [19:13:12]Write to MH i2c: E2 08 00 8F 76 80 11 00 00 00 00 00 00 7F [19:13:12]Write i2c OK [19:13:12]MH_I2C_Read... [19:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:12]Read from MH i2c: E2 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: E2 17 00 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: E2 17 00 8F 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DA [19:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:13:12]wFMCommunicate OK [19:13:12]CreateOFDProtocolMessage done [19:13:12]OFDSenderStorePacket 118887 [19:13:12]StoreOFDPacket docnum=118887 [19:13:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 56 73 04 01 91 D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 CE E9 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 D0 01 00 35 04 06 00 70 A5 AC 2F 62 BF 16 49 14 7D 38 38 89 38 [19:13:12]CheckFolder [19:13:12]dirname=/storage/ofd_packets [19:13:12]CheckFolder done [19:13:12]ProducePacketName [19:13:12]name=ofd_packets/00118887 [19:13:12]NVStorageSaveData ofd_packets/00118887 [19:13:12]File name is /storage/ofd_packets/00118887 [19:13:12]Write 298 bytes [19:13:12]NVStorageSaveData done [19:13:12]OFDSenderStorePacket done [19:13:12]KKMCreateOFDPacket done [19:13:12]NVStorageSaveData kkm_last_timestamp [19:13:12]File name is /storage/kkm_last_timestamp [19:13:12]Write 4 bytes [19:13:12]NVStorageSaveData done [19:13:12]ExternCall_PrintAddStr [19:13:12]wPrintStart [19:13:12]Write to MH i2c: 01 00 00 90 76 06 [19:13:12]Write i2c OK [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: 01 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: 01 07 00 [19:13:12]MH_I2C_Read... [19:13:12]Read from MH i2c: 01 07 00 90 76 00 00 00 00 00 FF 0F 1B [19:13:12]RasterBufferAndPrint [19:13:12]line Счет N : (1)949778 [19:13:12]line ИНН: 02508201610067 [19:13:12]line Контрольно-Кассовый Чек [19:13:12]line ПРОДАЖА [19:13:12]line ТРК (МРК, ГНК) : 54 [19:13:12]line Товар: 2710194800 [19:13:12]line ДТ-К-5 [19:13:12]line 7.880 * 76.20 [19:13:12]line = 600.46 [19:13:12]line НДС 12% НСП 1% [19:13:12]line > о реализуемом товаре [19:13:12]line ОКРУГЛЕНИЕ: -0.46 [19:13:12]line ИТОГО: 600.00 [19:13:12]line Внесено: 600.00 [19:13:12]line СДАЧА: 0.00 [19:13:12]line НСП 1% : 5.31 [19:13:12]line НДС 12% : 63.77 [19:13:12]line Наличными: 600.00 [19:13:12]line Безнал.: 0.00 [19:13:12]line Место: АЗС № 134 "Партнер Нефть" [19:13:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:13:12]line СНО: Общий режим [19:13:12]line Чек 263 29.07.2024 19:13 [19:13:12]line Смена: 434 ФФД: 1.0 [19:13:12]line ЗНМ: 0300000044 [19:13:12]line РНМ: 0000000000092660 [19:13:12]line Версия ККМ: 001 [19:13:12]line ФМ: 0000000000874939 [19:13:12]line ФД: 118887 [19:13:12]line ФПД: 123856860701375 [19:13:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T191318&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118887&fm=123856860701375&tin=02508201610067®Number=0000000000092660&sum=60000 [19:13:13]OFD Sender: Processing packet 118887 [packets to send 86, broken 85] [19:13:13]ProducePacketName [19:13:13]name=ofd_packets/00118887 [19:13:13]OFD Sender: To server: pG, [19:13:13]CommunicateWithHost lk.salyk.kg:30040 [19:13:13]ConnectInit lk.salyk.kg [19:13:13]written 0, free lines is 4095 [19:13:13]Connected sock=10 [19:13:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 56 73 04 01 91 D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 CE E9 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 D0 01 00 35 04 06 00 70 A5 AC 2F 62 BF 16 49 14 7D 38 38 89 38 [19:13:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F1 D2 47 00 C3 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 34 39 33 39 10 04 04 00 67 D0 01 00 F4 03 04 00 5B 97 A7 66 B6 04 01 00 00 B5 3C 90 5C 89 0F 54 69 [19:13:13]CommunicateWithHost err = 0 [19:13:13]CheckOFDResponse [19:13:13]1017 (14) - 77093643461234 [19:13:13]1041 (16) - 0000000000874939 [19:13:13]1040 (4) - 118887 [19:13:13]1012 (4) - 29.07.2024 13:21 [19:13:13]1206 (1) - 0 [19:13:13]OFD Sender: Remove packet 118887 [19:13:13]ProducePacketName [19:13:13]name=ofd_packets/00118887 [19:13:13]NVStorageDeleteData [19:13:13]Write to MH i2c: 01 00 00 BA 76 30 [19:13:13]Write i2c OK [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: 01 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: 01 07 00 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: 01 07 00 BA 76 00 00 00 00 00 D9 0C 1C [19:13:13]RasterBufferAndPrint [19:13:13]line [19:13:13]line [19:13:13]line [19:13:13]line [19:13:13]line [19:13:13]written 0, free lines is 3296 [19:13:13]MH_Cut [19:13:13]Write to MH i2c: D1 01 00 C1 76 01 09 [19:13:13]Write i2c OK [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: D1 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: D1 01 00 [19:13:13]MH_I2C_Read... [19:13:13]Read from MH i2c: D1 01 00 C1 76 00 08 [19:13:13]Write to MH i2c: 01 00 00 C2 76 38 [19:13:13]Write i2c OK [19:13:13]MH_I2C_Read... [19:13:13]OFD Sender: No OFD packet to send [19:13:14]*** Cut start [19:13:14]*** Partial cut [19:13:14]*** CUTSNS_PIN = 1 [19:13:14]*** CUTSNS_PIN = 0 [19:13:14]*** Brake cut motor [19:13:14]Read from MH i2c: 01 [19:13:14]MH_I2C_Read... [19:13:14]*** Stop cut motor [19:13:14]*** Cut end [19:13:14]Read from MH i2c: 01 07 00 [19:13:14]MH_I2C_Read... [19:13:14]Read from MH i2c: 01 07 00 C2 76 00 00 00 00 00 FF 0F 4D [19:13:14]process_action close_receipt done [19:13:14]requested_data is exist [19:13:14]produce_requested_data [19:13:14]requested_item fm.sn is exist - process it [19:13:14]wFMCommunicate request_size=4 [19:13:14]MH_SAM_APDU [19:13:14]CAPDU: 80 11 00 00 [19:13:14]Write to MH i2c: E2 08 00 C3 76 80 11 00 00 00 00 00 00 B3 [19:13:14]Write i2c OK [19:13:14]MH_I2C_Read... [19:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:14]Read from MH i2c: E2 [19:13:14]MH_I2C_Read... [19:13:14]Read from MH i2c: E2 17 00 [19:13:14]MH_I2C_Read... [19:13:14]Read from MH i2c: E2 17 00 C3 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0E [19:13:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:13:14]wFMCommunicate OK [19:13:14]requested_item fd.num is exist - process it [19:13:14]SAM_PROTO_GetFieldsCounters [19:13:14]wFMCommunicate request_size=4 [19:13:14]MH_SAM_APDU [19:13:14]CAPDU: 80 13 00 00 [19:13:14]Write to MH i2c: E2 08 00 C4 76 80 13 00 00 00 00 00 00 B6 [19:13:14]Write i2c OK [19:13:14]MH_I2C_Read... [19:13:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:15]Read from MH i2c: E2 [19:13:15]MH_I2C_Read... [19:13:15]Read from MH i2c: E2 62 00 [19:13:15]MH_I2C_Read... [19:13:15]Read from MH i2c: E2 62 00 C4 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 67 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 E0 [19:13: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 67 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:13:15]wFMCommunicate OK [19:13:15]SAM_PROTO_GetFieldsCounters done [19:13:15]requested_item shift.num is exist - process it [19:13:15]requested_item shift.opened is exist - process it [19:13:15]req_shift_opened [19:13:15]FM_GetShiftState [19:13:15]SAM_PROTO_GetShiftState [19:13:15]wFMCommunicate request_size=4 [19:13:15]MH_SAM_APDU [19:13:15]CAPDU: 80 13 01 00 [19:13:15]Write to MH i2c: E2 08 00 C5 76 80 13 01 00 00 00 00 00 B8 [19:13:15]Write i2c OK [19:13:15]MH_I2C_Read... [19:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:15]Read from MH i2c: E2 [19:13:15]MH_I2C_Read... [19:13:15]Read from MH i2c: E2 0E 00 [19:13:15]MH_I2C_Read... [19:13:15]Read from MH i2c: E2 0E 00 C5 76 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E6 [19:13:15]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:13:15]wFMCommunicate OK [19:13:15]SAM_PROTO_GetShiftState done [19:13:15]FM_GetShiftState done [19:13:15]req_shift_opened done [19:13:15]requested_item shift.open_date is exist - process it [19:13:15]req_shift_open_date [19:13:15]req_shift_open_date done [19:13:15]produce_requested_data done [19:13:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118887,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [19:13:15]process_action_free close_receipt [19:13:15]json_value_free [19:13:15]json_value_free done [19:13:15]process_json_proto returns [19:13:15]Send response to host [19:13:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118887,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [19:13:15]free response buf [19:13:15]execute_script done [19:13:15]execute_script returns [19:13:15]free content buf [19:13:15]Sock 9.Close socket [19:13:15]Sock 9.Thread stoped [19:13:18]OFD Sender: No OFD packet to send [19:13:23]OFD Sender: No OFD packet to send [19:13:28]OFD Sender: No OFD packet to send [19:13:33]OFD Sender: No OFD packet to send [19:13:38]OFD Sender: No OFD packet to send [19:13:43]OFD Sender: No OFD packet to send [19:13:48]OFD Sender: No OFD packet to send [19:13:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:03]OFD Sender: No OFD packet to send [19:14:08]OFD Sender: No OFD packet to send [19:14:13]OFD Sender: No OFD packet to send [19:14:18]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:59]OFD Sender: No OFD packet to send [19:18:04]OFD Sender: No OFD packet to send [19:18:09]OFD Sender: No OFD packet to send [19:18:14]OFD Sender: No OFD packet to send [19:18:19]OFD Sender: No OFD packet to send [19:18:24]OFD Sender: No OFD packet to send [19:18:29]OFD Sender: No OFD packet to send [19:18:34]OFD Sender: No OFD packet to send [19:18:39]OFD Sender: No OFD packet to send [19:18:44]OFD Sender: No OFD packet to send [19:18:49]OFD Sender: No OFD packet to send [19:18:54]OFD Sender: No OFD packet to send [19:18:59]OFD Sender: No OFD packet to send [19:19:04]OFD Sender: No OFD packet to send [19:19:09]OFD Sender: No OFD packet to send [19:19:12]accept exits with 7 [19:19:12]New connection [19:19:12]New thread 3067239780 created [19:19:12]Thread 3067383140 joined [19:19:12]Waiting for new connection... [19:19:12] Sock 7.Parse request [19:19:12]Sock 7.Check first char [19:19:12]Sock 7.First char is OK [19:19:12]request: POST /json_proto HTTP/1.0 [19:19:12]Method: POST [19:19:12]URL: /json_proto [19:19:12]Method is POST - this is cgi request [19:19:12]url: /json_proto [19:19:12]query_string will be loaded in cgi processing [19:19:12]execute_cgi json_proto POST (null) [19:19:12]execute_cgi path=json_proto method=POST [19:19:12]POST find Content-Length [19:19:12]Host: 172.17.45.7:8080 [19:19:12]Content-Length: 678 [19:19:12]Content-Type: application/json [19:19:12] [19:19:12]POST finish read [19:19:12]Found Content-Length = 678 [19:19:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:12]execute_script... [19:19: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)949779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:12]POST & json_proto [19:19:12]process_json_proto [19:19:12]json parsed OK: [19:19:12]protocol is kg_v1.0 [19:19:12]action value=close_receipt [19:19:12]process_action close_receipt [19:19:12]cmd_close_receipt [19:19:12]MH_GetDate [19:19:12]Write to MH i2c: F0 00 00 C6 76 2B [19:19:12]Write i2c OK [19:19:12]MH_I2C_Read... [19:19:12]Read from MH i2c: F0 [19:19:12]MH_I2C_Read... [19:19:12]Read from MH i2c: F0 09 00 [19:19:12]MH_I2C_Read... [19:19:12]Read from MH i2c: F0 09 00 C6 76 00 37 EB A7 66 90 0F 3E 66 A6 [19:19:12]GetLastDocTimeStamp 1722280398 [19:19:12]current date 1722280759 [19:19:12]FM_GetShiftState [19:19:12]SAM_PROTO_GetShiftState [19:19:12]wFMCommunicate request_size=4 [19:19:12]MH_SAM_APDU [19:19:12]CAPDU: 80 13 01 00 [19:19:12]Write to MH i2c: E2 08 00 C7 76 80 13 01 00 00 00 00 00 BA [19:19:12]Write i2c OK [19:19:12]MH_I2C_Read... [19:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:12]Read from MH i2c: E2 [19:19:12]MH_I2C_Read... [19:19:12]Read from MH i2c: E2 0E 00 [19:19:12]MH_I2C_Read... [19:19:12]Read from MH i2c: E2 0E 00 C7 76 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E8 [19:19:12]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:19:12]wFMCommunicate OK [19:19:12]SAM_PROTO_GetShiftState done [19:19:12]FM_GetShiftState done [19:19:12]opened in 1722211641 [19:19:12]opened+sec_in_day 1722298041 [19:19:12]quantity*price = 70037 [19:19:12]sum+1 = 70038 [19:19:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 264 29.07.2024 19:19 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118888 ФПД: 161832687434757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T191919&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118888&fm=161832687434757&tin=02508201610067®Number=0000000000092660&sum=70000 [19:19:13]StoreToDocumentArchive [19:19:13]shift 434 fd 118888 [19:19:13]save to /storage/0434/doc_00118888 [19:19:13]save last doc name /storage/0434/doc_00118888 to /storage/kkm_last_doc_name [19:19:13]save OK [19:19:13]Clear old archive folders... [19:19:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:19:13]tlvbuf is 020DFB90 [19:19:13]SAM_PROTO_ClearQueue [19:19:13]wFMCommunicate request_size=4 [19:19:13]MH_SAM_APDU [19:19:13]CAPDU: 80 09 00 00 [19:19:13]Write to MH i2c: E2 08 00 D4 76 80 09 00 00 00 00 00 00 BC [19:19:13]Write i2c OK [19:19:13]MH_I2C_Read... [19:19:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:13]Read from MH i2c: E2 [19:19:13]MH_I2C_Read... [19:19:13]Read from MH i2c: E2 03 00 [19:19:13]MH_I2C_Read... [19:19:13]Read from MH i2c: E2 03 00 D4 76 00 90 00 BE [19:19:13]RAPDU: 90 00 [19:19:13]wFMCommunicate OK [19:19:13]SAM_PROTO_ClearQueue done [19:19:13]KKMCreateOFDPacket [19:19:13]OFDProtocolAddRootSTLVToBuf [19:19:13]FM_MakeSignedData [19:19:13]FM_MakeSignedData [19:19:13]SAM_PROTO_SignData [19:19:13]wFMCommunicate request_size=4 [19:19:13]MH_SAM_APDU [19:19:13]CAPDU: 80 0D 01 02 [19:19:13]Write to MH i2c: E2 08 00 D5 76 80 0D 01 02 00 00 00 00 C4 [19:19:13]Write i2c OK [19:19:13]MH_I2C_Read... [19:19:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:13]Read from MH i2c: E2 [19:19:13]MH_I2C_Read... [19:19:13]Read from MH i2c: E2 03 00 [19:19:13]MH_I2C_Read... [19:19:13]Read from MH i2c: E2 03 00 D5 76 00 90 00 BF [19:19:13]RAPDU: 90 00 [19:19:13]wFMCommunicate OK [19:19:13]wFMCommunicate request_size=255 [19:19:13]MH_SAM_APDU [19:19:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 37 EB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 D0 01 00 35 04 06 00 93 [19:19:13]Write to MH i2c: E2 02 01 D6 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 37 EB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 D0 01 00 35 04 06 00 93 00 00 E6 [19:19:13]Write i2c OK [19:19:13]MH_I2C_Read... [19:19:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:14]Read from MH i2c: E2 [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: E2 03 00 [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: E2 03 00 D6 76 00 90 00 C0 [19:19:14]RAPDU: 90 00 [19:19:14]wFMCommunicate OK [19:19:14]wFMCommunicate request_size=10 [19:19:14]MH_SAM_APDU [19:19:14]CAPDU: 80 0D 02 02 05 2F 9B D8 FC 05 [19:19:14]Write to MH i2c: E2 0D 00 D7 76 80 0D 02 02 05 00 2F 9B D8 FC 05 00 00 74 [19:19:14]Write i2c OK [19:19:14]MH_I2C_Read... [19:19:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:14]Read from MH i2c: E2 [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: E2 03 00 [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: E2 03 00 D7 76 00 90 00 C1 [19:19:14]RAPDU: 90 00 [19:19:14]wFMCommunicate OK [19:19:14]wFMCommunicate request_size=4 [19:19:14]MH_SAM_APDU [19:19:14]CAPDU: 80 0D 03 02 [19:19:14]Write to MH i2c: E2 08 00 D8 76 80 0D 03 02 00 00 00 00 C9 [19:19:14]Write i2c OK [19:19:14]MH_I2C_Read... [19:19:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:14]Read from MH i2c: E2 [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: E2 0B 00 [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: E2 0B 00 D8 76 00 C5 BE DA BF 7B C5 74 DD 90 00 77 [19:19:14]RAPDU: C5 BE DA BF 7B C5 74 DD 90 00 [19:19:14]wFMCommunicate OK [19:19:14]SAM_PROTO_SignData done [19:19:14]FM_MakeSignedData done [19:19:14]CreateOFDProtocolMessage [19:19:14]wFMCommunicate request_size=4 [19:19:14]MH_SAM_APDU [19:19:14]CAPDU: 80 11 00 00 [19:19:14]Write to MH i2c: E2 08 00 D9 76 80 11 00 00 00 00 00 00 C9 [19:19:14]Write i2c OK [19:19:14]MH_I2C_Read... [19:19:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:14]Read from MH i2c: E2 [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: E2 17 00 [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: E2 17 00 D9 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 24 [19:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:19:14]wFMCommunicate OK [19:19:14]CreateOFDProtocolMessage done [19:19:14]OFDSenderStorePacket 118888 [19:19:14]StoreOFDPacket docnum=118888 [19:19:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 54 7D 07 01 A0 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 37 EB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 D0 01 00 35 04 06 00 93 2F 9B D8 FC 05 C5 BE DA BF 7B C5 74 DD [19:19:14]CheckFolder [19:19:14]dirname=/storage/ofd_packets [19:19:14]CheckFolder done [19:19:14]ProducePacketName [19:19:14]name=ofd_packets/00118888 [19:19:14]NVStorageSaveData ofd_packets/00118888 [19:19:14]File name is /storage/ofd_packets/00118888 [19:19:14]Write 301 bytes [19:19:14]NVStorageSaveData done [19:19:14]OFDSenderStorePacket done [19:19:14]KKMCreateOFDPacket done [19:19:14]NVStorageSaveData kkm_last_timestamp [19:19:14]File name is /storage/kkm_last_timestamp [19:19:14]Write 4 bytes [19:19:14]NVStorageSaveData done [19:19:14]ExternCall_PrintAddStr [19:19:14]wPrintStart [19:19:14]Write to MH i2c: 01 00 00 DA 76 50 [19:19:14]Write i2c OK [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: 01 [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: 01 07 00 [19:19:14]MH_I2C_Read... [19:19:14]Read from MH i2c: 01 07 00 DA 76 00 00 00 00 00 FF 0F 65 [19:19:14]RasterBufferAndPrint [19:19:14]line Счет N : (1)949779 [19:19:14]line ИНН: 02508201610067 [19:19:14]line Контрольно-Кассовый Чек [19:19:14]line ПРОДАЖА [19:19:14]line ТРК (МРК, ГНК) : 41 [19:19:14]line Товар: 2710124130 [19:19:14]line Аи-92-К-4 [19:19:14]line 10.330 * 67.80 [19:19:14]line = 700.37 [19:19:14]line НДС 12% НСП 1% [19:19:14]line > о реализуемом товаре [19:19:14]line ОКРУГЛЕНИЕ: -0.37 [19:19:14]line ИТОГО: 700.00 [19:19:14]line Внесено: 700.00 [19:19:14]line СДАЧА: 0.00 [19:19:14]line НСП 1% : 6.20 [19:19:14]line НДС 12% : 74.38 [19:19:14]line Наличными: 700.00 [19:19:14]line Безнал.: 0.00 [19:19:14]line Место: АЗС № 134 "Партнер Нефть" [19:19:14]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:19:14]line СНО: Общий режим [19:19:14]line Чек 264 29.07.2024 19:19 [19:19:14]line Смена: 434 ФФД: 1.0 [19:19:14]line ЗНМ: 0300000044 [19:19:14]line РНМ: 0000000000092660 [19:19:14]line Версия ККМ: 001 [19:19:14]line ФМ: 0000000000874939 [19:19:14]line ФД: 118888 [19:19:14]line ФПД: 161832687434757 [19:19:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T191919&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118888&fm=161832687434757&tin=02508201610067®Number=0000000000092660&sum=70000 [19:19:14]OFD Sender: Processing packet 118888 [packets to send 86, broken 85] [19:19:14]ProducePacketName [19:19:14]name=ofd_packets/00118888 [19:19:14]OFD Sender: To server: pG, [19:19:14]CommunicateWithHost lk.salyk.kg:30040 [19:19:14]ConnectInit lk.salyk.kg [19:19:14]written 0, free lines is 4095 [19:19:14]Connected sock=10 [19:19:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 54 7D 07 01 A0 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 37 EB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 D0 01 00 35 04 06 00 93 2F 9B D8 FC 05 C5 BE DA BF 7B C5 74 DD [19:19:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A9 D0 47 00 FC 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 34 39 33 39 10 04 04 00 68 D0 01 00 F4 03 04 00 C4 98 A7 66 B6 04 01 00 00 26 59 A5 72 26 A5 5B EB [19:19:15]CommunicateWithHost err = 0 [19:19:15]CheckOFDResponse [19:19:15]1017 (14) - 77093643461234 [19:19:15]1041 (16) - 0000000000874939 [19:19:15]1040 (4) - 118888 [19:19:15]1012 (4) - 29.07.2024 13:27 [19:19:15]1206 (1) - 0 [19:19:15]OFD Sender: Remove packet 118888 [19:19:15]ProducePacketName [19:19:15]name=ofd_packets/00118888 [19:19:15]NVStorageDeleteData [19:19:15]Write to MH i2c: 01 00 00 04 77 7B [19:19:15]Write i2c OK [19:19:15]MH_I2C_Read... [19:19:15]Read from MH i2c: 01 [19:19:15]MH_I2C_Read... [19:19:15]Read from MH i2c: 01 07 00 [19:19:15]MH_I2C_Read... [19:19:15]Read from MH i2c: 01 07 00 04 77 00 00 00 00 00 DC 0C 6A [19:19:15]RasterBufferAndPrint [19:19:15]line [19:19:15]line [19:19:15]line [19:19:15]line [19:19:15]line [19:19:15]written 0, free lines is 3298 [19:19:15]MH_Cut [19:19:15]Write to MH i2c: D1 01 00 0B 77 01 54 [19:19:15]Write i2c OK [19:19:15]MH_I2C_Read... [19:19:15]Read from MH i2c: D1 [19:19:15]MH_I2C_Read... [19:19:15]Read from MH i2c: D1 01 00 [19:19:15]MH_I2C_Read... [19:19:15]Read from MH i2c: D1 01 00 0B 77 00 53 [19:19:15]Write to MH i2c: 01 00 00 0C 77 83 [19:19:15]Write i2c OK [19:19:15]MH_I2C_Read... [19:19:15]OFD Sender: No OFD packet to send [19:19:15]*** Cut start [19:19:15]*** Partial cut [19:19:15]*** CUTSNS_PIN = 1 [19:19:15]*** CUTSNS_PIN = 0 [19:19:16]*** Brake cut motor [19:19:16]Read from MH i2c: 01 [19:19:16]MH_I2C_Read... [19:19:16]*** Stop cut motor [19:19:16]*** Cut end [19:19:16]Read from MH i2c: 01 07 00 [19:19:16]MH_I2C_Read... [19:19:16]Read from MH i2c: 01 07 00 0C 77 00 00 00 00 00 FF 0F 98 [19:19:16]process_action close_receipt done [19:19:16]requested_data is exist [19:19:16]produce_requested_data [19:19:16]requested_item fm.sn is exist - process it [19:19:16]wFMCommunicate request_size=4 [19:19:16]MH_SAM_APDU [19:19:16]CAPDU: 80 11 00 00 [19:19:16]Write to MH i2c: E2 08 00 0D 77 80 11 00 00 00 00 00 00 FE [19:19:16]Write i2c OK [19:19:16]MH_I2C_Read... [19:19:16]Read from MH i2c: E2 [19:19:16]MH_I2C_Read... [19:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:16]Read from MH i2c: E2 17 00 [19:19:16]MH_I2C_Read... [19:19:16]Read from MH i2c: E2 17 00 0D 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 59 [19:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:19:16]wFMCommunicate OK [19:19:16]requested_item fd.num is exist - process it [19:19:16]SAM_PROTO_GetFieldsCounters [19:19:16]wFMCommunicate request_size=4 [19:19:16]MH_SAM_APDU [19:19:16]CAPDU: 80 13 00 00 [19:19:16]Write to MH i2c: E2 08 00 0E 77 80 13 00 00 00 00 00 00 01 [19:19:16]Write i2c OK [19:19:16]MH_I2C_Read... [19:19:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:16]Read from MH i2c: E2 [19:19:16]MH_I2C_Read... [19:19:16]Read from MH i2c: E2 62 00 [19:19:16]MH_I2C_Read... [19:19:16]Read from MH i2c: E2 62 00 0E 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 68 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 2F [19:19: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 68 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:19:16]wFMCommunicate OK [19:19:16]SAM_PROTO_GetFieldsCounters done [19:19:16]requested_item shift.num is exist - process it [19:19:16]requested_item shift.opened is exist - process it [19:19:16]req_shift_opened [19:19:16]FM_GetShiftState [19:19:16]SAM_PROTO_GetShiftState [19:19:16]wFMCommunicate request_size=4 [19:19:16]MH_SAM_APDU [19:19:16]CAPDU: 80 13 01 00 [19:19:16]Write to MH i2c: E2 08 00 0F 77 80 13 01 00 00 00 00 00 03 [19:19:16]Write i2c OK [19:19:16]MH_I2C_Read... [19:19:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:16]Read from MH i2c: E2 [19:19:16]MH_I2C_Read... [19:19:16]Read from MH i2c: E2 0E 00 [19:19:16]MH_I2C_Read... [19:19:16]Read from MH i2c: E2 0E 00 0F 77 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 31 [19:19:16]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:19:16]wFMCommunicate OK [19:19:16]SAM_PROTO_GetShiftState done [19:19:16]FM_GetShiftState done [19:19:16]req_shift_opened done [19:19:16]requested_item shift.open_date is exist - process it [19:19:16]req_shift_open_date [19:19:16]req_shift_open_date done [19:19:16]produce_requested_data done [19:19:16]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118888,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [19:19:16]process_action_free close_receipt [19:19:16]json_value_free [19:19:16]json_value_free done [19:19:16]process_json_proto returns [19:19:16]Send response to host [19:19:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118888,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [19:19:16]free response buf [19:19:16]execute_script done [19:19:16]execute_script returns [19:19:16]free content buf [19:19:16]Sock 7.Close socket [19:19:16]Sock 7.Thread stoped [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:27]accept exits with 9 [19:19:27]New connection [19:19:27]New thread 3067383140 created [19:19:27]Thread 3067239780 joined [19:19:27]Waiting for new connection... [19:19:27] Sock 9.Parse request [19:19:27]Sock 9.Check first char [19:19:27]Sock 9.First char is OK [19:19:27]request: POST /json_proto HTTP/1.0 [19:19:27]Method: POST [19:19:27]URL: /json_proto [19:19:27]Method is POST - this is cgi request [19:19:27]url: /json_proto [19:19:27]query_string will be loaded in cgi processing [19:19:27]execute_cgi json_proto POST (null) [19:19:27]execute_cgi path=json_proto method=POST [19:19:27]POST find Content-Length [19:19:27]Host: 172.17.45.7:8080 [19:19:27]Content-Length: 677 [19:19:27]Content-Type: application/json [19:19:27] [19:19:27]POST finish read [19:19:27]Found Content-Length = 677 [19:19:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:27]execute_script... [19:19:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:27]POST & json_proto [19:19:27]process_json_proto [19:19:27]json parsed OK: [19:19:27]protocol is kg_v1.0 [19:19:27]action value=close_receipt [19:19:27]process_action close_receipt [19:19:27]cmd_close_receipt [19:19:27]MH_GetDate [19:19:27]Write to MH i2c: F0 00 00 10 77 76 [19:19:27]Write i2c OK [19:19:27]MH_I2C_Read... [19:19:27]Read from MH i2c: F0 [19:19:27]MH_I2C_Read... [19:19:27]Read from MH i2c: F0 09 00 [19:19:27]MH_I2C_Read... [19:19:27]Read from MH i2c: F0 09 00 10 77 00 46 EB A7 66 90 0F 3E 66 00 [19:19:27]GetLastDocTimeStamp 1722280759 [19:19:27]current date 1722280774 [19:19:27]FM_GetShiftState [19:19:27]SAM_PROTO_GetShiftState [19:19:27]wFMCommunicate request_size=4 [19:19:27]MH_SAM_APDU [19:19:27]CAPDU: 80 13 01 00 [19:19:27]Write to MH i2c: E2 08 00 11 77 80 13 01 00 00 00 00 00 05 [19:19:27]Write i2c OK [19:19:27]MH_I2C_Read... [19:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:28]Read from MH i2c: E2 [19:19:28]MH_I2C_Read... [19:19:28]Read from MH i2c: E2 0E 00 [19:19:28]MH_I2C_Read... [19:19:28]Read from MH i2c: E2 0E 00 11 77 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 33 [19:19:28]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:19:28]wFMCommunicate OK [19:19:28]SAM_PROTO_GetShiftState done [19:19:28]FM_GetShiftState done [19:19:28]opened in 1722211641 [19:19:28]opened+sec_in_day 1722298041 [19:19:28]quantity*price = 60003 [19:19:28]sum+1 = 60004 [19:19:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 265 29.07.2024 19:19 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118889 ФПД: 57960309694124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T191934&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118889&fm=57960309694124&tin=02508201610067®Number=0000000000092660&sum=60000 [19:19:29]StoreToDocumentArchive [19:19:29]shift 434 fd 118889 [19:19:29]save to /storage/0434/doc_00118889 [19:19:29]save last doc name /storage/0434/doc_00118889 to /storage/kkm_last_doc_name [19:19:29]save OK [19:19:29]Clear old archive folders... [19:19:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:19:29]tlvbuf is B6FC1B80 [19:19:29]SAM_PROTO_ClearQueue [19:19:29]wFMCommunicate request_size=4 [19:19:29]MH_SAM_APDU [19:19:29]CAPDU: 80 09 00 00 [19:19:29]Write to MH i2c: E2 08 00 1E 77 80 09 00 00 00 00 00 00 07 [19:19:29]Write i2c OK [19:19:29]MH_I2C_Read... [19:19:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:29]Read from MH i2c: E2 [19:19:29]MH_I2C_Read... [19:19:29]Read from MH i2c: E2 03 00 [19:19:29]MH_I2C_Read... [19:19:29]Read from MH i2c: E2 03 00 1E 77 00 90 00 09 [19:19:29]RAPDU: 90 00 [19:19:29]wFMCommunicate OK [19:19:29]SAM_PROTO_ClearQueue done [19:19:29]KKMCreateOFDPacket [19:19:29]OFDProtocolAddRootSTLVToBuf [19:19:29]FM_MakeSignedData [19:19:29]FM_MakeSignedData [19:19:29]SAM_PROTO_SignData [19:19:29]wFMCommunicate request_size=4 [19:19:29]MH_SAM_APDU [19:19:29]CAPDU: 80 0D 01 02 [19:19:29]Write to MH i2c: E2 08 00 1F 77 80 0D 01 02 00 00 00 00 0F [19:19:29]Write i2c OK [19:19:29]MH_I2C_Read... [19:19:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:29]Read from MH i2c: E2 [19:19:29]MH_I2C_Read... [19:19:29]Read from MH i2c: E2 03 00 [19:19:29]MH_I2C_Read... [19:19:29]Read from MH i2c: E2 03 00 1F 77 00 90 00 0A [19:19:29]RAPDU: 90 00 [19:19:29]wFMCommunicate OK [19:19:29]wFMCommunicate request_size=255 [19:19:29]MH_SAM_APDU [19:19: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 46 EB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 D0 01 00 35 04 06 00 34 [19:19:29]Write to MH i2c: E2 02 01 20 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 46 EB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 D0 01 00 35 04 06 00 34 00 00 C3 [19:19:29]Write i2c OK [19:19:29]MH_I2C_Read... [19:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:29]Read from MH i2c: E2 [19:19:29]MH_I2C_Read... [19:19:29]Read from MH i2c: E2 03 00 [19:19:29]MH_I2C_Read... [19:19:29]Read from MH i2c: E2 03 00 20 77 00 90 00 0B [19:19:29]RAPDU: 90 00 [19:19:29]wFMCommunicate OK [19:19:29]wFMCommunicate request_size=10 [19:19:29]MH_SAM_APDU [19:19:29]CAPDU: 80 0D 02 02 05 B6 EF AB 9E AC [19:19:29]Write to MH i2c: E2 0D 00 21 77 80 0D 02 02 05 00 B6 EF AB 9E AC 00 00 B6 [19:19:29]Write i2c OK [19:19:29]MH_I2C_Read... [19:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:29]Read from MH i2c: E2 [19:19:29]MH_I2C_Read... [19:19:29]Read from MH i2c: E2 03 00 [19:19:29]MH_I2C_Read... [19:19:29]Read from MH i2c: E2 03 00 21 77 00 90 00 0C [19:19:29]RAPDU: 90 00 [19:19:29]wFMCommunicate OK [19:19:29]wFMCommunicate request_size=4 [19:19:29]MH_SAM_APDU [19:19:29]CAPDU: 80 0D 03 02 [19:19:29]Write to MH i2c: E2 08 00 22 77 80 0D 03 02 00 00 00 00 14 [19:19:29]Write i2c OK [19:19:29]MH_I2C_Read... [19:19:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:29]Read from MH i2c: E2 [19:19:29]MH_I2C_Read... [19:19:29]Read from MH i2c: E2 0B 00 [19:19:29]MH_I2C_Read... [19:19:29]Read from MH i2c: E2 0B 00 22 77 00 88 31 88 DA E6 06 79 F6 90 00 8B [19:19:29]RAPDU: 88 31 88 DA E6 06 79 F6 90 00 [19:19:29]wFMCommunicate OK [19:19:29]SAM_PROTO_SignData done [19:19:29]FM_MakeSignedData done [19:19:29]CreateOFDProtocolMessage [19:19:29]wFMCommunicate request_size=4 [19:19:29]MH_SAM_APDU [19:19:29]CAPDU: 80 11 00 00 [19:19:29]Write to MH i2c: E2 08 00 23 77 80 11 00 00 00 00 00 00 14 [19:19:29]Write i2c OK [19:19:29]MH_I2C_Read... [19:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:29]Read from MH i2c: E2 [19:19:29]MH_I2C_Read... [19:19:29]Read from MH i2c: E2 17 00 [19:19:29]MH_I2C_Read... [19:19:29]Read from MH i2c: E2 17 00 23 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6F [19:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:19:29]wFMCommunicate OK [19:19:29]CreateOFDProtocolMessage done [19:19:29]OFDSenderStorePacket 118889 [19:19:29]StoreOFDPacket docnum=118889 [19:19:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 8F E8 07 01 D1 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 46 EB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 D0 01 00 35 04 06 00 34 B6 EF AB 9E AC 88 31 88 DA E6 06 79 F6 [19:19:29]CheckFolder [19:19:29]dirname=/storage/ofd_packets [19:19:29]CheckFolder done [19:19:29]ProducePacketName [19:19:29]name=ofd_packets/00118889 [19:19:29]NVStorageSaveData ofd_packets/00118889 [19:19:29]File name is /storage/ofd_packets/00118889 [19:19:29]Write 301 bytes [19:19:29]NVStorageSaveData done [19:19:29]OFDSenderStorePacket done [19:19:29]KKMCreateOFDPacket done [19:19:29]NVStorageSaveData kkm_last_timestamp [19:19:29]File name is /storage/kkm_last_timestamp [19:19:29]Write 4 bytes [19:19:29]NVStorageSaveData done [19:19:29]ExternCall_PrintAddStr [19:19:29]wPrintStart [19:19:29]Write to MH i2c: 01 00 00 24 77 9B [19:19:29]Write i2c OK [19:19:29]MH_I2C_Read... [19:19:29]Read from MH i2c: 01 [19:19:29]MH_I2C_Read... [19:19:29]Read from MH i2c: 01 07 00 [19:19:29]MH_I2C_Read... [19:19:29]Read from MH i2c: 01 07 00 24 77 00 00 00 00 00 FF 0F B0 [19:19:29]RasterBufferAndPrint [19:19:29]line Счет N : (1)949780 [19:19:29]line ИНН: 02508201610067 [19:19:29]line Контрольно-Кассовый Чек [19:19:29]line ПРОДАЖА [19:19:29]line ТРК (МРК, ГНК) : 51 [19:19:29]line Товар: 2710124130 [19:19:29]line Аи-92-К-4 [19:19:29]line 8.850 * 67.80 [19:19:29]line = 600.03 [19:19:29]line НДС 12% НСП 1% [19:19:29]line > о реализуемом товаре [19:19:29]line ОКРУГЛЕНИЕ: -0.03 [19:19:29]line ИТОГО: 600.00 [19:19:29]line Внесено: 600.00 [19:19:29]line СДАЧА: 0.00 [19:19:29]line НСП 1% : 5.31 [19:19:29]line НДС 12% : 63.72 [19:19:29]line Наличными: 600.00 [19:19:29]line Безнал.: 0.00 [19:19:29]line Место: АЗС № 134 "Партнер Нефть" [19:19:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:19:29]line СНО: Общий режим [19:19:29]line Чек 265 29.07.2024 19:19 [19:19:29]line Смена: 434 ФФД: 1.0 [19:19:29]line ЗНМ: 0300000044 [19:19:29]line РНМ: 0000000000092660 [19:19:29]line Версия ККМ: 001 [19:19:29]line ФМ: 0000000000874939 [19:19:29]line ФД: 118889 [19:19:29]line ФПД: 57960309694124 [19:19:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T191934&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118889&fm=57960309694124&tin=02508201610067®Number=0000000000092660&sum=60000 [19:19:29]OFD Sender: Processing packet 118889 [packets to send 86, broken 85] [19:19:29]ProducePacketName [19:19:29]name=ofd_packets/00118889 [19:19:29]OFD Sender: To server: pG, [19:19:29]CommunicateWithHost lk.salyk.kg:30040 [19:19:29]ConnectInit lk.salyk.kg [19:19:29]written 0, free lines is 4095 [19:19:30]Connected sock=10 [19:19:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 8F E8 07 01 D1 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 46 EB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 D0 01 00 35 04 06 00 34 B6 EF AB 9E AC 88 31 88 DA E6 06 79 F6 [19:19:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 52 42 47 00 E3 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 34 39 33 39 10 04 04 00 69 D0 01 00 F4 03 04 00 D4 98 A7 66 B6 04 01 00 00 A9 89 23 64 14 95 18 8F [19:19:30]CommunicateWithHost err = 0 [19:19:30]CheckOFDResponse [19:19:30]1017 (14) - 77093643461234 [19:19:30]1041 (16) - 0000000000874939 [19:19:30]1040 (4) - 118889 [19:19:30]1012 (4) - 29.07.2024 13:27 [19:19:30]1206 (1) - 0 [19:19:30]OFD Sender: Remove packet 118889 [19:19:30]ProducePacketName [19:19:30]name=ofd_packets/00118889 [19:19:30]NVStorageDeleteData [19:19:30]Write to MH i2c: 01 00 00 4E 77 C5 [19:19:30]Write i2c OK [19:19:30]MH_I2C_Read... [19:19:30]Read from MH i2c: 01 [19:19:30]MH_I2C_Read... [19:19:30]Read from MH i2c: 01 07 00 [19:19:30]MH_I2C_Read... [19:19:30]Read from MH i2c: 01 07 00 4E 77 00 00 00 00 00 D4 0C AC [19:19:30]RasterBufferAndPrint [19:19:30]line [19:19:30]line [19:19:30]line [19:19:30]line [19:19:30]line [19:19:30]written 0, free lines is 3291 [19:19:30]MH_Cut [19:19:30]Write to MH i2c: D1 01 00 55 77 01 9E [19:19:30]Write i2c OK [19:19:30]MH_I2C_Read... [19:19:30]Read from MH i2c: D1 [19:19:30]MH_I2C_Read... [19:19:30]Read from MH i2c: D1 01 00 [19:19:30]MH_I2C_Read... [19:19:30]Read from MH i2c: D1 01 00 55 77 00 9D [19:19:30]Write to MH i2c: 01 00 00 56 77 CD [19:19:30]Write i2c OK [19:19:30]MH_I2C_Read... [19:19:30]OFD Sender: No OFD packet to send [19:19:31]*** Cut start [19:19:31]*** Partial cut [19:19:31]*** CUTSNS_PIN = 1 [19:19:31]*** CUTSNS_PIN = 0 [19:19:31]*** Brake cut motor [19:19:31]Read from MH i2c: 01 [19:19:31]MH_I2C_Read... [19:19:31]*** Stop cut motor [19:19:31]*** Cut end [19:19:31]Read from MH i2c: 01 07 00 [19:19:31]MH_I2C_Read... [19:19:31]Read from MH i2c: 01 07 00 56 77 00 00 00 00 00 FF 0F E2 [19:19:31]process_action close_receipt done [19:19:31]requested_data is exist [19:19:31]produce_requested_data [19:19:31]requested_item fm.sn is exist - process it [19:19:31]wFMCommunicate request_size=4 [19:19:31]MH_SAM_APDU [19:19:31]CAPDU: 80 11 00 00 [19:19:31]Write to MH i2c: E2 08 00 57 77 80 11 00 00 00 00 00 00 48 [19:19:31]Write i2c OK [19:19:31]MH_I2C_Read... [19:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:31]Read from MH i2c: E2 [19:19:31]MH_I2C_Read... [19:19:31]Read from MH i2c: E2 17 00 [19:19:31]MH_I2C_Read... [19:19:31]Read from MH i2c: E2 17 00 57 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A3 [19:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:19:31]wFMCommunicate OK [19:19:31]requested_item fd.num is exist - process it [19:19:31]SAM_PROTO_GetFieldsCounters [19:19:31]wFMCommunicate request_size=4 [19:19:31]MH_SAM_APDU [19:19:31]CAPDU: 80 13 00 00 [19:19:31]Write to MH i2c: E2 08 00 58 77 80 13 00 00 00 00 00 00 4B [19:19:31]Write i2c OK [19:19:31]MH_I2C_Read... [19:19:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:31]Read from MH i2c: E2 [19:19:31]MH_I2C_Read... [19:19:31]Read from MH i2c: E2 62 00 [19:19:31]MH_I2C_Read... [19:19:31]Read from MH i2c: E2 62 00 58 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 69 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 7D [19:19: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 69 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:19:31]wFMCommunicate OK [19:19:31]SAM_PROTO_GetFieldsCounters done [19:19:31]requested_item shift.num is exist - process it [19:19:31]requested_item shift.opened is exist - process it [19:19:31]req_shift_opened [19:19:31]FM_GetShiftState [19:19:31]SAM_PROTO_GetShiftState [19:19:31]wFMCommunicate request_size=4 [19:19:31]MH_SAM_APDU [19:19:31]CAPDU: 80 13 01 00 [19:19:31]Write to MH i2c: E2 08 00 59 77 80 13 01 00 00 00 00 00 4D [19:19:31]Write i2c OK [19:19:31]MH_I2C_Read... [19:19:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:32]Read from MH i2c: E2 [19:19:32]MH_I2C_Read... [19:19:32]Read from MH i2c: E2 0E 00 [19:19:32]MH_I2C_Read... [19:19:32]Read from MH i2c: E2 0E 00 59 77 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 7B [19:19:32]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:19:32]wFMCommunicate OK [19:19:32]SAM_PROTO_GetShiftState done [19:19:32]FM_GetShiftState done [19:19:32]req_shift_opened done [19:19:32]requested_item shift.open_date is exist - process it [19:19:32]req_shift_open_date [19:19:32]req_shift_open_date done [19:19:32]produce_requested_data done [19:19:32]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118889,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [19:19:32]process_action_free close_receipt [19:19:32]json_value_free [19:19:32]json_value_free done [19:19:32]process_json_proto returns [19:19:32]Send response to host [19:19:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118889,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [19:19:32]free response buf [19:19:32]execute_script done [19:19:32]execute_script returns [19:19:32]free content buf [19:19:32]Sock 9.Close socket [19:19:32]Sock 9.Thread stoped [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:54]accept exits with 7 [19:20:54]New connection [19:20:54]New thread 3067239780 created [19:20:54]Thread 3067383140 joined [19:20:54]Waiting for new connection... [19:20:54] Sock 7.Parse request [19:20:54]Sock 7.Check first char [19:20:54]Sock 7.First char is OK [19:20:54]request: POST /json_proto HTTP/1.0 [19:20:54]Method: POST [19:20:54]URL: /json_proto [19:20:54]Method is POST - this is cgi request [19:20:54]url: /json_proto [19:20:54]query_string will be loaded in cgi processing [19:20:54]execute_cgi json_proto POST (null) [19:20:54]execute_cgi path=json_proto method=POST [19:20:54]POST find Content-Length [19:20:54]Host: 172.17.45.7:8080 [19:20:54]Content-Length: 682 [19:20:54]Content-Type: application/json [19:20:54] [19:20:54]POST finish read [19:20:54]Found Content-Length = 682 [19:20:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:54]execute_script... [19:20: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)949782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:54]POST & json_proto [19:20:54]process_json_proto [19:20:54]json parsed OK: [19:20:54]protocol is kg_v1.0 [19:20:54]action value=close_receipt [19:20:54]process_action close_receipt [19:20:54]cmd_close_receipt [19:20:54]MH_GetDate [19:20:54]Write to MH i2c: F0 00 00 5A 77 C0 [19:20:54]Write i2c OK [19:20:54]MH_I2C_Read... [19:20:54]Read from MH i2c: F0 [19:20:54]MH_I2C_Read... [19:20:54]Read from MH i2c: F0 09 00 [19:20:54]MH_I2C_Read... [19:20:54]Read from MH i2c: F0 09 00 5A 77 00 9D EB A7 66 90 0F 3E 66 A1 [19:20:54]GetLastDocTimeStamp 1722280774 [19:20:54]current date 1722280861 [19:20:54]FM_GetShiftState [19:20:54]SAM_PROTO_GetShiftState [19:20:54]wFMCommunicate request_size=4 [19:20:54]MH_SAM_APDU [19:20:54]CAPDU: 80 13 01 00 [19:20:54]Write to MH i2c: E2 08 00 5B 77 80 13 01 00 00 00 00 00 4F [19:20:54]Write i2c OK [19:20:54]MH_I2C_Read... [19:20:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:54]Read from MH i2c: E2 [19:20:54]MH_I2C_Read... [19:20:54]Read from MH i2c: E2 0E 00 [19:20:54]MH_I2C_Read... [19:20:54]Read from MH i2c: E2 0E 00 5B 77 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 7D [19:20:54]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:20:54]wFMCommunicate OK [19:20:54]SAM_PROTO_GetShiftState done [19:20:54]FM_GetShiftState done [19:20:54]opened in 1722211641 [19:20:54]opened+sec_in_day 1722298041 [19:20:54]quantity*price = 150032 [19:20:54]sum+1 = 150033 [19:20:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 266 29.07.2024 19:21 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118890 ФПД: 36872040914890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192101&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118890&fm=36872040914890&tin=02508201610067®Number=0000000000092660&sum=150000 [19:20:56]StoreToDocumentArchive [19:20:56]shift 434 fd 118890 [19:20:56]save to /storage/0434/doc_00118890 [19:20:56]save last doc name /storage/0434/doc_00118890 to /storage/kkm_last_doc_name [19:20:56]save OK [19:20:56]Clear old archive folders... [19:20:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:20:56]tlvbuf is B6FBE210 [19:20:56]SAM_PROTO_ClearQueue [19:20:56]wFMCommunicate request_size=4 [19:20:56]MH_SAM_APDU [19:20:56]CAPDU: 80 09 00 00 [19:20:56]Write to MH i2c: E2 08 00 68 77 80 09 00 00 00 00 00 00 51 [19:20:56]Write i2c OK [19:20:56]MH_I2C_Read... [19:20:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:56]Read from MH i2c: E2 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: E2 03 00 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: E2 03 00 68 77 00 90 00 53 [19:20:56]RAPDU: 90 00 [19:20:56]wFMCommunicate OK [19:20:56]SAM_PROTO_ClearQueue done [19:20:56]KKMCreateOFDPacket [19:20:56]OFDProtocolAddRootSTLVToBuf [19:20:56]FM_MakeSignedData [19:20:56]FM_MakeSignedData [19:20:56]SAM_PROTO_SignData [19:20:56]wFMCommunicate request_size=4 [19:20:56]MH_SAM_APDU [19:20:56]CAPDU: 80 0D 01 02 [19:20:56]Write to MH i2c: E2 08 00 69 77 80 0D 01 02 00 00 00 00 59 [19:20:56]Write i2c OK [19:20:56]MH_I2C_Read... [19:20:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:56]Read from MH i2c: E2 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: E2 03 00 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: E2 03 00 69 77 00 90 00 54 [19:20:56]RAPDU: 90 00 [19:20:56]wFMCommunicate OK [19:20:56]wFMCommunicate request_size=255 [19:20:56]MH_SAM_APDU [19:20:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 9D EB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A D0 01 00 35 04 06 00 21 [19:20:56]Write to MH i2c: E2 02 01 6A 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 9D EB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A D0 01 00 35 04 06 00 21 00 00 FE [19:20:56]Write i2c OK [19:20:56]MH_I2C_Read... [19:20:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:56]Read from MH i2c: E2 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: E2 03 00 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: E2 03 00 6A 77 00 90 00 55 [19:20:56]RAPDU: 90 00 [19:20:56]wFMCommunicate OK [19:20:56]wFMCommunicate request_size=10 [19:20:56]MH_SAM_APDU [19:20:56]CAPDU: 80 0D 02 02 05 88 F0 E6 9F CA [19:20:56]Write to MH i2c: E2 0D 00 6B 77 80 0D 02 02 05 00 88 F0 E6 9F CA 00 00 2D [19:20:56]Write i2c OK [19:20:56]MH_I2C_Read... [19:20:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:56]Read from MH i2c: E2 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: E2 03 00 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: E2 03 00 6B 77 00 90 00 56 [19:20:56]RAPDU: 90 00 [19:20:56]wFMCommunicate OK [19:20:56]wFMCommunicate request_size=4 [19:20:56]MH_SAM_APDU [19:20:56]CAPDU: 80 0D 03 02 [19:20:56]Write to MH i2c: E2 08 00 6C 77 80 0D 03 02 00 00 00 00 5E [19:20:56]Write i2c OK [19:20:56]MH_I2C_Read... [19:20:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:56]Read from MH i2c: E2 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: E2 0B 00 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: E2 0B 00 6C 77 00 3C 44 0D B1 DD 29 A3 BC 90 00 02 [19:20:56]RAPDU: 3C 44 0D B1 DD 29 A3 BC 90 00 [19:20:56]wFMCommunicate OK [19:20:56]SAM_PROTO_SignData done [19:20:56]FM_MakeSignedData done [19:20:56]CreateOFDProtocolMessage [19:20:56]wFMCommunicate request_size=4 [19:20:56]MH_SAM_APDU [19:20:56]CAPDU: 80 11 00 00 [19:20:56]Write to MH i2c: E2 08 00 6D 77 80 11 00 00 00 00 00 00 5E [19:20:56]Write i2c OK [19:20:56]MH_I2C_Read... [19:20:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:56]Read from MH i2c: E2 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: E2 17 00 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: E2 17 00 6D 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B9 [19:20:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:20:56]wFMCommunicate OK [19:20:56]CreateOFDProtocolMessage done [19:20:56]OFDSenderStorePacket 118890 [19:20:56]StoreOFDPacket docnum=118890 [19:20:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 62 41 07 01 B8 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 9D EB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A D0 01 00 35 04 06 00 21 88 F0 E6 9F CA 3C 44 0D B1 DD 29 A3 BC [19:20:56]CheckFolder [19:20:56]dirname=/storage/ofd_packets [19:20:56]CheckFolder done [19:20:56]ProducePacketName [19:20:56]name=ofd_packets/00118890 [19:20:56]NVStorageSaveData ofd_packets/00118890 [19:20:56]File name is /storage/ofd_packets/00118890 [19:20:56]Write 301 bytes [19:20:56]NVStorageSaveData done [19:20:56]OFDSenderStorePacket done [19:20:56]KKMCreateOFDPacket done [19:20:56]NVStorageSaveData kkm_last_timestamp [19:20:56]File name is /storage/kkm_last_timestamp [19:20:56]Write 4 bytes [19:20:56]NVStorageSaveData done [19:20:56]ExternCall_PrintAddStr [19:20:56]wPrintStart [19:20:56]Write to MH i2c: 01 00 00 6E 77 E5 [19:20:56]Write i2c OK [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: 01 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: 01 07 00 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: 01 07 00 6E 77 00 00 00 00 00 FF 0F FA [19:20:56]RasterBufferAndPrint [19:20:56]line Счет N : (1)949782 [19:20:56]line ИНН: 02508201610067 [19:20:56]line Контрольно-Кассовый Чек [19:20:56]line ПРОДАЖА [19:20:56]line ТРК (МРК, ГНК) : 33 [19:20:56]line Товар: 2710124500 [19:20:56]line Аи-95-К-3 [19:20:56]line 20.220 * 74.20 [19:20:56]line = 1500.32 [19:20:56]line НДС 12% НСП 1% [19:20:56]line > о реализуемом товаре [19:20:56]line ОКРУГЛЕНИЕ: -0.32 [19:20:56]line ИТОГО: 1500.00 [19:20:56]line Внесено: 1500.00 [19:20:56]line СДАЧА: 0.00 [19:20:56]line НСП 1% : 13.28 [19:20:56]line НДС 12% : 159.33 [19:20:56]line Наличными: 1500.00 [19:20:56]line Безнал.: 0.00 [19:20:56]line Место: АЗС № 134 "Партнер Нефть" [19:20:56]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:20:56]line СНО: Общий режим [19:20:56]line Чек 266 29.07.2024 19:21 [19:20:56]line Смена: 434 ФФД: 1.0 [19:20:56]line ЗНМ: 0300000044 [19:20:56]line РНМ: 0000000000092660 [19:20:56]line Версия ККМ: 001 [19:20:56]line ФМ: 0000000000874939 [19:20:56]line ФД: 118890 [19:20:56]line ФПД: 36872040914890 [19:20:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192101&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118890&fm=36872040914890&tin=02508201610067®Number=0000000000092660&sum=150000 [19:20:56]OFD Sender: Processing packet 118890 [packets to send 86, broken 85] [19:20:56]ProducePacketName [19:20:56]name=ofd_packets/00118890 [19:20:56]OFD Sender: To server: pG, [19:20:56]CommunicateWithHost lk.salyk.kg:30040 [19:20:56]ConnectInit lk.salyk.kg [19:20:56]written 0, free lines is 4095 [19:20:57]Connected sock=10 [19:20:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 62 41 07 01 B8 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 9D EB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A D0 01 00 35 04 06 00 21 88 F0 E6 9F CA 3C 44 0D B1 DD 29 A3 BC [19:20:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 43 21 47 00 3E F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A D0 01 00 F4 03 04 00 2B 99 A7 66 B6 04 01 00 00 0A 43 F7 CC 76 34 04 66 [19:20:57]CommunicateWithHost err = 0 [19:20:57]CheckOFDResponse [19:20:57]1017 (14) - 77093643461234 [19:20:57]1041 (16) - 0000000000874939 [19:20:57]1040 (4) - 118890 [19:20:57]1012 (4) - 29.07.2024 13:29 [19:20:57]1206 (1) - 0 [19:20:57]OFD Sender: Remove packet 118890 [19:20:57]ProducePacketName [19:20:57]name=ofd_packets/00118890 [19:20:57]NVStorageDeleteData [19:20:57]Write to MH i2c: 01 00 00 98 77 0F [19:20:57]Write i2c OK [19:20:57]MH_I2C_Read... [19:20:57]Read from MH i2c: 01 [19:20:57]MH_I2C_Read... [19:20:57]Read from MH i2c: 01 07 00 [19:20:57]MH_I2C_Read... [19:20:57]Read from MH i2c: 01 07 00 98 77 00 00 00 00 00 D9 0C FB [19:20:57]RasterBufferAndPrint [19:20:57]line [19:20:57]line [19:20:57]line [19:20:57]line [19:20:57]line [19:20:57]written 0, free lines is 3296 [19:20:57]MH_Cut [19:20:57]Write to MH i2c: D1 01 00 9F 77 01 E8 [19:20:57]Write i2c OK [19:20:57]MH_I2C_Read... [19:20:57]Read from MH i2c: D1 [19:20:57]MH_I2C_Read... [19:20:57]Read from MH i2c: D1 01 00 [19:20:57]MH_I2C_Read... [19:20:57]Read from MH i2c: D1 01 00 9F 77 00 E7 [19:20:57]Write to MH i2c: 01 00 00 A0 77 17 [19:20:57]Write i2c OK [19:20:57]MH_I2C_Read... [19:20:57]OFD Sender: No OFD packet to send [19:20:58]*** Cut start [19:20:58]*** Partial cut [19:20:58]*** CUTSNS_PIN = 1 [19:20:58]*** CUTSNS_PIN = 0 [19:20:58]*** Brake cut motor [19:20:58]Read from MH i2c: 01 [19:20:58]MH_I2C_Read... [19:20:58]*** Stop cut motor [19:20:58]*** Cut end [19:20:58]Read from MH i2c: 01 07 00 [19:20:58]MH_I2C_Read... [19:20:58]Read from MH i2c: 01 07 00 A0 77 00 00 00 00 00 FF 0F 2C [19:20:58]process_action close_receipt done [19:20:58]requested_data is exist [19:20:58]produce_requested_data [19:20:58]requested_item fm.sn is exist - process it [19:20:58]wFMCommunicate request_size=4 [19:20:58]MH_SAM_APDU [19:20:58]CAPDU: 80 11 00 00 [19:20:58]Write to MH i2c: E2 08 00 A1 77 80 11 00 00 00 00 00 00 92 [19:20:58]Write i2c OK [19:20:58]MH_I2C_Read... [19:20:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:58]Read from MH i2c: E2 [19:20:58]MH_I2C_Read... [19:20:58]Read from MH i2c: E2 17 00 [19:20:58]MH_I2C_Read... [19:20:58]Read from MH i2c: E2 17 00 A1 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 ED [19:20:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:20:58]wFMCommunicate OK [19:20:58]requested_item fd.num is exist - process it [19:20:58]SAM_PROTO_GetFieldsCounters [19:20:58]wFMCommunicate request_size=4 [19:20:58]MH_SAM_APDU [19:20:58]CAPDU: 80 13 00 00 [19:20:58]Write to MH i2c: E2 08 00 A2 77 80 13 00 00 00 00 00 00 95 [19:20:58]Write i2c OK [19:20:58]MH_I2C_Read... [19:20:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:58]Read from MH i2c: E2 [19:20:58]MH_I2C_Read... [19:20:58]Read from MH i2c: E2 62 00 [19:20:58]MH_I2C_Read... [19:20:58]Read from MH i2c: E2 62 00 A2 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6A D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [19:20: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6A D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:20:58]wFMCommunicate OK [19:20:58]SAM_PROTO_GetFieldsCounters done [19:20:58]requested_item shift.num is exist - process it [19:20:58]requested_item shift.opened is exist - process it [19:20:58]req_shift_opened [19:20:58]FM_GetShiftState [19:20:58]SAM_PROTO_GetShiftState [19:20:58]wFMCommunicate request_size=4 [19:20:58]MH_SAM_APDU [19:20:58]CAPDU: 80 13 01 00 [19:20:58]Write to MH i2c: E2 08 00 A3 77 80 13 01 00 00 00 00 00 97 [19:20:58]Write i2c OK [19:20:58]MH_I2C_Read... [19:20:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:58]Read from MH i2c: E2 [19:20:58]MH_I2C_Read... [19:20:58]Read from MH i2c: E2 0E 00 [19:20:58]MH_I2C_Read... [19:20:58]Read from MH i2c: E2 0E 00 A3 77 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C5 [19:20:58]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:20:58]wFMCommunicate OK [19:20:58]SAM_PROTO_GetShiftState done [19:20:58]FM_GetShiftState done [19:20:58]req_shift_opened done [19:20:58]requested_item shift.open_date is exist - process it [19:20:58]req_shift_open_date [19:20:58]req_shift_open_date done [19:20:58]produce_requested_data done [19:20:58]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118890,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [19:20:58]process_action_free close_receipt [19:20:58]json_value_free [19:20:58]json_value_free done [19:20:58]process_json_proto returns [19:20:58]Send response to host [19:20:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118890,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [19:20:58]free response buf [19:20:58]execute_script done [19:20:58]execute_script returns [19:20:58]free content buf [19:20:58]Sock 7.Close socket [19:20:58]Sock 7.Thread stoped [19:21:02]OFD Sender: No OFD packet to send [19:21:07]OFD Sender: No OFD packet to send [19:21:12]OFD Sender: No OFD packet to send [19:21:17]OFD Sender: No OFD packet to send [19:21:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:47]OFD Sender: No OFD packet to send [19:21:52]OFD Sender: No OFD packet to send [19:21:57]OFD Sender: No OFD packet to send [19:22:02]OFD Sender: No OFD packet to send [19:22:07]accept exits with 9 [19:22:07]New connection [19:22:07]New thread 3067383140 created [19:22:07]Thread 3067239780 joined [19:22:07]Waiting for new connection... [19:22:07] Sock 9.Parse request [19:22:07]Sock 9.Check first char [19:22:07]Sock 9.First char is OK [19:22:07]request: POST /json_proto HTTP/1.0 [19:22:07]Method: POST [19:22:07]URL: /json_proto [19:22:07]Method is POST - this is cgi request [19:22:07]url: /json_proto [19:22:07]query_string will be loaded in cgi processing [19:22:07]execute_cgi json_proto POST (null) [19:22:07]execute_cgi path=json_proto method=POST [19:22:07]POST find Content-Length [19:22:07]Host: 172.17.45.7:8080 [19:22:07]Content-Length: 677 [19:22:07]Content-Type: application/json [19:22:07] [19:22:07]POST finish read [19:22:07]Found Content-Length = 677 [19:22:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:07]execute_script... [19:22:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:07]POST & json_proto [19:22:07]process_json_proto [19:22:07]json parsed OK: [19:22:07]protocol is kg_v1.0 [19:22:07]action value=close_receipt [19:22:07]process_action close_receipt [19:22:07]cmd_close_receipt [19:22:07]MH_GetDate [19:22:07]Write to MH i2c: F0 00 00 A4 77 0A [19:22:07]Write i2c OK [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: F0 [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: F0 09 00 [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: F0 09 00 A4 77 00 E6 EB A7 66 90 0F 3E 66 34 [19:22:07]GetLastDocTimeStamp 1722280861 [19:22:07]current date 1722280934 [19:22:07]FM_GetShiftState [19:22:07]SAM_PROTO_GetShiftState [19:22:07]wFMCommunicate request_size=4 [19:22:07]MH_SAM_APDU [19:22:07]CAPDU: 80 13 01 00 [19:22:07]Write to MH i2c: E2 08 00 A5 77 80 13 01 00 00 00 00 00 99 [19:22:07]Write i2c OK [19:22:07]MH_I2C_Read... [19:22:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:07]Read from MH i2c: E2 [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: E2 0E 00 [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: E2 0E 00 A5 77 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C7 [19:22:07]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:22:07]wFMCommunicate OK [19:22:07]SAM_PROTO_GetShiftState done [19:22:07]FM_GetShiftState done [19:22:07]opened in 1722211641 [19:22:07]opened+sec_in_day 1722298041 [19:22:07]quantity*price = 30035 [19:22:07]sum+1 = 30036 [19:22:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 267 29.07.2024 19:22 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118891 ФПД: 231142770857167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192214&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118891&fm=231142770857167&tin=02508201610067®Number=0000000000092660&sum=30000 [19:22:08]StoreToDocumentArchive [19:22:08]shift 434 fd 118891 [19:22:08]save to /storage/0434/doc_00118891 [19:22:08]save last doc name /storage/0434/doc_00118891 to /storage/kkm_last_doc_name [19:22:08]save OK [19:22:08]Clear old archive folders... [19:22:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:22:08]tlvbuf is 02042590 [19:22:08]SAM_PROTO_ClearQueue [19:22:08]wFMCommunicate request_size=4 [19:22:08]MH_SAM_APDU [19:22:08]CAPDU: 80 09 00 00 [19:22:08]Write to MH i2c: E2 08 00 B2 77 80 09 00 00 00 00 00 00 9B [19:22:08]Write i2c OK [19:22:08]MH_I2C_Read... [19:22:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:08]Read from MH i2c: E2 [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: E2 03 00 [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: E2 03 00 B2 77 00 90 00 9D [19:22:08]RAPDU: 90 00 [19:22:08]wFMCommunicate OK [19:22:08]SAM_PROTO_ClearQueue done [19:22:08]KKMCreateOFDPacket [19:22:08]OFDProtocolAddRootSTLVToBuf [19:22:08]FM_MakeSignedData [19:22:08]FM_MakeSignedData [19:22:08]SAM_PROTO_SignData [19:22:08]wFMCommunicate request_size=4 [19:22:08]MH_SAM_APDU [19:22:08]CAPDU: 80 0D 01 02 [19:22:08]Write to MH i2c: E2 08 00 B3 77 80 0D 01 02 00 00 00 00 A3 [19:22:08]Write i2c OK [19:22:08]MH_I2C_Read... [19:22:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:08]Read from MH i2c: E2 [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: E2 03 00 [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: E2 03 00 B3 77 00 90 00 9E [19:22:08]RAPDU: 90 00 [19:22:08]wFMCommunicate OK [19:22:08]wFMCommunicate request_size=255 [19:22:08]MH_SAM_APDU [19:22:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 E6 EB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B D0 01 00 35 04 06 00 D2 [19:22:08]Write to MH i2c: E2 02 01 B4 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 E6 EB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B D0 01 00 35 04 06 00 D2 00 00 F1 [19:22:08]Write i2c OK [19:22:08]MH_I2C_Read... [19:22:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:09]Read from MH i2c: E2 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: E2 03 00 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: E2 03 00 B4 77 00 90 00 9F [19:22:09]RAPDU: 90 00 [19:22:09]wFMCommunicate OK [19:22:09]wFMCommunicate request_size=10 [19:22:09]MH_SAM_APDU [19:22:09]CAPDU: 80 0D 02 02 05 39 1E BF D4 CF [19:22:09]Write to MH i2c: E2 0D 00 B5 77 80 0D 02 02 05 00 39 1E BF D4 CF 00 00 69 [19:22:09]Write i2c OK [19:22:09]MH_I2C_Read... [19:22:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:09]Read from MH i2c: E2 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: E2 03 00 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: E2 03 00 B5 77 00 90 00 A0 [19:22:09]RAPDU: 90 00 [19:22:09]wFMCommunicate OK [19:22:09]wFMCommunicate request_size=4 [19:22:09]MH_SAM_APDU [19:22:09]CAPDU: 80 0D 03 02 [19:22:09]Write to MH i2c: E2 08 00 B6 77 80 0D 03 02 00 00 00 00 A8 [19:22:09]Write i2c OK [19:22:09]MH_I2C_Read... [19:22:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:09]Read from MH i2c: E2 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: E2 0B 00 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: E2 0B 00 B6 77 00 9E 41 3A 1A 12 1A C4 72 90 00 3E [19:22:09]RAPDU: 9E 41 3A 1A 12 1A C4 72 90 00 [19:22:09]wFMCommunicate OK [19:22:09]SAM_PROTO_SignData done [19:22:09]FM_MakeSignedData done [19:22:09]CreateOFDProtocolMessage [19:22:09]wFMCommunicate request_size=4 [19:22:09]MH_SAM_APDU [19:22:09]CAPDU: 80 11 00 00 [19:22:09]Write to MH i2c: E2 08 00 B7 77 80 11 00 00 00 00 00 00 A8 [19:22:09]Write i2c OK [19:22:09]MH_I2C_Read... [19:22:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:09]Read from MH i2c: E2 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: E2 17 00 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: E2 17 00 B7 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 03 [19:22:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:22:09]wFMCommunicate OK [19:22:09]CreateOFDProtocolMessage done [19:22:09]OFDSenderStorePacket 118891 [19:22:09]StoreOFDPacket docnum=118891 [19:22:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 77 75 07 01 DE 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 E6 EB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B D0 01 00 35 04 06 00 D2 39 1E BF D4 CF 9E 41 3A 1A 12 1A C4 72 [19:22:09]CheckFolder [19:22:09]dirname=/storage/ofd_packets [19:22:09]CheckFolder done [19:22:09]ProducePacketName [19:22:09]name=ofd_packets/00118891 [19:22:09]NVStorageSaveData ofd_packets/00118891 [19:22:09]File name is /storage/ofd_packets/00118891 [19:22:09]Write 301 bytes [19:22:09]NVStorageSaveData done [19:22:09]OFDSenderStorePacket done [19:22:09]KKMCreateOFDPacket done [19:22:09]NVStorageSaveData kkm_last_timestamp [19:22:09]File name is /storage/kkm_last_timestamp [19:22:09]Write 4 bytes [19:22:09]NVStorageSaveData done [19:22:09]ExternCall_PrintAddStr [19:22:09]wPrintStart [19:22:09]Write to MH i2c: 01 00 00 B8 77 2F [19:22:09]Write i2c OK [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: 01 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: 01 07 00 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: 01 07 00 B8 77 00 00 00 00 00 FF 0F 44 [19:22:09]RasterBufferAndPrint [19:22:09]line Счет N : (1)949783 [19:22:09]line ИНН: 02508201610067 [19:22:09]line Контрольно-Кассовый Чек [19:22:09]line ПРОДАЖА [19:22:09]line ТРК (МРК, ГНК) : 51 [19:22:09]line Товар: 2710124130 [19:22:09]line Аи-92-К-4 [19:22:09]line 4.430 * 67.80 [19:22:09]line = 300.35 [19:22:09]line НДС 12% НСП 1% [19:22:09]line > о реализуемом товаре [19:22:09]line ОКРУГЛЕНИЕ: -0.35 [19:22:09]line ИТОГО: 300.00 [19:22:09]line Внесено: 300.00 [19:22:09]line СДАЧА: 0.00 [19:22:09]line НСП 1% : 2.66 [19:22:09]line НДС 12% : 31.90 [19:22:09]line Наличными: 300.00 [19:22:09]line Безнал.: 0.00 [19:22:09]line Место: АЗС № 134 "Партнер Нефть" [19:22:09]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:22:09]line СНО: Общий режим [19:22:09]line Чек 267 29.07.2024 19:22 [19:22:09]line Смена: 434 ФФД: 1.0 [19:22:09]line ЗНМ: 0300000044 [19:22:09]line РНМ: 0000000000092660 [19:22:09]line Версия ККМ: 001 [19:22:09]line ФМ: 0000000000874939 [19:22:09]line ФД: 118891 [19:22:09]line ФПД: 231142770857167 [19:22:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192214&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118891&fm=231142770857167&tin=02508201610067®Number=0000000000092660&sum=30000 [19:22:09]written 0, free lines is 4095 [19:22:09]OFD Sender: Processing packet 118891 [packets to send 86, broken 85] [19:22:09]ProducePacketName [19:22:09]name=ofd_packets/00118891 [19:22:09]OFD Sender: To server: pG, [19:22:09]CommunicateWithHost lk.salyk.kg:30040 [19:22:09]ConnectInit lk.salyk.kg [19:22:09]Connected sock=7 [19:22:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 77 75 07 01 DE 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 E6 EB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B D0 01 00 35 04 06 00 D2 39 1E BF D4 CF 9E 41 3A 1A 12 1A C4 72 [19:22:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 89 12 47 00 61 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B D0 01 00 F4 03 04 00 73 99 A7 66 B6 04 01 00 00 66 66 53 B5 ED 67 0A EC [19:22:09]CommunicateWithHost err = 0 [19:22:09]CheckOFDResponse [19:22:09]1017 (14) - 77093643461234 [19:22:09]1041 (16) - 0000000000874939 [19:22:09]1040 (4) - 118891 [19:22:09]1012 (4) - 29.07.2024 13:30 [19:22:09]1206 (1) - 0 [19:22:09]OFD Sender: Remove packet 118891 [19:22:09]ProducePacketName [19:22:09]name=ofd_packets/00118891 [19:22:09]NVStorageDeleteData [19:22:10]Write to MH i2c: 01 00 00 E2 77 59 [19:22:10]Write i2c OK [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: 01 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: 01 07 00 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: 01 07 00 E2 77 00 00 00 00 00 D4 0C 40 [19:22:10]RasterBufferAndPrint [19:22:10]line [19:22:10]line [19:22:10]line [19:22:10]line [19:22:10]line [19:22:10]written 0, free lines is 3290 [19:22:10]MH_Cut [19:22:10]Write to MH i2c: D1 01 00 E9 77 01 32 [19:22:10]Write i2c OK [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: D1 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: D1 01 00 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: D1 01 00 E9 77 00 31 [19:22:10]Write to MH i2c: 01 00 00 EA 77 61 [19:22:10]Write i2c OK [19:22:10]MH_I2C_Read... [19:22:10]OFD Sender: No OFD packet to send [19:22:10]*** Cut start [19:22:10]*** Partial cut [19:22:10]*** CUTSNS_PIN = 1 [19:22:10]*** CUTSNS_PIN = 0 [19:22:11]*** Brake cut motor [19:22:11]Read from MH i2c: 01 [19:22:11]MH_I2C_Read... [19:22:11]*** Stop cut motor [19:22:11]*** Cut end [19:22:11]Read from MH i2c: 01 07 00 [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: 01 07 00 EA 77 00 00 00 00 00 FF 0F 76 [19:22:11]process_action close_receipt done [19:22:11]requested_data is exist [19:22:11]produce_requested_data [19:22:11]requested_item fm.sn is exist - process it [19:22:11]wFMCommunicate request_size=4 [19:22:11]MH_SAM_APDU [19:22:11]CAPDU: 80 11 00 00 [19:22:11]Write to MH i2c: E2 08 00 EB 77 80 11 00 00 00 00 00 00 DC [19:22:11]Write i2c OK [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: E2 [19:22:11]MH_I2C_Read... [19:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:11]Read from MH i2c: E2 17 00 [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: E2 17 00 EB 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 37 [19:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:22:11]wFMCommunicate OK [19:22:11]requested_item fd.num is exist - process it [19:22:11]SAM_PROTO_GetFieldsCounters [19:22:11]wFMCommunicate request_size=4 [19:22:11]MH_SAM_APDU [19:22:11]CAPDU: 80 13 00 00 [19:22:11]Write to MH i2c: E2 08 00 EC 77 80 13 00 00 00 00 00 00 DF [19:22:11]Write i2c OK [19:22:11]MH_I2C_Read... [19:22:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:11]Read from MH i2c: E2 [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: E2 62 00 [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: E2 62 00 EC 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6B D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 19 [19:22: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6B D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:22:11]wFMCommunicate OK [19:22:11]SAM_PROTO_GetFieldsCounters done [19:22:11]requested_item shift.num is exist - process it [19:22:11]requested_item shift.opened is exist - process it [19:22:11]req_shift_opened [19:22:11]FM_GetShiftState [19:22:11]SAM_PROTO_GetShiftState [19:22:11]wFMCommunicate request_size=4 [19:22:11]MH_SAM_APDU [19:22:11]CAPDU: 80 13 01 00 [19:22:11]Write to MH i2c: E2 08 00 ED 77 80 13 01 00 00 00 00 00 E1 [19:22:11]Write i2c OK [19:22:11]MH_I2C_Read... [19:22:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:11]Read from MH i2c: E2 [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: E2 0E 00 [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: E2 0E 00 ED 77 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 0F [19:22:11]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:22:11]wFMCommunicate OK [19:22:11]SAM_PROTO_GetShiftState done [19:22:11]FM_GetShiftState done [19:22:11]req_shift_opened done [19:22:11]requested_item shift.open_date is exist - process it [19:22:11]req_shift_open_date [19:22:11]req_shift_open_date done [19:22:11]produce_requested_data done [19:22:11]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118891,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [19:22:11]process_action_free close_receipt [19:22:11]json_value_free [19:22:11]json_value_free done [19:22:11]process_json_proto returns [19:22:11]Send response to host [19:22:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118891,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [19:22:11]free response buf [19:22:11]execute_script done [19:22:11]execute_script returns [19:22:11]free content buf [19:22:11]Sock 9.Close socket [19:22:11]Sock 9.Thread stoped [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:23:00]OFD Sender: No OFD packet to send [19:23:05]OFD Sender: No OFD packet to send [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:35]OFD Sender: No OFD packet to send [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:14]accept exits with 10 [19:24:14]New connection [19:24:14]New thread 3067239780 created [19:24:14]Thread 3067383140 joined [19:24:14]Waiting for new connection... [19:24:14] Sock 10.Parse request [19:24:14]Sock 10.Check first char [19:24:14]Sock 10.First char is OK [19:24:14]request: POST /json_proto HTTP/1.0 [19:24:14]Method: POST [19:24:14]URL: /json_proto [19:24:14]Method is POST - this is cgi request [19:24:14]url: /json_proto [19:24:14]query_string will be loaded in cgi processing [19:24:14]execute_cgi json_proto POST (null) [19:24:14]execute_cgi path=json_proto method=POST [19:24:14]POST find Content-Length [19:24:14]Host: 172.17.45.7:8080 [19:24:14]Content-Length: 1151 [19:24:14]Content-Type: application/json [19:24:14] [19:24:14]POST finish read [19:24:14]Found Content-Length = 1151 [19:24:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949784\u000A29.07.2024 19:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-3\u000A 40.000 x 74.20\u000A\u0418\u0422\u041E\u0413: 2968.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30056966\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:14]execute_script... [19:24:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949784\u000A29.07.2024 19:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-3\u000A 40.000 x 74.20\u000A\u0418\u0422\u041E\u0413: 2968.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30056966\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:14]POST & json_proto [19:24:14]process_json_proto [19:24:14]json parsed OK: [19:24:14]protocol is kg_v1.0 [19:24:14]action value=print_text [19:24:14]process_action print_text [19:24:14]cmd_print_text [19:24:14]ExternCall_PrintAddStr [19:24:14]wPrintStart [19:24:14]Write to MH i2c: 01 00 00 EE 77 65 [19:24:14]Write i2c OK [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: 01 [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: 01 07 00 [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: 01 07 00 EE 77 00 00 00 00 00 FF 0F 7A [19:24:14]RasterBufferAndPrint [19:24:14]line *****ТОВАРНЫЙ ЧЕК***** [19:24:14]line АЗС-134 [19:24:14]line Партнер нефть [19:24:14]line 02508201610067 [19:24:14]line Кассир : Казаков Ч. [19:24:14]line Счет N : (1)949784 [19:24:14]line 29.07.2024 19:21 [19:24:14]line ПРОДАЖА [19:24:14]line ТРК (МРК, ГНК): 63 [19:24:14]line Вид ГСМ : 2710124500 [19:24:14]line Аи-95-К-3 [19:24:14]line 40.000 x 74.20 [19:24:14]line ИТОГ: 2968.00 [19:24:14]line Тип оплаты: Талоны: ТК ГПНА Online [19:24:14]line 30056966 [19:24:14]line ______________________ [19:24:14]line (подпись) [19:24:14]written 0, free lines is 4095 [19:24:14]Write to MH i2c: 01 00 00 02 78 7A [19:24:14]Write i2c OK [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: 01 [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: 01 07 00 [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: 01 07 00 02 78 00 00 00 00 00 10 0E 9F [19:24:14]RasterBufferAndPrint [19:24:14]line [19:24:14]line [19:24:14]line [19:24:14]line [19:24:14]line [19:24:14]written 0, free lines is 3601 [19:24:14]MH_Cut [19:24:14]Write to MH i2c: D1 01 00 09 78 01 53 [19:24:14]Write i2c OK [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: D1 [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: D1 01 00 [19:24:14]MH_I2C_Read... [19:24:14]Read from MH i2c: D1 01 00 09 78 00 52 [19:24:14]Write to MH i2c: 01 00 00 0A 78 82 [19:24:14]Write i2c OK [19:24:14]MH_I2C_Read... [19:24:14]*** Cut start [19:24:14]*** Partial cut [19:24:14]*** CUTSNS_PIN = 1 [19:24:14]*** CUTSNS_PIN = 0 [19:24:15]*** Brake cut motor [19:24:15]Read from MH i2c: 01 [19:24:15]MH_I2C_Read... [19:24:15]*** Stop cut motor [19:24:15]*** Cut end [19:24:15]Read from MH i2c: 01 07 00 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: 01 07 00 0A 78 00 00 00 00 00 FF 0F 97 [19:24:15]process_action print_text done [19:24:15]requested_data is exist [19:24:15]produce_requested_data [19:24:15]requested_item fm.sn is exist - process it [19:24:15]wFMCommunicate request_size=4 [19:24:15]MH_SAM_APDU [19:24:15]CAPDU: 80 11 00 00 [19:24:15]Write to MH i2c: E2 08 00 0B 78 80 11 00 00 00 00 00 00 FD [19:24:15]Write i2c OK [19:24:15]MH_I2C_Read... [19:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:15]OFD Sender: No OFD packet to send [19:24:15]Read from MH i2c: E2 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: E2 17 00 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: E2 17 00 0B 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 58 [19:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:24:15]wFMCommunicate OK [19:24:15]requested_item fd.num is exist - process it [19:24:15]SAM_PROTO_GetFieldsCounters [19:24:15]wFMCommunicate request_size=4 [19:24:15]MH_SAM_APDU [19:24:15]CAPDU: 80 13 00 00 [19:24:15]Write to MH i2c: E2 08 00 0C 78 80 13 00 00 00 00 00 00 00 [19:24:15]Write i2c OK [19:24:15]MH_I2C_Read... [19:24:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:15]Read from MH i2c: E2 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: E2 62 00 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: E2 62 00 0C 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6B D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 3A [19: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6B D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:15]wFMCommunicate OK [19:24:15]SAM_PROTO_GetFieldsCounters done [19:24:15]requested_item shift.num is exist - process it [19:24:15]requested_item shift.opened is exist - process it [19:24:15]req_shift_opened [19:24:15]FM_GetShiftState [19:24:15]SAM_PROTO_GetShiftState [19:24:15]wFMCommunicate request_size=4 [19:24:15]MH_SAM_APDU [19:24:15]CAPDU: 80 13 01 00 [19:24:15]Write to MH i2c: E2 08 00 0D 78 80 13 01 00 00 00 00 00 02 [19:24:15]Write i2c OK [19:24:15]MH_I2C_Read... [19:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:15]Read from MH i2c: E2 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: E2 0E 00 [19:24:15]MH_I2C_Read... [19:24:15]Read from MH i2c: E2 0E 00 0D 78 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 30 [19:24:15]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:24:15]wFMCommunicate OK [19:24:15]SAM_PROTO_GetShiftState done [19:24:15]FM_GetShiftState done [19:24:15]req_shift_opened done [19:24:15]requested_item shift.open_date is exist - process it [19:24:15]req_shift_open_date [19:24:15]req_shift_open_date done [19:24:15]produce_requested_data done [19:24:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118891,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [19:24:15]process_action_free print_text [19:24:15]json_value_free [19:24:15]json_value_free done [19:24:15]process_json_proto returns [19:24:15]Send response to host [19:24:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118891,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [19:24:15]free response buf [19:24:15]execute_script done [19:24:15]execute_script returns [19:24:15]free content buf [19:24:15]Sock 10.Close socket [19:24:15]Sock 10.Thread stoped [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:15]OFD Sender: No OFD packet to send [19:27:20]OFD Sender: No OFD packet to send [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:05]OFD Sender: No OFD packet to send [19:28:10]OFD Sender: No OFD packet to send [19:28:15]OFD Sender: No OFD packet to send [19:28:20]OFD Sender: No OFD packet to send [19:28:25]OFD Sender: No OFD packet to send [19:28:30]OFD Sender: No OFD packet to send [19:28:35]OFD Sender: No OFD packet to send [19:28:40]OFD Sender: No OFD packet to send [19:28:45]OFD Sender: No OFD packet to send [19:28:50]OFD Sender: No OFD packet to send [19:28:55]OFD Sender: No OFD packet to send [19:29:00]OFD Sender: No OFD packet to send [19:29:05]OFD Sender: No OFD packet to send [19:29:10]OFD Sender: No OFD packet to send [19:29:15]OFD Sender: No OFD packet to send [19:29:20]OFD Sender: No OFD packet to send [19:29:25]OFD Sender: No OFD packet to send [19:29:30]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:40]OFD Sender: No OFD packet to send [19:29:45]OFD Sender: No OFD packet to send [19:29:50]OFD Sender: No OFD packet to send [19:29:55]OFD Sender: No OFD packet to send [19:30:00]OFD Sender: No OFD packet to send [19:30:05]OFD Sender: No OFD packet to send [19:30:10]OFD Sender: No OFD packet to send [19:30:15]OFD Sender: No OFD packet to send [19:30:20]OFD Sender: No OFD packet to send [19:30:20]accept exits with 9 [19:30:20]New connection [19:30:20]New thread 3067383140 created [19:30:20]Thread 3067239780 joined [19:30:20]Waiting for new connection... [19:30:20] Sock 9.Parse request [19:30:20]Sock 9.Check first char [19:30:20]Sock 9.First char is OK [19:30:20]request: POST /json_proto HTTP/1.0 [19:30:20]Method: POST [19:30:20]URL: /json_proto [19:30:20]Method is POST - this is cgi request [19:30:20]url: /json_proto [19:30:20]query_string will be loaded in cgi processing [19:30:20]execute_cgi json_proto POST (null) [19:30:20]execute_cgi path=json_proto method=POST [19:30:20]POST find Content-Length [19:30:20]Host: 172.17.45.7:8080 [19:30:20]Content-Length: 677 [19:30:20]Content-Type: application/json [19:30:20] [19:30:20]POST finish read [19:30:20]Found Content-Length = 677 [19:30:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:20]execute_script... [19:30:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:20]POST & json_proto [19:30:20]process_json_proto [19:30:20]json parsed OK: [19:30:20]protocol is kg_v1.0 [19:30:20]action value=close_receipt [19:30:20]process_action close_receipt [19:30:20]cmd_close_receipt [19:30:20]MH_GetDate [19:30:20]Write to MH i2c: F0 00 00 0E 78 75 [19:30:20]Write i2c OK [19:30:20]MH_I2C_Read... [19:30:20]Read from MH i2c: F0 [19:30:20]MH_I2C_Read... [19:30:20]Read from MH i2c: F0 09 00 [19:30:20]MH_I2C_Read... [19:30:20]Read from MH i2c: F0 09 00 0E 78 00 D3 ED A7 66 90 0F 3E 66 8E [19:30:20]GetLastDocTimeStamp 1722280934 [19:30:20]current date 1722281427 [19:30:20]FM_GetShiftState [19:30:20]SAM_PROTO_GetShiftState [19:30:20]wFMCommunicate request_size=4 [19:30:20]MH_SAM_APDU [19:30:20]CAPDU: 80 13 01 00 [19:30:20]Write to MH i2c: E2 08 00 0F 78 80 13 01 00 00 00 00 00 04 [19:30:20]Write i2c OK [19:30:20]MH_I2C_Read... [19:30:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:21]Read from MH i2c: E2 [19:30:21]MH_I2C_Read... [19:30:21]Read from MH i2c: E2 0E 00 [19:30:21]MH_I2C_Read... [19:30:21]Read from MH i2c: E2 0E 00 0F 78 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 32 [19:30:21]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:30:21]wFMCommunicate OK [19:30:21]SAM_PROTO_GetShiftState done [19:30:21]FM_GetShiftState done [19:30:21]opened in 1722211641 [19:30:21]opened+sec_in_day 1722298041 [19:30:21]quantity*price = 50036 [19:30:21]sum+1 = 50037 [19:30:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 268 29.07.2024 19:30 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118892 ФПД: 275652659543910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T193028&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118892&fm=275652659543910&tin=02508201610067®Number=0000000000092660&sum=50000 [19:30:22]StoreToDocumentArchive [19:30:22]shift 434 fd 118892 [19:30:22]save to /storage/0434/doc_00118892 [19:30:22]save last doc name /storage/0434/doc_00118892 to /storage/kkm_last_doc_name [19:30:22]save OK [19:30:22]Clear old archive folders... [19:30:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:30:22]tlvbuf is 0203E680 [19:30:22]SAM_PROTO_ClearQueue [19:30:22]wFMCommunicate request_size=4 [19:30:22]MH_SAM_APDU [19:30:22]CAPDU: 80 09 00 00 [19:30:22]Write to MH i2c: E2 08 00 1C 78 80 09 00 00 00 00 00 00 06 [19:30:22]Write i2c OK [19:30:22]MH_I2C_Read... [19:30:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:22]Read from MH i2c: E2 [19:30:22]MH_I2C_Read... [19:30:22]Read from MH i2c: E2 03 00 [19:30:22]MH_I2C_Read... [19:30:22]Read from MH i2c: E2 03 00 1C 78 00 90 00 08 [19:30:22]RAPDU: 90 00 [19:30:22]wFMCommunicate OK [19:30:22]SAM_PROTO_ClearQueue done [19:30:22]KKMCreateOFDPacket [19:30:22]OFDProtocolAddRootSTLVToBuf [19:30:22]FM_MakeSignedData [19:30:22]FM_MakeSignedData [19:30:22]SAM_PROTO_SignData [19:30:22]wFMCommunicate request_size=4 [19:30:22]MH_SAM_APDU [19:30:22]CAPDU: 80 0D 01 02 [19:30:22]Write to MH i2c: E2 08 00 1D 78 80 0D 01 02 00 00 00 00 0E [19:30:22]Write i2c OK [19:30:22]MH_I2C_Read... [19:30:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:22]Read from MH i2c: E2 [19:30:22]MH_I2C_Read... [19:30:22]Read from MH i2c: E2 03 00 [19:30:22]MH_I2C_Read... [19:30:22]Read from MH i2c: E2 03 00 1D 78 00 90 00 09 [19:30:22]RAPDU: 90 00 [19:30:22]wFMCommunicate OK [19:30:22]wFMCommunicate request_size=255 [19:30:22]MH_SAM_APDU [19:30:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 D4 ED A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C D0 01 00 35 04 06 00 FA [19:30:22]Write to MH i2c: E2 02 01 1E 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 D4 ED A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C D0 01 00 35 04 06 00 FA 00 00 57 [19:30:22]Write i2c OK [19:30:22]MH_I2C_Read... [19:30:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:22]Read from MH i2c: E2 [19:30:22]MH_I2C_Read... [19:30:22]Read from MH i2c: E2 03 00 [19:30:22]MH_I2C_Read... [19:30:22]Read from MH i2c: E2 03 00 1E 78 00 90 00 0A [19:30:22]RAPDU: 90 00 [19:30:22]wFMCommunicate OK [19:30:22]wFMCommunicate request_size=10 [19:30:22]MH_SAM_APDU [19:30:22]CAPDU: 80 0D 02 02 05 B4 62 DA 7F 66 [19:30:22]Write to MH i2c: E2 0D 00 1F 78 80 0D 02 02 05 00 B4 62 DA 7F 66 00 00 F0 [19:30:22]Write i2c OK [19:30:22]MH_I2C_Read... [19:30:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:22]Read from MH i2c: E2 [19:30:22]MH_I2C_Read... [19:30:22]Read from MH i2c: E2 03 00 [19:30:22]MH_I2C_Read... [19:30:22]Read from MH i2c: E2 03 00 1F 78 00 90 00 0B [19:30:22]RAPDU: 90 00 [19:30:22]wFMCommunicate OK [19:30:22]wFMCommunicate request_size=4 [19:30:22]MH_SAM_APDU [19:30:22]CAPDU: 80 0D 03 02 [19:30:22]Write to MH i2c: E2 08 00 20 78 80 0D 03 02 00 00 00 00 13 [19:30:22]Write i2c OK [19:30:22]MH_I2C_Read... [19:30:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:22]Read from MH i2c: E2 [19:30:22]MH_I2C_Read... [19:30:22]Read from MH i2c: E2 0B 00 [19:30:22]MH_I2C_Read... [19:30:22]Read from MH i2c: E2 0B 00 20 78 00 78 71 37 8D 5B 91 EF BD 90 00 59 [19:30:22]RAPDU: 78 71 37 8D 5B 91 EF BD 90 00 [19:30:22]wFMCommunicate OK [19:30:22]SAM_PROTO_SignData done [19:30:22]FM_MakeSignedData done [19:30:22]CreateOFDProtocolMessage [19:30:22]wFMCommunicate request_size=4 [19:30:22]MH_SAM_APDU [19:30:22]CAPDU: 80 11 00 00 [19:30:22]Write to MH i2c: E2 08 00 21 78 80 11 00 00 00 00 00 00 13 [19:30:22]Write i2c OK [19:30:22]MH_I2C_Read... [19:30:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:22]Read from MH i2c: E2 [19:30:22]MH_I2C_Read... [19:30:22]Read from MH i2c: E2 17 00 [19:30:22]MH_I2C_Read... [19:30:22]Read from MH i2c: E2 17 00 21 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6E [19:30:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:30:22]wFMCommunicate OK [19:30:22]CreateOFDProtocolMessage done [19:30:22]OFDSenderStorePacket 118892 [19:30:22]StoreOFDPacket docnum=118892 [19:30:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 92 1B 07 01 FE 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 D4 ED A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C D0 01 00 35 04 06 00 FA B4 62 DA 7F 66 78 71 37 8D 5B 91 EF BD [19:30:22]CheckFolder [19:30:22]dirname=/storage/ofd_packets [19:30:22]CheckFolder done [19:30:22]ProducePacketName [19:30:22]name=ofd_packets/00118892 [19:30:22]NVStorageSaveData ofd_packets/00118892 [19:30:22]File name is /storage/ofd_packets/00118892 [19:30:22]Write 301 bytes [19:30:22]NVStorageSaveData done [19:30:22]OFDSenderStorePacket done [19:30:22]KKMCreateOFDPacket done [19:30:22]NVStorageSaveData kkm_last_timestamp [19:30:22]File name is /storage/kkm_last_timestamp [19:30:22]Write 4 bytes [19:30:22]NVStorageSaveData done [19:30:22]ExternCall_PrintAddStr [19:30:22]wPrintStart [19:30:22]Write to MH i2c: 01 00 00 22 78 9A [19:30:22]Write i2c OK [19:30:22]MH_I2C_Read... [19:30:22]Read from MH i2c: 01 [19:30:22]MH_I2C_Read... [19:30:22]Read from MH i2c: 01 07 00 [19:30:22]MH_I2C_Read... [19:30:22]Read from MH i2c: 01 07 00 22 78 00 00 00 00 00 FF 0F AF [19:30:22]RasterBufferAndPrint [19:30:22]line Счет N : (1)949785 [19:30:22]line ИНН: 02508201610067 [19:30:22]line Контрольно-Кассовый Чек [19:30:22]line ПРОДАЖА [19:30:22]line ТРК (МРК, ГНК) : 41 [19:30:22]line Товар: 2710124130 [19:30:22]line Аи-92-К-4 [19:30:22]line 7.380 * 67.80 [19:30:22]line = 500.36 [19:30:22]line НДС 12% НСП 1% [19:30:22]line > о реализуемом товаре [19:30:22]line ОКРУГЛЕНИЕ: -0.36 [19:30:22]line ИТОГО: 500.00 [19:30:22]line Внесено: 500.00 [19:30:22]line СДАЧА: 0.00 [19:30:22]line НСП 1% : 4.43 [19:30:22]line НДС 12% : 53.14 [19:30:22]line Наличными: 500.00 [19:30:22]line Безнал.: 0.00 [19:30:22]line Место: АЗС № 134 "Партнер Нефть" [19:30:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:30:22]line СНО: Общий режим [19:30:22]line Чек 268 29.07.2024 19:30 [19:30:22]line Смена: 434 ФФД: 1.0 [19:30:22]line ЗНМ: 0300000044 [19:30:22]line РНМ: 0000000000092660 [19:30:22]line Версия ККМ: 001 [19:30:22]line ФМ: 0000000000874939 [19:30:22]line ФД: 118892 [19:30:22]line ФПД: 275652659543910 [19:30:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T193028&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118892&fm=275652659543910&tin=02508201610067®Number=0000000000092660&sum=50000 [19:30:23]written 0, free lines is 4095 [19:30:23]OFD Sender: Processing packet 118892 [packets to send 86, broken 85] [19:30:23]ProducePacketName [19:30:23]name=ofd_packets/00118892 [19:30:23]OFD Sender: To server: pG, [19:30:23]CommunicateWithHost lk.salyk.kg:30040 [19:30:23]ConnectInit lk.salyk.kg [19:30:23]Connected sock=10 [19:30:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 92 1B 07 01 FE 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 D4 ED A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C D0 01 00 35 04 06 00 FA B4 62 DA 7F 66 78 71 37 8D 5B 91 EF BD [19:30:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 48 FD 47 00 0B 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 34 39 33 39 10 04 04 00 6C D0 01 00 F4 03 04 00 61 9B A7 66 B6 04 01 00 00 8B 1A DC BA E9 F6 BA 10 [19:30:23]CommunicateWithHost err = 0 [19:30:23]CheckOFDResponse [19:30:23]1017 (14) - 77093643461234 [19:30:23]1041 (16) - 0000000000874939 [19:30:23]1040 (4) - 118892 [19:30:23]1012 (4) - 29.07.2024 13:38 [19:30:23]1206 (1) - 0 [19:30:23]OFD Sender: Remove packet 118892 [19:30:23]ProducePacketName [19:30:23]name=ofd_packets/00118892 [19:30:23]NVStorageDeleteData [19:30:23]Write to MH i2c: 01 00 00 4C 78 C4 [19:30:23]Write i2c OK [19:30:23]MH_I2C_Read... [19:30:23]Read from MH i2c: 01 [19:30:23]MH_I2C_Read... [19:30:23]Read from MH i2c: 01 07 00 [19:30:23]MH_I2C_Read... [19:30:23]Read from MH i2c: 01 07 00 4C 78 00 00 00 00 00 D9 0C B0 [19:30:23]RasterBufferAndPrint [19:30:23]line [19:30:23]line [19:30:23]line [19:30:23]line [19:30:23]line [19:30:23]written 0, free lines is 3298 [19:30:23]MH_Cut [19:30:23]Write to MH i2c: D1 01 00 53 78 01 9D [19:30:23]Write i2c OK [19:30:23]MH_I2C_Read... [19:30:23]Read from MH i2c: D1 [19:30:23]MH_I2C_Read... [19:30:23]Read from MH i2c: D1 01 00 [19:30:23]MH_I2C_Read... [19:30:23]Read from MH i2c: D1 01 00 53 78 00 9C [19:30:23]Write to MH i2c: 01 00 00 54 78 CC [19:30:23]Write i2c OK [19:30:23]MH_I2C_Read... [19:30:23]OFD Sender: No OFD packet to send [19:30:24]*** Cut start [19:30:24]*** Partial cut [19:30:24]*** CUTSNS_PIN = 1 [19:30:24]*** CUTSNS_PIN = 0 [19:30:24]*** Brake cut motor [19:30:24]Read from MH i2c: 01 [19:30:24]MH_I2C_Read... [19:30:24]*** Stop cut motor [19:30:24]*** Cut end [19:30:24]Read from MH i2c: 01 07 00 [19:30:24]MH_I2C_Read... [19:30:24]Read from MH i2c: 01 07 00 54 78 00 00 00 00 00 FF 0F E1 [19:30:24]process_action close_receipt done [19:30:24]requested_data is exist [19:30:24]produce_requested_data [19:30:24]requested_item fm.sn is exist - process it [19:30:24]wFMCommunicate request_size=4 [19:30:24]MH_SAM_APDU [19:30:24]CAPDU: 80 11 00 00 [19:30:24]Write to MH i2c: E2 08 00 55 78 80 11 00 00 00 00 00 00 47 [19:30:24]Write i2c OK [19:30:24]MH_I2C_Read... [19:30:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:24]Read from MH i2c: E2 [19:30:24]MH_I2C_Read... [19:30:24]Read from MH i2c: E2 17 00 [19:30:24]MH_I2C_Read... [19:30:24]Read from MH i2c: E2 17 00 55 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A2 [19:30:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:30:24]wFMCommunicate OK [19:30:24]requested_item fd.num is exist - process it [19:30:24]SAM_PROTO_GetFieldsCounters [19:30:24]wFMCommunicate request_size=4 [19:30:24]MH_SAM_APDU [19:30:24]CAPDU: 80 13 00 00 [19:30:24]Write to MH i2c: E2 08 00 56 78 80 13 00 00 00 00 00 00 4A [19:30:24]Write i2c OK [19:30:24]MH_I2C_Read... [19:30:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:25]Read from MH i2c: E2 [19:30:25]MH_I2C_Read... [19:30:25]Read from MH i2c: E2 62 00 [19:30:25]MH_I2C_Read... [19:30:25]Read from MH i2c: E2 62 00 56 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6C D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [19:30: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6C D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:25]wFMCommunicate OK [19:30:25]SAM_PROTO_GetFieldsCounters done [19:30:25]requested_item shift.num is exist - process it [19:30:25]requested_item shift.opened is exist - process it [19:30:25]req_shift_opened [19:30:25]FM_GetShiftState [19:30:25]SAM_PROTO_GetShiftState [19:30:25]wFMCommunicate request_size=4 [19:30:25]MH_SAM_APDU [19:30:25]CAPDU: 80 13 01 00 [19:30:25]Write to MH i2c: E2 08 00 57 78 80 13 01 00 00 00 00 00 4C [19:30:25]Write i2c OK [19:30:25]MH_I2C_Read... [19:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:25]Read from MH i2c: E2 [19:30:25]MH_I2C_Read... [19:30:25]Read from MH i2c: E2 0E 00 [19:30:25]MH_I2C_Read... [19:30:25]Read from MH i2c: E2 0E 00 57 78 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 7A [19:30:25]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:30:25]wFMCommunicate OK [19:30:25]SAM_PROTO_GetShiftState done [19:30:25]FM_GetShiftState done [19:30:25]req_shift_opened done [19:30:25]requested_item shift.open_date is exist - process it [19:30:25]req_shift_open_date [19:30:25]req_shift_open_date done [19:30:25]produce_requested_data done [19:30:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118892,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [19:30:25]process_action_free close_receipt [19:30:25]json_value_free [19:30:25]json_value_free done [19:30:25]process_json_proto returns [19:30:25]Send response to host [19:30:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118892,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [19:30:25]free response buf [19:30:25]execute_script done [19:30:25]execute_script returns [19:30:25]free content buf [19:30:25]Sock 9.Close socket [19:30:25]Sock 9.Thread stoped [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32:44]OFD Sender: No OFD packet to send [19:32:49]OFD Sender: No OFD packet to send [19:32:54]OFD Sender: No OFD packet to send [19:32:59]OFD Sender: No OFD packet to send [19:33:04]OFD Sender: No OFD packet to send [19:33:09]OFD Sender: No OFD packet to send [19:33:14]OFD Sender: No OFD packet to send [19:33:19]OFD Sender: No OFD packet to send [19:33:24]OFD Sender: No OFD packet to send [19:33:29]OFD Sender: No OFD packet to send [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:24]OFD Sender: No OFD packet to send [19:34:29]OFD Sender: No OFD packet to send [19:34:34]OFD Sender: No OFD packet to send [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]OFD Sender: No OFD packet to send [19:35:24]OFD Sender: No OFD packet to send [19:35:29]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36:14]OFD Sender: No OFD packet to send [19:36:19]OFD Sender: No OFD packet to send [19:36:24]OFD Sender: No OFD packet to send [19:36:29]OFD Sender: No OFD packet to send [19:36:34]OFD Sender: No OFD packet to send [19:36:39]OFD Sender: No OFD packet to send [19:36:44]OFD Sender: No OFD packet to send [19:36:49]OFD Sender: No OFD packet to send [19:36:54]OFD Sender: No OFD packet to send [19:36:59]OFD Sender: No OFD packet to send [19:37:04]OFD Sender: No OFD packet to send [19:37:09]OFD Sender: No OFD packet to send [19:37:14]OFD Sender: No OFD packet to send [19:37:19]OFD Sender: No OFD packet to send [19:37:24]OFD Sender: No OFD packet to send [19:37:29]OFD Sender: No OFD packet to send [19:37:34]OFD Sender: No OFD packet to send [19:37:39]OFD Sender: No OFD packet to send [19:37:44]OFD Sender: No OFD packet to send [19:37:49]OFD Sender: No OFD packet to send [19:37:54]OFD Sender: No OFD packet to send [19:37:59]OFD Sender: No OFD packet to send [19:38:04]OFD Sender: No OFD packet to send [19:38:09]OFD Sender: No OFD packet to send [19:38:14]OFD Sender: No OFD packet to send [19:38:19]OFD Sender: No OFD packet to send [19:38:24]OFD Sender: No OFD packet to send [19:38:29]OFD Sender: No OFD packet to send [19:38:34]OFD Sender: No OFD packet to send [19:38:39]OFD Sender: No OFD packet to send [19:38:44]OFD Sender: No OFD packet to send [19:38:49]OFD Sender: No OFD packet to send [19:38:54]OFD Sender: No OFD packet to send [19:38:59]OFD Sender: No OFD packet to send [19:39:04]OFD Sender: No OFD packet to send [19:39:09]OFD Sender: No OFD packet to send [19:39:14]OFD Sender: No OFD packet to send [19:39:19]OFD Sender: No OFD packet to send [19:39:24]OFD Sender: No OFD packet to send [19:39:29]OFD Sender: No OFD packet to send [19:39:34]OFD Sender: No OFD packet to send [19:39:39]OFD Sender: No OFD packet to send [19:39:44]OFD Sender: No OFD packet to send [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:39]OFD Sender: No OFD packet to send [19:41:44]OFD Sender: No OFD packet to send [19:41:49]OFD Sender: No OFD packet to send [19:41:54]OFD Sender: No OFD packet to send [19:41:59]OFD Sender: No OFD packet to send [19:42:04]OFD Sender: No OFD packet to send [19:42:09]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:19]OFD Sender: No OFD packet to send [19:42:24]OFD Sender: No OFD packet to send [19:42:29]OFD Sender: No OFD packet to send [19:42:34]OFD Sender: No OFD packet to send [19:42:39]OFD Sender: No OFD packet to send [19:42:44]OFD Sender: No OFD packet to send [19:42:49]OFD Sender: No OFD packet to send [19:42:54]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:29]OFD Sender: No OFD packet to send [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:19]OFD Sender: No OFD packet to send [19:44:24]OFD Sender: No OFD packet to send [19:44:27]accept exits with 7 [19:44:27]New connection [19:44:27]New thread 3067239780 created [19:44:27]Thread 3067383140 joined [19:44:27]Waiting for new connection... [19:44:27] Sock 7.Parse request [19:44:27]Sock 7.Check first char [19:44:27]Sock 7.First char is OK [19:44:27]request: POST /json_proto HTTP/1.0 [19:44:27]Method: POST [19:44:27]URL: /json_proto [19:44:27]Method is POST - this is cgi request [19:44:27]url: /json_proto [19:44:27]query_string will be loaded in cgi processing [19:44:27]execute_cgi json_proto POST (null) [19:44:27]execute_cgi path=json_proto method=POST [19:44:27]POST find Content-Length [19:44:27]Host: 172.17.45.7:8080 [19:44:27]Content-Length: 677 [19:44:27]Content-Type: application/json [19:44:27] [19:44:27]POST finish read [19:44:27]Found Content-Length = 677 [19:44:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:27]execute_script... [19:44:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:27]POST & json_proto [19:44:27]process_json_proto [19:44:27]json parsed OK: [19:44:27]protocol is kg_v1.0 [19:44:27]action value=close_receipt [19:44:27]process_action close_receipt [19:44:27]cmd_close_receipt [19:44:27]MH_GetDate [19:44:27]Write to MH i2c: F0 00 00 58 78 BF [19:44:27]Write i2c OK [19:44:27]MH_I2C_Read... [19:44:27]Read from MH i2c: F0 [19:44:27]MH_I2C_Read... [19:44:27]Read from MH i2c: F0 09 00 [19:44:27]MH_I2C_Read... [19:44:27]Read from MH i2c: F0 09 00 58 78 00 22 F1 A7 66 90 0F 3E 66 2B [19:44:27]GetLastDocTimeStamp 1722281428 [19:44:27]current date 1722282274 [19:44:27]FM_GetShiftState [19:44:27]SAM_PROTO_GetShiftState [19:44:27]wFMCommunicate request_size=4 [19:44:27]MH_SAM_APDU [19:44:27]CAPDU: 80 13 01 00 [19:44:27]Write to MH i2c: E2 08 00 59 78 80 13 01 00 00 00 00 00 4E [19:44:27]Write i2c OK [19:44:27]MH_I2C_Read... [19:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:27]Read from MH i2c: E2 [19:44:27]MH_I2C_Read... [19:44:27]Read from MH i2c: E2 0E 00 [19:44:27]MH_I2C_Read... [19:44:27]Read from MH i2c: E2 0E 00 59 78 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 7C [19:44:27]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:44:27]wFMCommunicate OK [19:44:27]SAM_PROTO_GetShiftState done [19:44:27]FM_GetShiftState done [19:44:27]opened in 1722211641 [19:44:27]opened+sec_in_day 1722298041 [19:44:27]quantity*price = 50036 [19:44:27]sum+1 = 50037 [19:44:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 269 29.07.2024 19:44 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118893 ФПД: 218706081051531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T194434&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118893&fm=218706081051531&tin=02508201610067®Number=0000000000092660&sum=50000 [19:44:28]StoreToDocumentArchive [19:44:28]shift 434 fd 118893 [19:44:28]save to /storage/0434/doc_00118893 [19:44:28]save last doc name /storage/0434/doc_00118893 to /storage/kkm_last_doc_name [19:44:28]save OK [19:44:28]Clear old archive folders... [19:44:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:44:28]tlvbuf is B6E116A0 [19:44:28]SAM_PROTO_ClearQueue [19:44:28]wFMCommunicate request_size=4 [19:44:28]MH_SAM_APDU [19:44:28]CAPDU: 80 09 00 00 [19:44:28]Write to MH i2c: E2 08 00 66 78 80 09 00 00 00 00 00 00 50 [19:44:28]Write i2c OK [19:44:28]MH_I2C_Read... [19:44:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:28]Read from MH i2c: E2 [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: E2 03 00 [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: E2 03 00 66 78 00 90 00 52 [19:44:28]RAPDU: 90 00 [19:44:28]wFMCommunicate OK [19:44:28]SAM_PROTO_ClearQueue done [19:44:28]KKMCreateOFDPacket [19:44:28]OFDProtocolAddRootSTLVToBuf [19:44:28]FM_MakeSignedData [19:44:28]FM_MakeSignedData [19:44:28]SAM_PROTO_SignData [19:44:28]wFMCommunicate request_size=4 [19:44:28]MH_SAM_APDU [19:44:28]CAPDU: 80 0D 01 02 [19:44:28]Write to MH i2c: E2 08 00 67 78 80 0D 01 02 00 00 00 00 58 [19:44:28]Write i2c OK [19:44:28]MH_I2C_Read... [19:44:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:28]Read from MH i2c: E2 [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: E2 03 00 [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: E2 03 00 67 78 00 90 00 53 [19:44:28]RAPDU: 90 00 [19:44:28]wFMCommunicate OK [19:44:28]wFMCommunicate request_size=255 [19:44:28]MH_SAM_APDU [19:44:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 22 F1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6D D0 01 00 35 04 06 00 C6 [19:44:28]Write to MH i2c: E2 02 01 68 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 22 F1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6D D0 01 00 35 04 06 00 C6 00 00 C1 [19:44:28]Write i2c OK [19:44:28]MH_I2C_Read... [19:44:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:28]Read from MH i2c: E2 [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: E2 03 00 [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: E2 03 00 68 78 00 90 00 54 [19:44:28]RAPDU: 90 00 [19:44:28]wFMCommunicate OK [19:44:28]wFMCommunicate request_size=10 [19:44:28]MH_SAM_APDU [19:44:28]CAPDU: 80 0D 02 02 05 E9 7A 45 73 8B [19:44:28]Write to MH i2c: E2 0D 00 69 78 80 0D 02 02 05 00 E9 7A 45 73 8B 00 00 0B [19:44:28]Write i2c OK [19:44:28]MH_I2C_Read... [19:44:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:29]Read from MH i2c: E2 [19:44:29]MH_I2C_Read... [19:44:29]Read from MH i2c: E2 03 00 [19:44:29]MH_I2C_Read... [19:44:29]Read from MH i2c: E2 03 00 69 78 00 90 00 55 [19:44:29]RAPDU: 90 00 [19:44:29]wFMCommunicate OK [19:44:29]wFMCommunicate request_size=4 [19:44:29]MH_SAM_APDU [19:44:29]CAPDU: 80 0D 03 02 [19:44:29]Write to MH i2c: E2 08 00 6A 78 80 0D 03 02 00 00 00 00 5D [19:44:29]Write i2c OK [19:44:29]MH_I2C_Read... [19:44:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:29]Read from MH i2c: E2 [19:44:29]MH_I2C_Read... [19:44:29]Read from MH i2c: E2 0B 00 [19:44:29]MH_I2C_Read... [19:44:29]Read from MH i2c: E2 0B 00 6A 78 00 1D 75 85 88 2F BD FF 40 90 00 28 [19:44:29]RAPDU: 1D 75 85 88 2F BD FF 40 90 00 [19:44:29]wFMCommunicate OK [19:44:29]SAM_PROTO_SignData done [19:44:29]FM_MakeSignedData done [19:44:29]CreateOFDProtocolMessage [19:44:29]wFMCommunicate request_size=4 [19:44:29]MH_SAM_APDU [19:44:29]CAPDU: 80 11 00 00 [19:44:29]Write to MH i2c: E2 08 00 6B 78 80 11 00 00 00 00 00 00 5D [19:44:29]Write i2c OK [19:44:29]MH_I2C_Read... [19:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:29]Read from MH i2c: E2 [19:44:29]MH_I2C_Read... [19:44:29]Read from MH i2c: E2 17 00 [19:44:29]MH_I2C_Read... [19:44:29]Read from MH i2c: E2 17 00 6B 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B8 [19:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:44:29]wFMCommunicate OK [19:44:29]CreateOFDProtocolMessage done [19:44:29]OFDSenderStorePacket 118893 [19:44:29]StoreOFDPacket docnum=118893 [19:44:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 EE 52 07 01 89 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 22 F1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6D D0 01 00 35 04 06 00 C6 E9 7A 45 73 8B 1D 75 85 88 2F BD FF 40 [19:44:29]CheckFolder [19:44:29]dirname=/storage/ofd_packets [19:44:29]CheckFolder done [19:44:29]ProducePacketName [19:44:29]name=ofd_packets/00118893 [19:44:29]NVStorageSaveData ofd_packets/00118893 [19:44:29]File name is /storage/ofd_packets/00118893 [19:44:29]Write 301 bytes [19:44:29]NVStorageSaveData done [19:44:29]OFDSenderStorePacket done [19:44:29]KKMCreateOFDPacket done [19:44:29]NVStorageSaveData kkm_last_timestamp [19:44:29]File name is /storage/kkm_last_timestamp [19:44:29]Write 4 bytes [19:44:29]NVStorageSaveData done [19:44:29]ExternCall_PrintAddStr [19:44:29]wPrintStart [19:44:29]Write to MH i2c: 01 00 00 6C 78 E4 [19:44:29]Write i2c OK [19:44:29]MH_I2C_Read... [19:44:29]Read from MH i2c: 01 [19:44:29]MH_I2C_Read... [19:44:29]Read from MH i2c: 01 07 00 [19:44:29]MH_I2C_Read... [19:44:29]Read from MH i2c: 01 07 00 6C 78 00 00 00 00 00 FF 0F F9 [19:44:29]RasterBufferAndPrint [19:44:29]line Счет N : (1)949786 [19:44:29]line ИНН: 02508201610067 [19:44:29]line Контрольно-Кассовый Чек [19:44:29]line ПРОДАЖА [19:44:29]line ТРК (МРК, ГНК) : 41 [19:44:29]line Товар: 2710124130 [19:44:29]line Аи-92-К-4 [19:44:29]line 7.380 * 67.80 [19:44:29]line = 500.36 [19:44:29]line НДС 12% НСП 1% [19:44:29]line > о реализуемом товаре [19:44:29]line ОКРУГЛЕНИЕ: -0.36 [19:44:29]line ИТОГО: 500.00 [19:44:29]line Внесено: 500.00 [19:44:29]line СДАЧА: 0.00 [19:44:29]line НСП 1% : 4.43 [19:44:29]line НДС 12% : 53.14 [19:44:29]line Наличными: 500.00 [19:44:29]line Безнал.: 0.00 [19:44:29]line Место: АЗС № 134 "Партнер Нефть" [19:44:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:44:29]line СНО: Общий режим [19:44:29]line Чек 269 29.07.2024 19:44 [19:44:29]line Смена: 434 ФФД: 1.0 [19:44:29]line ЗНМ: 0300000044 [19:44:29]line РНМ: 0000000000092660 [19:44:29]line Версия ККМ: 001 [19:44:29]line ФМ: 0000000000874939 [19:44:29]line ФД: 118893 [19:44:29]line ФПД: 218706081051531 [19:44:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T194434&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118893&fm=218706081051531&tin=02508201610067®Number=0000000000092660&sum=50000 [19:44:29]written 0, free lines is 4095 [19:44:29]OFD Sender: Processing packet 118893 [packets to send 86, broken 85] [19:44:29]ProducePacketName [19:44:29]name=ofd_packets/00118893 [19:44:29]OFD Sender: To server: pG, [19:44:29]CommunicateWithHost lk.salyk.kg:30040 [19:44:29]ConnectInit lk.salyk.kg [19:44:29]Connected sock=10 [19:44:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 EE 52 07 01 89 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 22 F1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6D D0 01 00 35 04 06 00 C6 E9 7A 45 73 8B 1D 75 85 88 2F BD FF 40 [19:44:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 23 7B 47 00 A1 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6D D0 01 00 F4 03 04 00 AF 9E A7 66 B6 04 01 00 00 1B F4 84 0B 0E 57 A7 6C [19:44:29]CommunicateWithHost err = 0 [19:44:29]CheckOFDResponse [19:44:29]1017 (14) - 77093643461234 [19:44:29]1041 (16) - 0000000000874939 [19:44:29]1040 (4) - 118893 [19:44:29]1012 (4) - 29.07.2024 13:52 [19:44:29]1206 (1) - 0 [19:44:29]OFD Sender: Remove packet 118893 [19:44:29]ProducePacketName [19:44:29]name=ofd_packets/00118893 [19:44:29]NVStorageDeleteData [19:44:29]Write to MH i2c: 01 00 00 96 78 0E [19:44:29]Write i2c OK [19:44:29]MH_I2C_Read... [19:44:29]Read from MH i2c: 01 [19:44:29]MH_I2C_Read... [19:44:29]Read from MH i2c: 01 07 00 [19:44:29]MH_I2C_Read... [19:44:29]Read from MH i2c: 01 07 00 96 78 00 00 00 00 00 D2 0C F3 [19:44:29]RasterBufferAndPrint [19:44:29]line [19:44:29]line [19:44:29]line [19:44:29]line [19:44:29]line [19:44:29]written 0, free lines is 3288 [19:44:29]MH_Cut [19:44:29]Write to MH i2c: D1 01 00 9D 78 01 E7 [19:44:29]Write i2c OK [19:44:29]MH_I2C_Read... [19:44:29]Read from MH i2c: D1 [19:44:29]MH_I2C_Read... [19:44:29]Read from MH i2c: D1 01 00 [19:44:29]MH_I2C_Read... [19:44:29]Read from MH i2c: D1 01 00 9D 78 00 E6 [19:44:29]Write to MH i2c: 01 00 00 9E 78 16 [19:44:29]Write i2c OK [19:44:29]MH_I2C_Read... [19:44:30]OFD Sender: No OFD packet to send [19:44:30]*** Cut start [19:44:30]*** Partial cut [19:44:30]*** CUTSNS_PIN = 1 [19:44:30]*** CUTSNS_PIN = 0 [19:44:30]*** Brake cut motor [19:44:31]Read from MH i2c: 01 [19:44:31]MH_I2C_Read... [19:44:31]*** Stop cut motor [19:44:31]*** Cut end [19:44:31]Read from MH i2c: 01 07 00 [19:44:31]MH_I2C_Read... [19:44:31]Read from MH i2c: 01 07 00 9E 78 00 00 00 00 00 FF 0F 2B [19:44:31]process_action close_receipt done [19:44:31]requested_data is exist [19:44:31]produce_requested_data [19:44:31]requested_item fm.sn is exist - process it [19:44:31]wFMCommunicate request_size=4 [19:44:31]MH_SAM_APDU [19:44:31]CAPDU: 80 11 00 00 [19:44:31]Write to MH i2c: E2 08 00 9F 78 80 11 00 00 00 00 00 00 91 [19:44:31]Write i2c OK [19:44:31]MH_I2C_Read... [19:44:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:31]Read from MH i2c: E2 [19:44:31]MH_I2C_Read... [19:44:31]Read from MH i2c: E2 17 00 [19:44:31]MH_I2C_Read... [19:44:31]Read from MH i2c: E2 17 00 9F 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EC [19:44:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:44:31]wFMCommunicate OK [19:44:31]requested_item fd.num is exist - process it [19:44:31]SAM_PROTO_GetFieldsCounters [19:44:31]wFMCommunicate request_size=4 [19:44:31]MH_SAM_APDU [19:44:31]CAPDU: 80 13 00 00 [19:44:31]Write to MH i2c: E2 08 00 A0 78 80 13 00 00 00 00 00 00 94 [19:44:31]Write i2c OK [19:44:31]MH_I2C_Read... [19:44:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:31]Read from MH i2c: E2 [19:44:31]MH_I2C_Read... [19:44:31]Read from MH i2c: E2 62 00 [19:44:31]MH_I2C_Read... [19:44:31]Read from MH i2c: E2 62 00 A0 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6D D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 D6 [19: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6D D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:44:31]wFMCommunicate OK [19:44:31]SAM_PROTO_GetFieldsCounters done [19:44:31]requested_item shift.num is exist - process it [19:44:31]requested_item shift.opened is exist - process it [19:44:31]req_shift_opened [19:44:31]FM_GetShiftState [19:44:31]SAM_PROTO_GetShiftState [19:44:31]wFMCommunicate request_size=4 [19:44:31]MH_SAM_APDU [19:44:31]CAPDU: 80 13 01 00 [19:44:31]Write to MH i2c: E2 08 00 A1 78 80 13 01 00 00 00 00 00 96 [19:44:31]Write i2c OK [19:44:31]MH_I2C_Read... [19:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:31]Read from MH i2c: E2 [19:44:31]MH_I2C_Read... [19:44:31]Read from MH i2c: E2 0E 00 [19:44:31]MH_I2C_Read... [19:44:31]Read from MH i2c: E2 0E 00 A1 78 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C4 [19:44:31]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:44:31]wFMCommunicate OK [19:44:31]SAM_PROTO_GetShiftState done [19:44:31]FM_GetShiftState done [19:44:31]req_shift_opened done [19:44:31]requested_item shift.open_date is exist - process it [19:44:31]req_shift_open_date [19:44:31]req_shift_open_date done [19:44:31]produce_requested_data done [19:44:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118893,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [19:44:31]process_action_free close_receipt [19:44:31]json_value_free [19:44:31]json_value_free done [19:44:31]process_json_proto returns [19:44:31]Send response to host [19:44:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118893,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [19:44:31]free response buf [19:44:31]execute_script done [19:44:31]execute_script returns [19:44:31]free content buf [19:44:31]Sock 7.Close socket [19:44:31]Sock 7.Thread stoped [19:44:35]OFD Sender: No OFD packet to send [19:44:40]OFD Sender: No OFD packet to send [19:44:45]OFD Sender: No OFD packet to send [19:44:50]OFD Sender: No OFD packet to send [19:44:55]OFD Sender: No OFD packet to send [19:45:00]OFD Sender: No OFD packet to send [19:45:05]OFD Sender: No OFD packet to send [19:45:10]OFD Sender: No OFD packet to send [19:45:15]OFD Sender: No OFD packet to send [19:45:20]OFD Sender: No OFD packet to send [19:45:25]OFD Sender: No OFD packet to send [19:45:30]OFD Sender: No OFD packet to send [19:45:35]OFD Sender: No OFD packet to send [19:45:40]OFD Sender: No OFD packet to send [19:45:45]OFD Sender: No OFD packet to send [19:45:50]OFD Sender: No OFD packet to send [19:45:55]OFD Sender: No OFD packet to send [19:46:00]OFD Sender: No OFD packet to send [19:46:05]OFD Sender: No OFD packet to send [19:46:10]OFD Sender: No OFD packet to send [19:46:15]OFD Sender: No OFD packet to send [19:46:20]OFD Sender: No OFD packet to send [19:46:25]OFD Sender: No OFD packet to send [19:46:30]OFD Sender: No OFD packet to send [19:46:35]accept exits with 9 [19:46:35]New connection [19:46:35]New thread 3067383140 created [19:46:35]Thread 3067239780 joined [19:46:35]Waiting for new connection... [19:46:35] Sock 9.Parse request [19:46:35]Sock 9.Check first char [19:46:35]Sock 9.First char is OK [19:46:35]request: POST /json_proto HTTP/1.0 [19:46:35]Method: POST [19:46:35]URL: /json_proto [19:46:35]Method is POST - this is cgi request [19:46:35]url: /json_proto [19:46:35]query_string will be loaded in cgi processing [19:46:35]execute_cgi json_proto POST (null) [19:46:35]execute_cgi path=json_proto method=POST [19:46:35]POST find Content-Length [19:46:35]Host: 172.17.45.7:8080 [19:46:35]Content-Length: 678 [19:46:35]Content-Type: application/json [19:46:35] [19:46:35]POST finish read [19:46:35]Found Content-Length = 678 [19:46:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:35]execute_script... [19:46:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:35]POST & json_proto [19:46:35]process_json_proto [19:46:35]json parsed OK: [19:46:35]protocol is kg_v1.0 [19:46:35]action value=close_receipt [19:46:35]process_action close_receipt [19:46:35]cmd_close_receipt [19:46:35]MH_GetDate [19:46:35]Write to MH i2c: F0 00 00 A2 78 09 [19:46:35]Write i2c OK [19:46:35]MH_I2C_Read... [19:46:35]Read from MH i2c: F0 [19:46:35]MH_I2C_Read... [19:46:35]Read from MH i2c: F0 09 00 [19:46:35]MH_I2C_Read... [19:46:35]Read from MH i2c: F0 09 00 A2 78 00 A2 F1 A7 66 90 0F 3E 66 F5 [19:46:35]GetLastDocTimeStamp 1722282274 [19:46:35]current date 1722282402 [19:46:35]FM_GetShiftState [19:46:35]SAM_PROTO_GetShiftState [19:46:35]wFMCommunicate request_size=4 [19:46:35]MH_SAM_APDU [19:46:35]CAPDU: 80 13 01 00 [19:46:35]Write to MH i2c: E2 08 00 A3 78 80 13 01 00 00 00 00 00 98 [19:46:35]Write i2c OK [19:46:35]MH_I2C_Read... [19:46:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:35]Read from MH i2c: E2 [19:46:35]MH_I2C_Read... [19:46:35]Read from MH i2c: E2 0E 00 [19:46:35]MH_I2C_Read... [19:46:35]Read from MH i2c: E2 0E 00 A3 78 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C6 [19:46:35]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:46:35]wFMCommunicate OK [19:46:35]SAM_PROTO_GetShiftState done [19:46:35]FM_GetShiftState done [19:46:35]opened in 1722211641 [19:46:35]opened+sec_in_day 1722298041 [19:46:35]quantity*price = 80004 [19:46:35]sum+1 = 80005 [19:46:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 270 29.07.2024 19:46 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118894 ФПД: 174916515685353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T194642&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118894&fm=174916515685353&tin=02508201610067®Number=0000000000092660&sum=80000 [19:46:36]StoreToDocumentArchive [19:46:36]shift 434 fd 118894 [19:46:36]save to /storage/0434/doc_00118894 [19:46:36]save last doc name /storage/0434/doc_00118894 to /storage/kkm_last_doc_name [19:46:36]save OK [19:46:36]Clear old archive folders... [19:46:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:46:36]tlvbuf is B6FBE640 [19:46:36]SAM_PROTO_ClearQueue [19:46:36]wFMCommunicate request_size=4 [19:46:36]MH_SAM_APDU [19:46:36]CAPDU: 80 09 00 00 [19:46:36]Write to MH i2c: E2 08 00 B0 78 80 09 00 00 00 00 00 00 9A [19:46:36]Write i2c OK [19:46:36]MH_I2C_Read... [19:46:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:36]Read from MH i2c: E2 [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: E2 03 00 [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: E2 03 00 B0 78 00 90 00 9C [19:46:36]RAPDU: 90 00 [19:46:36]wFMCommunicate OK [19:46:36]SAM_PROTO_ClearQueue done [19:46:36]KKMCreateOFDPacket [19:46:36]OFDProtocolAddRootSTLVToBuf [19:46:36]FM_MakeSignedData [19:46:36]FM_MakeSignedData [19:46:36]SAM_PROTO_SignData [19:46:36]wFMCommunicate request_size=4 [19:46:36]MH_SAM_APDU [19:46:36]CAPDU: 80 0D 01 02 [19:46:36]Write to MH i2c: E2 08 00 B1 78 80 0D 01 02 00 00 00 00 A2 [19:46:36]Write i2c OK [19:46:36]MH_I2C_Read... [19:46:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:36]Read from MH i2c: E2 [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: E2 03 00 [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: E2 03 00 B1 78 00 90 00 9D [19:46:36]RAPDU: 90 00 [19:46:36]wFMCommunicate OK [19:46:36]wFMCommunicate request_size=255 [19:46:36]MH_SAM_APDU [19:46:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 A2 F1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E D0 01 00 35 04 06 00 9F [19:46:36]Write to MH i2c: E2 02 01 B2 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 A2 F1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E D0 01 00 35 04 06 00 9F 00 00 13 [19:46:36]Write i2c OK [19:46:36]MH_I2C_Read... [19:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:36]Read from MH i2c: E2 [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: E2 03 00 [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: E2 03 00 B2 78 00 90 00 9E [19:46:36]RAPDU: 90 00 [19:46:36]wFMCommunicate OK [19:46:36]wFMCommunicate request_size=10 [19:46:36]MH_SAM_APDU [19:46:36]CAPDU: 80 0D 02 02 05 15 EC C8 63 E9 [19:46:36]Write to MH i2c: E2 0D 00 B3 78 80 0D 02 02 05 00 15 EC C8 63 E9 00 00 C4 [19:46:36]Write i2c OK [19:46:36]MH_I2C_Read... [19:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:36]Read from MH i2c: E2 [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: E2 03 00 [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: E2 03 00 B3 78 00 90 00 9F [19:46:36]RAPDU: 90 00 [19:46:36]wFMCommunicate OK [19:46:36]wFMCommunicate request_size=4 [19:46:36]MH_SAM_APDU [19:46:36]CAPDU: 80 0D 03 02 [19:46:36]Write to MH i2c: E2 08 00 B4 78 80 0D 03 02 00 00 00 00 A7 [19:46:36]Write i2c OK [19:46:36]MH_I2C_Read... [19:46:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:36]Read from MH i2c: E2 [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: E2 0B 00 [19:46:36]MH_I2C_Read... [19:46:36]Read from MH i2c: E2 0B 00 B4 78 00 7A 80 D4 3E 68 14 66 63 90 00 F9 [19:46:36]RAPDU: 7A 80 D4 3E 68 14 66 63 90 00 [19:46:36]wFMCommunicate OK [19:46:36]SAM_PROTO_SignData done [19:46:36]FM_MakeSignedData done [19:46:36]CreateOFDProtocolMessage [19:46:36]wFMCommunicate request_size=4 [19:46:36]MH_SAM_APDU [19:46:36]CAPDU: 80 11 00 00 [19:46:36]Write to MH i2c: E2 08 00 B5 78 80 11 00 00 00 00 00 00 A7 [19:46:36]Write i2c OK [19:46:36]MH_I2C_Read... [19:46:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:37]Read from MH i2c: E2 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 17 00 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: E2 17 00 B5 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 02 [19:46:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:46:37]wFMCommunicate OK [19:46:37]CreateOFDProtocolMessage done [19:46:37]OFDSenderStorePacket 118894 [19:46:37]StoreOFDPacket docnum=118894 [19:46:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 09 37 07 01 87 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 A2 F1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E D0 01 00 35 04 06 00 9F 15 EC C8 63 E9 7A 80 D4 3E 68 14 66 63 [19:46:37]CheckFolder [19:46:37]dirname=/storage/ofd_packets [19:46:37]CheckFolder done [19:46:37]ProducePacketName [19:46:37]name=ofd_packets/00118894 [19:46:37]NVStorageSaveData ofd_packets/00118894 [19:46:37]File name is /storage/ofd_packets/00118894 [19:46:37]Write 301 bytes [19:46:37]NVStorageSaveData done [19:46:37]OFDSenderStorePacket done [19:46:37]KKMCreateOFDPacket done [19:46:37]NVStorageSaveData kkm_last_timestamp [19:46:37]File name is /storage/kkm_last_timestamp [19:46:37]Write 4 bytes [19:46:37]NVStorageSaveData done [19:46:37]ExternCall_PrintAddStr [19:46:37]wPrintStart [19:46:37]Write to MH i2c: 01 00 00 B6 78 2E [19:46:37]Write i2c OK [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: 01 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: 01 07 00 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: 01 07 00 B6 78 00 00 00 00 00 FF 0F 43 [19:46:37]RasterBufferAndPrint [19:46:37]line Счет N : (1)949787 [19:46:37]line ИНН: 02508201610067 [19:46:37]line Контрольно-Кассовый Чек [19:46:37]line ПРОДАЖА [19:46:37]line ТРК (МРК, ГНК) : 31 [19:46:37]line Товар: 2710124130 [19:46:37]line Аи-92-К-4 [19:46:37]line 11.800 * 67.80 [19:46:37]line = 800.04 [19:46:37]line НДС 12% НСП 1% [19:46:37]line > о реализуемом товаре [19:46:37]line ОКРУГЛЕНИЕ: -0.04 [19:46:37]line ИТОГО: 800.00 [19:46:37]line Внесено: 800.00 [19:46:37]line СДАЧА: 0.00 [19:46:37]line НСП 1% : 7.08 [19:46:37]line НДС 12% : 84.96 [19:46:37]line Наличными: 800.00 [19:46:37]line Безнал.: 0.00 [19:46:37]line Место: АЗС № 134 "Партнер Нефть" [19:46:37]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:46:37]line СНО: Общий режим [19:46:37]line Чек 270 29.07.2024 19:46 [19:46:37]line Смена: 434 ФФД: 1.0 [19:46:37]line ЗНМ: 0300000044 [19:46:37]line РНМ: 0000000000092660 [19:46:37]line Версия ККМ: 001 [19:46:37]line ФМ: 0000000000874939 [19:46:37]line ФД: 118894 [19:46:37]line ФПД: 174916515685353 [19:46:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T194642&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118894&fm=174916515685353&tin=02508201610067®Number=0000000000092660&sum=80000 [19:46:37]OFD Sender: Processing packet 118894 [packets to send 86, broken 85] [19:46:37]ProducePacketName [19:46:37]name=ofd_packets/00118894 [19:46:37]OFD Sender: To server: pG, [19:46:37]CommunicateWithHost lk.salyk.kg:30040 [19:46:37]ConnectInit lk.salyk.kg [19:46:37]written 0, free lines is 4095 [19:46:37]Connected sock=10 [19:46:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 09 37 07 01 87 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 A2 F1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E D0 01 00 35 04 06 00 9F 15 EC C8 63 E9 7A 80 D4 3E 68 14 66 63 [19:46:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B2 3D 47 00 22 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E D0 01 00 F4 03 04 00 2F 9F A7 66 B6 04 01 00 00 ED A3 33 94 20 C6 0C A1 [19:46:37]CommunicateWithHost err = 0 [19:46:37]CheckOFDResponse [19:46:37]1017 (14) - 77093643461234 [19:46:37]1041 (16) - 0000000000874939 [19:46:37]1040 (4) - 118894 [19:46:37]1012 (4) - 29.07.2024 13:54 [19:46:37]1206 (1) - 0 [19:46:37]OFD Sender: Remove packet 118894 [19:46:37]ProducePacketName [19:46:37]name=ofd_packets/00118894 [19:46:37]NVStorageDeleteData [19:46:37]Write to MH i2c: 01 00 00 E0 78 58 [19:46:37]Write i2c OK [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: 01 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: 01 07 00 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: 01 07 00 E0 78 00 00 00 00 00 D3 0C 3E [19:46:37]RasterBufferAndPrint [19:46:37]line [19:46:37]line [19:46:37]line [19:46:37]line [19:46:37]line [19:46:37]written 0, free lines is 3290 [19:46:37]MH_Cut [19:46:37]Write to MH i2c: D1 01 00 E7 78 01 31 [19:46:37]Write i2c OK [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: D1 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: D1 01 00 [19:46:37]MH_I2C_Read... [19:46:37]Read from MH i2c: D1 01 00 E7 78 00 30 [19:46:37]Write to MH i2c: 01 00 00 E8 78 60 [19:46:37]Write i2c OK [19:46:37]MH_I2C_Read... [19:46:38]OFD Sender: No OFD packet to send [19:46:38]*** Cut start [19:46:38]*** Partial cut [19:46:38]*** CUTSNS_PIN = 1 [19:46:38]*** CUTSNS_PIN = 0 [19:46:38]*** Brake cut motor [19:46:39]Read from MH i2c: 01 [19:46:39]MH_I2C_Read... [19:46:39]*** Stop cut motor [19:46:39]*** Cut end [19:46:39]Read from MH i2c: 01 07 00 [19:46:39]MH_I2C_Read... [19:46:39]Read from MH i2c: 01 07 00 E8 78 00 00 00 00 00 FF 0F 75 [19:46:39]process_action close_receipt done [19:46:39]requested_data is exist [19:46:39]produce_requested_data [19:46:39]requested_item fm.sn is exist - process it [19:46:39]wFMCommunicate request_size=4 [19:46:39]MH_SAM_APDU [19:46:39]CAPDU: 80 11 00 00 [19:46:39]Write to MH i2c: E2 08 00 E9 78 80 11 00 00 00 00 00 00 DB [19:46:39]Write i2c OK [19:46:39]MH_I2C_Read... [19:46:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:39]Read from MH i2c: E2 [19:46:39]MH_I2C_Read... [19:46:39]Read from MH i2c: E2 17 00 [19:46:39]MH_I2C_Read... [19:46:39]Read from MH i2c: E2 17 00 E9 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 36 [19:46:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:46:39]wFMCommunicate OK [19:46:39]requested_item fd.num is exist - process it [19:46:39]SAM_PROTO_GetFieldsCounters [19:46:39]wFMCommunicate request_size=4 [19:46:39]MH_SAM_APDU [19:46:39]CAPDU: 80 13 00 00 [19:46:39]Write to MH i2c: E2 08 00 EA 78 80 13 00 00 00 00 00 00 DE [19:46:39]Write i2c OK [19:46:39]MH_I2C_Read... [19:46:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:39]Read from MH i2c: E2 [19:46:39]MH_I2C_Read... [19:46:39]Read from MH i2c: E2 62 00 [19:46:39]MH_I2C_Read... [19:46:39]Read from MH i2c: E2 62 00 EA 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6E D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 24 [19:46:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6E D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:46:39]wFMCommunicate OK [19:46:39]SAM_PROTO_GetFieldsCounters done [19:46:39]requested_item shift.num is exist - process it [19:46:39]requested_item shift.opened is exist - process it [19:46:39]req_shift_opened [19:46:39]FM_GetShiftState [19:46:39]SAM_PROTO_GetShiftState [19:46:39]wFMCommunicate request_size=4 [19:46:39]MH_SAM_APDU [19:46:39]CAPDU: 80 13 01 00 [19:46:39]Write to MH i2c: E2 08 00 EB 78 80 13 01 00 00 00 00 00 E0 [19:46:39]Write i2c OK [19:46:39]MH_I2C_Read... [19:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:39]Read from MH i2c: E2 [19:46:39]MH_I2C_Read... [19:46:39]Read from MH i2c: E2 0E 00 [19:46:39]MH_I2C_Read... [19:46:39]Read from MH i2c: E2 0E 00 EB 78 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 0E [19:46:39]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:46:39]wFMCommunicate OK [19:46:39]SAM_PROTO_GetShiftState done [19:46:39]FM_GetShiftState done [19:46:39]req_shift_opened done [19:46:39]requested_item shift.open_date is exist - process it [19:46:39]req_shift_open_date [19:46:39]req_shift_open_date done [19:46:39]produce_requested_data done [19:46:39]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118894,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [19:46:39]process_action_free close_receipt [19:46:39]json_value_free [19:46:39]json_value_free done [19:46:39]process_json_proto returns [19:46:39]Send response to host [19:46:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118894,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [19:46:39]free response buf [19:46:39]execute_script done [19:46:39]execute_script returns [19:46:39]free content buf [19:46:39]Sock 9.Close socket [19:46:39]Sock 9.Thread stoped [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47:03]OFD Sender: No OFD packet to send [19:47:08]OFD Sender: No OFD packet to send [19:47:13]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:28]OFD Sender: No OFD packet to send [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:28]OFD Sender: No OFD packet to send [19:54:33]OFD Sender: No OFD packet to send [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:58]OFD Sender: No OFD packet to send [19:55:03]OFD Sender: No OFD packet to send [19:55:08]OFD Sender: No OFD packet to send [19:55:13]OFD Sender: No OFD packet to send [19:55:18]OFD Sender: No OFD packet to send [19:55:23]OFD Sender: No OFD packet to send [19:55:28]OFD Sender: No OFD packet to send [19:55:33]OFD Sender: No OFD packet to send [19:55:38]OFD Sender: No OFD packet to send [19:55:43]OFD Sender: No OFD packet to send [19:55:48]OFD Sender: No OFD packet to send [19:55:53]OFD Sender: No OFD packet to send [19:55:58]OFD Sender: No OFD packet to send [19:56:02]accept exits with 7 [19:56:02]New connection [19:56:02]New thread 3067239780 created [19:56:02]Thread 3067383140 joined [19:56:02]Waiting for new connection... [19:56:02] Sock 7.Parse request [19:56:02]Sock 7.Check first char [19:56:02]Sock 7.First char is OK [19:56:02]request: POST /json_proto HTTP/1.0 [19:56:02]Method: POST [19:56:02]URL: /json_proto [19:56:02]Method is POST - this is cgi request [19:56:02]url: /json_proto [19:56:02]query_string will be loaded in cgi processing [19:56:02]execute_cgi json_proto POST (null) [19:56:02]execute_cgi path=json_proto method=POST [19:56:02]POST find Content-Length [19:56:02]Host: 172.17.45.7:8080 [19:56:02]Content-Length: 677 [19:56:02]Content-Type: application/json [19:56:02] [19:56:02]POST finish read [19:56:02]Found Content-Length = 677 [19:56:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:02]execute_script... [19:56: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)949788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:02]POST & json_proto [19:56:02]process_json_proto [19:56:02]json parsed OK: [19:56:02]protocol is kg_v1.0 [19:56:02]action value=close_receipt [19:56:02]process_action close_receipt [19:56:02]cmd_close_receipt [19:56:02]MH_GetDate [19:56:02]Write to MH i2c: F0 00 00 EC 78 53 [19:56:02]Write i2c OK [19:56:02]MH_I2C_Read... [19:56:02]Read from MH i2c: F0 [19:56:02]MH_I2C_Read... [19:56:02]Read from MH i2c: F0 09 00 [19:56:02]MH_I2C_Read... [19:56:02]Read from MH i2c: F0 09 00 EC 78 00 D9 F3 A7 66 90 0F 3E 66 78 [19:56:02]GetLastDocTimeStamp 1722282402 [19:56:02]current date 1722282969 [19:56:02]FM_GetShiftState [19:56:02]SAM_PROTO_GetShiftState [19:56:02]wFMCommunicate request_size=4 [19:56:02]MH_SAM_APDU [19:56:02]CAPDU: 80 13 01 00 [19:56:02]Write to MH i2c: E2 08 00 ED 78 80 13 01 00 00 00 00 00 E2 [19:56:02]Write i2c OK [19:56:02]MH_I2C_Read... [19:56:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:02]Read from MH i2c: E2 [19:56:02]MH_I2C_Read... [19:56:02]Read from MH i2c: E2 0E 00 [19:56:02]MH_I2C_Read... [19:56:02]Read from MH i2c: E2 0E 00 ED 78 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 10 [19:56:02]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:56:02]wFMCommunicate OK [19:56:02]SAM_PROTO_GetShiftState done [19:56:02]FM_GetShiftState done [19:56:02]opened in 1722211641 [19:56:02]opened+sec_in_day 1722298041 [19:56:02]quantity*price = 50036 [19:56:02]sum+1 = 50037 [19:56:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 271 29.07.2024 19:56 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118895 ФПД: 136182295945510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T195609&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118895&fm=136182295945510&tin=02508201610067®Number=0000000000092660&sum=50000 [19:56:03]StoreToDocumentArchive [19:56:03]shift 434 fd 118895 [19:56:03]save to /storage/0434/doc_00118895 [19:56:03]save last doc name /storage/0434/doc_00118895 to /storage/kkm_last_doc_name [19:56:03]save OK [19:56:03]Clear old archive folders... [19:56:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:56:03]tlvbuf is 02055790 [19:56:03]SAM_PROTO_ClearQueue [19:56:03]wFMCommunicate request_size=4 [19:56:03]MH_SAM_APDU [19:56:03]CAPDU: 80 09 00 00 [19:56:03]Write to MH i2c: E2 08 00 FA 78 80 09 00 00 00 00 00 00 E4 [19:56:03]Write i2c OK [19:56:03]MH_I2C_Read... [19:56:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:03]Read from MH i2c: E2 [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: E2 03 00 [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: E2 03 00 FA 78 00 90 00 E6 [19:56:03]RAPDU: 90 00 [19:56:03]wFMCommunicate OK [19:56:03]SAM_PROTO_ClearQueue done [19:56:03]KKMCreateOFDPacket [19:56:03]OFDProtocolAddRootSTLVToBuf [19:56:03]FM_MakeSignedData [19:56:03]FM_MakeSignedData [19:56:03]SAM_PROTO_SignData [19:56:03]wFMCommunicate request_size=4 [19:56:03]MH_SAM_APDU [19:56:03]CAPDU: 80 0D 01 02 [19:56:03]Write to MH i2c: E2 08 00 FB 78 80 0D 01 02 00 00 00 00 EC [19:56:03]Write i2c OK [19:56:03]MH_I2C_Read... [19:56:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:03]Read from MH i2c: E2 [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: E2 03 00 [19:56:03]MH_I2C_Read... [19:56:03]Read from MH i2c: E2 03 00 FB 78 00 90 00 E7 [19:56:03]RAPDU: 90 00 [19:56:03]wFMCommunicate OK [19:56:03]wFMCommunicate request_size=255 [19:56:03]MH_SAM_APDU [19:56: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 D9 F3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F D0 01 00 35 04 06 00 7B [19:56:03]Write to MH i2c: E2 02 01 FC 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 D9 F3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F D0 01 00 35 04 06 00 7B 00 00 C7 [19:56:03]Write i2c OK [19:56:03]MH_I2C_Read... [19:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:04]Read from MH i2c: E2 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: E2 03 00 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: E2 03 00 FC 78 00 90 00 E8 [19:56:04]RAPDU: 90 00 [19:56:04]wFMCommunicate OK [19:56:04]wFMCommunicate request_size=10 [19:56:04]MH_SAM_APDU [19:56:04]CAPDU: 80 0D 02 02 05 DB 69 5F E1 26 [19:56:04]Write to MH i2c: E2 0D 00 FD 78 80 0D 02 02 05 00 DB 69 5F E1 26 00 00 A3 [19:56:04]Write i2c OK [19:56:04]MH_I2C_Read... [19:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:04]Read from MH i2c: E2 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: E2 03 00 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: E2 03 00 FD 78 00 90 00 E9 [19:56:04]RAPDU: 90 00 [19:56:04]wFMCommunicate OK [19:56:04]wFMCommunicate request_size=4 [19:56:04]MH_SAM_APDU [19:56:04]CAPDU: 80 0D 03 02 [19:56:04]Write to MH i2c: E2 08 00 FE 78 80 0D 03 02 00 00 00 00 F1 [19:56:04]Write i2c OK [19:56:04]MH_I2C_Read... [19:56:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:04]Read from MH i2c: E2 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: E2 0B 00 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: E2 0B 00 FE 78 00 55 E2 75 9B 20 40 C3 88 90 00 E4 [19:56:04]RAPDU: 55 E2 75 9B 20 40 C3 88 90 00 [19:56:04]wFMCommunicate OK [19:56:04]SAM_PROTO_SignData done [19:56:04]FM_MakeSignedData done [19:56:04]CreateOFDProtocolMessage [19:56:04]wFMCommunicate request_size=4 [19:56:04]MH_SAM_APDU [19:56:04]CAPDU: 80 11 00 00 [19:56:04]Write to MH i2c: E2 08 00 FF 78 80 11 00 00 00 00 00 00 F1 [19:56:04]Write i2c OK [19:56:04]MH_I2C_Read... [19:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:04]Read from MH i2c: E2 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: E2 17 00 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: E2 17 00 FF 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4C [19:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:56:04]wFMCommunicate OK [19:56:04]CreateOFDProtocolMessage done [19:56:04]OFDSenderStorePacket 118895 [19:56:04]StoreOFDPacket docnum=118895 [19:56:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 38 63 07 01 64 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 D9 F3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F D0 01 00 35 04 06 00 7B DB 69 5F E1 26 55 E2 75 9B 20 40 C3 88 [19:56:04]CheckFolder [19:56:04]dirname=/storage/ofd_packets [19:56:04]CheckFolder done [19:56:04]ProducePacketName [19:56:04]name=ofd_packets/00118895 [19:56:04]NVStorageSaveData ofd_packets/00118895 [19:56:04]File name is /storage/ofd_packets/00118895 [19:56:04]Write 301 bytes [19:56:04]NVStorageSaveData done [19:56:04]OFDSenderStorePacket done [19:56:04]KKMCreateOFDPacket done [19:56:04]NVStorageSaveData kkm_last_timestamp [19:56:04]File name is /storage/kkm_last_timestamp [19:56:04]Write 4 bytes [19:56:04]NVStorageSaveData done [19:56:04]ExternCall_PrintAddStr [19:56:04]wPrintStart [19:56:04]Write to MH i2c: 01 00 00 00 79 79 [19:56:04]Write i2c OK [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: 01 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: 01 07 00 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: 01 07 00 00 79 00 00 00 00 00 FF 0F 8E [19:56:04]RasterBufferAndPrint [19:56:04]line Счет N : (1)949788 [19:56:04]line ИНН: 02508201610067 [19:56:04]line Контрольно-Кассовый Чек [19:56:04]line ПРОДАЖА [19:56:04]line ТРК (МРК, ГНК) : 31 [19:56:04]line Товар: 2710124130 [19:56:04]line Аи-92-К-4 [19:56:04]line 7.380 * 67.80 [19:56:04]line = 500.36 [19:56:04]line НДС 12% НСП 1% [19:56:04]line > о реализуемом товаре [19:56:04]line ОКРУГЛЕНИЕ: -0.36 [19:56:04]line ИТОГО: 500.00 [19:56:04]line Внесено: 500.00 [19:56:04]line СДАЧА: 0.00 [19:56:04]line НСП 1% : 4.43 [19:56:04]line НДС 12% : 53.14 [19:56:04]line Наличными: 500.00 [19:56:04]line Безнал.: 0.00 [19:56:04]line Место: АЗС № 134 "Партнер Нефть" [19:56:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:56:04]line СНО: Общий режим [19:56:04]line Чек 271 29.07.2024 19:56 [19:56:04]line Смена: 434 ФФД: 1.0 [19:56:04]line ЗНМ: 0300000044 [19:56:04]line РНМ: 0000000000092660 [19:56:04]line Версия ККМ: 001 [19:56:04]line ФМ: 0000000000874939 [19:56:04]line ФД: 118895 [19:56:04]line ФПД: 136182295945510 [19:56:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T195609&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118895&fm=136182295945510&tin=02508201610067®Number=0000000000092660&sum=50000 [19:56:04]OFD Sender: Processing packet 118895 [packets to send 86, broken 85] [19:56:04]ProducePacketName [19:56:04]name=ofd_packets/00118895 [19:56:04]OFD Sender: To server: pG, [19:56:04]CommunicateWithHost lk.salyk.kg:30040 [19:56:04]ConnectInit lk.salyk.kg [19:56:04]written 0, free lines is 4095 [19:56:04]Connected sock=10 [19:56:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 38 63 07 01 64 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 D9 F3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F D0 01 00 35 04 06 00 7B DB 69 5F E1 26 55 E2 75 9B 20 40 C3 88 [19:56:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6E AF 47 00 BF F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F D0 01 00 F4 03 04 00 66 A1 A7 66 B6 04 01 00 00 13 4A E0 96 A3 0B 4A 7F [19:56:04]CommunicateWithHost err = 0 [19:56:04]CheckOFDResponse [19:56:04]1017 (14) - 77093643461234 [19:56:04]1041 (16) - 0000000000874939 [19:56:04]1040 (4) - 118895 [19:56:04]1012 (4) - 29.07.2024 14:04 [19:56:04]1206 (1) - 0 [19:56:04]OFD Sender: Remove packet 118895 [19:56:04]ProducePacketName [19:56:04]name=ofd_packets/00118895 [19:56:04]NVStorageDeleteData [19:56:05]Write to MH i2c: 01 00 00 2A 79 A3 [19:56:05]Write i2c OK [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: 01 [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: 01 07 00 [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: 01 07 00 2A 79 00 00 00 00 00 D5 0C 8B [19:56:05]RasterBufferAndPrint [19:56:05]line [19:56:05]line [19:56:05]line [19:56:05]line [19:56:05]line [19:56:05]written 0, free lines is 3292 [19:56:05]MH_Cut [19:56:05]Write to MH i2c: D1 01 00 31 79 01 7C [19:56:05]Write i2c OK [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: D1 [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: D1 01 00 [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: D1 01 00 31 79 00 7B [19:56:05]Write to MH i2c: 01 00 00 32 79 AB [19:56:05]Write i2c OK [19:56:05]MH_I2C_Read... [19:56:05]OFD Sender: No OFD packet to send [19:56:05]*** Cut start [19:56:05]*** Partial cut [19:56:05]*** CUTSNS_PIN = 1 [19:56:05]*** CUTSNS_PIN = 0 [19:56:06]*** Brake cut motor [19:56:06]Read from MH i2c: 01 [19:56:06]MH_I2C_Read... [19:56:06]*** Stop cut motor [19:56:06]*** Cut end [19:56:06]Read from MH i2c: 01 07 00 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: 01 07 00 32 79 00 00 00 00 00 FF 0F C0 [19:56:06]process_action close_receipt done [19:56:06]requested_data is exist [19:56:06]produce_requested_data [19:56:06]requested_item fm.sn is exist - process it [19:56:06]wFMCommunicate request_size=4 [19:56:06]MH_SAM_APDU [19:56:06]CAPDU: 80 11 00 00 [19:56:06]Write to MH i2c: E2 08 00 33 79 80 11 00 00 00 00 00 00 26 [19:56:06]Write i2c OK [19:56:06]MH_I2C_Read... [19:56:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:06]Read from MH i2c: E2 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: E2 17 00 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: E2 17 00 33 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 81 [19:56:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:56:06]wFMCommunicate OK [19:56:06]requested_item fd.num is exist - process it [19:56:06]SAM_PROTO_GetFieldsCounters [19:56:06]wFMCommunicate request_size=4 [19:56:06]MH_SAM_APDU [19:56:06]CAPDU: 80 13 00 00 [19:56:06]Write to MH i2c: E2 08 00 34 79 80 13 00 00 00 00 00 00 29 [19:56:06]Write i2c OK [19:56:06]MH_I2C_Read... [19:56:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:06]Read from MH i2c: E2 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: E2 62 00 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: E2 62 00 34 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6F D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 73 [19:56: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6F D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:56:06]wFMCommunicate OK [19:56:06]SAM_PROTO_GetFieldsCounters done [19:56:06]requested_item shift.num is exist - process it [19:56:06]requested_item shift.opened is exist - process it [19:56:06]req_shift_opened [19:56:06]FM_GetShiftState [19:56:06]SAM_PROTO_GetShiftState [19:56:06]wFMCommunicate request_size=4 [19:56:06]MH_SAM_APDU [19:56:06]CAPDU: 80 13 01 00 [19:56:06]Write to MH i2c: E2 08 00 35 79 80 13 01 00 00 00 00 00 2B [19:56:06]Write i2c OK [19:56:06]MH_I2C_Read... [19:56:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:06]Read from MH i2c: E2 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: E2 0E 00 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: E2 0E 00 35 79 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 59 [19:56:06]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:56:06]wFMCommunicate OK [19:56:06]SAM_PROTO_GetShiftState done [19:56:06]FM_GetShiftState done [19:56:06]req_shift_opened done [19:56:06]requested_item shift.open_date is exist - process it [19:56:06]req_shift_open_date [19:56:06]req_shift_open_date done [19:56:06]produce_requested_data done [19:56:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118895,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [19:56:06]process_action_free close_receipt [19:56:06]json_value_free [19:56:06]json_value_free done [19:56:06]process_json_proto returns [19:56:06]Send response to host [19:56:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118895,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [19:56:06]free response buf [19:56:06]execute_script done [19:56:06]execute_script returns [19:56:06]free content buf [19:56:06]Sock 7.Close socket [19:56:06]Sock 7.Thread stoped [19:56:10]OFD Sender: No OFD packet to send [19:56:15]OFD Sender: No OFD packet to send [19:56:20]OFD Sender: No OFD packet to send [19:56:25]OFD Sender: No OFD packet to send [19:56:30]OFD Sender: No OFD packet to send [19:56:35]OFD Sender: No OFD packet to send [19:56:40]OFD Sender: No OFD packet to send [19:56:45]OFD Sender: No OFD packet to send [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:54]accept exits with 9 [19:58:54]New connection [19:58:54]New thread 3067383140 created [19:58:54]Thread 3067239780 joined [19:58:54]Waiting for new connection... [19:58:54] Sock 9.Parse request [19:58:54]Sock 9.Check first char [19:58:54]Sock 9.First char is OK [19:58:54]request: POST /json_proto HTTP/1.0 [19:58:54]Method: POST [19:58:54]URL: /json_proto [19:58:54]Method is POST - this is cgi request [19:58:54]url: /json_proto [19:58:54]query_string will be loaded in cgi processing [19:58:54]execute_cgi json_proto POST (null) [19:58:54]execute_cgi path=json_proto method=POST [19:58:54]POST find Content-Length [19:58:54]Host: 172.17.45.7:8080 [19:58:54]Content-Length: 682 [19:58:54]Content-Type: application/json [19:58:54] [19:58:54]POST finish read [19:58:54]Found Content-Length = 682 [19:58:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 23.600, "sum" : 1600.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:54]execute_script... [19:58:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 23.600, "sum" : 1600.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:54]POST & json_proto [19:58:54]process_json_proto [19:58:54]json parsed OK: [19:58:54]protocol is kg_v1.0 [19:58:54]action value=close_receipt [19:58:54]process_action close_receipt [19:58:54]cmd_close_receipt [19:58:54]MH_GetDate [19:58:54]Write to MH i2c: F0 00 00 36 79 9E [19:58:54]Write i2c OK [19:58:54]MH_I2C_Read... [19:58:54]Read from MH i2c: F0 [19:58:54]MH_I2C_Read... [19:58:54]Read from MH i2c: F0 09 00 [19:58:54]MH_I2C_Read... [19:58:54]Read from MH i2c: F0 09 00 36 79 00 85 F4 A7 66 90 0F 3E 66 70 [19:58:54]GetLastDocTimeStamp 1722282969 [19:58:54]current date 1722283141 [19:58:54]FM_GetShiftState [19:58:54]SAM_PROTO_GetShiftState [19:58:54]wFMCommunicate request_size=4 [19:58:54]MH_SAM_APDU [19:58:54]CAPDU: 80 13 01 00 [19:58:54]Write to MH i2c: E2 08 00 37 79 80 13 01 00 00 00 00 00 2D [19:58:54]Write i2c OK [19:58:54]MH_I2C_Read... [19:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:54]Read from MH i2c: E2 [19:58:54]MH_I2C_Read... [19:58:54]Read from MH i2c: E2 0E 00 [19:58:54]MH_I2C_Read... [19:58:54]Read from MH i2c: E2 0E 00 37 79 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 5B [19:58:54]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:58:54]wFMCommunicate OK [19:58:54]SAM_PROTO_GetShiftState done [19:58:54]FM_GetShiftState done [19:58:54]opened in 1722211641 [19:58:54]opened+sec_in_day 1722298041 [19:58:54]quantity*price = 160008 [19:58:54]sum+1 = 160009 [19:58:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.92 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 272 29.07.2024 19:59 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118896 ФПД: 158363160764803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T195901&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118896&fm=158363160764803&tin=02508201610067®Number=0000000000092660&sum=160000 [19:58:55]StoreToDocumentArchive [19:58:55]shift 434 fd 118896 [19:58:55]save to /storage/0434/doc_00118896 [19:58:55]save last doc name /storage/0434/doc_00118896 to /storage/kkm_last_doc_name [19:58:55]save OK [19:58:55]Clear old archive folders... [19:58:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:58:55]tlvbuf is 01FD3480 [19:58:55]SAM_PROTO_ClearQueue [19:58:55]wFMCommunicate request_size=4 [19:58:55]MH_SAM_APDU [19:58:55]CAPDU: 80 09 00 00 [19:58:55]Write to MH i2c: E2 08 00 44 79 80 09 00 00 00 00 00 00 2F [19:58:55]Write i2c OK [19:58:55]MH_I2C_Read... [19:58:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:55]Read from MH i2c: E2 [19:58:55]MH_I2C_Read... [19:58:55]Read from MH i2c: E2 03 00 [19:58:55]MH_I2C_Read... [19:58:55]Read from MH i2c: E2 03 00 44 79 00 90 00 31 [19:58:55]RAPDU: 90 00 [19:58:55]wFMCommunicate OK [19:58:55]SAM_PROTO_ClearQueue done [19:58:55]KKMCreateOFDPacket [19:58:55]OFDProtocolAddRootSTLVToBuf [19:58:55]FM_MakeSignedData [19:58:55]FM_MakeSignedData [19:58:55]SAM_PROTO_SignData [19:58:55]wFMCommunicate request_size=4 [19:58:55]MH_SAM_APDU [19:58:55]CAPDU: 80 0D 01 02 [19:58:55]Write to MH i2c: E2 08 00 45 79 80 0D 01 02 00 00 00 00 37 [19:58:55]Write i2c OK [19:58:55]MH_I2C_Read... [19:58:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:55]Read from MH i2c: E2 [19:58:55]MH_I2C_Read... [19:58:55]Read from MH i2c: E2 03 00 [19:58:55]MH_I2C_Read... [19:58:55]Read from MH i2c: E2 03 00 45 79 00 90 00 32 [19:58:55]RAPDU: 90 00 [19:58:55]wFMCommunicate OK [19:58:55]wFMCommunicate request_size=255 [19:58:55]MH_SAM_APDU [19:58:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 85 F4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 70 D0 01 00 35 04 06 00 90 [19:58:55]Write to MH i2c: E2 02 01 46 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 85 F4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 70 D0 01 00 35 04 06 00 90 00 00 13 [19:58:55]Write i2c OK [19:58:55]MH_I2C_Read... [19:58:55]OFD Sender: No OFD packet to send [19:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:55]Read from MH i2c: E2 [19:58:55]MH_I2C_Read... [19:58:55]Read from MH i2c: E2 03 00 [19:58:55]MH_I2C_Read... [19:58:55]Read from MH i2c: E2 03 00 46 79 00 90 00 33 [19:58:55]RAPDU: 90 00 [19:58:55]wFMCommunicate OK [19:58:55]wFMCommunicate request_size=10 [19:58:55]MH_SAM_APDU [19:58:55]CAPDU: 80 0D 02 02 05 07 CB F1 61 83 [19:58:55]Write to MH i2c: E2 0D 00 47 79 80 0D 02 02 05 00 07 CB F1 61 83 00 00 EB [19:58:55]Write i2c OK [19:58:55]MH_I2C_Read... [19:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:56]Read from MH i2c: E2 [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: E2 03 00 [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: E2 03 00 47 79 00 90 00 34 [19:58:56]RAPDU: 90 00 [19:58:56]wFMCommunicate OK [19:58:56]wFMCommunicate request_size=4 [19:58:56]MH_SAM_APDU [19:58:56]CAPDU: 80 0D 03 02 [19:58:56]Write to MH i2c: E2 08 00 48 79 80 0D 03 02 00 00 00 00 3C [19:58:56]Write i2c OK [19:58:56]MH_I2C_Read... [19:58:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:56]Read from MH i2c: E2 [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: E2 0B 00 [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: E2 0B 00 48 79 00 75 C0 33 F4 6A EF BE 23 90 00 D3 [19:58:56]RAPDU: 75 C0 33 F4 6A EF BE 23 90 00 [19:58:56]wFMCommunicate OK [19:58:56]SAM_PROTO_SignData done [19:58:56]FM_MakeSignedData done [19:58:56]CreateOFDProtocolMessage [19:58:56]wFMCommunicate request_size=4 [19:58:56]MH_SAM_APDU [19:58:56]CAPDU: 80 11 00 00 [19:58:56]Write to MH i2c: E2 08 00 49 79 80 11 00 00 00 00 00 00 3C [19:58:56]Write i2c OK [19:58:56]MH_I2C_Read... [19:58:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:56]Read from MH i2c: E2 [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: E2 17 00 [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: E2 17 00 49 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 97 [19:58:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:58:56]wFMCommunicate OK [19:58:56]CreateOFDProtocolMessage done [19:58:56]OFDSenderStorePacket 118896 [19:58:56]StoreOFDPacket docnum=118896 [19:58:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E3 E4 07 01 52 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 85 F4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 70 D0 01 00 35 04 06 00 90 07 CB F1 61 83 75 C0 33 F4 6A EF BE 23 [19:58:56]CheckFolder [19:58:56]dirname=/storage/ofd_packets [19:58:56]CheckFolder done [19:58:56]ProducePacketName [19:58:56]name=ofd_packets/00118896 [19:58:56]NVStorageSaveData ofd_packets/00118896 [19:58:56]File name is /storage/ofd_packets/00118896 [19:58:56]Write 301 bytes [19:58:56]NVStorageSaveData done [19:58:56]OFDSenderStorePacket done [19:58:56]KKMCreateOFDPacket done [19:58:56]NVStorageSaveData kkm_last_timestamp [19:58:56]File name is /storage/kkm_last_timestamp [19:58:56]Write 4 bytes [19:58:56]NVStorageSaveData done [19:58:56]ExternCall_PrintAddStr [19:58:56]wPrintStart [19:58:56]Write to MH i2c: 01 00 00 4A 79 C3 [19:58:56]Write i2c OK [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: 01 [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: 01 07 00 [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: 01 07 00 4A 79 00 00 00 00 00 FF 0F D8 [19:58:56]RasterBufferAndPrint [19:58:56]line Счет N : (1)949791 [19:58:56]line ИНН: 02508201610067 [19:58:56]line Контрольно-Кассовый Чек [19:58:56]line ПРОДАЖА [19:58:56]line ТРК (МРК, ГНК) : 41 [19:58:56]line Товар: 2710124130 [19:58:56]line Аи-92-К-4 [19:58:56]line 23.600 * 67.80 [19:58:56]line = 1600.08 [19:58:56]line НДС 12% НСП 1% [19:58:56]line > о реализуемом товаре [19:58:56]line ОКРУГЛЕНИЕ: -0.08 [19:58:56]line ИТОГО: 1600.00 [19:58:56]line Внесено: 1600.00 [19:58:56]line СДАЧА: 0.00 [19:58:56]line НСП 1% : 14.16 [19:58:56]line НДС 12% : 169.92 [19:58:56]line Наличными: 1600.00 [19:58:56]line Безнал.: 0.00 [19:58:56]line Место: АЗС № 134 "Партнер Нефть" [19:58:56]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:58:56]line СНО: Общий режим [19:58:56]line Чек 272 29.07.2024 19:59 [19:58:56]line Смена: 434 ФФД: 1.0 [19:58:56]line ЗНМ: 0300000044 [19:58:56]line РНМ: 0000000000092660 [19:58:56]line Версия ККМ: 001 [19:58:56]line ФМ: 0000000000874939 [19:58:56]line ФД: 118896 [19:58:56]line ФПД: 158363160764803 [19:58:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T195901&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118896&fm=158363160764803&tin=02508201610067®Number=0000000000092660&sum=160000 [19:58:56]OFD Sender: Processing packet 118896 [packets to send 86, broken 85] [19:58:56]ProducePacketName [19:58:56]name=ofd_packets/00118896 [19:58:56]OFD Sender: To server: pG, [19:58:56]CommunicateWithHost lk.salyk.kg:30040 [19:58:56]ConnectInit lk.salyk.kg [19:58:56]written 0, free lines is 4095 [19:58:56]Connected sock=10 [19:58:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E3 E4 07 01 52 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 85 F4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 70 D0 01 00 35 04 06 00 90 07 CB F1 61 83 75 C0 33 F4 6A EF BE 23 [19:58:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 83 4E 47 00 17 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 34 39 33 39 10 04 04 00 70 D0 01 00 F4 03 04 00 12 A2 A7 66 B6 04 01 00 00 BF 04 96 59 45 53 CC 94 [19:58:56]CommunicateWithHost err = 0 [19:58:56]CheckOFDResponse [19:58:56]1017 (14) - 77093643461234 [19:58:56]1041 (16) - 0000000000874939 [19:58:56]1040 (4) - 118896 [19:58:56]1012 (4) - 29.07.2024 14:07 [19:58:56]1206 (1) - 0 [19:58:56]OFD Sender: Remove packet 118896 [19:58:56]ProducePacketName [19:58:56]name=ofd_packets/00118896 [19:58:56]NVStorageDeleteData [19:58:56]Write to MH i2c: 01 00 00 74 79 ED [19:58:56]Write i2c OK [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: 01 [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: 01 07 00 [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: 01 07 00 74 79 00 00 00 00 00 DC 0C DC [19:58:56]RasterBufferAndPrint [19:58:56]line [19:58:56]line [19:58:56]line [19:58:56]line [19:58:56]line [19:58:56]written 0, free lines is 3298 [19:58:56]MH_Cut [19:58:56]Write to MH i2c: D1 01 00 7B 79 01 C6 [19:58:56]Write i2c OK [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: D1 [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: D1 01 00 [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: D1 01 00 7B 79 00 C5 [19:58:56]Write to MH i2c: 01 00 00 7C 79 F5 [19:58:56]Write i2c OK [19:58:56]MH_I2C_Read... [19:58:57]OFD Sender: No OFD packet to send [19:58:57]*** Cut start [19:58:57]*** Partial cut [19:58:57]*** CUTSNS_PIN = 1 [19:58:57]*** CUTSNS_PIN = 0 [19:58:57]*** Brake cut motor [19:58:58]Read from MH i2c: 01 [19:58:58]MH_I2C_Read... [19:58:58]*** Stop cut motor [19:58:58]*** Cut end [19:58:58]Read from MH i2c: 01 07 00 [19:58:58]MH_I2C_Read... [19:58:58]Read from MH i2c: 01 07 00 7C 79 00 00 00 00 00 FF 0F 0A [19:58:58]process_action close_receipt done [19:58:58]requested_data is exist [19:58:58]produce_requested_data [19:58:58]requested_item fm.sn is exist - process it [19:58:58]wFMCommunicate request_size=4 [19:58:58]MH_SAM_APDU [19:58:58]CAPDU: 80 11 00 00 [19:58:58]Write to MH i2c: E2 08 00 7D 79 80 11 00 00 00 00 00 00 70 [19:58:58]Write i2c OK [19:58:58]MH_I2C_Read... [19:58:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:58]Read from MH i2c: E2 [19:58:58]MH_I2C_Read... [19:58:58]Read from MH i2c: E2 17 00 [19:58:58]MH_I2C_Read... [19:58:58]Read from MH i2c: E2 17 00 7D 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CB [19:58:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [19:58:58]wFMCommunicate OK [19:58:58]requested_item fd.num is exist - process it [19:58:58]SAM_PROTO_GetFieldsCounters [19:58:58]wFMCommunicate request_size=4 [19:58:58]MH_SAM_APDU [19:58:58]CAPDU: 80 13 00 00 [19:58:58]Write to MH i2c: E2 08 00 7E 79 80 13 00 00 00 00 00 00 73 [19:58:58]Write i2c OK [19:58:58]MH_I2C_Read... [19:58:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:58]Read from MH i2c: E2 [19:58:58]MH_I2C_Read... [19:58:58]Read from MH i2c: E2 62 00 [19:58:58]MH_I2C_Read... [19:58:58]Read from MH i2c: E2 62 00 7E 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 70 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 C1 [19:58: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 70 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:58:58]wFMCommunicate OK [19:58:58]SAM_PROTO_GetFieldsCounters done [19:58:58]requested_item shift.num is exist - process it [19:58:58]requested_item shift.opened is exist - process it [19:58:58]req_shift_opened [19:58:58]FM_GetShiftState [19:58:58]SAM_PROTO_GetShiftState [19:58:58]wFMCommunicate request_size=4 [19:58:58]MH_SAM_APDU [19:58:58]CAPDU: 80 13 01 00 [19:58:58]Write to MH i2c: E2 08 00 7F 79 80 13 01 00 00 00 00 00 75 [19:58:58]Write i2c OK [19:58:58]MH_I2C_Read... [19:58:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:58]Read from MH i2c: E2 [19:58:58]MH_I2C_Read... [19:58:58]Read from MH i2c: E2 0E 00 [19:58:58]MH_I2C_Read... [19:58:58]Read from MH i2c: E2 0E 00 7F 79 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A3 [19:58:58]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [19:58:58]wFMCommunicate OK [19:58:58]SAM_PROTO_GetShiftState done [19:58:58]FM_GetShiftState done [19:58:58]req_shift_opened done [19:58:58]requested_item shift.open_date is exist - process it [19:58:58]req_shift_open_date [19:58:58]req_shift_open_date done [19:58:58]produce_requested_data done [19:58:58]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118896,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [19:58:58]process_action_free close_receipt [19:58:58]json_value_free [19:58:58]json_value_free done [19:58:58]process_json_proto returns [19:58:58]Send response to host [19:58:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118896,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [19:58:58]free response buf [19:58:58]execute_script done [19:58:58]execute_script returns [19:58:58]free content buf [19:58:58]Sock 9.Close socket [19:58:58]Sock 9.Thread stoped [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:32]OFD Sender: No OFD packet to send [19:59:37]OFD Sender: No OFD packet to send [19:59:42]OFD Sender: No OFD packet to send [19:59:47]OFD Sender: No OFD packet to send [19:59:52]OFD Sender: No OFD packet to send [19:59:57]OFD Sender: No OFD packet to send [20:00:02]OFD Sender: No OFD packet to send [20:00:07]OFD Sender: No OFD packet to send [20:00:12]OFD Sender: No OFD packet to send [20:00:17]OFD Sender: No OFD packet to send [20:00:22]OFD Sender: No OFD packet to send [20:00:27]OFD Sender: No OFD packet to send [20:00:32]OFD Sender: No OFD packet to send [20:00:37]OFD Sender: No OFD packet to send [20:00:42]OFD Sender: No OFD packet to send [20:00:46]accept exits with 7 [20:00:46]New connection [20:00:46]New thread 3067239780 created [20:00:46]Thread 3067383140 joined [20:00:46]Waiting for new connection... [20:00:46] Sock 7.Parse request [20:00:46]Sock 7.Check first char [20:00:46]Sock 7.First char is OK [20:00:46]request: POST /json_proto HTTP/1.0 [20:00:46]Method: POST [20:00:46]URL: /json_proto [20:00:46]Method is POST - this is cgi request [20:00:46]url: /json_proto [20:00:46]query_string will be loaded in cgi processing [20:00:46]execute_cgi json_proto POST (null) [20:00:46]execute_cgi path=json_proto method=POST [20:00:46]POST find Content-Length [20:00:46]Host: 172.17.45.7:8080 [20:00:46]Content-Length: 819 [20:00:46]Content-Type: application/json [20:00:46] [20:00:46]POST finish read [20:00:46]Found Content-Length = 819 [20:00:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 4000.00, "payments": [ { "type": 1, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:46]execute_script... [20:00:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 4000.00, "payments": [ { "type": 1, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:46]POST & json_proto [20:00:46]process_json_proto [20:00:46]json parsed OK: [20:00:46]protocol is kg_v1.0 [20:00:46]action value=close_receipt [20:00:46]process_action close_receipt [20:00:46]cmd_close_receipt [20:00:46]MH_GetDate [20:00:46]Write to MH i2c: F0 00 00 80 79 E8 [20:00:46]Write i2c OK [20:00:46]MH_I2C_Read... [20:00:46]Read from MH i2c: F0 [20:00:46]MH_I2C_Read... [20:00:46]Read from MH i2c: F0 09 00 [20:00:46]MH_I2C_Read... [20:00:46]Read from MH i2c: F0 09 00 80 79 00 F5 F4 A7 66 90 0F 3E 66 2A [20:00:46]GetLastDocTimeStamp 1722283141 [20:00:46]current date 1722283253 [20:00:46]FM_GetShiftState [20:00:46]SAM_PROTO_GetShiftState [20:00:46]wFMCommunicate request_size=4 [20:00:46]MH_SAM_APDU [20:00:46]CAPDU: 80 13 01 00 [20:00:46]Write to MH i2c: E2 08 00 81 79 80 13 01 00 00 00 00 00 77 [20:00:46]Write i2c OK [20:00:46]MH_I2C_Read... [20:00:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:46]Read from MH i2c: E2 [20:00:46]MH_I2C_Read... [20:00:46]Read from MH i2c: E2 0E 00 [20:00:46]MH_I2C_Read... [20:00:46]Read from MH i2c: E2 0E 00 81 79 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A5 [20:00:46]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:00:46]wFMCommunicate OK [20:00:46]SAM_PROTO_GetShiftState done [20:00:46]FM_GetShiftState done [20:00:46]opened in 1722211641 [20:00:46]opened+sec_in_day 1722298041 [20:00:46]quantity*price = 400050 [20:00:46]sum+1 = 400051 [20:00:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 273 29.07.2024 20:00 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118897 ФПД: 144007701271424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T200053&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118897&fm=144007701271424&tin=02508201610067®Number=0000000000092660&sum=400000 [20:00:47]StoreToDocumentArchive [20:00:47]shift 434 fd 118897 [20:00:47]save to /storage/0434/doc_00118897 [20:00:47]save last doc name /storage/0434/doc_00118897 to /storage/kkm_last_doc_name [20:00:47]save OK [20:00:47]Clear old archive folders... [20:00:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:00:47]tlvbuf is B6F43920 [20:00:47]SAM_PROTO_ClearQueue [20:00:47]wFMCommunicate request_size=4 [20:00:47]MH_SAM_APDU [20:00:47]CAPDU: 80 09 00 00 [20:00:47]Write to MH i2c: E2 08 00 8E 79 80 09 00 00 00 00 00 00 79 [20:00:47]Write i2c OK [20:00:47]MH_I2C_Read... [20:00:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:47]Read from MH i2c: E2 [20:00:47]MH_I2C_Read... [20:00:47]Read from MH i2c: E2 03 00 [20:00:47]MH_I2C_Read... [20:00:47]Read from MH i2c: E2 03 00 8E 79 00 90 00 7B [20:00:47]RAPDU: 90 00 [20:00:47]wFMCommunicate OK [20:00:47]SAM_PROTO_ClearQueue done [20:00:47]KKMCreateOFDPacket [20:00:47]OFDProtocolAddRootSTLVToBuf [20:00:47]FM_MakeSignedData [20:00:47]FM_MakeSignedData [20:00:47]SAM_PROTO_SignData [20:00:47]wFMCommunicate request_size=4 [20:00:47]MH_SAM_APDU [20:00:47]CAPDU: 80 0D 01 02 [20:00:47]Write to MH i2c: E2 08 00 8F 79 80 0D 01 02 00 00 00 00 81 [20:00:47]Write i2c OK [20:00:47]MH_I2C_Read... [20:00:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:47]Read from MH i2c: E2 [20:00:47]MH_I2C_Read... [20:00:47]Read from MH i2c: E2 03 00 [20:00:47]MH_I2C_Read... [20:00:47]Read from MH i2c: E2 03 00 8F 79 00 90 00 7C [20:00:47]RAPDU: 90 00 [20:00:47]wFMCommunicate OK [20:00:47]wFMCommunicate request_size=255 [20:00:47]MH_SAM_APDU [20:00:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 F5 F4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 D0 01 00 35 04 06 00 82 F9 67 E1 [20:00:47]Write to MH i2c: E2 02 01 90 79 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 F5 F4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 D0 01 00 35 04 06 00 82 F9 67 E1 00 00 F6 [20:00:47]OFD Sender: No OFD packet to send [20:00:47]Write i2c OK [20:00:47]MH_I2C_Read... [20:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:47]Read from MH i2c: E2 [20:00:47]MH_I2C_Read... [20:00:47]Read from MH i2c: E2 03 00 [20:00:47]MH_I2C_Read... [20:00:47]Read from MH i2c: E2 03 00 90 79 00 90 00 7D [20:00:47]RAPDU: 90 00 [20:00:47]wFMCommunicate OK [20:00:47]wFMCommunicate request_size=7 [20:00:47]MH_SAM_APDU [20:00:47]CAPDU: 80 0D 02 02 02 13 80 [20:00:47]Write to MH i2c: E2 0A 00 91 79 80 0D 02 02 02 00 13 80 00 00 1B [20:00:47]Write i2c OK [20:00:47]MH_I2C_Read... [20:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:47]Read from MH i2c: E2 [20:00:47]MH_I2C_Read... [20:00:47]Read from MH i2c: E2 03 00 [20:00:47]MH_I2C_Read... [20:00:47]Read from MH i2c: E2 03 00 91 79 00 90 00 7E [20:00:47]RAPDU: 90 00 [20:00:47]wFMCommunicate OK [20:00:47]wFMCommunicate request_size=4 [20:00:47]MH_SAM_APDU [20:00:47]CAPDU: 80 0D 03 02 [20:00:47]Write to MH i2c: E2 08 00 92 79 80 0D 03 02 00 00 00 00 86 [20:00:47]Write i2c OK [20:00:47]MH_I2C_Read... [20:00:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:47]Read from MH i2c: E2 [20:00:47]MH_I2C_Read... [20:00:47]Read from MH i2c: E2 0B 00 [20:00:47]MH_I2C_Read... [20:00:47]Read from MH i2c: E2 0B 00 92 79 00 DD BD 69 83 BF AA 2A B7 90 00 57 [20:00:47]RAPDU: DD BD 69 83 BF AA 2A B7 90 00 [20:00:47]wFMCommunicate OK [20:00:47]SAM_PROTO_SignData done [20:00:47]FM_MakeSignedData done [20:00:47]CreateOFDProtocolMessage [20:00:47]wFMCommunicate request_size=4 [20:00:47]MH_SAM_APDU [20:00:47]CAPDU: 80 11 00 00 [20:00:47]Write to MH i2c: E2 08 00 93 79 80 11 00 00 00 00 00 00 86 [20:00:47]Write i2c OK [20:00:47]MH_I2C_Read... [20:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:47]Read from MH i2c: E2 [20:00:47]MH_I2C_Read... [20:00:47]Read from MH i2c: E2 17 00 [20:00:47]MH_I2C_Read... [20:00:47]Read from MH i2c: E2 17 00 93 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E1 [20:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:00:47]wFMCommunicate OK [20:00:47]CreateOFDProtocolMessage done [20:00:47]OFDSenderStorePacket 118897 [20:00:47]StoreOFDPacket docnum=118897 [20:00:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 38 A6 04 01 F0 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 F5 F4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 D0 01 00 35 04 06 00 82 F9 67 E1 13 80 DD BD 69 83 BF AA 2A B7 [20:00:47]CheckFolder [20:00:47]dirname=/storage/ofd_packets [20:00:47]CheckFolder done [20:00:47]ProducePacketName [20:00:47]name=ofd_packets/00118897 [20:00:47]NVStorageSaveData ofd_packets/00118897 [20:00:47]File name is /storage/ofd_packets/00118897 [20:00:47]Write 298 bytes [20:00:47]NVStorageSaveData done [20:00:47]OFDSenderStorePacket done [20:00:47]KKMCreateOFDPacket done [20:00:47]NVStorageSaveData kkm_last_timestamp [20:00:47]File name is /storage/kkm_last_timestamp [20:00:47]Write 4 bytes [20:00:47]NVStorageSaveData done [20:00:47]ExternCall_PrintAddStr [20:00:47]wPrintStart [20:00:47]Write to MH i2c: 01 00 00 94 79 0D [20:00:47]Write i2c OK [20:00:47]MH_I2C_Read... [20:00:47]Read from MH i2c: 01 [20:00:47]MH_I2C_Read... [20:00:47]Read from MH i2c: 01 07 00 [20:00:47]MH_I2C_Read... [20:00:47]Read from MH i2c: 01 07 00 94 79 00 00 00 00 00 FF 0F 22 [20:00:47]RasterBufferAndPrint [20:00:47]line Счет N : (1)949789 [20:00:47]line ИНН: 02508201610067 [20:00:47]line Контрольно-Кассовый Чек [20:00:47]line ПРОДАЖА [20:00:47]line ТРК (МРК, ГНК) : 11 [20:00:47]line Товар: 2710194800 [20:00:47]line ДТ-К-5 [20:00:47]line 52.500 * 76.20 [20:00:47]line = 4000.50 [20:00:47]line НДС 12% НСП 1% [20:00:47]line > о реализуемом товаре [20:00:47]line ОКРУГЛЕНИЕ: -0.50 [20:00:47]line ИТОГО: 4000.00 [20:00:47]line НСП 1% : 35.40 [20:00:47]line НДС 12% : 424.83 [20:00:47]line Наличными: 0.00 [20:00:47]line Безнал.: 4000.00 [20:00:47]line Место: АЗС № 134 "Партнер Нефть" [20:00:47]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:00:47]line СНО: Общий режим [20:00:47]line Чек 273 29.07.2024 20:00 [20:00:47]line Смена: 434 ФФД: 1.0 [20:00:47]line ЗНМ: 0300000044 [20:00:47]line РНМ: 0000000000092660 [20:00:47]line Версия ККМ: 001 [20:00:47]line Платежная система: O! деньги [20:00:47]line ФМ: 0000000000874939 [20:00:47]line ФД: 118897 [20:00:47]line ФПД: 144007701271424 [20:00:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T200053&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118897&fm=144007701271424&tin=02508201610067®Number=0000000000092660&sum=400000 [20:00:47]written 0, free lines is 4095 [20:00:47]OFD Sender: Processing packet 118897 [packets to send 86, broken 85] [20:00:47]ProducePacketName [20:00:47]name=ofd_packets/00118897 [20:00:47]OFD Sender: To server: pG, [20:00:47]CommunicateWithHost lk.salyk.kg:30040 [20:00:48]ConnectInit lk.salyk.kg [20:00:48]Connected sock=10 [20:00:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 38 A6 04 01 F0 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 F5 F4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 D0 01 00 35 04 06 00 82 F9 67 E1 13 80 DD BD 69 83 BF AA 2A B7 [20:00:48]Write to MH i2c: 01 00 00 BE 79 37 [20:00:48]Write i2c OK [20:00:48]MH_I2C_Read... [20:00:48]Read from MH i2c: 01 [20:00:48]MH_I2C_Read... [20:00:48]Read from MH i2c: 01 07 00 [20:00:48]MH_I2C_Read... [20:00:48]Read from MH i2c: 01 07 00 BE 79 00 00 00 00 00 E3 0C 2D [20:00:48]RasterBufferAndPrint [20:00:48]line [20:00:48]line [20:00:48]line [20:00:48]line [20:00:48]line [20:00:48]written 0, free lines is 3306 [20:00:48]MH_Cut [20:00:48]Write to MH i2c: D1 01 00 C5 79 01 10 [20:00:48]Write i2c OK [20:00:48]MH_I2C_Read... [20:00:48]Read from MH i2c: D1 [20:00:48]MH_I2C_Read... [20:00:48]Read from MH i2c: D1 01 00 [20:00:48]MH_I2C_Read... [20:00:48]Read from MH i2c: D1 01 00 C5 79 00 0F [20:00:48]Write to MH i2c: 01 00 00 C6 79 3F [20:00:48]Write i2c OK [20:00:48]MH_I2C_Read... [20:00:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 61 7B 47 00 51 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 D0 01 00 F4 03 04 00 82 A2 A7 66 B6 04 01 00 00 FB 64 AC 97 24 4A 70 6D [20:00:48]CommunicateWithHost err = 0 [20:00:48]CheckOFDResponse [20:00:48]1017 (14) - 77093643461234 [20:00:48]1041 (16) - 0000000000874939 [20:00:48]1040 (4) - 118897 [20:00:48]1012 (4) - 29.07.2024 14:09 [20:00:48]1206 (1) - 0 [20:00:48]OFD Sender: Remove packet 118897 [20:00:48]ProducePacketName [20:00:48]name=ofd_packets/00118897 [20:00:48]NVStorageDeleteData [20:00:48]OFD Sender: No OFD packet to send [20:00:48]*** Cut start [20:00:48]*** Partial cut [20:00:48]*** CUTSNS_PIN = 1 [20:00:49]*** CUTSNS_PIN = 0 [20:00:49]*** Brake cut motor [20:00:49]Read from MH i2c: 01 [20:00:49]MH_I2C_Read... [20:00:49]*** Stop cut motor [20:00:49]*** Cut end [20:00:49]Read from MH i2c: 01 07 00 [20:00:49]MH_I2C_Read... [20:00:49]Read from MH i2c: 01 07 00 C6 79 00 00 00 00 00 FF 0F 54 [20:00:49]process_action close_receipt done [20:00:49]requested_data is exist [20:00:49]produce_requested_data [20:00:49]requested_item fm.sn is exist - process it [20:00:49]wFMCommunicate request_size=4 [20:00:49]MH_SAM_APDU [20:00:49]CAPDU: 80 11 00 00 [20:00:49]Write to MH i2c: E2 08 00 C7 79 80 11 00 00 00 00 00 00 BA [20:00:49]Write i2c OK [20:00:49]MH_I2C_Read... [20:00:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:49]Read from MH i2c: E2 [20:00:49]MH_I2C_Read... [20:00:49]Read from MH i2c: E2 17 00 [20:00:49]MH_I2C_Read... [20:00:49]Read from MH i2c: E2 17 00 C7 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 15 [20:00:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:00:49]wFMCommunicate OK [20:00:49]requested_item fd.num is exist - process it [20:00:49]SAM_PROTO_GetFieldsCounters [20:00:49]wFMCommunicate request_size=4 [20:00:49]MH_SAM_APDU [20:00:49]CAPDU: 80 13 00 00 [20:00:49]Write to MH i2c: E2 08 00 C8 79 80 13 00 00 00 00 00 00 BD [20:00:49]Write i2c OK [20:00:49]MH_I2C_Read... [20:00:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:49]Read from MH i2c: E2 [20:00:49]MH_I2C_Read... [20:00:49]Read from MH i2c: E2 62 00 [20:00:49]MH_I2C_Read... [20:00:49]Read from MH i2c: E2 62 00 C8 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 71 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 0F [20:00:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 71 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:00:49]wFMCommunicate OK [20:00:49]SAM_PROTO_GetFieldsCounters done [20:00:49]requested_item shift.num is exist - process it [20:00:49]requested_item shift.opened is exist - process it [20:00:49]req_shift_opened [20:00:49]FM_GetShiftState [20:00:49]SAM_PROTO_GetShiftState [20:00:49]wFMCommunicate request_size=4 [20:00:49]MH_SAM_APDU [20:00:49]CAPDU: 80 13 01 00 [20:00:49]Write to MH i2c: E2 08 00 C9 79 80 13 01 00 00 00 00 00 BF [20:00:49]Write i2c OK [20:00:49]MH_I2C_Read... [20:00:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:49]Read from MH i2c: E2 [20:00:49]MH_I2C_Read... [20:00:49]Read from MH i2c: E2 0E 00 [20:00:49]MH_I2C_Read... [20:00:49]Read from MH i2c: E2 0E 00 C9 79 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 ED [20:00:49]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:00:49]wFMCommunicate OK [20:00:49]SAM_PROTO_GetShiftState done [20:00:49]FM_GetShiftState done [20:00:49]req_shift_opened done [20:00:49]requested_item shift.open_date is exist - process it [20:00:49]req_shift_open_date [20:00:49]req_shift_open_date done [20:00:49]produce_requested_data done [20:00:49]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118897,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [20:00:49]process_action_free close_receipt [20:00:49]json_value_free [20:00:49]json_value_free done [20:00:49]process_json_proto returns [20:00:49]Send response to host [20:00:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118897,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [20:00:49]free response buf [20:00:49]execute_script done [20:00:49]execute_script returns [20:00:49]free content buf [20:00:49]Sock 7.Close socket [20:00:49]Sock 7.Thread stoped [20:00:53]accept exits with 9 [20:00:53]New connection [20:00:53]New thread 3067383140 created [20:00:53]Thread 3067239780 joined [20:00:53]Waiting for new connection... [20:00:53] Sock 9.Parse request [20:00:53]Sock 9.Check first char [20:00:53]Sock 9.First char is OK [20:00:53]request: POST /json_proto HTTP/1.0 [20:00:53]Method: POST [20:00:53]URL: /json_proto [20:00:53]Method is POST - this is cgi request [20:00:53]url: /json_proto [20:00:53]query_string will be loaded in cgi processing [20:00:53]execute_cgi json_proto POST (null) [20:00:53]execute_cgi path=json_proto method=POST [20:00:53]POST find Content-Length [20:00:53]Host: 172.17.45.7:8080 [20:00:53]Content-Length: 819 [20:00:53]Content-Type: application/json [20:00:53] [20:00:53]POST finish read [20:00:53]Found Content-Length = 819 [20:00:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 4000.00, "payments": [ { "type": 1, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:53]execute_script... [20:00: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)949790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 4000.00, "payments": [ { "type": 1, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:53]POST & json_proto [20:00:53]process_json_proto [20:00:53]json parsed OK: [20:00:53]protocol is kg_v1.0 [20:00:53]action value=close_receipt [20:00:53]process_action close_receipt [20:00:53]cmd_close_receipt [20:00:53]MH_GetDate [20:00:53]Write to MH i2c: F0 00 00 CA 79 32 [20:00:53]Write i2c OK [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: F0 [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: F0 09 00 [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: F0 09 00 CA 79 00 FC F4 A7 66 90 0F 3E 66 7B [20:00:53]GetLastDocTimeStamp 1722283253 [20:00:53]current date 1722283260 [20:00:53]FM_GetShiftState [20:00:53]SAM_PROTO_GetShiftState [20:00:53]wFMCommunicate request_size=4 [20:00:53]MH_SAM_APDU [20:00:53]CAPDU: 80 13 01 00 [20:00:53]Write to MH i2c: E2 08 00 CB 79 80 13 01 00 00 00 00 00 C1 [20:00:53]Write i2c OK [20:00:53]MH_I2C_Read... [20:00:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:53]Read from MH i2c: E2 [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: E2 0E 00 [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: E2 0E 00 CB 79 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 EF [20:00:53]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:00:53]wFMCommunicate OK [20:00:53]SAM_PROTO_GetShiftState done [20:00:53]FM_GetShiftState done [20:00:53]opened in 1722211641 [20:00:53]opened+sec_in_day 1722298041 [20:00:53]quantity*price = 400050 [20:00:53]sum+1 = 400051 [20:00:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 274 29.07.2024 20:01 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118898 ФПД: 4082936508893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T200100&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118898&fm=4082936508893&tin=02508201610067®Number=0000000000092660&sum=400000 [20:00:54]StoreToDocumentArchive [20:00:54]shift 434 fd 118898 [20:00:54]save to /storage/0434/doc_00118898 [20:00:54]save last doc name /storage/0434/doc_00118898 to /storage/kkm_last_doc_name [20:00:54]save OK [20:00:54]Clear old archive folders... [20:00:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:00:54]tlvbuf is 01E4D830 [20:00:54]SAM_PROTO_ClearQueue [20:00:54]wFMCommunicate request_size=4 [20:00:54]MH_SAM_APDU [20:00:54]CAPDU: 80 09 00 00 [20:00:54]Write to MH i2c: E2 08 00 D8 79 80 09 00 00 00 00 00 00 C3 [20:00:54]Write i2c OK [20:00:54]MH_I2C_Read... [20:00:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:54]Read from MH i2c: E2 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: E2 03 00 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: E2 03 00 D8 79 00 90 00 C5 [20:00:54]RAPDU: 90 00 [20:00:54]wFMCommunicate OK [20:00:54]SAM_PROTO_ClearQueue done [20:00:54]KKMCreateOFDPacket [20:00:54]OFDProtocolAddRootSTLVToBuf [20:00:54]FM_MakeSignedData [20:00:54]FM_MakeSignedData [20:00:54]SAM_PROTO_SignData [20:00:54]wFMCommunicate request_size=4 [20:00:54]MH_SAM_APDU [20:00:54]CAPDU: 80 0D 01 02 [20:00:54]Write to MH i2c: E2 08 00 D9 79 80 0D 01 02 00 00 00 00 CB [20:00:54]Write i2c OK [20:00:54]MH_I2C_Read... [20:00:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:54]Read from MH i2c: E2 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: E2 03 00 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: E2 03 00 D9 79 00 90 00 C6 [20:00:54]RAPDU: 90 00 [20:00:54]wFMCommunicate OK [20:00:54]wFMCommunicate request_size=255 [20:00:54]MH_SAM_APDU [20:00:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 FC F4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 D0 01 00 35 04 06 00 03 B6 A1 FA [20:00:54]Write to MH i2c: E2 02 01 DA 79 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 FC F4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 D0 01 00 35 04 06 00 03 B6 A1 FA 00 00 DA [20:00:54]Write i2c OK [20:00:54]MH_I2C_Read... [20:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:55]Read from MH i2c: E2 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: E2 03 00 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: E2 03 00 DA 79 00 90 00 C7 [20:00:55]RAPDU: 90 00 [20:00:55]wFMCommunicate OK [20:00:55]wFMCommunicate request_size=7 [20:00:55]MH_SAM_APDU [20:00:55]CAPDU: 80 0D 02 02 02 F1 DD [20:00:55]Write to MH i2c: E2 0A 00 DB 79 80 0D 02 02 02 00 F1 DD 00 00 A0 [20:00:55]Write i2c OK [20:00:55]MH_I2C_Read... [20:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:55]Read from MH i2c: E2 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: E2 03 00 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: E2 03 00 DB 79 00 90 00 C8 [20:00:55]RAPDU: 90 00 [20:00:55]wFMCommunicate OK [20:00:55]wFMCommunicate request_size=4 [20:00:55]MH_SAM_APDU [20:00:55]CAPDU: 80 0D 03 02 [20:00:55]Write to MH i2c: E2 08 00 DC 79 80 0D 03 02 00 00 00 00 D0 [20:00:55]Write i2c OK [20:00:55]MH_I2C_Read... [20:00:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:55]Read from MH i2c: E2 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: E2 0B 00 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: E2 0B 00 DC 79 00 09 76 29 3B 8B 5B 92 CC 90 00 F8 [20:00:55]RAPDU: 09 76 29 3B 8B 5B 92 CC 90 00 [20:00:55]wFMCommunicate OK [20:00:55]SAM_PROTO_SignData done [20:00:55]FM_MakeSignedData done [20:00:55]CreateOFDProtocolMessage [20:00:55]wFMCommunicate request_size=4 [20:00:55]MH_SAM_APDU [20:00:55]CAPDU: 80 11 00 00 [20:00:55]Write to MH i2c: E2 08 00 DD 79 80 11 00 00 00 00 00 00 D0 [20:00:55]Write i2c OK [20:00:55]MH_I2C_Read... [20:00:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:55]Read from MH i2c: E2 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: E2 17 00 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: E2 17 00 DD 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2B [20:00:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:00:55]wFMCommunicate OK [20:00:55]CreateOFDProtocolMessage done [20:00:55]OFDSenderStorePacket 118898 [20:00:55]StoreOFDPacket docnum=118898 [20:00:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 00 E3 04 01 81 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 FC F4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 D0 01 00 35 04 06 00 03 B6 A1 FA F1 DD 09 76 29 3B 8B 5B 92 CC [20:00:55]CheckFolder [20:00:55]dirname=/storage/ofd_packets [20:00:55]CheckFolder done [20:00:55]ProducePacketName [20:00:55]name=ofd_packets/00118898 [20:00:55]NVStorageSaveData ofd_packets/00118898 [20:00:55]File name is /storage/ofd_packets/00118898 [20:00:55]Write 298 bytes [20:00:55]NVStorageSaveData done [20:00:55]OFDSenderStorePacket done [20:00:55]KKMCreateOFDPacket done [20:00:55]NVStorageSaveData kkm_last_timestamp [20:00:55]File name is /storage/kkm_last_timestamp [20:00:55]Write 4 bytes [20:00:55]NVStorageSaveData done [20:00:55]ExternCall_PrintAddStr [20:00:55]wPrintStart [20:00:55]Write to MH i2c: 01 00 00 DE 79 57 [20:00:55]Write i2c OK [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: 01 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: 01 07 00 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: 01 07 00 DE 79 00 00 00 00 00 FF 0F 6C [20:00:55]RasterBufferAndPrint [20:00:55]line Счет N : (1)949790 [20:00:55]line ИНН: 02508201610067 [20:00:55]line Контрольно-Кассовый Чек [20:00:55]line ПРОДАЖА [20:00:55]line ТРК (МРК, ГНК) : 21 [20:00:55]line Товар: 2710194800 [20:00:55]line ДТ-К-5 [20:00:55]line 52.500 * 76.20 [20:00:55]line = 4000.50 [20:00:55]line НДС 12% НСП 1% [20:00:55]line > о реализуемом товаре [20:00:55]line ОКРУГЛЕНИЕ: -0.50 [20:00:55]line ИТОГО: 4000.00 [20:00:55]line НСП 1% : 35.40 [20:00:55]line НДС 12% : 424.83 [20:00:55]line Наличными: 0.00 [20:00:55]line Безнал.: 4000.00 [20:00:55]line Место: АЗС № 134 "Партнер Нефть" [20:00:55]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:00:55]line СНО: Общий режим [20:00:55]line Чек 274 29.07.2024 20:01 [20:00:55]line Смена: 434 ФФД: 1.0 [20:00:55]line ЗНМ: 0300000044 [20:00:55]line РНМ: 0000000000092660 [20:00:55]line Версия ККМ: 001 [20:00:55]line Платежная система: O! деньги [20:00:55]line ФМ: 0000000000874939 [20:00:55]line ФД: 118898 [20:00:55]line ФПД: 4082936508893 [20:00:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T200100&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118898&fm=4082936508893&tin=02508201610067®Number=0000000000092660&sum=400000 [20:00:55]OFD Sender: Processing packet 118898 [packets to send 86, broken 85] [20:00:55]ProducePacketName [20:00:55]name=ofd_packets/00118898 [20:00:55]OFD Sender: To server: pG, [20:00:55]CommunicateWithHost lk.salyk.kg:30040 [20:00:55]ConnectInit lk.salyk.kg [20:00:55]written 0, free lines is 4095 [20:00:55]Connected sock=10 [20:00:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 00 E3 04 01 81 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 FC F4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 D0 01 00 35 04 06 00 03 B6 A1 FA F1 DD 09 76 29 3B 8B 5B 92 CC [20:00:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1F F5 47 00 D1 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 D0 01 00 F4 03 04 00 89 A2 A7 66 B6 04 01 00 00 BA 9D 9B 05 13 E8 ED D0 [20:00:55]CommunicateWithHost err = 0 [20:00:55]CheckOFDResponse [20:00:55]1017 (14) - 77093643461234 [20:00:55]1041 (16) - 0000000000874939 [20:00:55]1040 (4) - 118898 [20:00:55]1012 (4) - 29.07.2024 14:09 [20:00:55]1206 (1) - 0 [20:00:55]OFD Sender: Remove packet 118898 [20:00:55]ProducePacketName [20:00:55]name=ofd_packets/00118898 [20:00:55]NVStorageDeleteData [20:00:55]Write to MH i2c: 01 00 00 08 7A 82 [20:00:55]Write i2c OK [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: 01 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: 01 07 00 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: 01 07 00 08 7A 00 00 00 00 00 EE 0C 83 [20:00:55]RasterBufferAndPrint [20:00:55]line [20:00:55]line [20:00:55]line [20:00:55]line [20:00:55]line [20:00:55]written 0, free lines is 3320 [20:00:55]MH_Cut [20:00:55]Write to MH i2c: D1 01 00 0F 7A 01 5B [20:00:55]Write i2c OK [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: D1 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: D1 01 00 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: D1 01 00 0F 7A 00 5A [20:00:55]Write to MH i2c: 01 00 00 10 7A 8A [20:00:55]Write i2c OK [20:00:55]MH_I2C_Read... [20:00:56]OFD Sender: No OFD packet to send [20:00:56]*** Cut start [20:00:56]*** Partial cut [20:00:56]*** CUTSNS_PIN = 1 [20:00:56]*** CUTSNS_PIN = 0 [20:00:56]*** Brake cut motor [20:00:57]Read from MH i2c: 01 [20:00:57]MH_I2C_Read... [20:00:57]*** Stop cut motor [20:00:57]*** Cut end [20:00:57]Read from MH i2c: 01 07 00 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: 01 07 00 10 7A 00 00 00 00 00 FF 0F 9F [20:00:57]process_action close_receipt done [20:00:57]requested_data is exist [20:00:57]produce_requested_data [20:00:57]requested_item fm.sn is exist - process it [20:00:57]wFMCommunicate request_size=4 [20:00:57]MH_SAM_APDU [20:00:57]CAPDU: 80 11 00 00 [20:00:57]Write to MH i2c: E2 08 00 11 7A 80 11 00 00 00 00 00 00 05 [20:00:57]Write i2c OK [20:00:57]MH_I2C_Read... [20:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:57]Read from MH i2c: E2 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 17 00 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 17 00 11 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 60 [20:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:00:57]wFMCommunicate OK [20:00:57]requested_item fd.num is exist - process it [20:00:57]SAM_PROTO_GetFieldsCounters [20:00:57]wFMCommunicate request_size=4 [20:00:57]MH_SAM_APDU [20:00:57]CAPDU: 80 13 00 00 [20:00:57]Write to MH i2c: E2 08 00 12 7A 80 13 00 00 00 00 00 00 08 [20:00:57]Write i2c OK [20:00:57]MH_I2C_Read... [20:00:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:57]Read from MH i2c: E2 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 62 00 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 62 00 12 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 72 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 5E [20:00: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 72 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:00:57]wFMCommunicate OK [20:00:57]SAM_PROTO_GetFieldsCounters done [20:00:57]requested_item shift.num is exist - process it [20:00:57]requested_item shift.opened is exist - process it [20:00:57]req_shift_opened [20:00:57]FM_GetShiftState [20:00:57]SAM_PROTO_GetShiftState [20:00:57]wFMCommunicate request_size=4 [20:00:57]MH_SAM_APDU [20:00:57]CAPDU: 80 13 01 00 [20:00:57]Write to MH i2c: E2 08 00 13 7A 80 13 01 00 00 00 00 00 0A [20:00:57]Write i2c OK [20:00:57]MH_I2C_Read... [20:00:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:57]Read from MH i2c: E2 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 0E 00 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 0E 00 13 7A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 38 [20:00:57]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:00:57]wFMCommunicate OK [20:00:57]SAM_PROTO_GetShiftState done [20:00:57]FM_GetShiftState done [20:00:57]req_shift_opened done [20:00:57]requested_item shift.open_date is exist - process it [20:00:57]req_shift_open_date [20:00:57]req_shift_open_date done [20:00:57]produce_requested_data done [20:00:57]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118898,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [20:00:57]process_action_free close_receipt [20:00:57]json_value_free [20:00:57]json_value_free done [20:00:57]process_json_proto returns [20:00:57]Send response to host [20:00:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118898,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [20:00:57]free response buf [20:00:57]execute_script done [20:00:57]execute_script returns [20:00:57]free content buf [20:00:57]Sock 9.Close socket [20:00:57]Sock 9.Thread stoped [20:01:01]OFD Sender: No OFD packet to send [20:01:06]OFD Sender: No OFD packet to send [20:01:11]OFD Sender: No OFD packet to send [20:01:16]OFD Sender: No OFD packet to send [20:01:21]OFD Sender: No OFD packet to send [20:01:26]OFD Sender: No OFD packet to send [20:01:31]OFD Sender: No OFD packet to send [20:01:36]OFD Sender: No OFD packet to send [20:01:41]OFD Sender: No OFD packet to send [20:01:46]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:11]OFD Sender: No OFD packet to send [20:02:16]OFD Sender: No OFD packet to send [20:02:21]OFD Sender: No OFD packet to send [20:02:26]OFD Sender: No OFD packet to send [20:02:31]OFD Sender: No OFD packet to send [20:02:36]OFD Sender: No OFD packet to send [20:02:41]OFD Sender: No OFD packet to send [20:02:46]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:32]accept exits with 7 [20:06:32]New connection [20:06:32]New thread 3067239780 created [20:06:32]Thread 3067383140 joined [20:06:32]Waiting for new connection... [20:06:32] Sock 7.Parse request [20:06:32]Sock 7.Check first char [20:06:32]Sock 7.First char is OK [20:06:32]request: POST /json_proto HTTP/1.0 [20:06:32]Method: POST [20:06:32]URL: /json_proto [20:06:32]Method is POST - this is cgi request [20:06:32]url: /json_proto [20:06:32]query_string will be loaded in cgi processing [20:06:32]execute_cgi json_proto POST (null) [20:06:32]execute_cgi path=json_proto method=POST [20:06:32]POST find Content-Length [20:06:32]Host: 172.17.45.7:8080 [20:06:32]Content-Length: 682 [20:06:32]Content-Type: application/json [20:06:32] [20:06:32]POST finish read [20:06:32]Found Content-Length = 682 [20:06:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:32]execute_script... [20:06:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:32]POST & json_proto [20:06:32]process_json_proto [20:06:32]json parsed OK: [20:06:32]protocol is kg_v1.0 [20:06:32]action value=close_receipt [20:06:32]process_action close_receipt [20:06:32]cmd_close_receipt [20:06:32]MH_GetDate [20:06:32]Write to MH i2c: F0 00 00 14 7A 7D [20:06:32]Write i2c OK [20:06:32]MH_I2C_Read... [20:06:32]Read from MH i2c: F0 [20:06:32]MH_I2C_Read... [20:06:32]Read from MH i2c: F0 09 00 [20:06:32]MH_I2C_Read... [20:06:32]Read from MH i2c: F0 09 00 14 7A 00 50 F6 A7 66 90 0F 3E 66 1C [20:06:32]GetLastDocTimeStamp 1722283260 [20:06:32]current date 1722283600 [20:06:32]FM_GetShiftState [20:06:32]SAM_PROTO_GetShiftState [20:06:32]wFMCommunicate request_size=4 [20:06:32]MH_SAM_APDU [20:06:32]CAPDU: 80 13 01 00 [20:06:32]Write to MH i2c: E2 08 00 15 7A 80 13 01 00 00 00 00 00 0C [20:06:32]Write i2c OK [20:06:32]MH_I2C_Read... [20:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:33]Read from MH i2c: E2 [20:06:33]MH_I2C_Read... [20:06:33]Read from MH i2c: E2 0E 00 [20:06:33]MH_I2C_Read... [20:06:33]Read from MH i2c: E2 0E 00 15 7A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 3A [20:06:33]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:06:33]wFMCommunicate OK [20:06:33]SAM_PROTO_GetShiftState done [20:06:33]FM_GetShiftState done [20:06:33]opened in 1722211641 [20:06:33]opened+sec_in_day 1722298041 [20:06:33]quantity*price = 100005 [20:06:33]sum+1 = 100006 [20:06:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 275 29.07.2024 20:06 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118899 ФПД: 160818490249945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T200640&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118899&fm=160818490249945&tin=02508201610067®Number=0000000000092660&sum=100000 [20:06:34]StoreToDocumentArchive [20:06:34]shift 434 fd 118899 [20:06:34]save to /storage/0434/doc_00118899 [20:06:34]save last doc name /storage/0434/doc_00118899 to /storage/kkm_last_doc_name [20:06:34]save OK [20:06:34]Clear old archive folders... [20:06:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:06:34]tlvbuf is 02052CA0 [20:06:34]SAM_PROTO_ClearQueue [20:06:34]wFMCommunicate request_size=4 [20:06:34]MH_SAM_APDU [20:06:34]CAPDU: 80 09 00 00 [20:06:34]Write to MH i2c: E2 08 00 22 7A 80 09 00 00 00 00 00 00 0E [20:06:34]Write i2c OK [20:06:34]MH_I2C_Read... [20:06:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:34]Read from MH i2c: E2 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: E2 03 00 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: E2 03 00 22 7A 00 90 00 10 [20:06:34]RAPDU: 90 00 [20:06:34]wFMCommunicate OK [20:06:34]SAM_PROTO_ClearQueue done [20:06:34]KKMCreateOFDPacket [20:06:34]OFDProtocolAddRootSTLVToBuf [20:06:34]FM_MakeSignedData [20:06:34]FM_MakeSignedData [20:06:34]SAM_PROTO_SignData [20:06:34]wFMCommunicate request_size=4 [20:06:34]MH_SAM_APDU [20:06:34]CAPDU: 80 0D 01 02 [20:06:34]Write to MH i2c: E2 08 00 23 7A 80 0D 01 02 00 00 00 00 16 [20:06:34]Write i2c OK [20:06:34]MH_I2C_Read... [20:06:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:34]Read from MH i2c: E2 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: E2 03 00 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: E2 03 00 23 7A 00 90 00 11 [20:06:34]RAPDU: 90 00 [20:06:34]wFMCommunicate OK [20:06:34]wFMCommunicate request_size=255 [20:06:34]MH_SAM_APDU [20:06: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 50 F6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 D0 01 00 35 04 06 00 92 [20:06:34]Write to MH i2c: E2 02 01 24 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 50 F6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 D0 01 00 35 04 06 00 92 00 00 19 [20:06:34]Write i2c OK [20:06:34]MH_I2C_Read... [20:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:34]Read from MH i2c: E2 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: E2 03 00 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: E2 03 00 24 7A 00 90 00 12 [20:06:34]RAPDU: 90 00 [20:06:34]wFMCommunicate OK [20:06:34]wFMCommunicate request_size=10 [20:06:34]MH_SAM_APDU [20:06:34]CAPDU: 80 0D 02 02 05 43 78 FC 12 D9 [20:06:34]Write to MH i2c: E2 0D 00 25 7A 80 0D 02 02 05 00 43 78 FC 12 D9 00 00 C5 [20:06:34]Write i2c OK [20:06:34]MH_I2C_Read... [20:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:34]Read from MH i2c: E2 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: E2 03 00 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: E2 03 00 25 7A 00 90 00 13 [20:06:34]RAPDU: 90 00 [20:06:34]wFMCommunicate OK [20:06:34]wFMCommunicate request_size=4 [20:06:34]MH_SAM_APDU [20:06:34]CAPDU: 80 0D 03 02 [20:06:34]Write to MH i2c: E2 08 00 26 7A 80 0D 03 02 00 00 00 00 1B [20:06:34]Write i2c OK [20:06:34]MH_I2C_Read... [20:06:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:34]Read from MH i2c: E2 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: E2 0B 00 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: E2 0B 00 26 7A 00 7A 24 6B AB 10 A7 A8 51 90 00 80 [20:06:34]RAPDU: 7A 24 6B AB 10 A7 A8 51 90 00 [20:06:34]wFMCommunicate OK [20:06:34]SAM_PROTO_SignData done [20:06:34]FM_MakeSignedData done [20:06:34]CreateOFDProtocolMessage [20:06:34]wFMCommunicate request_size=4 [20:06:34]MH_SAM_APDU [20:06:34]CAPDU: 80 11 00 00 [20:06:34]Write to MH i2c: E2 08 00 27 7A 80 11 00 00 00 00 00 00 1B [20:06:34]Write i2c OK [20:06:34]MH_I2C_Read... [20:06:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:34]Read from MH i2c: E2 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: E2 17 00 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: E2 17 00 27 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 76 [20:06:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:06:34]wFMCommunicate OK [20:06:34]CreateOFDProtocolMessage done [20:06:34]OFDSenderStorePacket 118899 [20:06:34]StoreOFDPacket docnum=118899 [20:06:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 32 60 07 01 FB 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 50 F6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 D0 01 00 35 04 06 00 92 43 78 FC 12 D9 7A 24 6B AB 10 A7 A8 51 [20:06:34]CheckFolder [20:06:34]dirname=/storage/ofd_packets [20:06:34]CheckFolder done [20:06:34]ProducePacketName [20:06:34]name=ofd_packets/00118899 [20:06:34]NVStorageSaveData ofd_packets/00118899 [20:06:34]File name is /storage/ofd_packets/00118899 [20:06:34]Write 301 bytes [20:06:34]NVStorageSaveData done [20:06:34]OFDSenderStorePacket done [20:06:34]KKMCreateOFDPacket done [20:06:34]NVStorageSaveData kkm_last_timestamp [20:06:34]File name is /storage/kkm_last_timestamp [20:06:34]Write 4 bytes [20:06:34]NVStorageSaveData done [20:06:34]ExternCall_PrintAddStr [20:06:34]wPrintStart [20:06:34]Write to MH i2c: 01 00 00 28 7A A2 [20:06:34]Write i2c OK [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: 01 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: 01 07 00 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: 01 07 00 28 7A 00 00 00 00 00 FF 0F B7 [20:06:34]RasterBufferAndPrint [20:06:34]line Счет N : (1)949792 [20:06:34]line ИНН: 02508201610067 [20:06:34]line Контрольно-Кассовый Чек [20:06:34]line ПРОДАЖА [20:06:34]line ТРК (МРК, ГНК) : 41 [20:06:34]line Товар: 2710124130 [20:06:34]line Аи-92-К-4 [20:06:34]line 14.750 * 67.80 [20:06:34]line = 1000.05 [20:06:34]line НДС 12% НСП 1% [20:06:34]line > о реализуемом товаре [20:06:34]line ОКРУГЛЕНИЕ: -0.05 [20:06:34]line ИТОГО: 1000.00 [20:06:34]line Внесено: 1000.00 [20:06:34]line СДАЧА: 0.00 [20:06:34]line НСП 1% : 8.85 [20:06:34]line НДС 12% : 106.20 [20:06:34]line Наличными: 1000.00 [20:06:34]line Безнал.: 0.00 [20:06:34]line Место: АЗС № 134 "Партнер Нефть" [20:06:34]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:06:34]line СНО: Общий режим [20:06:34]line Чек 275 29.07.2024 20:06 [20:06:34]line Смена: 434 ФФД: 1.0 [20:06:34]line ЗНМ: 0300000044 [20:06:34]line РНМ: 0000000000092660 [20:06:34]line Версия ККМ: 001 [20:06:34]line ФМ: 0000000000874939 [20:06:34]line ФД: 118899 [20:06:34]line ФПД: 160818490249945 [20:06:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T200640&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118899&fm=160818490249945&tin=02508201610067®Number=0000000000092660&sum=100000 [20:06:35]written 0, free lines is 4095 [20:06:35]OFD Sender: Processing packet 118899 [packets to send 86, broken 85] [20:06:35]ProducePacketName [20:06:35]name=ofd_packets/00118899 [20:06:35]OFD Sender: To server: pG, [20:06:35]CommunicateWithHost lk.salyk.kg:30040 [20:06:35]ConnectInit lk.salyk.kg [20:06:35]Connected sock=10 [20:06:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 32 60 07 01 FB 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 50 F6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 D0 01 00 35 04 06 00 92 43 78 FC 12 D9 7A 24 6B AB 10 A7 A8 51 [20:06:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1D F8 47 00 3B 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 D0 01 00 F4 03 04 00 DD A3 A7 66 B6 04 01 00 00 A4 8A AB 5B 2B AC 81 CA [20:06:35]CommunicateWithHost err = 0 [20:06:35]CheckOFDResponse [20:06:35]1017 (14) - 77093643461234 [20:06:35]1041 (16) - 0000000000874939 [20:06:35]1040 (4) - 118899 [20:06:35]1012 (4) - 29.07.2024 14:14 [20:06:35]1206 (1) - 0 [20:06:35]OFD Sender: Remove packet 118899 [20:06:35]ProducePacketName [20:06:35]name=ofd_packets/00118899 [20:06:35]NVStorageDeleteData [20:06:35]Write to MH i2c: 01 00 00 52 7A CC [20:06:35]Write i2c OK [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: 01 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: 01 07 00 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: 01 07 00 52 7A 00 00 00 00 00 DD 0C BC [20:06:35]RasterBufferAndPrint [20:06:35]line [20:06:35]line [20:06:35]line [20:06:35]line [20:06:35]line [20:06:35]written 0, free lines is 3300 [20:06:35]MH_Cut [20:06:35]Write to MH i2c: D1 01 00 59 7A 01 A5 [20:06:35]Write i2c OK [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: D1 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: D1 01 00 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: D1 01 00 59 7A 00 A4 [20:06:35]Write to MH i2c: 01 00 00 5A 7A D4 [20:06:35]Write i2c OK [20:06:35]MH_I2C_Read... [20:06:35]OFD Sender: No OFD packet to send [20:06:36]*** Cut start [20:06:36]*** Partial cut [20:06:36]*** CUTSNS_PIN = 1 [20:06:36]*** CUTSNS_PIN = 0 [20:06:36]*** Brake cut motor [20:06:36]Read from MH i2c: 01 [20:06:36]MH_I2C_Read... [20:06:36]*** Stop cut motor [20:06:36]*** Cut end [20:06:36]Read from MH i2c: 01 07 00 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: 01 07 00 5A 7A 00 00 00 00 00 FF 0F E9 [20:06:36]process_action close_receipt done [20:06:36]requested_data is exist [20:06:36]produce_requested_data [20:06:36]requested_item fm.sn is exist - process it [20:06:36]wFMCommunicate request_size=4 [20:06:36]MH_SAM_APDU [20:06:36]CAPDU: 80 11 00 00 [20:06:36]Write to MH i2c: E2 08 00 5B 7A 80 11 00 00 00 00 00 00 4F [20:06:36]Write i2c OK [20:06:36]MH_I2C_Read... [20:06:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:36]Read from MH i2c: E2 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: E2 17 00 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: E2 17 00 5B 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AA [20:06:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:06:36]wFMCommunicate OK [20:06:36]requested_item fd.num is exist - process it [20:06:36]SAM_PROTO_GetFieldsCounters [20:06:36]wFMCommunicate request_size=4 [20:06:36]MH_SAM_APDU [20:06:36]CAPDU: 80 13 00 00 [20:06:36]Write to MH i2c: E2 08 00 5C 7A 80 13 00 00 00 00 00 00 52 [20:06:36]Write i2c OK [20:06:36]MH_I2C_Read... [20:06:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:37]Read from MH i2c: E2 [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: E2 62 00 [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: E2 62 00 5C 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 73 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 AC [20:06: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 73 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:06:37]wFMCommunicate OK [20:06:37]SAM_PROTO_GetFieldsCounters done [20:06:37]requested_item shift.num is exist - process it [20:06:37]requested_item shift.opened is exist - process it [20:06:37]req_shift_opened [20:06:37]FM_GetShiftState [20:06:37]SAM_PROTO_GetShiftState [20:06:37]wFMCommunicate request_size=4 [20:06:37]MH_SAM_APDU [20:06:37]CAPDU: 80 13 01 00 [20:06:37]Write to MH i2c: E2 08 00 5D 7A 80 13 01 00 00 00 00 00 54 [20:06:37]Write i2c OK [20:06:37]MH_I2C_Read... [20:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:37]Read from MH i2c: E2 [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: E2 0E 00 [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: E2 0E 00 5D 7A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 82 [20:06:37]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:06:37]wFMCommunicate OK [20:06:37]SAM_PROTO_GetShiftState done [20:06:37]FM_GetShiftState done [20:06:37]req_shift_opened done [20:06:37]requested_item shift.open_date is exist - process it [20:06:37]req_shift_open_date [20:06:37]req_shift_open_date done [20:06:37]produce_requested_data done [20:06:37]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118899,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [20:06:37]process_action_free close_receipt [20:06:37]json_value_free [20:06:37]json_value_free done [20:06:37]process_json_proto returns [20:06:37]Send response to host [20:06:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118899,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [20:06:37]free response buf [20:06:37]execute_script done [20:06:37]execute_script returns [20:06:37]free content buf [20:06:37]Sock 7.Close socket [20:06:37]Sock 7.Thread stoped [20:06:40]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:50]OFD Sender: No OFD packet to send [20:06:55]OFD Sender: No OFD packet to send [20:07:00]OFD Sender: No OFD packet to send [20:07:05]OFD Sender: No OFD packet to send [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]accept exits with 9 [20:07:40]New connection [20:07:40]New thread 3067383140 created [20:07:40]Thread 3067239780 joined [20:07:40]Waiting for new connection... [20:07:40] Sock 9.Parse request [20:07:40]Sock 9.Check first char [20:07:40]Sock 9.First char is OK [20:07:40]request: POST /json_proto HTTP/1.0 [20:07:40]Method: POST [20:07:40]URL: /json_proto [20:07:40]Method is POST - this is cgi request [20:07:40]url: /json_proto [20:07:40]query_string will be loaded in cgi processing [20:07:40]execute_cgi json_proto POST (null) [20:07:40]execute_cgi path=json_proto method=POST [20:07:40]POST find Content-Length [20:07:40]Host: 172.17.45.7:8080 [20:07:40]Content-Length: 739 [20:07:40]Content-Type: application/json [20:07:40] [20:07:40]POST finish read [20:07:40]Found Content-Length = 739 [20:07:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118899, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:40]execute_script... [20:07:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118899, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:40]POST & json_proto [20:07:40]process_json_proto [20:07:40]json parsed OK: [20:07:40]protocol is kg_v1.0 [20:07:40]action value=close_receipt [20:07:40]process_action close_receipt [20:07:40]cmd_close_receipt [20:07:40]MH_GetDate [20:07:40]Write to MH i2c: F0 00 00 5E 7A C7 [20:07:40]Write i2c OK [20:07:40]MH_I2C_Read... [20:07:40]Read from MH i2c: F0 [20:07:40]MH_I2C_Read... [20:07:40]Read from MH i2c: F0 09 00 [20:07:40]MH_I2C_Read... [20:07:40]Read from MH i2c: F0 09 00 5E 7A 00 93 F6 A7 66 90 0F 3E 66 A9 [20:07:40]GetLastDocTimeStamp 1722283600 [20:07:40]current date 1722283667 [20:07:40]FM_GetShiftState [20:07:40]SAM_PROTO_GetShiftState [20:07:40]wFMCommunicate request_size=4 [20:07:40]MH_SAM_APDU [20:07:40]CAPDU: 80 13 01 00 [20:07:40]Write to MH i2c: E2 08 00 5F 7A 80 13 01 00 00 00 00 00 56 [20:07:40]Write i2c OK [20:07:40]MH_I2C_Read... [20:07:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:40]Read from MH i2c: E2 [20:07:40]MH_I2C_Read... [20:07:40]Read from MH i2c: E2 0E 00 [20:07:40]MH_I2C_Read... [20:07:40]Read from MH i2c: E2 0E 00 5F 7A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 84 [20:07:40]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:07:40]wFMCommunicate OK [20:07:40]SAM_PROTO_GetShiftState done [20:07:40]FM_GetShiftState done [20:07:40]opened in 1722211641 [20:07:40]opened+sec_in_day 1722298041 [20:07:40]quantity*price = 100005 [20:07:40]sum+1 = 100006 [20:07:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 276 29.07.2024 20:07 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 118899 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 118900 ФПД: 29116352222105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T200747&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118900&fm=29116352222105&tin=02508201610067®Number=0000000000092660&sum=100000 [20:07:41]StoreToDocumentArchive [20:07:41]shift 434 fd 118900 [20:07:41]save to /storage/0434/doc_00118900 [20:07:41]save last doc name /storage/0434/doc_00118900 to /storage/kkm_last_doc_name [20:07:41]save OK [20:07:41]Clear old archive folders... [20:07:41]ProcessDocumentItem done err = 0, tmpTLVsize=279 [20:07:41]tlvbuf is 020D8310 [20:07:41]SAM_PROTO_ClearQueue [20:07:41]wFMCommunicate request_size=4 [20:07:41]MH_SAM_APDU [20:07:41]CAPDU: 80 09 00 00 [20:07:41]Write to MH i2c: E2 08 00 6E 7A 80 09 00 00 00 00 00 00 5A [20:07:41]Write i2c OK [20:07:41]MH_I2C_Read... [20:07:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:41]Read from MH i2c: E2 [20:07:41]MH_I2C_Read... [20:07:41]Read from MH i2c: E2 03 00 [20:07:41]MH_I2C_Read... [20:07:41]Read from MH i2c: E2 03 00 6E 7A 00 90 00 5C [20:07:41]RAPDU: 90 00 [20:07:41]wFMCommunicate OK [20:07:41]SAM_PROTO_ClearQueue done [20:07:41]KKMCreateOFDPacket [20:07:41]OFDProtocolAddRootSTLVToBuf [20:07:41]FM_MakeSignedData [20:07:41]FM_MakeSignedData [20:07:41]SAM_PROTO_SignData [20:07:41]wFMCommunicate request_size=4 [20:07:41]MH_SAM_APDU [20:07:41]CAPDU: 80 0D 01 02 [20:07:41]Write to MH i2c: E2 08 00 6F 7A 80 0D 01 02 00 00 00 00 62 [20:07:41]Write i2c OK [20:07:41]MH_I2C_Read... [20:07:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:41]Read from MH i2c: E2 [20:07:41]MH_I2C_Read... [20:07:41]Read from MH i2c: E2 03 00 [20:07:41]MH_I2C_Read... [20:07:41]Read from MH i2c: E2 03 00 6F 7A 00 90 00 5D [20:07:41]RAPDU: 90 00 [20:07:41]wFMCommunicate OK [20:07:41]wFMCommunicate request_size=255 [20:07:41]MH_SAM_APDU [20:07:41]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 93 F6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 73 D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 [20:07:41]Write to MH i2c: E2 02 01 70 7A 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 93 F6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 73 D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 00 00 79 [20:07:41]Write i2c OK [20:07:41]MH_I2C_Read... [20:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:42]Read from MH i2c: E2 [20:07:42]MH_I2C_Read... [20:07:42]Read from MH i2c: E2 03 00 [20:07:42]MH_I2C_Read... [20:07:42]Read from MH i2c: E2 03 00 70 7A 00 90 00 5E [20:07:42]RAPDU: 90 00 [20:07:42]wFMCommunicate OK [20:07:42]wFMCommunicate request_size=38 [20:07:42]MH_SAM_APDU [20:07:42]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 D0 01 00 35 04 06 00 1A 7B 2D D4 D3 99 [20:07:42]Write to MH i2c: E2 29 00 71 7A 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 D0 01 00 35 04 06 00 1A 7B 2D D4 D3 99 00 00 3D [20:07:42]Write i2c OK [20:07:42]MH_I2C_Read... [20:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:42]Read from MH i2c: E2 [20:07:42]MH_I2C_Read... [20:07:42]Read from MH i2c: E2 03 00 [20:07:42]MH_I2C_Read... [20:07:42]Read from MH i2c: E2 03 00 71 7A 00 90 00 5F [20:07:42]RAPDU: 90 00 [20:07:42]wFMCommunicate OK [20:07:42]wFMCommunicate request_size=4 [20:07:42]MH_SAM_APDU [20:07:42]CAPDU: 80 0D 03 02 [20:07:42]Write to MH i2c: E2 08 00 72 7A 80 0D 03 02 00 00 00 00 67 [20:07:42]Write i2c OK [20:07:42]MH_I2C_Read... [20:07:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:42]Read from MH i2c: E2 [20:07:42]MH_I2C_Read... [20:07:42]Read from MH i2c: E2 0B 00 [20:07:42]MH_I2C_Read... [20:07:42]Read from MH i2c: E2 0B 00 72 7A 00 8A D4 E2 9F F4 3D 48 FE 90 00 BE [20:07:42]RAPDU: 8A D4 E2 9F F4 3D 48 FE 90 00 [20:07:42]wFMCommunicate OK [20:07:42]SAM_PROTO_SignData done [20:07:42]FM_MakeSignedData done [20:07:42]CreateOFDProtocolMessage [20:07:42]wFMCommunicate request_size=4 [20:07:42]MH_SAM_APDU [20:07:42]CAPDU: 80 11 00 00 [20:07:42]Write to MH i2c: E2 08 00 73 7A 80 11 00 00 00 00 00 00 67 [20:07:42]Write i2c OK [20:07:42]MH_I2C_Read... [20:07:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:42]Read from MH i2c: E2 [20:07:42]MH_I2C_Read... [20:07:42]Read from MH i2c: E2 17 00 [20:07:42]MH_I2C_Read... [20:07:42]Read from MH i2c: E2 17 00 73 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C2 [20:07:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:07:42]wFMCommunicate OK [20:07:42]CreateOFDProtocolMessage done [20:07:42]OFDSenderStorePacket 118900 [20:07:42]StoreOFDPacket docnum=118900 [20:07:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 B1 E0 23 01 D9 CB 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 93 F6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 73 D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 D0 01 00 35 04 06 00 1A 7B 2D D4 D3 99 8A D4 E2 9F F4 3D 48 FE [20:07:42]CheckFolder [20:07:42]dirname=/storage/ofd_packets [20:07:42]CheckFolder done [20:07:42]ProducePacketName [20:07:42]name=ofd_packets/00118900 [20:07:42]NVStorageSaveData ofd_packets/00118900 [20:07:42]File name is /storage/ofd_packets/00118900 [20:07:42]Write 329 bytes [20:07:42]NVStorageSaveData done [20:07:42]OFDSenderStorePacket done [20:07:42]KKMCreateOFDPacket done [20:07:42]NVStorageSaveData kkm_last_timestamp [20:07:42]File name is /storage/kkm_last_timestamp [20:07:42]Write 4 bytes [20:07:42]NVStorageSaveData done [20:07:42]ExternCall_PrintAddStr [20:07:42]wPrintStart [20:07:42]Write to MH i2c: 01 00 00 74 7A EE [20:07:42]Write i2c OK [20:07:42]MH_I2C_Read... [20:07:42]Read from MH i2c: 01 [20:07:42]MH_I2C_Read... [20:07:42]Read from MH i2c: 01 07 00 [20:07:42]MH_I2C_Read... [20:07:42]Read from MH i2c: 01 07 00 74 7A 00 00 00 00 00 FF 0F 03 [20:07:42]RasterBufferAndPrint [20:07:42]line Счет N : (1)949792 [20:07:42]line ИНН: 02508201610067 [20:07:42]line Контрольно-Кассовый Чек [20:07:42]line ВОЗВРАТ ПРОДАЖИ [20:07:42]line ТРК (МРК, ГНК) : 41 [20:07:42]line Товар: 2710124130 [20:07:42]line Аи-92-К-4 [20:07:42]line 14.750 * 67.80 [20:07:42]line = 1000.05 [20:07:42]line НДС 12% НСП 1% [20:07:42]line > о реализуемом товаре [20:07:42]line ОКРУГЛЕНИЕ: -0.05 [20:07:42]line ИТОГО: 1000.00 [20:07:42]line НСП 1% : 8.85 [20:07:42]line НДС 12% : 106.20 [20:07:42]line Наличными: 1000.00 [20:07:42]line Безнал.: 0.00 [20:07:42]line Место: АЗС № 134 "Партнер Нефть" [20:07:42]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:07:42]line СНО: Общий режим [20:07:42]line Чек 276 29.07.2024 20:07 [20:07:42]line Смена: 434 ФФД: 1.0 [20:07:42]line ЗНМ: 0300000044 [20:07:42]line РНМ: 0000000000092660 [20:07:42]line Версия ККМ: 001 [20:07:42]line ФД осн.: 118899 [20:07:42]line ФМ осн.: 0000000000874939 [20:07:42]line ФМ: 0000000000874939 [20:07:42]line ФД: 118900 [20:07:42]line ФПД: 29116352222105 [20:07:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T200747&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118900&fm=29116352222105&tin=02508201610067®Number=0000000000092660&sum=100000 [20:07:42]OFD Sender: Processing packet 118900 [packets to send 86, broken 85] [20:07:42]ProducePacketName [20:07:42]name=ofd_packets/00118900 [20:07:42]OFD Sender: To server: pG, [20:07:42]CommunicateWithHost lk.salyk.kg:30040 [20:07:42]ConnectInit lk.salyk.kg [20:07:42]written 0, free lines is 4095 [20:07:42]Connected sock=10 [20:07:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 B1 E0 23 01 D9 CB 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 93 F6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 73 D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 D0 01 00 35 04 06 00 1A 7B 2D D4 D3 99 8A D4 E2 9F F4 3D 48 FE [20:07:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 58 F0 47 00 D1 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 D0 01 00 F4 03 04 00 20 A4 A7 66 B6 04 01 00 00 74 BD 96 F0 89 AB B7 2C [20:07:42]CommunicateWithHost err = 0 [20:07:42]CheckOFDResponse [20:07:42]1017 (14) - 77093643461234 [20:07:42]1041 (16) - 0000000000874939 [20:07:42]1040 (4) - 118900 [20:07:42]1012 (4) - 29.07.2024 14:16 [20:07:42]1206 (1) - 0 [20:07:42]OFD Sender: Remove packet 118900 [20:07:42]ProducePacketName [20:07:42]name=ofd_packets/00118900 [20:07:42]NVStorageDeleteData [20:07:43]Write to MH i2c: 01 00 00 9E 7A 18 [20:07:43]Write i2c OK [20:07:43]MH_I2C_Read... [20:07:43]Read from MH i2c: 01 [20:07:43]MH_I2C_Read... [20:07:43]Read from MH i2c: 01 07 00 [20:07:43]MH_I2C_Read... [20:07:43]Read from MH i2c: 01 07 00 9E 7A 00 00 00 00 00 ED 0C 18 [20:07:43]RasterBufferAndPrint [20:07:43]line [20:07:43]line [20:07:43]line [20:07:43]line [20:07:43]line [20:07:43]written 0, free lines is 3318 [20:07:43]MH_Cut [20:07:43]Write to MH i2c: D1 01 00 A5 7A 01 F1 [20:07:43]Write i2c OK [20:07:43]MH_I2C_Read... [20:07:43]Read from MH i2c: D1 [20:07:43]MH_I2C_Read... [20:07:43]Read from MH i2c: D1 01 00 [20:07:43]MH_I2C_Read... [20:07:43]Read from MH i2c: D1 01 00 A5 7A 00 F0 [20:07:43]Write to MH i2c: 01 00 00 A6 7A 20 [20:07:43]Write i2c OK [20:07:43]MH_I2C_Read... [20:07:43]OFD Sender: No OFD packet to send [20:07:43]*** Cut start [20:07:43]*** Partial cut [20:07:43]*** CUTSNS_PIN = 1 [20:07:43]*** CUTSNS_PIN = 0 [20:07:44]*** Brake cut motor [20:07:44]Read from MH i2c: 01 [20:07:44]MH_I2C_Read... [20:07:44]*** Stop cut motor [20:07:44]*** Cut end [20:07:44]Read from MH i2c: 01 07 00 [20:07:44]MH_I2C_Read... [20:07:44]Read from MH i2c: 01 07 00 A6 7A 00 00 00 00 00 FF 0F 35 [20:07:44]process_action close_receipt done [20:07:44]requested_data is exist [20:07:44]produce_requested_data [20:07:44]requested_item fm.sn is exist - process it [20:07:44]wFMCommunicate request_size=4 [20:07:44]MH_SAM_APDU [20:07:44]CAPDU: 80 11 00 00 [20:07:44]Write to MH i2c: E2 08 00 A7 7A 80 11 00 00 00 00 00 00 9B [20:07:44]Write i2c OK [20:07:44]MH_I2C_Read... [20:07:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:44]Read from MH i2c: E2 [20:07:44]MH_I2C_Read... [20:07:44]Read from MH i2c: E2 17 00 [20:07:44]MH_I2C_Read... [20:07:44]Read from MH i2c: E2 17 00 A7 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F6 [20:07:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:07:44]wFMCommunicate OK [20:07:44]requested_item fd.num is exist - process it [20:07:44]SAM_PROTO_GetFieldsCounters [20:07:44]wFMCommunicate request_size=4 [20:07:44]MH_SAM_APDU [20:07:44]CAPDU: 80 13 00 00 [20:07:44]Write to MH i2c: E2 08 00 A8 7A 80 13 00 00 00 00 00 00 9E [20:07:44]Write i2c OK [20:07:44]MH_I2C_Read... [20:07:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:44]Read from MH i2c: E2 [20:07:44]MH_I2C_Read... [20:07:44]Read from MH i2c: E2 62 00 [20:07:44]MH_I2C_Read... [20:07:44]Read from MH i2c: E2 62 00 A8 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 74 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [20:07: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 74 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:07:44]wFMCommunicate OK [20:07:44]SAM_PROTO_GetFieldsCounters done [20:07:44]requested_item shift.num is exist - process it [20:07:44]requested_item shift.opened is exist - process it [20:07:44]req_shift_opened [20:07:44]FM_GetShiftState [20:07:44]SAM_PROTO_GetShiftState [20:07:44]wFMCommunicate request_size=4 [20:07:44]MH_SAM_APDU [20:07:44]CAPDU: 80 13 01 00 [20:07:44]Write to MH i2c: E2 08 00 A9 7A 80 13 01 00 00 00 00 00 A0 [20:07:44]Write i2c OK [20:07:44]MH_I2C_Read... [20:07:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:44]Read from MH i2c: E2 [20:07:44]MH_I2C_Read... [20:07:44]Read from MH i2c: E2 0E 00 [20:07:44]MH_I2C_Read... [20:07:44]Read from MH i2c: E2 0E 00 A9 7A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 CE [20:07:44]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:07:44]wFMCommunicate OK [20:07:44]SAM_PROTO_GetShiftState done [20:07:44]FM_GetShiftState done [20:07:44]req_shift_opened done [20:07:44]requested_item shift.open_date is exist - process it [20:07:44]req_shift_open_date [20:07:44]req_shift_open_date done [20:07:44]produce_requested_data done [20:07:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118900,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [20:07:44]process_action_free close_receipt [20:07:44]json_value_free [20:07:44]json_value_free done [20:07:44]process_json_proto returns [20:07:44]Send response to host [20:07:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118900,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [20:07:44]free response buf [20:07:44]execute_script done [20:07:44]execute_script returns [20:07:44]free content buf [20:07:44]Sock 9.Close socket [20:07:44]Sock 9.Thread stoped [20:07:45]accept exits with 7 [20:07:45]New connection [20:07:45]New thread 3067239780 created [20:07:45]Thread 3067383140 joined [20:07:45]Waiting for new connection... [20:07:45] Sock 7.Parse request [20:07:45]Sock 7.Check first char [20:07:45]Sock 7.First char is OK [20:07:45]request: POST /json_proto HTTP/1.0 [20:07:45]Method: POST [20:07:45]URL: /json_proto [20:07:45]Method is POST - this is cgi request [20:07:45]url: /json_proto [20:07:45]query_string will be loaded in cgi processing [20:07:45]execute_cgi json_proto POST (null) [20:07:45]execute_cgi path=json_proto method=POST [20:07:45]POST find Content-Length [20:07:45]Host: 172.17.45.7:8080 [20:07:45]Content-Length: 682 [20:07:45]Content-Type: application/json [20:07:45] [20:07:45]POST finish read [20:07:45]Found Content-Length = 682 [20:07:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:45]execute_script... [20:07:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:45]POST & json_proto [20:07:45]process_json_proto [20:07:45]json parsed OK: [20:07:45]protocol is kg_v1.0 [20:07:45]action value=close_receipt [20:07:45]process_action close_receipt [20:07:45]cmd_close_receipt [20:07:45]MH_GetDate [20:07:45]Write to MH i2c: F0 00 00 AA 7A 13 [20:07:45]Write i2c OK [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: F0 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: F0 09 00 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: F0 09 00 AA 7A 00 98 F6 A7 66 90 0F 3E 66 FA [20:07:45]GetLastDocTimeStamp 1722283667 [20:07:45]current date 1722283672 [20:07:45]FM_GetShiftState [20:07:45]SAM_PROTO_GetShiftState [20:07:45]wFMCommunicate request_size=4 [20:07:45]MH_SAM_APDU [20:07:45]CAPDU: 80 13 01 00 [20:07:45]Write to MH i2c: E2 08 00 AB 7A 80 13 01 00 00 00 00 00 A2 [20:07:45]Write i2c OK [20:07:45]MH_I2C_Read... [20:07:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:45]Read from MH i2c: E2 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 0E 00 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 0E 00 AB 7A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D0 [20:07:45]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:07:45]wFMCommunicate OK [20:07:45]SAM_PROTO_GetShiftState done [20:07:45]FM_GetShiftState done [20:07:45]opened in 1722211641 [20:07:45]opened+sec_in_day 1722298041 [20:07:45]quantity*price = 100021 [20:07:45]sum+1 = 100023 [20:07:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 277 29.07.2024 20:07 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118901 ФПД: 43300011035945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T200752&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118901&fm=43300011035945&tin=02508201610067®Number=0000000000092660&sum=100000 [20:07:46]StoreToDocumentArchive [20:07:46]shift 434 fd 118901 [20:07:46]save to /storage/0434/doc_00118901 [20:07:46]save last doc name /storage/0434/doc_00118901 to /storage/kkm_last_doc_name [20:07:46]save OK [20:07:46]Clear old archive folders... [20:07:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:07:46]tlvbuf is 0201E720 [20:07:46]SAM_PROTO_ClearQueue [20:07:46]wFMCommunicate request_size=4 [20:07:46]MH_SAM_APDU [20:07:46]CAPDU: 80 09 00 00 [20:07:46]Write to MH i2c: E2 08 00 B8 7A 80 09 00 00 00 00 00 00 A4 [20:07:46]Write i2c OK [20:07:46]MH_I2C_Read... [20:07:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:46]Read from MH i2c: E2 [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: E2 03 00 [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: E2 03 00 B8 7A 00 90 00 A6 [20:07:46]RAPDU: 90 00 [20:07:46]wFMCommunicate OK [20:07:46]SAM_PROTO_ClearQueue done [20:07:46]KKMCreateOFDPacket [20:07:46]OFDProtocolAddRootSTLVToBuf [20:07:46]FM_MakeSignedData [20:07:46]FM_MakeSignedData [20:07:46]SAM_PROTO_SignData [20:07:46]wFMCommunicate request_size=4 [20:07:46]MH_SAM_APDU [20:07:46]CAPDU: 80 0D 01 02 [20:07:46]Write to MH i2c: E2 08 00 B9 7A 80 0D 01 02 00 00 00 00 AC [20:07:46]Write i2c OK [20:07:46]MH_I2C_Read... [20:07:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:46]Read from MH i2c: E2 [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: E2 03 00 [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: E2 03 00 B9 7A 00 90 00 A7 [20:07:46]RAPDU: 90 00 [20:07:46]wFMCommunicate OK [20:07:46]wFMCommunicate request_size=255 [20:07:46]MH_SAM_APDU [20:07:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 98 F6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 D0 01 00 35 04 06 00 27 [20:07:46]Write to MH i2c: E2 02 01 BA 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 98 F6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 D0 01 00 35 04 06 00 27 00 00 2D [20:07:46]Write i2c OK [20:07:46]MH_I2C_Read... [20:07:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:47]Read from MH i2c: E2 [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: E2 03 00 [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: E2 03 00 BA 7A 00 90 00 A8 [20:07:47]RAPDU: 90 00 [20:07:47]wFMCommunicate OK [20:07:47]wFMCommunicate request_size=10 [20:07:47]MH_SAM_APDU [20:07:47]CAPDU: 80 0D 02 02 05 61 91 C6 CD 29 [20:07:47]Write to MH i2c: E2 0D 00 BB 7A 80 0D 02 02 05 00 61 91 C6 CD 29 00 00 67 [20:07:47]Write i2c OK [20:07:47]MH_I2C_Read... [20:07:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:47]Read from MH i2c: E2 [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: E2 03 00 [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: E2 03 00 BB 7A 00 90 00 A9 [20:07:47]RAPDU: 90 00 [20:07:47]wFMCommunicate OK [20:07:47]wFMCommunicate request_size=4 [20:07:47]MH_SAM_APDU [20:07:47]CAPDU: 80 0D 03 02 [20:07:47]Write to MH i2c: E2 08 00 BC 7A 80 0D 03 02 00 00 00 00 B1 [20:07:47]Write i2c OK [20:07:47]MH_I2C_Read... [20:07:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:47]Read from MH i2c: E2 [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: E2 0B 00 [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: E2 0B 00 BC 7A 00 84 8C D6 67 94 C8 4F 88 90 00 32 [20:07:47]RAPDU: 84 8C D6 67 94 C8 4F 88 90 00 [20:07:47]wFMCommunicate OK [20:07:47]SAM_PROTO_SignData done [20:07:47]FM_MakeSignedData done [20:07:47]CreateOFDProtocolMessage [20:07:47]wFMCommunicate request_size=4 [20:07:47]MH_SAM_APDU [20:07:47]CAPDU: 80 11 00 00 [20:07:47]Write to MH i2c: E2 08 00 BD 7A 80 11 00 00 00 00 00 00 B1 [20:07:47]Write i2c OK [20:07:47]MH_I2C_Read... [20:07:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:47]Read from MH i2c: E2 [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: E2 17 00 [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: E2 17 00 BD 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0C [20:07:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:07:47]wFMCommunicate OK [20:07:47]CreateOFDProtocolMessage done [20:07:47]OFDSenderStorePacket 118901 [20:07:47]StoreOFDPacket docnum=118901 [20:07:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 80 22 07 01 89 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 98 F6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 D0 01 00 35 04 06 00 27 61 91 C6 CD 29 84 8C D6 67 94 C8 4F 88 [20:07:47]CheckFolder [20:07:47]dirname=/storage/ofd_packets [20:07:47]CheckFolder done [20:07:47]ProducePacketName [20:07:47]name=ofd_packets/00118901 [20:07:47]NVStorageSaveData ofd_packets/00118901 [20:07:47]File name is /storage/ofd_packets/00118901 [20:07:47]Write 301 bytes [20:07:47]NVStorageSaveData done [20:07:47]OFDSenderStorePacket done [20:07:47]KKMCreateOFDPacket done [20:07:47]NVStorageSaveData kkm_last_timestamp [20:07:47]File name is /storage/kkm_last_timestamp [20:07:47]Write 4 bytes [20:07:47]NVStorageSaveData done [20:07:47]ExternCall_PrintAddStr [20:07:47]wPrintStart [20:07:47]Write to MH i2c: 01 00 00 BE 7A 38 [20:07:47]Write i2c OK [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: 01 [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: 01 07 00 [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: 01 07 00 BE 7A 00 00 00 00 00 FF 0F 4D [20:07:47]RasterBufferAndPrint [20:07:47]line Счет N : (1)949793 [20:07:47]line ИНН: 02508201610067 [20:07:47]line Контрольно-Кассовый Чек [20:07:47]line ПРОДАЖА [20:07:47]line ТРК (МРК, ГНК) : 43 [20:07:47]line Товар: 2710124500 [20:07:47]line Аи-95-К-3 [20:07:47]line 13.480 * 74.20 [20:07:47]line = 1000.22 [20:07:47]line НДС 12% НСП 1% [20:07:47]line > о реализуемом товаре [20:07:47]line ОКРУГЛЕНИЕ: -0.22 [20:07:47]line ИТОГО: 1000.00 [20:07:47]line Внесено: 1000.00 [20:07:47]line СДАЧА: 0.00 [20:07:47]line НСП 1% : 8.85 [20:07:47]line НДС 12% : 106.22 [20:07:47]line Наличными: 1000.00 [20:07:47]line Безнал.: 0.00 [20:07:47]line Место: АЗС № 134 "Партнер Нефть" [20:07:47]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:07:47]line СНО: Общий режим [20:07:47]line Чек 277 29.07.2024 20:07 [20:07:47]line Смена: 434 ФФД: 1.0 [20:07:47]line ЗНМ: 0300000044 [20:07:47]line РНМ: 0000000000092660 [20:07:47]line Версия ККМ: 001 [20:07:47]line ФМ: 0000000000874939 [20:07:47]line ФД: 118901 [20:07:47]line ФПД: 43300011035945 [20:07:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T200752&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118901&fm=43300011035945&tin=02508201610067®Number=0000000000092660&sum=100000 [20:07:47]written 0, free lines is 4095 [20:07:47]OFD Sender: Processing packet 118901 [packets to send 86, broken 85] [20:07:47]ProducePacketName [20:07:47]name=ofd_packets/00118901 [20:07:47]OFD Sender: To server: pG, [20:07:47]CommunicateWithHost lk.salyk.kg:30040 [20:07:47]ConnectInit lk.salyk.kg [20:07:47]Connected sock=10 [20:07:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 80 22 07 01 89 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 98 F6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 D0 01 00 35 04 06 00 27 61 91 C6 CD 29 84 8C D6 67 94 C8 4F 88 [20:07:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D5 C6 47 00 C8 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 D0 01 00 F4 03 04 00 25 A4 A7 66 B6 04 01 00 00 93 0B 1F D5 84 AF BC 40 [20:07:47]CommunicateWithHost err = 0 [20:07:47]CheckOFDResponse [20:07:47]1017 (14) - 77093643461234 [20:07:47]1041 (16) - 0000000000874939 [20:07:47]1040 (4) - 118901 [20:07:47]1012 (4) - 29.07.2024 14:16 [20:07:47]1206 (1) - 0 [20:07:47]OFD Sender: Remove packet 118901 [20:07:47]ProducePacketName [20:07:47]name=ofd_packets/00118901 [20:07:47]NVStorageDeleteData [20:07:47]Write to MH i2c: 01 00 00 E8 7A 62 [20:07:47]Write i2c OK [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: 01 [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: 01 07 00 [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: 01 07 00 E8 7A 00 00 00 00 00 E2 0C 57 [20:07:47]RasterBufferAndPrint [20:07:47]line [20:07:47]line [20:07:47]line [20:07:47]line [20:07:47]line [20:07:47]written 0, free lines is 3313 [20:07:47]MH_Cut [20:07:47]Write to MH i2c: D1 01 00 EF 7A 01 3B [20:07:47]Write i2c OK [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: D1 [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: D1 01 00 [20:07:47]MH_I2C_Read... [20:07:47]Read from MH i2c: D1 01 00 EF 7A 00 3A [20:07:47]Write to MH i2c: 01 00 00 F0 7A 6A [20:07:48]Write i2c OK [20:07:48]MH_I2C_Read... [20:07:48]OFD Sender: No OFD packet to send [20:07:48]*** Cut start [20:07:48]*** Partial cut [20:07:48]*** CUTSNS_PIN = 1 [20:07:48]*** CUTSNS_PIN = 0 [20:07:48]*** Brake cut motor [20:07:49]Read from MH i2c: 01 [20:07:49]MH_I2C_Read... [20:07:49]*** Stop cut motor [20:07:49]*** Cut end [20:07:49]Read from MH i2c: 01 07 00 [20:07:49]MH_I2C_Read... [20:07:49]Read from MH i2c: 01 07 00 F0 7A 00 00 00 00 00 FF 0F 7F [20:07:49]process_action close_receipt done [20:07:49]requested_data is exist [20:07:49]produce_requested_data [20:07:49]requested_item fm.sn is exist - process it [20:07:49]wFMCommunicate request_size=4 [20:07:49]MH_SAM_APDU [20:07:49]CAPDU: 80 11 00 00 [20:07:49]Write to MH i2c: E2 08 00 F1 7A 80 11 00 00 00 00 00 00 E5 [20:07:49]Write i2c OK [20:07:49]MH_I2C_Read... [20:07:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:49]Read from MH i2c: E2 [20:07:49]MH_I2C_Read... [20:07:49]Read from MH i2c: E2 17 00 [20:07:49]MH_I2C_Read... [20:07:49]Read from MH i2c: E2 17 00 F1 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 40 [20:07:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:07:49]wFMCommunicate OK [20:07:49]requested_item fd.num is exist - process it [20:07:49]SAM_PROTO_GetFieldsCounters [20:07:49]wFMCommunicate request_size=4 [20:07:49]MH_SAM_APDU [20:07:49]CAPDU: 80 13 00 00 [20:07:49]Write to MH i2c: E2 08 00 F2 7A 80 13 00 00 00 00 00 00 E8 [20:07:49]Write i2c OK [20:07:49]MH_I2C_Read... [20:07:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:49]Read from MH i2c: E2 [20:07:49]MH_I2C_Read... [20:07:49]Read from MH i2c: E2 62 00 [20:07:49]MH_I2C_Read... [20:07:49]Read from MH i2c: E2 62 00 F2 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 75 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 4A [20:07: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 75 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:07:49]wFMCommunicate OK [20:07:49]SAM_PROTO_GetFieldsCounters done [20:07:49]requested_item shift.num is exist - process it [20:07:49]requested_item shift.opened is exist - process it [20:07:49]req_shift_opened [20:07:49]FM_GetShiftState [20:07:49]SAM_PROTO_GetShiftState [20:07:49]wFMCommunicate request_size=4 [20:07:49]MH_SAM_APDU [20:07:49]CAPDU: 80 13 01 00 [20:07:49]Write to MH i2c: E2 08 00 F3 7A 80 13 01 00 00 00 00 00 EA [20:07:49]Write i2c OK [20:07:49]MH_I2C_Read... [20:07:49]Read from MH i2c: E2 [20:07:49]MH_I2C_Read... [20:07:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:49]Read from MH i2c: E2 0E 00 [20:07:49]MH_I2C_Read... [20:07:49]Read from MH i2c: E2 0E 00 F3 7A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 18 [20:07:49]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:07:49]wFMCommunicate OK [20:07:49]SAM_PROTO_GetShiftState done [20:07:49]FM_GetShiftState done [20:07:49]req_shift_opened done [20:07:49]requested_item shift.open_date is exist - process it [20:07:49]req_shift_open_date [20:07:49]req_shift_open_date done [20:07:49]produce_requested_data done [20:07:49]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118901,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [20:07:49]process_action_free close_receipt [20:07:49]json_value_free [20:07:49]json_value_free done [20:07:49]process_json_proto returns [20:07:49]Send response to host [20:07:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118901,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [20:07:49]free response buf [20:07:49]execute_script done [20:07:49]execute_script returns [20:07:49]free content buf [20:07:49]Sock 7.Close socket [20:07:49]Sock 7.Thread stoped [20:07:53]OFD Sender: No OFD packet to send [20:07:58]OFD Sender: No OFD packet to send [20:08:03]OFD Sender: No OFD packet to send [20:08:08]OFD Sender: No OFD packet to send [20:08:13]OFD Sender: No OFD packet to send [20:08:18]OFD Sender: No OFD packet to send [20:08:23]OFD Sender: No OFD packet to send [20:08:28]OFD Sender: No OFD packet to send [20:08:33]OFD Sender: No OFD packet to send [20:08:38]OFD Sender: No OFD packet to send [20:08:43]OFD Sender: No OFD packet to send [20:08:48]OFD Sender: No OFD packet to send [20:08:53]OFD Sender: No OFD packet to send [20:08:58]OFD Sender: No OFD packet to send [20:09:03]OFD Sender: No OFD packet to send [20:09:08]OFD Sender: No OFD packet to send [20:09:13]OFD Sender: No OFD packet to send [20:09:18]OFD Sender: No OFD packet to send [20:09:23]OFD Sender: No OFD packet to send [20:09:28]OFD Sender: No OFD packet to send [20:09:33]OFD Sender: No OFD packet to send [20:09:38]OFD Sender: No OFD packet to send [20:09:43]OFD Sender: No OFD packet to send [20:09:48]OFD Sender: No OFD packet to send [20:09:53]OFD Sender: No OFD packet to send [20:09:58]OFD Sender: No OFD packet to send [20:10:03]OFD Sender: No OFD packet to send [20:10:08]OFD Sender: No OFD packet to send [20:10:13]OFD Sender: No OFD packet to send [20:10:18]OFD Sender: No OFD packet to send [20:10:23]OFD Sender: No OFD packet to send [20:10:28]OFD Sender: No OFD packet to send [20:10:33]OFD Sender: No OFD packet to send [20:10:38]OFD Sender: No OFD packet to send [20:10:43]OFD Sender: No OFD packet to send [20:10:48]OFD Sender: No OFD packet to send [20:10:53]OFD Sender: No OFD packet to send [20:10:58]OFD Sender: No OFD packet to send [20:11:03]OFD Sender: No OFD packet to send [20:11:08]OFD Sender: No OFD packet to send [20:11:13]OFD Sender: No OFD packet to send [20:11:18]OFD Sender: No OFD packet to send [20:11:23]OFD Sender: No OFD packet to send [20:11:28]OFD Sender: No OFD packet to send [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:48]OFD Sender: No OFD packet to send [20:11:53]OFD Sender: No OFD packet to send [20:11:58]OFD Sender: No OFD packet to send [20:12:03]OFD Sender: No OFD packet to send [20:12:08]OFD Sender: No OFD packet to send [20:12:13]OFD Sender: No OFD packet to send [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:28]OFD Sender: No OFD packet to send [20:12:33]OFD Sender: No OFD packet to send [20:12:38]OFD Sender: No OFD packet to send [20:12:43]OFD Sender: No OFD packet to send [20:12:48]OFD Sender: No OFD packet to send [20:12:53]OFD Sender: No OFD packet to send [20:12:58]OFD Sender: No OFD packet to send [20:13:03]OFD Sender: No OFD packet to send [20:13:08]OFD Sender: No OFD packet to send [20:13:13]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:23]OFD Sender: No OFD packet to send [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:57]accept exits with 9 [20:23:57]New connection [20:23:57]New thread 3067383140 created [20:23:57]Thread 3067239780 joined [20:23:57]Waiting for new connection... [20:23:57] Sock 9.Parse request [20:23:57]Sock 9.Check first char [20:23:57]Sock 9.First char is OK [20:23:57]request: POST /json_proto HTTP/1.0 [20:23:57]Method: POST [20:23:57]URL: /json_proto [20:23:57]Method is POST - this is cgi request [20:23:57]url: /json_proto [20:23:57]query_string will be loaded in cgi processing [20:23:57]execute_cgi json_proto POST (null) [20:23:57]execute_cgi path=json_proto method=POST [20:23:57]POST find Content-Length [20:23:57]Host: 172.17.45.7:8080 [20:23:57]Content-Length: 674 [20:23:57]Content-Type: application/json [20:23:57] [20:23:57]POST finish read [20:23:57]Found Content-Length = 674 [20:23:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:57]execute_script... [20:23:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:57]POST & json_proto [20:23:57]process_json_proto [20:23:57]json parsed OK: [20:23:57]protocol is kg_v1.0 [20:23:57]action value=close_receipt [20:23:57]process_action close_receipt [20:23:57]cmd_close_receipt [20:23:57]MH_GetDate [20:23:57]Write to MH i2c: F0 00 00 F4 7A 5D [20:23:57]Write i2c OK [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: F0 [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: F0 09 00 [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: F0 09 00 F4 7A 00 64 FA A7 66 90 0F 3E 66 14 [20:23:57]GetLastDocTimeStamp 1722283672 [20:23:57]current date 1722284644 [20:23:57]FM_GetShiftState [20:23:57]SAM_PROTO_GetShiftState [20:23:57]wFMCommunicate request_size=4 [20:23:57]MH_SAM_APDU [20:23:57]CAPDU: 80 13 01 00 [20:23:57]Write to MH i2c: E2 08 00 F5 7A 80 13 01 00 00 00 00 00 EC [20:23:57]Write i2c OK [20:23:57]MH_I2C_Read... [20:23:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:57]Read from MH i2c: E2 [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: E2 0E 00 [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: E2 0E 00 F5 7A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 1A [20:23:57]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:23:57]wFMCommunicate OK [20:23:57]SAM_PROTO_GetShiftState done [20:23:57]FM_GetShiftState done [20:23:57]opened in 1722211641 [20:23:57]opened+sec_in_day 1722298041 [20:23:57]quantity*price = 20040 [20:23:57]sum+1 = 20042 [20:23:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 278 29.07.2024 20:24 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118902 ФПД: 78292848210583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T202404&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118902&fm=78292848210583&tin=02508201610067®Number=0000000000092660&sum=20000 [20:23:58]StoreToDocumentArchive [20:23:58]shift 434 fd 118902 [20:23:58]save to /storage/0434/doc_00118902 [20:23:58]save last doc name /storage/0434/doc_00118902 to /storage/kkm_last_doc_name [20:23:58]save OK [20:23:58]Clear old archive folders... [20:23:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:23:58]tlvbuf is 020D8C20 [20:23:58]SAM_PROTO_ClearQueue [20:23:58]wFMCommunicate request_size=4 [20:23:58]MH_SAM_APDU [20:23:58]CAPDU: 80 09 00 00 [20:23:58]Write to MH i2c: E2 08 00 02 7B 80 09 00 00 00 00 00 00 EF [20:23:58]Write i2c OK [20:23:58]MH_I2C_Read... [20:23:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:58]Read from MH i2c: E2 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: E2 03 00 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: E2 03 00 02 7B 00 90 00 F1 [20:23:58]RAPDU: 90 00 [20:23:58]wFMCommunicate OK [20:23:58]SAM_PROTO_ClearQueue done [20:23:58]KKMCreateOFDPacket [20:23:58]OFDProtocolAddRootSTLVToBuf [20:23:58]FM_MakeSignedData [20:23:58]FM_MakeSignedData [20:23:58]SAM_PROTO_SignData [20:23:58]wFMCommunicate request_size=4 [20:23:58]MH_SAM_APDU [20:23:58]CAPDU: 80 0D 01 02 [20:23:58]Write to MH i2c: E2 08 00 03 7B 80 0D 01 02 00 00 00 00 F7 [20:23:58]Write i2c OK [20:23:58]MH_I2C_Read... [20:23:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:58]Read from MH i2c: E2 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: E2 03 00 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: E2 03 00 03 7B 00 90 00 F2 [20:23:58]RAPDU: 90 00 [20:23:58]wFMCommunicate OK [20:23:58]wFMCommunicate request_size=255 [20:23:58]MH_SAM_APDU [20:23:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 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 16 01 00 00 F4 03 04 00 64 FA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 D0 01 00 35 04 06 00 47 34 F9 67 [20:23:58]Write to MH i2c: E2 02 01 04 7B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 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 16 01 00 00 F4 03 04 00 64 FA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 D0 01 00 35 04 06 00 47 34 F9 67 00 00 63 [20:23:58]Write i2c OK [20:23:58]MH_I2C_Read... [20:23:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:59]Read from MH i2c: E2 [20:23:59]MH_I2C_Read... [20:23:59]Read from MH i2c: E2 03 00 [20:23:59]MH_I2C_Read... [20:23:59]Read from MH i2c: E2 03 00 04 7B 00 90 00 F3 [20:23:59]RAPDU: 90 00 [20:23:59]wFMCommunicate OK [20:23:59]wFMCommunicate request_size=7 [20:23:59]MH_SAM_APDU [20:23:59]CAPDU: 80 0D 02 02 02 F2 97 [20:23:59]Write to MH i2c: E2 0A 00 05 7B 80 0D 02 02 02 00 F2 97 00 00 87 [20:23:59]Write i2c OK [20:23:59]MH_I2C_Read... [20:23:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:59]Read from MH i2c: E2 [20:23:59]MH_I2C_Read... [20:23:59]Read from MH i2c: E2 03 00 [20:23:59]MH_I2C_Read... [20:23:59]Read from MH i2c: E2 03 00 05 7B 00 90 00 F4 [20:23:59]RAPDU: 90 00 [20:23:59]wFMCommunicate OK [20:23:59]wFMCommunicate request_size=4 [20:23:59]MH_SAM_APDU [20:23:59]CAPDU: 80 0D 03 02 [20:23:59]Write to MH i2c: E2 08 00 06 7B 80 0D 03 02 00 00 00 00 FC [20:23:59]Write i2c OK [20:23:59]MH_I2C_Read... [20:23:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:59]Read from MH i2c: E2 [20:23:59]MH_I2C_Read... [20:23:59]Read from MH i2c: E2 0B 00 [20:23:59]MH_I2C_Read... [20:23:59]Read from MH i2c: E2 0B 00 06 7B 00 69 89 B1 7F 57 26 4F F5 90 00 E0 [20:23:59]RAPDU: 69 89 B1 7F 57 26 4F F5 90 00 [20:23:59]wFMCommunicate OK [20:23:59]SAM_PROTO_SignData done [20:23:59]FM_MakeSignedData done [20:23:59]CreateOFDProtocolMessage [20:23:59]wFMCommunicate request_size=4 [20:23:59]MH_SAM_APDU [20:23:59]CAPDU: 80 11 00 00 [20:23:59]Write to MH i2c: E2 08 00 07 7B 80 11 00 00 00 00 00 00 FC [20:23:59]Write i2c OK [20:23:59]MH_I2C_Read... [20:23:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:59]Read from MH i2c: E2 [20:23:59]MH_I2C_Read... [20:23:59]Read from MH i2c: E2 17 00 [20:23:59]MH_I2C_Read... [20:23:59]Read from MH i2c: E2 17 00 07 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 57 [20:23:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:23:59]wFMCommunicate OK [20:23:59]CreateOFDProtocolMessage done [20:23:59]OFDSenderStorePacket 118902 [20:23:59]StoreOFDPacket docnum=118902 [20:23:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 1C F0 04 01 4D 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 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 16 01 00 00 F4 03 04 00 64 FA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 D0 01 00 35 04 06 00 47 34 F9 67 F2 97 69 89 B1 7F 57 26 4F F5 [20:23:59]CheckFolder [20:23:59]dirname=/storage/ofd_packets [20:23:59]CheckFolder done [20:23:59]ProducePacketName [20:23:59]name=ofd_packets/00118902 [20:23:59]NVStorageSaveData ofd_packets/00118902 [20:23:59]File name is /storage/ofd_packets/00118902 [20:23:59]Write 298 bytes [20:23:59]NVStorageSaveData done [20:23:59]OFDSenderStorePacket done [20:23:59]KKMCreateOFDPacket done [20:23:59]NVStorageSaveData kkm_last_timestamp [20:23:59]File name is /storage/kkm_last_timestamp [20:23:59]Write 4 bytes [20:23:59]NVStorageSaveData done [20:23:59]ExternCall_PrintAddStr [20:23:59]wPrintStart [20:23:59]Write to MH i2c: 01 00 00 08 7B 83 [20:23:59]Write i2c OK [20:23:59]MH_I2C_Read... [20:23:59]Read from MH i2c: 01 [20:23:59]MH_I2C_Read... [20:23:59]Read from MH i2c: 01 07 00 [20:23:59]MH_I2C_Read... [20:23:59]Read from MH i2c: 01 07 00 08 7B 00 00 00 00 00 FF 0F 98 [20:23:59]RasterBufferAndPrint [20:23:59]line Счет N : (1)949794 [20:23:59]line ИНН: 02508201610067 [20:23:59]line Контрольно-Кассовый Чек [20:23:59]line ПРОДАЖА [20:23:59]line ТРК (МРК, ГНК) : 21 [20:23:59]line Товар: 2710194800 [20:23:59]line ДТ-К-5 [20:23:59]line 2.630 * 76.20 [20:23:59]line = 200.41 [20:23:59]line НДС 12% НСП 1% [20:23:59]line > о реализуемом товаре [20:23:59]line ОКРУГЛЕНИЕ: -0.41 [20:23:59]line ИТОГО: 200.00 [20:23:59]line Внесено: 200.00 [20:23:59]line СДАЧА: 0.00 [20:23:59]line НСП 1% : 1.77 [20:23:59]line НДС 12% : 21.28 [20:23:59]line Наличными: 200.00 [20:23:59]line Безнал.: 0.00 [20:23:59]line Место: АЗС № 134 "Партнер Нефть" [20:23:59]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:23:59]line СНО: Общий режим [20:23:59]line Чек 278 29.07.2024 20:24 [20:23:59]line Смена: 434 ФФД: 1.0 [20:23:59]line ЗНМ: 0300000044 [20:23:59]line РНМ: 0000000000092660 [20:23:59]line Версия ККМ: 001 [20:23:59]line ФМ: 0000000000874939 [20:23:59]line ФД: 118902 [20:23:59]line ФПД: 78292848210583 [20:23:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T202404&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118902&fm=78292848210583&tin=02508201610067®Number=0000000000092660&sum=20000 [20:23:59]OFD Sender: Processing packet 118902 [packets to send 86, broken 85] [20:23:59]ProducePacketName [20:23:59]name=ofd_packets/00118902 [20:23:59]OFD Sender: To server: pG, [20:23:59]CommunicateWithHost lk.salyk.kg:30040 [20:23:59]ConnectInit lk.salyk.kg [20:23:59]written 0, free lines is 4095 [20:23:59]Connected sock=10 [20:23:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 1C F0 04 01 4D 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 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 16 01 00 00 F4 03 04 00 64 FA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 D0 01 00 35 04 06 00 47 34 F9 67 F2 97 69 89 B1 7F 57 26 4F F5 [20:23:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1E C7 47 00 3F 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 34 39 33 39 10 04 04 00 76 D0 01 00 F4 03 04 00 F1 A7 A7 66 B6 04 01 00 00 D2 CE F6 3D 31 E8 C1 EF [20:23:59]CommunicateWithHost err = 0 [20:23:59]CheckOFDResponse [20:23:59]1017 (14) - 77093643461234 [20:23:59]1041 (16) - 0000000000874939 [20:23:59]1040 (4) - 118902 [20:23:59]1012 (4) - 29.07.2024 14:32 [20:23:59]1206 (1) - 0 [20:23:59]OFD Sender: Remove packet 118902 [20:23:59]ProducePacketName [20:23:59]name=ofd_packets/00118902 [20:23:59]NVStorageDeleteData [20:24:00]Write to MH i2c: 01 00 00 32 7B AD [20:24:00]Write i2c OK [20:24:00]MH_I2C_Read... [20:24:00]Read from MH i2c: 01 [20:24:00]MH_I2C_Read... [20:24:00]Read from MH i2c: 01 07 00 [20:24:00]MH_I2C_Read... [20:24:00]Read from MH i2c: 01 07 00 32 7B 00 00 00 00 00 E4 0C A4 [20:24:00]RasterBufferAndPrint [20:24:00]line [20:24:00]line [20:24:00]line [20:24:00]line [20:24:00]line [20:24:00]written 0, free lines is 3306 [20:24:00]MH_Cut [20:24:00]Write to MH i2c: D1 01 00 39 7B 01 86 [20:24:00]Write i2c OK [20:24:00]MH_I2C_Read... [20:24:00]Read from MH i2c: D1 [20:24:00]MH_I2C_Read... [20:24:00]Read from MH i2c: D1 01 00 [20:24:00]MH_I2C_Read... [20:24:00]Read from MH i2c: D1 01 00 39 7B 00 85 [20:24:00]Write to MH i2c: 01 00 00 3A 7B B5 [20:24:00]Write i2c OK [20:24:00]MH_I2C_Read... [20:24:00]OFD Sender: No OFD packet to send [20:24:00]*** Cut start [20:24:00]*** Partial cut [20:24:00]*** CUTSNS_PIN = 1 [20:24:00]*** CUTSNS_PIN = 0 [20:24:01]*** Brake cut motor [20:24:01]Read from MH i2c: 01 [20:24:01]MH_I2C_Read... [20:24:01]*** Stop cut motor [20:24:01]*** Cut end [20:24:01]Read from MH i2c: 01 07 00 [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: 01 07 00 3A 7B 00 00 00 00 00 FF 0F CA [20:24:01]process_action close_receipt done [20:24:01]requested_data is exist [20:24:01]produce_requested_data [20:24:01]requested_item fm.sn is exist - process it [20:24:01]wFMCommunicate request_size=4 [20:24:01]MH_SAM_APDU [20:24:01]CAPDU: 80 11 00 00 [20:24:01]Write to MH i2c: E2 08 00 3B 7B 80 11 00 00 00 00 00 00 30 [20:24:01]Write i2c OK [20:24:01]MH_I2C_Read... [20:24:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:01]Read from MH i2c: E2 [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: E2 17 00 [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: E2 17 00 3B 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8B [20:24:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:24:01]wFMCommunicate OK [20:24:01]requested_item fd.num is exist - process it [20:24:01]SAM_PROTO_GetFieldsCounters [20:24:01]wFMCommunicate request_size=4 [20:24:01]MH_SAM_APDU [20:24:01]CAPDU: 80 13 00 00 [20:24:01]Write to MH i2c: E2 08 00 3C 7B 80 13 00 00 00 00 00 00 33 [20:24:01]Write i2c OK [20:24:01]MH_I2C_Read... [20:24:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:24:01]Read from MH i2c: E2 [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: E2 62 00 [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: E2 62 00 3C 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 76 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [20:24: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 76 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:24:01]wFMCommunicate OK [20:24:01]SAM_PROTO_GetFieldsCounters done [20:24:01]requested_item shift.num is exist - process it [20:24:01]requested_item shift.opened is exist - process it [20:24:01]req_shift_opened [20:24:01]FM_GetShiftState [20:24:01]SAM_PROTO_GetShiftState [20:24:01]wFMCommunicate request_size=4 [20:24:01]MH_SAM_APDU [20:24:01]CAPDU: 80 13 01 00 [20:24:01]Write to MH i2c: E2 08 00 3D 7B 80 13 01 00 00 00 00 00 35 [20:24:01]Write i2c OK [20:24:01]MH_I2C_Read... [20:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:01]Read from MH i2c: E2 [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: E2 0E 00 [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: E2 0E 00 3D 7B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 63 [20:24:01]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:24:01]wFMCommunicate OK [20:24:01]SAM_PROTO_GetShiftState done [20:24:01]FM_GetShiftState done [20:24:01]req_shift_opened done [20:24:01]requested_item shift.open_date is exist - process it [20:24:01]req_shift_open_date [20:24:01]req_shift_open_date done [20:24:01]produce_requested_data done [20:24:01]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118902,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [20:24:01]process_action_free close_receipt [20:24:01]json_value_free [20:24:01]json_value_free done [20:24:01]process_json_proto returns [20:24:01]Send response to host [20:24:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118902,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [20:24:01]free response buf [20:24:01]execute_script done [20:24:01]execute_script returns [20:24:01]free content buf [20:24:01]Sock 9.Close socket [20:24:01]Sock 9.Thread stoped [20:24:05]OFD Sender: No OFD packet to send [20:24:10]OFD Sender: No OFD packet to send [20:24:15]OFD Sender: No OFD packet to send [20:24:20]OFD Sender: No OFD packet to send [20:24:25]OFD Sender: No OFD packet to send [20:24:30]OFD Sender: No OFD packet to send [20:24:35]OFD Sender: No OFD packet to send [20:24:40]OFD Sender: No OFD packet to send [20:24:45]OFD Sender: No OFD packet to send [20:24:50]OFD Sender: No OFD packet to send [20:24:55]OFD Sender: No OFD packet to send [20:25:00]OFD Sender: No OFD packet to send [20:25:05]OFD Sender: No OFD packet to send [20:25:10]OFD Sender: No OFD packet to send [20:25:15]OFD Sender: No OFD packet to send [20:25:20]OFD Sender: No OFD packet to send [20:25:25]OFD Sender: No OFD packet to send [20:25:30]OFD Sender: No OFD packet to send [20:25:35]OFD Sender: No OFD packet to send [20:25:40]OFD Sender: No OFD packet to send [20:25:45]OFD Sender: No OFD packet to send [20:25:50]OFD Sender: No OFD packet to send [20:25:55]OFD Sender: No OFD packet to send [20:26:00]OFD Sender: No OFD packet to send [20:26:05]OFD Sender: No OFD packet to send [20:26:10]OFD Sender: No OFD packet to send [20:26:15]OFD Sender: No OFD packet to send [20:26:20]OFD Sender: No OFD packet to send [20:26:25]OFD Sender: No OFD packet to send [20:26:30]OFD Sender: No OFD packet to send [20:26:35]OFD Sender: No OFD packet to send [20:26:40]OFD Sender: No OFD packet to send [20:26:45]OFD Sender: No OFD packet to send [20:26:50]OFD Sender: No OFD packet to send [20:26:55]OFD Sender: No OFD packet to send [20:27:00]OFD Sender: No OFD packet to send [20:27:05]OFD Sender: No OFD packet to send [20:27:10]OFD Sender: No OFD packet to send [20:27:15]OFD Sender: No OFD packet to send [20:27:20]OFD Sender: No OFD packet to send [20:27:25]OFD Sender: No OFD packet to send [20:27:30]OFD Sender: No OFD packet to send [20:27:35]OFD Sender: No OFD packet to send [20:27:40]OFD Sender: No OFD packet to send [20:27:45]OFD Sender: No OFD packet to send [20:27:50]OFD Sender: No OFD packet to send [20:27:55]OFD Sender: No OFD packet to send [20:28:00]OFD Sender: No OFD packet to send [20:28:05]OFD Sender: No OFD packet to send [20:28:10]OFD Sender: No OFD packet to send [20:28:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:35]OFD Sender: No OFD packet to send [20:28:40]OFD Sender: No OFD packet to send [20:28:45]OFD Sender: No OFD packet to send [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:29:00]OFD Sender: No OFD packet to send [20:29:05]OFD Sender: No OFD packet to send [20:29:10]OFD Sender: No OFD packet to send [20:29:15]OFD Sender: No OFD packet to send [20:29:20]OFD Sender: No OFD packet to send [20:29:25]OFD Sender: No OFD packet to send [20:29:30]OFD Sender: No OFD packet to send [20:29:35]OFD Sender: No OFD packet to send [20:29:40]OFD Sender: No OFD packet to send [20:29:45]OFD Sender: No OFD packet to send [20:29:50]OFD Sender: No OFD packet to send [20:29:52]accept exits with 7 [20:29:52]New connection [20:29:52]New thread 3067239780 created [20:29:52]Thread 3067383140 joined [20:29:52]Waiting for new connection... [20:29:52] Sock 7.Parse request [20:29:52]Sock 7.Check first char [20:29:52]Sock 7.First char is OK [20:29:52]request: POST /json_proto HTTP/1.0 [20:29:52]Method: POST [20:29:52]URL: /json_proto [20:29:52]Method is POST - this is cgi request [20:29:52]url: /json_proto [20:29:52]query_string will be loaded in cgi processing [20:29:52]execute_cgi json_proto POST (null) [20:29:52]execute_cgi path=json_proto method=POST [20:29:52]POST find Content-Length [20:29:52]Host: 172.17.45.7:8080 [20:29:52]Content-Length: 674 [20:29:52]Content-Type: application/json [20:29:52] [20:29:52]POST finish read [20:29:52]Found Content-Length = 674 [20:29:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:52]execute_script... [20:29: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)949795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:52]POST & json_proto [20:29:52]process_json_proto [20:29:52]json parsed OK: [20:29:52]protocol is kg_v1.0 [20:29:52]action value=close_receipt [20:29:52]process_action close_receipt [20:29:52]cmd_close_receipt [20:29:52]MH_GetDate [20:29:52]Write to MH i2c: F0 00 00 3E 7B A8 [20:29:52]Write i2c OK [20:29:52]MH_I2C_Read... [20:29:52]Read from MH i2c: F0 [20:29:52]MH_I2C_Read... [20:29:52]Read from MH i2c: F0 09 00 [20:29:52]MH_I2C_Read... [20:29:52]Read from MH i2c: F0 09 00 3E 7B 00 C7 FB A7 66 90 0F 3E 66 C3 [20:29:52]GetLastDocTimeStamp 1722284644 [20:29:52]current date 1722284999 [20:29:52]FM_GetShiftState [20:29:52]SAM_PROTO_GetShiftState [20:29:52]wFMCommunicate request_size=4 [20:29:52]MH_SAM_APDU [20:29:52]CAPDU: 80 13 01 00 [20:29:52]Write to MH i2c: E2 08 00 3F 7B 80 13 01 00 00 00 00 00 37 [20:29:52]Write i2c OK [20:29:52]MH_I2C_Read... [20:29:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:52]Read from MH i2c: E2 [20:29:52]MH_I2C_Read... [20:29:52]Read from MH i2c: E2 0E 00 [20:29:52]MH_I2C_Read... [20:29:52]Read from MH i2c: E2 0E 00 3F 7B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 65 [20:29:52]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:29:52]wFMCommunicate OK [20:29:52]SAM_PROTO_GetShiftState done [20:29:52]FM_GetShiftState done [20:29:52]opened in 1722211641 [20:29:52]opened+sec_in_day 1722298041 [20:29:52]quantity*price = 70027 [20:29:52]sum+1 = 70029 [20:29:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 279 29.07.2024 20:29 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118903 ФПД: 168210384397007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T202959&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118903&fm=168210384397007&tin=02508201610067®Number=0000000000092660&sum=70000 [20:29:53]StoreToDocumentArchive [20:29:53]shift 434 fd 118903 [20:29:53]save to /storage/0434/doc_00118903 [20:29:53]save last doc name /storage/0434/doc_00118903 to /storage/kkm_last_doc_name [20:29:53]save OK [20:29:53]Clear old archive folders... [20:29:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:29:53]tlvbuf is 02098010 [20:29:53]SAM_PROTO_ClearQueue [20:29:53]wFMCommunicate request_size=4 [20:29:53]MH_SAM_APDU [20:29:53]CAPDU: 80 09 00 00 [20:29:53]Write to MH i2c: E2 08 00 4C 7B 80 09 00 00 00 00 00 00 39 [20:29:53]Write i2c OK [20:29:53]MH_I2C_Read... [20:29:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:29:53]Read from MH i2c: E2 [20:29:53]MH_I2C_Read... [20:29:53]Read from MH i2c: E2 03 00 [20:29:53]MH_I2C_Read... [20:29:53]Read from MH i2c: E2 03 00 4C 7B 00 90 00 3B [20:29:53]RAPDU: 90 00 [20:29:53]wFMCommunicate OK [20:29:53]SAM_PROTO_ClearQueue done [20:29:53]KKMCreateOFDPacket [20:29:53]OFDProtocolAddRootSTLVToBuf [20:29:53]FM_MakeSignedData [20:29:53]FM_MakeSignedData [20:29:53]SAM_PROTO_SignData [20:29:53]wFMCommunicate request_size=4 [20:29:53]MH_SAM_APDU [20:29:53]CAPDU: 80 0D 01 02 [20:29:53]Write to MH i2c: E2 08 00 4D 7B 80 0D 01 02 00 00 00 00 41 [20:29:53]Write i2c OK [20:29:53]MH_I2C_Read... [20:29:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:29:53]Read from MH i2c: E2 [20:29:53]MH_I2C_Read... [20:29:53]Read from MH i2c: E2 03 00 [20:29:53]MH_I2C_Read... [20:29:53]Read from MH i2c: E2 03 00 4D 7B 00 90 00 3C [20:29:53]RAPDU: 90 00 [20:29:53]wFMCommunicate OK [20:29:53]wFMCommunicate request_size=255 [20:29:53]MH_SAM_APDU [20:29:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 C7 FB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 77 D0 01 00 35 04 06 00 98 FC 88 35 [20:29:53]Write to MH i2c: E2 02 01 4E 7B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 C7 FB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 77 D0 01 00 35 04 06 00 98 FC 88 35 00 00 00 [20:29:53]Write i2c OK [20:29:53]MH_I2C_Read... [20:29:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:53]Read from MH i2c: E2 [20:29:53]MH_I2C_Read... [20:29:53]Read from MH i2c: E2 03 00 [20:29:53]MH_I2C_Read... [20:29:53]Read from MH i2c: E2 03 00 4E 7B 00 90 00 3D [20:29:53]RAPDU: 90 00 [20:29:53]wFMCommunicate OK [20:29:53]wFMCommunicate request_size=7 [20:29:53]MH_SAM_APDU [20:29:53]CAPDU: 80 0D 02 02 02 A2 CF [20:29:53]Write to MH i2c: E2 0A 00 4F 7B 80 0D 02 02 02 00 A2 CF 00 00 B9 [20:29:53]Write i2c OK [20:29:53]MH_I2C_Read... [20:29:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:53]Read from MH i2c: E2 [20:29:53]MH_I2C_Read... [20:29:53]Read from MH i2c: E2 03 00 [20:29:53]MH_I2C_Read... [20:29:53]Read from MH i2c: E2 03 00 4F 7B 00 90 00 3E [20:29:53]RAPDU: 90 00 [20:29:53]wFMCommunicate OK [20:29:53]wFMCommunicate request_size=4 [20:29:53]MH_SAM_APDU [20:29:53]CAPDU: 80 0D 03 02 [20:29:53]Write to MH i2c: E2 08 00 50 7B 80 0D 03 02 00 00 00 00 46 [20:29:53]Write i2c OK [20:29:53]MH_I2C_Read... [20:29:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:29:53]Read from MH i2c: E2 [20:29:53]MH_I2C_Read... [20:29:53]Read from MH i2c: E2 0B 00 [20:29:53]MH_I2C_Read... [20:29:53]Read from MH i2c: E2 0B 00 50 7B 00 F7 98 B4 4D 4F 5F 62 45 90 00 2C [20:29:53]RAPDU: F7 98 B4 4D 4F 5F 62 45 90 00 [20:29:53]wFMCommunicate OK [20:29:53]SAM_PROTO_SignData done [20:29:53]FM_MakeSignedData done [20:29:53]CreateOFDProtocolMessage [20:29:53]wFMCommunicate request_size=4 [20:29:53]MH_SAM_APDU [20:29:53]CAPDU: 80 11 00 00 [20:29:53]Write to MH i2c: E2 08 00 51 7B 80 11 00 00 00 00 00 00 46 [20:29:53]Write i2c OK [20:29:53]MH_I2C_Read... [20:29:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:53]Read from MH i2c: E2 [20:29:53]MH_I2C_Read... [20:29:53]Read from MH i2c: E2 17 00 [20:29:53]MH_I2C_Read... [20:29:53]Read from MH i2c: E2 17 00 51 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A1 [20:29:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:29:53]wFMCommunicate OK [20:29:53]CreateOFDProtocolMessage done [20:29:53]OFDSenderStorePacket 118903 [20:29:53]StoreOFDPacket docnum=118903 [20:29:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9C 8A 04 01 C6 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 C7 FB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 77 D0 01 00 35 04 06 00 98 FC 88 35 A2 CF F7 98 B4 4D 4F 5F 62 45 [20:29:53]CheckFolder [20:29:53]dirname=/storage/ofd_packets [20:29:53]CheckFolder done [20:29:53]ProducePacketName [20:29:53]name=ofd_packets/00118903 [20:29:53]NVStorageSaveData ofd_packets/00118903 [20:29:53]File name is /storage/ofd_packets/00118903 [20:29:53]Write 298 bytes [20:29:53]NVStorageSaveData done [20:29:53]OFDSenderStorePacket done [20:29:53]KKMCreateOFDPacket done [20:29:53]NVStorageSaveData kkm_last_timestamp [20:29:53]File name is /storage/kkm_last_timestamp [20:29:53]Write 4 bytes [20:29:53]NVStorageSaveData done [20:29:53]ExternCall_PrintAddStr [20:29:53]wPrintStart [20:29:53]Write to MH i2c: 01 00 00 52 7B CD [20:29:53]Write i2c OK [20:29:53]MH_I2C_Read... [20:29:53]Read from MH i2c: 01 [20:29:53]MH_I2C_Read... [20:29:53]Read from MH i2c: 01 07 00 [20:29:53]MH_I2C_Read... [20:29:53]Read from MH i2c: 01 07 00 52 7B 00 00 00 00 00 FF 0F E2 [20:29:53]RasterBufferAndPrint [20:29:53]line Счет N : (1)949795 [20:29:53]line ИНН: 02508201610067 [20:29:53]line Контрольно-Кассовый Чек [20:29:53]line ПРОДАЖА [20:29:53]line ТРК (МРК, ГНК) : 21 [20:29:53]line Товар: 2710194800 [20:29:53]line ДТ-К-5 [20:29:53]line 9.190 * 76.20 [20:29:53]line = 700.28 [20:29:53]line НДС 12% НСП 1% [20:29:53]line > о реализуемом товаре [20:29:53]line ОКРУГЛЕНИЕ: -0.28 [20:29:53]line ИТОГО: 700.00 [20:29:53]line Внесено: 700.00 [20:29:53]line СДАЧА: 0.00 [20:29:53]line НСП 1% : 6.20 [20:29:53]line НДС 12% : 74.37 [20:29:53]line Наличными: 700.00 [20:29:53]line Безнал.: 0.00 [20:29:53]line Место: АЗС № 134 "Партнер Нефть" [20:29:53]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:29:53]line СНО: Общий режим [20:29:53]line Чек 279 29.07.2024 20:29 [20:29:53]line Смена: 434 ФФД: 1.0 [20:29:53]line ЗНМ: 0300000044 [20:29:53]line РНМ: 0000000000092660 [20:29:54]line Версия ККМ: 001 [20:29:54]line ФМ: 0000000000874939 [20:29:54]line ФД: 118903 [20:29:54]line ФПД: 168210384397007 [20:29:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T202959&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118903&fm=168210384397007&tin=02508201610067®Number=0000000000092660&sum=70000 [20:29:54]OFD Sender: Processing packet 118903 [packets to send 86, broken 85] [20:29:54]ProducePacketName [20:29:54]name=ofd_packets/00118903 [20:29:54]OFD Sender: To server: pG, [20:29:54]CommunicateWithHost lk.salyk.kg:30040 [20:29:54]ConnectInit lk.salyk.kg [20:29:54]written 0, free lines is 4095 [20:29:54]Connected sock=10 [20:29:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9C 8A 04 01 C6 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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 C7 FB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 77 D0 01 00 35 04 06 00 98 FC 88 35 A2 CF F7 98 B4 4D 4F 5F 62 45 [20:29:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EE 85 47 00 48 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 34 39 33 39 10 04 04 00 77 D0 01 00 F4 03 04 00 54 A9 A7 66 B6 04 01 00 00 D6 DC A2 13 3F EF CA BB [20:29:54]CommunicateWithHost err = 0 [20:29:54]CheckOFDResponse [20:29:54]1017 (14) - 77093643461234 [20:29:54]1041 (16) - 0000000000874939 [20:29:54]1040 (4) - 118903 [20:29:54]1012 (4) - 29.07.2024 14:38 [20:29:54]1206 (1) - 0 [20:29:54]OFD Sender: Remove packet 118903 [20:29:54]ProducePacketName [20:29:54]name=ofd_packets/00118903 [20:29:54]NVStorageDeleteData [20:29:54]Write to MH i2c: 01 00 00 7C 7B F7 [20:29:54]Write i2c OK [20:29:54]MH_I2C_Read... [20:29:54]Read from MH i2c: 01 [20:29:54]MH_I2C_Read... [20:29:54]Read from MH i2c: 01 07 00 [20:29:54]MH_I2C_Read... [20:29:54]Read from MH i2c: 01 07 00 7C 7B 00 00 00 00 00 E4 0C EE [20:29:54]RasterBufferAndPrint [20:29:54]line [20:29:54]line [20:29:54]line [20:29:54]line [20:29:54]line [20:29:54]written 0, free lines is 3306 [20:29:54]MH_Cut [20:29:54]Write to MH i2c: D1 01 00 83 7B 01 D0 [20:29:54]Write i2c OK [20:29:54]MH_I2C_Read... [20:29:54]Read from MH i2c: D1 [20:29:54]MH_I2C_Read... [20:29:54]Read from MH i2c: D1 01 00 [20:29:54]MH_I2C_Read... [20:29:54]Read from MH i2c: D1 01 00 83 7B 00 CF [20:29:54]Write to MH i2c: 01 00 00 84 7B FF [20:29:54]Write i2c OK [20:29:54]MH_I2C_Read... [20:29:54]OFD Sender: No OFD packet to send [20:29:55]*** Cut start [20:29:55]*** Partial cut [20:29:55]*** CUTSNS_PIN = 1 [20:29:55]*** CUTSNS_PIN = 0 [20:29:55]*** Brake cut motor [20:29:55]Read from MH i2c: 01 [20:29:55]MH_I2C_Read... [20:29:55]*** Stop cut motor [20:29:55]*** Cut end [20:29:55]Read from MH i2c: 01 07 00 [20:29:55]MH_I2C_Read... [20:29:55]Read from MH i2c: 01 07 00 84 7B 00 00 00 00 00 FF 0F 14 [20:29:55]process_action close_receipt done [20:29:55]requested_data is exist [20:29:55]produce_requested_data [20:29:55]requested_item fm.sn is exist - process it [20:29:55]wFMCommunicate request_size=4 [20:29:55]MH_SAM_APDU [20:29:55]CAPDU: 80 11 00 00 [20:29:55]Write to MH i2c: E2 08 00 85 7B 80 11 00 00 00 00 00 00 7A [20:29:55]Write i2c OK [20:29:55]MH_I2C_Read... [20:29:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:55]Read from MH i2c: E2 [20:29:55]MH_I2C_Read... [20:29:55]Read from MH i2c: E2 17 00 [20:29:55]MH_I2C_Read... [20:29:55]Read from MH i2c: E2 17 00 85 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D5 [20:29:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:29:55]wFMCommunicate OK [20:29:55]requested_item fd.num is exist - process it [20:29:55]SAM_PROTO_GetFieldsCounters [20:29:55]wFMCommunicate request_size=4 [20:29:55]MH_SAM_APDU [20:29:55]CAPDU: 80 13 00 00 [20:29:55]Write to MH i2c: E2 08 00 86 7B 80 13 00 00 00 00 00 00 7D [20:29:55]Write i2c OK [20:29:55]MH_I2C_Read... [20:29:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:56]Read from MH i2c: E2 [20:29:56]MH_I2C_Read... [20:29:56]Read from MH i2c: E2 62 00 [20:29:56]MH_I2C_Read... [20:29:56]Read from MH i2c: E2 62 00 86 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 77 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 E7 [20:29: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 77 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:29:56]wFMCommunicate OK [20:29:56]SAM_PROTO_GetFieldsCounters done [20:29:56]requested_item shift.num is exist - process it [20:29:56]requested_item shift.opened is exist - process it [20:29:56]req_shift_opened [20:29:56]FM_GetShiftState [20:29:56]SAM_PROTO_GetShiftState [20:29:56]wFMCommunicate request_size=4 [20:29:56]MH_SAM_APDU [20:29:56]CAPDU: 80 13 01 00 [20:29:56]Write to MH i2c: E2 08 00 87 7B 80 13 01 00 00 00 00 00 7F [20:29:56]Write i2c OK [20:29:56]MH_I2C_Read... [20:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:56]Read from MH i2c: E2 [20:29:56]MH_I2C_Read... [20:29:56]Read from MH i2c: E2 0E 00 [20:29:56]MH_I2C_Read... [20:29:56]Read from MH i2c: E2 0E 00 87 7B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 AD [20:29:56]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:29:56]wFMCommunicate OK [20:29:56]SAM_PROTO_GetShiftState done [20:29:56]FM_GetShiftState done [20:29:56]req_shift_opened done [20:29:56]requested_item shift.open_date is exist - process it [20:29:56]req_shift_open_date [20:29:56]req_shift_open_date done [20:29:56]produce_requested_data done [20:29:56]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118903,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [20:29:56]process_action_free close_receipt [20:29:56]json_value_free [20:29:56]json_value_free done [20:29:56]process_json_proto returns [20:29:56]Send response to host [20:29:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118903,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [20:29:56]free response buf [20:29:56]execute_script done [20:29:56]execute_script returns [20:29:56]free content buf [20:29:56]Sock 7.Close socket [20:29:56]Sock 7.Thread stoped [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:09]OFD Sender: No OFD packet to send [20:30:14]OFD Sender: No OFD packet to send [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:55]OFD Sender: No OFD packet to send [20:31:00]OFD Sender: No OFD packet to send [20:31:05]OFD Sender: No OFD packet to send [20:31:10]OFD Sender: No OFD packet to send [20:31:15]OFD Sender: No OFD packet to send [20:31:16]accept exits with 9 [20:31:16]New connection [20:31:16]New thread 3067383140 created [20:31:16]Thread 3067239780 joined [20:31:16]Waiting for new connection... [20:31:16] Sock 9.Parse request [20:31:16]Sock 9.Check first char [20:31:16]Sock 9.First char is OK [20:31:16]request: POST /json_proto HTTP/1.0 [20:31:16]Method: POST [20:31:16]URL: /json_proto [20:31:16]Method is POST - this is cgi request [20:31:16]url: /json_proto [20:31:16]query_string will be loaded in cgi processing [20:31:16]execute_cgi json_proto POST (null) [20:31:16]execute_cgi path=json_proto method=POST [20:31:16]POST find Content-Length [20:31:16]Host: 172.17.45.7:8080 [20:31:16]Content-Length: 682 [20:31:16]Content-Type: application/json [20:31:16] [20:31:16]POST finish read [20:31:16]Found Content-Length = 682 [20:31:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:16]execute_script... [20:31:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:16]POST & json_proto [20:31:16]process_json_proto [20:31:16]json parsed OK: [20:31:16]protocol is kg_v1.0 [20:31:16]action value=close_receipt [20:31:16]process_action close_receipt [20:31:16]cmd_close_receipt [20:31:16]MH_GetDate [20:31:16]Write to MH i2c: F0 00 00 88 7B F2 [20:31:16]Write i2c OK [20:31:16]MH_I2C_Read... [20:31:16]Read from MH i2c: F0 [20:31:16]MH_I2C_Read... [20:31:16]Read from MH i2c: F0 09 00 [20:31:16]MH_I2C_Read... [20:31:16]Read from MH i2c: F0 09 00 88 7B 00 1B FC A7 66 90 0F 3E 66 62 [20:31:16]GetLastDocTimeStamp 1722284999 [20:31:16]current date 1722285083 [20:31:16]FM_GetShiftState [20:31:16]SAM_PROTO_GetShiftState [20:31:16]wFMCommunicate request_size=4 [20:31:16]MH_SAM_APDU [20:31:16]CAPDU: 80 13 01 00 [20:31:16]Write to MH i2c: E2 08 00 89 7B 80 13 01 00 00 00 00 00 81 [20:31:16]Write i2c OK [20:31:16]MH_I2C_Read... [20:31:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:16]Read from MH i2c: E2 [20:31:16]MH_I2C_Read... [20:31:16]Read from MH i2c: E2 0E 00 [20:31:16]MH_I2C_Read... [20:31:16]Read from MH i2c: E2 0E 00 89 7B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 AF [20:31:16]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:31:16]wFMCommunicate OK [20:31:16]SAM_PROTO_GetShiftState done [20:31:16]FM_GetShiftState done [20:31:16]opened in 1722211641 [20:31:16]opened+sec_in_day 1722298041 [20:31:16]quantity*price = 100005 [20:31:16]sum+1 = 100006 [20:31:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 280 29.07.2024 20:31 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118904 ФПД: 128696349169596 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203123&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118904&fm=128696349169596&tin=02508201610067®Number=0000000000092660&sum=100000 [20:31:17]StoreToDocumentArchive [20:31:17]shift 434 fd 118904 [20:31:17]save to /storage/0434/doc_00118904 [20:31:17]save last doc name /storage/0434/doc_00118904 to /storage/kkm_last_doc_name [20:31:17]save OK [20:31:17]Clear old archive folders... [20:31:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:31:17]tlvbuf is 01FB8630 [20:31:17]SAM_PROTO_ClearQueue [20:31:17]wFMCommunicate request_size=4 [20:31:17]MH_SAM_APDU [20:31:17]CAPDU: 80 09 00 00 [20:31:17]Write to MH i2c: E2 08 00 96 7B 80 09 00 00 00 00 00 00 83 [20:31:17]Write i2c OK [20:31:17]MH_I2C_Read... [20:31:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:17]Read from MH i2c: E2 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 03 00 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 03 00 96 7B 00 90 00 85 [20:31:17]RAPDU: 90 00 [20:31:17]wFMCommunicate OK [20:31:17]SAM_PROTO_ClearQueue done [20:31:17]KKMCreateOFDPacket [20:31:17]OFDProtocolAddRootSTLVToBuf [20:31:17]FM_MakeSignedData [20:31:17]FM_MakeSignedData [20:31:17]SAM_PROTO_SignData [20:31:17]wFMCommunicate request_size=4 [20:31:17]MH_SAM_APDU [20:31:17]CAPDU: 80 0D 01 02 [20:31:17]Write to MH i2c: E2 08 00 97 7B 80 0D 01 02 00 00 00 00 8B [20:31:17]Write i2c OK [20:31:17]MH_I2C_Read... [20:31:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:17]Read from MH i2c: E2 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 03 00 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 03 00 97 7B 00 90 00 86 [20:31:17]RAPDU: 90 00 [20:31:17]wFMCommunicate OK [20:31:17]wFMCommunicate request_size=255 [20:31:17]MH_SAM_APDU [20:31: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 1B FC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 78 D0 01 00 35 04 06 00 75 [20:31:17]Write to MH i2c: E2 02 01 98 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 1B FC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 78 D0 01 00 35 04 06 00 75 00 00 4C [20:31:17]Write i2c OK [20:31:17]MH_I2C_Read... [20:31:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:17]Read from MH i2c: E2 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 03 00 [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: E2 03 00 98 7B 00 90 00 87 [20:31:18]RAPDU: 90 00 [20:31:18]wFMCommunicate OK [20:31:18]wFMCommunicate request_size=10 [20:31:18]MH_SAM_APDU [20:31:18]CAPDU: 80 0D 02 02 05 0C 74 2D 17 BC [20:31:18]Write to MH i2c: E2 0D 00 99 7B 80 0D 02 02 05 00 0C 74 2D 17 BC 00 00 18 [20:31:18]Write i2c OK [20:31:18]MH_I2C_Read... [20:31:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:18]Read from MH i2c: E2 [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: E2 03 00 [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: E2 03 00 99 7B 00 90 00 88 [20:31:18]RAPDU: 90 00 [20:31:18]wFMCommunicate OK [20:31:18]wFMCommunicate request_size=4 [20:31:18]MH_SAM_APDU [20:31:18]CAPDU: 80 0D 03 02 [20:31:18]Write to MH i2c: E2 08 00 9A 7B 80 0D 03 02 00 00 00 00 90 [20:31:18]Write i2c OK [20:31:18]MH_I2C_Read... [20:31:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:18]Read from MH i2c: E2 [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: E2 0B 00 [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: E2 0B 00 9A 7B 00 2B 66 C0 A5 68 61 C8 78 90 00 90 [20:31:18]RAPDU: 2B 66 C0 A5 68 61 C8 78 90 00 [20:31:18]wFMCommunicate OK [20:31:18]SAM_PROTO_SignData done [20:31:18]FM_MakeSignedData done [20:31:18]CreateOFDProtocolMessage [20:31:18]wFMCommunicate request_size=4 [20:31:18]MH_SAM_APDU [20:31:18]CAPDU: 80 11 00 00 [20:31:18]Write to MH i2c: E2 08 00 9B 7B 80 11 00 00 00 00 00 00 90 [20:31:18]Write i2c OK [20:31:18]MH_I2C_Read... [20:31:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:18]Read from MH i2c: E2 [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: E2 17 00 [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: E2 17 00 9B 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EB [20:31:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:31:18]wFMCommunicate OK [20:31:18]CreateOFDProtocolMessage done [20:31:18]OFDSenderStorePacket 118904 [20:31:18]StoreOFDPacket docnum=118904 [20:31:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 1F B1 07 01 A0 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 1B FC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 78 D0 01 00 35 04 06 00 75 0C 74 2D 17 BC 2B 66 C0 A5 68 61 C8 78 [20:31:18]CheckFolder [20:31:18]dirname=/storage/ofd_packets [20:31:18]CheckFolder done [20:31:18]ProducePacketName [20:31:18]name=ofd_packets/00118904 [20:31:18]NVStorageSaveData ofd_packets/00118904 [20:31:18]File name is /storage/ofd_packets/00118904 [20:31:18]Write 301 bytes [20:31:18]NVStorageSaveData done [20:31:18]OFDSenderStorePacket done [20:31:18]KKMCreateOFDPacket done [20:31:18]NVStorageSaveData kkm_last_timestamp [20:31:18]File name is /storage/kkm_last_timestamp [20:31:18]Write 4 bytes [20:31:18]NVStorageSaveData done [20:31:18]OFD Sender: Processing packet 118904 [packets to send 86, broken 85] [20:31:18]ProducePacketName [20:31:18]name=ofd_packets/00118904 [20:31:18]OFD Sender: To server: pG, [20:31:18]CommunicateWithHost lk.salyk.kg:30040 [20:31:18]ConnectInit lk.salyk.kg [20:31:18]ExternCall_PrintAddStr [20:31:18]wPrintStart [20:31:18]Write to MH i2c: 01 00 00 9C 7B 17 [20:31:18]Write i2c OK [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: 01 [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: 01 07 00 [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: 01 07 00 9C 7B 00 00 00 00 00 FF 0F 2C [20:31:18]RasterBufferAndPrint [20:31:18]line Счет N : (1)949796 [20:31:18]line ИНН: 02508201610067 [20:31:18]line Контрольно-Кассовый Чек [20:31:18]line ПРОДАЖА [20:31:18]line ТРК (МРК, ГНК) : 41 [20:31:18]line Товар: 2710124130 [20:31:18]line Аи-92-К-4 [20:31:18]line 14.750 * 67.80 [20:31:18]line = 1000.05 [20:31:18]line НДС 12% НСП 1% [20:31:18]line > о реализуемом товаре [20:31:18]line ОКРУГЛЕНИЕ: -0.05 [20:31:18]line ИТОГО: 1000.00 [20:31:18]line Внесено: 1000.00 [20:31:18]line СДАЧА: 0.00 [20:31:18]line НСП 1% : 8.85 [20:31:18]line НДС 12% : 106.20 [20:31:18]line Наличными: 1000.00 [20:31:18]line Безнал.: 0.00 [20:31:18]line Место: АЗС № 134 "Партнер Нефть" [20:31:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:31:18]line СНО: Общий режим [20:31:18]line Чек 280 29.07.2024 20:31 [20:31:18]line Смена: 434 ФФД: 1.0 [20:31:18]line ЗНМ: 0300000044 [20:31:18]line РНМ: 0000000000092660 [20:31:18]line Версия ККМ: 001 [20:31:18]line ФМ: 0000000000874939 [20:31:18]line ФД: 118904 [20:31:18]line ФПД: 128696349169596 [20:31:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203123&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118904&fm=128696349169596&tin=02508201610067®Number=0000000000092660&sum=100000 [20:31:18]Connected sock=11 [20:31:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 1F B1 07 01 A0 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 1B FC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 78 D0 01 00 35 04 06 00 75 0C 74 2D 17 BC 2B 66 C0 A5 68 61 C8 78 [20:31:18]written 0, free lines is 4095 [20:31:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BE C1 47 00 74 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 78 D0 01 00 F4 03 04 00 A8 A9 A7 66 B6 04 01 00 00 74 08 32 29 B5 87 6E BF [20:31:18]CommunicateWithHost err = 0 [20:31:18]CheckOFDResponse [20:31:18]1017 (14) - 77093643461234 [20:31:18]1041 (16) - 0000000000874939 [20:31:18]1040 (4) - 118904 [20:31:18]1012 (4) - 29.07.2024 14:39 [20:31:18]1206 (1) - 0 [20:31:18]OFD Sender: Remove packet 118904 [20:31:18]ProducePacketName [20:31:18]name=ofd_packets/00118904 [20:31:18]NVStorageDeleteData [20:31:18]Write to MH i2c: 01 00 00 C6 7B 41 [20:31:18]Write i2c OK [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: 01 [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: 01 07 00 [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: 01 07 00 C6 7B 00 00 00 00 00 D8 0C 2C [20:31:18]RasterBufferAndPrint [20:31:18]line [20:31:18]line [20:31:18]line [20:31:18]line [20:31:18]line [20:31:18]written 0, free lines is 3295 [20:31:18]MH_Cut [20:31:18]Write to MH i2c: D1 01 00 CD 7B 01 1A [20:31:18]Write i2c OK [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: D1 [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: D1 01 00 [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: D1 01 00 CD 7B 00 19 [20:31:18]Write to MH i2c: 01 00 00 CE 7B 49 [20:31:18]Write i2c OK [20:31:18]MH_I2C_Read... [20:31:19]OFD Sender: No OFD packet to send [20:31:19]*** Cut start [20:31:19]*** Partial cut [20:31:19]*** CUTSNS_PIN = 1 [20:31:19]*** CUTSNS_PIN = 0 [20:31:19]*** Brake cut motor [20:31:20]Read from MH i2c: 01 [20:31:20]MH_I2C_Read... [20:31:20]*** Stop cut motor [20:31:20]*** Cut end [20:31:20]Read from MH i2c: 01 07 00 [20:31:20]MH_I2C_Read... [20:31:20]Read from MH i2c: 01 07 00 CE 7B 00 00 00 00 00 FF 0F 5E [20:31:20]process_action close_receipt done [20:31:20]requested_data is exist [20:31:20]produce_requested_data [20:31:20]requested_item fm.sn is exist - process it [20:31:20]wFMCommunicate request_size=4 [20:31:20]MH_SAM_APDU [20:31:20]CAPDU: 80 11 00 00 [20:31:20]Write to MH i2c: E2 08 00 CF 7B 80 11 00 00 00 00 00 00 C4 [20:31:20]Write i2c OK [20:31:20]MH_I2C_Read... [20:31:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:20]Read from MH i2c: E2 [20:31:20]MH_I2C_Read... [20:31:20]Read from MH i2c: E2 17 00 [20:31:20]MH_I2C_Read... [20:31:20]Read from MH i2c: E2 17 00 CF 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1F [20:31:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:31:20]wFMCommunicate OK [20:31:20]requested_item fd.num is exist - process it [20:31:20]SAM_PROTO_GetFieldsCounters [20:31:20]wFMCommunicate request_size=4 [20:31:20]MH_SAM_APDU [20:31:20]CAPDU: 80 13 00 00 [20:31:20]Write to MH i2c: E2 08 00 D0 7B 80 13 00 00 00 00 00 00 C7 [20:31:20]Write i2c OK [20:31:20]MH_I2C_Read... [20:31:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:20]Read from MH i2c: E2 [20:31:20]MH_I2C_Read... [20:31:20]Read from MH i2c: E2 62 00 [20:31:20]MH_I2C_Read... [20:31:20]Read from MH i2c: E2 62 00 D0 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 78 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 35 [20:31: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 78 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:20]wFMCommunicate OK [20:31:20]SAM_PROTO_GetFieldsCounters done [20:31:20]requested_item shift.num is exist - process it [20:31:20]requested_item shift.opened is exist - process it [20:31:20]req_shift_opened [20:31:20]FM_GetShiftState [20:31:20]SAM_PROTO_GetShiftState [20:31:20]wFMCommunicate request_size=4 [20:31:20]MH_SAM_APDU [20:31:20]CAPDU: 80 13 01 00 [20:31:20]Write to MH i2c: E2 08 00 D1 7B 80 13 01 00 00 00 00 00 C9 [20:31:20]Write i2c OK [20:31:20]MH_I2C_Read... [20:31:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:20]Read from MH i2c: E2 [20:31:20]MH_I2C_Read... [20:31:20]Read from MH i2c: E2 0E 00 [20:31:20]MH_I2C_Read... [20:31:20]Read from MH i2c: E2 0E 00 D1 7B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F7 [20:31:20]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:31:20]wFMCommunicate OK [20:31:20]SAM_PROTO_GetShiftState done [20:31:20]FM_GetShiftState done [20:31:20]req_shift_opened done [20:31:20]requested_item shift.open_date is exist - process it [20:31:20]req_shift_open_date [20:31:20]req_shift_open_date done [20:31:20]produce_requested_data done [20:31:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118904,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [20:31:20]process_action_free close_receipt [20:31:20]json_value_free [20:31:20]json_value_free done [20:31:20]process_json_proto returns [20:31:20]Send response to host [20:31:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118904,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [20:31:20]free response buf [20:31:20]execute_script done [20:31:20]execute_script returns [20:31:20]free content buf [20:31:20]Sock 9.Close socket [20:31:20]Sock 9.Thread stoped [20:31:24]OFD Sender: No OFD packet to send [20:31:29]OFD Sender: No OFD packet to send [20:31:34]OFD Sender: No OFD packet to send [20:31:39]OFD Sender: No OFD packet to send [20:31:44]OFD Sender: No OFD packet to send [20:31:49]OFD Sender: No OFD packet to send [20:31:51]accept exits with 7 [20:31:51]New connection [20:31:51]New thread 3067239780 created [20:31:51]Thread 3067383140 joined [20:31:51]Waiting for new connection... [20:31:51] Sock 7.Parse request [20:31:51]Sock 7.Check first char [20:31:51]Sock 7.First char is OK [20:31:51]request: POST /json_proto HTTP/1.0 [20:31:51]Method: POST [20:31:51]URL: /json_proto [20:31:51]Method is POST - this is cgi request [20:31:51]url: /json_proto [20:31:51]query_string will be loaded in cgi processing [20:31:51]execute_cgi json_proto POST (null) [20:31:51]execute_cgi path=json_proto method=POST [20:31:51]POST find Content-Length [20:31:51]Host: 172.17.45.7:8080 [20:31:51]Content-Length: 677 [20:31:51]Content-Type: application/json [20:31:51] [20:31:51]POST finish read [20:31:51]Found Content-Length = 677 [20:31:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:51]execute_script... [20:31: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)949797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:51]POST & json_proto [20:31:51]process_json_proto [20:31:51]json parsed OK: [20:31:51]protocol is kg_v1.0 [20:31:51]action value=close_receipt [20:31:51]process_action close_receipt [20:31:51]cmd_close_receipt [20:31:51]MH_GetDate [20:31:51]Write to MH i2c: F0 00 00 D2 7B 3C [20:31:51]Write i2c OK [20:31:51]MH_I2C_Read... [20:31:51]Read from MH i2c: F0 [20:31:51]MH_I2C_Read... [20:31:51]Read from MH i2c: F0 09 00 [20:31:51]MH_I2C_Read... [20:31:51]Read from MH i2c: F0 09 00 D2 7B 00 3F FC A7 66 90 0F 3E 66 D0 [20:31:51]GetLastDocTimeStamp 1722285083 [20:31:51]current date 1722285119 [20:31:51]FM_GetShiftState [20:31:51]SAM_PROTO_GetShiftState [20:31:51]wFMCommunicate request_size=4 [20:31:51]MH_SAM_APDU [20:31:51]CAPDU: 80 13 01 00 [20:31:51]Write to MH i2c: E2 08 00 D3 7B 80 13 01 00 00 00 00 00 CB [20:31:51]Write i2c OK [20:31:51]MH_I2C_Read... [20:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:51]Read from MH i2c: E2 [20:31:51]MH_I2C_Read... [20:31:51]Read from MH i2c: E2 0E 00 [20:31:51]MH_I2C_Read... [20:31:51]Read from MH i2c: E2 0E 00 D3 7B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F9 [20:31:51]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:31:51]wFMCommunicate OK [20:31:51]SAM_PROTO_GetShiftState done [20:31:51]FM_GetShiftState done [20:31:51]opened in 1722211641 [20:31:51]opened+sec_in_day 1722298041 [20:31:51]quantity*price = 20001 [20:31:51]sum+1 = 20002 [20:31:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 281 29.07.2024 20:31 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118905 ФПД: 205015415578969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203159&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118905&fm=205015415578969&tin=02508201610067®Number=0000000000092660&sum=20000 [20:31:53]StoreToDocumentArchive [20:31:53]shift 434 fd 118905 [20:31:53]save to /storage/0434/doc_00118905 [20:31:53]save last doc name /storage/0434/doc_00118905 to /storage/kkm_last_doc_name [20:31:53]save OK [20:31:53]Clear old archive folders... [20:31:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:31:53]tlvbuf is 01E8A180 [20:31:53]SAM_PROTO_ClearQueue [20:31:53]wFMCommunicate request_size=4 [20:31:53]MH_SAM_APDU [20:31:53]CAPDU: 80 09 00 00 [20:31:53]Write to MH i2c: E2 08 00 E0 7B 80 09 00 00 00 00 00 00 CD [20:31:53]Write i2c OK [20:31:53]MH_I2C_Read... [20:31:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:53]Read from MH i2c: E2 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 E0 7B 00 90 00 CF [20:31:53]RAPDU: 90 00 [20:31:53]wFMCommunicate OK [20:31:53]SAM_PROTO_ClearQueue done [20:31:53]KKMCreateOFDPacket [20:31:53]OFDProtocolAddRootSTLVToBuf [20:31:53]FM_MakeSignedData [20:31:53]FM_MakeSignedData [20:31:53]SAM_PROTO_SignData [20:31:53]wFMCommunicate request_size=4 [20:31:53]MH_SAM_APDU [20:31:53]CAPDU: 80 0D 01 02 [20:31:53]Write to MH i2c: E2 08 00 E1 7B 80 0D 01 02 00 00 00 00 D5 [20:31:53]Write i2c OK [20:31:53]MH_I2C_Read... [20:31:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:53]Read from MH i2c: E2 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 E1 7B 00 90 00 D0 [20:31:53]RAPDU: 90 00 [20:31:53]wFMCommunicate OK [20:31:53]wFMCommunicate request_size=255 [20:31:53]MH_SAM_APDU [20:31:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 3F FC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 79 D0 01 00 35 04 06 00 BA [20:31:53]Write to MH i2c: E2 02 01 E2 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 3F FC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 79 D0 01 00 35 04 06 00 BA 00 00 74 [20:31:53]Write i2c OK [20:31:53]MH_I2C_Read... [20:31:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:53]Read from MH i2c: E2 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 E2 7B 00 90 00 D1 [20:31:53]RAPDU: 90 00 [20:31:53]wFMCommunicate OK [20:31:53]wFMCommunicate request_size=10 [20:31:53]MH_SAM_APDU [20:31:53]CAPDU: 80 0D 02 02 05 75 DF 04 E1 59 [20:31:53]Write to MH i2c: E2 0D 00 E3 7B 80 0D 02 02 05 00 75 DF 04 E1 59 00 00 74 [20:31:53]Write i2c OK [20:31:53]MH_I2C_Read... [20:31:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:53]Read from MH i2c: E2 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 03 00 E3 7B 00 90 00 D2 [20:31:53]RAPDU: 90 00 [20:31:53]wFMCommunicate OK [20:31:53]wFMCommunicate request_size=4 [20:31:53]MH_SAM_APDU [20:31:53]CAPDU: 80 0D 03 02 [20:31:53]Write to MH i2c: E2 08 00 E4 7B 80 0D 03 02 00 00 00 00 DA [20:31:53]Write i2c OK [20:31:53]MH_I2C_Read... [20:31:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:53]Read from MH i2c: E2 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 0B 00 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 0B 00 E4 7B 00 76 CB 31 79 DA 32 0D F6 90 00 D5 [20:31:53]RAPDU: 76 CB 31 79 DA 32 0D F6 90 00 [20:31:53]wFMCommunicate OK [20:31:53]SAM_PROTO_SignData done [20:31:53]FM_MakeSignedData done [20:31:53]CreateOFDProtocolMessage [20:31:53]wFMCommunicate request_size=4 [20:31:53]MH_SAM_APDU [20:31:53]CAPDU: 80 11 00 00 [20:31:53]Write to MH i2c: E2 08 00 E5 7B 80 11 00 00 00 00 00 00 DA [20:31:53]Write i2c OK [20:31:53]MH_I2C_Read... [20:31:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:53]Read from MH i2c: E2 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 17 00 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: E2 17 00 E5 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 35 [20:31:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:31:53]wFMCommunicate OK [20:31:53]CreateOFDProtocolMessage done [20:31:53]OFDSenderStorePacket 118905 [20:31:53]StoreOFDPacket docnum=118905 [20:31:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D7 A1 07 01 6C 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 3F FC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 79 D0 01 00 35 04 06 00 BA 75 DF 04 E1 59 76 CB 31 79 DA 32 0D F6 [20:31:53]CheckFolder [20:31:53]dirname=/storage/ofd_packets [20:31:53]CheckFolder done [20:31:53]ProducePacketName [20:31:53]name=ofd_packets/00118905 [20:31:53]NVStorageSaveData ofd_packets/00118905 [20:31:53]File name is /storage/ofd_packets/00118905 [20:31:53]Write 301 bytes [20:31:53]NVStorageSaveData done [20:31:53]OFDSenderStorePacket done [20:31:53]KKMCreateOFDPacket done [20:31:53]NVStorageSaveData kkm_last_timestamp [20:31:53]File name is /storage/kkm_last_timestamp [20:31:53]Write 4 bytes [20:31:53]NVStorageSaveData done [20:31:53]ExternCall_PrintAddStr [20:31:53]wPrintStart [20:31:53]Write to MH i2c: 01 00 00 E6 7B 61 [20:31:53]Write i2c OK [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: 01 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: 01 07 00 [20:31:53]MH_I2C_Read... [20:31:53]Read from MH i2c: 01 07 00 E6 7B 00 00 00 00 00 FF 0F 76 [20:31:53]RasterBufferAndPrint [20:31:53]line Счет N : (1)949797 [20:31:53]line ИНН: 02508201610067 [20:31:53]line Контрольно-Кассовый Чек [20:31:53]line ПРОДАЖА [20:31:53]line ТРК (МРК, ГНК) : 51 [20:31:53]line Товар: 2710124130 [20:31:53]line Аи-92-К-4 [20:31:53]line 2.950 * 67.80 [20:31:53]line = 200.01 [20:31:53]line НДС 12% НСП 1% [20:31:53]line > о реализуемом товаре [20:31:53]line ОКРУГЛЕНИЕ: -0.01 [20:31:53]line ИТОГО: 200.00 [20:31:53]line Внесено: 200.00 [20:31:53]line СДАЧА: 0.00 [20:31:53]line НСП 1% : 1.77 [20:31:53]line НДС 12% : 21.24 [20:31:53]line Наличными: 200.00 [20:31:53]line Безнал.: 0.00 [20:31:53]line Место: АЗС № 134 "Партнер Нефть" [20:31:53]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:31:53]line СНО: Общий режим [20:31:53]line Чек 281 29.07.2024 20:31 [20:31:53]line Смена: 434 ФФД: 1.0 [20:31:53]line ЗНМ: 0300000044 [20:31:53]line РНМ: 0000000000092660 [20:31:53]line Версия ККМ: 001 [20:31:53]line ФМ: 0000000000874939 [20:31:53]line ФД: 118905 [20:31:53]line ФПД: 205015415578969 [20:31:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203159&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118905&fm=205015415578969&tin=02508201610067®Number=0000000000092660&sum=20000 [20:31:53]OFD Sender: Processing packet 118905 [packets to send 86, broken 85] [20:31:53]ProducePacketName [20:31:53]name=ofd_packets/00118905 [20:31:53]OFD Sender: To server: pG, [20:31:54]CommunicateWithHost lk.salyk.kg:30040 [20:31:54]ConnectInit lk.salyk.kg [20:31:54]written 0, free lines is 4095 [20:31:54]Connected sock=11 [20:31:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D7 A1 07 01 6C 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 3F FC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 79 D0 01 00 35 04 06 00 BA 75 DF 04 E1 59 76 CB 31 79 DA 32 0D F6 [20:31:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F3 79 47 00 EF 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 34 39 33 39 10 04 04 00 79 D0 01 00 F4 03 04 00 CC A9 A7 66 B6 04 01 00 00 66 6D 9D FE 0F 34 60 58 [20:31:54]CommunicateWithHost err = 0 [20:31:54]CheckOFDResponse [20:31:54]1017 (14) - 77093643461234 [20:31:54]1041 (16) - 0000000000874939 [20:31:54]1040 (4) - 118905 [20:31:54]1012 (4) - 29.07.2024 14:40 [20:31:54]1206 (1) - 0 [20:31:54]OFD Sender: Remove packet 118905 [20:31:54]ProducePacketName [20:31:54]name=ofd_packets/00118905 [20:31:54]NVStorageDeleteData [20:31:54]Write to MH i2c: 01 00 00 10 7C 8C [20:31:54]Write i2c OK [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: 01 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: 01 07 00 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: 01 07 00 10 7C 00 00 00 00 00 DC 0C 7B [20:31:54]RasterBufferAndPrint [20:31:54]line [20:31:54]line [20:31:54]line [20:31:54]line [20:31:54]line [20:31:54]written 0, free lines is 3298 [20:31:54]MH_Cut [20:31:54]Write to MH i2c: D1 01 00 17 7C 01 65 [20:31:54]Write i2c OK [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: D1 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: D1 01 00 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: D1 01 00 17 7C 00 64 [20:31:54]Write to MH i2c: 01 00 00 18 7C 94 [20:31:54]Write i2c OK [20:31:54]MH_I2C_Read... [20:31:54]OFD Sender: No OFD packet to send [20:31:55]*** Cut start [20:31:55]*** Partial cut [20:31:55]*** CUTSNS_PIN = 1 [20:31:55]*** CUTSNS_PIN = 0 [20:31:55]*** Brake cut motor [20:31:55]Read from MH i2c: 01 [20:31:55]MH_I2C_Read... [20:31:55]*** Stop cut motor [20:31:55]*** Cut end [20:31:55]Read from MH i2c: 01 07 00 [20:31:55]MH_I2C_Read... [20:31:55]Read from MH i2c: 01 07 00 18 7C 00 00 00 00 00 FF 0F A9 [20:31:55]process_action close_receipt done [20:31:55]requested_data is exist [20:31:55]produce_requested_data [20:31:55]requested_item fm.sn is exist - process it [20:31:55]wFMCommunicate request_size=4 [20:31:55]MH_SAM_APDU [20:31:55]CAPDU: 80 11 00 00 [20:31:55]Write to MH i2c: E2 08 00 19 7C 80 11 00 00 00 00 00 00 0F [20:31:55]Write i2c OK [20:31:55]MH_I2C_Read... [20:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:55]Read from MH i2c: E2 [20:31:55]MH_I2C_Read... [20:31:55]Read from MH i2c: E2 17 00 [20:31:55]MH_I2C_Read... [20:31:55]Read from MH i2c: E2 17 00 19 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6A [20:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:31:55]wFMCommunicate OK [20:31:55]requested_item fd.num is exist - process it [20:31:55]SAM_PROTO_GetFieldsCounters [20:31:55]wFMCommunicate request_size=4 [20:31:55]MH_SAM_APDU [20:31:55]CAPDU: 80 13 00 00 [20:31:55]Write to MH i2c: E2 08 00 1A 7C 80 13 00 00 00 00 00 00 12 [20:31:55]Write i2c OK [20:31:55]MH_I2C_Read... [20:31:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:56]Read from MH i2c: E2 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 62 00 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 62 00 1A 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 79 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 84 [20:31: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 79 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:56]wFMCommunicate OK [20:31:56]SAM_PROTO_GetFieldsCounters done [20:31:56]requested_item shift.num is exist - process it [20:31:56]requested_item shift.opened is exist - process it [20:31:56]req_shift_opened [20:31:56]FM_GetShiftState [20:31:56]SAM_PROTO_GetShiftState [20:31:56]wFMCommunicate request_size=4 [20:31:56]MH_SAM_APDU [20:31:56]CAPDU: 80 13 01 00 [20:31:56]Write to MH i2c: E2 08 00 1B 7C 80 13 01 00 00 00 00 00 14 [20:31:56]Write i2c OK [20:31:56]MH_I2C_Read... [20:31:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:56]Read from MH i2c: E2 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 0E 00 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 0E 00 1B 7C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 42 [20:31:56]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:31:56]wFMCommunicate OK [20:31:56]SAM_PROTO_GetShiftState done [20:31:56]FM_GetShiftState done [20:31:56]req_shift_opened done [20:31:56]requested_item shift.open_date is exist - process it [20:31:56]req_shift_open_date [20:31:56]req_shift_open_date done [20:31:56]produce_requested_data done [20:31:56]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118905,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [20:31:56]process_action_free close_receipt [20:31:56]json_value_free [20:31:56]json_value_free done [20:31:56]process_json_proto returns [20:31:56]Send response to host [20:31:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118905,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [20:31:56]free response buf [20:31:56]execute_script done [20:31:56]execute_script returns [20:31:56]free content buf [20:31:56]Sock 7.Close socket [20:31:56]Sock 7.Thread stoped [20:31:59]OFD Sender: No OFD packet to send [20:32:04]OFD Sender: No OFD packet to send [20:32:09]OFD Sender: No OFD packet to send [20:32:14]OFD Sender: No OFD packet to send [20:32:19]OFD Sender: No OFD packet to send [20:32:24]OFD Sender: No OFD packet to send [20:32:29]OFD Sender: No OFD packet to send [20:32:34]OFD Sender: No OFD packet to send [20:32:39]OFD Sender: No OFD packet to send [20:32:44]OFD Sender: No OFD packet to send [20:32:49]OFD Sender: No OFD packet to send [20:32:54]OFD Sender: No OFD packet to send [20:32:59]OFD Sender: No OFD packet to send [20:33:04]OFD Sender: No OFD packet to send [20:33:09]OFD Sender: No OFD packet to send [20:33:14]OFD Sender: No OFD packet to send [20:33:19]OFD Sender: No OFD packet to send [20:33:24]OFD Sender: No OFD packet to send [20:33:29]OFD Sender: No OFD packet to send [20:33:34]OFD Sender: No OFD packet to send [20:33:39]OFD Sender: No OFD packet to send [20:33:44]OFD Sender: No OFD packet to send [20:33:49]OFD Sender: No OFD packet to send [20:33:54]OFD Sender: No OFD packet to send [20:33:59]OFD Sender: No OFD packet to send [20:34:04]OFD Sender: No OFD packet to send [20:34:09]OFD Sender: No OFD packet to send [20:34:14]OFD Sender: No OFD packet to send [20:34:19]OFD Sender: No OFD packet to send [20:34:24]OFD Sender: No OFD packet to send [20:34:29]OFD Sender: No OFD packet to send [20:34:34]OFD Sender: No OFD packet to send [20:34:39]OFD Sender: No OFD packet to send [20:34:44]accept exits with 9 [20:34:44]New connection [20:34:44]New thread 3067383140 created [20:34:44]Thread 3067239780 joined [20:34:44]Waiting for new connection... [20:34:44] Sock 9.Parse request [20:34:44]Sock 9.Check first char [20:34:44]Sock 9.First char is OK [20:34:44]request: POST /json_proto HTTP/1.0 [20:34:44]Method: POST [20:34:44]URL: /json_proto [20:34:44]Method is POST - this is cgi request [20:34:44]url: /json_proto [20:34:44]query_string will be loaded in cgi processing [20:34:44]execute_cgi json_proto POST (null) [20:34:44]execute_cgi path=json_proto method=POST [20:34:44]POST find Content-Length [20:34:44]Host: 172.17.45.7:8080 [20:34:44]Content-Length: 677 [20:34:44]Content-Type: application/json [20:34:44] [20:34:44]POST finish read [20:34:44]Found Content-Length = 677 [20:34:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:44]execute_script... [20:34:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:44]POST & json_proto [20:34:44]process_json_proto [20:34:44]json parsed OK: [20:34:44]protocol is kg_v1.0 [20:34:44]action value=close_receipt [20:34:44]process_action close_receipt [20:34:44]cmd_close_receipt [20:34:44]MH_GetDate [20:34:44]Write to MH i2c: F0 00 00 1C 7C 87 [20:34:44]Write i2c OK [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: F0 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: F0 09 00 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: F0 09 00 1C 7C 00 EB FC A7 66 90 0F 3E 66 C7 [20:34:44]GetLastDocTimeStamp 1722285119 [20:34:44]current date 1722285291 [20:34:44]FM_GetShiftState [20:34:44]SAM_PROTO_GetShiftState [20:34:44]wFMCommunicate request_size=4 [20:34:44]MH_SAM_APDU [20:34:44]CAPDU: 80 13 01 00 [20:34:44]Write to MH i2c: E2 08 00 1D 7C 80 13 01 00 00 00 00 00 16 [20:34:44]Write i2c OK [20:34:44]MH_I2C_Read... [20:34:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:44]Read from MH i2c: E2 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: E2 0E 00 [20:34:44]MH_I2C_Read... [20:34:44]Read from MH i2c: E2 0E 00 1D 7C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 44 [20:34:44]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:34:44]wFMCommunicate OK [20:34:44]SAM_PROTO_GetShiftState done [20:34:44]FM_GetShiftState done [20:34:44]opened in 1722211641 [20:34:44]opened+sec_in_day 1722298041 [20:34:44]quantity*price = 50036 [20:34:44]sum+1 = 50037 [20:34:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 282 29.07.2024 20:34 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118906 ФПД: 254860306621407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203451&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118906&fm=254860306621407&tin=02508201610067®Number=0000000000092660&sum=50000 [20:34:45]StoreToDocumentArchive [20:34:45]shift 434 fd 118906 [20:34:45]save to /storage/0434/doc_00118906 [20:34:45]save last doc name /storage/0434/doc_00118906 to /storage/kkm_last_doc_name [20:34:45]save OK [20:34:45]Clear old archive folders... [20:34:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:34:45]tlvbuf is B6FBE4E0 [20:34:45]SAM_PROTO_ClearQueue [20:34:45]wFMCommunicate request_size=4 [20:34:45]MH_SAM_APDU [20:34:45]CAPDU: 80 09 00 00 [20:34:45]Write to MH i2c: E2 08 00 2A 7C 80 09 00 00 00 00 00 00 18 [20:34:45]Write i2c OK [20:34:45]MH_I2C_Read... [20:34:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:34:45]Read from MH i2c: E2 [20:34:45]MH_I2C_Read... [20:34:45]Read from MH i2c: E2 03 00 [20:34:45]MH_I2C_Read... [20:34:45]Read from MH i2c: E2 03 00 2A 7C 00 90 00 1A [20:34:45]RAPDU: 90 00 [20:34:45]wFMCommunicate OK [20:34:45]SAM_PROTO_ClearQueue done [20:34:45]KKMCreateOFDPacket [20:34:45]OFDProtocolAddRootSTLVToBuf [20:34:45]FM_MakeSignedData [20:34:45]FM_MakeSignedData [20:34:45]SAM_PROTO_SignData [20:34:45]wFMCommunicate request_size=4 [20:34:45]MH_SAM_APDU [20:34:45]CAPDU: 80 0D 01 02 [20:34:45]Write to MH i2c: E2 08 00 2B 7C 80 0D 01 02 00 00 00 00 20 [20:34:45]Write i2c OK [20:34:45]MH_I2C_Read... [20:34:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:34:45]Read from MH i2c: E2 [20:34:45]MH_I2C_Read... [20:34:45]Read from MH i2c: E2 03 00 [20:34:45]MH_I2C_Read... [20:34:45]Read from MH i2c: E2 03 00 2B 7C 00 90 00 1B [20:34:45]RAPDU: 90 00 [20:34:45]wFMCommunicate OK [20:34:45]wFMCommunicate request_size=255 [20:34:45]MH_SAM_APDU [20:34:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 EB FC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A D0 01 00 35 04 06 00 E7 [20:34:45]Write to MH i2c: E2 02 01 2C 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 EB FC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A D0 01 00 35 04 06 00 E7 00 00 98 [20:34:45]Write i2c OK [20:34:45]MH_I2C_Read... [20:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:45]Read from MH i2c: E2 [20:34:45]MH_I2C_Read... [20:34:45]Read from MH i2c: E2 03 00 [20:34:45]MH_I2C_Read... [20:34:45]Read from MH i2c: E2 03 00 2C 7C 00 90 00 1C [20:34:45]RAPDU: 90 00 [20:34:45]wFMCommunicate OK [20:34:45]wFMCommunicate request_size=10 [20:34:45]MH_SAM_APDU [20:34:45]CAPDU: 80 0D 02 02 05 CB 4A 0B 23 DF [20:34:45]Write to MH i2c: E2 0D 00 2D 7C 80 0D 02 02 05 00 CB 4A 0B 23 DF 00 00 4F [20:34:45]Write i2c OK [20:34:45]MH_I2C_Read... [20:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:45]Read from MH i2c: E2 [20:34:45]MH_I2C_Read... [20:34:45]Read from MH i2c: E2 03 00 [20:34:45]MH_I2C_Read... [20:34:45]Read from MH i2c: E2 03 00 2D 7C 00 90 00 1D [20:34:45]RAPDU: 90 00 [20:34:45]wFMCommunicate OK [20:34:45]wFMCommunicate request_size=4 [20:34:45]MH_SAM_APDU [20:34:45]CAPDU: 80 0D 03 02 [20:34:45]Write to MH i2c: E2 08 00 2E 7C 80 0D 03 02 00 00 00 00 25 [20:34:45]Write i2c OK [20:34:45]MH_I2C_Read... [20:34:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:45]Read from MH i2c: E2 [20:34:45]MH_I2C_Read... [20:34:45]Read from MH i2c: E2 0B 00 [20:34:45]MH_I2C_Read... [20:34:45]Read from MH i2c: E2 0B 00 2E 7C 00 1F C2 38 CF F0 93 36 8B 90 00 52 [20:34:45]RAPDU: 1F C2 38 CF F0 93 36 8B 90 00 [20:34:45]wFMCommunicate OK [20:34:45]SAM_PROTO_SignData done [20:34:45]FM_MakeSignedData done [20:34:45]CreateOFDProtocolMessage [20:34:45]wFMCommunicate request_size=4 [20:34:45]MH_SAM_APDU [20:34:45]CAPDU: 80 11 00 00 [20:34:45]Write to MH i2c: E2 08 00 2F 7C 80 11 00 00 00 00 00 00 25 [20:34:45]Write i2c OK [20:34:45]MH_I2C_Read... [20:34:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:46]Read from MH i2c: E2 [20:34:46]MH_I2C_Read... [20:34:46]Read from MH i2c: E2 17 00 [20:34:46]MH_I2C_Read... [20:34:46]Read from MH i2c: E2 17 00 2F 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 80 [20:34:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:34:46]wFMCommunicate OK [20:34:46]CreateOFDProtocolMessage done [20:34:46]OFDSenderStorePacket 118906 [20:34:46]StoreOFDPacket docnum=118906 [20:34:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A4 8E 07 01 6D CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 EB FC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A D0 01 00 35 04 06 00 E7 CB 4A 0B 23 DF 1F C2 38 CF F0 93 36 8B [20:34:46]CheckFolder [20:34:46]dirname=/storage/ofd_packets [20:34:46]CheckFolder done [20:34:46]ProducePacketName [20:34:46]name=ofd_packets/00118906 [20:34:46]NVStorageSaveData ofd_packets/00118906 [20:34:46]File name is /storage/ofd_packets/00118906 [20:34:46]Write 301 bytes [20:34:46]NVStorageSaveData done [20:34:46]OFDSenderStorePacket done [20:34:46]KKMCreateOFDPacket done [20:34:46]NVStorageSaveData kkm_last_timestamp [20:34:46]File name is /storage/kkm_last_timestamp [20:34:46]Write 4 bytes [20:34:46]NVStorageSaveData done [20:34:46]ExternCall_PrintAddStr [20:34:46]wPrintStart [20:34:46]Write to MH i2c: 01 00 00 30 7C AC [20:34:46]Write i2c OK [20:34:46]MH_I2C_Read... [20:34:46]Read from MH i2c: 01 [20:34:46]MH_I2C_Read... [20:34:46]Read from MH i2c: 01 07 00 [20:34:46]MH_I2C_Read... [20:34:46]Read from MH i2c: 01 07 00 30 7C 00 00 00 00 00 FF 0F C1 [20:34:46]RasterBufferAndPrint [20:34:46]line Счет N : (1)949798 [20:34:46]line ИНН: 02508201610067 [20:34:46]line Контрольно-Кассовый Чек [20:34:46]line ПРОДАЖА [20:34:46]line ТРК (МРК, ГНК) : 51 [20:34:46]line Товар: 2710124130 [20:34:46]line Аи-92-К-4 [20:34:46]line 7.380 * 67.80 [20:34:46]line = 500.36 [20:34:46]line НДС 12% НСП 1% [20:34:46]line > о реализуемом товаре [20:34:46]line ОКРУГЛЕНИЕ: -0.36 [20:34:46]line ИТОГО: 500.00 [20:34:46]line Внесено: 500.00 [20:34:46]line СДАЧА: 0.00 [20:34:46]line НСП 1% : 4.43 [20:34:46]line НДС 12% : 53.14 [20:34:46]line Наличными: 500.00 [20:34:46]line Безнал.: 0.00 [20:34:46]line Место: АЗС № 134 "Партнер Нефть" [20:34:46]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:34:46]line СНО: Общий режим [20:34:46]line Чек 282 29.07.2024 20:34 [20:34:46]line Смена: 434 ФФД: 1.0 [20:34:46]line ЗНМ: 0300000044 [20:34:46]line РНМ: 0000000000092660 [20:34:46]line Версия ККМ: 001 [20:34:46]line ФМ: 0000000000874939 [20:34:46]line ФД: 118906 [20:34:46]line ФПД: 254860306621407 [20:34:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203451&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118906&fm=254860306621407&tin=02508201610067®Number=0000000000092660&sum=50000 [20:34:46]written 0, free lines is 4095 [20:34:46]OFD Sender: Processing packet 118906 [packets to send 86, broken 85] [20:34:46]ProducePacketName [20:34:46]name=ofd_packets/00118906 [20:34:46]OFD Sender: To server: pG, [20:34:46]CommunicateWithHost lk.salyk.kg:30040 [20:34:46]ConnectInit lk.salyk.kg [20:34:46]Connected sock=10 [20:34:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A4 8E 07 01 6D CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 EB FC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A D0 01 00 35 04 06 00 E7 CB 4A 0B 23 DF 1F C2 38 CF F0 93 36 8B [20:34:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F5 B9 47 00 51 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 34 39 33 39 10 04 04 00 7A D0 01 00 F4 03 04 00 78 AA A7 66 B6 04 01 00 00 9B B0 0B 77 83 BD 8E 6F [20:34:46]CommunicateWithHost err = 0 [20:34:46]CheckOFDResponse [20:34:46]1017 (14) - 77093643461234 [20:34:46]1041 (16) - 0000000000874939 [20:34:46]1040 (4) - 118906 [20:34:46]1012 (4) - 29.07.2024 14:43 [20:34:46]1206 (1) - 0 [20:34:46]OFD Sender: Remove packet 118906 [20:34:46]ProducePacketName [20:34:46]name=ofd_packets/00118906 [20:34:46]NVStorageDeleteData [20:34:46]Write to MH i2c: 01 00 00 5A 7C D6 [20:34:46]Write i2c OK [20:34:46]MH_I2C_Read... [20:34:46]Read from MH i2c: 01 [20:34:46]MH_I2C_Read... [20:34:46]Read from MH i2c: 01 07 00 [20:34:46]MH_I2C_Read... [20:34:46]Read from MH i2c: 01 07 00 5A 7C 00 00 00 00 00 E0 0C C9 [20:34:46]RasterBufferAndPrint [20:34:46]line [20:34:46]line [20:34:46]line [20:34:46]line [20:34:46]line [20:34:46]written 0, free lines is 3302 [20:34:46]MH_Cut [20:34:46]Write to MH i2c: D1 01 00 61 7C 01 AF [20:34:46]Write i2c OK [20:34:46]MH_I2C_Read... [20:34:46]Read from MH i2c: D1 [20:34:46]MH_I2C_Read... [20:34:46]Read from MH i2c: D1 01 00 [20:34:46]MH_I2C_Read... [20:34:46]Read from MH i2c: D1 01 00 61 7C 00 AE [20:34:46]Write to MH i2c: 01 00 00 62 7C DE [20:34:46]Write i2c OK [20:34:46]MH_I2C_Read... [20:34:47]OFD Sender: No OFD packet to send [20:34:47]*** Cut start [20:34:47]*** Partial cut [20:34:47]*** CUTSNS_PIN = 1 [20:34:47]*** CUTSNS_PIN = 0 [20:34:47]*** Brake cut motor [20:34:48]Read from MH i2c: 01 [20:34:48]MH_I2C_Read... [20:34:48]*** Stop cut motor [20:34:48]*** Cut end [20:34:48]Read from MH i2c: 01 07 00 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: 01 07 00 62 7C 00 00 00 00 00 FF 0F F3 [20:34:48]process_action close_receipt done [20:34:48]requested_data is exist [20:34:48]produce_requested_data [20:34:48]requested_item fm.sn is exist - process it [20:34:48]wFMCommunicate request_size=4 [20:34:48]MH_SAM_APDU [20:34:48]CAPDU: 80 11 00 00 [20:34:48]Write to MH i2c: E2 08 00 63 7C 80 11 00 00 00 00 00 00 59 [20:34:48]Write i2c OK [20:34:48]MH_I2C_Read... [20:34:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:48]Read from MH i2c: E2 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: E2 17 00 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: E2 17 00 63 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B4 [20:34:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:34:48]wFMCommunicate OK [20:34:48]requested_item fd.num is exist - process it [20:34:48]SAM_PROTO_GetFieldsCounters [20:34:48]wFMCommunicate request_size=4 [20:34:48]MH_SAM_APDU [20:34:48]CAPDU: 80 13 00 00 [20:34:48]Write to MH i2c: E2 08 00 64 7C 80 13 00 00 00 00 00 00 5C [20:34:48]Write i2c OK [20:34:48]MH_I2C_Read... [20:34:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:34:48]Read from MH i2c: E2 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: E2 62 00 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: E2 62 00 64 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7A D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 D2 [20:34: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7A D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:34:48]wFMCommunicate OK [20:34:48]SAM_PROTO_GetFieldsCounters done [20:34:48]requested_item shift.num is exist - process it [20:34:48]requested_item shift.opened is exist - process it [20:34:48]req_shift_opened [20:34:48]FM_GetShiftState [20:34:48]SAM_PROTO_GetShiftState [20:34:48]wFMCommunicate request_size=4 [20:34:48]MH_SAM_APDU [20:34:48]CAPDU: 80 13 01 00 [20:34:48]Write to MH i2c: E2 08 00 65 7C 80 13 01 00 00 00 00 00 5E [20:34:48]Write i2c OK [20:34:48]MH_I2C_Read... [20:34:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:48]Read from MH i2c: E2 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: E2 0E 00 [20:34:48]MH_I2C_Read... [20:34:48]Read from MH i2c: E2 0E 00 65 7C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 8C [20:34:48]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:34:48]wFMCommunicate OK [20:34:48]SAM_PROTO_GetShiftState done [20:34:48]FM_GetShiftState done [20:34:48]req_shift_opened done [20:34:48]requested_item shift.open_date is exist - process it [20:34:48]req_shift_open_date [20:34:48]req_shift_open_date done [20:34:48]produce_requested_data done [20:34:48]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118906,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [20:34:48]process_action_free close_receipt [20:34:48]json_value_free [20:34:48]json_value_free done [20:34:48]process_json_proto returns [20:34:48]Send response to host [20:34:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118906,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [20:34:48]free response buf [20:34:48]execute_script done [20:34:48]execute_script returns [20:34:48]free content buf [20:34:48]Sock 9.Close socket [20:34:48]Sock 9.Thread stoped [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:32]accept exits with 7 [20:35:32]New connection [20:35:32]New thread 3067239780 created [20:35:32]Thread 3067383140 joined [20:35:32]Waiting for new connection... [20:35:32] Sock 7.Parse request [20:35:32]Sock 7.Check first char [20:35:32]Sock 7.First char is OK [20:35:32]request: POST /json_proto HTTP/1.0 [20:35:32]Method: POST [20:35:32]URL: /json_proto [20:35:32]Method is POST - this is cgi request [20:35:32]url: /json_proto [20:35:32]query_string will be loaded in cgi processing [20:35:32]execute_cgi json_proto POST (null) [20:35:32]execute_cgi path=json_proto method=POST [20:35:32]POST find Content-Length [20:35:32]Host: 172.17.45.7:8080 [20:35:32]Content-Length: 679 [20:35:32]Content-Type: application/json [20:35:32] [20:35:32]POST finish read [20:35:32]Found Content-Length = 679 [20:35:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:35:32]execute_script... [20:35:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:35:32]POST & json_proto [20:35:32]process_json_proto [20:35:32]json parsed OK: [20:35:32]protocol is kg_v1.0 [20:35:32]action value=close_receipt [20:35:32]process_action close_receipt [20:35:32]cmd_close_receipt [20:35:32]MH_GetDate [20:35:32]Write to MH i2c: F0 00 00 66 7C D1 [20:35:32]Write i2c OK [20:35:32]MH_I2C_Read... [20:35:32]Read from MH i2c: F0 [20:35:32]MH_I2C_Read... [20:35:32]Read from MH i2c: F0 09 00 [20:35:32]MH_I2C_Read... [20:35:32]Read from MH i2c: F0 09 00 66 7C 00 1B FD A7 66 90 0F 3E 66 42 [20:35:32]GetLastDocTimeStamp 1722285291 [20:35:32]current date 1722285339 [20:35:32]FM_GetShiftState [20:35:32]SAM_PROTO_GetShiftState [20:35:32]wFMCommunicate request_size=4 [20:35:32]MH_SAM_APDU [20:35:32]CAPDU: 80 13 01 00 [20:35:32]Write to MH i2c: E2 08 00 67 7C 80 13 01 00 00 00 00 00 60 [20:35:32]Write i2c OK [20:35:32]MH_I2C_Read... [20:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:32]Read from MH i2c: E2 [20:35:32]MH_I2C_Read... [20:35:32]Read from MH i2c: E2 0E 00 [20:35:32]MH_I2C_Read... [20:35:32]Read from MH i2c: E2 0E 00 67 7C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 8E [20:35:32]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:35:32]wFMCommunicate OK [20:35:32]SAM_PROTO_GetShiftState done [20:35:32]FM_GetShiftState done [20:35:32]opened in 1722211641 [20:35:32]opened+sec_in_day 1722298041 [20:35:32]quantity*price = 100050 [20:35:32]sum+1 = 100052 [20:35:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 283 29.07.2024 20:35 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118907 ФПД: 45702801953272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203539&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118907&fm=45702801953272&tin=02508201610067®Number=0000000000092660&sum=100000 [20:35:33]StoreToDocumentArchive [20:35:33]shift 434 fd 118907 [20:35:33]save to /storage/0434/doc_00118907 [20:35:33]save last doc name /storage/0434/doc_00118907 to /storage/kkm_last_doc_name [20:35:33]save OK [20:35:33]Clear old archive folders... [20:35:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:35:33]tlvbuf is 01E4D750 [20:35:33]SAM_PROTO_ClearQueue [20:35:33]wFMCommunicate request_size=4 [20:35:33]MH_SAM_APDU [20:35:33]CAPDU: 80 09 00 00 [20:35:33]Write to MH i2c: E2 08 00 74 7C 80 09 00 00 00 00 00 00 62 [20:35:33]Write i2c OK [20:35:33]MH_I2C_Read... [20:35:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:35:33]Read from MH i2c: E2 [20:35:33]MH_I2C_Read... [20:35:33]Read from MH i2c: E2 03 00 [20:35:33]MH_I2C_Read... [20:35:33]Read from MH i2c: E2 03 00 74 7C 00 90 00 64 [20:35:33]RAPDU: 90 00 [20:35:33]wFMCommunicate OK [20:35:33]SAM_PROTO_ClearQueue done [20:35:33]KKMCreateOFDPacket [20:35:33]OFDProtocolAddRootSTLVToBuf [20:35:33]FM_MakeSignedData [20:35:33]FM_MakeSignedData [20:35:33]SAM_PROTO_SignData [20:35:33]wFMCommunicate request_size=4 [20:35:33]MH_SAM_APDU [20:35:33]CAPDU: 80 0D 01 02 [20:35:33]Write to MH i2c: E2 08 00 75 7C 80 0D 01 02 00 00 00 00 6A [20:35:33]Write i2c OK [20:35:33]MH_I2C_Read... [20:35:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:35:33]Read from MH i2c: E2 [20:35:33]MH_I2C_Read... [20:35:33]Read from MH i2c: E2 03 00 [20:35:33]MH_I2C_Read... [20:35:33]Read from MH i2c: E2 03 00 75 7C 00 90 00 65 [20:35:33]RAPDU: 90 00 [20:35:33]wFMCommunicate OK [20:35:33]wFMCommunicate request_size=255 [20:35:33]MH_SAM_APDU [20:35:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 1B FD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7B D0 01 00 35 04 06 00 29 91 03 46 [20:35:33]Write to MH i2c: E2 02 01 76 7C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 1B FD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7B D0 01 00 35 04 06 00 29 91 03 46 00 00 3D [20:35:33]Write i2c OK [20:35:33]MH_I2C_Read... [20:35:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:34]Read from MH i2c: E2 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: E2 03 00 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: E2 03 00 76 7C 00 90 00 66 [20:35:34]RAPDU: 90 00 [20:35:34]wFMCommunicate OK [20:35:34]wFMCommunicate request_size=7 [20:35:34]MH_SAM_APDU [20:35:34]CAPDU: 80 0D 02 02 02 91 F8 [20:35:34]Write to MH i2c: E2 0A 00 77 7C 80 0D 02 02 02 00 91 F8 00 00 FA [20:35:34]Write i2c OK [20:35:34]MH_I2C_Read... [20:35:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:34]Read from MH i2c: E2 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: E2 03 00 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: E2 03 00 77 7C 00 90 00 67 [20:35:34]RAPDU: 90 00 [20:35:34]wFMCommunicate OK [20:35:34]wFMCommunicate request_size=4 [20:35:34]MH_SAM_APDU [20:35:34]CAPDU: 80 0D 03 02 [20:35:34]Write to MH i2c: E2 08 00 78 7C 80 0D 03 02 00 00 00 00 6F [20:35:34]Write i2c OK [20:35:34]MH_I2C_Read... [20:35:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:35:34]Read from MH i2c: E2 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: E2 0B 00 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: E2 0B 00 78 7C 00 2B D2 74 93 84 94 C0 12 90 00 5E [20:35:34]RAPDU: 2B D2 74 93 84 94 C0 12 90 00 [20:35:34]wFMCommunicate OK [20:35:34]SAM_PROTO_SignData done [20:35:34]FM_MakeSignedData done [20:35:34]CreateOFDProtocolMessage [20:35:34]wFMCommunicate request_size=4 [20:35:34]MH_SAM_APDU [20:35:34]CAPDU: 80 11 00 00 [20:35:34]Write to MH i2c: E2 08 00 79 7C 80 11 00 00 00 00 00 00 6F [20:35:34]Write i2c OK [20:35:34]MH_I2C_Read... [20:35:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:34]Read from MH i2c: E2 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: E2 17 00 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: E2 17 00 79 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CA [20:35:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:35:34]wFMCommunicate OK [20:35:34]CreateOFDProtocolMessage done [20:35:34]OFDSenderStorePacket 118907 [20:35:34]StoreOFDPacket docnum=118907 [20:35:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 8A 8E 04 01 93 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 1B FD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7B D0 01 00 35 04 06 00 29 91 03 46 91 F8 2B D2 74 93 84 94 C0 12 [20:35:34]CheckFolder [20:35:34]dirname=/storage/ofd_packets [20:35:34]CheckFolder done [20:35:34]ProducePacketName [20:35:34]name=ofd_packets/00118907 [20:35:34]NVStorageSaveData ofd_packets/00118907 [20:35:34]File name is /storage/ofd_packets/00118907 [20:35:34]Write 298 bytes [20:35:34]NVStorageSaveData done [20:35:34]OFDSenderStorePacket done [20:35:34]KKMCreateOFDPacket done [20:35:34]NVStorageSaveData kkm_last_timestamp [20:35:34]File name is /storage/kkm_last_timestamp [20:35:34]Write 4 bytes [20:35:34]NVStorageSaveData done [20:35:34]ExternCall_PrintAddStr [20:35:34]wPrintStart [20:35:34]Write to MH i2c: 01 00 00 7A 7C F6 [20:35:34]Write i2c OK [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: 01 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: 01 07 00 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: 01 07 00 7A 7C 00 00 00 00 00 FF 0F 0B [20:35:34]RasterBufferAndPrint [20:35:34]line Счет N : (1)949799 [20:35:34]line ИНН: 02508201610067 [20:35:34]line Контрольно-Кассовый Чек [20:35:34]line ПРОДАЖА [20:35:34]line ТРК (МРК, ГНК) : 44 [20:35:34]line Товар: 2710194800 [20:35:34]line ДТ-К-5 [20:35:34]line 13.130 * 76.20 [20:35:34]line = 1000.51 [20:35:34]line НДС 12% НСП 1% [20:35:34]line > о реализуемом товаре [20:35:34]line ОКРУГЛЕНИЕ: -0.51 [20:35:34]line ИТОГО: 1000.00 [20:35:34]line Внесено: 1000.00 [20:35:34]line СДАЧА: 0.00 [20:35:34]line НСП 1% : 8.85 [20:35:34]line НДС 12% : 106.25 [20:35:34]line Наличными: 1000.00 [20:35:34]line Безнал.: 0.00 [20:35:34]line Место: АЗС № 134 "Партнер Нефть" [20:35:34]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:35:34]line СНО: Общий режим [20:35:34]line Чек 283 29.07.2024 20:35 [20:35:34]line Смена: 434 ФФД: 1.0 [20:35:34]line ЗНМ: 0300000044 [20:35:34]line РНМ: 0000000000092660 [20:35:34]line Версия ККМ: 001 [20:35:34]line ФМ: 0000000000874939 [20:35:34]line ФД: 118907 [20:35:34]line ФПД: 45702801953272 [20:35:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203539&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118907&fm=45702801953272&tin=02508201610067®Number=0000000000092660&sum=100000 [20:35:34]OFD Sender: Processing packet 118907 [packets to send 86, broken 85] [20:35:34]ProducePacketName [20:35:34]name=ofd_packets/00118907 [20:35:34]OFD Sender: To server: pG, [20:35:34]CommunicateWithHost lk.salyk.kg:30040 [20:35:34]ConnectInit lk.salyk.kg [20:35:34]written 0, free lines is 4095 [20:35:34]Connected sock=10 [20:35:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 8A 8E 04 01 93 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 1B FD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7B D0 01 00 35 04 06 00 29 91 03 46 91 F8 2B D2 74 93 84 94 C0 12 [20:35:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 53 1F 47 00 19 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 34 39 33 39 10 04 04 00 7B D0 01 00 F4 03 04 00 A8 AA A7 66 B6 04 01 00 00 9C 47 90 43 F1 DD 10 00 [20:35:34]CommunicateWithHost err = 0 [20:35:34]CheckOFDResponse [20:35:34]1017 (14) - 77093643461234 [20:35:34]1041 (16) - 0000000000874939 [20:35:34]1040 (4) - 118907 [20:35:34]1012 (4) - 29.07.2024 14:43 [20:35:34]1206 (1) - 0 [20:35:34]OFD Sender: Remove packet 118907 [20:35:34]ProducePacketName [20:35:34]name=ofd_packets/00118907 [20:35:34]NVStorageDeleteData [20:35:35]Write to MH i2c: 01 00 00 A4 7C 20 [20:35:35]Write i2c OK [20:35:35]MH_I2C_Read... [20:35:35]Read from MH i2c: 01 [20:35:35]MH_I2C_Read... [20:35:35]Read from MH i2c: 01 07 00 [20:35:35]MH_I2C_Read... [20:35:35]Read from MH i2c: 01 07 00 A4 7C 00 00 00 00 00 D4 0C 07 [20:35:35]RasterBufferAndPrint [20:35:35]line [20:35:35]line [20:35:35]line [20:35:35]line [20:35:35]line [20:35:35]written 0, free lines is 3292 [20:35:35]MH_Cut [20:35:35]Write to MH i2c: D1 01 00 AB 7C 01 F9 [20:35:35]Write i2c OK [20:35:35]MH_I2C_Read... [20:35:35]Read from MH i2c: D1 [20:35:35]MH_I2C_Read... [20:35:35]Read from MH i2c: D1 01 00 [20:35:35]MH_I2C_Read... [20:35:35]Read from MH i2c: D1 01 00 AB 7C 00 F8 [20:35:35]Write to MH i2c: 01 00 00 AC 7C 28 [20:35:35]Write i2c OK [20:35:35]MH_I2C_Read... [20:35:35]OFD Sender: No OFD packet to send [20:35:35]*** Cut start [20:35:35]*** Partial cut [20:35:35]*** CUTSNS_PIN = 1 [20:35:35]*** CUTSNS_PIN = 0 [20:35:36]*** Brake cut motor [20:35:36]Read from MH i2c: 01 [20:35:36]MH_I2C_Read... [20:35:36]*** Stop cut motor [20:35:36]*** Cut end [20:35:36]Read from MH i2c: 01 07 00 [20:35:36]MH_I2C_Read... [20:35:36]Read from MH i2c: 01 07 00 AC 7C 00 00 00 00 00 FF 0F 3D [20:35:36]process_action close_receipt done [20:35:36]requested_data is exist [20:35:36]produce_requested_data [20:35:36]requested_item fm.sn is exist - process it [20:35:36]wFMCommunicate request_size=4 [20:35:36]MH_SAM_APDU [20:35:36]CAPDU: 80 11 00 00 [20:35:36]Write to MH i2c: E2 08 00 AD 7C 80 11 00 00 00 00 00 00 A3 [20:35:36]Write i2c OK [20:35:36]MH_I2C_Read... [20:35:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:36]Read from MH i2c: E2 [20:35:36]MH_I2C_Read... [20:35:36]Read from MH i2c: E2 17 00 [20:35:36]MH_I2C_Read... [20:35:36]Read from MH i2c: E2 17 00 AD 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FE [20:35:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:35:36]wFMCommunicate OK [20:35:36]requested_item fd.num is exist - process it [20:35:36]SAM_PROTO_GetFieldsCounters [20:35:36]wFMCommunicate request_size=4 [20:35:36]MH_SAM_APDU [20:35:36]CAPDU: 80 13 00 00 [20:35:36]Write to MH i2c: E2 08 00 AE 7C 80 13 00 00 00 00 00 00 A6 [20:35:36]Write i2c OK [20:35:36]MH_I2C_Read... [20:35:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:35:36]Read from MH i2c: E2 [20:35:36]MH_I2C_Read... [20:35:36]Read from MH i2c: E2 62 00 [20:35:36]MH_I2C_Read... [20:35:36]Read from MH i2c: E2 62 00 AE 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7B D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 20 [20:35: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7B D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:35:36]wFMCommunicate OK [20:35:36]SAM_PROTO_GetFieldsCounters done [20:35:36]requested_item shift.num is exist - process it [20:35:36]requested_item shift.opened is exist - process it [20:35:36]req_shift_opened [20:35:36]FM_GetShiftState [20:35:36]SAM_PROTO_GetShiftState [20:35:36]wFMCommunicate request_size=4 [20:35:36]MH_SAM_APDU [20:35:36]CAPDU: 80 13 01 00 [20:35:36]Write to MH i2c: E2 08 00 AF 7C 80 13 01 00 00 00 00 00 A8 [20:35:36]Write i2c OK [20:35:36]MH_I2C_Read... [20:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:36]Read from MH i2c: E2 [20:35:36]MH_I2C_Read... [20:35:36]Read from MH i2c: E2 0E 00 [20:35:36]MH_I2C_Read... [20:35:36]Read from MH i2c: E2 0E 00 AF 7C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D6 [20:35:36]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:35:36]wFMCommunicate OK [20:35:36]SAM_PROTO_GetShiftState done [20:35:36]FM_GetShiftState done [20:35:36]req_shift_opened done [20:35:36]requested_item shift.open_date is exist - process it [20:35:36]req_shift_open_date [20:35:36]req_shift_open_date done [20:35:36]produce_requested_data done [20:35:36]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118907,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [20:35:36]process_action_free close_receipt [20:35:36]json_value_free [20:35:36]json_value_free done [20:35:36]process_json_proto returns [20:35:36]Send response to host [20:35:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118907,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [20:35:36]free response buf [20:35:36]execute_script done [20:35:36]execute_script returns [20:35:36]free content buf [20:35:36]Sock 7.Close socket [20:35:36]Sock 7.Thread stoped [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]OFD Sender: No OFD packet to send [20:36:10]OFD Sender: No OFD packet to send [20:36:15]OFD Sender: No OFD packet to send [20:36:20]OFD Sender: No OFD packet to send [20:36:25]OFD Sender: No OFD packet to send [20:36:29]accept exits with 9 [20:36:29]New connection [20:36:29]New thread 3067383140 created [20:36:29]Thread 3067239780 joined [20:36:29]Waiting for new connection... [20:36:29] Sock 9.Parse request [20:36:29]Sock 9.Check first char [20:36:29]Sock 9.First char is OK [20:36:29]request: POST /json_proto HTTP/1.0 [20:36:29]Method: POST [20:36:29]URL: /json_proto [20:36:29]Method is POST - this is cgi request [20:36:29]url: /json_proto [20:36:29]query_string will be loaded in cgi processing [20:36:29]execute_cgi json_proto POST (null) [20:36:29]execute_cgi path=json_proto method=POST [20:36:29]POST find Content-Length [20:36:29]Host: 172.17.45.7:8080 [20:36:29]Content-Length: 677 [20:36:29]Content-Type: application/json [20:36:29] [20:36:29]POST finish read [20:36:29]Found Content-Length = 677 [20:36:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:29]execute_script... [20:36:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:29]POST & json_proto [20:36:29]process_json_proto [20:36:29]json parsed OK: [20:36:29]protocol is kg_v1.0 [20:36:29]action value=close_receipt [20:36:29]process_action close_receipt [20:36:29]cmd_close_receipt [20:36:29]MH_GetDate [20:36:29]Write to MH i2c: F0 00 00 B0 7C 1B [20:36:29]Write i2c OK [20:36:29]MH_I2C_Read... [20:36:29]Read from MH i2c: F0 [20:36:29]MH_I2C_Read... [20:36:29]Read from MH i2c: F0 09 00 [20:36:29]MH_I2C_Read... [20:36:29]Read from MH i2c: F0 09 00 B0 7C 00 54 FD A7 66 90 0F 3E 66 C5 [20:36:29]GetLastDocTimeStamp 1722285339 [20:36:29]current date 1722285396 [20:36:29]FM_GetShiftState [20:36:29]SAM_PROTO_GetShiftState [20:36:29]wFMCommunicate request_size=4 [20:36:29]MH_SAM_APDU [20:36:29]CAPDU: 80 13 01 00 [20:36:29]Write to MH i2c: E2 08 00 B1 7C 80 13 01 00 00 00 00 00 AA [20:36:29]Write i2c OK [20:36:29]MH_I2C_Read... [20:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:29]Read from MH i2c: E2 [20:36:29]MH_I2C_Read... [20:36:29]Read from MH i2c: E2 0E 00 [20:36:29]MH_I2C_Read... [20:36:29]Read from MH i2c: E2 0E 00 B1 7C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D8 [20:36:29]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:36:29]wFMCommunicate OK [20:36:29]SAM_PROTO_GetShiftState done [20:36:29]FM_GetShiftState done [20:36:29]opened in 1722211641 [20:36:29]opened+sec_in_day 1722298041 [20:36:29]quantity*price = 40002 [20:36:29]sum+1 = 40003 [20:36:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 284 29.07.2024 20:36 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118908 ФПД: 198576988240861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203636&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118908&fm=198576988240861&tin=02508201610067®Number=0000000000092660&sum=40000 [20:36:30]StoreToDocumentArchive [20:36:30]shift 434 fd 118908 [20:36:30]save to /storage/0434/doc_00118908 [20:36:30]save last doc name /storage/0434/doc_00118908 to /storage/kkm_last_doc_name [20:36:30]save OK [20:36:30]Clear old archive folders... [20:36:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:36:30]tlvbuf is 01FD3710 [20:36:30]SAM_PROTO_ClearQueue [20:36:30]wFMCommunicate request_size=4 [20:36:30]MH_SAM_APDU [20:36:30]CAPDU: 80 09 00 00 [20:36:30]Write to MH i2c: E2 08 00 BE 7C 80 09 00 00 00 00 00 00 AC [20:36:30]Write i2c OK [20:36:30]MH_I2C_Read... [20:36:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:30]Read from MH i2c: E2 [20:36:30]MH_I2C_Read... [20:36:30]Read from MH i2c: E2 03 00 [20:36:30]MH_I2C_Read... [20:36:30]Read from MH i2c: E2 03 00 BE 7C 00 90 00 AE [20:36:30]RAPDU: 90 00 [20:36:30]wFMCommunicate OK [20:36:30]SAM_PROTO_ClearQueue done [20:36:30]KKMCreateOFDPacket [20:36:30]OFDProtocolAddRootSTLVToBuf [20:36:30]FM_MakeSignedData [20:36:30]FM_MakeSignedData [20:36:30]SAM_PROTO_SignData [20:36:30]wFMCommunicate request_size=4 [20:36:30]MH_SAM_APDU [20:36:30]CAPDU: 80 0D 01 02 [20:36:30]Write to MH i2c: E2 08 00 BF 7C 80 0D 01 02 00 00 00 00 B4 [20:36:30]Write i2c OK [20:36:30]MH_I2C_Read... [20:36:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:30]Read from MH i2c: E2 [20:36:30]MH_I2C_Read... [20:36:30]Read from MH i2c: E2 03 00 [20:36:30]MH_I2C_Read... [20:36:30]Read from MH i2c: E2 03 00 BF 7C 00 90 00 AF [20:36:30]RAPDU: 90 00 [20:36:30]wFMCommunicate OK [20:36:30]wFMCommunicate request_size=255 [20:36:30]MH_SAM_APDU [20:36:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 54 FD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C D0 01 00 35 04 06 00 B4 [20:36:30]Write to MH i2c: E2 02 01 C0 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 54 FD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C D0 01 00 35 04 06 00 B4 00 00 4C [20:36:30]Write i2c OK [20:36:30]MH_I2C_Read... [20:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:31]Read from MH i2c: E2 [20:36:31]MH_I2C_Read... [20:36:31]Read from MH i2c: E2 03 00 [20:36:31]MH_I2C_Read... [20:36:31]Read from MH i2c: E2 03 00 C0 7C 00 90 00 B0 [20:36:31]RAPDU: 90 00 [20:36:31]wFMCommunicate OK [20:36:31]wFMCommunicate request_size=10 [20:36:31]MH_SAM_APDU [20:36:31]CAPDU: 80 0D 02 02 05 9A CE D8 3B DD [20:36:31]Write to MH i2c: E2 0D 00 C1 7C 80 0D 02 02 05 00 9A CE D8 3B DD 00 00 19 [20:36:31]Write i2c OK [20:36:31]MH_I2C_Read... [20:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:31]Read from MH i2c: E2 [20:36:31]MH_I2C_Read... [20:36:31]Read from MH i2c: E2 03 00 [20:36:31]MH_I2C_Read... [20:36:31]Read from MH i2c: E2 03 00 C1 7C 00 90 00 B1 [20:36:31]RAPDU: 90 00 [20:36:31]wFMCommunicate OK [20:36:31]wFMCommunicate request_size=4 [20:36:31]MH_SAM_APDU [20:36:31]CAPDU: 80 0D 03 02 [20:36:31]Write to MH i2c: E2 08 00 C2 7C 80 0D 03 02 00 00 00 00 B9 [20:36:31]Write i2c OK [20:36:31]MH_I2C_Read... [20:36:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:31]Read from MH i2c: E2 [20:36:31]MH_I2C_Read... [20:36:31]Read from MH i2c: E2 0B 00 [20:36:31]MH_I2C_Read... [20:36:31]Read from MH i2c: E2 0B 00 C2 7C 00 9D 22 FD AF B7 48 61 98 90 00 1D [20:36:31]RAPDU: 9D 22 FD AF B7 48 61 98 90 00 [20:36:31]wFMCommunicate OK [20:36:31]SAM_PROTO_SignData done [20:36:31]FM_MakeSignedData done [20:36:31]CreateOFDProtocolMessage [20:36:31]wFMCommunicate request_size=4 [20:36:31]MH_SAM_APDU [20:36:31]CAPDU: 80 11 00 00 [20:36:31]Write to MH i2c: E2 08 00 C3 7C 80 11 00 00 00 00 00 00 B9 [20:36:31]Write i2c OK [20:36:31]MH_I2C_Read... [20:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:31]Read from MH i2c: E2 [20:36:31]MH_I2C_Read... [20:36:31]Read from MH i2c: E2 17 00 [20:36:31]MH_I2C_Read... [20:36:31]Read from MH i2c: E2 17 00 C3 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 14 [20:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:36:31]wFMCommunicate OK [20:36:31]CreateOFDProtocolMessage done [20:36:31]OFDSenderStorePacket 118908 [20:36:31]StoreOFDPacket docnum=118908 [20:36:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FC C7 07 01 D0 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 54 FD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C D0 01 00 35 04 06 00 B4 9A CE D8 3B DD 9D 22 FD AF B7 48 61 98 [20:36:31]CheckFolder [20:36:31]dirname=/storage/ofd_packets [20:36:31]CheckFolder done [20:36:31]ProducePacketName [20:36:31]name=ofd_packets/00118908 [20:36:31]NVStorageSaveData ofd_packets/00118908 [20:36:31]File name is /storage/ofd_packets/00118908 [20:36:31]Write 301 bytes [20:36:31]NVStorageSaveData done [20:36:31]OFDSenderStorePacket done [20:36:31]KKMCreateOFDPacket done [20:36:31]NVStorageSaveData kkm_last_timestamp [20:36:31]File name is /storage/kkm_last_timestamp [20:36:31]Write 4 bytes [20:36:31]NVStorageSaveData done [20:36:31]ExternCall_PrintAddStr [20:36:31]wPrintStart [20:36:31]Write to MH i2c: 01 00 00 C4 7C 40 [20:36:31]Write i2c OK [20:36:31]MH_I2C_Read... [20:36:31]Read from MH i2c: 01 [20:36:31]MH_I2C_Read... [20:36:31]Read from MH i2c: 01 07 00 [20:36:31]MH_I2C_Read... [20:36:31]Read from MH i2c: 01 07 00 C4 7C 00 00 00 00 00 FF 0F 55 [20:36:31]RasterBufferAndPrint [20:36:31]line Счет N : (1)949800 [20:36:31]line ИНН: 02508201610067 [20:36:31]line Контрольно-Кассовый Чек [20:36:31]line ПРОДАЖА [20:36:31]line ТРК (МРК, ГНК) : 61 [20:36:31]line Товар: 2710124130 [20:36:31]line Аи-92-К-4 [20:36:31]line 5.900 * 67.80 [20:36:31]line = 400.02 [20:36:31]line НДС 12% НСП 1% [20:36:31]line > о реализуемом товаре [20:36:31]line ОКРУГЛЕНИЕ: -0.02 [20:36:31]line ИТОГО: 400.00 [20:36:31]line Внесено: 400.00 [20:36:31]line СДАЧА: 0.00 [20:36:31]line НСП 1% : 3.54 [20:36:31]line НДС 12% : 42.48 [20:36:31]line Наличными: 400.00 [20:36:31]line Безнал.: 0.00 [20:36:31]line Место: АЗС № 134 "Партнер Нефть" [20:36:31]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:36:31]line СНО: Общий режим [20:36:31]line Чек 284 29.07.2024 20:36 [20:36:31]line Смена: 434 ФФД: 1.0 [20:36:31]line ЗНМ: 0300000044 [20:36:31]line РНМ: 0000000000092660 [20:36:31]line Версия ККМ: 001 [20:36:31]line ФМ: 0000000000874939 [20:36:31]line ФД: 118908 [20:36:31]line ФПД: 198576988240861 [20:36:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203636&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118908&fm=198576988240861&tin=02508201610067®Number=0000000000092660&sum=40000 [20:36:31]written 0, free lines is 4095 [20:36:31]OFD Sender: Processing packet 118908 [packets to send 86, broken 85] [20:36:31]ProducePacketName [20:36:31]name=ofd_packets/00118908 [20:36:31]OFD Sender: To server: pG, [20:36:31]CommunicateWithHost lk.salyk.kg:30040 [20:36:31]ConnectInit lk.salyk.kg [20:36:31]Connected sock=10 [20:36:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FC C7 07 01 D0 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 54 FD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C D0 01 00 35 04 06 00 B4 9A CE D8 3B DD 9D 22 FD AF B7 48 61 98 [20:36:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 15 1B 47 00 29 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C D0 01 00 F4 03 04 00 E1 AA A7 66 B6 04 01 00 00 2D E2 67 D7 9A 09 2F 4A [20:36:31]CommunicateWithHost err = 0 [20:36:31]CheckOFDResponse [20:36:31]1017 (14) - 77093643461234 [20:36:31]1041 (16) - 0000000000874939 [20:36:31]1040 (4) - 118908 [20:36:31]1012 (4) - 29.07.2024 14:44 [20:36:31]1206 (1) - 0 [20:36:31]OFD Sender: Remove packet 118908 [20:36:31]ProducePacketName [20:36:31]name=ofd_packets/00118908 [20:36:31]NVStorageDeleteData [20:36:32]Write to MH i2c: 01 00 00 EE 7C 6A [20:36:32]Write i2c OK [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: 01 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: 01 07 00 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: 01 07 00 EE 7C 00 00 00 00 00 DC 0C 59 [20:36:32]RasterBufferAndPrint [20:36:32]line [20:36:32]line [20:36:32]line [20:36:32]line [20:36:32]line [20:36:32]written 0, free lines is 3298 [20:36:32]MH_Cut [20:36:32]Write to MH i2c: D1 01 00 F5 7C 01 43 [20:36:32]Write i2c OK [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: D1 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: D1 01 00 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: D1 01 00 F5 7C 00 42 [20:36:32]Write to MH i2c: 01 00 00 F6 7C 72 [20:36:32]Write i2c OK [20:36:32]MH_I2C_Read... [20:36:32]OFD Sender: No OFD packet to send [20:36:32]*** Cut start [20:36:32]*** Partial cut [20:36:32]*** CUTSNS_PIN = 1 [20:36:32]*** CUTSNS_PIN = 0 [20:36:33]*** Brake cut motor [20:36:33]Read from MH i2c: 01 [20:36:33]MH_I2C_Read... [20:36:33]*** Stop cut motor [20:36:33]*** Cut end [20:36:33]Read from MH i2c: 01 07 00 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: 01 07 00 F6 7C 00 00 00 00 00 FF 0F 87 [20:36:33]process_action close_receipt done [20:36:33]requested_data is exist [20:36:33]produce_requested_data [20:36:33]requested_item fm.sn is exist - process it [20:36:33]wFMCommunicate request_size=4 [20:36:33]MH_SAM_APDU [20:36:33]CAPDU: 80 11 00 00 [20:36:33]Write to MH i2c: E2 08 00 F7 7C 80 11 00 00 00 00 00 00 ED [20:36:33]Write i2c OK [20:36:33]MH_I2C_Read... [20:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:33]Read from MH i2c: E2 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: E2 17 00 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: E2 17 00 F7 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 48 [20:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:36:33]wFMCommunicate OK [20:36:33]requested_item fd.num is exist - process it [20:36:33]SAM_PROTO_GetFieldsCounters [20:36:33]wFMCommunicate request_size=4 [20:36:33]MH_SAM_APDU [20:36:33]CAPDU: 80 13 00 00 [20:36:33]Write to MH i2c: E2 08 00 F8 7C 80 13 00 00 00 00 00 00 F0 [20:36:33]Write i2c OK [20:36:33]MH_I2C_Read... [20:36:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:33]Read from MH i2c: E2 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: E2 62 00 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: E2 62 00 F8 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7C D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 6E [20:36:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7C D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:36:33]wFMCommunicate OK [20:36:33]SAM_PROTO_GetFieldsCounters done [20:36:33]requested_item shift.num is exist - process it [20:36:33]requested_item shift.opened is exist - process it [20:36:33]req_shift_opened [20:36:33]FM_GetShiftState [20:36:33]SAM_PROTO_GetShiftState [20:36:33]wFMCommunicate request_size=4 [20:36:33]MH_SAM_APDU [20:36:33]CAPDU: 80 13 01 00 [20:36:33]Write to MH i2c: E2 08 00 F9 7C 80 13 01 00 00 00 00 00 F2 [20:36:33]Write i2c OK [20:36:33]MH_I2C_Read... [20:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:33]Read from MH i2c: E2 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: E2 0E 00 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: E2 0E 00 F9 7C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 20 [20:36:33]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:36:33]wFMCommunicate OK [20:36:33]SAM_PROTO_GetShiftState done [20:36:33]FM_GetShiftState done [20:36:33]req_shift_opened done [20:36:33]requested_item shift.open_date is exist - process it [20:36:33]req_shift_open_date [20:36:33]req_shift_open_date done [20:36:33]produce_requested_data done [20:36:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118908,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [20:36:33]process_action_free close_receipt [20:36:33]json_value_free [20:36:33]json_value_free done [20:36:33]process_json_proto returns [20:36:33]Send response to host [20:36:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118908,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [20:36:33]free response buf [20:36:33]execute_script done [20:36:33]execute_script returns [20:36:33]free content buf [20:36:33]Sock 9.Close socket [20:36:33]Sock 9.Thread stoped [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:36]accept exits with 7 [20:37:36]New connection [20:37:36]New thread 3067239780 created [20:37:36]Thread 3067383140 joined [20:37:36]Waiting for new connection... [20:37:36] Sock 7.Parse request [20:37:36]Sock 7.Check first char [20:37:36]Sock 7.First char is OK [20:37:36]request: POST /json_proto HTTP/1.0 [20:37:36]Method: POST [20:37:36]URL: /json_proto [20:37:36]Method is POST - this is cgi request [20:37:36]url: /json_proto [20:37:36]query_string will be loaded in cgi processing [20:37:36]execute_cgi json_proto POST (null) [20:37:36]execute_cgi path=json_proto method=POST [20:37:36]POST find Content-Length [20:37:36]Host: 172.17.45.7:8080 [20:37:36]Content-Length: 674 [20:37:36]Content-Type: application/json [20:37:36] [20:37:36]POST finish read [20:37:36]Found Content-Length = 674 [20:37:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:36]execute_script... [20:37: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)949801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:36]POST & json_proto [20:37:36]process_json_proto [20:37:36]json parsed OK: [20:37:36]protocol is kg_v1.0 [20:37:36]action value=close_receipt [20:37:36]process_action close_receipt [20:37:36]cmd_close_receipt [20:37:36]MH_GetDate [20:37:36]Write to MH i2c: F0 00 00 FA 7C 65 [20:37:36]Write i2c OK [20:37:36]MH_I2C_Read... [20:37:36]Read from MH i2c: F0 [20:37:36]MH_I2C_Read... [20:37:36]Read from MH i2c: F0 09 00 [20:37:36]MH_I2C_Read... [20:37:36]Read from MH i2c: F0 09 00 FA 7C 00 97 FD A7 66 90 0F 3E 66 52 [20:37:36]GetLastDocTimeStamp 1722285396 [20:37:36]current date 1722285463 [20:37:36]FM_GetShiftState [20:37:36]SAM_PROTO_GetShiftState [20:37:36]wFMCommunicate request_size=4 [20:37:36]MH_SAM_APDU [20:37:36]CAPDU: 80 13 01 00 [20:37:36]Write to MH i2c: E2 08 00 FB 7C 80 13 01 00 00 00 00 00 F4 [20:37:36]Write i2c OK [20:37:36]MH_I2C_Read... [20:37:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:36]Read from MH i2c: E2 [20:37:36]MH_I2C_Read... [20:37:36]Read from MH i2c: E2 0E 00 [20:37:36]MH_I2C_Read... [20:37:36]Read from MH i2c: E2 0E 00 FB 7C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 22 [20:37:36]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:37:36]wFMCommunicate OK [20:37:36]SAM_PROTO_GetShiftState done [20:37:36]FM_GetShiftState done [20:37:36]opened in 1722211641 [20:37:36]opened+sec_in_day 1722298041 [20:37:36]quantity*price = 70027 [20:37:36]sum+1 = 70029 [20:37:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 285 29.07.2024 20:37 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118909 ФПД: 255878941739733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203743&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118909&fm=255878941739733&tin=02508201610067®Number=0000000000092660&sum=70000 [20:37:37]StoreToDocumentArchive [20:37:37]shift 434 fd 118909 [20:37:37]save to /storage/0434/doc_00118909 [20:37:37]save last doc name /storage/0434/doc_00118909 to /storage/kkm_last_doc_name [20:37:37]save OK [20:37:37]Clear old archive folders... [20:37:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:37:37]tlvbuf is 01FCF3E0 [20:37:37]SAM_PROTO_ClearQueue [20:37:37]wFMCommunicate request_size=4 [20:37:37]MH_SAM_APDU [20:37:37]CAPDU: 80 09 00 00 [20:37:37]Write to MH i2c: E2 08 00 08 7D 80 09 00 00 00 00 00 00 F7 [20:37:37]Write i2c OK [20:37:37]MH_I2C_Read... [20:37:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:37:37]Read from MH i2c: E2 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 03 00 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 03 00 08 7D 00 90 00 F9 [20:37:37]RAPDU: 90 00 [20:37:37]wFMCommunicate OK [20:37:37]SAM_PROTO_ClearQueue done [20:37:37]KKMCreateOFDPacket [20:37:37]OFDProtocolAddRootSTLVToBuf [20:37:37]FM_MakeSignedData [20:37:37]FM_MakeSignedData [20:37:37]SAM_PROTO_SignData [20:37:37]wFMCommunicate request_size=4 [20:37:37]MH_SAM_APDU [20:37:37]CAPDU: 80 0D 01 02 [20:37:37]Write to MH i2c: E2 08 00 09 7D 80 0D 01 02 00 00 00 00 FF [20:37:37]Write i2c OK [20:37:37]MH_I2C_Read... [20:37:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:37:37]Read from MH i2c: E2 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 03 00 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 03 00 09 7D 00 90 00 FA [20:37:37]RAPDU: 90 00 [20:37:37]wFMCommunicate OK [20:37:37]wFMCommunicate request_size=255 [20:37:37]MH_SAM_APDU [20:37:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 97 FD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7D D0 01 00 35 04 06 00 E8 B8 75 6D [20:37:37]Write to MH i2c: E2 02 01 0A 7D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 97 FD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7D D0 01 00 35 04 06 00 E8 B8 75 6D 00 00 CD [20:37:37]Write i2c OK [20:37:37]MH_I2C_Read... [20:37:37]OFD Sender: No OFD packet to send [20:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:37]Read from MH i2c: E2 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 03 00 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 03 00 0A 7D 00 90 00 FB [20:37:37]RAPDU: 90 00 [20:37:37]wFMCommunicate OK [20:37:37]wFMCommunicate request_size=7 [20:37:37]MH_SAM_APDU [20:37:37]CAPDU: 80 0D 02 02 02 8A D5 [20:37:37]Write to MH i2c: E2 0A 00 0B 7D 80 0D 02 02 02 00 8A D5 00 00 65 [20:37:37]Write i2c OK [20:37:37]MH_I2C_Read... [20:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:37]Read from MH i2c: E2 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 03 00 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 03 00 0B 7D 00 90 00 FC [20:37:37]RAPDU: 90 00 [20:37:37]wFMCommunicate OK [20:37:37]wFMCommunicate request_size=4 [20:37:37]MH_SAM_APDU [20:37:37]CAPDU: 80 0D 03 02 [20:37:37]Write to MH i2c: E2 08 00 0C 7D 80 0D 03 02 00 00 00 00 04 [20:37:37]Write i2c OK [20:37:37]MH_I2C_Read... [20:37:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:37:37]Read from MH i2c: E2 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 0B 00 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 0B 00 0C 7D 00 8D 53 26 E5 08 C2 D1 E6 90 00 71 [20:37:37]RAPDU: 8D 53 26 E5 08 C2 D1 E6 90 00 [20:37:37]wFMCommunicate OK [20:37:37]SAM_PROTO_SignData done [20:37:37]FM_MakeSignedData done [20:37:37]CreateOFDProtocolMessage [20:37:37]wFMCommunicate request_size=4 [20:37:37]MH_SAM_APDU [20:37:37]CAPDU: 80 11 00 00 [20:37:37]Write to MH i2c: E2 08 00 0D 7D 80 11 00 00 00 00 00 00 04 [20:37:37]Write i2c OK [20:37:37]MH_I2C_Read... [20:37:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:37]Read from MH i2c: E2 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 17 00 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: E2 17 00 0D 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5F [20:37:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:37:37]wFMCommunicate OK [20:37:37]CreateOFDProtocolMessage done [20:37:37]OFDSenderStorePacket 118909 [20:37:37]StoreOFDPacket docnum=118909 [20:37:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 09 04 04 01 E4 E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 97 FD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7D D0 01 00 35 04 06 00 E8 B8 75 6D 8A D5 8D 53 26 E5 08 C2 D1 E6 [20:37:37]CheckFolder [20:37:37]dirname=/storage/ofd_packets [20:37:37]CheckFolder done [20:37:37]ProducePacketName [20:37:37]name=ofd_packets/00118909 [20:37:37]NVStorageSaveData ofd_packets/00118909 [20:37:37]File name is /storage/ofd_packets/00118909 [20:37:37]Write 298 bytes [20:37:37]NVStorageSaveData done [20:37:37]OFDSenderStorePacket done [20:37:37]KKMCreateOFDPacket done [20:37:37]NVStorageSaveData kkm_last_timestamp [20:37:37]File name is /storage/kkm_last_timestamp [20:37:37]Write 4 bytes [20:37:37]NVStorageSaveData done [20:37:37]ExternCall_PrintAddStr [20:37:37]wPrintStart [20:37:37]Write to MH i2c: 01 00 00 0E 7D 8B [20:37:37]Write i2c OK [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: 01 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: 01 07 00 [20:37:37]MH_I2C_Read... [20:37:37]Read from MH i2c: 01 07 00 0E 7D 00 00 00 00 00 FF 0F A0 [20:37:37]RasterBufferAndPrint [20:37:37]line Счет N : (1)949801 [20:37:37]line ИНН: 02508201610067 [20:37:37]line Контрольно-Кассовый Чек [20:37:37]line ПРОДАЖА [20:37:37]line ТРК (МРК, ГНК) : 44 [20:37:37]line Товар: 2710194800 [20:37:37]line ДТ-К-5 [20:37:37]line 9.190 * 76.20 [20:37:37]line = 700.28 [20:37:37]line НДС 12% НСП 1% [20:37:37]line > о реализуемом товаре [20:37:37]line ОКРУГЛЕНИЕ: -0.28 [20:37:37]line ИТОГО: 700.00 [20:37:37]line Внесено: 700.00 [20:37:37]line СДАЧА: 0.00 [20:37:37]line НСП 1% : 6.20 [20:37:37]line НДС 12% : 74.37 [20:37:37]line Наличными: 700.00 [20:37:37]line Безнал.: 0.00 [20:37:37]line Место: АЗС № 134 "Партнер Нефть" [20:37:37]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:37:37]line СНО: Общий режим [20:37:37]line Чек 285 29.07.2024 20:37 [20:37:37]line Смена: 434 ФФД: 1.0 [20:37:37]line ЗНМ: 0300000044 [20:37:37]line РНМ: 0000000000092660 [20:37:37]line Версия ККМ: 001 [20:37:37]line ФМ: 0000000000874939 [20:37:37]line ФД: 118909 [20:37:37]line ФПД: 255878941739733 [20:37:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T203743&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118909&fm=255878941739733&tin=02508201610067®Number=0000000000092660&sum=70000 [20:37:38]OFD Sender: Processing packet 118909 [packets to send 86, broken 85] [20:37:38]ProducePacketName [20:37:38]name=ofd_packets/00118909 [20:37:38]OFD Sender: To server: pG, [20:37:38]CommunicateWithHost lk.salyk.kg:30040 [20:37:38]ConnectInit lk.salyk.kg [20:37:38]written 0, free lines is 4095 [20:37:38]Connected sock=10 [20:37:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 09 04 04 01 E4 E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 97 FD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7D D0 01 00 35 04 06 00 E8 B8 75 6D 8A D5 8D 53 26 E5 08 C2 D1 E6 [20:37:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0A 54 47 00 D2 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 34 39 33 39 10 04 04 00 7D D0 01 00 F4 03 04 00 24 AB A7 66 B6 04 01 00 00 2E 6B FF B6 18 2C D0 10 [20:37:38]CommunicateWithHost err = 0 [20:37:38]CheckOFDResponse [20:37:38]1017 (14) - 77093643461234 [20:37:38]1041 (16) - 0000000000874939 [20:37:38]1040 (4) - 118909 [20:37:38]1012 (4) - 29.07.2024 14:45 [20:37:38]1206 (1) - 0 [20:37:38]OFD Sender: Remove packet 118909 [20:37:38]ProducePacketName [20:37:38]name=ofd_packets/00118909 [20:37:38]NVStorageDeleteData [20:37:38]Write to MH i2c: 01 00 00 38 7D B5 [20:37:38]Write i2c OK [20:37:38]MH_I2C_Read... [20:37:38]Read from MH i2c: 01 [20:37:38]MH_I2C_Read... [20:37:38]Read from MH i2c: 01 07 00 [20:37:38]MH_I2C_Read... [20:37:38]Read from MH i2c: 01 07 00 38 7D 00 00 00 00 00 E3 0C AB [20:37:38]RasterBufferAndPrint [20:37:38]line [20:37:38]line [20:37:38]line [20:37:38]line [20:37:38]line [20:37:38]written 0, free lines is 3305 [20:37:38]MH_Cut [20:37:38]Write to MH i2c: D1 01 00 3F 7D 01 8E [20:37:38]Write i2c OK [20:37:38]MH_I2C_Read... [20:37:38]Read from MH i2c: D1 [20:37:38]MH_I2C_Read... [20:37:38]Read from MH i2c: D1 01 00 [20:37:38]MH_I2C_Read... [20:37:38]Read from MH i2c: D1 01 00 3F 7D 00 8D [20:37:38]Write to MH i2c: 01 00 00 40 7D BD [20:37:38]Write i2c OK [20:37:38]MH_I2C_Read... [20:37:38]OFD Sender: No OFD packet to send [20:37:39]*** Cut start [20:37:39]*** Partial cut [20:37:39]*** CUTSNS_PIN = 1 [20:37:39]*** CUTSNS_PIN = 0 [20:37:39]*** Brake cut motor [20:37:39]Read from MH i2c: 01 [20:37:39]MH_I2C_Read... [20:37:39]*** Stop cut motor [20:37:39]*** Cut end [20:37:39]Read from MH i2c: 01 07 00 [20:37:39]MH_I2C_Read... [20:37:39]Read from MH i2c: 01 07 00 40 7D 00 00 00 00 00 FF 0F D2 [20:37:39]process_action close_receipt done [20:37:39]requested_data is exist [20:37:39]produce_requested_data [20:37:39]requested_item fm.sn is exist - process it [20:37:39]wFMCommunicate request_size=4 [20:37:39]MH_SAM_APDU [20:37:39]CAPDU: 80 11 00 00 [20:37:39]Write to MH i2c: E2 08 00 41 7D 80 11 00 00 00 00 00 00 38 [20:37:39]Write i2c OK [20:37:39]MH_I2C_Read... [20:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:39]Read from MH i2c: E2 [20:37:39]MH_I2C_Read... [20:37:39]Read from MH i2c: E2 17 00 [20:37:39]MH_I2C_Read... [20:37:39]Read from MH i2c: E2 17 00 41 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 93 [20:37:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:37:39]wFMCommunicate OK [20:37:39]requested_item fd.num is exist - process it [20:37:39]SAM_PROTO_GetFieldsCounters [20:37:39]wFMCommunicate request_size=4 [20:37:39]MH_SAM_APDU [20:37:39]CAPDU: 80 13 00 00 [20:37:39]Write to MH i2c: E2 08 00 42 7D 80 13 00 00 00 00 00 00 3B [20:37:39]Write i2c OK [20:37:39]MH_I2C_Read... [20:37:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:37:40]Read from MH i2c: E2 [20:37:40]MH_I2C_Read... [20:37:40]Read from MH i2c: E2 62 00 [20:37:40]MH_I2C_Read... [20:37:40]Read from MH i2c: E2 62 00 42 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7D D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 BD [20:37: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7D D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:37:40]wFMCommunicate OK [20:37:40]SAM_PROTO_GetFieldsCounters done [20:37:40]requested_item shift.num is exist - process it [20:37:40]requested_item shift.opened is exist - process it [20:37:40]req_shift_opened [20:37:40]FM_GetShiftState [20:37:40]SAM_PROTO_GetShiftState [20:37:40]wFMCommunicate request_size=4 [20:37:40]MH_SAM_APDU [20:37:40]CAPDU: 80 13 01 00 [20:37:40]Write to MH i2c: E2 08 00 43 7D 80 13 01 00 00 00 00 00 3D [20:37:40]Write i2c OK [20:37:40]MH_I2C_Read... [20:37:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:40]Read from MH i2c: E2 [20:37:40]MH_I2C_Read... [20:37:40]Read from MH i2c: E2 0E 00 [20:37:40]MH_I2C_Read... [20:37:40]Read from MH i2c: E2 0E 00 43 7D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 6B [20:37:40]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:37:40]wFMCommunicate OK [20:37:40]SAM_PROTO_GetShiftState done [20:37:40]FM_GetShiftState done [20:37:40]req_shift_opened done [20:37:40]requested_item shift.open_date is exist - process it [20:37:40]req_shift_open_date [20:37:40]req_shift_open_date done [20:37:40]produce_requested_data done [20:37:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118909,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [20:37:40]process_action_free close_receipt [20:37:40]json_value_free [20:37:40]json_value_free done [20:37:40]process_json_proto returns [20:37:40]Send response to host [20:37:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118909,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [20:37:40]free response buf [20:37:40]execute_script done [20:37:40]execute_script returns [20:37:40]free content buf [20:37:40]Sock 7.Close socket [20:37:40]Sock 7.Thread stoped [20:37:43]OFD Sender: No OFD packet to send [20:37:48]OFD Sender: No OFD packet to send [20:37:53]OFD Sender: No OFD packet to send [20:37:58]OFD Sender: No OFD packet to send [20:38:03]OFD Sender: No OFD packet to send [20:38:08]OFD Sender: No OFD packet to send [20:38:13]OFD Sender: No OFD packet to send [20:38:19]OFD Sender: No OFD packet to send [20:38:24]OFD Sender: No OFD packet to send [20:38:29]OFD Sender: No OFD packet to send [20:38:34]OFD Sender: No OFD packet to send [20:38:39]OFD Sender: No OFD packet to send [20:38:44]OFD Sender: No OFD packet to send [20:38:49]OFD Sender: No OFD packet to send [20:38:54]OFD Sender: No OFD packet to send [20:38:59]OFD Sender: No OFD packet to send [20:39:04]OFD Sender: No OFD packet to send [20:39:09]OFD Sender: No OFD packet to send [20:39:14]OFD Sender: No OFD packet to send [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:34]OFD Sender: No OFD packet to send [20:39:39]OFD Sender: No OFD packet to send [20:39:44]OFD Sender: No OFD packet to send [20:39:49]OFD Sender: No OFD packet to send [20:39:54]OFD Sender: No OFD packet to send [20:39:59]OFD Sender: No OFD packet to send [20:40:04]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:14]OFD Sender: No OFD packet to send [20:40:19]OFD Sender: No OFD packet to send [20:40:19]accept exits with 9 [20:40:19]New connection [20:40:19]New thread 3067383140 created [20:40:19]Thread 3067239780 joined [20:40:19]Waiting for new connection... [20:40:19] Sock 9.Parse request [20:40:19]Sock 9.Check first char [20:40:19]Sock 9.First char is OK [20:40:19]request: POST /json_proto HTTP/1.0 [20:40:19]Method: POST [20:40:19]URL: /json_proto [20:40:19]Method is POST - this is cgi request [20:40:19]url: /json_proto [20:40:19]query_string will be loaded in cgi processing [20:40:19]execute_cgi json_proto POST (null) [20:40:19]execute_cgi path=json_proto method=POST [20:40:19]POST find Content-Length [20:40:19]Host: 172.17.45.7:8080 [20:40:19]Content-Length: 819 [20:40:19]Content-Type: application/json [20:40:19] [20:40:19]POST finish read [20:40:19]Found Content-Length = 819 [20:40:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1200.00, "payments": [ { "type": 1, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:19]execute_script... [20:40:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1200.00, "payments": [ { "type": 1, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:19]POST & json_proto [20:40:19]process_json_proto [20:40:19]json parsed OK: [20:40:19]protocol is kg_v1.0 [20:40:19]action value=close_receipt [20:40:19]process_action close_receipt [20:40:19]cmd_close_receipt [20:40:19]MH_GetDate [20:40:19]Write to MH i2c: F0 00 00 44 7D B0 [20:40:19]Write i2c OK [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: F0 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: F0 09 00 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: F0 09 00 44 7D 00 3A FE A7 66 90 0F 3E 66 41 [20:40:19]GetLastDocTimeStamp 1722285463 [20:40:19]current date 1722285626 [20:40:19]FM_GetShiftState [20:40:19]SAM_PROTO_GetShiftState [20:40:19]wFMCommunicate request_size=4 [20:40:19]MH_SAM_APDU [20:40:19]CAPDU: 80 13 01 00 [20:40:19]Write to MH i2c: E2 08 00 45 7D 80 13 01 00 00 00 00 00 3F [20:40:19]Write i2c OK [20:40:19]MH_I2C_Read... [20:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:19]Read from MH i2c: E2 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: E2 0E 00 [20:40:19]MH_I2C_Read... [20:40:19]Read from MH i2c: E2 0E 00 45 7D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 6D [20:40:19]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:40:19]wFMCommunicate OK [20:40:19]SAM_PROTO_GetShiftState done [20:40:19]FM_GetShiftState done [20:40:19]opened in 1722211641 [20:40:19]opened+sec_in_day 1722298041 [20:40:19]quantity*price = 120015 [20:40:19]sum+1 = 120016 [20:40:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 0.00 Безнал.: 1200.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 286 29.07.2024 20:40 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118910 ФПД: 139717709856293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T204026&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118910&fm=139717709856293&tin=02508201610067®Number=0000000000092660&sum=120000 [20:40:20]StoreToDocumentArchive [20:40:20]shift 434 fd 118910 [20:40:20]save to /storage/0434/doc_00118910 [20:40:20]save last doc name /storage/0434/doc_00118910 to /storage/kkm_last_doc_name [20:40:20]save OK [20:40:20]Clear old archive folders... [20:40:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:40:20]tlvbuf is 01FB64A0 [20:40:20]SAM_PROTO_ClearQueue [20:40:20]wFMCommunicate request_size=4 [20:40:20]MH_SAM_APDU [20:40:20]CAPDU: 80 09 00 00 [20:40:20]Write to MH i2c: E2 08 00 52 7D 80 09 00 00 00 00 00 00 41 [20:40:20]Write i2c OK [20:40:20]MH_I2C_Read... [20:40:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:40:20]Read from MH i2c: E2 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 03 00 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 03 00 52 7D 00 90 00 43 [20:40:20]RAPDU: 90 00 [20:40:20]wFMCommunicate OK [20:40:20]SAM_PROTO_ClearQueue done [20:40:20]KKMCreateOFDPacket [20:40:20]OFDProtocolAddRootSTLVToBuf [20:40:20]FM_MakeSignedData [20:40:20]FM_MakeSignedData [20:40:20]SAM_PROTO_SignData [20:40:20]wFMCommunicate request_size=4 [20:40:20]MH_SAM_APDU [20:40:20]CAPDU: 80 0D 01 02 [20:40:20]Write to MH i2c: E2 08 00 53 7D 80 0D 01 02 00 00 00 00 49 [20:40:20]Write i2c OK [20:40:20]MH_I2C_Read... [20:40:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:40:20]Read from MH i2c: E2 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 03 00 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 03 00 53 7D 00 90 00 44 [20:40:20]RAPDU: 90 00 [20:40:20]wFMCommunicate OK [20:40:20]wFMCommunicate request_size=255 [20:40:20]MH_SAM_APDU [20:40:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 3A FE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E D0 01 00 35 04 06 00 7F 12 90 76 [20:40:20]Write to MH i2c: E2 02 01 54 7D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 3A FE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E D0 01 00 35 04 06 00 7F 12 90 76 00 00 44 [20:40:20]Write i2c OK [20:40:20]MH_I2C_Read... [20:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:20]Read from MH i2c: E2 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 03 00 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 03 00 54 7D 00 90 00 45 [20:40:20]RAPDU: 90 00 [20:40:20]wFMCommunicate OK [20:40:20]wFMCommunicate request_size=7 [20:40:20]MH_SAM_APDU [20:40:20]CAPDU: 80 0D 02 02 02 FE 25 [20:40:20]Write to MH i2c: E2 0A 00 55 7D 80 0D 02 02 02 00 FE 25 00 00 73 [20:40:20]Write i2c OK [20:40:20]MH_I2C_Read... [20:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:20]Read from MH i2c: E2 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 03 00 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 03 00 55 7D 00 90 00 46 [20:40:20]RAPDU: 90 00 [20:40:20]wFMCommunicate OK [20:40:20]wFMCommunicate request_size=4 [20:40:20]MH_SAM_APDU [20:40:20]CAPDU: 80 0D 03 02 [20:40:20]Write to MH i2c: E2 08 00 56 7D 80 0D 03 02 00 00 00 00 4E [20:40:20]Write i2c OK [20:40:20]MH_I2C_Read... [20:40:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:40:20]Read from MH i2c: E2 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 0B 00 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 0B 00 56 7D 00 24 F6 07 71 D6 94 9D 98 90 00 80 [20:40:20]RAPDU: 24 F6 07 71 D6 94 9D 98 90 00 [20:40:20]wFMCommunicate OK [20:40:20]SAM_PROTO_SignData done [20:40:20]FM_MakeSignedData done [20:40:20]CreateOFDProtocolMessage [20:40:20]wFMCommunicate request_size=4 [20:40:20]MH_SAM_APDU [20:40:20]CAPDU: 80 11 00 00 [20:40:20]Write to MH i2c: E2 08 00 57 7D 80 11 00 00 00 00 00 00 4E [20:40:20]Write i2c OK [20:40:20]MH_I2C_Read... [20:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:20]Read from MH i2c: E2 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 17 00 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: E2 17 00 57 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A9 [20:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:40:20]wFMCommunicate OK [20:40:20]CreateOFDProtocolMessage done [20:40:20]OFDSenderStorePacket 118910 [20:40:20]StoreOFDPacket docnum=118910 [20:40:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 BC 7B 04 01 FE 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 3A FE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E D0 01 00 35 04 06 00 7F 12 90 76 FE 25 24 F6 07 71 D6 94 9D 98 [20:40:20]CheckFolder [20:40:20]dirname=/storage/ofd_packets [20:40:20]CheckFolder done [20:40:20]ProducePacketName [20:40:20]name=ofd_packets/00118910 [20:40:20]NVStorageSaveData ofd_packets/00118910 [20:40:20]File name is /storage/ofd_packets/00118910 [20:40:20]Write 298 bytes [20:40:20]NVStorageSaveData done [20:40:20]OFDSenderStorePacket done [20:40:20]KKMCreateOFDPacket done [20:40:20]NVStorageSaveData kkm_last_timestamp [20:40:20]File name is /storage/kkm_last_timestamp [20:40:20]Write 4 bytes [20:40:20]NVStorageSaveData done [20:40:20]ExternCall_PrintAddStr [20:40:20]wPrintStart [20:40:20]Write to MH i2c: 01 00 00 58 7D D5 [20:40:20]Write i2c OK [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: 01 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: 01 07 00 [20:40:20]MH_I2C_Read... [20:40:20]Read from MH i2c: 01 07 00 58 7D 00 00 00 00 00 FF 0F EA [20:40:20]RasterBufferAndPrint [20:40:20]line Счет N : (1)949802 [20:40:20]line ИНН: 02508201610067 [20:40:20]line Контрольно-Кассовый Чек [20:40:20]line ПРОДАЖА [20:40:20]line ТРК (МРК, ГНК) : 44 [20:40:20]line Товар: 2710194800 [20:40:20]line ДТ-К-5 [20:40:20]line 15.750 * 76.20 [20:40:20]line = 1200.15 [20:40:20]line НДС 12% НСП 1% [20:40:20]line > о реализуемом товаре [20:40:20]line ОКРУГЛЕНИЕ: -0.15 [20:40:20]line ИТОГО: 1200.00 [20:40:20]line НСП 1% : 10.62 [20:40:20]line НДС 12% : 127.45 [20:40:20]line Наличными: 0.00 [20:40:20]line Безнал.: 1200.00 [20:40:20]line Место: АЗС № 134 "Партнер Нефть" [20:40:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:40:20]line СНО: Общий режим [20:40:20]line Чек 286 29.07.2024 20:40 [20:40:20]line Смена: 434 ФФД: 1.0 [20:40:20]line ЗНМ: 0300000044 [20:40:20]line РНМ: 0000000000092660 [20:40:20]line Версия ККМ: 001 [20:40:21]line Платежная система: O! деньги [20:40:21]line ФМ: 0000000000874939 [20:40:21]line ФД: 118910 [20:40:21]line ФПД: 139717709856293 [20:40:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T204026&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118910&fm=139717709856293&tin=02508201610067®Number=0000000000092660&sum=120000 [20:40:21]OFD Sender: Processing packet 118910 [packets to send 86, broken 85] [20:40:21]ProducePacketName [20:40:21]name=ofd_packets/00118910 [20:40:21]OFD Sender: To server: pG, [20:40:21]CommunicateWithHost lk.salyk.kg:30040 [20:40:21]ConnectInit lk.salyk.kg [20:40:21]written 0, free lines is 4095 [20:40:21]Connected sock=10 [20:40:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 BC 7B 04 01 FE 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 3A FE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E D0 01 00 35 04 06 00 7F 12 90 76 FE 25 24 F6 07 71 D6 94 9D 98 [20:40:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CC 15 47 00 47 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E D0 01 00 F4 03 04 00 C7 AB A7 66 B6 04 01 00 00 31 A5 F0 1D F2 65 9B 6E [20:40:21]CommunicateWithHost err = 0 [20:40:21]CheckOFDResponse [20:40:21]1017 (14) - 77093643461234 [20:40:21]1041 (16) - 0000000000874939 [20:40:21]1040 (4) - 118910 [20:40:21]1012 (4) - 29.07.2024 14:48 [20:40:21]1206 (1) - 0 [20:40:21]OFD Sender: Remove packet 118910 [20:40:21]ProducePacketName [20:40:21]name=ofd_packets/00118910 [20:40:21]NVStorageDeleteData [20:40:21]Write to MH i2c: 01 00 00 82 7D FF [20:40:21]Write i2c OK [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: 01 [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: 01 07 00 [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: 01 07 00 82 7D 00 00 00 00 00 E3 0C F5 [20:40:21]RasterBufferAndPrint [20:40:21]line [20:40:21]line [20:40:21]line [20:40:21]line [20:40:21]line [20:40:21]written 0, free lines is 3306 [20:40:21]MH_Cut [20:40:21]Write to MH i2c: D1 01 00 89 7D 01 D8 [20:40:21]Write i2c OK [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: D1 [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: D1 01 00 [20:40:21]MH_I2C_Read... [20:40:21]Read from MH i2c: D1 01 00 89 7D 00 D7 [20:40:21]Write to MH i2c: 01 00 00 8A 7D 07 [20:40:21]Write i2c OK [20:40:21]MH_I2C_Read... [20:40:22]OFD Sender: No OFD packet to send [20:40:22]*** Cut start [20:40:22]*** Partial cut [20:40:22]*** CUTSNS_PIN = 1 [20:40:22]*** CUTSNS_PIN = 0 [20:40:22]*** Brake cut motor [20:40:23]Read from MH i2c: 01 [20:40:23]MH_I2C_Read... [20:40:23]*** Stop cut motor [20:40:23]*** Cut end [20:40:23]Read from MH i2c: 01 07 00 [20:40:23]MH_I2C_Read... [20:40:23]Read from MH i2c: 01 07 00 8A 7D 00 00 00 00 00 FF 0F 1C [20:40:23]process_action close_receipt done [20:40:23]requested_data is exist [20:40:23]produce_requested_data [20:40:23]requested_item fm.sn is exist - process it [20:40:23]wFMCommunicate request_size=4 [20:40:23]MH_SAM_APDU [20:40:23]CAPDU: 80 11 00 00 [20:40:23]Write to MH i2c: E2 08 00 8B 7D 80 11 00 00 00 00 00 00 82 [20:40:23]Write i2c OK [20:40:23]MH_I2C_Read... [20:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:23]Read from MH i2c: E2 [20:40:23]MH_I2C_Read... [20:40:23]Read from MH i2c: E2 17 00 [20:40:23]MH_I2C_Read... [20:40:23]Read from MH i2c: E2 17 00 8B 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DD [20:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:40:23]wFMCommunicate OK [20:40:23]requested_item fd.num is exist - process it [20:40:23]SAM_PROTO_GetFieldsCounters [20:40:23]wFMCommunicate request_size=4 [20:40:23]MH_SAM_APDU [20:40:23]CAPDU: 80 13 00 00 [20:40:23]Write to MH i2c: E2 08 00 8C 7D 80 13 00 00 00 00 00 00 85 [20:40:23]Write i2c OK [20:40:23]MH_I2C_Read... [20:40:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:40:23]Read from MH i2c: E2 [20:40:23]MH_I2C_Read... [20:40:23]Read from MH i2c: E2 62 00 [20:40:23]MH_I2C_Read... [20:40:23]Read from MH i2c: E2 62 00 8C 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7E D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 0B [20:40: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7E D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:40:23]wFMCommunicate OK [20:40:23]SAM_PROTO_GetFieldsCounters done [20:40:23]requested_item shift.num is exist - process it [20:40:23]requested_item shift.opened is exist - process it [20:40:23]req_shift_opened [20:40:23]FM_GetShiftState [20:40:23]SAM_PROTO_GetShiftState [20:40:23]wFMCommunicate request_size=4 [20:40:23]MH_SAM_APDU [20:40:23]CAPDU: 80 13 01 00 [20:40:23]Write to MH i2c: E2 08 00 8D 7D 80 13 01 00 00 00 00 00 87 [20:40:23]Write i2c OK [20:40:23]MH_I2C_Read... [20:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:23]Read from MH i2c: E2 [20:40:23]MH_I2C_Read... [20:40:23]Read from MH i2c: E2 0E 00 [20:40:23]MH_I2C_Read... [20:40:23]Read from MH i2c: E2 0E 00 8D 7D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B5 [20:40:23]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:40:23]wFMCommunicate OK [20:40:23]SAM_PROTO_GetShiftState done [20:40:23]FM_GetShiftState done [20:40:23]req_shift_opened done [20:40:23]requested_item shift.open_date is exist - process it [20:40:23]req_shift_open_date [20:40:23]req_shift_open_date done [20:40:23]produce_requested_data done [20:40:23]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118910,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [20:40:23]process_action_free close_receipt [20:40:23]json_value_free [20:40:23]json_value_free done [20:40:23]process_json_proto returns [20:40:23]Send response to host [20:40:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118910,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [20:40:23]free response buf [20:40:23]execute_script done [20:40:23]execute_script returns [20:40:23]free content buf [20:40:23]Sock 9.Close socket [20:40:23]Sock 9.Thread stoped [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:42]accept exits with 7 [20:44:42]New connection [20:44:42]New thread 3067239780 created [20:44:42]Thread 3067383140 joined [20:44:42]Waiting for new connection... [20:44:42] Sock 7.Parse request [20:44:42]Sock 7.Check first char [20:44:42]Sock 7.First char is OK [20:44:42]request: POST /json_proto HTTP/1.0 [20:44:42]Method: POST [20:44:42]URL: /json_proto [20:44:42]Method is POST - this is cgi request [20:44:42]url: /json_proto [20:44:42]query_string will be loaded in cgi processing [20:44:42]execute_cgi json_proto POST (null) [20:44:42]execute_cgi path=json_proto method=POST [20:44:42]POST find Content-Length [20:44:42]Host: 172.17.45.7:8080 [20:44:42]Content-Length: 674 [20:44:42]Content-Type: application/json [20:44:42] [20:44:42]POST finish read [20:44:42]Found Content-Length = 674 [20:44:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:42]execute_script... [20:44: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)949804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:42]POST & json_proto [20:44:42]process_json_proto [20:44:42]json parsed OK: [20:44:42]protocol is kg_v1.0 [20:44:42]action value=close_receipt [20:44:42]process_action close_receipt [20:44:42]cmd_close_receipt [20:44:42]MH_GetDate [20:44:42]Write to MH i2c: F0 00 00 8E 7D FA [20:44:42]Write i2c OK [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: F0 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: F0 09 00 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: F0 09 00 8E 7D 00 42 FF A7 66 90 0F 3E 66 94 [20:44:42]GetLastDocTimeStamp 1722285626 [20:44:42]current date 1722285890 [20:44:42]FM_GetShiftState [20:44:42]SAM_PROTO_GetShiftState [20:44:42]wFMCommunicate request_size=4 [20:44:42]MH_SAM_APDU [20:44:42]CAPDU: 80 13 01 00 [20:44:42]Write to MH i2c: E2 08 00 8F 7D 80 13 01 00 00 00 00 00 89 [20:44:42]Write i2c OK [20:44:42]MH_I2C_Read... [20:44:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:42]Read from MH i2c: E2 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 0E 00 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: E2 0E 00 8F 7D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B7 [20:44:42]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:44:42]wFMCommunicate OK [20:44:42]SAM_PROTO_GetShiftState done [20:44:42]FM_GetShiftState done [20:44:42]opened in 1722211641 [20:44:42]opened+sec_in_day 1722298041 [20:44:42]quantity*price = 50063 [20:44:42]sum+1 = 50064 [20:44:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 287 29.07.2024 20:44 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118911 ФПД: 132129134997914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T204450&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118911&fm=132129134997914&tin=02508201610067®Number=0000000000092660&sum=50000 [20:44:43]StoreToDocumentArchive [20:44:43]shift 434 fd 118911 [20:44:43]save to /storage/0434/doc_00118911 [20:44:43]save last doc name /storage/0434/doc_00118911 to /storage/kkm_last_doc_name [20:44:43]save OK [20:44:43]Clear old archive folders... [20:44:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:44:43]tlvbuf is 01EE54E0 [20:44:43]SAM_PROTO_ClearQueue [20:44:43]wFMCommunicate request_size=4 [20:44:43]MH_SAM_APDU [20:44:43]CAPDU: 80 09 00 00 [20:44:43]Write to MH i2c: E2 08 00 9C 7D 80 09 00 00 00 00 00 00 8B [20:44:43]Write i2c OK [20:44:43]MH_I2C_Read... [20:44:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:43]Read from MH i2c: E2 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: E2 03 00 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: E2 03 00 9C 7D 00 90 00 8D [20:44:43]RAPDU: 90 00 [20:44:43]wFMCommunicate OK [20:44:43]SAM_PROTO_ClearQueue done [20:44:43]KKMCreateOFDPacket [20:44:43]OFDProtocolAddRootSTLVToBuf [20:44:43]FM_MakeSignedData [20:44:43]FM_MakeSignedData [20:44:43]SAM_PROTO_SignData [20:44:43]wFMCommunicate request_size=4 [20:44:43]MH_SAM_APDU [20:44:43]CAPDU: 80 0D 01 02 [20:44:43]Write to MH i2c: E2 08 00 9D 7D 80 0D 01 02 00 00 00 00 93 [20:44:43]Write i2c OK [20:44:43]MH_I2C_Read... [20:44:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:44]Read from MH i2c: E2 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: E2 03 00 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: E2 03 00 9D 7D 00 90 00 8E [20:44:44]RAPDU: 90 00 [20:44:44]wFMCommunicate OK [20:44:44]wFMCommunicate request_size=255 [20:44:44]MH_SAM_APDU [20:44:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 42 FF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7F D0 01 00 35 04 06 00 78 2B B6 27 [20:44:44]Write to MH i2c: E2 02 01 9E 7D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 42 FF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7F D0 01 00 35 04 06 00 78 2B B6 27 00 00 9C [20:44:44]Write i2c OK [20:44:44]MH_I2C_Read... [20:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:44]Read from MH i2c: E2 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: E2 03 00 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: E2 03 00 9E 7D 00 90 00 8F [20:44:44]RAPDU: 90 00 [20:44:44]wFMCommunicate OK [20:44:44]wFMCommunicate request_size=7 [20:44:44]MH_SAM_APDU [20:44:44]CAPDU: 80 0D 02 02 02 F1 9A [20:44:44]Write to MH i2c: E2 0A 00 9F 7D 80 0D 02 02 02 00 F1 9A 00 00 25 [20:44:44]Write i2c OK [20:44:44]MH_I2C_Read... [20:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:44]Read from MH i2c: E2 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: E2 03 00 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: E2 03 00 9F 7D 00 90 00 90 [20:44:44]RAPDU: 90 00 [20:44:44]wFMCommunicate OK [20:44:44]wFMCommunicate request_size=4 [20:44:44]MH_SAM_APDU [20:44:44]CAPDU: 80 0D 03 02 [20:44:44]Write to MH i2c: E2 08 00 A0 7D 80 0D 03 02 00 00 00 00 98 [20:44:44]Write i2c OK [20:44:44]MH_I2C_Read... [20:44:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:44]Read from MH i2c: E2 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: E2 0B 00 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: E2 0B 00 A0 7D 00 29 71 F3 CD 82 C6 1D 65 90 00 BD [20:44:44]RAPDU: 29 71 F3 CD 82 C6 1D 65 90 00 [20:44:44]wFMCommunicate OK [20:44:44]SAM_PROTO_SignData done [20:44:44]FM_MakeSignedData done [20:44:44]CreateOFDProtocolMessage [20:44:44]wFMCommunicate request_size=4 [20:44:44]MH_SAM_APDU [20:44:44]CAPDU: 80 11 00 00 [20:44:44]Write to MH i2c: E2 08 00 A1 7D 80 11 00 00 00 00 00 00 98 [20:44:44]Write i2c OK [20:44:44]MH_I2C_Read... [20:44:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:44]Read from MH i2c: E2 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: E2 17 00 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: E2 17 00 A1 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F3 [20:44:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:44:44]wFMCommunicate OK [20:44:44]CreateOFDProtocolMessage done [20:44:44]OFDSenderStorePacket 118911 [20:44:44]StoreOFDPacket docnum=118911 [20:44:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E6 D2 04 01 36 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 42 FF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7F D0 01 00 35 04 06 00 78 2B B6 27 F1 9A 29 71 F3 CD 82 C6 1D 65 [20:44:44]CheckFolder [20:44:44]dirname=/storage/ofd_packets [20:44:44]CheckFolder done [20:44:44]ProducePacketName [20:44:44]name=ofd_packets/00118911 [20:44:44]NVStorageSaveData ofd_packets/00118911 [20:44:44]File name is /storage/ofd_packets/00118911 [20:44:44]Write 298 bytes [20:44:44]NVStorageSaveData done [20:44:44]OFDSenderStorePacket done [20:44:44]KKMCreateOFDPacket done [20:44:44]NVStorageSaveData kkm_last_timestamp [20:44:44]File name is /storage/kkm_last_timestamp [20:44:44]Write 4 bytes [20:44:44]NVStorageSaveData done [20:44:44]ExternCall_PrintAddStr [20:44:44]wPrintStart [20:44:44]Write to MH i2c: 01 00 00 A2 7D 1F [20:44:44]Write i2c OK [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: 01 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: 01 07 00 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: 01 07 00 A2 7D 00 00 00 00 00 FF 0F 34 [20:44:44]RasterBufferAndPrint [20:44:44]line Счет N : (1)949804 [20:44:44]line ИНН: 02508201610067 [20:44:44]line Контрольно-Кассовый Чек [20:44:44]line ПРОДАЖА [20:44:44]line ТРК (МРК, ГНК) : 21 [20:44:44]line Товар: 2710194800 [20:44:44]line ДТ-К-5 [20:44:44]line 6.570 * 76.20 [20:44:44]line = 500.63 [20:44:44]line НДС 12% НСП 1% [20:44:44]line > о реализуемом товаре [20:44:44]line ОКРУГЛЕНИЕ: -0.63 [20:44:44]line ИТОГО: 500.00 [20:44:44]line Внесено: 500.00 [20:44:44]line СДАЧА: 0.00 [20:44:44]line НСП 1% : 4.43 [20:44:44]line НДС 12% : 53.16 [20:44:44]line Наличными: 500.00 [20:44:44]line Безнал.: 0.00 [20:44:44]line Место: АЗС № 134 "Партнер Нефть" [20:44:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:44:44]line СНО: Общий режим [20:44:44]line Чек 287 29.07.2024 20:44 [20:44:44]line Смена: 434 ФФД: 1.0 [20:44:44]line ЗНМ: 0300000044 [20:44:44]line РНМ: 0000000000092660 [20:44:44]line Версия ККМ: 001 [20:44:44]line ФМ: 0000000000874939 [20:44:44]line ФД: 118911 [20:44:44]line ФПД: 132129134997914 [20:44:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T204450&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118911&fm=132129134997914&tin=02508201610067®Number=0000000000092660&sum=50000 [20:44:44]OFD Sender: Processing packet 118911 [packets to send 86, broken 85] [20:44:44]ProducePacketName [20:44:44]name=ofd_packets/00118911 [20:44:44]OFD Sender: To server: pG, [20:44:44]CommunicateWithHost lk.salyk.kg:30040 [20:44:44]ConnectInit lk.salyk.kg [20:44:44]written 0, free lines is 4095 [20:44:44]Connected sock=10 [20:44:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E6 D2 04 01 36 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 42 FF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7F D0 01 00 35 04 06 00 78 2B B6 27 F1 9A 29 71 F3 CD 82 C6 1D 65 [20:44:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 43 87 47 00 F8 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7F D0 01 00 F4 03 04 00 CE AC A7 66 B6 04 01 00 00 BD 1A 27 CC C9 88 8B CA [20:44:44]CommunicateWithHost err = 0 [20:44:44]CheckOFDResponse [20:44:44]1017 (14) - 77093643461234 [20:44:44]1041 (16) - 0000000000874939 [20:44:44]1040 (4) - 118911 [20:44:44]1012 (4) - 29.07.2024 14:53 [20:44:44]1206 (1) - 0 [20:44:44]OFD Sender: Remove packet 118911 [20:44:44]ProducePacketName [20:44:44]name=ofd_packets/00118911 [20:44:44]NVStorageDeleteData [20:44:45]Write to MH i2c: 01 00 00 CC 7D 49 [20:44:45]Write i2c OK [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: 01 [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: 01 07 00 [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: 01 07 00 CC 7D 00 00 00 00 00 CC 0C 28 [20:44:45]RasterBufferAndPrint [20:44:45]line [20:44:45]line [20:44:45]line [20:44:45]line [20:44:45]line [20:44:45]written 0, free lines is 3283 [20:44:45]MH_Cut [20:44:45]Write to MH i2c: D1 01 00 D3 7D 01 22 [20:44:45]Write i2c OK [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: D1 [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: D1 01 00 [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: D1 01 00 D3 7D 00 21 [20:44:45]Write to MH i2c: 01 00 00 D4 7D 51 [20:44:45]Write i2c OK [20:44:45]MH_I2C_Read... [20:44:45]OFD Sender: No OFD packet to send [20:44:45]*** Cut start [20:44:45]*** Partial cut [20:44:45]*** CUTSNS_PIN = 1 [20:44:45]*** CUTSNS_PIN = 0 [20:44:46]*** Brake cut motor [20:44:46]Read from MH i2c: 01 [20:44:46]MH_I2C_Read... [20:44:46]*** Stop cut motor [20:44:46]*** Cut end [20:44:46]Read from MH i2c: 01 07 00 [20:44:46]MH_I2C_Read... [20:44:46]Read from MH i2c: 01 07 00 D4 7D 00 00 00 00 00 FF 0F 66 [20:44:46]process_action close_receipt done [20:44:46]requested_data is exist [20:44:46]produce_requested_data [20:44:46]requested_item fm.sn is exist - process it [20:44:46]wFMCommunicate request_size=4 [20:44:46]MH_SAM_APDU [20:44:46]CAPDU: 80 11 00 00 [20:44:46]Write to MH i2c: E2 08 00 D5 7D 80 11 00 00 00 00 00 00 CC [20:44:46]Write i2c OK [20:44:46]MH_I2C_Read... [20:44:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:46]Read from MH i2c: E2 [20:44:46]MH_I2C_Read... [20:44:46]Read from MH i2c: E2 17 00 [20:44:46]MH_I2C_Read... [20:44:46]Read from MH i2c: E2 17 00 D5 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 27 [20:44:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:44:46]wFMCommunicate OK [20:44:46]requested_item fd.num is exist - process it [20:44:46]SAM_PROTO_GetFieldsCounters [20:44:46]wFMCommunicate request_size=4 [20:44:46]MH_SAM_APDU [20:44:46]CAPDU: 80 13 00 00 [20:44:46]Write to MH i2c: E2 08 00 D6 7D 80 13 00 00 00 00 00 00 CF [20:44:46]Write i2c OK [20:44:46]MH_I2C_Read... [20:44:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:46]Read from MH i2c: E2 [20:44:46]MH_I2C_Read... [20:44:46]Read from MH i2c: E2 62 00 [20:44:46]MH_I2C_Read... [20:44:46]Read from MH i2c: E2 62 00 D6 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7F D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 59 [20:44: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7F D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:46]wFMCommunicate OK [20:44:46]SAM_PROTO_GetFieldsCounters done [20:44:46]requested_item shift.num is exist - process it [20:44:46]requested_item shift.opened is exist - process it [20:44:46]req_shift_opened [20:44:46]FM_GetShiftState [20:44:46]SAM_PROTO_GetShiftState [20:44:46]wFMCommunicate request_size=4 [20:44:46]MH_SAM_APDU [20:44:46]CAPDU: 80 13 01 00 [20:44:46]Write to MH i2c: E2 08 00 D7 7D 80 13 01 00 00 00 00 00 D1 [20:44:46]Write i2c OK [20:44:46]MH_I2C_Read... [20:44:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:46]Read from MH i2c: E2 [20:44:46]MH_I2C_Read... [20:44:46]Read from MH i2c: E2 0E 00 [20:44:46]MH_I2C_Read... [20:44:46]Read from MH i2c: E2 0E 00 D7 7D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 FF [20:44:46]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:44:46]wFMCommunicate OK [20:44:46]SAM_PROTO_GetShiftState done [20:44:46]FM_GetShiftState done [20:44:46]req_shift_opened done [20:44:46]requested_item shift.open_date is exist - process it [20:44:46]req_shift_open_date [20:44:46]req_shift_open_date done [20:44:46]produce_requested_data done [20:44:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118911,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [20:44:46]process_action_free close_receipt [20:44:46]json_value_free [20:44:46]json_value_free done [20:44:46]process_json_proto returns [20:44:46]Send response to host [20:44:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118911,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [20:44:46]free response buf [20:44:46]execute_script done [20:44:46]execute_script returns [20:44:46]free content buf [20:44:46]Sock 7.Close socket [20:44:46]Sock 7.Thread stoped [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:55]OFD Sender: No OFD packet to send [20:47:00]OFD Sender: No OFD packet to send [20:47:05]OFD Sender: No OFD packet to send [20:47:10]OFD Sender: No OFD packet to send [20:47:15]OFD Sender: No OFD packet to send [20:47:20]OFD Sender: No OFD packet to send [20:47:25]OFD Sender: No OFD packet to send [20:47:30]OFD Sender: No OFD packet to send [20:47:35]OFD Sender: No OFD packet to send [20:47:40]OFD Sender: No OFD packet to send [20:47:45]OFD Sender: No OFD packet to send [20:47:50]OFD Sender: No OFD packet to send [20:47:55]OFD Sender: No OFD packet to send [20:48:00]OFD Sender: No OFD packet to send [20:48:05]OFD Sender: No OFD packet to send [20:48:10]OFD Sender: No OFD packet to send [20:48:15]OFD Sender: No OFD packet to send [20:48:20]OFD Sender: No OFD packet to send [20:48:25]OFD Sender: No OFD packet to send [20:48:30]OFD Sender: No OFD packet to send [20:48:35]OFD Sender: No OFD packet to send [20:48:40]OFD Sender: No OFD packet to send [20:48:45]OFD Sender: No OFD packet to send [20:48:50]OFD Sender: No OFD packet to send [20:48:55]OFD Sender: No OFD packet to send [20:49:00]OFD Sender: No OFD packet to send [20:49:03]accept exits with 9 [20:49:03]New connection [20:49:03]New thread 3067383140 created [20:49:03]Thread 3067239780 joined [20:49:03]Waiting for new connection... [20:49:03] Sock 9.Parse request [20:49:03]Sock 9.Check first char [20:49:03]Sock 9.First char is OK [20:49:03]request: POST /json_proto HTTP/1.0 [20:49:03]Method: POST [20:49:03]URL: /json_proto [20:49:03]Method is POST - this is cgi request [20:49:03]url: /json_proto [20:49:03]query_string will be loaded in cgi processing [20:49:03]execute_cgi json_proto POST (null) [20:49:03]execute_cgi path=json_proto method=POST [20:49:03]POST find Content-Length [20:49:03]Host: 172.17.45.7:8080 [20:49:03]Content-Length: 820 [20:49:03]Content-Type: application/json [20:49:03] [20:49:03]POST finish read [20:49:03]Found Content-Length = 820 [20:49:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 8000.00, "payments": [ { "type": 1, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:03]execute_script... [20:49: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)949803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 104.990, "sum" : 8000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 8000.00, "payments": [ { "type": 1, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:03]POST & json_proto [20:49:03]process_json_proto [20:49:03]json parsed OK: [20:49:03]protocol is kg_v1.0 [20:49:03]action value=close_receipt [20:49:03]process_action close_receipt [20:49:03]cmd_close_receipt [20:49:03]MH_GetDate [20:49:03]Write to MH i2c: F0 00 00 D8 7D 44 [20:49:03]Write i2c OK [20:49:03]MH_I2C_Read... [20:49:03]Read from MH i2c: F0 [20:49:03]MH_I2C_Read... [20:49:03]Read from MH i2c: F0 09 00 [20:49:03]MH_I2C_Read... [20:49:03]Read from MH i2c: F0 09 00 D8 7D 00 47 00 A8 66 90 0F 3E 66 E5 [20:49:03]GetLastDocTimeStamp 1722285890 [20:49:03]current date 1722286151 [20:49:03]FM_GetShiftState [20:49:03]SAM_PROTO_GetShiftState [20:49:03]wFMCommunicate request_size=4 [20:49:03]MH_SAM_APDU [20:49:03]CAPDU: 80 13 01 00 [20:49:03]Write to MH i2c: E2 08 00 D9 7D 80 13 01 00 00 00 00 00 D3 [20:49:03]Write i2c OK [20:49:03]MH_I2C_Read... [20:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:03]Read from MH i2c: E2 [20:49:03]MH_I2C_Read... [20:49:03]Read from MH i2c: E2 0E 00 [20:49:03]MH_I2C_Read... [20:49:03]Read from MH i2c: E2 0E 00 D9 7D 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 01 [20:49:03]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:49:03]wFMCommunicate OK [20:49:03]SAM_PROTO_GetShiftState done [20:49:03]FM_GetShiftState done [20:49:03]opened in 1722211641 [20:49:03]opened+sec_in_day 1722298041 [20:49:03]quantity*price = 800023 [20:49:03]sum+1 = 800025 [20:49:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 8000.00 НСП 1% : 70.80 НДС 12% : 849.58 Наличными: 0.00 Безнал.: 8000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 288 29.07.2024 20:49 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118912 ФПД: 223370196622556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T204911&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118912&fm=223370196622556&tin=02508201610067®Number=0000000000092660&sum=800000 [20:49:04]StoreToDocumentArchive [20:49:04]shift 434 fd 118912 [20:49:04]save to /storage/0434/doc_00118912 [20:49:04]save last doc name /storage/0434/doc_00118912 to /storage/kkm_last_doc_name [20:49:04]save OK [20:49:04]Clear old archive folders... [20:49:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:49:04]tlvbuf is 01FB61C0 [20:49:04]SAM_PROTO_ClearQueue [20:49:04]wFMCommunicate request_size=4 [20:49:04]MH_SAM_APDU [20:49:04]CAPDU: 80 09 00 00 [20:49:04]Write to MH i2c: E2 08 00 E6 7D 80 09 00 00 00 00 00 00 D5 [20:49:04]Write i2c OK [20:49:04]MH_I2C_Read... [20:49:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:49:04]Read from MH i2c: E2 [20:49:04]MH_I2C_Read... [20:49:04]Read from MH i2c: E2 03 00 [20:49:04]MH_I2C_Read... [20:49:04]Read from MH i2c: E2 03 00 E6 7D 00 90 00 D7 [20:49:04]RAPDU: 90 00 [20:49:04]wFMCommunicate OK [20:49:04]SAM_PROTO_ClearQueue done [20:49:04]KKMCreateOFDPacket [20:49:04]OFDProtocolAddRootSTLVToBuf [20:49:04]FM_MakeSignedData [20:49:04]FM_MakeSignedData [20:49:04]SAM_PROTO_SignData [20:49:04]wFMCommunicate request_size=4 [20:49:04]MH_SAM_APDU [20:49:04]CAPDU: 80 0D 01 02 [20:49:04]Write to MH i2c: E2 08 00 E7 7D 80 0D 01 02 00 00 00 00 DD [20:49:04]Write i2c OK [20:49:04]MH_I2C_Read... [20:49:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:49:05]Read from MH i2c: E2 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: E2 03 00 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: E2 03 00 E7 7D 00 90 00 D8 [20:49:05]RAPDU: 90 00 [20:49:05]wFMCommunicate OK [20:49:05]wFMCommunicate request_size=255 [20:49:05]MH_SAM_APDU [20:49:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 47 00 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 D0 01 00 35 04 06 00 CB 27 6D 39 [20:49:05]Write to MH i2c: E2 02 01 E8 7D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 47 00 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 D0 01 00 35 04 06 00 CB 27 6D 39 00 00 B9 [20:49:05]Write i2c OK [20:49:05]MH_I2C_Read... [20:49:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:05]Read from MH i2c: E2 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: E2 03 00 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: E2 03 00 E8 7D 00 90 00 D9 [20:49:05]RAPDU: 90 00 [20:49:05]wFMCommunicate OK [20:49:05]wFMCommunicate request_size=7 [20:49:05]MH_SAM_APDU [20:49:05]CAPDU: 80 0D 02 02 02 1C DC [20:49:05]Write to MH i2c: E2 0A 00 E9 7D 80 0D 02 02 02 00 1C DC 00 00 DC [20:49:05]Write i2c OK [20:49:05]MH_I2C_Read... [20:49:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:05]Read from MH i2c: E2 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: E2 03 00 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: E2 03 00 E9 7D 00 90 00 DA [20:49:05]RAPDU: 90 00 [20:49:05]wFMCommunicate OK [20:49:05]wFMCommunicate request_size=4 [20:49:05]MH_SAM_APDU [20:49:05]CAPDU: 80 0D 03 02 [20:49:05]Write to MH i2c: E2 08 00 EA 7D 80 0D 03 02 00 00 00 00 E2 [20:49:05]Write i2c OK [20:49:05]MH_I2C_Read... [20:49:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:49:05]Read from MH i2c: E2 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: E2 0B 00 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: E2 0B 00 EA 7D 00 0B C6 FF D5 5B 9C 72 E6 90 00 D7 [20:49:05]RAPDU: 0B C6 FF D5 5B 9C 72 E6 90 00 [20:49:05]wFMCommunicate OK [20:49:05]SAM_PROTO_SignData done [20:49:05]FM_MakeSignedData done [20:49:05]CreateOFDProtocolMessage [20:49:05]wFMCommunicate request_size=4 [20:49:05]MH_SAM_APDU [20:49:05]CAPDU: 80 11 00 00 [20:49:05]Write to MH i2c: E2 08 00 EB 7D 80 11 00 00 00 00 00 00 E2 [20:49:05]Write i2c OK [20:49:05]MH_I2C_Read... [20:49:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:05]Read from MH i2c: E2 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: E2 17 00 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: E2 17 00 EB 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3D [20:49:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:49:05]wFMCommunicate OK [20:49:05]CreateOFDProtocolMessage done [20:49:05]OFDSenderStorePacket 118912 [20:49:05]StoreOFDPacket docnum=118912 [20:49:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 8E D6 04 01 04 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 47 00 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 D0 01 00 35 04 06 00 CB 27 6D 39 1C DC 0B C6 FF D5 5B 9C 72 E6 [20:49:05]CheckFolder [20:49:05]dirname=/storage/ofd_packets [20:49:05]CheckFolder done [20:49:05]ProducePacketName [20:49:05]name=ofd_packets/00118912 [20:49:05]NVStorageSaveData ofd_packets/00118912 [20:49:05]File name is /storage/ofd_packets/00118912 [20:49:05]Write 298 bytes [20:49:05]NVStorageSaveData done [20:49:05]OFDSenderStorePacket done [20:49:05]KKMCreateOFDPacket done [20:49:05]NVStorageSaveData kkm_last_timestamp [20:49:05]File name is /storage/kkm_last_timestamp [20:49:05]Write 4 bytes [20:49:05]NVStorageSaveData done [20:49:05]ExternCall_PrintAddStr [20:49:05]wPrintStart [20:49:05]Write to MH i2c: 01 00 00 EC 7D 69 [20:49:05]Write i2c OK [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: 01 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: 01 07 00 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: 01 07 00 EC 7D 00 00 00 00 00 FF 0F 7E [20:49:05]RasterBufferAndPrint [20:49:05]line Счет N : (1)949803 [20:49:05]line ИНН: 02508201610067 [20:49:05]line Контрольно-Кассовый Чек [20:49:05]line ПРОДАЖА [20:49:05]line ТРК (МРК, ГНК) : 34 [20:49:05]line Товар: 2710194800 [20:49:05]line ДТ-К-5 [20:49:05]line 104.990 * 76.20 [20:49:05]line = 8000.24 [20:49:05]line НДС 12% НСП 1% [20:49:05]line > о реализуемом товаре [20:49:05]line ОКРУГЛЕНИЕ: -0.24 [20:49:05]line ИТОГО: 8000.00 [20:49:05]line НСП 1% : 70.80 [20:49:05]line НДС 12% : 849.58 [20:49:05]line Наличными: 0.00 [20:49:05]line Безнал.: 8000.00 [20:49:05]line Место: АЗС № 134 "Партнер Нефть" [20:49:05]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:49:05]line СНО: Общий режим [20:49:05]line Чек 288 29.07.2024 20:49 [20:49:05]line Смена: 434 ФФД: 1.0 [20:49:05]line ЗНМ: 0300000044 [20:49:05]line РНМ: 0000000000092660 [20:49:05]line Версия ККМ: 001 [20:49:05]line Платежная система: O! деньги [20:49:05]line ФМ: 0000000000874939 [20:49:05]line ФД: 118912 [20:49:05]line ФПД: 223370196622556 [20:49:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T204911&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118912&fm=223370196622556&tin=02508201610067®Number=0000000000092660&sum=800000 [20:49:05]OFD Sender: Processing packet 118912 [packets to send 86, broken 85] [20:49:05]ProducePacketName [20:49:05]name=ofd_packets/00118912 [20:49:05]OFD Sender: To server: pG, [20:49:05]CommunicateWithHost lk.salyk.kg:30040 [20:49:05]ConnectInit lk.salyk.kg [20:49:05]written 0, free lines is 4095 [20:49:05]Connected sock=10 [20:49:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 8E D6 04 01 04 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 47 00 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 D0 01 00 35 04 06 00 CB 27 6D 39 1C DC 0B C6 FF D5 5B 9C 72 E6 [20:49:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CF 19 47 00 DB 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 34 39 33 39 10 04 04 00 80 D0 01 00 F4 03 04 00 D4 AD A7 66 B6 04 01 00 00 43 33 B1 26 C8 C0 D0 B0 [20:49:06]CommunicateWithHost err = 0 [20:49:06]CheckOFDResponse [20:49:06]1017 (14) - 77093643461234 [20:49:06]1041 (16) - 0000000000874939 [20:49:06]1040 (4) - 118912 [20:49:06]1012 (4) - 29.07.2024 14:57 [20:49:06]1206 (1) - 0 [20:49:06]OFD Sender: Remove packet 118912 [20:49:06]ProducePacketName [20:49:06]name=ofd_packets/00118912 [20:49:06]NVStorageDeleteData [20:49:06]Write to MH i2c: 01 00 00 16 7E 94 [20:49:06]Write i2c OK [20:49:06]MH_I2C_Read... [20:49:06]Read from MH i2c: 01 [20:49:06]MH_I2C_Read... [20:49:06]Read from MH i2c: 01 07 00 [20:49:06]MH_I2C_Read... [20:49:06]Read from MH i2c: 01 07 00 16 7E 00 00 00 00 00 E0 0C 87 [20:49:06]RasterBufferAndPrint [20:49:06]line [20:49:06]line [20:49:06]line [20:49:06]line [20:49:06]line [20:49:06]written 0, free lines is 3302 [20:49:06]MH_Cut [20:49:06]Write to MH i2c: D1 01 00 1D 7E 01 6D [20:49:06]Write i2c OK [20:49:06]MH_I2C_Read... [20:49:06]Read from MH i2c: D1 [20:49:06]MH_I2C_Read... [20:49:06]Read from MH i2c: D1 01 00 [20:49:06]MH_I2C_Read... [20:49:06]Read from MH i2c: D1 01 00 1D 7E 00 6C [20:49:06]Write to MH i2c: 01 00 00 1E 7E 9C [20:49:06]Write i2c OK [20:49:06]MH_I2C_Read... [20:49:06]OFD Sender: No OFD packet to send [20:49:06]*** Cut start [20:49:06]*** Partial cut [20:49:06]*** CUTSNS_PIN = 1 [20:49:07]*** CUTSNS_PIN = 0 [20:49:07]*** Brake cut motor [20:49:07]Read from MH i2c: 01 [20:49:07]MH_I2C_Read... [20:49:07]*** Stop cut motor [20:49:07]*** Cut end [20:49:07]Read from MH i2c: 01 07 00 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: 01 07 00 1E 7E 00 00 00 00 00 FF 0F B1 [20:49:07]process_action close_receipt done [20:49:07]requested_data is exist [20:49:07]produce_requested_data [20:49:07]requested_item fm.sn is exist - process it [20:49:07]wFMCommunicate request_size=4 [20:49:07]MH_SAM_APDU [20:49:07]CAPDU: 80 11 00 00 [20:49:07]Write to MH i2c: E2 08 00 1F 7E 80 11 00 00 00 00 00 00 17 [20:49:07]Write i2c OK [20:49:07]MH_I2C_Read... [20:49:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:07]Read from MH i2c: E2 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: E2 17 00 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: E2 17 00 1F 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 72 [20:49:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:49:07]wFMCommunicate OK [20:49:07]requested_item fd.num is exist - process it [20:49:07]SAM_PROTO_GetFieldsCounters [20:49:07]wFMCommunicate request_size=4 [20:49:07]MH_SAM_APDU [20:49:07]CAPDU: 80 13 00 00 [20:49:07]Write to MH i2c: E2 08 00 20 7E 80 13 00 00 00 00 00 00 1A [20:49:07]Write i2c OK [20:49:07]MH_I2C_Read... [20:49:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:07]Read from MH i2c: E2 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: E2 62 00 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: E2 62 00 20 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 80 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [20:49: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 80 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:49:07]wFMCommunicate OK [20:49:07]SAM_PROTO_GetFieldsCounters done [20:49:07]requested_item shift.num is exist - process it [20:49:07]requested_item shift.opened is exist - process it [20:49:07]req_shift_opened [20:49:07]FM_GetShiftState [20:49:07]SAM_PROTO_GetShiftState [20:49:07]wFMCommunicate request_size=4 [20:49:07]MH_SAM_APDU [20:49:07]CAPDU: 80 13 01 00 [20:49:07]Write to MH i2c: E2 08 00 21 7E 80 13 01 00 00 00 00 00 1C [20:49:07]Write i2c OK [20:49:07]MH_I2C_Read... [20:49:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:07]Read from MH i2c: E2 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: E2 0E 00 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: E2 0E 00 21 7E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 4A [20:49:07]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:49:07]wFMCommunicate OK [20:49:07]SAM_PROTO_GetShiftState done [20:49:07]FM_GetShiftState done [20:49:07]req_shift_opened done [20:49:07]requested_item shift.open_date is exist - process it [20:49:07]req_shift_open_date [20:49:07]req_shift_open_date done [20:49:07]produce_requested_data done [20:49:07]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118912,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [20:49:07]process_action_free close_receipt [20:49:07]json_value_free [20:49:07]json_value_free done [20:49:07]process_json_proto returns [20:49:07]Send response to host [20:49:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118912,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [20:49:07]free response buf [20:49:07]execute_script done [20:49:07]execute_script returns [20:49:07]free content buf [20:49:07]Sock 9.Close socket [20:49:07]Sock 9.Thread stoped [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:06]OFD Sender: No OFD packet to send [20:50:11]OFD Sender: No OFD packet to send [20:50:16]OFD Sender: No OFD packet to send [20:50:21]OFD Sender: No OFD packet to send [20:50:26]OFD Sender: No OFD packet to send [20:50:31]OFD Sender: No OFD packet to send [20:50:36]OFD Sender: No OFD packet to send [20:50:41]OFD Sender: No OFD packet to send [20:50:46]OFD Sender: No OFD packet to send [20:50:51]OFD Sender: No OFD packet to send [20:50:56]OFD Sender: No OFD packet to send [20:51:01]OFD Sender: No OFD packet to send [20:51:06]OFD Sender: No OFD packet to send [20:51:11]OFD Sender: No OFD packet to send [20:51:16]OFD Sender: No OFD packet to send [20:51:21]OFD Sender: No OFD packet to send [20:51:26]OFD Sender: No OFD packet to send [20:51:31]OFD Sender: No OFD packet to send [20:51:36]OFD Sender: No OFD packet to send [20:51:41]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:42]accept exits with 7 [20:53:42]New connection [20:53:42]New thread 3067239780 created [20:53:42]Thread 3067383140 joined [20:53:42]Waiting for new connection... [20:53:42] Sock 7.Parse request [20:53:42]Sock 7.Check first char [20:53:42]Sock 7.First char is OK [20:53:42]request: POST /json_proto HTTP/1.0 [20:53:42]Method: POST [20:53:42]URL: /json_proto [20:53:42]Method is POST - this is cgi request [20:53:42]url: /json_proto [20:53:42]query_string will be loaded in cgi processing [20:53:42]execute_cgi json_proto POST (null) [20:53:42]execute_cgi path=json_proto method=POST [20:53:42]POST find Content-Length [20:53:42]Host: 172.17.45.7:8080 [20:53:42]Content-Length: 677 [20:53:42]Content-Type: application/json [20:53:42] [20:53:42]POST finish read [20:53:42]Found Content-Length = 677 [20:53:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:42]execute_script... [20:53: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)949805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:42]POST & json_proto [20:53:42]process_json_proto [20:53:42]json parsed OK: [20:53:42]protocol is kg_v1.0 [20:53:42]action value=close_receipt [20:53:42]process_action close_receipt [20:53:42]cmd_close_receipt [20:53:42]MH_GetDate [20:53:42]Write to MH i2c: F0 00 00 22 7E 8F [20:53:42]Write i2c OK [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: F0 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: F0 09 00 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: F0 09 00 22 7E 00 5D 01 A8 66 90 0F 3E 66 47 [20:53:42]GetLastDocTimeStamp 1722286151 [20:53:42]current date 1722286429 [20:53:42]FM_GetShiftState [20:53:42]SAM_PROTO_GetShiftState [20:53:42]wFMCommunicate request_size=4 [20:53:42]MH_SAM_APDU [20:53:42]CAPDU: 80 13 01 00 [20:53:42]Write to MH i2c: E2 08 00 23 7E 80 13 01 00 00 00 00 00 1E [20:53:42]Write i2c OK [20:53:42]MH_I2C_Read... [20:53:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:42]Read from MH i2c: E2 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: E2 0E 00 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: E2 0E 00 23 7E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 4C [20:53:42]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:53:42]wFMCommunicate OK [20:53:42]SAM_PROTO_GetShiftState done [20:53:42]FM_GetShiftState done [20:53:42]opened in 1722211641 [20:53:42]opened+sec_in_day 1722298041 [20:53:42]quantity*price = 30035 [20:53:42]sum+1 = 30036 [20:53:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 289 29.07.2024 20:53 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118913 ФПД: 246218578386938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T205349&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118913&fm=246218578386938&tin=02508201610067®Number=0000000000092660&sum=30000 [20:53:43]StoreToDocumentArchive [20:53:43]shift 434 fd 118913 [20:53:43]save to /storage/0434/doc_00118913 [20:53:43]save last doc name /storage/0434/doc_00118913 to /storage/kkm_last_doc_name [20:53:43]save OK [20:53:43]Clear old archive folders... [20:53:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:53:43]tlvbuf is 01FC9AF0 [20:53:43]SAM_PROTO_ClearQueue [20:53:43]wFMCommunicate request_size=4 [20:53:43]MH_SAM_APDU [20:53:43]CAPDU: 80 09 00 00 [20:53:43]Write to MH i2c: E2 08 00 30 7E 80 09 00 00 00 00 00 00 20 [20:53:43]Write i2c OK [20:53:43]MH_I2C_Read... [20:53:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:43]Read from MH i2c: E2 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 03 00 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 03 00 30 7E 00 90 00 22 [20:53:43]RAPDU: 90 00 [20:53:43]wFMCommunicate OK [20:53:43]SAM_PROTO_ClearQueue done [20:53:43]KKMCreateOFDPacket [20:53:43]OFDProtocolAddRootSTLVToBuf [20:53:43]FM_MakeSignedData [20:53:43]FM_MakeSignedData [20:53:43]SAM_PROTO_SignData [20:53:43]wFMCommunicate request_size=4 [20:53:43]MH_SAM_APDU [20:53:43]CAPDU: 80 0D 01 02 [20:53:43]Write to MH i2c: E2 08 00 31 7E 80 0D 01 02 00 00 00 00 28 [20:53:43]Write i2c OK [20:53:43]MH_I2C_Read... [20:53:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:43]Read from MH i2c: E2 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 03 00 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 03 00 31 7E 00 90 00 23 [20:53:43]RAPDU: 90 00 [20:53:43]wFMCommunicate OK [20:53:43]wFMCommunicate request_size=255 [20:53:43]MH_SAM_APDU [20:53:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 5D 01 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 81 D0 01 00 35 04 06 00 DF [20:53:43]Write to MH i2c: E2 02 01 32 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 5D 01 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 81 D0 01 00 35 04 06 00 DF 00 00 3D [20:53:43]Write i2c OK [20:53:43]MH_I2C_Read... [20:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:43]Read from MH i2c: E2 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 03 00 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: E2 03 00 32 7E 00 90 00 24 [20:53:43]RAPDU: 90 00 [20:53:43]wFMCommunicate OK [20:53:43]wFMCommunicate request_size=10 [20:53:43]MH_SAM_APDU [20:53:43]CAPDU: 80 0D 02 02 05 EF 3A E6 DF FA [20:53:43]Write to MH i2c: E2 0D 00 33 7E 80 0D 02 02 05 00 EF 3A E6 DF FA 00 00 1D [20:53:43]Write i2c OK [20:53:43]MH_I2C_Read... [20:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:44]Read from MH i2c: E2 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: E2 03 00 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: E2 03 00 33 7E 00 90 00 25 [20:53:44]RAPDU: 90 00 [20:53:44]wFMCommunicate OK [20:53:44]wFMCommunicate request_size=4 [20:53:44]MH_SAM_APDU [20:53:44]CAPDU: 80 0D 03 02 [20:53:44]Write to MH i2c: E2 08 00 34 7E 80 0D 03 02 00 00 00 00 2D [20:53:44]Write i2c OK [20:53:44]MH_I2C_Read... [20:53:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:44]Read from MH i2c: E2 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: E2 0B 00 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: E2 0B 00 34 7E 00 F9 01 50 3F 04 7A AD 6A 90 00 4C [20:53:44]RAPDU: F9 01 50 3F 04 7A AD 6A 90 00 [20:53:44]wFMCommunicate OK [20:53:44]SAM_PROTO_SignData done [20:53:44]FM_MakeSignedData done [20:53:44]CreateOFDProtocolMessage [20:53:44]wFMCommunicate request_size=4 [20:53:44]MH_SAM_APDU [20:53:44]CAPDU: 80 11 00 00 [20:53:44]Write to MH i2c: E2 08 00 35 7E 80 11 00 00 00 00 00 00 2D [20:53:44]Write i2c OK [20:53:44]MH_I2C_Read... [20:53:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:44]Read from MH i2c: E2 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: E2 17 00 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: E2 17 00 35 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 88 [20:53:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:53:44]wFMCommunicate OK [20:53:44]CreateOFDProtocolMessage done [20:53:44]OFDSenderStorePacket 118913 [20:53:44]StoreOFDPacket docnum=118913 [20:53:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 38 55 07 01 AD D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 5D 01 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 81 D0 01 00 35 04 06 00 DF EF 3A E6 DF FA F9 01 50 3F 04 7A AD 6A [20:53:44]CheckFolder [20:53:44]dirname=/storage/ofd_packets [20:53:44]CheckFolder done [20:53:44]ProducePacketName [20:53:44]name=ofd_packets/00118913 [20:53:44]NVStorageSaveData ofd_packets/00118913 [20:53:44]File name is /storage/ofd_packets/00118913 [20:53:44]Write 301 bytes [20:53:44]NVStorageSaveData done [20:53:44]OFDSenderStorePacket done [20:53:44]KKMCreateOFDPacket done [20:53:44]NVStorageSaveData kkm_last_timestamp [20:53:44]File name is /storage/kkm_last_timestamp [20:53:44]Write 4 bytes [20:53:44]NVStorageSaveData done [20:53:44]ExternCall_PrintAddStr [20:53:44]wPrintStart [20:53:44]Write to MH i2c: 01 00 00 36 7E B4 [20:53:44]Write i2c OK [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: 01 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: 01 07 00 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: 01 07 00 36 7E 00 00 00 00 00 FF 0F C9 [20:53:44]RasterBufferAndPrint [20:53:44]line Счет N : (1)949805 [20:53:44]line ИНН: 02508201610067 [20:53:44]line Контрольно-Кассовый Чек [20:53:44]line ПРОДАЖА [20:53:44]line ТРК (МРК, ГНК) : 51 [20:53:44]line Товар: 2710124130 [20:53:44]line Аи-92-К-4 [20:53:44]line 4.430 * 67.80 [20:53:44]line = 300.35 [20:53:44]line НДС 12% НСП 1% [20:53:44]line > о реализуемом товаре [20:53:44]line ОКРУГЛЕНИЕ: -0.35 [20:53:44]line ИТОГО: 300.00 [20:53:44]line Внесено: 300.00 [20:53:44]line СДАЧА: 0.00 [20:53:44]line НСП 1% : 2.66 [20:53:44]line НДС 12% : 31.90 [20:53:44]line Наличными: 300.00 [20:53:44]line Безнал.: 0.00 [20:53:44]line Место: АЗС № 134 "Партнер Нефть" [20:53:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:53:44]line СНО: Общий режим [20:53:44]line Чек 289 29.07.2024 20:53 [20:53:44]line Смена: 434 ФФД: 1.0 [20:53:44]line ЗНМ: 0300000044 [20:53:44]line РНМ: 0000000000092660 [20:53:44]line Версия ККМ: 001 [20:53:44]line ФМ: 0000000000874939 [20:53:44]line ФД: 118913 [20:53:44]line ФПД: 246218578386938 [20:53:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T205349&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118913&fm=246218578386938&tin=02508201610067®Number=0000000000092660&sum=30000 [20:53:44]written 0, free lines is 4095 [20:53:44]OFD Sender: Processing packet 118913 [packets to send 86, broken 85] [20:53:44]ProducePacketName [20:53:44]name=ofd_packets/00118913 [20:53:44]OFD Sender: To server: pG, [20:53:44]CommunicateWithHost lk.salyk.kg:30040 [20:53:44]ConnectInit lk.salyk.kg [20:53:44]Connected sock=10 [20:53:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 38 55 07 01 AD D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 5D 01 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 81 D0 01 00 35 04 06 00 DF EF 3A E6 DF FA F9 01 50 3F 04 7A AD 6A [20:53:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9F B3 47 00 E5 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 34 39 33 39 10 04 04 00 81 D0 01 00 F4 03 04 00 EA AE A7 66 B6 04 01 00 00 B2 57 1B 31 7C 34 E0 02 [20:53:44]CommunicateWithHost err = 0 [20:53:44]CheckOFDResponse [20:53:44]1017 (14) - 77093643461234 [20:53:44]1041 (16) - 0000000000874939 [20:53:44]1040 (4) - 118913 [20:53:44]1012 (4) - 29.07.2024 15:02 [20:53:44]1206 (1) - 0 [20:53:44]OFD Sender: Remove packet 118913 [20:53:44]ProducePacketName [20:53:44]name=ofd_packets/00118913 [20:53:44]NVStorageDeleteData [20:53:44]Write to MH i2c: 01 00 00 60 7E DE [20:53:44]Write i2c OK [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: 01 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: 01 07 00 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: 01 07 00 60 7E 00 00 00 00 00 D5 0C C6 [20:53:44]RasterBufferAndPrint [20:53:44]line [20:53:44]line [20:53:44]line [20:53:44]line [20:53:44]line [20:53:44]written 0, free lines is 3293 [20:53:44]MH_Cut [20:53:44]Write to MH i2c: D1 01 00 67 7E 01 B7 [20:53:44]Write i2c OK [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: D1 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: D1 01 00 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: D1 01 00 67 7E 00 B6 [20:53:44]Write to MH i2c: 01 00 00 68 7E E6 [20:53:44]Write i2c OK [20:53:44]MH_I2C_Read... [20:53:45]OFD Sender: No OFD packet to send [20:53:45]*** Cut start [20:53:45]*** Partial cut [20:53:45]*** CUTSNS_PIN = 1 [20:53:45]*** CUTSNS_PIN = 0 [20:53:45]*** Brake cut motor [20:53:46]Read from MH i2c: 01 [20:53:46]MH_I2C_Read... [20:53:46]*** Stop cut motor [20:53:46]*** Cut end [20:53:46]Read from MH i2c: 01 07 00 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: 01 07 00 68 7E 00 00 00 00 00 FF 0F FB [20:53:46]process_action close_receipt done [20:53:46]requested_data is exist [20:53:46]produce_requested_data [20:53:46]requested_item fm.sn is exist - process it [20:53:46]wFMCommunicate request_size=4 [20:53:46]MH_SAM_APDU [20:53:46]CAPDU: 80 11 00 00 [20:53:46]Write to MH i2c: E2 08 00 69 7E 80 11 00 00 00 00 00 00 61 [20:53:46]Write i2c OK [20:53:46]MH_I2C_Read... [20:53:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:46]Read from MH i2c: E2 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: E2 17 00 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: E2 17 00 69 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BC [20:53:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:53:46]wFMCommunicate OK [20:53:46]requested_item fd.num is exist - process it [20:53:46]SAM_PROTO_GetFieldsCounters [20:53:46]wFMCommunicate request_size=4 [20:53:46]MH_SAM_APDU [20:53:46]CAPDU: 80 13 00 00 [20:53:46]Write to MH i2c: E2 08 00 6A 7E 80 13 00 00 00 00 00 00 64 [20:53:46]Write i2c OK [20:53:46]MH_I2C_Read... [20:53:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:46]Read from MH i2c: E2 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: E2 62 00 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: E2 62 00 6A 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 81 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [20:53: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 81 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:53:46]wFMCommunicate OK [20:53:46]SAM_PROTO_GetFieldsCounters done [20:53:46]requested_item shift.num is exist - process it [20:53:46]requested_item shift.opened is exist - process it [20:53:46]req_shift_opened [20:53:46]FM_GetShiftState [20:53:46]SAM_PROTO_GetShiftState [20:53:46]wFMCommunicate request_size=4 [20:53:46]MH_SAM_APDU [20:53:46]CAPDU: 80 13 01 00 [20:53:46]Write to MH i2c: E2 08 00 6B 7E 80 13 01 00 00 00 00 00 66 [20:53:46]Write i2c OK [20:53:46]MH_I2C_Read... [20:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:46]Read from MH i2c: E2 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: E2 0E 00 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: E2 0E 00 6B 7E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 94 [20:53:46]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:53:46]wFMCommunicate OK [20:53:46]SAM_PROTO_GetShiftState done [20:53:46]FM_GetShiftState done [20:53:46]req_shift_opened done [20:53:46]requested_item shift.open_date is exist - process it [20:53:46]req_shift_open_date [20:53:46]req_shift_open_date done [20:53:46]produce_requested_data done [20:53:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118913,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [20:53:46]process_action_free close_receipt [20:53:46]json_value_free [20:53:46]json_value_free done [20:53:46]process_json_proto returns [20:53:46]Send response to host [20:53:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118913,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [20:53:46]free response buf [20:53:46]execute_script done [20:53:46]execute_script returns [20:53:46]free content buf [20:53:46]Sock 7.Close socket [20:53:46]Sock 7.Thread stoped [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]OFD Sender: No OFD packet to send [20:54:02]accept exits with 9 [20:54:02]New connection [20:54:02]New thread 3067383140 created [20:54:02]Thread 3067239780 joined [20:54:02]Waiting for new connection... [20:54:02] Sock 9.Parse request [20:54:02]Sock 9.Check first char [20:54:02]Sock 9.First char is OK [20:54:02]request: POST /json_proto HTTP/1.0 [20:54:02]Method: POST [20:54:02]URL: /json_proto [20:54:02]Method is POST - this is cgi request [20:54:02]url: /json_proto [20:54:02]query_string will be loaded in cgi processing [20:54:02]execute_cgi json_proto POST (null) [20:54:02]execute_cgi path=json_proto method=POST [20:54:02]POST find Content-Length [20:54:02]Host: 172.17.45.7:8080 [20:54:02]Content-Length: 677 [20:54:02]Content-Type: application/json [20:54:02] [20:54:02]POST finish read [20:54:02]Found Content-Length = 677 [20:54:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:02]execute_script... [20:54:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:02]POST & json_proto [20:54:02]process_json_proto [20:54:02]json parsed OK: [20:54:02]protocol is kg_v1.0 [20:54:02]action value=close_receipt [20:54:02]process_action close_receipt [20:54:02]cmd_close_receipt [20:54:02]MH_GetDate [20:54:02]Write to MH i2c: F0 00 00 6C 7E D9 [20:54:02]Write i2c OK [20:54:02]MH_I2C_Read... [20:54:02]Read from MH i2c: F0 [20:54:02]MH_I2C_Read... [20:54:02]Read from MH i2c: F0 09 00 [20:54:02]MH_I2C_Read... [20:54:02]Read from MH i2c: F0 09 00 6C 7E 00 72 01 A8 66 90 0F 3E 66 A6 [20:54:02]GetLastDocTimeStamp 1722286429 [20:54:02]current date 1722286450 [20:54:02]FM_GetShiftState [20:54:02]SAM_PROTO_GetShiftState [20:54:02]wFMCommunicate request_size=4 [20:54:02]MH_SAM_APDU [20:54:02]CAPDU: 80 13 01 00 [20:54:02]Write to MH i2c: E2 08 00 6D 7E 80 13 01 00 00 00 00 00 68 [20:54:02]Write i2c OK [20:54:02]MH_I2C_Read... [20:54:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:03]Read from MH i2c: E2 [20:54:03]MH_I2C_Read... [20:54:03]Read from MH i2c: E2 0E 00 [20:54:03]MH_I2C_Read... [20:54:03]Read from MH i2c: E2 0E 00 6D 7E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 96 [20:54:03]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:54:03]wFMCommunicate OK [20:54:03]SAM_PROTO_GetShiftState done [20:54:03]FM_GetShiftState done [20:54:03]opened in 1722211641 [20:54:03]opened+sec_in_day 1722298041 [20:54:03]quantity*price = 40002 [20:54:03]sum+1 = 40003 [20:54:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 290 29.07.2024 20:54 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118914 ФПД: 70432882868430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T205410&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118914&fm=70432882868430&tin=02508201610067®Number=0000000000092660&sum=40000 [20:54:04]StoreToDocumentArchive [20:54:04]shift 434 fd 118914 [20:54:04]save to /storage/0434/doc_00118914 [20:54:04]save last doc name /storage/0434/doc_00118914 to /storage/kkm_last_doc_name [20:54:04]save OK [20:54:04]Clear old archive folders... [20:54:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:54:04]tlvbuf is 01E4D760 [20:54:04]SAM_PROTO_ClearQueue [20:54:04]wFMCommunicate request_size=4 [20:54:04]MH_SAM_APDU [20:54:04]CAPDU: 80 09 00 00 [20:54:04]Write to MH i2c: E2 08 00 7A 7E 80 09 00 00 00 00 00 00 6A [20:54:04]Write i2c OK [20:54:04]MH_I2C_Read... [20:54:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:04]Read from MH i2c: E2 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: E2 03 00 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: E2 03 00 7A 7E 00 90 00 6C [20:54:04]RAPDU: 90 00 [20:54:04]wFMCommunicate OK [20:54:04]SAM_PROTO_ClearQueue done [20:54:04]KKMCreateOFDPacket [20:54:04]OFDProtocolAddRootSTLVToBuf [20:54:04]FM_MakeSignedData [20:54:04]FM_MakeSignedData [20:54:04]SAM_PROTO_SignData [20:54:04]wFMCommunicate request_size=4 [20:54:04]MH_SAM_APDU [20:54:04]CAPDU: 80 0D 01 02 [20:54:04]Write to MH i2c: E2 08 00 7B 7E 80 0D 01 02 00 00 00 00 72 [20:54:04]Write i2c OK [20:54:04]MH_I2C_Read... [20:54:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:04]Read from MH i2c: E2 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: E2 03 00 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: E2 03 00 7B 7E 00 90 00 6D [20:54:04]RAPDU: 90 00 [20:54:04]wFMCommunicate OK [20:54:04]wFMCommunicate request_size=255 [20:54:04]MH_SAM_APDU [20:54:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 72 01 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 D0 01 00 35 04 06 00 40 [20:54:04]Write to MH i2c: E2 02 01 7C 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 72 01 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 D0 01 00 35 04 06 00 40 00 00 C5 [20:54:04]Write i2c OK [20:54:04]MH_I2C_Read... [20:54:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:04]Read from MH i2c: E2 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: E2 03 00 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: E2 03 00 7C 7E 00 90 00 6E [20:54:04]RAPDU: 90 00 [20:54:04]wFMCommunicate OK [20:54:04]wFMCommunicate request_size=10 [20:54:04]MH_SAM_APDU [20:54:04]CAPDU: 80 0D 02 02 05 0E EE F6 C0 CE [20:54:04]Write to MH i2c: E2 0D 00 7D 7E 80 0D 02 02 05 00 0E EE F6 C0 CE 00 00 FF [20:54:04]Write i2c OK [20:54:04]MH_I2C_Read... [20:54:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:04]Read from MH i2c: E2 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: E2 03 00 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: E2 03 00 7D 7E 00 90 00 6F [20:54:04]RAPDU: 90 00 [20:54:04]wFMCommunicate OK [20:54:04]wFMCommunicate request_size=4 [20:54:04]MH_SAM_APDU [20:54:04]CAPDU: 80 0D 03 02 [20:54:04]Write to MH i2c: E2 08 00 7E 7E 80 0D 03 02 00 00 00 00 77 [20:54:04]Write i2c OK [20:54:04]MH_I2C_Read... [20:54:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:04]Read from MH i2c: E2 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: E2 0B 00 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: E2 0B 00 7E 7E 00 7D 23 04 AE 0D E6 60 9C 90 00 B9 [20:54:04]RAPDU: 7D 23 04 AE 0D E6 60 9C 90 00 [20:54:04]wFMCommunicate OK [20:54:04]SAM_PROTO_SignData done [20:54:04]FM_MakeSignedData done [20:54:04]CreateOFDProtocolMessage [20:54:04]wFMCommunicate request_size=4 [20:54:04]MH_SAM_APDU [20:54:04]CAPDU: 80 11 00 00 [20:54:04]Write to MH i2c: E2 08 00 7F 7E 80 11 00 00 00 00 00 00 77 [20:54:04]Write i2c OK [20:54:04]MH_I2C_Read... [20:54:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:04]Read from MH i2c: E2 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: E2 17 00 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: E2 17 00 7F 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D2 [20:54:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:54:04]wFMCommunicate OK [20:54:04]CreateOFDProtocolMessage done [20:54:04]OFDSenderStorePacket 118914 [20:54:04]StoreOFDPacket docnum=118914 [20:54:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 0E D2 07 01 FE 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 72 01 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 D0 01 00 35 04 06 00 40 0E EE F6 C0 CE 7D 23 04 AE 0D E6 60 9C [20:54:04]CheckFolder [20:54:04]dirname=/storage/ofd_packets [20:54:04]CheckFolder done [20:54:04]ProducePacketName [20:54:04]name=ofd_packets/00118914 [20:54:04]NVStorageSaveData ofd_packets/00118914 [20:54:04]File name is /storage/ofd_packets/00118914 [20:54:04]Write 301 bytes [20:54:04]NVStorageSaveData done [20:54:04]OFDSenderStorePacket done [20:54:04]KKMCreateOFDPacket done [20:54:04]NVStorageSaveData kkm_last_timestamp [20:54:04]File name is /storage/kkm_last_timestamp [20:54:04]Write 4 bytes [20:54:04]NVStorageSaveData done [20:54:04]ExternCall_PrintAddStr [20:54:04]wPrintStart [20:54:04]Write to MH i2c: 01 00 00 80 7E FE [20:54:04]Write i2c OK [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: 01 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: 01 07 00 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: 01 07 00 80 7E 00 00 00 00 00 FF 0F 13 [20:54:04]RasterBufferAndPrint [20:54:04]line Счет N : (1)949806 [20:54:04]line ИНН: 02508201610067 [20:54:04]line Контрольно-Кассовый Чек [20:54:04]line ПРОДАЖА [20:54:04]line ТРК (МРК, ГНК) : 41 [20:54:04]line Товар: 2710124130 [20:54:04]line Аи-92-К-4 [20:54:04]line 5.900 * 67.80 [20:54:04]line = 400.02 [20:54:04]line НДС 12% НСП 1% [20:54:04]line > о реализуемом товаре [20:54:04]line ОКРУГЛЕНИЕ: -0.02 [20:54:04]line ИТОГО: 400.00 [20:54:04]line Внесено: 400.00 [20:54:04]line СДАЧА: 0.00 [20:54:04]line НСП 1% : 3.54 [20:54:04]line НДС 12% : 42.48 [20:54:04]line Наличными: 400.00 [20:54:04]line Безнал.: 0.00 [20:54:04]line Место: АЗС № 134 "Партнер Нефть" [20:54:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:54:04]line СНО: Общий режим [20:54:04]line Чек 290 29.07.2024 20:54 [20:54:04]line Смена: 434 ФФД: 1.0 [20:54:04]line ЗНМ: 0300000044 [20:54:04]line РНМ: 0000000000092660 [20:54:04]line Версия ККМ: 001 [20:54:04]line ФМ: 0000000000874939 [20:54:04]line ФД: 118914 [20:54:04]line ФПД: 70432882868430 [20:54:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T205410&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118914&fm=70432882868430&tin=02508201610067®Number=0000000000092660&sum=40000 [20:54:04]written 0, free lines is 4095 [20:54:04]OFD Sender: Processing packet 118914 [packets to send 86, broken 85] [20:54:04]ProducePacketName [20:54:04]name=ofd_packets/00118914 [20:54:05]OFD Sender: To server: pG, [20:54:05]CommunicateWithHost lk.salyk.kg:30040 [20:54:05]ConnectInit lk.salyk.kg [20:54:05]Connected sock=10 [20:54:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 0E D2 07 01 FE 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 72 01 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 D0 01 00 35 04 06 00 40 0E EE F6 C0 CE 7D 23 04 AE 0D E6 60 9C [20:54:05]Write to MH i2c: 01 00 00 AA 7E 28 [20:54:05]Write i2c OK [20:54:05]MH_I2C_Read... [20:54:05]Read from MH i2c: 01 [20:54:05]MH_I2C_Read... [20:54:05]Read from MH i2c: 01 07 00 [20:54:05]MH_I2C_Read... [20:54:05]Read from MH i2c: 01 07 00 AA 7E 00 00 00 00 00 DE 0C 19 [20:54:05]RasterBufferAndPrint [20:54:05]line [20:54:05]line [20:54:05]line [20:54:05]line [20:54:05]line [20:54:05]written 0, free lines is 3303 [20:54:05]MH_Cut [20:54:05]Write to MH i2c: D1 01 00 B1 7E 01 01 [20:54:05]Write i2c OK [20:54:05]MH_I2C_Read... [20:54:05]Read from MH i2c: D1 [20:54:05]MH_I2C_Read... [20:54:05]Read from MH i2c: D1 01 00 [20:54:05]MH_I2C_Read... [20:54:05]Read from MH i2c: D1 01 00 B1 7E 00 00 [20:54:05]Write to MH i2c: 01 00 00 B2 7E 30 [20:54:05]Write i2c OK [20:54:05]MH_I2C_Read... [20:54:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 81 D9 47 00 0A 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 D0 01 00 F4 03 04 00 FF AE A7 66 B6 04 01 00 00 C2 E3 CA 7A B0 34 90 E6 [20:54:05]CommunicateWithHost err = 0 [20:54:05]CheckOFDResponse [20:54:05]1017 (14) - 77093643461234 [20:54:05]1041 (16) - 0000000000874939 [20:54:05]1040 (4) - 118914 [20:54:05]1012 (4) - 29.07.2024 15:02 [20:54:05]1206 (1) - 0 [20:54:05]OFD Sender: Remove packet 118914 [20:54:05]ProducePacketName [20:54:05]name=ofd_packets/00118914 [20:54:05]NVStorageDeleteData [20:54:05]OFD Sender: No OFD packet to send [20:54:05]*** Cut start [20:54:05]*** Partial cut [20:54:05]*** CUTSNS_PIN = 1 [20:54:05]*** CUTSNS_PIN = 0 [20:54:06]*** Brake cut motor [20:54:06]Read from MH i2c: 01 [20:54:06]MH_I2C_Read... [20:54:06]*** Stop cut motor [20:54:06]*** Cut end [20:54:06]Read from MH i2c: 01 07 00 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: 01 07 00 B2 7E 00 00 00 00 00 FF 0F 45 [20:54:06]process_action close_receipt done [20:54:06]requested_data is exist [20:54:06]produce_requested_data [20:54:06]requested_item fm.sn is exist - process it [20:54:06]wFMCommunicate request_size=4 [20:54:06]MH_SAM_APDU [20:54:06]CAPDU: 80 11 00 00 [20:54:06]Write to MH i2c: E2 08 00 B3 7E 80 11 00 00 00 00 00 00 AB [20:54:06]Write i2c OK [20:54:06]MH_I2C_Read... [20:54:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:06]Read from MH i2c: E2 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 17 00 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 17 00 B3 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 06 [20:54:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [20:54:06]wFMCommunicate OK [20:54:06]requested_item fd.num is exist - process it [20:54:06]SAM_PROTO_GetFieldsCounters [20:54:06]wFMCommunicate request_size=4 [20:54:06]MH_SAM_APDU [20:54:06]CAPDU: 80 13 00 00 [20:54:06]Write to MH i2c: E2 08 00 B4 7E 80 13 00 00 00 00 00 00 AE [20:54:06]Write i2c OK [20:54:06]MH_I2C_Read... [20:54:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:06]Read from MH i2c: E2 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 62 00 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 62 00 B4 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 82 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 44 [20:54: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 82 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:54:06]wFMCommunicate OK [20:54:06]SAM_PROTO_GetFieldsCounters done [20:54:06]requested_item shift.num is exist - process it [20:54:06]requested_item shift.opened is exist - process it [20:54:06]req_shift_opened [20:54:06]FM_GetShiftState [20:54:06]SAM_PROTO_GetShiftState [20:54:06]wFMCommunicate request_size=4 [20:54:06]MH_SAM_APDU [20:54:06]CAPDU: 80 13 01 00 [20:54:06]Write to MH i2c: E2 08 00 B5 7E 80 13 01 00 00 00 00 00 B0 [20:54:06]Write i2c OK [20:54:06]MH_I2C_Read... [20:54:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:06]Read from MH i2c: E2 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 0E 00 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 0E 00 B5 7E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 DE [20:54:06]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [20:54:06]wFMCommunicate OK [20:54:06]SAM_PROTO_GetShiftState done [20:54:06]FM_GetShiftState done [20:54:06]req_shift_opened done [20:54:06]requested_item shift.open_date is exist - process it [20:54:06]req_shift_open_date [20:54:06]req_shift_open_date done [20:54:06]produce_requested_data done [20:54:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118914,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [20:54:06]process_action_free close_receipt [20:54:06]json_value_free [20:54:06]json_value_free done [20:54:06]process_json_proto returns [20:54:06]Send response to host [20:54:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118914,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [20:54:06]free response buf [20:54:06]execute_script done [20:54:06]execute_script returns [20:54:06]free content buf [20:54:06]Sock 9.Close socket [20:54:06]Sock 9.Thread stoped [20:54:10]OFD Sender: No OFD packet to send [20:54:15]OFD Sender: No OFD packet to send [20:54:20]OFD Sender: No OFD packet to send [20:54:25]OFD Sender: No OFD packet to send [20:54:30]OFD Sender: No OFD packet to send [20:54:35]OFD Sender: No OFD packet to send [20:54:40]OFD Sender: No OFD packet to send [20:54:45]OFD Sender: No OFD packet to send [20:54:50]OFD Sender: No OFD packet to send [20:54:55]OFD Sender: No OFD packet to send [20:55:00]OFD Sender: No OFD packet to send [20:55:05]OFD Sender: No OFD packet to send [20:55:10]OFD Sender: No OFD packet to send [20:55:15]OFD Sender: No OFD packet to send [20:55:20]OFD Sender: No OFD packet to send [20:55:25]OFD Sender: No OFD packet to send [20:55:30]OFD Sender: No OFD packet to send [20:55:35]OFD Sender: No OFD packet to send [20:55:40]OFD Sender: No OFD packet to send [20:55:45]OFD Sender: No OFD packet to send [20:55:50]OFD Sender: No OFD packet to send [20:55:55]OFD Sender: No OFD packet to send [20:56:00]OFD Sender: No OFD packet to send [20:56:05]OFD Sender: No OFD packet to send [20:56:10]OFD Sender: No OFD packet to send [20:56:16]OFD Sender: No OFD packet to send [20:56:21]OFD Sender: No OFD packet to send [20:56:26]OFD Sender: No OFD packet to send [20:56:31]OFD Sender: No OFD packet to send [20:56:36]OFD Sender: No OFD packet to send [20:56:41]OFD Sender: No OFD packet to send [20:56:46]OFD Sender: No OFD packet to send [20:56:51]OFD Sender: No OFD packet to send [20:56:56]OFD Sender: No OFD packet to send [20:57:01]OFD Sender: No OFD packet to send [20:57:06]OFD Sender: No OFD packet to send [20:57:11]OFD Sender: No OFD packet to send [20:57:16]OFD Sender: No OFD packet to send [20:57:21]OFD Sender: No OFD packet to send [20:57:26]OFD Sender: No OFD packet to send [20:57:31]OFD Sender: No OFD packet to send [20:57:36]OFD Sender: No OFD packet to send [20:57:41]OFD Sender: No OFD packet to send [20:57:46]OFD Sender: No OFD packet to send [20:57:51]OFD Sender: No OFD packet to send [20:57:56]OFD Sender: No OFD packet to send [20:58:01]OFD Sender: No OFD packet to send [20:58:06]OFD Sender: No OFD packet to send [20:58:11]OFD Sender: No OFD packet to send [20:58:16]OFD Sender: No OFD packet to send [20:58:21]OFD Sender: No OFD packet to send [20:58:26]OFD Sender: No OFD packet to send [20:58:31]OFD Sender: No OFD packet to send [20:58:36]OFD Sender: No OFD packet to send [20:58:41]OFD Sender: No OFD packet to send [20:58:46]OFD Sender: No OFD packet to send [20:58:51]OFD Sender: No OFD packet to send [20:58:56]OFD Sender: No OFD packet to send [20:59:01]OFD Sender: No OFD packet to send [20:59:06]OFD Sender: No OFD packet to send [20:59:11]OFD Sender: No OFD packet to send [20:59:16]OFD Sender: No OFD packet to send [20:59:21]OFD Sender: No OFD packet to send [20:59:26]OFD Sender: No OFD packet to send [20:59:31]OFD Sender: No OFD packet to send [20:59:36]OFD Sender: No OFD packet to send [20:59:41]OFD Sender: No OFD packet to send [20:59:46]OFD Sender: No OFD packet to send [20:59:51]OFD Sender: No OFD packet to send [20:59:56]OFD Sender: No OFD packet to send [21:00:01]OFD Sender: No OFD packet to send [21:00:06]OFD Sender: No OFD packet to send [21:00:11]OFD Sender: No OFD packet to send [21:00:16]OFD Sender: No OFD packet to send [21:00:21]OFD Sender: No OFD packet to send [21:00:26]OFD Sender: No OFD packet to send [21:00:31]OFD Sender: No OFD packet to send [21:00:36]OFD Sender: No OFD packet to send [21:00:41]OFD Sender: No OFD packet to send [21:00:46]OFD Sender: No OFD packet to send [21:00:51]OFD Sender: No OFD packet to send [21:00:56]OFD Sender: No OFD packet to send [21:01:01]OFD Sender: No OFD packet to send [21:01:02]accept exits with 7 [21:01:02]New connection [21:01:02]New thread 3067239780 created [21:01:02]Thread 3067383140 joined [21:01:02]Waiting for new connection... [21:01:02] Sock 7.Parse request [21:01:02]Sock 7.Check first char [21:01:02]Sock 7.First char is OK [21:01:02]request: POST /json_proto HTTP/1.0 [21:01:02]Method: POST [21:01:02]URL: /json_proto [21:01:02]Method is POST - this is cgi request [21:01:02]url: /json_proto [21:01:02]query_string will be loaded in cgi processing [21:01:02]execute_cgi json_proto POST (null) [21:01:02]execute_cgi path=json_proto method=POST [21:01:02]POST find Content-Length [21:01:02]Host: 172.17.45.7:8080 [21:01:02]Content-Length: 679 [21:01:02]Content-Type: application/json [21:01:02] [21:01:02]POST finish read [21:01:02]Found Content-Length = 679 [21:01:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:02]execute_script... [21:01: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)949809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:02]POST & json_proto [21:01:02]process_json_proto [21:01:02]json parsed OK: [21:01:02]protocol is kg_v1.0 [21:01:02]action value=close_receipt [21:01:02]process_action close_receipt [21:01:02]cmd_close_receipt [21:01:02]MH_GetDate [21:01:02]Write to MH i2c: F0 00 00 B6 7E 23 [21:01:02]Write i2c OK [21:01:02]MH_I2C_Read... [21:01:02]Read from MH i2c: F0 [21:01:02]MH_I2C_Read... [21:01:02]Read from MH i2c: F0 09 00 [21:01:02]MH_I2C_Read... [21:01:02]Read from MH i2c: F0 09 00 B6 7E 00 15 03 A8 66 90 0F 3E 66 95 [21:01:02]GetLastDocTimeStamp 1722286450 [21:01:02]current date 1722286869 [21:01:02]FM_GetShiftState [21:01:02]SAM_PROTO_GetShiftState [21:01:02]wFMCommunicate request_size=4 [21:01:02]MH_SAM_APDU [21:01:02]CAPDU: 80 13 01 00 [21:01:02]Write to MH i2c: E2 08 00 B7 7E 80 13 01 00 00 00 00 00 B2 [21:01:02]Write i2c OK [21:01:02]MH_I2C_Read... [21:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:02]Read from MH i2c: E2 [21:01:02]MH_I2C_Read... [21:01:02]Read from MH i2c: E2 0E 00 [21:01:02]MH_I2C_Read... [21:01:02]Read from MH i2c: E2 0E 00 B7 7E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E0 [21:01:02]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:01:02]wFMCommunicate OK [21:01:02]SAM_PROTO_GetShiftState done [21:01:02]FM_GetShiftState done [21:01:02]opened in 1722211641 [21:01:02]opened+sec_in_day 1722298041 [21:01:02]quantity*price = 100050 [21:01:02]sum+1 = 100052 [21:01:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 291 29.07.2024 21:01 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118915 ФПД: 253311788987280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T210109&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118915&fm=253311788987280&tin=02508201610067®Number=0000000000092660&sum=100000 [21:01:03]StoreToDocumentArchive [21:01:03]shift 434 fd 118915 [21:01:03]save to /storage/0434/doc_00118915 [21:01:03]save last doc name /storage/0434/doc_00118915 to /storage/kkm_last_doc_name [21:01:03]save OK [21:01:03]Clear old archive folders... [21:01:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:01:03]tlvbuf is 021389C0 [21:01:03]SAM_PROTO_ClearQueue [21:01:03]wFMCommunicate request_size=4 [21:01:03]MH_SAM_APDU [21:01:03]CAPDU: 80 09 00 00 [21:01:03]Write to MH i2c: E2 08 00 C4 7E 80 09 00 00 00 00 00 00 B4 [21:01:03]Write i2c OK [21:01:03]MH_I2C_Read... [21:01:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:03]Read from MH i2c: E2 [21:01:03]MH_I2C_Read... [21:01:03]Read from MH i2c: E2 03 00 [21:01:03]MH_I2C_Read... [21:01:03]Read from MH i2c: E2 03 00 C4 7E 00 90 00 B6 [21:01:03]RAPDU: 90 00 [21:01:03]wFMCommunicate OK [21:01:03]SAM_PROTO_ClearQueue done [21:01:03]KKMCreateOFDPacket [21:01:03]OFDProtocolAddRootSTLVToBuf [21:01:03]FM_MakeSignedData [21:01:03]FM_MakeSignedData [21:01:03]SAM_PROTO_SignData [21:01:03]wFMCommunicate request_size=4 [21:01:03]MH_SAM_APDU [21:01:03]CAPDU: 80 0D 01 02 [21:01:03]Write to MH i2c: E2 08 00 C5 7E 80 0D 01 02 00 00 00 00 BC [21:01:03]Write i2c OK [21:01:03]MH_I2C_Read... [21:01:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:03]Read from MH i2c: E2 [21:01:03]MH_I2C_Read... [21:01:03]Read from MH i2c: E2 03 00 [21:01:03]MH_I2C_Read... [21:01:03]Read from MH i2c: E2 03 00 C5 7E 00 90 00 B7 [21:01:03]RAPDU: 90 00 [21:01:03]wFMCommunicate OK [21:01:03]wFMCommunicate request_size=255 [21:01:03]MH_SAM_APDU [21:01:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 15 03 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 D0 01 00 35 04 06 00 E6 62 BF 33 [21:01:03]Write to MH i2c: E2 02 01 C6 7E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 15 03 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 D0 01 00 35 04 06 00 E6 62 BF 33 00 00 D7 [21:01:03]Write i2c OK [21:01:03]MH_I2C_Read... [21:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:04]Read from MH i2c: E2 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: E2 03 00 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: E2 03 00 C6 7E 00 90 00 B8 [21:01:04]RAPDU: 90 00 [21:01:04]wFMCommunicate OK [21:01:04]wFMCommunicate request_size=7 [21:01:04]MH_SAM_APDU [21:01:04]CAPDU: 80 0D 02 02 02 33 90 [21:01:04]Write to MH i2c: E2 0A 00 C7 7E 80 0D 02 02 02 00 33 90 00 00 86 [21:01:04]Write i2c OK [21:01:04]MH_I2C_Read... [21:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:04]Read from MH i2c: E2 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: E2 03 00 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: E2 03 00 C7 7E 00 90 00 B9 [21:01:04]RAPDU: 90 00 [21:01:04]wFMCommunicate OK [21:01:04]wFMCommunicate request_size=4 [21:01:04]MH_SAM_APDU [21:01:04]CAPDU: 80 0D 03 02 [21:01:04]Write to MH i2c: E2 08 00 C8 7E 80 0D 03 02 00 00 00 00 C1 [21:01:04]Write i2c OK [21:01:04]MH_I2C_Read... [21:01:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:04]Read from MH i2c: E2 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: E2 0B 00 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: E2 0B 00 C8 7E 00 82 33 E5 40 61 7B 8D 31 90 00 36 [21:01:04]RAPDU: 82 33 E5 40 61 7B 8D 31 90 00 [21:01:04]wFMCommunicate OK [21:01:04]SAM_PROTO_SignData done [21:01:04]FM_MakeSignedData done [21:01:04]CreateOFDProtocolMessage [21:01:04]wFMCommunicate request_size=4 [21:01:04]MH_SAM_APDU [21:01:04]CAPDU: 80 11 00 00 [21:01:04]Write to MH i2c: E2 08 00 C9 7E 80 11 00 00 00 00 00 00 C1 [21:01:04]Write i2c OK [21:01:04]MH_I2C_Read... [21:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:04]Read from MH i2c: E2 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: E2 17 00 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: E2 17 00 C9 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1C [21:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:01:04]wFMCommunicate OK [21:01:04]CreateOFDProtocolMessage done [21:01:04]OFDSenderStorePacket 118915 [21:01:04]StoreOFDPacket docnum=118915 [21:01:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 78 23 04 01 57 B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 15 03 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 D0 01 00 35 04 06 00 E6 62 BF 33 33 90 82 33 E5 40 61 7B 8D 31 [21:01:04]CheckFolder [21:01:04]dirname=/storage/ofd_packets [21:01:04]CheckFolder done [21:01:04]ProducePacketName [21:01:04]name=ofd_packets/00118915 [21:01:04]NVStorageSaveData ofd_packets/00118915 [21:01:04]File name is /storage/ofd_packets/00118915 [21:01:04]Write 298 bytes [21:01:04]NVStorageSaveData done [21:01:04]OFDSenderStorePacket done [21:01:04]KKMCreateOFDPacket done [21:01:04]NVStorageSaveData kkm_last_timestamp [21:01:04]File name is /storage/kkm_last_timestamp [21:01:04]Write 4 bytes [21:01:04]NVStorageSaveData done [21:01:04]ExternCall_PrintAddStr [21:01:04]wPrintStart [21:01:04]Write to MH i2c: 01 00 00 CA 7E 48 [21:01:04]Write i2c OK [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: 01 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: 01 07 00 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: 01 07 00 CA 7E 00 00 00 00 00 FF 0F 5D [21:01:04]RasterBufferAndPrint [21:01:04]line Счет N : (1)949809 [21:01:04]line ИНН: 02508201610067 [21:01:04]line Контрольно-Кассовый Чек [21:01:04]line ПРОДАЖА [21:01:04]line ТРК (МРК, ГНК) : 44 [21:01:04]line Товар: 2710194800 [21:01:04]line ДТ-К-5 [21:01:04]line 13.130 * 76.20 [21:01:04]line = 1000.51 [21:01:04]line НДС 12% НСП 1% [21:01:04]line > о реализуемом товаре [21:01:04]line ОКРУГЛЕНИЕ: -0.51 [21:01:04]line ИТОГО: 1000.00 [21:01:04]line Внесено: 1000.00 [21:01:04]line СДАЧА: 0.00 [21:01:04]line НСП 1% : 8.85 [21:01:04]line НДС 12% : 106.25 [21:01:04]line Наличными: 1000.00 [21:01:04]line Безнал.: 0.00 [21:01:04]line Место: АЗС № 134 "Партнер Нефть" [21:01:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:01:04]line СНО: Общий режим [21:01:04]line Чек 291 29.07.2024 21:01 [21:01:04]line Смена: 434 ФФД: 1.0 [21:01:04]line ЗНМ: 0300000044 [21:01:04]line РНМ: 0000000000092660 [21:01:04]line Версия ККМ: 001 [21:01:04]line ФМ: 0000000000874939 [21:01:04]line ФД: 118915 [21:01:04]line ФПД: 253311788987280 [21:01:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T210109&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118915&fm=253311788987280&tin=02508201610067®Number=0000000000092660&sum=100000 [21:01:04]OFD Sender: Processing packet 118915 [packets to send 86, broken 85] [21:01:04]ProducePacketName [21:01:04]name=ofd_packets/00118915 [21:01:04]OFD Sender: To server: pG, [21:01:04]CommunicateWithHost lk.salyk.kg:30040 [21:01:04]ConnectInit lk.salyk.kg [21:01:04]written 0, free lines is 4095 [21:01:04]Connected sock=11 [21:01:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 78 23 04 01 57 B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 15 03 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 D0 01 00 35 04 06 00 E6 62 BF 33 33 90 82 33 E5 40 61 7B 8D 31 [21:01:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 30 25 47 00 D9 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 34 39 33 39 10 04 04 00 83 D0 01 00 F4 03 04 00 A2 B0 A7 66 B6 04 01 00 00 73 FD 36 58 44 64 3B CB [21:01:04]CommunicateWithHost err = 0 [21:01:04]CheckOFDResponse [21:01:04]1017 (14) - 77093643461234 [21:01:04]1041 (16) - 0000000000874939 [21:01:04]1040 (4) - 118915 [21:01:04]1012 (4) - 29.07.2024 15:09 [21:01:04]1206 (1) - 0 [21:01:04]OFD Sender: Remove packet 118915 [21:01:04]ProducePacketName [21:01:04]name=ofd_packets/00118915 [21:01:04]NVStorageDeleteData [21:01:04]Write to MH i2c: 01 00 00 F4 7E 72 [21:01:04]Write i2c OK [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: 01 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: 01 07 00 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: 01 07 00 F4 7E 00 00 00 00 00 D4 0C 59 [21:01:04]RasterBufferAndPrint [21:01:04]line [21:01:04]line [21:01:04]line [21:01:04]line [21:01:04]line [21:01:04]written 0, free lines is 3290 [21:01:04]MH_Cut [21:01:04]Write to MH i2c: D1 01 00 FB 7E 01 4B [21:01:04]Write i2c OK [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: D1 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: D1 01 00 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: D1 01 00 FB 7E 00 4A [21:01:04]Write to MH i2c: 01 00 00 FC 7E 7A [21:01:04]Write i2c OK [21:01:04]MH_I2C_Read... [21:01:05]OFD Sender: No OFD packet to send [21:01:05]*** Cut start [21:01:05]*** Partial cut [21:01:05]*** CUTSNS_PIN = 1 [21:01:05]*** CUTSNS_PIN = 0 [21:01:05]*** Brake cut motor [21:01:06]Read from MH i2c: 01 [21:01:06]MH_I2C_Read... [21:01:06]*** Stop cut motor [21:01:06]*** Cut end [21:01:06]Read from MH i2c: 01 07 00 [21:01:06]MH_I2C_Read... [21:01:06]Read from MH i2c: 01 07 00 FC 7E 00 00 00 00 00 FF 0F 8F [21:01:06]process_action close_receipt done [21:01:06]requested_data is exist [21:01:06]produce_requested_data [21:01:06]requested_item fm.sn is exist - process it [21:01:06]wFMCommunicate request_size=4 [21:01:06]MH_SAM_APDU [21:01:06]CAPDU: 80 11 00 00 [21:01:06]Write to MH i2c: E2 08 00 FD 7E 80 11 00 00 00 00 00 00 F5 [21:01:06]Write i2c OK [21:01:06]MH_I2C_Read... [21:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:06]Read from MH i2c: E2 [21:01:06]MH_I2C_Read... [21:01:06]Read from MH i2c: E2 17 00 [21:01:06]MH_I2C_Read... [21:01:06]Read from MH i2c: E2 17 00 FD 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 50 [21:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:01:06]wFMCommunicate OK [21:01:06]requested_item fd.num is exist - process it [21:01:06]SAM_PROTO_GetFieldsCounters [21:01:06]wFMCommunicate request_size=4 [21:01:06]MH_SAM_APDU [21:01:06]CAPDU: 80 13 00 00 [21:01:06]Write to MH i2c: E2 08 00 FE 7E 80 13 00 00 00 00 00 00 F8 [21:01:06]Write i2c OK [21:01:06]MH_I2C_Read... [21:01:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:06]Read from MH i2c: E2 [21:01:06]MH_I2C_Read... [21:01:06]Read from MH i2c: E2 62 00 [21:01:06]MH_I2C_Read... [21:01:06]Read from MH i2c: E2 62 00 FE 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 92 [21:01: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:06]wFMCommunicate OK [21:01:06]SAM_PROTO_GetFieldsCounters done [21:01:06]requested_item shift.num is exist - process it [21:01:06]requested_item shift.opened is exist - process it [21:01:06]req_shift_opened [21:01:06]FM_GetShiftState [21:01:06]SAM_PROTO_GetShiftState [21:01:06]wFMCommunicate request_size=4 [21:01:06]MH_SAM_APDU [21:01:06]CAPDU: 80 13 01 00 [21:01:06]Write to MH i2c: E2 08 00 FF 7E 80 13 01 00 00 00 00 00 FA [21:01:06]Write i2c OK [21:01:06]MH_I2C_Read... [21:01:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:06]Read from MH i2c: E2 [21:01:06]MH_I2C_Read... [21:01:06]Read from MH i2c: E2 0E 00 [21:01:06]MH_I2C_Read... [21:01:06]Read from MH i2c: E2 0E 00 FF 7E 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 28 [21:01:06]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:01:06]wFMCommunicate OK [21:01:06]SAM_PROTO_GetShiftState done [21:01:06]FM_GetShiftState done [21:01:06]req_shift_opened done [21:01:06]requested_item shift.open_date is exist - process it [21:01:06]req_shift_open_date [21:01:06]req_shift_open_date done [21:01:06]produce_requested_data done [21:01:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118915,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:01:06]process_action_free close_receipt [21:01:06]json_value_free [21:01:06]json_value_free done [21:01:06]process_json_proto returns [21:01:06]Send response to host [21:01:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118915,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:01:06]free response buf [21:01:06]execute_script done [21:01:06]execute_script returns [21:01:06]free content buf [21:01:06]Sock 7.Close socket [21:01:06]Sock 7.Thread stoped [21:01:10]OFD Sender: No OFD packet to send [21:01:15]OFD Sender: No OFD packet to send [21:01:20]OFD Sender: No OFD packet to send [21:01:25]OFD Sender: No OFD packet to send [21:01:30]OFD Sender: No OFD packet to send [21:01:35]OFD Sender: No OFD packet to send [21:01:40]OFD Sender: No OFD packet to send [21:01:45]OFD Sender: No OFD packet to send [21:01:50]OFD Sender: No OFD packet to send [21:01:55]OFD Sender: No OFD packet to send [21:02:00]OFD Sender: No OFD packet to send [21:02:02]accept exits with 9 [21:02:02]New connection [21:02:02]New thread 3067383140 created [21:02:02]Thread 3067239780 joined [21:02:02]Waiting for new connection... [21:02:02] Sock 9.Parse request [21:02:02]Sock 9.Check first char [21:02:02]Sock 9.First char is OK [21:02:02]request: POST /json_proto HTTP/1.0 [21:02:02]Method: POST [21:02:02]URL: /json_proto [21:02:02]Method is POST - this is cgi request [21:02:02]url: /json_proto [21:02:02]query_string will be loaded in cgi processing [21:02:02]execute_cgi json_proto POST (null) [21:02:02]execute_cgi path=json_proto method=POST [21:02:02]POST find Content-Length [21:02:02]Host: 172.17.45.7:8080 [21:02:02]Content-Length: 1195 [21:02:02]Content-Type: application/json [21:02:02] [21:02:02]POST finish read [21:02:02]Found Content-Length = 1195 [21:02:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949808\u000A29.07.2024 20:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991032\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:02]execute_script... [21:02:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949808\u000A29.07.2024 20:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991032\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:02]POST & json_proto [21:02:02]process_json_proto [21:02:02]json parsed OK: [21:02:02]protocol is kg_v1.0 [21:02:02]action value=print_text [21:02:02]process_action print_text [21:02:02]cmd_print_text [21:02:02]ExternCall_PrintAddStr [21:02:02]wPrintStart [21:02:02]Write to MH i2c: 01 00 00 00 7F 7F [21:02:02]Write i2c OK [21:02:02]MH_I2C_Read... [21:02:02]Read from MH i2c: 01 [21:02:02]MH_I2C_Read... [21:02:02]Read from MH i2c: 01 07 00 [21:02:02]MH_I2C_Read... [21:02:02]Read from MH i2c: 01 07 00 00 7F 00 00 00 00 00 FF 0F 94 [21:02:02]RasterBufferAndPrint [21:02:02]line *****ТОВАРНЫЙ ЧЕК***** [21:02:02]line АЗС-134 [21:02:02]line Партнер нефть [21:02:02]line 02508201610067 [21:02:02]line Кассир : Казаков Ч. [21:02:02]line Счет N : (1)949808 [21:02:02]line 29.07.2024 20:59 [21:02:02]line ПРОДАЖА [21:02:02]line ТРК (МРК, ГНК): 54 [21:02:02]line Вид ГСМ : 2710194800 [21:02:02]line ДТ-К-5 [21:02:02]line 100.000 x 76.20 [21:02:02]line ИТОГ: 7620.00 [21:02:02]line Тип оплаты: Талоны: Топливные Талоны [21:02:02]line 3991032 [21:02:02]line ______________________ [21:02:02]line (подпись) [21:02:02]written 0, free lines is 4095 [21:02:02]Write to MH i2c: 01 00 00 14 7F 93 [21:02:02]Write i2c OK [21:02:02]MH_I2C_Read... [21:02:02]Read from MH i2c: 01 [21:02:02]MH_I2C_Read... [21:02:02]Read from MH i2c: 01 07 00 [21:02:02]MH_I2C_Read... [21:02:02]Read from MH i2c: 01 07 00 14 7F 00 00 00 00 00 0F 0E B7 [21:02:02]RasterBufferAndPrint [21:02:02]line [21:02:02]line [21:02:02]line [21:02:02]line [21:02:02]line [21:02:02]written 0, free lines is 3600 [21:02:02]MH_Cut [21:02:02]Write to MH i2c: D1 01 00 1B 7F 01 6C [21:02:02]Write i2c OK [21:02:02]MH_I2C_Read... [21:02:02]Read from MH i2c: D1 [21:02:02]MH_I2C_Read... [21:02:02]Read from MH i2c: D1 01 00 [21:02:02]MH_I2C_Read... [21:02:02]Read from MH i2c: D1 01 00 1B 7F 00 6B [21:02:02]Write to MH i2c: 01 00 00 1C 7F 9B [21:02:02]Write i2c OK [21:02:02]MH_I2C_Read... [21:02:03]*** Cut start [21:02:03]*** Partial cut [21:02:03]*** CUTSNS_PIN = 1 [21:02:03]*** CUTSNS_PIN = 0 [21:02:03]*** Brake cut motor [21:02:03]Read from MH i2c: 01 [21:02:03]MH_I2C_Read... [21:02:03]Read from MH i2c: 01 07 00 [21:02:03]MH_I2C_Read... [21:02:03]*** Stop cut motor [21:02:03]*** Cut end [21:02:03]Read from MH i2c: 01 07 00 1C 7F 00 00 00 00 00 FF 0F B0 [21:02:03]process_action print_text done [21:02:03]requested_data is exist [21:02:03]produce_requested_data [21:02:03]requested_item fm.sn is exist - process it [21:02:03]wFMCommunicate request_size=4 [21:02:03]MH_SAM_APDU [21:02:03]CAPDU: 80 11 00 00 [21:02:03]Write to MH i2c: E2 08 00 1D 7F 80 11 00 00 00 00 00 00 16 [21:02:03]Write i2c OK [21:02:03]MH_I2C_Read... [21:02:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:03]Read from MH i2c: E2 [21:02:03]MH_I2C_Read... [21:02:03]Read from MH i2c: E2 17 00 [21:02:03]MH_I2C_Read... [21:02:03]Read from MH i2c: E2 17 00 1D 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 71 [21:02:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:02:03]wFMCommunicate OK [21:02:03]requested_item fd.num is exist - process it [21:02:03]SAM_PROTO_GetFieldsCounters [21:02:03]wFMCommunicate request_size=4 [21:02:03]MH_SAM_APDU [21:02:03]CAPDU: 80 13 00 00 [21:02:03]Write to MH i2c: E2 08 00 1E 7F 80 13 00 00 00 00 00 00 19 [21:02:03]Write i2c OK [21:02:03]MH_I2C_Read... [21:02:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:02:03]Read from MH i2c: E2 [21:02:03]MH_I2C_Read... [21:02:03]Read from MH i2c: E2 62 00 [21:02:03]MH_I2C_Read... [21:02:03]Read from MH i2c: E2 62 00 1E 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 B3 [21:02: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:02:03]wFMCommunicate OK [21:02:03]SAM_PROTO_GetFieldsCounters done [21:02:03]requested_item shift.num is exist - process it [21:02:03]requested_item shift.opened is exist - process it [21:02:03]req_shift_opened [21:02:03]FM_GetShiftState [21:02:03]SAM_PROTO_GetShiftState [21:02:03]wFMCommunicate request_size=4 [21:02:03]MH_SAM_APDU [21:02:03]CAPDU: 80 13 01 00 [21:02:03]Write to MH i2c: E2 08 00 1F 7F 80 13 01 00 00 00 00 00 1B [21:02:03]Write i2c OK [21:02:03]MH_I2C_Read... [21:02:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:03]Read from MH i2c: E2 [21:02:03]MH_I2C_Read... [21:02:03]Read from MH i2c: E2 0E 00 [21:02:03]MH_I2C_Read... [21:02:03]Read from MH i2c: E2 0E 00 1F 7F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 49 [21:02:03]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:02:03]wFMCommunicate OK [21:02:03]SAM_PROTO_GetShiftState done [21:02:03]FM_GetShiftState done [21:02:03]req_shift_opened done [21:02:03]requested_item shift.open_date is exist - process it [21:02:03]req_shift_open_date [21:02:03]req_shift_open_date done [21:02:03]produce_requested_data done [21:02:03]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118915,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:02:03]process_action_free print_text [21:02:03]json_value_free [21:02:03]json_value_free done [21:02:03]process_json_proto returns [21:02:03]Send response to host [21:02:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118915,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:02:03]free response buf [21:02:03]execute_script done [21:02:03]execute_script returns [21:02:03]free content buf [21:02:03]Sock 9.Close socket [21:02:03]Sock 9.Thread stoped [21:02:05]OFD Sender: No OFD packet to send [21:02:10]OFD Sender: No OFD packet to send [21:02:11]accept exits with 7 [21:02:11]New connection [21:02:11]New thread 3067239780 created [21:02:11]Thread 3067383140 joined [21:02:11]Waiting for new connection... [21:02:11] Sock 7.Parse request [21:02:11]Sock 7.Check first char [21:02:11]Sock 7.First char is OK [21:02:11]request: POST /json_proto HTTP/1.0 [21:02:11]Method: POST [21:02:11]URL: /json_proto [21:02:11]Method is POST - this is cgi request [21:02:11]url: /json_proto [21:02:11]query_string will be loaded in cgi processing [21:02:11]execute_cgi json_proto POST (null) [21:02:11]execute_cgi path=json_proto method=POST [21:02:11]POST find Content-Length [21:02:11]Host: 172.17.45.7:8080 [21:02:11]Content-Length: 1195 [21:02:11]Content-Type: application/json [21:02:11] [21:02:11]POST finish read [21:02:11]Found Content-Length = 1195 [21:02:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949807\u000A29.07.2024 20:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991033\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:11]execute_script... [21:02:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949807\u000A29.07.2024 20:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991033\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:11]POST & json_proto [21:02:11]process_json_proto [21:02:11]json parsed OK: [21:02:11]protocol is kg_v1.0 [21:02:11]action value=print_text [21:02:11]process_action print_text [21:02:11]cmd_print_text [21:02:11]ExternCall_PrintAddStr [21:02:11]wPrintStart [21:02:11]Write to MH i2c: 01 00 00 20 7F 9F [21:02:11]Write i2c OK [21:02:11]MH_I2C_Read... [21:02:11]Read from MH i2c: 01 [21:02:11]MH_I2C_Read... [21:02:11]Read from MH i2c: 01 07 00 [21:02:11]MH_I2C_Read... [21:02:11]Read from MH i2c: 01 07 00 20 7F 00 00 00 00 00 FF 0F B4 [21:02:11]RasterBufferAndPrint [21:02:11]line *****ТОВАРНЫЙ ЧЕК***** [21:02:11]line АЗС-134 [21:02:11]line Партнер нефть [21:02:11]line 02508201610067 [21:02:11]line Кассир : Казаков Ч. [21:02:11]line Счет N : (1)949807 [21:02:11]line 29.07.2024 20:59 [21:02:11]line ПРОДАЖА [21:02:11]line ТРК (МРК, ГНК): 64 [21:02:11]line Вид ГСМ : 2710194800 [21:02:11]line ДТ-К-5 [21:02:11]line 100.000 x 76.20 [21:02:11]line ИТОГ: 7620.00 [21:02:11]line Тип оплаты: Талоны: Топливные Талоны [21:02:11]line 3991033 [21:02:11]line ______________________ [21:02:11]line (подпись) [21:02:11]written 0, free lines is 4095 [21:02:11]Write to MH i2c: 01 00 00 34 7F B3 [21:02:11]Write i2c OK [21:02:11]MH_I2C_Read... [21:02:11]Read from MH i2c: 01 [21:02:11]MH_I2C_Read... [21:02:11]Read from MH i2c: 01 07 00 [21:02:11]MH_I2C_Read... [21:02:11]Read from MH i2c: 01 07 00 34 7F 00 00 00 00 00 0F 0E D7 [21:02:11]RasterBufferAndPrint [21:02:11]line [21:02:11]line [21:02:11]line [21:02:11]line [21:02:11]line [21:02:11]written 0, free lines is 3600 [21:02:11]MH_Cut [21:02:11]Write to MH i2c: D1 01 00 3B 7F 01 8C [21:02:11]Write i2c OK [21:02:11]MH_I2C_Read... [21:02:11]Read from MH i2c: D1 [21:02:11]MH_I2C_Read... [21:02:11]Read from MH i2c: D1 01 00 [21:02:11]MH_I2C_Read... [21:02:11]Read from MH i2c: D1 01 00 3B 7F 00 8B [21:02:11]Write to MH i2c: 01 00 00 3C 7F BB [21:02:11]Write i2c OK [21:02:11]MH_I2C_Read... [21:02:11]*** Cut start [21:02:11]*** Partial cut [21:02:11]*** CUTSNS_PIN = 1 [21:02:11]*** CUTSNS_PIN = 0 [21:02:12]*** Brake cut motor [21:02:12]Read from MH i2c: 01 [21:02:12]MH_I2C_Read... [21:02:12]*** Stop cut motor [21:02:12]*** Cut end [21:02:12]Read from MH i2c: 01 07 00 [21:02:12]MH_I2C_Read... [21:02:12]Read from MH i2c: 01 07 00 3C 7F 00 00 00 00 00 FF 0F D0 [21:02:12]process_action print_text done [21:02:12]requested_data is exist [21:02:12]produce_requested_data [21:02:12]requested_item fm.sn is exist - process it [21:02:12]wFMCommunicate request_size=4 [21:02:12]MH_SAM_APDU [21:02:12]CAPDU: 80 11 00 00 [21:02:12]Write to MH i2c: E2 08 00 3D 7F 80 11 00 00 00 00 00 00 36 [21:02:12]Write i2c OK [21:02:12]MH_I2C_Read... [21:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:12]Read from MH i2c: E2 [21:02:12]MH_I2C_Read... [21:02:12]Read from MH i2c: E2 17 00 [21:02:12]MH_I2C_Read... [21:02:12]Read from MH i2c: E2 17 00 3D 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 91 [21:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:02:12]wFMCommunicate OK [21:02:12]requested_item fd.num is exist - process it [21:02:12]SAM_PROTO_GetFieldsCounters [21:02:12]wFMCommunicate request_size=4 [21:02:12]MH_SAM_APDU [21:02:12]CAPDU: 80 13 00 00 [21:02:12]Write to MH i2c: E2 08 00 3E 7F 80 13 00 00 00 00 00 00 39 [21:02:12]Write i2c OK [21:02:12]MH_I2C_Read... [21:02:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:02:12]Read from MH i2c: E2 [21:02:12]MH_I2C_Read... [21:02:12]Read from MH i2c: E2 62 00 [21:02:12]MH_I2C_Read... [21:02:12]Read from MH i2c: E2 62 00 3E 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 D3 [21:02: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:02:12]wFMCommunicate OK [21:02:12]SAM_PROTO_GetFieldsCounters done [21:02:12]requested_item shift.num is exist - process it [21:02:12]requested_item shift.opened is exist - process it [21:02:12]req_shift_opened [21:02:12]FM_GetShiftState [21:02:12]SAM_PROTO_GetShiftState [21:02:12]wFMCommunicate request_size=4 [21:02:12]MH_SAM_APDU [21:02:12]CAPDU: 80 13 01 00 [21:02:12]Write to MH i2c: E2 08 00 3F 7F 80 13 01 00 00 00 00 00 3B [21:02:12]Write i2c OK [21:02:12]MH_I2C_Read... [21:02:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:12]Read from MH i2c: E2 [21:02:12]MH_I2C_Read... [21:02:12]Read from MH i2c: E2 0E 00 [21:02:12]MH_I2C_Read... [21:02:12]Read from MH i2c: E2 0E 00 3F 7F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 69 [21:02:12]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:02:12]wFMCommunicate OK [21:02:12]SAM_PROTO_GetShiftState done [21:02:12]FM_GetShiftState done [21:02:12]req_shift_opened done [21:02:12]requested_item shift.open_date is exist - process it [21:02:12]req_shift_open_date [21:02:12]req_shift_open_date done [21:02:12]produce_requested_data done [21:02:12]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118915,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:02:12]process_action_free print_text [21:02:12]json_value_free [21:02:12]json_value_free done [21:02:12]process_json_proto returns [21:02:12]Send response to host [21:02:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118915,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:02:12]free response buf [21:02:12]execute_script done [21:02:12]execute_script returns [21:02:12]free content buf [21:02:12]Sock 7.Close socket [21:02:12]Sock 7.Thread stoped [21:02:15]OFD Sender: No OFD packet to send [21:02:20]OFD Sender: No OFD packet to send [21:02:25]OFD Sender: No OFD packet to send [21:02:30]OFD Sender: No OFD packet to send [21:02:35]OFD Sender: No OFD packet to send [21:02:40]OFD Sender: No OFD packet to send [21:02:45]OFD Sender: No OFD packet to send [21:02:50]OFD Sender: No OFD packet to send [21:02:55]OFD Sender: No OFD packet to send [21:03:00]OFD Sender: No OFD packet to send [21:03:05]OFD Sender: No OFD packet to send [21:03:10]OFD Sender: No OFD packet to send [21:03:15]OFD Sender: No OFD packet to send [21:03:20]OFD Sender: No OFD packet to send [21:03:25]OFD Sender: No OFD packet to send [21:03:30]OFD Sender: No OFD packet to send [21:03:35]OFD Sender: No OFD packet to send [21:03:40]OFD Sender: No OFD packet to send [21:03:45]OFD Sender: No OFD packet to send [21:03:50]OFD Sender: No OFD packet to send [21:03:55]OFD Sender: No OFD packet to send [21:04:00]OFD Sender: No OFD packet to send [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:15]OFD Sender: No OFD packet to send [21:04:20]OFD Sender: No OFD packet to send [21:04:25]OFD Sender: No OFD packet to send [21:04:30]OFD Sender: No OFD packet to send [21:04:35]OFD Sender: No OFD packet to send [21:04:40]OFD Sender: No OFD packet to send [21:04:45]OFD Sender: No OFD packet to send [21:04:50]OFD Sender: No OFD packet to send [21:04:55]OFD Sender: No OFD packet to send [21:05:00]OFD Sender: No OFD packet to send [21:05:05]OFD Sender: No OFD packet to send [21:05:10]OFD Sender: No OFD packet to send [21:05:15]OFD Sender: No OFD packet to send [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:55]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:31]accept exits with 9 [21:06:31]New connection [21:06:31]New thread 3067383140 created [21:06:31]Thread 3067239780 joined [21:06:31]Waiting for new connection... [21:06:31] Sock 9.Parse request [21:06:31]Sock 9.Check first char [21:06:31]Sock 9.First char is OK [21:06:31]request: POST /json_proto HTTP/1.0 [21:06:31]Method: POST [21:06:31]URL: /json_proto [21:06:31]Method is POST - this is cgi request [21:06:31]url: /json_proto [21:06:31]query_string will be loaded in cgi processing [21:06:31]execute_cgi json_proto POST (null) [21:06:31]execute_cgi path=json_proto method=POST [21:06:31]POST find Content-Length [21:06:31]Host: 172.17.45.7:8080 [21:06:31]Content-Length: 1195 [21:06:31]Content-Type: application/json [21:06:31] [21:06:31]POST finish read [21:06:31]Found Content-Length = 1195 [21:06:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949810\u000A29.07.2024 21:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991030\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:31]execute_script... [21:06:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949810\u000A29.07.2024 21:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991030\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:31]POST & json_proto [21:06:31]process_json_proto [21:06:31]json parsed OK: [21:06:31]protocol is kg_v1.0 [21:06:31]action value=print_text [21:06:31]process_action print_text [21:06:31]cmd_print_text [21:06:31]ExternCall_PrintAddStr [21:06:31]wPrintStart [21:06:31]Write to MH i2c: 01 00 00 40 7F BF [21:06:31]Write i2c OK [21:06:31]MH_I2C_Read... [21:06:31]Read from MH i2c: 01 [21:06:31]MH_I2C_Read... [21:06:31]Read from MH i2c: 01 07 00 [21:06:31]MH_I2C_Read... [21:06:31]Read from MH i2c: 01 07 00 40 7F 00 00 00 00 00 FF 0F D4 [21:06:31]RasterBufferAndPrint [21:06:31]line *****ТОВАРНЫЙ ЧЕК***** [21:06:31]line АЗС-134 [21:06:31]line Партнер нефть [21:06:31]line 02508201610067 [21:06:31]line Кассир : Казаков Ч. [21:06:31]line Счет N : (1)949810 [21:06:31]line 29.07.2024 21:04 [21:06:31]line ПРОДАЖА [21:06:31]line ТРК (МРК, ГНК): 54 [21:06:31]line Вид ГСМ : 2710194800 [21:06:31]line ДТ-К-5 [21:06:31]line 100.000 x 76.20 [21:06:31]line ИТОГ: 7620.00 [21:06:31]line Тип оплаты: Талоны: Топливные Талоны [21:06:31]line 3991030 [21:06:31]line ______________________ [21:06:31]line (подпись) [21:06:31]written 0, free lines is 4095 [21:06:32]Write to MH i2c: 01 00 00 54 7F D3 [21:06:32]Write i2c OK [21:06:32]MH_I2C_Read... [21:06:32]Read from MH i2c: 01 [21:06:32]MH_I2C_Read... [21:06:32]Read from MH i2c: 01 07 00 [21:06:32]MH_I2C_Read... [21:06:32]Read from MH i2c: 01 07 00 54 7F 00 00 00 00 00 0F 0E F7 [21:06:32]RasterBufferAndPrint [21:06:32]line [21:06:32]line [21:06:32]line [21:06:32]line [21:06:32]line [21:06:32]written 0, free lines is 3601 [21:06:32]MH_Cut [21:06:32]Write to MH i2c: D1 01 00 5B 7F 01 AC [21:06:32]Write i2c OK [21:06:32]MH_I2C_Read... [21:06:32]Read from MH i2c: D1 [21:06:32]MH_I2C_Read... [21:06:32]Read from MH i2c: D1 01 00 [21:06:32]MH_I2C_Read... [21:06:32]Read from MH i2c: D1 01 00 5B 7F 00 AB [21:06:32]Write to MH i2c: 01 00 00 5C 7F DB [21:06:32]Write i2c OK [21:06:32]MH_I2C_Read... [21:06:32]*** Cut start [21:06:32]*** Partial cut [21:06:32]*** CUTSNS_PIN = 1 [21:06:32]*** CUTSNS_PIN = 0 [21:06:32]*** Brake cut motor [21:06:33]Read from MH i2c: 01 [21:06:33]MH_I2C_Read... [21:06:33]*** Stop cut motor [21:06:33]*** Cut end [21:06:33]Read from MH i2c: 01 07 00 [21:06:33]MH_I2C_Read... [21:06:33]Read from MH i2c: 01 07 00 5C 7F 00 00 00 00 00 FF 0F F0 [21:06:33]process_action print_text done [21:06:33]requested_data is exist [21:06:33]produce_requested_data [21:06:33]requested_item fm.sn is exist - process it [21:06:33]wFMCommunicate request_size=4 [21:06:33]MH_SAM_APDU [21:06:33]CAPDU: 80 11 00 00 [21:06:33]Write to MH i2c: E2 08 00 5D 7F 80 11 00 00 00 00 00 00 56 [21:06:33]Write i2c OK [21:06:33]MH_I2C_Read... [21:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:33]Read from MH i2c: E2 [21:06:33]MH_I2C_Read... [21:06:33]Read from MH i2c: E2 17 00 [21:06:33]MH_I2C_Read... [21:06:33]Read from MH i2c: E2 17 00 5D 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B1 [21:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:06:33]wFMCommunicate OK [21:06:33]requested_item fd.num is exist - process it [21:06:33]SAM_PROTO_GetFieldsCounters [21:06:33]wFMCommunicate request_size=4 [21:06:33]MH_SAM_APDU [21:06:33]CAPDU: 80 13 00 00 [21:06:33]Write to MH i2c: E2 08 00 5E 7F 80 13 00 00 00 00 00 00 59 [21:06:33]Write i2c OK [21:06:33]MH_I2C_Read... [21:06:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:33]Read from MH i2c: E2 [21:06:33]MH_I2C_Read... [21:06:33]Read from MH i2c: E2 62 00 [21:06:33]MH_I2C_Read... [21:06:33]Read from MH i2c: E2 62 00 5E 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 F3 [21:06:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:06:33]wFMCommunicate OK [21:06:33]SAM_PROTO_GetFieldsCounters done [21:06:33]requested_item shift.num is exist - process it [21:06:33]requested_item shift.opened is exist - process it [21:06:33]req_shift_opened [21:06:33]FM_GetShiftState [21:06:33]SAM_PROTO_GetShiftState [21:06:33]wFMCommunicate request_size=4 [21:06:33]MH_SAM_APDU [21:06:33]CAPDU: 80 13 01 00 [21:06:33]Write to MH i2c: E2 08 00 5F 7F 80 13 01 00 00 00 00 00 5B [21:06:33]Write i2c OK [21:06:33]MH_I2C_Read... [21:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:33]Read from MH i2c: E2 [21:06:33]MH_I2C_Read... [21:06:33]Read from MH i2c: E2 0E 00 [21:06:33]MH_I2C_Read... [21:06:33]Read from MH i2c: E2 0E 00 5F 7F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 89 [21:06:33]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:06:33]wFMCommunicate OK [21:06:33]SAM_PROTO_GetShiftState done [21:06:33]FM_GetShiftState done [21:06:33]req_shift_opened done [21:06:33]requested_item shift.open_date is exist - process it [21:06:33]req_shift_open_date [21:06:33]req_shift_open_date done [21:06:33]produce_requested_data done [21:06:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118915,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:06:33]process_action_free print_text [21:06:33]json_value_free [21:06:33]json_value_free done [21:06:33]process_json_proto returns [21:06:33]Send response to host [21:06:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118915,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:06:33]free response buf [21:06:33]execute_script done [21:06:33]execute_script returns [21:06:33]free content buf [21:06:33]Sock 9.Close socket [21:06:33]Sock 9.Thread stoped [21:06:35]OFD Sender: No OFD packet to send [21:06:39]accept exits with 10 [21:06:39]New connection [21:06:39]New thread 3067239780 created [21:06:39]Thread 3067383140 joined [21:06:39]Waiting for new connection... [21:06:39] Sock 10.Parse request [21:06:39]Sock 10.Check first char [21:06:39]Sock 10.First char is OK [21:06:39]request: POST /json_proto HTTP/1.0 [21:06:39]Method: POST [21:06:39]URL: /json_proto [21:06:39]Method is POST - this is cgi request [21:06:39]url: /json_proto [21:06:39]query_string will be loaded in cgi processing [21:06:39]execute_cgi json_proto POST (null) [21:06:39]execute_cgi path=json_proto method=POST [21:06:39]POST find Content-Length [21:06:39]Host: 172.17.45.7:8080 [21:06:39]Content-Length: 1195 [21:06:39]Content-Type: application/json [21:06:39] [21:06:39]POST finish read [21:06:39]Found Content-Length = 1195 [21:06:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949811\u000A29.07.2024 21:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991031\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:39]execute_script... [21:06:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949811\u000A29.07.2024 21:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991031\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:39]POST & json_proto [21:06:39]process_json_proto [21:06:39]json parsed OK: [21:06:39]protocol is kg_v1.0 [21:06:39]action value=print_text [21:06:39]process_action print_text [21:06:39]cmd_print_text [21:06:39]ExternCall_PrintAddStr [21:06:39]wPrintStart [21:06:39]Write to MH i2c: 01 00 00 60 7F DF [21:06:39]Write i2c OK [21:06:39]MH_I2C_Read... [21:06:39]Read from MH i2c: 01 [21:06:39]MH_I2C_Read... [21:06:39]Read from MH i2c: 01 07 00 [21:06:39]MH_I2C_Read... [21:06:39]Read from MH i2c: 01 07 00 60 7F 00 00 00 00 00 FF 0F F4 [21:06:39]RasterBufferAndPrint [21:06:39]line *****ТОВАРНЫЙ ЧЕК***** [21:06:39]line АЗС-134 [21:06:39]line Партнер нефть [21:06:39]line 02508201610067 [21:06:39]line Кассир : Казаков Ч. [21:06:39]line Счет N : (1)949811 [21:06:39]line 29.07.2024 21:04 [21:06:39]line ПРОДАЖА [21:06:39]line ТРК (МРК, ГНК): 64 [21:06:39]line Вид ГСМ : 2710194800 [21:06:39]line ДТ-К-5 [21:06:39]line 100.000 x 76.20 [21:06:39]line ИТОГ: 7620.00 [21:06:39]line Тип оплаты: Талоны: Топливные Талоны [21:06:39]line 3991031 [21:06:39]line ______________________ [21:06:39]line (подпись) [21:06:39]written 0, free lines is 4095 [21:06:39]Write to MH i2c: 01 00 00 74 7F F3 [21:06:39]Write i2c OK [21:06:39]MH_I2C_Read... [21:06:39]Read from MH i2c: 01 [21:06:39]MH_I2C_Read... [21:06:39]Read from MH i2c: 01 07 00 [21:06:39]MH_I2C_Read... [21:06:39]Read from MH i2c: 01 07 00 74 7F 00 00 00 00 00 0F 0E 17 [21:06:39]RasterBufferAndPrint [21:06:39]line [21:06:39]line [21:06:39]line [21:06:39]line [21:06:39]line [21:06:39]written 0, free lines is 3600 [21:06:39]MH_Cut [21:06:39]Write to MH i2c: D1 01 00 7B 7F 01 CC [21:06:39]Write i2c OK [21:06:39]MH_I2C_Read... [21:06:39]Read from MH i2c: D1 [21:06:39]MH_I2C_Read... [21:06:39]Read from MH i2c: D1 01 00 [21:06:39]MH_I2C_Read... [21:06:39]Read from MH i2c: D1 01 00 7B 7F 00 CB [21:06:39]Write to MH i2c: 01 00 00 7C 7F FB [21:06:39]Write i2c OK [21:06:39]MH_I2C_Read... [21:06:40]*** Cut start [21:06:40]*** Partial cut [21:06:40]*** CUTSNS_PIN = 1 [21:06:40]*** CUTSNS_PIN = 0 [21:06:40]OFD Sender: No OFD packet to send [21:06:40]*** Brake cut motor [21:06:41]Read from MH i2c: 01 [21:06:41]MH_I2C_Read... [21:06:41]*** Stop cut motor [21:06:41]*** Cut end [21:06:41]Read from MH i2c: 01 07 00 [21:06:41]MH_I2C_Read... [21:06:41]Read from MH i2c: 01 07 00 7C 7F 00 00 00 00 00 FF 0F 10 [21:06:41]process_action print_text done [21:06:41]requested_data is exist [21:06:41]produce_requested_data [21:06:41]requested_item fm.sn is exist - process it [21:06:41]wFMCommunicate request_size=4 [21:06:41]MH_SAM_APDU [21:06:41]CAPDU: 80 11 00 00 [21:06:41]Write to MH i2c: E2 08 00 7D 7F 80 11 00 00 00 00 00 00 76 [21:06:41]Write i2c OK [21:06:41]MH_I2C_Read... [21:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:41]Read from MH i2c: E2 [21:06:41]MH_I2C_Read... [21:06:41]Read from MH i2c: E2 17 00 [21:06:41]MH_I2C_Read... [21:06:41]Read from MH i2c: E2 17 00 7D 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D1 [21:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:06:41]wFMCommunicate OK [21:06:41]requested_item fd.num is exist - process it [21:06:41]SAM_PROTO_GetFieldsCounters [21:06:41]wFMCommunicate request_size=4 [21:06:41]MH_SAM_APDU [21:06:41]CAPDU: 80 13 00 00 [21:06:41]Write to MH i2c: E2 08 00 7E 7F 80 13 00 00 00 00 00 00 79 [21:06:41]Write i2c OK [21:06:41]MH_I2C_Read... [21:06:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:41]Read from MH i2c: E2 [21:06:41]MH_I2C_Read... [21:06:41]Read from MH i2c: E2 62 00 [21:06:41]MH_I2C_Read... [21:06:41]Read from MH i2c: E2 62 00 7E 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 13 [21:06: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:06:41]wFMCommunicate OK [21:06:41]SAM_PROTO_GetFieldsCounters done [21:06:41]requested_item shift.num is exist - process it [21:06:41]requested_item shift.opened is exist - process it [21:06:41]req_shift_opened [21:06:41]FM_GetShiftState [21:06:41]SAM_PROTO_GetShiftState [21:06:41]wFMCommunicate request_size=4 [21:06:41]MH_SAM_APDU [21:06:41]CAPDU: 80 13 01 00 [21:06:41]Write to MH i2c: E2 08 00 7F 7F 80 13 01 00 00 00 00 00 7B [21:06:41]Write i2c OK [21:06:41]MH_I2C_Read... [21:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:41]Read from MH i2c: E2 [21:06:41]MH_I2C_Read... [21:06:41]Read from MH i2c: E2 0E 00 [21:06:41]MH_I2C_Read... [21:06:41]Read from MH i2c: E2 0E 00 7F 7F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A9 [21:06:41]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:06:41]wFMCommunicate OK [21:06:41]SAM_PROTO_GetShiftState done [21:06:41]FM_GetShiftState done [21:06:41]req_shift_opened done [21:06:41]requested_item shift.open_date is exist - process it [21:06:41]req_shift_open_date [21:06:41]req_shift_open_date done [21:06:41]produce_requested_data done [21:06:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118915,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:06:41]process_action_free print_text [21:06:41]json_value_free [21:06:41]json_value_free done [21:06:41]process_json_proto returns [21:06:41]Send response to host [21:06:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118915,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:06:41]free response buf [21:06:41]execute_script done [21:06:41]execute_script returns [21:06:41]free content buf [21:06:41]Sock 10.Close socket [21:06:41]Sock 10.Thread stoped [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:56]OFD Sender: No OFD packet to send [21:11:01]OFD Sender: No OFD packet to send [21:11:06]OFD Sender: No OFD packet to send [21:11:11]OFD Sender: No OFD packet to send [21:11:16]OFD Sender: No OFD packet to send [21:11:21]OFD Sender: No OFD packet to send [21:11:26]OFD Sender: No OFD packet to send [21:11:31]OFD Sender: No OFD packet to send [21:11:36]OFD Sender: No OFD packet to send [21:11:41]OFD Sender: No OFD packet to send [21:11:46]OFD Sender: No OFD packet to send [21:11:51]OFD Sender: No OFD packet to send [21:11:56]OFD Sender: No OFD packet to send [21:11:58]accept exits with 7 [21:11:58]New connection [21:11:58]New thread 3067383140 created [21:11:58]Thread 3067239780 joined [21:11:58]Waiting for new connection... [21:11:58] Sock 7.Parse request [21:11:58]Sock 7.Check first char [21:11:58]Sock 7.First char is OK [21:11:58]request: POST /json_proto HTTP/1.0 [21:11:58]Method: POST [21:11:58]URL: /json_proto [21:11:58]Method is POST - this is cgi request [21:11:58]url: /json_proto [21:11:58]query_string will be loaded in cgi processing [21:11:58]execute_cgi json_proto POST (null) [21:11:58]execute_cgi path=json_proto method=POST [21:11:58]POST find Content-Length [21:11:58]Host: 172.17.45.7:8080 [21:11:58]Content-Length: 1195 [21:11:58]Content-Type: application/json [21:11:58] [21:11:58]POST finish read [21:11:58]Found Content-Length = 1195 [21:11:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949812\u000A29.07.2024 21:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991028\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:58]execute_script... [21:11:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949812\u000A29.07.2024 21:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991028\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:58]POST & json_proto [21:11:58]process_json_proto [21:11:58]json parsed OK: [21:11:58]protocol is kg_v1.0 [21:11:58]action value=print_text [21:11:58]process_action print_text [21:11:58]cmd_print_text [21:11:58]ExternCall_PrintAddStr [21:11:58]wPrintStart [21:11:58]Write to MH i2c: 01 00 00 80 7F FF [21:11:58]Write i2c OK [21:11:58]MH_I2C_Read... [21:11:58]Read from MH i2c: 01 [21:11:58]MH_I2C_Read... [21:11:58]Read from MH i2c: 01 07 00 [21:11:58]MH_I2C_Read... [21:11:58]Read from MH i2c: 01 07 00 80 7F 00 00 00 00 00 FF 0F 14 [21:11:58]RasterBufferAndPrint [21:11:58]line *****ТОВАРНЫЙ ЧЕК***** [21:11:58]line АЗС-134 [21:11:58]line Партнер нефть [21:11:58]line 02508201610067 [21:11:58]line Кассир : Казаков Ч. [21:11:58]line Счет N : (1)949812 [21:11:58]line 29.07.2024 21:09 [21:11:58]line ПРОДАЖА [21:11:58]line ТРК (МРК, ГНК): 54 [21:11:58]line Вид ГСМ : 2710194800 [21:11:58]line ДТ-К-5 [21:11:58]line 100.000 x 76.20 [21:11:58]line ИТОГ: 7620.00 [21:11:58]line Тип оплаты: Талоны: Топливные Талоны [21:11:58]line 3991028 [21:11:58]line ______________________ [21:11:58]line (подпись) [21:11:58]written 0, free lines is 4095 [21:11:58]Write to MH i2c: 01 00 00 94 7F 13 [21:11:58]Write i2c OK [21:11:58]MH_I2C_Read... [21:11:58]Read from MH i2c: 01 [21:11:58]MH_I2C_Read... [21:11:58]Read from MH i2c: 01 07 00 [21:11:58]MH_I2C_Read... [21:11:58]Read from MH i2c: 01 07 00 94 7F 00 00 00 00 00 10 0E 38 [21:11:58]RasterBufferAndPrint [21:11:58]line [21:11:58]line [21:11:58]line [21:11:58]line [21:11:58]line [21:11:58]written 0, free lines is 3601 [21:11:58]MH_Cut [21:11:58]Write to MH i2c: D1 01 00 9B 7F 01 EC [21:11:58]Write i2c OK [21:11:58]MH_I2C_Read... [21:11:58]Read from MH i2c: D1 [21:11:58]MH_I2C_Read... [21:11:58]Read from MH i2c: D1 01 00 [21:11:58]MH_I2C_Read... [21:11:58]Read from MH i2c: D1 01 00 9B 7F 00 EB [21:11:58]Write to MH i2c: 01 00 00 9C 7F 1B [21:11:58]Write i2c OK [21:11:58]MH_I2C_Read... [21:11:58]*** Cut start [21:11:58]*** Partial cut [21:11:58]*** CUTSNS_PIN = 1 [21:11:58]*** CUTSNS_PIN = 0 [21:11:59]*** Brake cut motor [21:11:59]Read from MH i2c: 01 [21:11:59]MH_I2C_Read... [21:11:59]*** Stop cut motor [21:11:59]*** Cut end [21:11:59]Read from MH i2c: 01 07 00 [21:11:59]MH_I2C_Read... [21:11:59]Read from MH i2c: 01 07 00 9C 7F 00 00 00 00 00 FF 0F 30 [21:11:59]process_action print_text done [21:11:59]requested_data is exist [21:11:59]produce_requested_data [21:11:59]requested_item fm.sn is exist - process it [21:11:59]wFMCommunicate request_size=4 [21:11:59]MH_SAM_APDU [21:11:59]CAPDU: 80 11 00 00 [21:11:59]Write to MH i2c: E2 08 00 9D 7F 80 11 00 00 00 00 00 00 96 [21:11:59]Write i2c OK [21:11:59]MH_I2C_Read... [21:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:59]Read from MH i2c: E2 [21:11:59]MH_I2C_Read... [21:11:59]Read from MH i2c: E2 17 00 [21:11:59]MH_I2C_Read... [21:11:59]Read from MH i2c: E2 17 00 9D 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F1 [21:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:11:59]wFMCommunicate OK [21:11:59]requested_item fd.num is exist - process it [21:11:59]SAM_PROTO_GetFieldsCounters [21:11:59]wFMCommunicate request_size=4 [21:11:59]MH_SAM_APDU [21:11:59]CAPDU: 80 13 00 00 [21:11:59]Write to MH i2c: E2 08 00 9E 7F 80 13 00 00 00 00 00 00 99 [21:11:59]Write i2c OK [21:11:59]MH_I2C_Read... [21:11:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:59]Read from MH i2c: E2 [21:11:59]MH_I2C_Read... [21:11:59]Read from MH i2c: E2 62 00 [21:11:59]MH_I2C_Read... [21:11:59]Read from MH i2c: E2 62 00 9E 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [21:11: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:11:59]wFMCommunicate OK [21:11:59]SAM_PROTO_GetFieldsCounters done [21:11:59]requested_item shift.num is exist - process it [21:11:59]requested_item shift.opened is exist - process it [21:11:59]req_shift_opened [21:11:59]FM_GetShiftState [21:11:59]SAM_PROTO_GetShiftState [21:11:59]wFMCommunicate request_size=4 [21:11:59]MH_SAM_APDU [21:11:59]CAPDU: 80 13 01 00 [21:11:59]Write to MH i2c: E2 08 00 9F 7F 80 13 01 00 00 00 00 00 9B [21:11:59]Write i2c OK [21:11:59]MH_I2C_Read... [21:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:59]Read from MH i2c: E2 [21:11:59]MH_I2C_Read... [21:11:59]Read from MH i2c: E2 0E 00 [21:11:59]MH_I2C_Read... [21:11:59]Read from MH i2c: E2 0E 00 9F 7F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C9 [21:11:59]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:11:59]wFMCommunicate OK [21:11:59]SAM_PROTO_GetShiftState done [21:11:59]FM_GetShiftState done [21:11:59]req_shift_opened done [21:11:59]requested_item shift.open_date is exist - process it [21:11:59]req_shift_open_date [21:11:59]req_shift_open_date done [21:11:59]produce_requested_data done [21:11:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118915,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:11:59]process_action_free print_text [21:11:59]json_value_free [21:11:59]json_value_free done [21:11:59]process_json_proto returns [21:11:59]Send response to host [21:11:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118915,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:11:59]free response buf [21:11:59]execute_script done [21:11:59]execute_script returns [21:11:59]free content buf [21:11:59]Sock 7.Close socket [21:11:59]Sock 7.Thread stoped [21:12:01]OFD Sender: No OFD packet to send [21:12:04]accept exits with 9 [21:12:04]New connection [21:12:04]New thread 3067239780 created [21:12:04]Thread 3067383140 joined [21:12:04]Waiting for new connection... [21:12:04] Sock 9.Parse request [21:12:04]Sock 9.Check first char [21:12:04]Sock 9.First char is OK [21:12:04]request: POST /json_proto HTTP/1.0 [21:12:04]Method: POST [21:12:04]URL: /json_proto [21:12:04]Method is POST - this is cgi request [21:12:04]url: /json_proto [21:12:04]query_string will be loaded in cgi processing [21:12:04]execute_cgi json_proto POST (null) [21:12:04]execute_cgi path=json_proto method=POST [21:12:04]POST find Content-Length [21:12:04]Host: 172.17.45.7:8080 [21:12:04]Content-Length: 1195 [21:12:04]Content-Type: application/json [21:12:04] [21:12:04]POST finish read [21:12:04]Found Content-Length = 1195 [21:12:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949813\u000A29.07.2024 21:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991029\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:04]execute_script... [21:12:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949813\u000A29.07.2024 21:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991029\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:04]POST & json_proto [21:12:04]process_json_proto [21:12:04]json parsed OK: [21:12:04]protocol is kg_v1.0 [21:12:04]action value=print_text [21:12:04]process_action print_text [21:12:04]cmd_print_text [21:12:04]ExternCall_PrintAddStr [21:12:04]wPrintStart [21:12:04]Write to MH i2c: 01 00 00 A0 7F 1F [21:12:04]Write i2c OK [21:12:04]MH_I2C_Read... [21:12:04]Read from MH i2c: 01 [21:12:04]MH_I2C_Read... [21:12:04]Read from MH i2c: 01 07 00 [21:12:04]MH_I2C_Read... [21:12:04]Read from MH i2c: 01 07 00 A0 7F 00 00 00 00 00 FF 0F 34 [21:12:04]RasterBufferAndPrint [21:12:04]line *****ТОВАРНЫЙ ЧЕК***** [21:12:04]line АЗС-134 [21:12:04]line Партнер нефть [21:12:04]line 02508201610067 [21:12:04]line Кассир : Казаков Ч. [21:12:04]line Счет N : (1)949813 [21:12:04]line 29.07.2024 21:09 [21:12:04]line ПРОДАЖА [21:12:04]line ТРК (МРК, ГНК): 64 [21:12:04]line Вид ГСМ : 2710194800 [21:12:04]line ДТ-К-5 [21:12:04]line 100.000 x 76.20 [21:12:04]line ИТОГ: 7620.00 [21:12:04]line Тип оплаты: Талоны: Топливные Талоны [21:12:04]line 3991029 [21:12:04]line ______________________ [21:12:04]line (подпись) [21:12:04]written 0, free lines is 4095 [21:12:04]Write to MH i2c: 01 00 00 B4 7F 33 [21:12:04]Write i2c OK [21:12:04]MH_I2C_Read... [21:12:04]Read from MH i2c: 01 [21:12:04]MH_I2C_Read... [21:12:04]Read from MH i2c: 01 07 00 [21:12:04]MH_I2C_Read... [21:12:04]Read from MH i2c: 01 07 00 B4 7F 00 00 00 00 00 10 0E 58 [21:12:04]RasterBufferAndPrint [21:12:04]line [21:12:04]line [21:12:04]line [21:12:04]line [21:12:04]line [21:12:04]written 0, free lines is 3601 [21:12:04]MH_Cut [21:12:04]Write to MH i2c: D1 01 00 BB 7F 01 0C [21:12:04]Write i2c OK [21:12:04]MH_I2C_Read... [21:12:04]Read from MH i2c: D1 [21:12:04]MH_I2C_Read... [21:12:04]Read from MH i2c: D1 01 00 [21:12:04]MH_I2C_Read... [21:12:04]Read from MH i2c: D1 01 00 BB 7F 00 0B [21:12:04]Write to MH i2c: 01 00 00 BC 7F 3B [21:12:04]Write i2c OK [21:12:04]MH_I2C_Read... [21:12:05]*** Cut start [21:12:05]*** Partial cut [21:12:05]*** CUTSNS_PIN = 1 [21:12:05]*** CUTSNS_PIN = 0 [21:12:05]*** Brake cut motor [21:12:05]Read from MH i2c: 01 [21:12:05]MH_I2C_Read... [21:12:05]Read from MH i2c: 01 07 00 [21:12:05]MH_I2C_Read... [21:12:05]*** Stop cut motor [21:12:05]*** Cut end [21:12:05]Read from MH i2c: 01 07 00 BC 7F 00 00 00 00 00 FF 0F 50 [21:12:05]process_action print_text done [21:12:05]requested_data is exist [21:12:05]produce_requested_data [21:12:05]requested_item fm.sn is exist - process it [21:12:05]wFMCommunicate request_size=4 [21:12:05]MH_SAM_APDU [21:12:05]CAPDU: 80 11 00 00 [21:12:05]Write to MH i2c: E2 08 00 BD 7F 80 11 00 00 00 00 00 00 B6 [21:12:05]Write i2c OK [21:12:05]MH_I2C_Read... [21:12:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:05]Read from MH i2c: E2 [21:12:05]MH_I2C_Read... [21:12:05]Read from MH i2c: E2 17 00 [21:12:05]MH_I2C_Read... [21:12:05]Read from MH i2c: E2 17 00 BD 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 11 [21:12:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:12:05]wFMCommunicate OK [21:12:05]requested_item fd.num is exist - process it [21:12:05]SAM_PROTO_GetFieldsCounters [21:12:05]wFMCommunicate request_size=4 [21:12:05]MH_SAM_APDU [21:12:05]CAPDU: 80 13 00 00 [21:12:05]Write to MH i2c: E2 08 00 BE 7F 80 13 00 00 00 00 00 00 B9 [21:12:05]Write i2c OK [21:12:05]MH_I2C_Read... [21:12:06]OFD Sender: No OFD packet to send [21:12:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:12:06]Read from MH i2c: E2 [21:12:06]MH_I2C_Read... [21:12:06]Read from MH i2c: E2 62 00 [21:12:06]MH_I2C_Read... [21:12:06]Read from MH i2c: E2 62 00 BE 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 53 [21:12: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:12:06]wFMCommunicate OK [21:12:06]SAM_PROTO_GetFieldsCounters done [21:12:06]requested_item shift.num is exist - process it [21:12:06]requested_item shift.opened is exist - process it [21:12:06]req_shift_opened [21:12:06]FM_GetShiftState [21:12:06]SAM_PROTO_GetShiftState [21:12:06]wFMCommunicate request_size=4 [21:12:06]MH_SAM_APDU [21:12:06]CAPDU: 80 13 01 00 [21:12:06]Write to MH i2c: E2 08 00 BF 7F 80 13 01 00 00 00 00 00 BB [21:12:06]Write i2c OK [21:12:06]MH_I2C_Read... [21:12:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:06]Read from MH i2c: E2 [21:12:06]MH_I2C_Read... [21:12:06]Read from MH i2c: E2 0E 00 [21:12:06]MH_I2C_Read... [21:12:06]Read from MH i2c: E2 0E 00 BF 7F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E9 [21:12:06]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:12:06]wFMCommunicate OK [21:12:06]SAM_PROTO_GetShiftState done [21:12:06]FM_GetShiftState done [21:12:06]req_shift_opened done [21:12:06]requested_item shift.open_date is exist - process it [21:12:06]req_shift_open_date [21:12:06]req_shift_open_date done [21:12:06]produce_requested_data done [21:12:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118915,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:12:06]process_action_free print_text [21:12:06]json_value_free [21:12:06]json_value_free done [21:12:06]process_json_proto returns [21:12:06]Send response to host [21:12:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118915,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:12:06]free response buf [21:12:06]execute_script done [21:12:06]execute_script returns [21:12:06]free content buf [21:12:06]Sock 9.Close socket [21:12:06]Sock 9.Thread stoped [21:12:11]OFD Sender: No OFD packet to send [21:12:16]OFD Sender: No OFD packet to send [21:12:21]OFD Sender: No OFD packet to send [21:12:26]OFD Sender: No OFD packet to send [21:12:31]OFD Sender: No OFD packet to send [21:12:36]OFD Sender: No OFD packet to send [21:12:41]OFD Sender: No OFD packet to send [21:12:46]OFD Sender: No OFD packet to send [21:12:51]OFD Sender: No OFD packet to send [21:12:56]OFD Sender: No OFD packet to send [21:13:01]OFD Sender: No OFD packet to send [21:13:06]OFD Sender: No OFD packet to send [21:13:11]OFD Sender: No OFD packet to send [21:13:16]OFD Sender: No OFD packet to send [21:13:21]OFD Sender: No OFD packet to send [21:13:26]OFD Sender: No OFD packet to send [21:13:31]OFD Sender: No OFD packet to send [21:13:36]OFD Sender: No OFD packet to send [21:13:41]OFD Sender: No OFD packet to send [21:13:46]OFD Sender: No OFD packet to send [21:13:51]OFD Sender: No OFD packet to send [21:13:56]OFD Sender: No OFD packet to send [21:14:01]OFD Sender: No OFD packet to send [21:14:06]OFD Sender: No OFD packet to send [21:14:09]accept exits with 7 [21:14:09]New connection [21:14:09]New thread 3067383140 created [21:14:09]Thread 3067239780 joined [21:14:09]Waiting for new connection... [21:14:09] Sock 7.Parse request [21:14:09]Sock 7.Check first char [21:14:09]Sock 7.First char is OK [21:14:09]request: POST /json_proto HTTP/1.0 [21:14:09]Method: POST [21:14:09]URL: /json_proto [21:14:09]Method is POST - this is cgi request [21:14:09]url: /json_proto [21:14:09]query_string will be loaded in cgi processing [21:14:09]execute_cgi json_proto POST (null) [21:14:09]execute_cgi path=json_proto method=POST [21:14:09]POST find Content-Length [21:14:09]Host: 172.17.45.7:8080 [21:14:09]Content-Length: 1205 [21:14:09]Content-Type: application/json [21:14:09] [21:14:09]POST finish read [21:14:09]Found Content-Length = 1205 [21:14:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949816\u000A29.07.2024 21:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3839229/4203133\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:09]execute_script... [21:14:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949816\u000A29.07.2024 21:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3839229/4203133\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:09]POST & json_proto [21:14:09]process_json_proto [21:14:09]json parsed OK: [21:14:09]protocol is kg_v1.0 [21:14:09]action value=print_text [21:14:09]process_action print_text [21:14:09]cmd_print_text [21:14:09]ExternCall_PrintAddStr [21:14:09]wPrintStart [21:14:09]Write to MH i2c: 01 00 00 C0 7F 3F [21:14:09]Write i2c OK [21:14:09]MH_I2C_Read... [21:14:09]Read from MH i2c: 01 [21:14:09]MH_I2C_Read... [21:14:09]Read from MH i2c: 01 07 00 [21:14:09]MH_I2C_Read... [21:14:09]Read from MH i2c: 01 07 00 C0 7F 00 00 00 00 00 FF 0F 54 [21:14:09]RasterBufferAndPrint [21:14:09]line *****ТОВАРНЫЙ ЧЕК***** [21:14:09]line АЗС-134 [21:14:09]line Партнер нефть [21:14:09]line 02508201610067 [21:14:09]line Кассир : Казаков Ч. [21:14:09]line Счет N : (1)949816 [21:14:09]line 29.07.2024 21:11 [21:14:09]line ПРОДАЖА [21:14:09]line ТРК (МРК, ГНК): 41 [21:14:09]line Вид ГСМ : 2710124130 [21:14:09]line Аи-92-К-4 [21:14:09]line 20.000 x 67.80 [21:14:09]line ИТОГ: 1356.00 [21:14:09]line Тип оплаты: Талоны: Топливные Талоны [21:14:09]line 3839229/4203133 [21:14:09]line ______________________ [21:14:09]line (подпись) [21:14:09]written 0, free lines is 4095 [21:14:09]Write to MH i2c: 01 00 00 D4 7F 53 [21:14:09]Write i2c OK [21:14:09]MH_I2C_Read... [21:14:09]Read from MH i2c: 01 [21:14:09]MH_I2C_Read... [21:14:09]Read from MH i2c: 01 07 00 [21:14:09]MH_I2C_Read... [21:14:09]Read from MH i2c: 01 07 00 D4 7F 00 00 00 00 00 15 0E 7D [21:14:09]RasterBufferAndPrint [21:14:09]line [21:14:09]line [21:14:09]line [21:14:09]line [21:14:09]line [21:14:09]written 0, free lines is 3606 [21:14:09]MH_Cut [21:14:09]Write to MH i2c: D1 01 00 DB 7F 01 2C [21:14:09]Write i2c OK [21:14:09]MH_I2C_Read... [21:14:09]Read from MH i2c: D1 [21:14:09]MH_I2C_Read... [21:14:09]Read from MH i2c: D1 01 00 [21:14:09]MH_I2C_Read... [21:14:09]Read from MH i2c: D1 01 00 DB 7F 00 2B [21:14:09]Write to MH i2c: 01 00 00 DC 7F 5B [21:14:09]Write i2c OK [21:14:09]MH_I2C_Read... [21:14:10]*** Cut start [21:14:10]*** Partial cut [21:14:10]*** CUTSNS_PIN = 1 [21:14:10]*** CUTSNS_PIN = 0 [21:14:10]*** Brake cut motor [21:14:10]Read from MH i2c: 01 [21:14:10]MH_I2C_Read... [21:14:10]*** Stop cut motor [21:14:10]*** Cut end [21:14:10]Read from MH i2c: 01 07 00 [21:14:10]MH_I2C_Read... [21:14:10]Read from MH i2c: 01 07 00 DC 7F 00 00 00 00 00 FF 0F 70 [21:14:10]process_action print_text done [21:14:10]requested_data is exist [21:14:10]produce_requested_data [21:14:10]requested_item fm.sn is exist - process it [21:14:10]wFMCommunicate request_size=4 [21:14:10]MH_SAM_APDU [21:14:10]CAPDU: 80 11 00 00 [21:14:10]Write to MH i2c: E2 08 00 DD 7F 80 11 00 00 00 00 00 00 D6 [21:14:10]Write i2c OK [21:14:10]MH_I2C_Read... [21:14:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:10]Read from MH i2c: E2 [21:14:10]MH_I2C_Read... [21:14:10]Read from MH i2c: E2 17 00 [21:14:10]MH_I2C_Read... [21:14:10]Read from MH i2c: E2 17 00 DD 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 31 [21:14:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:14:10]wFMCommunicate OK [21:14:10]requested_item fd.num is exist - process it [21:14:10]SAM_PROTO_GetFieldsCounters [21:14:10]wFMCommunicate request_size=4 [21:14:10]MH_SAM_APDU [21:14:10]CAPDU: 80 13 00 00 [21:14:10]Write to MH i2c: E2 08 00 DE 7F 80 13 00 00 00 00 00 00 D9 [21:14:10]Write i2c OK [21:14:10]MH_I2C_Read... [21:14:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:14:11]Read from MH i2c: E2 [21:14:11]MH_I2C_Read... [21:14:11]Read from MH i2c: E2 62 00 [21:14:11]MH_I2C_Read... [21:14:11]Read from MH i2c: E2 62 00 DE 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 73 [21:14: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:14:11]wFMCommunicate OK [21:14:11]SAM_PROTO_GetFieldsCounters done [21:14:11]requested_item shift.num is exist - process it [21:14:11]requested_item shift.opened is exist - process it [21:14:11]req_shift_opened [21:14:11]FM_GetShiftState [21:14:11]SAM_PROTO_GetShiftState [21:14:11]wFMCommunicate request_size=4 [21:14:11]MH_SAM_APDU [21:14:11]CAPDU: 80 13 01 00 [21:14:11]Write to MH i2c: E2 08 00 DF 7F 80 13 01 00 00 00 00 00 DB [21:14:11]Write i2c OK [21:14:11]MH_I2C_Read... [21:14:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:11]Read from MH i2c: E2 [21:14:11]MH_I2C_Read... [21:14:11]Read from MH i2c: E2 0E 00 [21:14:11]MH_I2C_Read... [21:14:11]Read from MH i2c: E2 0E 00 DF 7F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 09 [21:14:11]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:14:11]wFMCommunicate OK [21:14:11]SAM_PROTO_GetShiftState done [21:14:11]FM_GetShiftState done [21:14:11]req_shift_opened done [21:14:11]requested_item shift.open_date is exist - process it [21:14:11]req_shift_open_date [21:14:11]req_shift_open_date done [21:14:11]produce_requested_data done [21:14:11]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118915,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:14:11]process_action_free print_text [21:14:11]json_value_free [21:14:11]json_value_free done [21:14:11]process_json_proto returns [21:14:11]Send response to host [21:14:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118915,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:14:11]free response buf [21:14:11]execute_script done [21:14:11]execute_script returns [21:14:11]free content buf [21:14:11]Sock 7.Close socket [21:14:11]Sock 7.Thread stoped [21:14:11]OFD Sender: No OFD packet to send [21:14:16]OFD Sender: No OFD packet to send [21:14:21]OFD Sender: No OFD packet to send [21:14:26]OFD Sender: No OFD packet to send [21:14:29]accept exits with 9 [21:14:29]New connection [21:14:29]New thread 3067239780 created [21:14:29]Thread 3067383140 joined [21:14:29]Waiting for new connection... [21:14:29] Sock 9.Parse request [21:14:29]Sock 9.Check first char [21:14:29]Sock 9.First char is OK [21:14:29]request: POST /json_proto HTTP/1.0 [21:14:29]Method: POST [21:14:29]URL: /json_proto [21:14:29]Method is POST - this is cgi request [21:14:29]url: /json_proto [21:14:29]query_string will be loaded in cgi processing [21:14:29]execute_cgi json_proto POST (null) [21:14:29]execute_cgi path=json_proto method=POST [21:14:29]POST find Content-Length [21:14:29]Host: 172.17.45.7:8080 [21:14:29]Content-Length: 819 [21:14:29]Content-Type: application/json [21:14:29] [21:14:29]POST finish read [21:14:29]Found Content-Length = 819 [21:14:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:29]execute_script... [21:14:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:29]POST & json_proto [21:14:29]process_json_proto [21:14:29]json parsed OK: [21:14:29]protocol is kg_v1.0 [21:14:29]action value=close_receipt [21:14:29]process_action close_receipt [21:14:29]cmd_close_receipt [21:14:29]MH_GetDate [21:14:29]Write to MH i2c: F0 00 00 E0 7F 4E [21:14:29]Write i2c OK [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: F0 [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: F0 09 00 [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: F0 09 00 E0 7F 00 3C 06 A8 66 90 0F 3E 66 EA [21:14:29]GetLastDocTimeStamp 1722286869 [21:14:29]current date 1722287676 [21:14:29]FM_GetShiftState [21:14:29]SAM_PROTO_GetShiftState [21:14:29]wFMCommunicate request_size=4 [21:14:29]MH_SAM_APDU [21:14:29]CAPDU: 80 13 01 00 [21:14:29]Write to MH i2c: E2 08 00 E1 7F 80 13 01 00 00 00 00 00 DD [21:14:29]Write i2c OK [21:14:29]MH_I2C_Read... [21:14:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:29]Read from MH i2c: E2 [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: E2 0E 00 [21:14:29]MH_I2C_Read... [21:14:29]Read from MH i2c: E2 0E 00 E1 7F 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 0B [21:14:29]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:14:29]wFMCommunicate OK [21:14:29]SAM_PROTO_GetShiftState done [21:14:29]FM_GetShiftState done [21:14:29]opened in 1722211641 [21:14:29]opened+sec_in_day 1722298041 [21:14:29]quantity*price = 200025 [21:14:29]sum+1 = 200026 [21:14:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 292 29.07.2024 21:14 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118916 ФПД: 77734432923518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T211436&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118916&fm=77734432923518&tin=02508201610067®Number=0000000000092660&sum=200000 [21:14:30]StoreToDocumentArchive [21:14:30]shift 434 fd 118916 [21:14:30]save to /storage/0434/doc_00118916 [21:14:30]save last doc name /storage/0434/doc_00118916 to /storage/kkm_last_doc_name [21:14:30]save OK [21:14:30]Clear old archive folders... [21:14:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:14:30]tlvbuf is 020613E0 [21:14:30]SAM_PROTO_ClearQueue [21:14:30]wFMCommunicate request_size=4 [21:14:30]MH_SAM_APDU [21:14:30]CAPDU: 80 09 00 00 [21:14:30]Write to MH i2c: E2 08 00 EE 7F 80 09 00 00 00 00 00 00 DF [21:14:30]Write i2c OK [21:14:30]MH_I2C_Read... [21:14:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:14:30]Read from MH i2c: E2 [21:14:30]MH_I2C_Read... [21:14:30]Read from MH i2c: E2 03 00 [21:14:30]MH_I2C_Read... [21:14:30]Read from MH i2c: E2 03 00 EE 7F 00 90 00 E1 [21:14:30]RAPDU: 90 00 [21:14:30]wFMCommunicate OK [21:14:30]SAM_PROTO_ClearQueue done [21:14:30]KKMCreateOFDPacket [21:14:30]OFDProtocolAddRootSTLVToBuf [21:14:30]FM_MakeSignedData [21:14:30]FM_MakeSignedData [21:14:30]SAM_PROTO_SignData [21:14:30]wFMCommunicate request_size=4 [21:14:30]MH_SAM_APDU [21:14:30]CAPDU: 80 0D 01 02 [21:14:30]Write to MH i2c: E2 08 00 EF 7F 80 0D 01 02 00 00 00 00 E7 [21:14:30]Write i2c OK [21:14:30]MH_I2C_Read... [21:14:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:14:30]Read from MH i2c: E2 [21:14:30]MH_I2C_Read... [21:14:30]Read from MH i2c: E2 03 00 [21:14:30]MH_I2C_Read... [21:14:30]Read from MH i2c: E2 03 00 EF 7F 00 90 00 E2 [21:14:30]RAPDU: 90 00 [21:14:30]wFMCommunicate OK [21:14:30]wFMCommunicate request_size=255 [21:14:30]MH_SAM_APDU [21:14:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 3C 06 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 D0 01 00 35 04 06 00 46 B2 F5 42 [21:14:30]Write to MH i2c: E2 02 01 F0 7F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 3C 06 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 D0 01 00 35 04 06 00 46 B2 F5 42 00 00 11 [21:14:30]Write i2c OK [21:14:30]MH_I2C_Read... [21:14:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:30]Read from MH i2c: E2 [21:14:30]MH_I2C_Read... [21:14:30]Read from MH i2c: E2 03 00 [21:14:30]MH_I2C_Read... [21:14:30]Read from MH i2c: E2 03 00 F0 7F 00 90 00 E3 [21:14:30]RAPDU: 90 00 [21:14:30]wFMCommunicate OK [21:14:30]wFMCommunicate request_size=7 [21:14:30]MH_SAM_APDU [21:14:30]CAPDU: 80 0D 02 02 02 DF 7E [21:14:30]Write to MH i2c: E2 0A 00 F1 7F 80 0D 02 02 02 00 DF 7E 00 00 4B [21:14:30]Write i2c OK [21:14:30]MH_I2C_Read... [21:14:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:30]Read from MH i2c: E2 [21:14:30]MH_I2C_Read... [21:14:30]Read from MH i2c: E2 03 00 [21:14:30]MH_I2C_Read... [21:14:30]Read from MH i2c: E2 03 00 F1 7F 00 90 00 E4 [21:14:30]RAPDU: 90 00 [21:14:30]wFMCommunicate OK [21:14:30]wFMCommunicate request_size=4 [21:14:30]MH_SAM_APDU [21:14:30]CAPDU: 80 0D 03 02 [21:14:30]Write to MH i2c: E2 08 00 F2 7F 80 0D 03 02 00 00 00 00 EC [21:14:30]Write i2c OK [21:14:30]MH_I2C_Read... [21:14:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:14:30]Read from MH i2c: E2 [21:14:30]MH_I2C_Read... [21:14:30]Read from MH i2c: E2 0B 00 [21:14:30]MH_I2C_Read... [21:14:30]Read from MH i2c: E2 0B 00 F2 7F 00 65 02 C4 09 13 00 D7 6C 90 00 77 [21:14:30]RAPDU: 65 02 C4 09 13 00 D7 6C 90 00 [21:14:30]wFMCommunicate OK [21:14:30]SAM_PROTO_SignData done [21:14:30]FM_MakeSignedData done [21:14:30]CreateOFDProtocolMessage [21:14:30]wFMCommunicate request_size=4 [21:14:30]MH_SAM_APDU [21:14:30]CAPDU: 80 11 00 00 [21:14:30]Write to MH i2c: E2 08 00 F3 7F 80 11 00 00 00 00 00 00 EC [21:14:30]Write i2c OK [21:14:30]MH_I2C_Read... [21:14:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:30]Read from MH i2c: E2 [21:14:30]MH_I2C_Read... [21:14:30]Read from MH i2c: E2 17 00 [21:14:30]MH_I2C_Read... [21:14:30]Read from MH i2c: E2 17 00 F3 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 47 [21:14:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:14:30]wFMCommunicate OK [21:14:30]CreateOFDProtocolMessage done [21:14:30]OFDSenderStorePacket 118916 [21:14:30]StoreOFDPacket docnum=118916 [21:14:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 35 23 04 01 5E BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 3C 06 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 D0 01 00 35 04 06 00 46 B2 F5 42 DF 7E 65 02 C4 09 13 00 D7 6C [21:14:30]CheckFolder [21:14:30]dirname=/storage/ofd_packets [21:14:30]CheckFolder done [21:14:30]ProducePacketName [21:14:30]name=ofd_packets/00118916 [21:14:30]NVStorageSaveData ofd_packets/00118916 [21:14:30]File name is /storage/ofd_packets/00118916 [21:14:30]Write 298 bytes [21:14:30]NVStorageSaveData done [21:14:30]OFDSenderStorePacket done [21:14:30]KKMCreateOFDPacket done [21:14:30]NVStorageSaveData kkm_last_timestamp [21:14:30]File name is /storage/kkm_last_timestamp [21:14:30]Write 4 bytes [21:14:30]NVStorageSaveData done [21:14:30]ExternCall_PrintAddStr [21:14:30]wPrintStart [21:14:30]Write to MH i2c: 01 00 00 F4 7F 73 [21:14:30]Write i2c OK [21:14:30]MH_I2C_Read... [21:14:30]Read from MH i2c: 01 [21:14:30]MH_I2C_Read... [21:14:30]Read from MH i2c: 01 07 00 [21:14:30]MH_I2C_Read... [21:14:30]Read from MH i2c: 01 07 00 F4 7F 00 00 00 00 00 FF 0F 88 [21:14:30]RasterBufferAndPrint [21:14:30]line Счет N : (1)949817 [21:14:30]line ИНН: 02508201610067 [21:14:30]line Контрольно-Кассовый Чек [21:14:30]line ПРОДАЖА [21:14:30]line ТРК (МРК, ГНК) : 11 [21:14:30]line Товар: 2710194800 [21:14:30]line ДТ-К-5 [21:14:30]line 26.250 * 76.20 [21:14:30]line = 2000.25 [21:14:30]line НДС 12% НСП 1% [21:14:30]line > о реализуемом товаре [21:14:30]line ОКРУГЛЕНИЕ: -0.25 [21:14:30]line ИТОГО: 2000.00 [21:14:30]line НСП 1% : 17.70 [21:14:30]line НДС 12% : 212.42 [21:14:30]line Наличными: 0.00 [21:14:30]line Безнал.: 2000.00 [21:14:30]line Место: АЗС № 134 "Партнер Нефть" [21:14:30]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:14:30]line СНО: Общий режим [21:14:30]line Чек 292 29.07.2024 21:14 [21:14:30]line Смена: 434 ФФД: 1.0 [21:14:30]line ЗНМ: 0300000044 [21:14:30]line РНМ: 0000000000092660 [21:14:30]line Версия ККМ: 001 [21:14:30]line Платежная система: O! деньги [21:14:30]line ФМ: 0000000000874939 [21:14:30]line ФД: 118916 [21:14:30]line ФПД: 77734432923518 [21:14:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T211436&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118916&fm=77734432923518&tin=02508201610067®Number=0000000000092660&sum=200000 [21:14:31]OFD Sender: Processing packet 118916 [packets to send 86, broken 85] [21:14:31]ProducePacketName [21:14:31]name=ofd_packets/00118916 [21:14:31]OFD Sender: To server: pG, [21:14:31]CommunicateWithHost lk.salyk.kg:30040 [21:14:31]ConnectInit lk.salyk.kg [21:14:31]written 0, free lines is 4095 [21:14:31]Connected sock=10 [21:14:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 35 23 04 01 5E BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 3C 06 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 D0 01 00 35 04 06 00 46 B2 F5 42 DF 7E 65 02 C4 09 13 00 D7 6C [21:14:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E6 11 47 00 1D 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 D0 01 00 F4 03 04 00 C9 B3 A7 66 B6 04 01 00 00 94 E4 89 35 8B BB 5B C5 [21:14:31]CommunicateWithHost err = 0 [21:14:31]CheckOFDResponse [21:14:31]1017 (14) - 77093643461234 [21:14:31]1041 (16) - 0000000000874939 [21:14:31]1040 (4) - 118916 [21:14:31]1012 (4) - 29.07.2024 15:22 [21:14:31]1206 (1) - 0 [21:14:31]OFD Sender: Remove packet 118916 [21:14:31]ProducePacketName [21:14:31]name=ofd_packets/00118916 [21:14:31]NVStorageDeleteData [21:14:31]Write to MH i2c: 01 00 00 1E 80 9E [21:14:31]Write i2c OK [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: 01 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: 01 07 00 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: 01 07 00 1E 80 00 00 00 00 00 EA 0C 9B [21:14:31]RasterBufferAndPrint [21:14:31]line [21:14:31]line [21:14:31]line [21:14:31]line [21:14:31]line [21:14:31]written 0, free lines is 3312 [21:14:31]MH_Cut [21:14:31]Write to MH i2c: D1 01 00 25 80 01 77 [21:14:31]Write i2c OK [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: D1 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: D1 01 00 [21:14:31]MH_I2C_Read... [21:14:31]Read from MH i2c: D1 01 00 25 80 00 76 [21:14:31]Write to MH i2c: 01 00 00 26 80 A6 [21:14:31]Write i2c OK [21:14:31]MH_I2C_Read... [21:14:32]OFD Sender: No OFD packet to send [21:14:32]*** Cut start [21:14:32]*** Partial cut [21:14:32]*** CUTSNS_PIN = 1 [21:14:32]*** CUTSNS_PIN = 0 [21:14:32]*** Brake cut motor [21:14:33]Read from MH i2c: 01 [21:14:33]MH_I2C_Read... [21:14:33]*** Stop cut motor [21:14:33]*** Cut end [21:14:33]Read from MH i2c: 01 07 00 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: 01 07 00 26 80 00 00 00 00 00 FF 0F BB [21:14:33]process_action close_receipt done [21:14:33]requested_data is exist [21:14:33]produce_requested_data [21:14:33]requested_item fm.sn is exist - process it [21:14:33]wFMCommunicate request_size=4 [21:14:33]MH_SAM_APDU [21:14:33]CAPDU: 80 11 00 00 [21:14:33]Write to MH i2c: E2 08 00 27 80 80 11 00 00 00 00 00 00 21 [21:14:33]Write i2c OK [21:14:33]MH_I2C_Read... [21:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:33]Read from MH i2c: E2 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: E2 17 00 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: E2 17 00 27 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7C [21:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:14:33]wFMCommunicate OK [21:14:33]requested_item fd.num is exist - process it [21:14:33]SAM_PROTO_GetFieldsCounters [21:14:33]wFMCommunicate request_size=4 [21:14:33]MH_SAM_APDU [21:14:33]CAPDU: 80 13 00 00 [21:14:33]Write to MH i2c: E2 08 00 28 80 80 13 00 00 00 00 00 00 24 [21:14:33]Write i2c OK [21:14:33]MH_I2C_Read... [21:14:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:14:33]Read from MH i2c: E2 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: E2 62 00 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: E2 62 00 28 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 84 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 C2 [21:14:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 84 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:14:33]wFMCommunicate OK [21:14:33]SAM_PROTO_GetFieldsCounters done [21:14:33]requested_item shift.num is exist - process it [21:14:33]requested_item shift.opened is exist - process it [21:14:33]req_shift_opened [21:14:33]FM_GetShiftState [21:14:33]SAM_PROTO_GetShiftState [21:14:33]wFMCommunicate request_size=4 [21:14:33]MH_SAM_APDU [21:14:33]CAPDU: 80 13 01 00 [21:14:33]Write to MH i2c: E2 08 00 29 80 80 13 01 00 00 00 00 00 26 [21:14:33]Write i2c OK [21:14:33]MH_I2C_Read... [21:14:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:33]Read from MH i2c: E2 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: E2 0E 00 [21:14:33]MH_I2C_Read... [21:14:33]Read from MH i2c: E2 0E 00 29 80 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 54 [21:14:33]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:14:33]wFMCommunicate OK [21:14:33]SAM_PROTO_GetShiftState done [21:14:33]FM_GetShiftState done [21:14:33]req_shift_opened done [21:14:33]requested_item shift.open_date is exist - process it [21:14:33]req_shift_open_date [21:14:33]req_shift_open_date done [21:14:33]produce_requested_data done [21:14:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118916,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:14:33]process_action_free close_receipt [21:14:33]json_value_free [21:14:33]json_value_free done [21:14:33]process_json_proto returns [21:14:33]Send response to host [21:14:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118916,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:14:33]free response buf [21:14:33]execute_script done [21:14:33]execute_script returns [21:14:33]free content buf [21:14:33]Sock 9.Close socket [21:14:33]Sock 9.Thread stoped [21:14:37]OFD Sender: No OFD packet to send [21:14:42]OFD Sender: No OFD packet to send [21:14:42]accept exits with 7 [21:14:42]New connection [21:14:42]New thread 3067383140 created [21:14:42]Thread 3067239780 joined [21:14:42]Waiting for new connection... [21:14:42] Sock 7.Parse request [21:14:42]Sock 7.Check first char [21:14:42]Sock 7.First char is OK [21:14:42]request: POST /json_proto HTTP/1.0 [21:14:42]Method: POST [21:14:42]URL: /json_proto [21:14:42]Method is POST - this is cgi request [21:14:42]url: /json_proto [21:14:42]query_string will be loaded in cgi processing [21:14:42]execute_cgi json_proto POST (null) [21:14:42]execute_cgi path=json_proto method=POST [21:14:42]POST find Content-Length [21:14:42]Host: 172.17.45.7:8080 [21:14:42]Content-Length: 677 [21:14:42]Content-Type: application/json [21:14:42] [21:14:42]POST finish read [21:14:42]Found Content-Length = 677 [21:14:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.130, "sum" : 144.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 144.00, "total" : 144.00, "payments": [ { "type": 0, "sum" : 144.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:42]execute_script... [21:14: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)949818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.130, "sum" : 144.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 144.00, "total" : 144.00, "payments": [ { "type": 0, "sum" : 144.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:42]POST & json_proto [21:14:42]process_json_proto [21:14:42]json parsed OK: [21:14:42]protocol is kg_v1.0 [21:14:42]action value=close_receipt [21:14:42]process_action close_receipt [21:14:42]cmd_close_receipt [21:14:42]MH_GetDate [21:14:42]Write to MH i2c: F0 00 00 2A 80 99 [21:14:42]Write i2c OK [21:14:42]MH_I2C_Read... [21:14:42]Read from MH i2c: F0 [21:14:42]MH_I2C_Read... [21:14:42]Read from MH i2c: F0 09 00 [21:14:42]MH_I2C_Read... [21:14:42]Read from MH i2c: F0 09 00 2A 80 00 4A 06 A8 66 90 0F 3E 66 43 [21:14:42]GetLastDocTimeStamp 1722287676 [21:14:42]current date 1722287690 [21:14:42]FM_GetShiftState [21:14:42]SAM_PROTO_GetShiftState [21:14:42]wFMCommunicate request_size=4 [21:14:42]MH_SAM_APDU [21:14:42]CAPDU: 80 13 01 00 [21:14:42]Write to MH i2c: E2 08 00 2B 80 80 13 01 00 00 00 00 00 28 [21:14:42]Write i2c OK [21:14:42]MH_I2C_Read... [21:14:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:42]Read from MH i2c: E2 [21:14:42]MH_I2C_Read... [21:14:42]Read from MH i2c: E2 0E 00 [21:14:42]MH_I2C_Read... [21:14:42]Read from MH i2c: E2 0E 00 2B 80 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 56 [21:14:42]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:14:42]wFMCommunicate OK [21:14:42]SAM_PROTO_GetShiftState done [21:14:42]FM_GetShiftState done [21:14:42]opened in 1722211641 [21:14:42]opened+sec_in_day 1722298041 [21:14:42]quantity*price = 14441 [21:14:42]sum+1 = 14442 [21:14:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 144.00 Внесено: 144.00 СДАЧА: 0.00 НСП 1% : 1.28 НДС 12% : 15.34 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 293 29.07.2024 21:14 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118917 ФПД: 221438039349322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T211450&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118917&fm=221438039349322&tin=02508201610067®Number=0000000000092660&sum=14400 [21:14:43]StoreToDocumentArchive [21:14:43]shift 434 fd 118917 [21:14:43]save to /storage/0434/doc_00118917 [21:14:43]save last doc name /storage/0434/doc_00118917 to /storage/kkm_last_doc_name [21:14:43]save OK [21:14:43]Clear old archive folders... [21:14:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:14:43]tlvbuf is 02061320 [21:14:43]SAM_PROTO_ClearQueue [21:14:43]wFMCommunicate request_size=4 [21:14:43]MH_SAM_APDU [21:14:43]CAPDU: 80 09 00 00 [21:14:43]Write to MH i2c: E2 08 00 38 80 80 09 00 00 00 00 00 00 2A [21:14:43]Write i2c OK [21:14:43]MH_I2C_Read... [21:14:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:14:43]Read from MH i2c: E2 [21:14:43]MH_I2C_Read... [21:14:43]Read from MH i2c: E2 03 00 [21:14:43]MH_I2C_Read... [21:14:43]Read from MH i2c: E2 03 00 38 80 00 90 00 2C [21:14:43]RAPDU: 90 00 [21:14:43]wFMCommunicate OK [21:14:43]SAM_PROTO_ClearQueue done [21:14:43]KKMCreateOFDPacket [21:14:43]OFDProtocolAddRootSTLVToBuf [21:14:43]FM_MakeSignedData [21:14:43]FM_MakeSignedData [21:14:43]SAM_PROTO_SignData [21:14:43]wFMCommunicate request_size=4 [21:14:43]MH_SAM_APDU [21:14:43]CAPDU: 80 0D 01 02 [21:14:43]Write to MH i2c: E2 08 00 39 80 80 0D 01 02 00 00 00 00 32 [21:14:43]Write i2c OK [21:14:43]MH_I2C_Read... [21:14:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:14:43]Read from MH i2c: E2 [21:14:43]MH_I2C_Read... [21:14:43]Read from MH i2c: E2 03 00 [21:14:43]MH_I2C_Read... [21:14:43]Read from MH i2c: E2 03 00 39 80 00 90 00 2D [21:14:43]RAPDU: 90 00 [21:14:43]wFMCommunicate OK [21:14:43]wFMCommunicate request_size=255 [21:14:43]MH_SAM_APDU [21:14:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 52 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 69 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 05 00 00 00 00 07 04 06 00 40 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 25 01 00 00 F4 03 04 00 4A 06 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 D0 01 00 35 04 06 00 C9 [21:14:43]Write to MH i2c: E2 02 01 3A 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 52 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 69 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 05 00 00 00 00 07 04 06 00 40 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 25 01 00 00 F4 03 04 00 4A 06 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 D0 01 00 35 04 06 00 C9 00 00 9B [21:14:43]Write i2c OK [21:14:43]MH_I2C_Read... [21:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:44]Read from MH i2c: E2 [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: E2 03 00 [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: E2 03 00 3A 80 00 90 00 2E [21:14:44]RAPDU: 90 00 [21:14:44]wFMCommunicate OK [21:14:44]wFMCommunicate request_size=10 [21:14:44]MH_SAM_APDU [21:14:44]CAPDU: 80 0D 02 02 05 65 8F AC D8 4A [21:14:44]Write to MH i2c: E2 0D 00 3B 80 80 0D 02 02 05 00 65 8F AC D8 4A 00 00 01 [21:14:44]Write i2c OK [21:14:44]MH_I2C_Read... [21:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:44]Read from MH i2c: E2 [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: E2 03 00 [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: E2 03 00 3B 80 00 90 00 2F [21:14:44]RAPDU: 90 00 [21:14:44]wFMCommunicate OK [21:14:44]wFMCommunicate request_size=4 [21:14:44]MH_SAM_APDU [21:14:44]CAPDU: 80 0D 03 02 [21:14:44]Write to MH i2c: E2 08 00 3C 80 80 0D 03 02 00 00 00 00 37 [21:14:44]Write i2c OK [21:14:44]MH_I2C_Read... [21:14:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:14:44]Read from MH i2c: E2 [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: E2 0B 00 [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: E2 0B 00 3C 80 00 78 F2 2A 1C 0A 84 C1 55 90 00 8C [21:14:44]RAPDU: 78 F2 2A 1C 0A 84 C1 55 90 00 [21:14:44]wFMCommunicate OK [21:14:44]SAM_PROTO_SignData done [21:14:44]FM_MakeSignedData done [21:14:44]CreateOFDProtocolMessage [21:14:44]wFMCommunicate request_size=4 [21:14:44]MH_SAM_APDU [21:14:44]CAPDU: 80 11 00 00 [21:14:44]Write to MH i2c: E2 08 00 3D 80 80 11 00 00 00 00 00 00 37 [21:14:44]Write i2c OK [21:14:44]MH_I2C_Read... [21:14:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:44]Read from MH i2c: E2 [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: E2 17 00 [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: E2 17 00 3D 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 92 [21:14:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:14:44]wFMCommunicate OK [21:14:44]CreateOFDProtocolMessage done [21:14:44]OFDSenderStorePacket 118917 [21:14:44]StoreOFDPacket docnum=118917 [21:14:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 24 CB 07 01 24 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 52 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 69 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 05 00 00 00 00 07 04 06 00 40 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 25 01 00 00 F4 03 04 00 4A 06 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 D0 01 00 35 04 06 00 C9 65 8F AC D8 4A 78 F2 2A 1C 0A 84 C1 55 [21:14:44]CheckFolder [21:14:44]dirname=/storage/ofd_packets [21:14:44]CheckFolder done [21:14:44]ProducePacketName [21:14:44]name=ofd_packets/00118917 [21:14:44]NVStorageSaveData ofd_packets/00118917 [21:14:44]File name is /storage/ofd_packets/00118917 [21:14:44]Write 301 bytes [21:14:44]NVStorageSaveData done [21:14:44]OFDSenderStorePacket done [21:14:44]KKMCreateOFDPacket done [21:14:44]NVStorageSaveData kkm_last_timestamp [21:14:44]File name is /storage/kkm_last_timestamp [21:14:44]Write 4 bytes [21:14:44]NVStorageSaveData done [21:14:44]ExternCall_PrintAddStr [21:14:44]wPrintStart [21:14:44]Write to MH i2c: 01 00 00 3E 80 BE [21:14:44]Write i2c OK [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: 01 [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: 01 07 00 [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: 01 07 00 3E 80 00 00 00 00 00 FF 0F D3 [21:14:44]RasterBufferAndPrint [21:14:44]line Счет N : (1)949818 [21:14:44]line ИНН: 02508201610067 [21:14:44]line Контрольно-Кассовый Чек [21:14:44]line ПРОДАЖА [21:14:44]line ТРК (МРК, ГНК) : 41 [21:14:44]line Товар: 2710124130 [21:14:44]line Аи-92-К-4 [21:14:44]line 2.130 * 67.80 [21:14:44]line = 144.41 [21:14:44]line НДС 12% НСП 1% [21:14:44]line > о реализуемом товаре [21:14:44]line ОКРУГЛЕНИЕ: -0.41 [21:14:44]line ИТОГО: 144.00 [21:14:44]line Внесено: 144.00 [21:14:44]line СДАЧА: 0.00 [21:14:44]line НСП 1% : 1.28 [21:14:44]line НДС 12% : 15.34 [21:14:44]line Наличными: 144.00 [21:14:44]line Безнал.: 0.00 [21:14:44]line Место: АЗС № 134 "Партнер Нефть" [21:14:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:14:44]line СНО: Общий режим [21:14:44]line Чек 293 29.07.2024 21:14 [21:14:44]line Смена: 434 ФФД: 1.0 [21:14:44]line ЗНМ: 0300000044 [21:14:44]line РНМ: 0000000000092660 [21:14:44]line Версия ККМ: 001 [21:14:44]line ФМ: 0000000000874939 [21:14:44]line ФД: 118917 [21:14:44]line ФПД: 221438039349322 [21:14:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T211450&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118917&fm=221438039349322&tin=02508201610067®Number=0000000000092660&sum=14400 [21:14:44]written 0, free lines is 4095 [21:14:44]OFD Sender: Processing packet 118917 [packets to send 86, broken 85] [21:14:44]ProducePacketName [21:14:44]name=ofd_packets/00118917 [21:14:44]OFD Sender: To server: pG, [21:14:44]CommunicateWithHost lk.salyk.kg:30040 [21:14:44]ConnectInit lk.salyk.kg [21:14:44]Connected sock=9 [21:14:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 24 CB 07 01 24 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 52 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 69 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 05 00 00 00 00 07 04 06 00 40 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 25 01 00 00 F4 03 04 00 4A 06 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 D0 01 00 35 04 06 00 C9 65 8F AC D8 4A 78 F2 2A 1C 0A 84 C1 55 [21:14:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9E A9 47 00 34 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 D0 01 00 F4 03 04 00 D7 B3 A7 66 B6 04 01 00 00 24 2F DA 4F F4 CD 09 7B [21:14:45]CommunicateWithHost err = 0 [21:14:45]CheckOFDResponse [21:14:45]1017 (14) - 77093643461234 [21:14:45]1041 (16) - 0000000000874939 [21:14:45]1040 (4) - 118917 [21:14:45]1012 (4) - 29.07.2024 15:23 [21:14:45]1206 (1) - 0 [21:14:45]OFD Sender: Remove packet 118917 [21:14:45]ProducePacketName [21:14:45]name=ofd_packets/00118917 [21:14:45]NVStorageDeleteData [21:14:45]Write to MH i2c: 01 00 00 68 80 E8 [21:14:45]Write i2c OK [21:14:45]MH_I2C_Read... [21:14:45]Read from MH i2c: 01 [21:14:45]MH_I2C_Read... [21:14:45]Read from MH i2c: 01 07 00 [21:14:45]MH_I2C_Read... [21:14:45]Read from MH i2c: 01 07 00 68 80 00 00 00 00 00 DC 0C D7 [21:14:45]RasterBufferAndPrint [21:14:45]line [21:14:45]line [21:14:45]line [21:14:45]line [21:14:45]line [21:14:45]written 0, free lines is 3298 [21:14:45]MH_Cut [21:14:45]Write to MH i2c: D1 01 00 6F 80 01 C1 [21:14:45]Write i2c OK [21:14:45]MH_I2C_Read... [21:14:45]Read from MH i2c: D1 [21:14:45]MH_I2C_Read... [21:14:45]Read from MH i2c: D1 01 00 [21:14:45]MH_I2C_Read... [21:14:45]Read from MH i2c: D1 01 00 6F 80 00 C0 [21:14:45]Write to MH i2c: 01 00 00 70 80 F0 [21:14:45]Write i2c OK [21:14:45]MH_I2C_Read... [21:14:45]OFD Sender: No OFD packet to send [21:14:45]*** Cut start [21:14:45]*** Partial cut [21:14:45]*** CUTSNS_PIN = 1 [21:14:45]*** CUTSNS_PIN = 0 [21:14:46]*** Brake cut motor [21:14:46]Read from MH i2c: 01 [21:14:46]MH_I2C_Read... [21:14:46]*** Stop cut motor [21:14:46]*** Cut end [21:14:46]Read from MH i2c: 01 07 00 [21:14:46]MH_I2C_Read... [21:14:46]Read from MH i2c: 01 07 00 70 80 00 00 00 00 00 FF 0F 05 [21:14:46]process_action close_receipt done [21:14:46]requested_data is exist [21:14:46]produce_requested_data [21:14:46]requested_item fm.sn is exist - process it [21:14:46]wFMCommunicate request_size=4 [21:14:46]MH_SAM_APDU [21:14:46]CAPDU: 80 11 00 00 [21:14:46]Write to MH i2c: E2 08 00 71 80 80 11 00 00 00 00 00 00 6B [21:14:46]Write i2c OK [21:14:46]MH_I2C_Read... [21:14:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:46]Read from MH i2c: E2 [21:14:46]MH_I2C_Read... [21:14:46]Read from MH i2c: E2 17 00 [21:14:46]MH_I2C_Read... [21:14:46]Read from MH i2c: E2 17 00 71 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C6 [21:14:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:14:46]wFMCommunicate OK [21:14:46]requested_item fd.num is exist - process it [21:14:46]SAM_PROTO_GetFieldsCounters [21:14:46]wFMCommunicate request_size=4 [21:14:46]MH_SAM_APDU [21:14:46]CAPDU: 80 13 00 00 [21:14:46]Write to MH i2c: E2 08 00 72 80 80 13 00 00 00 00 00 00 6E [21:14:46]Write i2c OK [21:14:46]MH_I2C_Read... [21:14:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:14:46]Read from MH i2c: E2 [21:14:46]MH_I2C_Read... [21:14:46]Read from MH i2c: E2 62 00 [21:14:46]MH_I2C_Read... [21:14:46]Read from MH i2c: E2 62 00 72 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 85 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 10 [21:14: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 85 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:14:46]wFMCommunicate OK [21:14:46]SAM_PROTO_GetFieldsCounters done [21:14:46]requested_item shift.num is exist - process it [21:14:46]requested_item shift.opened is exist - process it [21:14:46]req_shift_opened [21:14:46]FM_GetShiftState [21:14:46]SAM_PROTO_GetShiftState [21:14:46]wFMCommunicate request_size=4 [21:14:46]MH_SAM_APDU [21:14:46]CAPDU: 80 13 01 00 [21:14:46]Write to MH i2c: E2 08 00 73 80 80 13 01 00 00 00 00 00 70 [21:14:46]Write i2c OK [21:14:46]MH_I2C_Read... [21:14:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:46]Read from MH i2c: E2 [21:14:46]MH_I2C_Read... [21:14:46]Read from MH i2c: E2 0E 00 [21:14:46]MH_I2C_Read... [21:14:46]Read from MH i2c: E2 0E 00 73 80 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 9E [21:14:46]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:14:46]wFMCommunicate OK [21:14:46]SAM_PROTO_GetShiftState done [21:14:46]FM_GetShiftState done [21:14:46]req_shift_opened done [21:14:46]requested_item shift.open_date is exist - process it [21:14:46]req_shift_open_date [21:14:46]req_shift_open_date done [21:14:46]produce_requested_data done [21:14:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118917,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:14:46]process_action_free close_receipt [21:14:46]json_value_free [21:14:46]json_value_free done [21:14:46]process_json_proto returns [21:14:46]Send response to host [21:14:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118917,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:14:46]free response buf [21:14:46]execute_script done [21:14:46]execute_script returns [21:14:46]free content buf [21:14:46]Sock 7.Close socket [21:14:46]Sock 7.Thread stoped [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:34]accept exits with 10 [21:15:34]New connection [21:15:34]New thread 3067239780 created [21:15:34]Thread 3067383140 joined [21:15:34]Waiting for new connection... [21:15:34] Sock 10.Parse request [21:15:34]Sock 10.Check first char [21:15:34]Sock 10.First char is OK [21:15:34]request: POST /json_proto HTTP/1.0 [21:15:34]Method: POST [21:15:34]URL: /json_proto [21:15:34]Method is POST - this is cgi request [21:15:34]url: /json_proto [21:15:34]query_string will be loaded in cgi processing [21:15:34]execute_cgi json_proto POST (null) [21:15:34]execute_cgi path=json_proto method=POST [21:15:34]POST find Content-Length [21:15:34]Host: 172.17.45.7:8080 [21:15:34]Content-Length: 1195 [21:15:34]Content-Type: application/json [21:15:34] [21:15:34]POST finish read [21:15:34]Found Content-Length = 1195 [21:15:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949814\u000A29.07.2024 21:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991026\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:34]execute_script... [21:15:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949814\u000A29.07.2024 21:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991026\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:34]POST & json_proto [21:15:34]process_json_proto [21:15:34]json parsed OK: [21:15:34]protocol is kg_v1.0 [21:15:34]action value=print_text [21:15:34]process_action print_text [21:15:34]cmd_print_text [21:15:34]ExternCall_PrintAddStr [21:15:34]wPrintStart [21:15:34]Write to MH i2c: 01 00 00 74 80 F4 [21:15:34]Write i2c OK [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: 01 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: 01 07 00 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: 01 07 00 74 80 00 00 00 00 00 FF 0F 09 [21:15:34]RasterBufferAndPrint [21:15:34]line *****ТОВАРНЫЙ ЧЕК***** [21:15:34]line АЗС-134 [21:15:34]line Партнер нефть [21:15:34]line 02508201610067 [21:15:34]line Кассир : Казаков Ч. [21:15:34]line Счет N : (1)949814 [21:15:34]line 29.07.2024 21:13 [21:15:34]line ПРОДАЖА [21:15:34]line ТРК (МРК, ГНК): 54 [21:15:34]line Вид ГСМ : 2710194800 [21:15:34]line ДТ-К-5 [21:15:34]line 100.000 x 76.20 [21:15:34]line ИТОГ: 7620.00 [21:15:34]line Тип оплаты: Талоны: Топливные Талоны [21:15:34]line 3991026 [21:15:34]line ______________________ [21:15:34]line (подпись) [21:15:34]written 0, free lines is 4095 [21:15:34]Write to MH i2c: 01 00 00 88 80 08 [21:15:34]Write i2c OK [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: 01 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: 01 07 00 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: 01 07 00 88 80 00 00 00 00 00 10 0E 2D [21:15:34]RasterBufferAndPrint [21:15:34]line [21:15:34]line [21:15:34]line [21:15:34]line [21:15:34]line [21:15:34]written 0, free lines is 3601 [21:15:34]MH_Cut [21:15:34]Write to MH i2c: D1 01 00 8F 80 01 E1 [21:15:34]Write i2c OK [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: D1 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: D1 01 00 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: D1 01 00 8F 80 00 E0 [21:15:34]Write to MH i2c: 01 00 00 90 80 10 [21:15:34]Write i2c OK [21:15:34]MH_I2C_Read... [21:15:35]*** Cut start [21:15:35]*** Partial cut [21:15:35]*** CUTSNS_PIN = 1 [21:15:35]*** CUTSNS_PIN = 0 [21:15:35]*** Brake cut motor [21:15:35]OFD Sender: No OFD packet to send [21:15:35]Read from MH i2c: 01 [21:15:35]MH_I2C_Read... [21:15:35]*** Stop cut motor [21:15:35]*** Cut end [21:15:35]Read from MH i2c: 01 07 00 [21:15:35]MH_I2C_Read... [21:15:35]Read from MH i2c: 01 07 00 90 80 00 00 00 00 00 FF 0F 25 [21:15:35]process_action print_text done [21:15:35]requested_data is exist [21:15:35]produce_requested_data [21:15:35]requested_item fm.sn is exist - process it [21:15:35]wFMCommunicate request_size=4 [21:15:35]MH_SAM_APDU [21:15:35]CAPDU: 80 11 00 00 [21:15:35]Write to MH i2c: E2 08 00 91 80 80 11 00 00 00 00 00 00 8B [21:15:35]Write i2c OK [21:15:35]MH_I2C_Read... [21:15:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:35]Read from MH i2c: E2 [21:15:35]MH_I2C_Read... [21:15:35]Read from MH i2c: E2 17 00 [21:15:35]MH_I2C_Read... [21:15:35]Read from MH i2c: E2 17 00 91 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E6 [21:15:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:15:35]wFMCommunicate OK [21:15:35]requested_item fd.num is exist - process it [21:15:35]SAM_PROTO_GetFieldsCounters [21:15:35]wFMCommunicate request_size=4 [21:15:35]MH_SAM_APDU [21:15:35]CAPDU: 80 13 00 00 [21:15:35]Write to MH i2c: E2 08 00 92 80 80 13 00 00 00 00 00 00 8E [21:15:35]Write i2c OK [21:15:35]MH_I2C_Read... [21:15:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:36]Read from MH i2c: E2 [21:15:36]MH_I2C_Read... [21:15:36]Read from MH i2c: E2 62 00 [21:15:36]MH_I2C_Read... [21:15:36]Read from MH i2c: E2 62 00 92 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 85 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 30 [21: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 85 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:15:36]wFMCommunicate OK [21:15:36]SAM_PROTO_GetFieldsCounters done [21:15:36]requested_item shift.num is exist - process it [21:15:36]requested_item shift.opened is exist - process it [21:15:36]req_shift_opened [21:15:36]FM_GetShiftState [21:15:36]SAM_PROTO_GetShiftState [21:15:36]wFMCommunicate request_size=4 [21:15:36]MH_SAM_APDU [21:15:36]CAPDU: 80 13 01 00 [21:15:36]Write to MH i2c: E2 08 00 93 80 80 13 01 00 00 00 00 00 90 [21:15:36]Write i2c OK [21:15:36]MH_I2C_Read... [21:15:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:36]Read from MH i2c: E2 [21:15:36]MH_I2C_Read... [21:15:36]Read from MH i2c: E2 0E 00 [21:15:36]MH_I2C_Read... [21:15:36]Read from MH i2c: E2 0E 00 93 80 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 BE [21:15:36]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:15:36]wFMCommunicate OK [21:15:36]SAM_PROTO_GetShiftState done [21:15:36]FM_GetShiftState done [21:15:36]req_shift_opened done [21:15:36]requested_item shift.open_date is exist - process it [21:15:36]req_shift_open_date [21:15:36]req_shift_open_date done [21:15:36]produce_requested_data done [21:15:36]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118917,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:15:36]process_action_free print_text [21:15:36]json_value_free [21:15:36]json_value_free done [21:15:36]process_json_proto returns [21:15:36]Send response to host [21:15:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118917,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:15:36]free response buf [21:15:36]execute_script done [21:15:36]execute_script returns [21:15:36]free content buf [21:15:36]Sock 10.Close socket [21:15:36]Sock 10.Thread stoped [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:49]accept exits with 7 [21:15:49]New connection [21:15:49]New thread 3067383140 created [21:15:49]Thread 3067239780 joined [21:15:49]Waiting for new connection... [21:15:49] Sock 7.Parse request [21:15:49]Sock 7.Check first char [21:15:49]Sock 7.First char is OK [21:15:49]request: POST /json_proto HTTP/1.0 [21:15:49]Method: POST [21:15:49]URL: /json_proto [21:15:49]Method is POST - this is cgi request [21:15:49]url: /json_proto [21:15:49]query_string will be loaded in cgi processing [21:15:49]execute_cgi json_proto POST (null) [21:15:49]execute_cgi path=json_proto method=POST [21:15:49]POST find Content-Length [21:15:49]Host: 172.17.45.7:8080 [21:15:49]Content-Length: 1195 [21:15:49]Content-Type: application/json [21:15:49] [21:15:49]POST finish read [21:15:49]Found Content-Length = 1195 [21:15:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949815\u000A29.07.2024 21:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991027\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:49]execute_script... [21:15:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949815\u000A29.07.2024 21:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991027\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:49]POST & json_proto [21:15:49]process_json_proto [21:15:49]json parsed OK: [21:15:49]protocol is kg_v1.0 [21:15:49]action value=print_text [21:15:49]process_action print_text [21:15:49]cmd_print_text [21:15:49]ExternCall_PrintAddStr [21:15:49]wPrintStart [21:15:49]Write to MH i2c: 01 00 00 94 80 14 [21:15:49]Write i2c OK [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: 01 [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: 01 07 00 [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: 01 07 00 94 80 00 00 00 00 00 FF 0F 29 [21:15:49]RasterBufferAndPrint [21:15:49]line *****ТОВАРНЫЙ ЧЕК***** [21:15:49]line АЗС-134 [21:15:49]line Партнер нефть [21:15:49]line 02508201610067 [21:15:49]line Кассир : Казаков Ч. [21:15:49]line Счет N : (1)949815 [21:15:49]line 29.07.2024 21:13 [21:15:49]line ПРОДАЖА [21:15:49]line ТРК (МРК, ГНК): 64 [21:15:49]line Вид ГСМ : 2710194800 [21:15:49]line ДТ-К-5 [21:15:49]line 100.000 x 76.20 [21:15:49]line ИТОГ: 7620.00 [21:15:49]line Тип оплаты: Талоны: Топливные Талоны [21:15:49]line 3991027 [21:15:49]line ______________________ [21:15:49]line (подпись) [21:15:49]written 0, free lines is 4095 [21:15:49]Write to MH i2c: 01 00 00 A8 80 28 [21:15:49]Write i2c OK [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: 01 [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: 01 07 00 [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: 01 07 00 A8 80 00 00 00 00 00 0F 0E 4C [21:15:49]RasterBufferAndPrint [21:15:49]line [21:15:49]line [21:15:49]line [21:15:49]line [21:15:49]line [21:15:49]written 0, free lines is 3601 [21:15:49]MH_Cut [21:15:49]Write to MH i2c: D1 01 00 AF 80 01 01 [21:15:49]Write i2c OK [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: D1 [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: D1 01 00 [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: D1 01 00 AF 80 00 00 [21:15:49]Write to MH i2c: 01 00 00 B0 80 30 [21:15:49]Write i2c OK [21:15:49]MH_I2C_Read... [21:15:50]*** Cut start [21:15:50]*** Partial cut [21:15:50]*** CUTSNS_PIN = 1 [21:15:50]*** CUTSNS_PIN = 0 [21:15:50]OFD Sender: No OFD packet to send [21:15:50]*** Brake cut motor [21:15:50]Read from MH i2c: 01 [21:15:50]MH_I2C_Read... [21:15:50]*** Stop cut motor [21:15:50]*** Cut end [21:15:50]Read from MH i2c: 01 07 00 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: 01 07 00 B0 80 00 00 00 00 00 FF 0F 45 [21:15:50]process_action print_text done [21:15:50]requested_data is exist [21:15:50]produce_requested_data [21:15:50]requested_item fm.sn is exist - process it [21:15:50]wFMCommunicate request_size=4 [21:15:50]MH_SAM_APDU [21:15:50]CAPDU: 80 11 00 00 [21:15:50]Write to MH i2c: E2 08 00 B1 80 80 11 00 00 00 00 00 00 AB [21:15:50]Write i2c OK [21:15:50]MH_I2C_Read... [21:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:51]Read from MH i2c: E2 [21:15:51]MH_I2C_Read... [21:15:51]Read from MH i2c: E2 17 00 [21:15:51]MH_I2C_Read... [21:15:51]Read from MH i2c: E2 17 00 B1 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 06 [21:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:15:51]wFMCommunicate OK [21:15:51]requested_item fd.num is exist - process it [21:15:51]SAM_PROTO_GetFieldsCounters [21:15:51]wFMCommunicate request_size=4 [21:15:51]MH_SAM_APDU [21:15:51]CAPDU: 80 13 00 00 [21:15:51]Write to MH i2c: E2 08 00 B2 80 80 13 00 00 00 00 00 00 AE [21:15:51]Write i2c OK [21:15:51]MH_I2C_Read... [21:15:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:51]Read from MH i2c: E2 [21:15:51]MH_I2C_Read... [21:15:51]Read from MH i2c: E2 62 00 [21:15:51]MH_I2C_Read... [21:15:51]Read from MH i2c: E2 62 00 B2 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 85 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 50 [21:15: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 85 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:15:51]wFMCommunicate OK [21:15:51]SAM_PROTO_GetFieldsCounters done [21:15:51]requested_item shift.num is exist - process it [21:15:51]requested_item shift.opened is exist - process it [21:15:51]req_shift_opened [21:15:51]FM_GetShiftState [21:15:51]SAM_PROTO_GetShiftState [21:15:51]wFMCommunicate request_size=4 [21:15:51]MH_SAM_APDU [21:15:51]CAPDU: 80 13 01 00 [21:15:51]Write to MH i2c: E2 08 00 B3 80 80 13 01 00 00 00 00 00 B0 [21:15:51]Write i2c OK [21:15:51]MH_I2C_Read... [21:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:51]Read from MH i2c: E2 [21:15:51]MH_I2C_Read... [21:15:51]Read from MH i2c: E2 0E 00 [21:15:51]MH_I2C_Read... [21:15:51]Read from MH i2c: E2 0E 00 B3 80 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 DE [21:15:51]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:15:51]wFMCommunicate OK [21:15:51]SAM_PROTO_GetShiftState done [21:15:51]FM_GetShiftState done [21:15:51]req_shift_opened done [21:15:51]requested_item shift.open_date is exist - process it [21:15:51]req_shift_open_date [21:15:51]req_shift_open_date done [21:15:51]produce_requested_data done [21:15:51]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118917,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:15:51]process_action_free print_text [21:15:51]json_value_free [21:15:51]json_value_free done [21:15:51]process_json_proto returns [21:15:51]Send response to host [21:15:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118917,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:15:51]free response buf [21:15:51]execute_script done [21:15:51]execute_script returns [21:15:51]free content buf [21:15:51]Sock 7.Close socket [21:15:51]Sock 7.Thread stoped [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:25]accept exits with 9 [21:18:25]New connection [21:18:25]New thread 3067239780 created [21:18:25]Thread 3067383140 joined [21:18:25]Waiting for new connection... [21:18:25] Sock 9.Parse request [21:18:25]Sock 9.Check first char [21:18:25]Sock 9.First char is OK [21:18:25]request: POST /json_proto HTTP/1.0 [21:18:25]Method: POST [21:18:25]URL: /json_proto [21:18:25]Method is POST - this is cgi request [21:18:25]url: /json_proto [21:18:25]query_string will be loaded in cgi processing [21:18:25]execute_cgi json_proto POST (null) [21:18:25]execute_cgi path=json_proto method=POST [21:18:25]POST find Content-Length [21:18:25]Host: 172.17.45.7:8080 [21:18:25]Content-Length: 677 [21:18:25]Content-Type: application/json [21:18:25] [21:18:25]POST finish read [21:18:25]Found Content-Length = 677 [21:18:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:25]execute_script... [21:18:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:25]POST & json_proto [21:18:25]process_json_proto [21:18:25]json parsed OK: [21:18:25]protocol is kg_v1.0 [21:18:25]action value=close_receipt [21:18:25]process_action close_receipt [21:18:25]cmd_close_receipt [21:18:25]MH_GetDate [21:18:25]Write to MH i2c: F0 00 00 B4 80 23 [21:18:25]Write i2c OK [21:18:25]MH_I2C_Read... [21:18:25]Read from MH i2c: F0 [21:18:25]MH_I2C_Read... [21:18:25]Read from MH i2c: F0 09 00 [21:18:25]MH_I2C_Read... [21:18:25]Read from MH i2c: F0 09 00 B4 80 00 29 07 A8 66 90 0F 3E 66 AD [21:18:25]GetLastDocTimeStamp 1722287690 [21:18:25]current date 1722287913 [21:18:25]FM_GetShiftState [21:18:25]SAM_PROTO_GetShiftState [21:18:25]wFMCommunicate request_size=4 [21:18:25]MH_SAM_APDU [21:18:25]CAPDU: 80 13 01 00 [21:18:25]Write to MH i2c: E2 08 00 B5 80 80 13 01 00 00 00 00 00 B2 [21:18:25]Write i2c OK [21:18:25]MH_I2C_Read... [21:18:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:25]Read from MH i2c: E2 [21:18:25]MH_I2C_Read... [21:18:25]Read from MH i2c: E2 0E 00 [21:18:25]MH_I2C_Read... [21:18:25]Read from MH i2c: E2 0E 00 B5 80 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E0 [21:18:25]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:18:25]wFMCommunicate OK [21:18:25]SAM_PROTO_GetShiftState done [21:18:25]FM_GetShiftState done [21:18:25]opened in 1722211641 [21:18:25]opened+sec_in_day 1722298041 [21:18:25]quantity*price = 30035 [21:18:25]sum+1 = 30036 [21:18:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 294 29.07.2024 21:18 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118918 ФПД: 227785654573499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T211833&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118918&fm=227785654573499&tin=02508201610067®Number=0000000000092660&sum=30000 [21:18:27]StoreToDocumentArchive [21:18:27]shift 434 fd 118918 [21:18:27]save to /storage/0434/doc_00118918 [21:18:27]save last doc name /storage/0434/doc_00118918 to /storage/kkm_last_doc_name [21:18:27]save OK [21:18:27]Clear old archive folders... [21:18:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:18:27]tlvbuf is 02081580 [21:18:27]SAM_PROTO_ClearQueue [21:18:27]wFMCommunicate request_size=4 [21:18:27]MH_SAM_APDU [21:18:27]CAPDU: 80 09 00 00 [21:18:27]Write to MH i2c: E2 08 00 C2 80 80 09 00 00 00 00 00 00 B4 [21:18:27]Write i2c OK [21:18:27]MH_I2C_Read... [21:18:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:18:27]Read from MH i2c: E2 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: E2 03 00 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: E2 03 00 C2 80 00 90 00 B6 [21:18:27]RAPDU: 90 00 [21:18:27]wFMCommunicate OK [21:18:27]SAM_PROTO_ClearQueue done [21:18:27]KKMCreateOFDPacket [21:18:27]OFDProtocolAddRootSTLVToBuf [21:18:27]FM_MakeSignedData [21:18:27]FM_MakeSignedData [21:18:27]SAM_PROTO_SignData [21:18:27]wFMCommunicate request_size=4 [21:18:27]MH_SAM_APDU [21:18:27]CAPDU: 80 0D 01 02 [21:18:27]Write to MH i2c: E2 08 00 C3 80 80 0D 01 02 00 00 00 00 BC [21:18:27]Write i2c OK [21:18:27]MH_I2C_Read... [21:18:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:18:27]Read from MH i2c: E2 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: E2 03 00 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: E2 03 00 C3 80 00 90 00 B7 [21:18:27]RAPDU: 90 00 [21:18:27]wFMCommunicate OK [21:18:27]wFMCommunicate request_size=255 [21:18:27]MH_SAM_APDU [21:18:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 29 07 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 D0 01 00 35 04 06 00 CF [21:18:27]Write to MH i2c: E2 02 01 C4 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 29 07 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 D0 01 00 35 04 06 00 CF 00 00 9D [21:18:27]Write i2c OK [21:18:27]MH_I2C_Read... [21:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:27]Read from MH i2c: E2 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: E2 03 00 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: E2 03 00 C4 80 00 90 00 B8 [21:18:27]RAPDU: 90 00 [21:18:27]wFMCommunicate OK [21:18:27]wFMCommunicate request_size=10 [21:18:27]MH_SAM_APDU [21:18:27]CAPDU: 80 0D 02 02 05 2B 7B 06 99 BB [21:18:27]Write to MH i2c: E2 0D 00 C5 80 80 0D 02 02 05 00 2B 7B 06 99 BB 00 00 C9 [21:18:27]Write i2c OK [21:18:27]MH_I2C_Read... [21:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:27]Read from MH i2c: E2 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: E2 03 00 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: E2 03 00 C5 80 00 90 00 B9 [21:18:27]RAPDU: 90 00 [21:18:27]wFMCommunicate OK [21:18:27]wFMCommunicate request_size=4 [21:18:27]MH_SAM_APDU [21:18:27]CAPDU: 80 0D 03 02 [21:18:27]Write to MH i2c: E2 08 00 C6 80 80 0D 03 02 00 00 00 00 C1 [21:18:27]Write i2c OK [21:18:27]MH_I2C_Read... [21:18:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:18:27]Read from MH i2c: E2 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: E2 0B 00 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: E2 0B 00 C6 80 00 90 45 4B 1A B0 92 91 3A 90 00 09 [21:18:27]RAPDU: 90 45 4B 1A B0 92 91 3A 90 00 [21:18:27]wFMCommunicate OK [21:18:27]SAM_PROTO_SignData done [21:18:27]FM_MakeSignedData done [21:18:27]CreateOFDProtocolMessage [21:18:27]wFMCommunicate request_size=4 [21:18:27]MH_SAM_APDU [21:18:27]CAPDU: 80 11 00 00 [21:18:27]Write to MH i2c: E2 08 00 C7 80 80 11 00 00 00 00 00 00 C1 [21:18:27]Write i2c OK [21:18:27]MH_I2C_Read... [21:18:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:27]Read from MH i2c: E2 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: E2 17 00 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: E2 17 00 C7 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1C [21:18:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:18:27]wFMCommunicate OK [21:18:27]CreateOFDProtocolMessage done [21:18:27]OFDSenderStorePacket 118918 [21:18:27]StoreOFDPacket docnum=118918 [21:18:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D9 CF 07 01 56 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 29 07 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 D0 01 00 35 04 06 00 CF 2B 7B 06 99 BB 90 45 4B 1A B0 92 91 3A [21:18:27]CheckFolder [21:18:27]dirname=/storage/ofd_packets [21:18:27]CheckFolder done [21:18:27]ProducePacketName [21:18:27]name=ofd_packets/00118918 [21:18:27]NVStorageSaveData ofd_packets/00118918 [21:18:27]File name is /storage/ofd_packets/00118918 [21:18:27]Write 301 bytes [21:18:27]NVStorageSaveData done [21:18:27]OFDSenderStorePacket done [21:18:27]KKMCreateOFDPacket done [21:18:27]NVStorageSaveData kkm_last_timestamp [21:18:27]File name is /storage/kkm_last_timestamp [21:18:27]Write 4 bytes [21:18:27]NVStorageSaveData done [21:18:27]ExternCall_PrintAddStr [21:18:27]wPrintStart [21:18:27]Write to MH i2c: 01 00 00 C8 80 48 [21:18:27]Write i2c OK [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: 01 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: 01 07 00 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: 01 07 00 C8 80 00 00 00 00 00 FF 0F 5D [21:18:27]RasterBufferAndPrint [21:18:27]line Счет N : (1)949821 [21:18:27]line ИНН: 02508201610067 [21:18:27]line Контрольно-Кассовый Чек [21:18:27]line ПРОДАЖА [21:18:27]line ТРК (МРК, ГНК) : 31 [21:18:27]line Товар: 2710124130 [21:18:27]line Аи-92-К-4 [21:18:27]line 4.430 * 67.80 [21:18:27]line = 300.35 [21:18:27]line НДС 12% НСП 1% [21:18:27]line > о реализуемом товаре [21:18:27]line ОКРУГЛЕНИЕ: -0.35 [21:18:27]line ИТОГО: 300.00 [21:18:27]line Внесено: 300.00 [21:18:27]line СДАЧА: 0.00 [21:18:27]line НСП 1% : 2.66 [21:18:27]line НДС 12% : 31.90 [21:18:27]line Наличными: 300.00 [21:18:27]line Безнал.: 0.00 [21:18:27]line Место: АЗС № 134 "Партнер Нефть" [21:18:27]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:18:27]line СНО: Общий режим [21:18:27]line Чек 294 29.07.2024 21:18 [21:18:27]line Смена: 434 ФФД: 1.0 [21:18:27]line ЗНМ: 0300000044 [21:18:27]line РНМ: 0000000000092660 [21:18:27]line Версия ККМ: 001 [21:18:27]line ФМ: 0000000000874939 [21:18:27]line ФД: 118918 [21:18:27]line ФПД: 227785654573499 [21:18:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T211833&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118918&fm=227785654573499&tin=02508201610067®Number=0000000000092660&sum=30000 [21:18:27]written 0, free lines is 4095 [21:18:27]OFD Sender: Processing packet 118918 [packets to send 86, broken 85] [21:18:27]ProducePacketName [21:18:27]name=ofd_packets/00118918 [21:18:27]OFD Sender: To server: pG, [21:18:27]CommunicateWithHost lk.salyk.kg:30040 [21:18:27]ConnectInit lk.salyk.kg [21:18:28]Connected sock=10 [21:18:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D9 CF 07 01 56 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 29 07 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 D0 01 00 35 04 06 00 CF 2B 7B 06 99 BB 90 45 4B 1A B0 92 91 3A [21:18:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5E DD 47 00 BA 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 34 39 33 39 10 04 04 00 86 D0 01 00 F4 03 04 00 B6 B4 A7 66 B6 04 01 00 00 16 DA 8C C7 F9 A8 18 AD [21:18:28]CommunicateWithHost err = 0 [21:18:28]CheckOFDResponse [21:18:28]1017 (14) - 77093643461234 [21:18:28]1041 (16) - 0000000000874939 [21:18:28]1040 (4) - 118918 [21:18:28]1012 (4) - 29.07.2024 15:26 [21:18:28]1206 (1) - 0 [21:18:28]OFD Sender: Remove packet 118918 [21:18:28]ProducePacketName [21:18:28]name=ofd_packets/00118918 [21:18:28]NVStorageDeleteData [21:18:28]Write to MH i2c: 01 00 00 F2 80 72 [21:18:28]Write i2c OK [21:18:28]MH_I2C_Read... [21:18:28]Read from MH i2c: 01 [21:18:28]MH_I2C_Read... [21:18:28]Read from MH i2c: 01 07 00 [21:18:28]MH_I2C_Read... [21:18:28]Read from MH i2c: 01 07 00 F2 80 00 00 00 00 00 E0 0C 65 [21:18:28]RasterBufferAndPrint [21:18:28]line [21:18:28]line [21:18:28]line [21:18:28]line [21:18:28]line [21:18:28]written 0, free lines is 3304 [21:18:28]MH_Cut [21:18:28]Write to MH i2c: D1 01 00 F9 80 01 4B [21:18:28]Write i2c OK [21:18:28]MH_I2C_Read... [21:18:28]Read from MH i2c: D1 [21:18:28]MH_I2C_Read... [21:18:28]Read from MH i2c: D1 01 00 [21:18:28]MH_I2C_Read... [21:18:28]Read from MH i2c: D1 01 00 F9 80 00 4A [21:18:28]Write to MH i2c: 01 00 00 FA 80 7A [21:18:28]Write i2c OK [21:18:28]MH_I2C_Read... [21:18:28]OFD Sender: No OFD packet to send [21:18:29]*** Cut start [21:18:29]*** Partial cut [21:18:29]*** CUTSNS_PIN = 1 [21:18:29]*** CUTSNS_PIN = 0 [21:18:29]*** Brake cut motor [21:18:29]Read from MH i2c: 01 [21:18:29]MH_I2C_Read... [21:18:29]*** Stop cut motor [21:18:29]*** Cut end [21:18:29]Read from MH i2c: 01 07 00 [21:18:29]MH_I2C_Read... [21:18:29]Read from MH i2c: 01 07 00 FA 80 00 00 00 00 00 FF 0F 8F [21:18:29]process_action close_receipt done [21:18:29]requested_data is exist [21:18:29]produce_requested_data [21:18:29]requested_item fm.sn is exist - process it [21:18:29]wFMCommunicate request_size=4 [21:18:29]MH_SAM_APDU [21:18:29]CAPDU: 80 11 00 00 [21:18:29]Write to MH i2c: E2 08 00 FB 80 80 11 00 00 00 00 00 00 F5 [21:18:29]Write i2c OK [21:18:29]MH_I2C_Read... [21:18:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:29]Read from MH i2c: E2 [21:18:29]MH_I2C_Read... [21:18:29]Read from MH i2c: E2 17 00 [21:18:29]MH_I2C_Read... [21:18:29]Read from MH i2c: E2 17 00 FB 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 50 [21:18:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:18:29]wFMCommunicate OK [21:18:29]requested_item fd.num is exist - process it [21:18:29]SAM_PROTO_GetFieldsCounters [21:18:29]wFMCommunicate request_size=4 [21:18:29]MH_SAM_APDU [21:18:29]CAPDU: 80 13 00 00 [21:18:29]Write to MH i2c: E2 08 00 FC 80 80 13 00 00 00 00 00 00 F8 [21:18:29]Write i2c OK [21:18:29]MH_I2C_Read... [21:18:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:29]Read from MH i2c: E2 [21:18:29]MH_I2C_Read... [21:18:29]Read from MH i2c: E2 62 00 [21:18:29]MH_I2C_Read... [21:18:29]Read from MH i2c: E2 62 00 FC 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 9E [21:18: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:18:29]wFMCommunicate OK [21:18:29]SAM_PROTO_GetFieldsCounters done [21:18:29]requested_item shift.num is exist - process it [21:18:29]requested_item shift.opened is exist - process it [21:18:29]req_shift_opened [21:18:29]FM_GetShiftState [21:18:29]SAM_PROTO_GetShiftState [21:18:29]wFMCommunicate request_size=4 [21:18:29]MH_SAM_APDU [21:18:29]CAPDU: 80 13 01 00 [21:18:29]Write to MH i2c: E2 08 00 FD 80 80 13 01 00 00 00 00 00 FA [21:18:29]Write i2c OK [21:18:29]MH_I2C_Read... [21:18:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:29]Read from MH i2c: E2 [21:18:29]MH_I2C_Read... [21:18:29]Read from MH i2c: E2 0E 00 [21:18:29]MH_I2C_Read... [21:18:29]Read from MH i2c: E2 0E 00 FD 80 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 28 [21:18:29]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:18:29]wFMCommunicate OK [21:18:29]SAM_PROTO_GetShiftState done [21:18:29]FM_GetShiftState done [21:18:29]req_shift_opened done [21:18:29]requested_item shift.open_date is exist - process it [21:18:29]req_shift_open_date [21:18:29]req_shift_open_date done [21:18:29]produce_requested_data done [21:18:29]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118918,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:18:29]process_action_free close_receipt [21:18:29]json_value_free [21:18:29]json_value_free done [21:18:29]process_json_proto returns [21:18:29]Send response to host [21:18:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118918,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:18:29]free response buf [21:18:29]execute_script done [21:18:29]execute_script returns [21:18:29]free content buf [21:18:29]Sock 9.Close socket [21:18:29]Sock 9.Thread stoped [21:18:33]OFD Sender: No OFD packet to send [21:18:38]OFD Sender: No OFD packet to send [21:18:43]OFD Sender: No OFD packet to send [21:18:48]OFD Sender: No OFD packet to send [21:18:53]OFD Sender: No OFD packet to send [21:18:58]OFD Sender: No OFD packet to send [21:19:03]OFD Sender: No OFD packet to send [21:19:08]OFD Sender: No OFD packet to send [21:19:09]accept exits with 7 [21:19:09]New connection [21:19:09]New thread 3067383140 created [21:19:09]Thread 3067239780 joined [21:19:09]Waiting for new connection... [21:19:09] Sock 7.Parse request [21:19:09]Sock 7.Check first char [21:19:09]Sock 7.First char is OK [21:19:09]request: POST /json_proto HTTP/1.0 [21:19:09]Method: POST [21:19:09]URL: /json_proto [21:19:09]Method is POST - this is cgi request [21:19:09]url: /json_proto [21:19:09]query_string will be loaded in cgi processing [21:19:09]execute_cgi json_proto POST (null) [21:19:09]execute_cgi path=json_proto method=POST [21:19:09]POST find Content-Length [21:19:09]Host: 172.17.45.7:8080 [21:19:09]Content-Length: 1195 [21:19:09]Content-Type: application/json [21:19:09] [21:19:09]POST finish read [21:19:09]Found Content-Length = 1195 [21:19:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949819\u000A29.07.2024 21:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991025\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:09]execute_script... [21:19:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949819\u000A29.07.2024 21:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991025\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:09]POST & json_proto [21:19:09]process_json_proto [21:19:09]json parsed OK: [21:19:09]protocol is kg_v1.0 [21:19:09]action value=print_text [21:19:09]process_action print_text [21:19:09]cmd_print_text [21:19:09]ExternCall_PrintAddStr [21:19:09]wPrintStart [21:19:09]Write to MH i2c: 01 00 00 FE 80 7E [21:19:09]Write i2c OK [21:19:09]MH_I2C_Read... [21:19:09]Read from MH i2c: 01 [21:19:09]MH_I2C_Read... [21:19:09]Read from MH i2c: 01 07 00 [21:19:09]MH_I2C_Read... [21:19:09]Read from MH i2c: 01 07 00 FE 80 00 00 00 00 00 FF 0F 93 [21:19:09]RasterBufferAndPrint [21:19:09]line *****ТОВАРНЫЙ ЧЕК***** [21:19:09]line АЗС-134 [21:19:09]line Партнер нефть [21:19:09]line 02508201610067 [21:19:09]line Кассир : Казаков Ч. [21:19:09]line Счет N : (1)949819 [21:19:09]line 29.07.2024 21:16 [21:19:09]line ПРОДАЖА [21:19:09]line ТРК (МРК, ГНК): 54 [21:19:09]line Вид ГСМ : 2710194800 [21:19:09]line ДТ-К-5 [21:19:09]line 100.000 x 76.20 [21:19:09]line ИТОГ: 7620.00 [21:19:09]line Тип оплаты: Талоны: Топливные Талоны [21:19:09]line 3991025 [21:19:09]line ______________________ [21:19:09]line (подпись) [21:19:09]written 0, free lines is 4095 [21:19:09]Write to MH i2c: 01 00 00 12 81 93 [21:19:09]Write i2c OK [21:19:09]MH_I2C_Read... [21:19:09]Read from MH i2c: 01 [21:19:09]MH_I2C_Read... [21:19:09]Read from MH i2c: 01 07 00 [21:19:09]MH_I2C_Read... [21:19:09]Read from MH i2c: 01 07 00 12 81 00 00 00 00 00 10 0E B8 [21:19:09]RasterBufferAndPrint [21:19:09]line [21:19:09]line [21:19:09]line [21:19:09]line [21:19:09]line [21:19:09]written 0, free lines is 3601 [21:19:09]MH_Cut [21:19:09]Write to MH i2c: D1 01 00 19 81 01 6C [21:19:09]Write i2c OK [21:19:09]MH_I2C_Read... [21:19:09]Read from MH i2c: D1 [21:19:09]MH_I2C_Read... [21:19:09]Read from MH i2c: D1 01 00 [21:19:09]MH_I2C_Read... [21:19:09]Read from MH i2c: D1 01 00 19 81 00 6B [21:19:09]Write to MH i2c: 01 00 00 1A 81 9B [21:19:09]Write i2c OK [21:19:09]MH_I2C_Read... [21:19:09]*** Cut start [21:19:09]*** Partial cut [21:19:09]*** CUTSNS_PIN = 1 [21:19:09]*** CUTSNS_PIN = 0 [21:19:10]*** Brake cut motor [21:19:10]Read from MH i2c: 01 [21:19:10]MH_I2C_Read... [21:19:10]*** Stop cut motor [21:19:10]*** Cut end [21:19:10]Read from MH i2c: 01 07 00 [21:19:10]MH_I2C_Read... [21:19:10]Read from MH i2c: 01 07 00 1A 81 00 00 00 00 00 FF 0F B0 [21:19:10]process_action print_text done [21:19:10]requested_data is exist [21:19:10]produce_requested_data [21:19:10]requested_item fm.sn is exist - process it [21:19:10]wFMCommunicate request_size=4 [21:19:10]MH_SAM_APDU [21:19:10]CAPDU: 80 11 00 00 [21:19:10]Write to MH i2c: E2 08 00 1B 81 80 11 00 00 00 00 00 00 16 [21:19:10]Write i2c OK [21:19:10]MH_I2C_Read... [21:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:10]Read from MH i2c: E2 [21:19:10]MH_I2C_Read... [21:19:10]Read from MH i2c: E2 17 00 [21:19:10]MH_I2C_Read... [21:19:10]Read from MH i2c: E2 17 00 1B 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 71 [21:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:19:10]wFMCommunicate OK [21:19:10]requested_item fd.num is exist - process it [21:19:10]SAM_PROTO_GetFieldsCounters [21:19:10]wFMCommunicate request_size=4 [21:19:10]MH_SAM_APDU [21:19:10]CAPDU: 80 13 00 00 [21:19:10]Write to MH i2c: E2 08 00 1C 81 80 13 00 00 00 00 00 00 19 [21:19:10]Write i2c OK [21:19:10]MH_I2C_Read... [21:19:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:10]Read from MH i2c: E2 [21:19:10]MH_I2C_Read... [21:19:10]Read from MH i2c: E2 62 00 [21:19:10]MH_I2C_Read... [21:19:10]Read from MH i2c: E2 62 00 1C 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [21:19: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:19:10]wFMCommunicate OK [21:19:10]SAM_PROTO_GetFieldsCounters done [21:19:10]requested_item shift.num is exist - process it [21:19:10]requested_item shift.opened is exist - process it [21:19:10]req_shift_opened [21:19:10]FM_GetShiftState [21:19:10]SAM_PROTO_GetShiftState [21:19:10]wFMCommunicate request_size=4 [21:19:10]MH_SAM_APDU [21:19:10]CAPDU: 80 13 01 00 [21:19:10]Write to MH i2c: E2 08 00 1D 81 80 13 01 00 00 00 00 00 1B [21:19:10]Write i2c OK [21:19:10]MH_I2C_Read... [21:19:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:10]Read from MH i2c: E2 [21:19:10]MH_I2C_Read... [21:19:10]Read from MH i2c: E2 0E 00 [21:19:10]MH_I2C_Read... [21:19:10]Read from MH i2c: E2 0E 00 1D 81 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 49 [21:19:10]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:19:10]wFMCommunicate OK [21:19:10]SAM_PROTO_GetShiftState done [21:19:10]FM_GetShiftState done [21:19:10]req_shift_opened done [21:19:10]requested_item shift.open_date is exist - process it [21:19:10]req_shift_open_date [21:19:10]req_shift_open_date done [21:19:10]produce_requested_data done [21:19:10]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118918,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:19:10]process_action_free print_text [21:19:10]json_value_free [21:19:10]json_value_free done [21:19:10]process_json_proto returns [21:19:10]Send response to host [21:19:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118918,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:19:10]free response buf [21:19:10]execute_script done [21:19:10]execute_script returns [21:19:10]free content buf [21:19:10]Sock 7.Close socket [21:19:10]Sock 7.Thread stoped [21:19:13]OFD Sender: No OFD packet to send [21:19:18]OFD Sender: No OFD packet to send [21:19:23]OFD Sender: No OFD packet to send [21:19:25]accept exits with 9 [21:19:25]New connection [21:19:25]New thread 3067239780 created [21:19:25]Thread 3067383140 joined [21:19:25]Waiting for new connection... [21:19:25] Sock 9.Parse request [21:19:25]Sock 9.Check first char [21:19:25]Sock 9.First char is OK [21:19:25]request: POST /json_proto HTTP/1.0 [21:19:25]Method: POST [21:19:25]URL: /json_proto [21:19:25]Method is POST - this is cgi request [21:19:25]url: /json_proto [21:19:25]query_string will be loaded in cgi processing [21:19:25]execute_cgi json_proto POST (null) [21:19:25]execute_cgi path=json_proto method=POST [21:19:25]POST find Content-Length [21:19:25]Host: 172.17.45.7:8080 [21:19:25]Content-Length: 1195 [21:19:25]Content-Type: application/json [21:19:25] [21:19:25]POST finish read [21:19:25]Found Content-Length = 1195 [21:19:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949820\u000A29.07.2024 21:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991042\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:25]execute_script... [21:19:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949820\u000A29.07.2024 21:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991042\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:25]POST & json_proto [21:19:25]process_json_proto [21:19:25]json parsed OK: [21:19:25]protocol is kg_v1.0 [21:19:25]action value=print_text [21:19:25]process_action print_text [21:19:25]cmd_print_text [21:19:25]ExternCall_PrintAddStr [21:19:25]wPrintStart [21:19:25]Write to MH i2c: 01 00 00 1E 81 9F [21:19:25]Write i2c OK [21:19:25]MH_I2C_Read... [21:19:25]Read from MH i2c: 01 [21:19:25]MH_I2C_Read... [21:19:25]Read from MH i2c: 01 07 00 [21:19:25]MH_I2C_Read... [21:19:25]Read from MH i2c: 01 07 00 1E 81 00 00 00 00 00 FF 0F B4 [21:19:25]RasterBufferAndPrint [21:19:25]line *****ТОВАРНЫЙ ЧЕК***** [21:19:25]line АЗС-134 [21:19:25]line Партнер нефть [21:19:25]line 02508201610067 [21:19:25]line Кассир : Казаков Ч. [21:19:25]line Счет N : (1)949820 [21:19:25]line 29.07.2024 21:17 [21:19:25]line ПРОДАЖА [21:19:25]line ТРК (МРК, ГНК): 64 [21:19:25]line Вид ГСМ : 2710194800 [21:19:25]line ДТ-К-5 [21:19:25]line 100.000 x 76.20 [21:19:25]line ИТОГ: 7620.00 [21:19:25]line Тип оплаты: Талоны: Топливные Талоны [21:19:25]line 3991042 [21:19:25]line ______________________ [21:19:25]line (подпись) [21:19:25]written 0, free lines is 4095 [21:19:26]Write to MH i2c: 01 00 00 32 81 B3 [21:19:26]Write i2c OK [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: 01 [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: 01 07 00 [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: 01 07 00 32 81 00 00 00 00 00 10 0E D8 [21:19:26]RasterBufferAndPrint [21:19:26]line [21:19:26]line [21:19:26]line [21:19:26]line [21:19:26]line [21:19:26]written 0, free lines is 3601 [21:19:26]MH_Cut [21:19:26]Write to MH i2c: D1 01 00 39 81 01 8C [21:19:26]Write i2c OK [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: D1 [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: D1 01 00 [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: D1 01 00 39 81 00 8B [21:19:26]Write to MH i2c: 01 00 00 3A 81 BB [21:19:26]Write i2c OK [21:19:26]MH_I2C_Read... [21:19:26]*** Cut start [21:19:26]*** Partial cut [21:19:26]*** CUTSNS_PIN = 1 [21:19:26]*** CUTSNS_PIN = 0 [21:19:26]*** Brake cut motor [21:19:27]Read from MH i2c: 01 [21:19:27]MH_I2C_Read... [21:19:27]*** Stop cut motor [21:19:27]*** Cut end [21:19:27]Read from MH i2c: 01 07 00 [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: 01 07 00 3A 81 00 00 00 00 00 FF 0F D0 [21:19:27]process_action print_text done [21:19:27]requested_data is exist [21:19:27]produce_requested_data [21:19:27]requested_item fm.sn is exist - process it [21:19:27]wFMCommunicate request_size=4 [21:19:27]MH_SAM_APDU [21:19:27]CAPDU: 80 11 00 00 [21:19:27]Write to MH i2c: E2 08 00 3B 81 80 11 00 00 00 00 00 00 36 [21:19:27]Write i2c OK [21:19:27]MH_I2C_Read... [21:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:27]Read from MH i2c: E2 [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: E2 17 00 [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: E2 17 00 3B 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 91 [21:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:19:27]wFMCommunicate OK [21:19:27]requested_item fd.num is exist - process it [21:19:27]SAM_PROTO_GetFieldsCounters [21:19:27]wFMCommunicate request_size=4 [21:19:27]MH_SAM_APDU [21:19:27]CAPDU: 80 13 00 00 [21:19:27]Write to MH i2c: E2 08 00 3C 81 80 13 00 00 00 00 00 00 39 [21:19:27]Write i2c OK [21:19:27]MH_I2C_Read... [21:19:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:27]Read from MH i2c: E2 [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: E2 62 00 [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: E2 62 00 3C 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 DF [21:19: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:19:27]wFMCommunicate OK [21:19:27]SAM_PROTO_GetFieldsCounters done [21:19:27]requested_item shift.num is exist - process it [21:19:27]requested_item shift.opened is exist - process it [21:19:27]req_shift_opened [21:19:27]FM_GetShiftState [21:19:27]SAM_PROTO_GetShiftState [21:19:27]wFMCommunicate request_size=4 [21:19:27]MH_SAM_APDU [21:19:27]CAPDU: 80 13 01 00 [21:19:27]Write to MH i2c: E2 08 00 3D 81 80 13 01 00 00 00 00 00 3B [21:19:27]Write i2c OK [21:19:27]MH_I2C_Read... [21:19:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:27]Read from MH i2c: E2 [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: E2 0E 00 [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: E2 0E 00 3D 81 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 69 [21:19:27]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:19:27]wFMCommunicate OK [21:19:27]SAM_PROTO_GetShiftState done [21:19:27]FM_GetShiftState done [21:19:27]req_shift_opened done [21:19:27]requested_item shift.open_date is exist - process it [21:19:27]req_shift_open_date [21:19:27]req_shift_open_date done [21:19:27]produce_requested_data done [21:19:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118918,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:19:27]process_action_free print_text [21:19:27]json_value_free [21:19:27]json_value_free done [21:19:27]process_json_proto returns [21:19:27]Send response to host [21:19:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118918,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:19:27]free response buf [21:19:27]execute_script done [21:19:27]execute_script returns [21:19:27]free content buf [21:19:27]Sock 9.Close socket [21:19:27]Sock 9.Thread stoped [21:19:28]OFD Sender: No OFD packet to send [21:19:33]OFD Sender: No OFD packet to send [21:19:38]OFD Sender: No OFD packet to send [21:19:43]OFD Sender: No OFD packet to send [21:19:48]OFD Sender: No OFD packet to send [21:19:53]OFD Sender: No OFD packet to send [21:19:58]OFD Sender: No OFD packet to send [21:20:03]OFD Sender: No OFD packet to send [21:20:08]OFD Sender: No OFD packet to send [21:20:13]OFD Sender: No OFD packet to send [21:20:18]OFD Sender: No OFD packet to send [21:20:23]OFD Sender: No OFD packet to send [21:20:28]OFD Sender: No OFD packet to send [21:20:33]OFD Sender: No OFD packet to send [21:20:38]OFD Sender: No OFD packet to send [21:20:43]OFD Sender: No OFD packet to send [21:20:48]OFD Sender: No OFD packet to send [21:20:53]OFD Sender: No OFD packet to send [21:20:58]OFD Sender: No OFD packet to send [21:21:03]OFD Sender: No OFD packet to send [21:21:08]OFD Sender: No OFD packet to send [21:21:13]OFD Sender: No OFD packet to send [21:21:18]OFD Sender: No OFD packet to send [21:21:23]OFD Sender: No OFD packet to send [21:21:28]OFD Sender: No OFD packet to send [21:21:33]OFD Sender: No OFD packet to send [21:21:38]OFD Sender: No OFD packet to send [21:21:43]OFD Sender: No OFD packet to send [21:21:48]OFD Sender: No OFD packet to send [21:21:53]OFD Sender: No OFD packet to send [21:21:58]OFD Sender: No OFD packet to send [21:22:03]OFD Sender: No OFD packet to send [21:22:08]OFD Sender: No OFD packet to send [21:22:13]OFD Sender: No OFD packet to send [21:22:18]OFD Sender: No OFD packet to send [21:22:23]OFD Sender: No OFD packet to send [21:22:28]OFD Sender: No OFD packet to send [21:22:33]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:50]accept exits with 7 [21:22:50]New connection [21:22:50]New thread 3067383140 created [21:22:50]Thread 3067239780 joined [21:22:50]Waiting for new connection... [21:22:50] Sock 7.Parse request [21:22:50]Sock 7.Check first char [21:22:50]Sock 7.First char is OK [21:22:50]request: POST /json_proto HTTP/1.0 [21:22:50]Method: POST [21:22:50]URL: /json_proto [21:22:50]Method is POST - this is cgi request [21:22:50]url: /json_proto [21:22:50]query_string will be loaded in cgi processing [21:22:50]execute_cgi json_proto POST (null) [21:22:50]execute_cgi path=json_proto method=POST [21:22:50]POST find Content-Length [21:22:50]Host: 172.17.45.7:8080 [21:22:50]Content-Length: 1195 [21:22:50]Content-Type: application/json [21:22:50] [21:22:50]POST finish read [21:22:50]Found Content-Length = 1195 [21:22:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949822\u000A29.07.2024 21:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991040\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:50]execute_script... [21:22:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949822\u000A29.07.2024 21:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991040\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:50]POST & json_proto [21:22:50]process_json_proto [21:22:50]json parsed OK: [21:22:50]protocol is kg_v1.0 [21:22:50]action value=print_text [21:22:50]process_action print_text [21:22:50]cmd_print_text [21:22:50]ExternCall_PrintAddStr [21:22:50]wPrintStart [21:22:50]Write to MH i2c: 01 00 00 3E 81 BF [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 07 00 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 07 00 3E 81 00 00 00 00 00 FF 0F D4 [21:22:50]RasterBufferAndPrint [21:22:50]line *****ТОВАРНЫЙ ЧЕК***** [21:22:50]line АЗС-134 [21:22:50]line Партнер нефть [21:22:50]line 02508201610067 [21:22:50]line Кассир : Казаков Ч. [21:22:50]line Счет N : (1)949822 [21:22:50]line 29.07.2024 21:20 [21:22:50]line ПРОДАЖА [21:22:50]line ТРК (МРК, ГНК): 54 [21:22:50]line Вид ГСМ : 2710194800 [21:22:50]line ДТ-К-5 [21:22:50]line 100.000 x 76.20 [21:22:50]line ИТОГ: 7620.00 [21:22:50]line Тип оплаты: Талоны: Топливные Талоны [21:22:50]line 3991040 [21:22:50]line ______________________ [21:22:50]line (подпись) [21:22:50]written 0, free lines is 4095 [21:22:50]Write to MH i2c: 01 00 00 52 81 D3 [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 07 00 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 07 00 52 81 00 00 00 00 00 10 0E F8 [21:22:50]RasterBufferAndPrint [21:22:50]line [21:22:50]line [21:22:50]line [21:22:50]line [21:22:50]line [21:22:50]written 0, free lines is 3601 [21:22:50]MH_Cut [21:22:50]Write to MH i2c: D1 01 00 59 81 01 AC [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: D1 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: D1 01 00 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: D1 01 00 59 81 00 AB [21:22:50]Write to MH i2c: 01 00 00 5A 81 DB [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:51]*** Cut start [21:22:51]*** Partial cut [21:22:51]*** CUTSNS_PIN = 1 [21:22:51]*** CUTSNS_PIN = 0 [21:22:51]*** Brake cut motor [21:22:51]Read from MH i2c: 01 [21:22:51]MH_I2C_Read... [21:22:51]*** Stop cut motor [21:22:51]*** Cut end [21:22:51]Read from MH i2c: 01 07 00 [21:22:51]MH_I2C_Read... [21:22:51]Read from MH i2c: 01 07 00 5A 81 00 00 00 00 00 FF 0F F0 [21:22:51]process_action print_text done [21:22:51]requested_data is exist [21:22:51]produce_requested_data [21:22:51]requested_item fm.sn is exist - process it [21:22:51]wFMCommunicate request_size=4 [21:22:51]MH_SAM_APDU [21:22:51]CAPDU: 80 11 00 00 [21:22:51]Write to MH i2c: E2 08 00 5B 81 80 11 00 00 00 00 00 00 56 [21:22:51]Write i2c OK [21:22:51]MH_I2C_Read... [21:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:51]Read from MH i2c: E2 [21:22:51]MH_I2C_Read... [21:22:51]Read from MH i2c: E2 17 00 [21:22:51]MH_I2C_Read... [21:22:51]Read from MH i2c: E2 17 00 5B 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B1 [21:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:22:51]wFMCommunicate OK [21:22:51]requested_item fd.num is exist - process it [21:22:51]SAM_PROTO_GetFieldsCounters [21:22:51]wFMCommunicate request_size=4 [21:22:51]MH_SAM_APDU [21:22:51]CAPDU: 80 13 00 00 [21:22:51]Write to MH i2c: E2 08 00 5C 81 80 13 00 00 00 00 00 00 59 [21:22:51]Write i2c OK [21:22:51]MH_I2C_Read... [21:22:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:51]Read from MH i2c: E2 [21:22:51]MH_I2C_Read... [21:22:51]Read from MH i2c: E2 62 00 [21:22:51]MH_I2C_Read... [21:22:51]Read from MH i2c: E2 62 00 5C 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 FF [21:22: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:22:51]wFMCommunicate OK [21:22:51]SAM_PROTO_GetFieldsCounters done [21:22:51]requested_item shift.num is exist - process it [21:22:51]requested_item shift.opened is exist - process it [21:22:51]req_shift_opened [21:22:51]FM_GetShiftState [21:22:51]SAM_PROTO_GetShiftState [21:22:51]wFMCommunicate request_size=4 [21:22:51]MH_SAM_APDU [21:22:51]CAPDU: 80 13 01 00 [21:22:51]Write to MH i2c: E2 08 00 5D 81 80 13 01 00 00 00 00 00 5B [21:22:51]Write i2c OK [21:22:51]MH_I2C_Read... [21:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:52]Read from MH i2c: E2 [21:22:52]MH_I2C_Read... [21:22:52]Read from MH i2c: E2 0E 00 [21:22:52]MH_I2C_Read... [21:22:52]Read from MH i2c: E2 0E 00 5D 81 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 89 [21:22:52]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:22:52]wFMCommunicate OK [21:22:52]SAM_PROTO_GetShiftState done [21:22:52]FM_GetShiftState done [21:22:52]req_shift_opened done [21:22:52]requested_item shift.open_date is exist - process it [21:22:52]req_shift_open_date [21:22:52]req_shift_open_date done [21:22:52]produce_requested_data done [21:22:52]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118918,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:22:52]process_action_free print_text [21:22:52]json_value_free [21:22:52]json_value_free done [21:22:52]process_json_proto returns [21:22:52]Send response to host [21:22:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118918,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:22:52]free response buf [21:22:52]execute_script done [21:22:52]execute_script returns [21:22:52]free content buf [21:22:52]Sock 7.Close socket [21:22:52]Sock 7.Thread stoped [21:22:54]OFD Sender: No OFD packet to send [21:22:59]OFD Sender: No OFD packet to send [21:23:04]OFD Sender: No OFD packet to send [21:23:06]accept exits with 9 [21:23:06]New connection [21:23:06]New thread 3067239780 created [21:23:06]Thread 3067383140 joined [21:23:06]Waiting for new connection... [21:23:06] Sock 9.Parse request [21:23:06]Sock 9.Check first char [21:23:06]Sock 9.First char is OK [21:23:06]request: POST /json_proto HTTP/1.0 [21:23:06]Method: POST [21:23:06]URL: /json_proto [21:23:06]Method is POST - this is cgi request [21:23:06]url: /json_proto [21:23:06]query_string will be loaded in cgi processing [21:23:06]execute_cgi json_proto POST (null) [21:23:06]execute_cgi path=json_proto method=POST [21:23:06]POST find Content-Length [21:23:06]Host: 172.17.45.7:8080 [21:23:06]Content-Length: 1195 [21:23:06]Content-Type: application/json [21:23:06] [21:23:06]POST finish read [21:23:06]Found Content-Length = 1195 [21:23:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949823\u000A29.07.2024 21:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991041\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:06]execute_script... [21:23:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949823\u000A29.07.2024 21:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991041\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:06]POST & json_proto [21:23:06]process_json_proto [21:23:06]json parsed OK: [21:23:06]protocol is kg_v1.0 [21:23:06]action value=print_text [21:23:06]process_action print_text [21:23:06]cmd_print_text [21:23:06]ExternCall_PrintAddStr [21:23:06]wPrintStart [21:23:06]Write to MH i2c: 01 00 00 5E 81 DF [21:23:06]Write i2c OK [21:23:06]MH_I2C_Read... [21:23:06]Read from MH i2c: 01 [21:23:06]MH_I2C_Read... [21:23:06]Read from MH i2c: 01 07 00 [21:23:06]MH_I2C_Read... [21:23:06]Read from MH i2c: 01 07 00 5E 81 00 00 00 00 00 FF 0F F4 [21:23:06]RasterBufferAndPrint [21:23:06]line *****ТОВАРНЫЙ ЧЕК***** [21:23:06]line АЗС-134 [21:23:06]line Партнер нефть [21:23:06]line 02508201610067 [21:23:06]line Кассир : Казаков Ч. [21:23:06]line Счет N : (1)949823 [21:23:06]line 29.07.2024 21:20 [21:23:06]line ПРОДАЖА [21:23:06]line ТРК (МРК, ГНК): 64 [21:23:06]line Вид ГСМ : 2710194800 [21:23:06]line ДТ-К-5 [21:23:06]line 100.000 x 76.20 [21:23:06]line ИТОГ: 7620.00 [21:23:06]line Тип оплаты: Талоны: Топливные Талоны [21:23:06]line 3991041 [21:23:06]line ______________________ [21:23:06]line (подпись) [21:23:06]written 0, free lines is 4095 [21:23:06]Write to MH i2c: 01 00 00 72 81 F3 [21:23:06]Write i2c OK [21:23:06]MH_I2C_Read... [21:23:06]Read from MH i2c: 01 [21:23:06]MH_I2C_Read... [21:23:06]Read from MH i2c: 01 07 00 [21:23:06]MH_I2C_Read... [21:23:06]Read from MH i2c: 01 07 00 72 81 00 00 00 00 00 0F 0E 17 [21:23:06]RasterBufferAndPrint [21:23:06]line [21:23:06]line [21:23:06]line [21:23:06]line [21:23:06]line [21:23:06]written 0, free lines is 3601 [21:23:06]MH_Cut [21:23:06]Write to MH i2c: D1 01 00 79 81 01 CC [21:23:06]Write i2c OK [21:23:06]MH_I2C_Read... [21:23:06]Read from MH i2c: D1 [21:23:06]MH_I2C_Read... [21:23:06]Read from MH i2c: D1 01 00 [21:23:06]MH_I2C_Read... [21:23:06]Read from MH i2c: D1 01 00 79 81 00 CB [21:23:06]Write to MH i2c: 01 00 00 7A 81 FB [21:23:06]Write i2c OK [21:23:06]MH_I2C_Read... [21:23:06]*** Cut start [21:23:06]*** Partial cut [21:23:06]*** CUTSNS_PIN = 1 [21:23:06]*** CUTSNS_PIN = 0 [21:23:07]*** Brake cut motor [21:23:07]Read from MH i2c: 01 [21:23:07]MH_I2C_Read... [21:23:07]Read from MH i2c: 01 07 00 [21:23:07]MH_I2C_Read... [21:23:07]*** Stop cut motor [21:23:07]*** Cut end [21:23:07]Read from MH i2c: 01 07 00 7A 81 00 00 00 00 00 FF 0F 10 [21:23:07]process_action print_text done [21:23:07]requested_data is exist [21:23:07]produce_requested_data [21:23:07]requested_item fm.sn is exist - process it [21:23:07]wFMCommunicate request_size=4 [21:23:07]MH_SAM_APDU [21:23:07]CAPDU: 80 11 00 00 [21:23:07]Write to MH i2c: E2 08 00 7B 81 80 11 00 00 00 00 00 00 76 [21:23:07]Write i2c OK [21:23:07]MH_I2C_Read... [21:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:07]Read from MH i2c: E2 [21:23:07]MH_I2C_Read... [21:23:07]Read from MH i2c: E2 17 00 [21:23:07]MH_I2C_Read... [21:23:07]Read from MH i2c: E2 17 00 7B 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D1 [21:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:23:07]wFMCommunicate OK [21:23:07]requested_item fd.num is exist - process it [21:23:07]SAM_PROTO_GetFieldsCounters [21:23:07]wFMCommunicate request_size=4 [21:23:07]MH_SAM_APDU [21:23:07]CAPDU: 80 13 00 00 [21:23:07]Write to MH i2c: E2 08 00 7C 81 80 13 00 00 00 00 00 00 79 [21:23:07]Write i2c OK [21:23:07]MH_I2C_Read... [21:23:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:07]Read from MH i2c: E2 [21:23:07]MH_I2C_Read... [21:23:07]Read from MH i2c: E2 62 00 [21:23:07]MH_I2C_Read... [21:23:07]Read from MH i2c: E2 62 00 7C 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 1F [21:23: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:23:07]wFMCommunicate OK [21:23:07]SAM_PROTO_GetFieldsCounters done [21:23:07]requested_item shift.num is exist - process it [21:23:07]requested_item shift.opened is exist - process it [21:23:07]req_shift_opened [21:23:07]FM_GetShiftState [21:23:07]SAM_PROTO_GetShiftState [21:23:07]wFMCommunicate request_size=4 [21:23:07]MH_SAM_APDU [21:23:07]CAPDU: 80 13 01 00 [21:23:07]Write to MH i2c: E2 08 00 7D 81 80 13 01 00 00 00 00 00 7B [21:23:07]Write i2c OK [21:23:07]MH_I2C_Read... [21:23:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:07]Read from MH i2c: E2 [21:23:07]MH_I2C_Read... [21:23:07]Read from MH i2c: E2 0E 00 [21:23:07]MH_I2C_Read... [21:23:07]Read from MH i2c: E2 0E 00 7D 81 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A9 [21:23:07]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:23:07]wFMCommunicate OK [21:23:07]SAM_PROTO_GetShiftState done [21:23:07]FM_GetShiftState done [21:23:07]req_shift_opened done [21:23:07]requested_item shift.open_date is exist - process it [21:23:07]req_shift_open_date [21:23:07]req_shift_open_date done [21:23:07]produce_requested_data done [21:23:07]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118918,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:23:07]process_action_free print_text [21:23:07]json_value_free [21:23:07]json_value_free done [21:23:07]process_json_proto returns [21:23:07]Send response to host [21:23:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118918,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:23:07]free response buf [21:23:07]execute_script done [21:23:07]execute_script returns [21:23:07]free content buf [21:23:07]Sock 9.Close socket [21:23:07]Sock 9.Thread stoped [21:23:09]OFD Sender: No OFD packet to send [21:23:14]OFD Sender: No OFD packet to send [21:23:19]OFD Sender: No OFD packet to send [21:23:24]OFD Sender: No OFD packet to send [21:23:29]OFD Sender: No OFD packet to send [21:23:34]OFD Sender: No OFD packet to send [21:23:39]OFD Sender: No OFD packet to send [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:54]OFD Sender: No OFD packet to send [21:25:59]OFD Sender: No OFD packet to send [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:29]OFD Sender: No OFD packet to send [21:26:34]OFD Sender: No OFD packet to send [21:26:39]OFD Sender: No OFD packet to send [21:26:44]OFD Sender: No OFD packet to send [21:26:49]OFD Sender: No OFD packet to send [21:26:54]OFD Sender: No OFD packet to send [21:26:56]accept exits with 7 [21:26:56]New connection [21:26:56]New thread 3067383140 created [21:26:56]Thread 3067239780 joined [21:26:56]Waiting for new connection... [21:26:56] Sock 7.Parse request [21:26:56]Sock 7.Check first char [21:26:56]Sock 7.First char is OK [21:26:56]request: POST /json_proto HTTP/1.0 [21:26:56]Method: POST [21:26:56]URL: /json_proto [21:26:56]Method is POST - this is cgi request [21:26:56]url: /json_proto [21:26:56]query_string will be loaded in cgi processing [21:26:56]execute_cgi json_proto POST (null) [21:26:56]execute_cgi path=json_proto method=POST [21:26:56]POST find Content-Length [21:26:56]Host: 172.17.45.7:8080 [21:26:56]Content-Length: 1195 [21:26:56]Content-Type: application/json [21:26:56] [21:26:56]POST finish read [21:26:56]Found Content-Length = 1195 [21:26:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949824\u000A29.07.2024 21:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991038\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:56]execute_script... [21:26:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949824\u000A29.07.2024 21:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991038\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:56]POST & json_proto [21:26:56]process_json_proto [21:26:56]json parsed OK: [21:26:56]protocol is kg_v1.0 [21:26:56]action value=print_text [21:26:56]process_action print_text [21:26:56]cmd_print_text [21:26:56]ExternCall_PrintAddStr [21:26:56]wPrintStart [21:26:56]Write to MH i2c: 01 00 00 7E 81 FF [21:26:56]Write i2c OK [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: 01 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: 01 07 00 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: 01 07 00 7E 81 00 00 00 00 00 FF 0F 14 [21:26:56]RasterBufferAndPrint [21:26:56]line *****ТОВАРНЫЙ ЧЕК***** [21:26:56]line АЗС-134 [21:26:56]line Партнер нефть [21:26:56]line 02508201610067 [21:26:56]line Кассир : Казаков Ч. [21:26:56]line Счет N : (1)949824 [21:26:56]line 29.07.2024 21:24 [21:26:56]line ПРОДАЖА [21:26:56]line ТРК (МРК, ГНК): 54 [21:26:56]line Вид ГСМ : 2710194800 [21:26:56]line ДТ-К-5 [21:26:56]line 100.000 x 76.20 [21:26:56]line ИТОГ: 7620.00 [21:26:56]line Тип оплаты: Талоны: Топливные Талоны [21:26:56]line 3991038 [21:26:56]line ______________________ [21:26:56]line (подпись) [21:26:56]written 0, free lines is 4095 [21:26:56]Write to MH i2c: 01 00 00 92 81 13 [21:26:56]Write i2c OK [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: 01 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: 01 07 00 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: 01 07 00 92 81 00 00 00 00 00 10 0E 38 [21:26:56]RasterBufferAndPrint [21:26:56]line [21:26:56]line [21:26:56]line [21:26:56]line [21:26:56]line [21:26:56]written 0, free lines is 3601 [21:26:56]MH_Cut [21:26:56]Write to MH i2c: D1 01 00 99 81 01 EC [21:26:56]Write i2c OK [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: D1 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: D1 01 00 [21:26:56]MH_I2C_Read... [21:26:56]Read from MH i2c: D1 01 00 99 81 00 EB [21:26:56]Write to MH i2c: 01 00 00 9A 81 1B [21:26:56]Write i2c OK [21:26:56]MH_I2C_Read... [21:26:57]*** Cut start [21:26:57]*** Partial cut [21:26:57]*** CUTSNS_PIN = 1 [21:26:57]*** CUTSNS_PIN = 0 [21:26:57]*** Brake cut motor [21:26:57]Read from MH i2c: 01 [21:26:57]MH_I2C_Read... [21:26:57]Read from MH i2c: 01 07 00 [21:26:57]MH_I2C_Read... [21:26:57]*** Stop cut motor [21:26:57]*** Cut end [21:26:57]Read from MH i2c: 01 07 00 9A 81 00 00 00 00 00 FF 0F 30 [21:26:57]process_action print_text done [21:26:57]requested_data is exist [21:26:57]produce_requested_data [21:26:57]requested_item fm.sn is exist - process it [21:26:57]wFMCommunicate request_size=4 [21:26:57]MH_SAM_APDU [21:26:57]CAPDU: 80 11 00 00 [21:26:57]Write to MH i2c: E2 08 00 9B 81 80 11 00 00 00 00 00 00 96 [21:26:57]Write i2c OK [21:26:57]MH_I2C_Read... [21:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:57]Read from MH i2c: E2 [21:26:57]MH_I2C_Read... [21:26:57]Read from MH i2c: E2 17 00 [21:26:57]MH_I2C_Read... [21:26:57]Read from MH i2c: E2 17 00 9B 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F1 [21:26:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:26:57]wFMCommunicate OK [21:26:57]requested_item fd.num is exist - process it [21:26:57]SAM_PROTO_GetFieldsCounters [21:26:57]wFMCommunicate request_size=4 [21:26:57]MH_SAM_APDU [21:26:57]CAPDU: 80 13 00 00 [21:26:57]Write to MH i2c: E2 08 00 9C 81 80 13 00 00 00 00 00 00 99 [21:26:57]Write i2c OK [21:26:57]MH_I2C_Read... [21:26:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:26:58]Read from MH i2c: E2 [21:26:58]MH_I2C_Read... [21:26:58]Read from MH i2c: E2 62 00 [21:26:58]MH_I2C_Read... [21:26:58]Read from MH i2c: E2 62 00 9C 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [21:26: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:26:58]wFMCommunicate OK [21:26:58]SAM_PROTO_GetFieldsCounters done [21:26:58]requested_item shift.num is exist - process it [21:26:58]requested_item shift.opened is exist - process it [21:26:58]req_shift_opened [21:26:58]FM_GetShiftState [21:26:58]SAM_PROTO_GetShiftState [21:26:58]wFMCommunicate request_size=4 [21:26:58]MH_SAM_APDU [21:26:58]CAPDU: 80 13 01 00 [21:26:58]Write to MH i2c: E2 08 00 9D 81 80 13 01 00 00 00 00 00 9B [21:26:58]Write i2c OK [21:26:58]MH_I2C_Read... [21:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:58]Read from MH i2c: E2 [21:26:58]MH_I2C_Read... [21:26:58]Read from MH i2c: E2 0E 00 [21:26:58]MH_I2C_Read... [21:26:58]Read from MH i2c: E2 0E 00 9D 81 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C9 [21:26:58]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:26:58]wFMCommunicate OK [21:26:58]SAM_PROTO_GetShiftState done [21:26:58]FM_GetShiftState done [21:26:58]req_shift_opened done [21:26:58]requested_item shift.open_date is exist - process it [21:26:58]req_shift_open_date [21:26:58]req_shift_open_date done [21:26:58]produce_requested_data done [21:26:58]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118918,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:26:58]process_action_free print_text [21:26:58]json_value_free [21:26:58]json_value_free done [21:26:58]process_json_proto returns [21:26:58]Send response to host [21:26:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118918,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:26:58]free response buf [21:26:58]execute_script done [21:26:58]execute_script returns [21:26:58]free content buf [21:26:58]Sock 7.Close socket [21:26:58]Sock 7.Thread stoped [21:26:59]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:05]accept exits with 9 [21:27:05]New connection [21:27:05]New thread 3067239780 created [21:27:05]Thread 3067383140 joined [21:27:05]Waiting for new connection... [21:27:05] Sock 9.Parse request [21:27:05]Sock 9.Check first char [21:27:05]Sock 9.First char is OK [21:27:05]request: POST /json_proto HTTP/1.0 [21:27:05]Method: POST [21:27:05]URL: /json_proto [21:27:05]Method is POST - this is cgi request [21:27:05]url: /json_proto [21:27:05]query_string will be loaded in cgi processing [21:27:05]execute_cgi json_proto POST (null) [21:27:05]execute_cgi path=json_proto method=POST [21:27:05]POST find Content-Length [21:27:05]Host: 172.17.45.7:8080 [21:27:05]Content-Length: 1195 [21:27:05]Content-Type: application/json [21:27:05] [21:27:05]POST finish read [21:27:05]Found Content-Length = 1195 [21:27:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949825\u000A29.07.2024 21:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991039\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:05]execute_script... [21:27:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949825\u000A29.07.2024 21:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991039\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:05]POST & json_proto [21:27:05]process_json_proto [21:27:05]json parsed OK: [21:27:05]protocol is kg_v1.0 [21:27:05]action value=print_text [21:27:05]process_action print_text [21:27:05]cmd_print_text [21:27:05]ExternCall_PrintAddStr [21:27:05]wPrintStart [21:27:05]Write to MH i2c: 01 00 00 9E 81 1F [21:27:05]Write i2c OK [21:27:05]MH_I2C_Read... [21:27:05]Read from MH i2c: 01 [21:27:05]MH_I2C_Read... [21:27:05]Read from MH i2c: 01 07 00 [21:27:05]MH_I2C_Read... [21:27:05]Read from MH i2c: 01 07 00 9E 81 00 00 00 00 00 FF 0F 34 [21:27:05]RasterBufferAndPrint [21:27:05]line *****ТОВАРНЫЙ ЧЕК***** [21:27:05]line АЗС-134 [21:27:05]line Партнер нефть [21:27:05]line 02508201610067 [21:27:05]line Кассир : Казаков Ч. [21:27:05]line Счет N : (1)949825 [21:27:05]line 29.07.2024 21:24 [21:27:05]line ПРОДАЖА [21:27:05]line ТРК (МРК, ГНК): 64 [21:27:05]line Вид ГСМ : 2710194800 [21:27:05]line ДТ-К-5 [21:27:05]line 100.000 x 76.20 [21:27:05]line ИТОГ: 7620.00 [21:27:05]line Тип оплаты: Талоны: Топливные Талоны [21:27:05]line 3991039 [21:27:05]line ______________________ [21:27:05]line (подпись) [21:27:05]written 0, free lines is 4095 [21:27:05]Write to MH i2c: 01 00 00 B2 81 33 [21:27:05]Write i2c OK [21:27:05]MH_I2C_Read... [21:27:05]Read from MH i2c: 01 [21:27:05]MH_I2C_Read... [21:27:05]Read from MH i2c: 01 07 00 [21:27:05]MH_I2C_Read... [21:27:05]Read from MH i2c: 01 07 00 B2 81 00 00 00 00 00 10 0E 58 [21:27:05]RasterBufferAndPrint [21:27:05]line [21:27:05]line [21:27:05]line [21:27:05]line [21:27:05]line [21:27:05]written 0, free lines is 3602 [21:27:05]MH_Cut [21:27:05]Write to MH i2c: D1 01 00 B9 81 01 0C [21:27:05]Write i2c OK [21:27:05]MH_I2C_Read... [21:27:05]Read from MH i2c: D1 [21:27:05]MH_I2C_Read... [21:27:05]Read from MH i2c: D1 01 00 [21:27:05]MH_I2C_Read... [21:27:05]Read from MH i2c: D1 01 00 B9 81 00 0B [21:27:05]Write to MH i2c: 01 00 00 BA 81 3B [21:27:05]Write i2c OK [21:27:05]MH_I2C_Read... [21:27:06]*** Cut start [21:27:06]*** Partial cut [21:27:06]*** CUTSNS_PIN = 1 [21:27:06]*** CUTSNS_PIN = 0 [21:27:06]*** Brake cut motor [21:27:06]Read from MH i2c: 01 [21:27:06]MH_I2C_Read... [21:27:06]*** Stop cut motor [21:27:06]*** Cut end [21:27:06]Read from MH i2c: 01 07 00 [21:27:06]MH_I2C_Read... [21:27:06]Read from MH i2c: 01 07 00 BA 81 00 00 00 00 00 FF 0F 50 [21:27:06]process_action print_text done [21:27:06]requested_data is exist [21:27:06]produce_requested_data [21:27:06]requested_item fm.sn is exist - process it [21:27:06]wFMCommunicate request_size=4 [21:27:06]MH_SAM_APDU [21:27:06]CAPDU: 80 11 00 00 [21:27:06]Write to MH i2c: E2 08 00 BB 81 80 11 00 00 00 00 00 00 B6 [21:27:06]Write i2c OK [21:27:06]MH_I2C_Read... [21:27:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:06]Read from MH i2c: E2 [21:27:06]MH_I2C_Read... [21:27:06]Read from MH i2c: E2 17 00 [21:27:06]MH_I2C_Read... [21:27:06]Read from MH i2c: E2 17 00 BB 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 11 [21:27:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:27:06]wFMCommunicate OK [21:27:06]requested_item fd.num is exist - process it [21:27:06]SAM_PROTO_GetFieldsCounters [21:27:06]wFMCommunicate request_size=4 [21:27:06]MH_SAM_APDU [21:27:06]CAPDU: 80 13 00 00 [21:27:06]Write to MH i2c: E2 08 00 BC 81 80 13 00 00 00 00 00 00 B9 [21:27:06]Write i2c OK [21:27:06]MH_I2C_Read... [21:27:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:06]Read from MH i2c: E2 [21:27:06]MH_I2C_Read... [21:27:06]Read from MH i2c: E2 62 00 [21:27:06]MH_I2C_Read... [21:27:06]Read from MH i2c: E2 62 00 BC 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 5F [21:27: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:27:06]wFMCommunicate OK [21:27:06]SAM_PROTO_GetFieldsCounters done [21:27:06]requested_item shift.num is exist - process it [21:27:06]requested_item shift.opened is exist - process it [21:27:06]req_shift_opened [21:27:06]FM_GetShiftState [21:27:06]SAM_PROTO_GetShiftState [21:27:06]wFMCommunicate request_size=4 [21:27:06]MH_SAM_APDU [21:27:06]CAPDU: 80 13 01 00 [21:27:06]Write to MH i2c: E2 08 00 BD 81 80 13 01 00 00 00 00 00 BB [21:27:06]Write i2c OK [21:27:06]MH_I2C_Read... [21:27:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:06]Read from MH i2c: E2 [21:27:06]MH_I2C_Read... [21:27:06]Read from MH i2c: E2 0E 00 [21:27:06]MH_I2C_Read... [21:27:06]Read from MH i2c: E2 0E 00 BD 81 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E9 [21:27:06]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:27:06]wFMCommunicate OK [21:27:06]SAM_PROTO_GetShiftState done [21:27:06]FM_GetShiftState done [21:27:06]req_shift_opened done [21:27:06]requested_item shift.open_date is exist - process it [21:27:06]req_shift_open_date [21:27:06]req_shift_open_date done [21:27:06]produce_requested_data done [21:27:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118918,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:27:06]process_action_free print_text [21:27:06]json_value_free [21:27:06]json_value_free done [21:27:06]process_json_proto returns [21:27:06]Send response to host [21:27:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118918,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:27:06]free response buf [21:27:06]execute_script done [21:27:06]execute_script returns [21:27:06]free content buf [21:27:06]Sock 9.Close socket [21:27:06]Sock 9.Thread stoped [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]OFD Sender: No OFD packet to send [21:29:04]OFD Sender: No OFD packet to send [21:29:09]OFD Sender: No OFD packet to send [21:29:14]OFD Sender: No OFD packet to send [21:29:19]OFD Sender: No OFD packet to send [21:29:24]OFD Sender: No OFD packet to send [21:29:29]OFD Sender: No OFD packet to send [21:29:34]OFD Sender: No OFD packet to send [21:29:39]OFD Sender: No OFD packet to send [21:29:44]OFD Sender: No OFD packet to send [21:29:49]OFD Sender: No OFD packet to send [21:29:54]OFD Sender: No OFD packet to send [21:29:59]OFD Sender: No OFD packet to send [21:30:04]OFD Sender: No OFD packet to send [21:30:09]OFD Sender: No OFD packet to send [21:30:14]OFD Sender: No OFD packet to send [21:30:19]OFD Sender: No OFD packet to send [21:30:24]OFD Sender: No OFD packet to send [21:30:29]OFD Sender: No OFD packet to send [21:30:34]OFD Sender: No OFD packet to send [21:30:39]OFD Sender: No OFD packet to send [21:30:44]OFD Sender: No OFD packet to send [21:30:49]OFD Sender: No OFD packet to send [21:30:54]OFD Sender: No OFD packet to send [21:30:59]OFD Sender: No OFD packet to send [21:31:04]OFD Sender: No OFD packet to send [21:31:09]OFD Sender: No OFD packet to send [21:31:14]OFD Sender: No OFD packet to send [21:31:19]OFD Sender: No OFD packet to send [21:31:24]OFD Sender: No OFD packet to send [21:31:29]OFD Sender: No OFD packet to send [21:31:33]accept exits with 7 [21:31:33]New connection [21:31:33]New thread 3067383140 created [21:31:33]Thread 3067239780 joined [21:31:33]Waiting for new connection... [21:31:33] Sock 7.Parse request [21:31:33]Sock 7.Check first char [21:31:33]Sock 7.First char is OK [21:31:33]request: POST /json_proto HTTP/1.0 [21:31:33]Method: POST [21:31:33]URL: /json_proto [21:31:33]Method is POST - this is cgi request [21:31:33]url: /json_proto [21:31:33]query_string will be loaded in cgi processing [21:31:33]execute_cgi json_proto POST (null) [21:31:33]execute_cgi path=json_proto method=POST [21:31:33]POST find Content-Length [21:31:33]Host: 172.17.45.7:8080 [21:31:33]Content-Length: 1195 [21:31:33]Content-Type: application/json [21:31:33] [21:31:33]POST finish read [21:31:33]Found Content-Length = 1195 [21:31:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949826\u000A29.07.2024 21:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991036\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:33]execute_script... [21:31:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949826\u000A29.07.2024 21:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991036\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:33]POST & json_proto [21:31:33]process_json_proto [21:31:33]json parsed OK: [21:31:33]protocol is kg_v1.0 [21:31:33]action value=print_text [21:31:33]process_action print_text [21:31:33]cmd_print_text [21:31:33]ExternCall_PrintAddStr [21:31:33]wPrintStart [21:31:33]Write to MH i2c: 01 00 00 BE 81 3F [21:31:33]Write i2c OK [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: 01 [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: 01 07 00 [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: 01 07 00 BE 81 00 00 00 00 00 FF 0F 54 [21:31:33]RasterBufferAndPrint [21:31:33]line *****ТОВАРНЫЙ ЧЕК***** [21:31:33]line АЗС-134 [21:31:33]line Партнер нефть [21:31:33]line 02508201610067 [21:31:33]line Кассир : Казаков Ч. [21:31:33]line Счет N : (1)949826 [21:31:33]line 29.07.2024 21:29 [21:31:33]line ПРОДАЖА [21:31:33]line ТРК (МРК, ГНК): 54 [21:31:33]line Вид ГСМ : 2710194800 [21:31:33]line ДТ-К-5 [21:31:33]line 100.000 x 76.20 [21:31:33]line ИТОГ: 7620.00 [21:31:33]line Тип оплаты: Талоны: Топливные Талоны [21:31:33]line 3991036 [21:31:33]line ______________________ [21:31:33]line (подпись) [21:31:33]written 0, free lines is 4095 [21:31:33]Write to MH i2c: 01 00 00 D2 81 53 [21:31:33]Write i2c OK [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: 01 [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: 01 07 00 [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: 01 07 00 D2 81 00 00 00 00 00 10 0E 78 [21:31:33]RasterBufferAndPrint [21:31:33]line [21:31:33]line [21:31:33]line [21:31:33]line [21:31:33]line [21:31:33]written 0, free lines is 3601 [21:31:33]MH_Cut [21:31:33]Write to MH i2c: D1 01 00 D9 81 01 2C [21:31:33]Write i2c OK [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: D1 [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: D1 01 00 [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: D1 01 00 D9 81 00 2B [21:31:33]Write to MH i2c: 01 00 00 DA 81 5B [21:31:33]Write i2c OK [21:31:33]MH_I2C_Read... [21:31:34]*** Cut start [21:31:34]*** Partial cut [21:31:34]*** CUTSNS_PIN = 1 [21:31:34]*** CUTSNS_PIN = 0 [21:31:34]OFD Sender: No OFD packet to send [21:31:34]*** Brake cut motor [21:31:35]Read from MH i2c: 01 [21:31:35]MH_I2C_Read... [21:31:35]*** Stop cut motor [21:31:35]*** Cut end [21:31:35]Read from MH i2c: 01 07 00 [21:31:35]MH_I2C_Read... [21:31:35]Read from MH i2c: 01 07 00 DA 81 00 00 00 00 00 FF 0F 70 [21:31:35]process_action print_text done [21:31:35]requested_data is exist [21:31:35]produce_requested_data [21:31:35]requested_item fm.sn is exist - process it [21:31:35]wFMCommunicate request_size=4 [21:31:35]MH_SAM_APDU [21:31:35]CAPDU: 80 11 00 00 [21:31:35]Write to MH i2c: E2 08 00 DB 81 80 11 00 00 00 00 00 00 D6 [21:31:35]Write i2c OK [21:31:35]MH_I2C_Read... [21:31:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:35]Read from MH i2c: E2 [21:31:35]MH_I2C_Read... [21:31:35]Read from MH i2c: E2 17 00 [21:31:35]MH_I2C_Read... [21:31:35]Read from MH i2c: E2 17 00 DB 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 31 [21:31:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:31:35]wFMCommunicate OK [21:31:35]requested_item fd.num is exist - process it [21:31:35]SAM_PROTO_GetFieldsCounters [21:31:35]wFMCommunicate request_size=4 [21:31:35]MH_SAM_APDU [21:31:35]CAPDU: 80 13 00 00 [21:31:35]Write to MH i2c: E2 08 00 DC 81 80 13 00 00 00 00 00 00 D9 [21:31:35]Write i2c OK [21:31:35]MH_I2C_Read... [21:31:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:35]Read from MH i2c: E2 [21:31:35]MH_I2C_Read... [21:31:35]Read from MH i2c: E2 62 00 [21:31:35]MH_I2C_Read... [21:31:35]Read from MH i2c: E2 62 00 DC 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 7F [21:31: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:31:35]wFMCommunicate OK [21:31:35]SAM_PROTO_GetFieldsCounters done [21:31:35]requested_item shift.num is exist - process it [21:31:35]requested_item shift.opened is exist - process it [21:31:35]req_shift_opened [21:31:35]FM_GetShiftState [21:31:35]SAM_PROTO_GetShiftState [21:31:35]wFMCommunicate request_size=4 [21:31:35]MH_SAM_APDU [21:31:35]CAPDU: 80 13 01 00 [21:31:35]Write to MH i2c: E2 08 00 DD 81 80 13 01 00 00 00 00 00 DB [21:31:35]Write i2c OK [21:31:35]MH_I2C_Read... [21:31:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:35]Read from MH i2c: E2 [21:31:35]MH_I2C_Read... [21:31:35]Read from MH i2c: E2 0E 00 [21:31:35]MH_I2C_Read... [21:31:35]Read from MH i2c: E2 0E 00 DD 81 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 09 [21:31:35]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:31:35]wFMCommunicate OK [21:31:35]SAM_PROTO_GetShiftState done [21:31:35]FM_GetShiftState done [21:31:35]req_shift_opened done [21:31:35]requested_item shift.open_date is exist - process it [21:31:35]req_shift_open_date [21:31:35]req_shift_open_date done [21:31:35]produce_requested_data done [21:31:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118918,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:31:35]process_action_free print_text [21:31:35]json_value_free [21:31:35]json_value_free done [21:31:35]process_json_proto returns [21:31:35]Send response to host [21:31:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118918,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:31:35]free response buf [21:31:35]execute_script done [21:31:35]execute_script returns [21:31:35]free content buf [21:31:35]Sock 7.Close socket [21:31:35]Sock 7.Thread stoped [21:31:39]OFD Sender: No OFD packet to send [21:31:44]OFD Sender: No OFD packet to send [21:31:49]OFD Sender: No OFD packet to send [21:31:54]OFD Sender: No OFD packet to send [21:31:59]OFD Sender: No OFD packet to send [21:32:04]OFD Sender: No OFD packet to send [21:32:09]OFD Sender: No OFD packet to send [21:32:14]OFD Sender: No OFD packet to send [21:32:15]accept exits with 9 [21:32:15]New connection [21:32:15]New thread 3067239780 created [21:32:15]Thread 3067383140 joined [21:32:15]Waiting for new connection... [21:32:15] Sock 9.Parse request [21:32:15]Sock 9.Check first char [21:32:15]Sock 9.First char is OK [21:32:15]request: POST /json_proto HTTP/1.0 [21:32:15]Method: POST [21:32:15]URL: /json_proto [21:32:15]Method is POST - this is cgi request [21:32:15]url: /json_proto [21:32:15]query_string will be loaded in cgi processing [21:32:15]execute_cgi json_proto POST (null) [21:32:15]execute_cgi path=json_proto method=POST [21:32:15]POST find Content-Length [21:32:15]Host: 172.17.45.7:8080 [21:32:15]Content-Length: 1195 [21:32:15]Content-Type: application/json [21:32:15] [21:32:15]POST finish read [21:32:15]Found Content-Length = 1195 [21:32:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949827\u000A29.07.2024 21:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991037\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:15]execute_script... [21:32:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949827\u000A29.07.2024 21:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991037\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:15]POST & json_proto [21:32:15]process_json_proto [21:32:15]json parsed OK: [21:32:15]protocol is kg_v1.0 [21:32:15]action value=print_text [21:32:15]process_action print_text [21:32:15]cmd_print_text [21:32:15]ExternCall_PrintAddStr [21:32:15]wPrintStart [21:32:15]Write to MH i2c: 01 00 00 DE 81 5F [21:32:15]Write i2c OK [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: 01 [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: 01 07 00 [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: 01 07 00 DE 81 00 00 00 00 00 FF 0F 74 [21:32:15]RasterBufferAndPrint [21:32:15]line *****ТОВАРНЫЙ ЧЕК***** [21:32:15]line АЗС-134 [21:32:15]line Партнер нефть [21:32:15]line 02508201610067 [21:32:15]line Кассир : Казаков Ч. [21:32:15]line Счет N : (1)949827 [21:32:15]line 29.07.2024 21:30 [21:32:15]line ПРОДАЖА [21:32:15]line ТРК (МРК, ГНК): 64 [21:32:15]line Вид ГСМ : 2710194800 [21:32:15]line ДТ-К-5 [21:32:15]line 100.000 x 76.20 [21:32:15]line ИТОГ: 7620.00 [21:32:15]line Тип оплаты: Талоны: Топливные Талоны [21:32:15]line 3991037 [21:32:15]line ______________________ [21:32:15]line (подпись) [21:32:15]written 0, free lines is 4095 [21:32:15]Write to MH i2c: 01 00 00 F2 81 73 [21:32:15]Write i2c OK [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: 01 [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: 01 07 00 [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: 01 07 00 F2 81 00 00 00 00 00 10 0E 98 [21:32:15]RasterBufferAndPrint [21:32:15]line [21:32:15]line [21:32:15]line [21:32:15]line [21:32:15]line [21:32:15]written 0, free lines is 3601 [21:32:15]MH_Cut [21:32:15]Write to MH i2c: D1 01 00 F9 81 01 4C [21:32:15]Write i2c OK [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: D1 [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: D1 01 00 [21:32:15]MH_I2C_Read... [21:32:15]Read from MH i2c: D1 01 00 F9 81 00 4B [21:32:15]Write to MH i2c: 01 00 00 FA 81 7B [21:32:15]Write i2c OK [21:32:15]MH_I2C_Read... [21:32:15]*** Cut start [21:32:15]*** Partial cut [21:32:15]*** CUTSNS_PIN = 1 [21:32:15]*** CUTSNS_PIN = 0 [21:32:16]*** Brake cut motor [21:32:16]Read from MH i2c: 01 [21:32:16]MH_I2C_Read... [21:32:16]*** Stop cut motor [21:32:16]*** Cut end [21:32:16]Read from MH i2c: 01 07 00 [21:32:16]MH_I2C_Read... [21:32:16]Read from MH i2c: 01 07 00 FA 81 00 00 00 00 00 FF 0F 90 [21:32:16]process_action print_text done [21:32:16]requested_data is exist [21:32:16]produce_requested_data [21:32:16]requested_item fm.sn is exist - process it [21:32:16]wFMCommunicate request_size=4 [21:32:16]MH_SAM_APDU [21:32:16]CAPDU: 80 11 00 00 [21:32:16]Write to MH i2c: E2 08 00 FB 81 80 11 00 00 00 00 00 00 F6 [21:32:16]Write i2c OK [21:32:16]MH_I2C_Read... [21:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:16]Read from MH i2c: E2 [21:32:16]MH_I2C_Read... [21:32:16]Read from MH i2c: E2 17 00 [21:32:16]MH_I2C_Read... [21:32:16]Read from MH i2c: E2 17 00 FB 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 51 [21:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:32:16]wFMCommunicate OK [21:32:16]requested_item fd.num is exist - process it [21:32:16]SAM_PROTO_GetFieldsCounters [21:32:16]wFMCommunicate request_size=4 [21:32:16]MH_SAM_APDU [21:32:16]CAPDU: 80 13 00 00 [21:32:16]Write to MH i2c: E2 08 00 FC 81 80 13 00 00 00 00 00 00 F9 [21:32:16]Write i2c OK [21:32:16]MH_I2C_Read... [21:32:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:16]Read from MH i2c: E2 [21:32:16]MH_I2C_Read... [21:32:16]Read from MH i2c: E2 62 00 [21:32:16]MH_I2C_Read... [21:32:16]Read from MH i2c: E2 62 00 FC 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [21:32: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:32:16]wFMCommunicate OK [21:32:16]SAM_PROTO_GetFieldsCounters done [21:32:16]requested_item shift.num is exist - process it [21:32:16]requested_item shift.opened is exist - process it [21:32:16]req_shift_opened [21:32:16]FM_GetShiftState [21:32:16]SAM_PROTO_GetShiftState [21:32:16]wFMCommunicate request_size=4 [21:32:16]MH_SAM_APDU [21:32:16]CAPDU: 80 13 01 00 [21:32:16]Write to MH i2c: E2 08 00 FD 81 80 13 01 00 00 00 00 00 FB [21:32:16]Write i2c OK [21:32:16]MH_I2C_Read... [21:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:16]Read from MH i2c: E2 [21:32:16]MH_I2C_Read... [21:32:16]Read from MH i2c: E2 0E 00 [21:32:16]MH_I2C_Read... [21:32:16]Read from MH i2c: E2 0E 00 FD 81 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 29 [21:32:16]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:32:16]wFMCommunicate OK [21:32:16]SAM_PROTO_GetShiftState done [21:32:16]FM_GetShiftState done [21:32:16]req_shift_opened done [21:32:16]requested_item shift.open_date is exist - process it [21:32:16]req_shift_open_date [21:32:16]req_shift_open_date done [21:32:16]produce_requested_data done [21:32:16]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118918,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:32:16]process_action_free print_text [21:32:16]json_value_free [21:32:16]json_value_free done [21:32:16]process_json_proto returns [21:32:16]Send response to host [21:32:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118918,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:32:16]free response buf [21:32:16]execute_script done [21:32:16]execute_script returns [21:32:16]free content buf [21:32:16]Sock 9.Close socket [21:32:16]Sock 9.Thread stoped [21:32:19]OFD Sender: No OFD packet to send [21:32:24]OFD Sender: No OFD packet to send [21:32:24]accept exits with 7 [21:32:24]New connection [21:32:24]New thread 3067383140 created [21:32:24]Thread 3067239780 joined [21:32:24]Waiting for new connection... [21:32:24] Sock 7.Parse request [21:32:24]Sock 7.Check first char [21:32:24]Sock 7.First char is OK [21:32:24]request: POST /json_proto HTTP/1.0 [21:32:24]Method: POST [21:32:24]URL: /json_proto [21:32:24]Method is POST - this is cgi request [21:32:24]url: /json_proto [21:32:24]query_string will be loaded in cgi processing [21:32:24]execute_cgi json_proto POST (null) [21:32:24]execute_cgi path=json_proto method=POST [21:32:24]POST find Content-Length [21:32:24]Host: 172.17.45.7:8080 [21:32:24]Content-Length: 679 [21:32:24]Content-Type: application/json [21:32:24] [21:32:24]POST finish read [21:32:24]Found Content-Length = 679 [21:32:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:24]execute_script... [21:32: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)949829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:24]POST & json_proto [21:32:24]process_json_proto [21:32:24]json parsed OK: [21:32:24]protocol is kg_v1.0 [21:32:24]action value=close_receipt [21:32:24]process_action close_receipt [21:32:24]cmd_close_receipt [21:32:24]MH_GetDate [21:32:24]Write to MH i2c: F0 00 00 FE 81 6E [21:32:24]Write i2c OK [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: F0 [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: F0 09 00 [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: F0 09 00 FE 81 00 70 0A A8 66 90 0F 3E 66 42 [21:32:24]GetLastDocTimeStamp 1722287913 [21:32:24]current date 1722288752 [21:32:24]FM_GetShiftState [21:32:24]SAM_PROTO_GetShiftState [21:32:24]wFMCommunicate request_size=4 [21:32:24]MH_SAM_APDU [21:32:24]CAPDU: 80 13 01 00 [21:32:24]Write to MH i2c: E2 08 00 FF 81 80 13 01 00 00 00 00 00 FD [21:32:24]Write i2c OK [21:32:24]MH_I2C_Read... [21:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:24]Read from MH i2c: E2 [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: E2 0E 00 [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: E2 0E 00 FF 81 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 2B [21:32:24]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:32:24]wFMCommunicate OK [21:32:24]SAM_PROTO_GetShiftState done [21:32:24]FM_GetShiftState done [21:32:24]opened in 1722211641 [21:32:24]opened+sec_in_day 1722298041 [21:32:24]quantity*price = 100050 [21:32:24]sum+1 = 100052 [21:32:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 295 29.07.2024 21:32 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118919 ФПД: 229698237269487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T213232&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118919&fm=229698237269487&tin=02508201610067®Number=0000000000092660&sum=100000 [21:32:26]StoreToDocumentArchive [21:32:26]shift 434 fd 118919 [21:32:26]save to /storage/0434/doc_00118919 [21:32:26]save last doc name /storage/0434/doc_00118919 to /storage/kkm_last_doc_name [21:32:26]save OK [21:32:26]Clear old archive folders... [21:32:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:32:26]tlvbuf is 020427B0 [21:32:26]SAM_PROTO_ClearQueue [21:32:26]wFMCommunicate request_size=4 [21:32:26]MH_SAM_APDU [21:32:26]CAPDU: 80 09 00 00 [21:32:26]Write to MH i2c: E2 08 00 0C 82 80 09 00 00 00 00 00 00 00 [21:32:26]Write i2c OK [21:32:26]MH_I2C_Read... [21:32:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:26]Read from MH i2c: E2 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 03 00 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 03 00 0C 82 00 90 00 02 [21:32:26]RAPDU: 90 00 [21:32:26]wFMCommunicate OK [21:32:26]SAM_PROTO_ClearQueue done [21:32:26]KKMCreateOFDPacket [21:32:26]OFDProtocolAddRootSTLVToBuf [21:32:26]FM_MakeSignedData [21:32:26]FM_MakeSignedData [21:32:26]SAM_PROTO_SignData [21:32:26]wFMCommunicate request_size=4 [21:32:26]MH_SAM_APDU [21:32:26]CAPDU: 80 0D 01 02 [21:32:26]Write to MH i2c: E2 08 00 0D 82 80 0D 01 02 00 00 00 00 08 [21:32:26]Write i2c OK [21:32:26]MH_I2C_Read... [21:32:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:26]Read from MH i2c: E2 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 03 00 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 03 00 0D 82 00 90 00 03 [21:32:26]RAPDU: 90 00 [21:32:26]wFMCommunicate OK [21:32:26]wFMCommunicate request_size=255 [21:32:26]MH_SAM_APDU [21:32:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 70 0A A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 87 D0 01 00 35 04 06 00 D0 E8 C9 D6 [21:32:26]Write to MH i2c: E2 02 01 0E 82 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 70 0A A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 87 D0 01 00 35 04 06 00 D0 E8 C9 D6 00 00 AA [21:32:26]Write i2c OK [21:32:26]MH_I2C_Read... [21:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:26]Read from MH i2c: E2 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 03 00 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 03 00 0E 82 00 90 00 04 [21:32:26]RAPDU: 90 00 [21:32:26]wFMCommunicate OK [21:32:26]wFMCommunicate request_size=7 [21:32:26]MH_SAM_APDU [21:32:26]CAPDU: 80 0D 02 02 02 85 EF [21:32:26]Write to MH i2c: E2 0A 00 0F 82 80 0D 02 02 02 00 85 EF 00 00 83 [21:32:26]Write i2c OK [21:32:26]MH_I2C_Read... [21:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:26]Read from MH i2c: E2 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 03 00 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 03 00 0F 82 00 90 00 05 [21:32:26]RAPDU: 90 00 [21:32:26]wFMCommunicate OK [21:32:26]wFMCommunicate request_size=4 [21:32:26]MH_SAM_APDU [21:32:26]CAPDU: 80 0D 03 02 [21:32:26]Write to MH i2c: E2 08 00 10 82 80 0D 03 02 00 00 00 00 0D [21:32:26]Write i2c OK [21:32:26]MH_I2C_Read... [21:32:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:26]Read from MH i2c: E2 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 0B 00 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 0B 00 10 82 00 42 62 3F F1 63 26 D3 B4 90 00 F2 [21:32:26]RAPDU: 42 62 3F F1 63 26 D3 B4 90 00 [21:32:26]wFMCommunicate OK [21:32:26]SAM_PROTO_SignData done [21:32:26]FM_MakeSignedData done [21:32:26]CreateOFDProtocolMessage [21:32:26]wFMCommunicate request_size=4 [21:32:26]MH_SAM_APDU [21:32:26]CAPDU: 80 11 00 00 [21:32:26]Write to MH i2c: E2 08 00 11 82 80 11 00 00 00 00 00 00 0D [21:32:26]Write i2c OK [21:32:26]MH_I2C_Read... [21:32:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:26]Read from MH i2c: E2 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 17 00 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 17 00 11 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 68 [21:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:32:26]wFMCommunicate OK [21:32:26]CreateOFDProtocolMessage done [21:32:26]OFDSenderStorePacket 118919 [21:32:26]StoreOFDPacket docnum=118919 [21:32:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 11 E0 04 01 62 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 70 0A A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 87 D0 01 00 35 04 06 00 D0 E8 C9 D6 85 EF 42 62 3F F1 63 26 D3 B4 [21:32:26]CheckFolder [21:32:26]dirname=/storage/ofd_packets [21:32:26]CheckFolder done [21:32:26]ProducePacketName [21:32:26]name=ofd_packets/00118919 [21:32:26]NVStorageSaveData ofd_packets/00118919 [21:32:26]File name is /storage/ofd_packets/00118919 [21:32:26]Write 298 bytes [21:32:26]NVStorageSaveData done [21:32:26]OFDSenderStorePacket done [21:32:26]KKMCreateOFDPacket done [21:32:26]NVStorageSaveData kkm_last_timestamp [21:32:26]File name is /storage/kkm_last_timestamp [21:32:26]Write 4 bytes [21:32:26]NVStorageSaveData done [21:32:26]ExternCall_PrintAddStr [21:32:26]wPrintStart [21:32:26]Write to MH i2c: 01 00 00 12 82 94 [21:32:26]Write i2c OK [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: 01 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: 01 07 00 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: 01 07 00 12 82 00 00 00 00 00 FF 0F A9 [21:32:26]RasterBufferAndPrint [21:32:26]line Счет N : (1)949829 [21:32:26]line ИНН: 02508201610067 [21:32:26]line Контрольно-Кассовый Чек [21:32:26]line ПРОДАЖА [21:32:26]line ТРК (МРК, ГНК) : 64 [21:32:26]line Товар: 2710194800 [21:32:26]line ДТ-К-5 [21:32:26]line 13.130 * 76.20 [21:32:26]line = 1000.51 [21:32:26]line НДС 12% НСП 1% [21:32:26]line > о реализуемом товаре [21:32:26]line ОКРУГЛЕНИЕ: -0.51 [21:32:26]line ИТОГО: 1000.00 [21:32:26]line Внесено: 1000.00 [21:32:26]line СДАЧА: 0.00 [21:32:26]line НСП 1% : 8.85 [21:32:26]line НДС 12% : 106.25 [21:32:26]line Наличными: 1000.00 [21:32:26]line Безнал.: 0.00 [21:32:26]line Место: АЗС № 134 "Партнер Нефть" [21:32:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:32:26]line СНО: Общий режим [21:32:26]line Чек 295 29.07.2024 21:32 [21:32:26]line Смена: 434 ФФД: 1.0 [21:32:26]line ЗНМ: 0300000044 [21:32:26]line РНМ: 0000000000092660 [21:32:26]line Версия ККМ: 001 [21:32:26]line ФМ: 0000000000874939 [21:32:26]line ФД: 118919 [21:32:26]line ФПД: 229698237269487 [21:32:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T213232&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118919&fm=229698237269487&tin=02508201610067®Number=0000000000092660&sum=100000 [21:32:26]OFD Sender: Processing packet 118919 [packets to send 86, broken 85] [21:32:26]ProducePacketName [21:32:26]name=ofd_packets/00118919 [21:32:26]OFD Sender: To server: pG, [21:32:26]CommunicateWithHost lk.salyk.kg:30040 [21:32:26]ConnectInit lk.salyk.kg [21:32:26]written 0, free lines is 4095 [21:32:27]Connected sock=10 [21:32:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 11 E0 04 01 62 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 70 0A A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 87 D0 01 00 35 04 06 00 D0 E8 C9 D6 85 EF 42 62 3F F1 63 26 D3 B4 [21:32:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B3 2B 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 34 39 33 39 10 04 04 00 87 D0 01 00 F4 03 04 00 FD B7 A7 66 B6 04 01 00 00 7E 98 A9 D9 B4 4E 67 26 [21:32:27]CommunicateWithHost err = 0 [21:32:27]CheckOFDResponse [21:32:27]1017 (14) - 77093643461234 [21:32:27]1041 (16) - 0000000000874939 [21:32:27]1040 (4) - 118919 [21:32:27]1012 (4) - 29.07.2024 15:40 [21:32:27]1206 (1) - 0 [21:32:27]OFD Sender: Remove packet 118919 [21:32:27]ProducePacketName [21:32:27]name=ofd_packets/00118919 [21:32:27]NVStorageDeleteData [21:32:27]Write to MH i2c: 01 00 00 3C 82 BE [21:32:27]Write i2c OK [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: 01 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: 01 07 00 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: 01 07 00 3C 82 00 00 00 00 00 EE 0C BF [21:32:27]RasterBufferAndPrint [21:32:27]line [21:32:27]line [21:32:27]line [21:32:27]line [21:32:27]line [21:32:27]written 0, free lines is 3316 [21:32:27]MH_Cut [21:32:27]Write to MH i2c: D1 01 00 43 82 01 97 [21:32:27]Write i2c OK [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: D1 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: D1 01 00 [21:32:27]MH_I2C_Read... [21:32:27]Read from MH i2c: D1 01 00 43 82 00 96 [21:32:27]Write to MH i2c: 01 00 00 44 82 C6 [21:32:27]Write i2c OK [21:32:27]MH_I2C_Read... [21:32:27]OFD Sender: No OFD packet to send [21:32:28]*** Cut start [21:32:28]*** Partial cut [21:32:28]*** CUTSNS_PIN = 1 [21:32:28]*** CUTSNS_PIN = 0 [21:32:28]*** Brake cut motor [21:32:28]Read from MH i2c: 01 [21:32:28]MH_I2C_Read... [21:32:28]*** Stop cut motor [21:32:28]*** Cut end [21:32:28]Read from MH i2c: 01 07 00 [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: 01 07 00 44 82 00 00 00 00 00 FF 0F DB [21:32:28]process_action close_receipt done [21:32:28]requested_data is exist [21:32:28]produce_requested_data [21:32:28]requested_item fm.sn is exist - process it [21:32:28]wFMCommunicate request_size=4 [21:32:28]MH_SAM_APDU [21:32:28]CAPDU: 80 11 00 00 [21:32:28]Write to MH i2c: E2 08 00 45 82 80 11 00 00 00 00 00 00 41 [21:32:28]Write i2c OK [21:32:28]MH_I2C_Read... [21:32:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:28]Read from MH i2c: E2 [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: E2 17 00 [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: E2 17 00 45 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9C [21:32:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:32:28]wFMCommunicate OK [21:32:28]requested_item fd.num is exist - process it [21:32:28]SAM_PROTO_GetFieldsCounters [21:32:28]wFMCommunicate request_size=4 [21:32:28]MH_SAM_APDU [21:32:28]CAPDU: 80 13 00 00 [21:32:28]Write to MH i2c: E2 08 00 46 82 80 13 00 00 00 00 00 00 44 [21:32:28]Write i2c OK [21:32:28]MH_I2C_Read... [21:32:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:28]Read from MH i2c: E2 [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: E2 62 00 [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: E2 62 00 46 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 87 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 EE [21:32: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 87 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:32:28]wFMCommunicate OK [21:32:28]SAM_PROTO_GetFieldsCounters done [21:32:28]requested_item shift.num is exist - process it [21:32:28]requested_item shift.opened is exist - process it [21:32:28]req_shift_opened [21:32:28]FM_GetShiftState [21:32:28]SAM_PROTO_GetShiftState [21:32:28]wFMCommunicate request_size=4 [21:32:28]MH_SAM_APDU [21:32:28]CAPDU: 80 13 01 00 [21:32:28]Write to MH i2c: E2 08 00 47 82 80 13 01 00 00 00 00 00 46 [21:32:28]Write i2c OK [21:32:28]MH_I2C_Read... [21:32:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:29]Read from MH i2c: E2 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: E2 0E 00 [21:32:29]MH_I2C_Read... [21:32:29]Read from MH i2c: E2 0E 00 47 82 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 74 [21:32:29]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:32:29]wFMCommunicate OK [21:32:29]SAM_PROTO_GetShiftState done [21:32:29]FM_GetShiftState done [21:32:29]req_shift_opened done [21:32:29]requested_item shift.open_date is exist - process it [21:32:29]req_shift_open_date [21:32:29]req_shift_open_date done [21:32:29]produce_requested_data done [21:32:29]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118919,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:32:29]process_action_free close_receipt [21:32:29]json_value_free [21:32:29]json_value_free done [21:32:29]process_json_proto returns [21:32:29]Send response to host [21:32:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118919,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:32:29]free response buf [21:32:29]execute_script done [21:32:29]execute_script returns [21:32:29]free content buf [21:32:29]Sock 7.Close socket [21:32:29]Sock 7.Thread stoped [21:32:32]OFD Sender: No OFD packet to send [21:32:37]OFD Sender: No OFD packet to send [21:32:42]OFD Sender: No OFD packet to send [21:32:47]OFD Sender: No OFD packet to send [21:32:52]OFD Sender: No OFD packet to send [21:32:57]OFD Sender: No OFD packet to send [21:33:02]OFD Sender: No OFD packet to send [21:33:07]OFD Sender: No OFD packet to send [21:33:12]OFD Sender: No OFD packet to send [21:33:17]OFD Sender: No OFD packet to send [21:33:22]OFD Sender: No OFD packet to send [21:33:27]OFD Sender: No OFD packet to send [21:33:32]OFD Sender: No OFD packet to send [21:33:37]OFD Sender: No OFD packet to send [21:33:42]OFD Sender: No OFD packet to send [21:33:47]OFD Sender: No OFD packet to send [21:33:52]OFD Sender: No OFD packet to send [21:33:57]OFD Sender: No OFD packet to send [21:34:02]OFD Sender: No OFD packet to send [21:34:07]OFD Sender: No OFD packet to send [21:34:12]OFD Sender: No OFD packet to send [21:34:17]OFD Sender: No OFD packet to send [21:34:22]OFD Sender: No OFD packet to send [21:34:27]OFD Sender: No OFD packet to send [21:34:32]OFD Sender: No OFD packet to send [21:34:37]OFD Sender: No OFD packet to send [21:34:42]OFD Sender: No OFD packet to send [21:34:47]OFD Sender: No OFD packet to send [21:34:52]OFD Sender: No OFD packet to send [21:34:57]OFD Sender: No OFD packet to send [21:35:02]OFD Sender: No OFD packet to send [21:35:07]OFD Sender: No OFD packet to send [21:35:12]OFD Sender: No OFD packet to send [21:35:17]accept exits with 9 [21:35:17]New connection [21:35:17]New thread 3067239780 created [21:35:17]Thread 3067383140 joined [21:35:17]Waiting for new connection... [21:35:17] Sock 9.Parse request [21:35:17]Sock 9.Check first char [21:35:17]Sock 9.First char is OK [21:35:17]request: POST /json_proto HTTP/1.0 [21:35:17]Method: POST [21:35:17]URL: /json_proto [21:35:17]Method is POST - this is cgi request [21:35:17]url: /json_proto [21:35:17]query_string will be loaded in cgi processing [21:35:17]execute_cgi json_proto POST (null) [21:35:17]execute_cgi path=json_proto method=POST [21:35:17]POST find Content-Length [21:35:17]Host: 172.17.45.7:8080 [21:35:17]Content-Length: 1203 [21:35:17]Content-Type: application/json [21:35:17] [21:35:17]POST finish read [21:35:17]Found Content-Length = 1203 [21:35:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949828\u000A29.07.2024 21:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982611/3982610\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:17]execute_script... [21:35:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949828\u000A29.07.2024 21:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982611/3982610\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:17]POST & json_proto [21:35:17]process_json_proto [21:35:17]json parsed OK: [21:35:17]protocol is kg_v1.0 [21:35:17]action value=print_text [21:35:17]process_action print_text [21:35:17]cmd_print_text [21:35:17]ExternCall_PrintAddStr [21:35:17]wPrintStart [21:35:17]Write to MH i2c: 01 00 00 48 82 CA [21:35:17]Write i2c OK [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: 01 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: 01 07 00 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: 01 07 00 48 82 00 00 00 00 00 FF 0F DF [21:35:17]RasterBufferAndPrint [21:35:17]line *****ТОВАРНЫЙ ЧЕК***** [21:35:17]line АЗС-134 [21:35:17]line Партнер нефть [21:35:17]line 02508201610067 [21:35:17]line Кассир : Казаков Ч. [21:35:17]line Счет N : (1)949828 [21:35:17]line 29.07.2024 21:33 [21:35:17]line ПРОДАЖА [21:35:17]line ТРК (МРК, ГНК): 54 [21:35:17]line Вид ГСМ : 2710194800 [21:35:17]line ДТ-К-5 [21:35:17]line 100.000 x 76.20 [21:35:17]line ИТОГ: 7620.00 [21:35:17]line Тип оплаты: Талоны: Топливные Талоны [21:35:17]line 3982611/3982610 [21:35:17]line ______________________ [21:35:17]line (подпись) [21:35:17]written 0, free lines is 4095 [21:35:17]Write to MH i2c: 01 00 00 5C 82 DE [21:35:17]Write i2c OK [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: 01 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: 01 07 00 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: 01 07 00 5C 82 00 00 00 00 00 15 0E 08 [21:35:17]RasterBufferAndPrint [21:35:17]line [21:35:17]line [21:35:17]line [21:35:17]line [21:35:17]line [21:35:17]written 0, free lines is 3606 [21:35:17]MH_Cut [21:35:17]Write to MH i2c: D1 01 00 63 82 01 B7 [21:35:17]Write i2c OK [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: D1 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: D1 01 00 [21:35:17]MH_I2C_Read... [21:35:17]Read from MH i2c: D1 01 00 63 82 00 B6 [21:35:17]Write to MH i2c: 01 00 00 64 82 E6 [21:35:17]Write i2c OK [21:35:17]MH_I2C_Read... [21:35:17]OFD Sender: No OFD packet to send [21:35:18]*** Cut start [21:35:18]*** Partial cut [21:35:18]*** CUTSNS_PIN = 1 [21:35:18]*** CUTSNS_PIN = 0 [21:35:18]*** Brake cut motor [21:35:18]Read from MH i2c: 01 [21:35:18]MH_I2C_Read... [21:35:18]*** Stop cut motor [21:35:18]*** Cut end [21:35:18]Read from MH i2c: 01 07 00 [21:35:18]MH_I2C_Read... [21:35:18]Read from MH i2c: 01 07 00 64 82 00 00 00 00 00 FF 0F FB [21:35:18]process_action print_text done [21:35:18]requested_data is exist [21:35:18]produce_requested_data [21:35:18]requested_item fm.sn is exist - process it [21:35:18]wFMCommunicate request_size=4 [21:35:18]MH_SAM_APDU [21:35:18]CAPDU: 80 11 00 00 [21:35:18]Write to MH i2c: E2 08 00 65 82 80 11 00 00 00 00 00 00 61 [21:35:18]Write i2c OK [21:35:18]MH_I2C_Read... [21:35:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:18]Read from MH i2c: E2 [21:35:18]MH_I2C_Read... [21:35:18]Read from MH i2c: E2 17 00 [21:35:18]MH_I2C_Read... [21:35:18]Read from MH i2c: E2 17 00 65 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BC [21:35:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:35:18]wFMCommunicate OK [21:35:18]requested_item fd.num is exist - process it [21:35:18]SAM_PROTO_GetFieldsCounters [21:35:18]wFMCommunicate request_size=4 [21:35:18]MH_SAM_APDU [21:35:18]CAPDU: 80 13 00 00 [21:35:18]Write to MH i2c: E2 08 00 66 82 80 13 00 00 00 00 00 00 64 [21:35:18]Write i2c OK [21:35:18]MH_I2C_Read... [21:35:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:18]Read from MH i2c: E2 [21:35:18]MH_I2C_Read... [21:35:18]Read from MH i2c: E2 62 00 [21:35:18]MH_I2C_Read... [21:35:18]Read from MH i2c: E2 62 00 66 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 87 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 0E [21: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 87 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:35:18]wFMCommunicate OK [21:35:18]SAM_PROTO_GetFieldsCounters done [21:35:18]requested_item shift.num is exist - process it [21:35:18]requested_item shift.opened is exist - process it [21:35:18]req_shift_opened [21:35:18]FM_GetShiftState [21:35:18]SAM_PROTO_GetShiftState [21:35:18]wFMCommunicate request_size=4 [21:35:18]MH_SAM_APDU [21:35:18]CAPDU: 80 13 01 00 [21:35:18]Write to MH i2c: E2 08 00 67 82 80 13 01 00 00 00 00 00 66 [21:35:18]Write i2c OK [21:35:18]MH_I2C_Read... [21:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:18]Read from MH i2c: E2 [21:35:18]MH_I2C_Read... [21:35:18]Read from MH i2c: E2 0E 00 [21:35:18]MH_I2C_Read... [21:35:18]Read from MH i2c: E2 0E 00 67 82 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 94 [21:35:18]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:35:18]wFMCommunicate OK [21:35:18]SAM_PROTO_GetShiftState done [21:35:18]FM_GetShiftState done [21:35:18]req_shift_opened done [21:35:18]requested_item shift.open_date is exist - process it [21:35:18]req_shift_open_date [21:35:18]req_shift_open_date done [21:35:18]produce_requested_data done [21:35:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118919,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:35:18]process_action_free print_text [21:35:18]json_value_free [21:35:18]json_value_free done [21:35:18]process_json_proto returns [21:35:18]Send response to host [21:35:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118919,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:35:18]free response buf [21:35:18]execute_script done [21:35:18]execute_script returns [21:35:18]free content buf [21:35:18]Sock 9.Close socket [21:35:18]Sock 9.Thread stoped [21:35:22]OFD Sender: No OFD packet to send [21:35:27]OFD Sender: No OFD packet to send [21:35:32]OFD Sender: No OFD packet to send [21:35:38]OFD Sender: No OFD packet to send [21:35:43]OFD Sender: No OFD packet to send [21:35:48]OFD Sender: No OFD packet to send [21:35:53]OFD Sender: No OFD packet to send [21:35:58]OFD Sender: No OFD packet to send [21:36:03]OFD Sender: No OFD packet to send [21:36:08]OFD Sender: No OFD packet to send [21:36:13]OFD Sender: No OFD packet to send [21:36:18]OFD Sender: No OFD packet to send [21:36:23]OFD Sender: No OFD packet to send [21:36:28]OFD Sender: No OFD packet to send [21:36:33]OFD Sender: No OFD packet to send [21:36:38]OFD Sender: No OFD packet to send [21:36:43]OFD Sender: No OFD packet to send [21:36:48]OFD Sender: No OFD packet to send [21:36:53]OFD Sender: No OFD packet to send [21:36:58]OFD Sender: No OFD packet to send [21:37:03]OFD Sender: No OFD packet to send [21:37:08]OFD Sender: No OFD packet to send [21:37:13]OFD Sender: No OFD packet to send [21:37:18]OFD Sender: No OFD packet to send [21:37:23]OFD Sender: No OFD packet to send [21:37:28]OFD Sender: No OFD packet to send [21:37:33]OFD Sender: No OFD packet to send [21:37:34]accept exits with 7 [21:37:34]New connection [21:37:34]New thread 3067383140 created [21:37:34]Thread 3067239780 joined [21:37:34]Waiting for new connection... [21:37:34] Sock 7.Parse request [21:37:34]Sock 7.Check first char [21:37:34]Sock 7.First char is OK [21:37:34]request: POST /json_proto HTTP/1.0 [21:37:34]Method: POST [21:37:34]URL: /json_proto [21:37:34]Method is POST - this is cgi request [21:37:34]url: /json_proto [21:37:34]query_string will be loaded in cgi processing [21:37:34]execute_cgi json_proto POST (null) [21:37:34]execute_cgi path=json_proto method=POST [21:37:34]POST find Content-Length [21:37:34]Host: 172.17.45.7:8080 [21:37:34]Content-Length: 677 [21:37:34]Content-Type: application/json [21:37:34] [21:37:34]POST finish read [21:37:34]Found Content-Length = 677 [21:37:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:34]execute_script... [21:37:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:34]POST & json_proto [21:37:34]process_json_proto [21:37:34]json parsed OK: [21:37:34]protocol is kg_v1.0 [21:37:34]action value=close_receipt [21:37:34]process_action close_receipt [21:37:34]cmd_close_receipt [21:37:34]MH_GetDate [21:37:34]Write to MH i2c: F0 00 00 68 82 D9 [21:37:34]Write i2c OK [21:37:34]MH_I2C_Read... [21:37:34]Read from MH i2c: F0 [21:37:34]MH_I2C_Read... [21:37:34]Read from MH i2c: F0 09 00 [21:37:34]MH_I2C_Read... [21:37:34]Read from MH i2c: F0 09 00 68 82 00 A5 0B A8 66 90 0F 3E 66 E3 [21:37:34]GetLastDocTimeStamp 1722288752 [21:37:34]current date 1722289061 [21:37:34]FM_GetShiftState [21:37:34]SAM_PROTO_GetShiftState [21:37:34]wFMCommunicate request_size=4 [21:37:34]MH_SAM_APDU [21:37:34]CAPDU: 80 13 01 00 [21:37:34]Write to MH i2c: E2 08 00 69 82 80 13 01 00 00 00 00 00 68 [21:37:34]Write i2c OK [21:37:34]MH_I2C_Read... [21:37:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:34]Read from MH i2c: E2 [21:37:34]MH_I2C_Read... [21:37:34]Read from MH i2c: E2 0E 00 [21:37:34]MH_I2C_Read... [21:37:34]Read from MH i2c: E2 0E 00 69 82 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 96 [21:37:34]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:37:34]wFMCommunicate OK [21:37:34]SAM_PROTO_GetShiftState done [21:37:34]FM_GetShiftState done [21:37:34]opened in 1722211641 [21:37:34]opened+sec_in_day 1722298041 [21:37:34]quantity*price = 50036 [21:37:34]sum+1 = 50037 [21:37:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 296 29.07.2024 21:37 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118920 ФПД: 212767443362346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T213741&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118920&fm=212767443362346&tin=02508201610067®Number=0000000000092660&sum=50000 [21:37:35]StoreToDocumentArchive [21:37:35]shift 434 fd 118920 [21:37:35]save to /storage/0434/doc_00118920 [21:37:35]save last doc name /storage/0434/doc_00118920 to /storage/kkm_last_doc_name [21:37:35]save OK [21:37:35]Clear old archive folders... [21:37:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:37:35]tlvbuf is 020D8980 [21:37:35]SAM_PROTO_ClearQueue [21:37:35]wFMCommunicate request_size=4 [21:37:35]MH_SAM_APDU [21:37:35]CAPDU: 80 09 00 00 [21:37:35]Write to MH i2c: E2 08 00 76 82 80 09 00 00 00 00 00 00 6A [21:37:35]Write i2c OK [21:37:35]MH_I2C_Read... [21:37:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:37:35]Read from MH i2c: E2 [21:37:35]MH_I2C_Read... [21:37:35]Read from MH i2c: E2 03 00 [21:37:35]MH_I2C_Read... [21:37:35]Read from MH i2c: E2 03 00 76 82 00 90 00 6C [21:37:35]RAPDU: 90 00 [21:37:35]wFMCommunicate OK [21:37:35]SAM_PROTO_ClearQueue done [21:37:35]KKMCreateOFDPacket [21:37:35]OFDProtocolAddRootSTLVToBuf [21:37:35]FM_MakeSignedData [21:37:35]FM_MakeSignedData [21:37:35]SAM_PROTO_SignData [21:37:35]wFMCommunicate request_size=4 [21:37:35]MH_SAM_APDU [21:37:35]CAPDU: 80 0D 01 02 [21:37:35]Write to MH i2c: E2 08 00 77 82 80 0D 01 02 00 00 00 00 72 [21:37:35]Write i2c OK [21:37:35]MH_I2C_Read... [21:37:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:37:35]Read from MH i2c: E2 [21:37:35]MH_I2C_Read... [21:37:35]Read from MH i2c: E2 03 00 [21:37:35]MH_I2C_Read... [21:37:35]Read from MH i2c: E2 03 00 77 82 00 90 00 6D [21:37:35]RAPDU: 90 00 [21:37:35]wFMCommunicate OK [21:37:35]wFMCommunicate request_size=255 [21:37:35]MH_SAM_APDU [21:37:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 A5 0B A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 88 D0 01 00 35 04 06 00 C1 [21:37:35]Write to MH i2c: E2 02 01 78 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 A5 0B A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 88 D0 01 00 35 04 06 00 C1 00 00 AA [21:37:35]Write i2c OK [21:37:35]MH_I2C_Read... [21:37:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:35]Read from MH i2c: E2 [21:37:35]MH_I2C_Read... [21:37:35]Read from MH i2c: E2 03 00 [21:37:35]MH_I2C_Read... [21:37:35]Read from MH i2c: E2 03 00 78 82 00 90 00 6E [21:37:35]RAPDU: 90 00 [21:37:35]wFMCommunicate OK [21:37:35]wFMCommunicate request_size=10 [21:37:35]MH_SAM_APDU [21:37:35]CAPDU: 80 0D 02 02 05 82 C7 E1 A2 2A [21:37:35]Write to MH i2c: E2 0D 00 79 82 80 0D 02 02 05 00 82 C7 E1 A2 2A 00 00 75 [21:37:35]Write i2c OK [21:37:35]MH_I2C_Read... [21:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:36]Read from MH i2c: E2 [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: E2 03 00 [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: E2 03 00 79 82 00 90 00 6F [21:37:36]RAPDU: 90 00 [21:37:36]wFMCommunicate OK [21:37:36]wFMCommunicate request_size=4 [21:37:36]MH_SAM_APDU [21:37:36]CAPDU: 80 0D 03 02 [21:37:36]Write to MH i2c: E2 08 00 7A 82 80 0D 03 02 00 00 00 00 77 [21:37:36]Write i2c OK [21:37:36]MH_I2C_Read... [21:37:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:37:36]Read from MH i2c: E2 [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: E2 0B 00 [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: E2 0B 00 7A 82 00 6E 0B 05 97 48 92 58 4B 90 00 0A [21:37:36]RAPDU: 6E 0B 05 97 48 92 58 4B 90 00 [21:37:36]wFMCommunicate OK [21:37:36]SAM_PROTO_SignData done [21:37:36]FM_MakeSignedData done [21:37:36]CreateOFDProtocolMessage [21:37:36]wFMCommunicate request_size=4 [21:37:36]MH_SAM_APDU [21:37:36]CAPDU: 80 11 00 00 [21:37:36]Write to MH i2c: E2 08 00 7B 82 80 11 00 00 00 00 00 00 77 [21:37:36]Write i2c OK [21:37:36]MH_I2C_Read... [21:37:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:36]Read from MH i2c: E2 [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: E2 17 00 [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: E2 17 00 7B 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D2 [21:37:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:37:36]wFMCommunicate OK [21:37:36]CreateOFDProtocolMessage done [21:37:36]OFDSenderStorePacket 118920 [21:37:36]StoreOFDPacket docnum=118920 [21:37:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 13 E8 07 01 15 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 A5 0B A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 88 D0 01 00 35 04 06 00 C1 82 C7 E1 A2 2A 6E 0B 05 97 48 92 58 4B [21:37:36]CheckFolder [21:37:36]dirname=/storage/ofd_packets [21:37:36]CheckFolder done [21:37:36]ProducePacketName [21:37:36]name=ofd_packets/00118920 [21:37:36]NVStorageSaveData ofd_packets/00118920 [21:37:36]File name is /storage/ofd_packets/00118920 [21:37:36]Write 301 bytes [21:37:36]NVStorageSaveData done [21:37:36]OFDSenderStorePacket done [21:37:36]KKMCreateOFDPacket done [21:37:36]NVStorageSaveData kkm_last_timestamp [21:37:36]File name is /storage/kkm_last_timestamp [21:37:36]Write 4 bytes [21:37:36]NVStorageSaveData done [21:37:36]ExternCall_PrintAddStr [21:37:36]wPrintStart [21:37:36]Write to MH i2c: 01 00 00 7C 82 FE [21:37:36]Write i2c OK [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: 01 [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: 01 07 00 [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: 01 07 00 7C 82 00 00 00 00 00 FF 0F 13 [21:37:36]RasterBufferAndPrint [21:37:36]line Счет N : (1)949830 [21:37:36]line ИНН: 02508201610067 [21:37:36]line Контрольно-Кассовый Чек [21:37:36]line ПРОДАЖА [21:37:36]line ТРК (МРК, ГНК) : 41 [21:37:36]line Товар: 2710124130 [21:37:36]line Аи-92-К-4 [21:37:36]line 7.380 * 67.80 [21:37:36]line = 500.36 [21:37:36]line НДС 12% НСП 1% [21:37:36]line > о реализуемом товаре [21:37:36]line ОКРУГЛЕНИЕ: -0.36 [21:37:36]line ИТОГО: 500.00 [21:37:36]line Внесено: 500.00 [21:37:36]line СДАЧА: 0.00 [21:37:36]line НСП 1% : 4.43 [21:37:36]line НДС 12% : 53.14 [21:37:36]line Наличными: 500.00 [21:37:36]line Безнал.: 0.00 [21:37:36]line Место: АЗС № 134 "Партнер Нефть" [21:37:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:37:36]line СНО: Общий режим [21:37:36]line Чек 296 29.07.2024 21:37 [21:37:36]line Смена: 434 ФФД: 1.0 [21:37:36]line ЗНМ: 0300000044 [21:37:36]line РНМ: 0000000000092660 [21:37:36]line Версия ККМ: 001 [21:37:36]line ФМ: 0000000000874939 [21:37:36]line ФД: 118920 [21:37:36]line ФПД: 212767443362346 [21:37:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T213741&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118920&fm=212767443362346&tin=02508201610067®Number=0000000000092660&sum=50000 [21:37:36]OFD Sender: Processing packet 118920 [packets to send 86, broken 85] [21:37:36]ProducePacketName [21:37:36]name=ofd_packets/00118920 [21:37:36]OFD Sender: To server: pG, [21:37:36]CommunicateWithHost lk.salyk.kg:30040 [21:37:36]ConnectInit lk.salyk.kg [21:37:36]written 0, free lines is 4095 [21:37:36]Connected sock=10 [21:37:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 13 E8 07 01 15 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 A5 0B A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 88 D0 01 00 35 04 06 00 C1 82 C7 E1 A2 2A 6E 0B 05 97 48 92 58 4B [21:37:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 87 31 47 00 EE 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 34 39 33 39 10 04 04 00 88 D0 01 00 F4 03 04 00 32 B9 A7 66 B6 04 01 00 00 83 76 85 48 0C AF 60 34 [21:37:36]CommunicateWithHost err = 0 [21:37:36]CheckOFDResponse [21:37:36]1017 (14) - 77093643461234 [21:37:36]1041 (16) - 0000000000874939 [21:37:36]1040 (4) - 118920 [21:37:36]1012 (4) - 29.07.2024 15:45 [21:37:36]1206 (1) - 0 [21:37:36]OFD Sender: Remove packet 118920 [21:37:36]ProducePacketName [21:37:36]name=ofd_packets/00118920 [21:37:36]NVStorageDeleteData [21:37:36]Write to MH i2c: 01 00 00 A6 82 28 [21:37:36]Write i2c OK [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: 01 [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: 01 07 00 [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: 01 07 00 A6 82 00 00 00 00 00 E1 0C 1C [21:37:36]RasterBufferAndPrint [21:37:36]line [21:37:36]line [21:37:36]line [21:37:36]line [21:37:36]line [21:37:36]written 0, free lines is 3303 [21:37:36]MH_Cut [21:37:36]Write to MH i2c: D1 01 00 AD 82 01 01 [21:37:36]Write i2c OK [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: D1 [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: D1 01 00 [21:37:36]MH_I2C_Read... [21:37:36]Read from MH i2c: D1 01 00 AD 82 00 00 [21:37:36]Write to MH i2c: 01 00 00 AE 82 30 [21:37:36]Write i2c OK [21:37:36]MH_I2C_Read... [21:37:37]OFD Sender: No OFD packet to send [21:37:37]*** Cut start [21:37:37]*** Partial cut [21:37:37]*** CUTSNS_PIN = 1 [21:37:37]*** CUTSNS_PIN = 0 [21:37:37]*** Brake cut motor [21:37:38]Read from MH i2c: 01 [21:37:38]MH_I2C_Read... [21:37:38]*** Stop cut motor [21:37:38]*** Cut end [21:37:38]Read from MH i2c: 01 07 00 [21:37:38]MH_I2C_Read... [21:37:38]Read from MH i2c: 01 07 00 AE 82 00 00 00 00 00 FF 0F 45 [21:37:38]process_action close_receipt done [21:37:38]requested_data is exist [21:37:38]produce_requested_data [21:37:38]requested_item fm.sn is exist - process it [21:37:38]wFMCommunicate request_size=4 [21:37:38]MH_SAM_APDU [21:37:38]CAPDU: 80 11 00 00 [21:37:38]Write to MH i2c: E2 08 00 AF 82 80 11 00 00 00 00 00 00 AB [21:37:38]Write i2c OK [21:37:38]MH_I2C_Read... [21:37:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:38]Read from MH i2c: E2 [21:37:38]MH_I2C_Read... [21:37:38]Read from MH i2c: E2 17 00 [21:37:38]MH_I2C_Read... [21:37:38]Read from MH i2c: E2 17 00 AF 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 06 [21:37:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:37:38]wFMCommunicate OK [21:37:38]requested_item fd.num is exist - process it [21:37:38]SAM_PROTO_GetFieldsCounters [21:37:38]wFMCommunicate request_size=4 [21:37:38]MH_SAM_APDU [21:37:38]CAPDU: 80 13 00 00 [21:37:38]Write to MH i2c: E2 08 00 B0 82 80 13 00 00 00 00 00 00 AE [21:37:38]Write i2c OK [21:37:38]MH_I2C_Read... [21:37:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:38]Read from MH i2c: E2 [21:37:38]MH_I2C_Read... [21:37:38]Read from MH i2c: E2 62 00 [21:37:38]MH_I2C_Read... [21:37:38]Read from MH i2c: E2 62 00 B0 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 88 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 5C [21:37: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 88 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:37:38]wFMCommunicate OK [21:37:38]SAM_PROTO_GetFieldsCounters done [21:37:38]requested_item shift.num is exist - process it [21:37:38]requested_item shift.opened is exist - process it [21:37:38]req_shift_opened [21:37:38]FM_GetShiftState [21:37:38]SAM_PROTO_GetShiftState [21:37:38]wFMCommunicate request_size=4 [21:37:38]MH_SAM_APDU [21:37:38]CAPDU: 80 13 01 00 [21:37:38]Write to MH i2c: E2 08 00 B1 82 80 13 01 00 00 00 00 00 B0 [21:37:38]Write i2c OK [21:37:38]MH_I2C_Read... [21:37:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:38]Read from MH i2c: E2 [21:37:38]MH_I2C_Read... [21:37:38]Read from MH i2c: E2 0E 00 [21:37:38]MH_I2C_Read... [21:37:38]Read from MH i2c: E2 0E 00 B1 82 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 DE [21:37:38]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:37:38]wFMCommunicate OK [21:37:38]SAM_PROTO_GetShiftState done [21:37:38]FM_GetShiftState done [21:37:38]req_shift_opened done [21:37:38]requested_item shift.open_date is exist - process it [21:37:38]req_shift_open_date [21:37:38]req_shift_open_date done [21:37:38]produce_requested_data done [21:37:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118920,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:37:38]process_action_free close_receipt [21:37:38]json_value_free [21:37:38]json_value_free done [21:37:38]process_json_proto returns [21:37:38]Send response to host [21:37:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118920,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:37:38]free response buf [21:37:38]execute_script done [21:37:38]execute_script returns [21:37:38]free content buf [21:37:38]Sock 7.Close socket [21:37:38]Sock 7.Thread stoped [21:37:42]OFD Sender: No OFD packet to send [21:37:47]OFD Sender: No OFD packet to send [21:37:52]OFD Sender: No OFD packet to send [21:37:57]OFD Sender: No OFD packet to send [21:38:02]OFD Sender: No OFD packet to send [21:38:07]OFD Sender: No OFD packet to send [21:38:12]OFD Sender: No OFD packet to send [21:38:17]OFD Sender: No OFD packet to send [21:38:22]OFD Sender: No OFD packet to send [21:38:27]OFD Sender: No OFD packet to send [21:38:32]OFD Sender: No OFD packet to send [21:38:37]OFD Sender: No OFD packet to send [21:38:42]OFD Sender: No OFD packet to send [21:38:47]OFD Sender: No OFD packet to send [21:38:52]OFD Sender: No OFD packet to send [21:38:57]OFD Sender: No OFD packet to send [21:39:02]OFD Sender: No OFD packet to send [21:39:07]OFD Sender: No OFD packet to send [21:39:12]OFD Sender: No OFD packet to send [21:39:17]OFD Sender: No OFD packet to send [21:39:22]OFD Sender: No OFD packet to send [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:37]OFD Sender: No OFD packet to send [21:40:42]OFD Sender: No OFD packet to send [21:40:47]OFD Sender: No OFD packet to send [21:40:52]OFD Sender: No OFD packet to send [21:40:57]OFD Sender: No OFD packet to send [21:41:02]OFD Sender: No OFD packet to send [21:41:07]OFD Sender: No OFD packet to send [21:41:12]OFD Sender: No OFD packet to send [21:41:17]OFD Sender: No OFD packet to send [21:41:22]OFD Sender: No OFD packet to send [21:41:27]OFD Sender: No OFD packet to send [21:41:32]OFD Sender: No OFD packet to send [21:41:37]OFD Sender: No OFD packet to send [21:41:42]OFD Sender: No OFD packet to send [21:41:47]OFD Sender: No OFD packet to send [21:41:52]OFD Sender: No OFD packet to send [21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:07]OFD Sender: No OFD packet to send [21:42:12]OFD Sender: No OFD packet to send [21:42:17]OFD Sender: No OFD packet to send [21:42:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]OFD Sender: No OFD packet to send [21:43:07]OFD Sender: No OFD packet to send [21:43:12]OFD Sender: No OFD packet to send [21:43:17]OFD Sender: No OFD packet to send [21:43:22]OFD Sender: No OFD packet to send [21:43:27]OFD Sender: No OFD packet to send [21:43:32]OFD Sender: No OFD packet to send [21:43:37]OFD Sender: No OFD packet to send [21:43:42]OFD Sender: No OFD packet to send [21:43:47]OFD Sender: No OFD packet to send [21:43:52]OFD Sender: No OFD packet to send [21:43:57]OFD Sender: No OFD packet to send [21:44:02]OFD Sender: No OFD packet to send [21:44:07]OFD Sender: No OFD packet to send [21:44:12]OFD Sender: No OFD packet to send [21:44:17]OFD Sender: No OFD packet to send [21:44:22]OFD Sender: No OFD packet to send [21:44:27]OFD Sender: No OFD packet to send [21:44:32]OFD Sender: No OFD packet to send [21:44:37]OFD Sender: No OFD packet to send [21:44:42]OFD Sender: No OFD packet to send [21:44:47]OFD Sender: No OFD packet to send [21:44:52]OFD Sender: No OFD packet to send [21:44:57]OFD Sender: No OFD packet to send [21:45:02]OFD Sender: No OFD packet to send [21:45:07]OFD Sender: No OFD packet to send [21:45:12]OFD Sender: No OFD packet to send [21:45:17]OFD Sender: No OFD packet to send [21:45:22]OFD Sender: No OFD packet to send [21:45:27]OFD Sender: No OFD packet to send [21:45:32]OFD Sender: No OFD packet to send [21:45:37]OFD Sender: No OFD packet to send [21:45:42]OFD Sender: No OFD packet to send [21:45:47]OFD Sender: No OFD packet to send [21:45:52]OFD Sender: No OFD packet to send [21:45:57]OFD Sender: No OFD packet to send [21:46:02]OFD Sender: No OFD packet to send [21:46:07]OFD Sender: No OFD packet to send [21:46:12]OFD Sender: No OFD packet to send [21:46:17]OFD Sender: No OFD packet to send [21:46:22]OFD Sender: No OFD packet to send [21:46:27]OFD Sender: No OFD packet to send [21:46:32]OFD Sender: No OFD packet to send [21:46:37]OFD Sender: No OFD packet to send [21:46:42]OFD Sender: No OFD packet to send [21:46:47]OFD Sender: No OFD packet to send [21:46:52]OFD Sender: No OFD packet to send [21:46:57]OFD Sender: No OFD packet to send [21:47:02]OFD Sender: No OFD packet to send [21:47:07]OFD Sender: No OFD packet to send [21:47:12]OFD Sender: No OFD packet to send [21:47:17]OFD Sender: No OFD packet to send [21:47:22]OFD Sender: No OFD packet to send [21:47:27]OFD Sender: No OFD packet to send [21:47:32]OFD Sender: No OFD packet to send [21:47:37]OFD Sender: No OFD packet to send [21:47:42]OFD Sender: No OFD packet to send [21:47:47]OFD Sender: No OFD packet to send [21:47:52]OFD Sender: No OFD packet to send [21:47:57]OFD Sender: No OFD packet to send [21:48:02]OFD Sender: No OFD packet to send [21:48:07]OFD Sender: No OFD packet to send [21:48:12]OFD Sender: No OFD packet to send [21:48:17]OFD Sender: No OFD packet to send [21:48:22]OFD Sender: No OFD packet to send [21:48:27]OFD Sender: No OFD packet to send [21:48:32]OFD Sender: No OFD packet to send [21:48:37]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:43]accept exits with 9 [21:48:43]New connection [21:48:43]New thread 3067239780 created [21:48:43]Thread 3067383140 joined [21:48:43]Waiting for new connection... [21:48:43] Sock 9.Parse request [21:48:43]Sock 9.Check first char [21:48:43]Sock 9.First char is OK [21:48:43]request: POST /json_proto HTTP/1.0 [21:48:43]Method: POST [21:48:43]URL: /json_proto [21:48:43]Method is POST - this is cgi request [21:48:43]url: /json_proto [21:48:43]query_string will be loaded in cgi processing [21:48:43]execute_cgi json_proto POST (null) [21:48:43]execute_cgi path=json_proto method=POST [21:48:43]POST find Content-Length [21:48:43]Host: 172.17.45.7:8080 [21:48:43]Content-Length: 1195 [21:48:43]Content-Type: application/json [21:48:43] [21:48:43]POST finish read [21:48:43]Found Content-Length = 1195 [21:48:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949831\u000A29.07.2024 21:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3988665\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:43]execute_script... [21:48:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949831\u000A29.07.2024 21:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3988665\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:43]POST & json_proto [21:48:43]process_json_proto [21:48:43]json parsed OK: [21:48:43]protocol is kg_v1.0 [21:48:43]action value=print_text [21:48:43]process_action print_text [21:48:43]cmd_print_text [21:48:43]ExternCall_PrintAddStr [21:48:43]wPrintStart [21:48:43]Write to MH i2c: 01 00 00 B2 82 34 [21:48:43]Write i2c OK [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: 01 [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: 01 07 00 [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: 01 07 00 B2 82 00 00 00 00 00 FF 0F 49 [21:48:43]RasterBufferAndPrint [21:48:43]line *****ТОВАРНЫЙ ЧЕК***** [21:48:43]line АЗС-134 [21:48:43]line Партнер нефть [21:48:43]line 02508201610067 [21:48:43]line Кассир : Казаков Ч. [21:48:43]line Счет N : (1)949831 [21:48:43]line 29.07.2024 21:46 [21:48:43]line ПРОДАЖА [21:48:43]line ТРК (МРК, ГНК): 11 [21:48:43]line Вид ГСМ : 2710194800 [21:48:43]line ДТ-К-5 [21:48:43]line 100.000 x 76.20 [21:48:43]line ИТОГ: 7620.00 [21:48:43]line Тип оплаты: Талоны: Топливные Талоны [21:48:43]line 3988665 [21:48:43]line ______________________ [21:48:43]line (подпись) [21:48:43]written 0, free lines is 4095 [21:48:43]Write to MH i2c: 01 00 00 C6 82 48 [21:48:43]Write i2c OK [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: 01 [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: 01 07 00 [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: 01 07 00 C6 82 00 00 00 00 00 10 0E 6D [21:48:43]RasterBufferAndPrint [21:48:43]line [21:48:43]line [21:48:43]line [21:48:43]line [21:48:43]line [21:48:43]written 0, free lines is 3601 [21:48:43]MH_Cut [21:48:43]Write to MH i2c: D1 01 00 CD 82 01 21 [21:48:43]Write i2c OK [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: D1 [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: D1 01 00 [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: D1 01 00 CD 82 00 20 [21:48:43]Write to MH i2c: 01 00 00 CE 82 50 [21:48:43]Write i2c OK [21:48:43]MH_I2C_Read... [21:48:43]*** Cut start [21:48:43]*** Partial cut [21:48:43]*** CUTSNS_PIN = 1 [21:48:44]*** CUTSNS_PIN = 0 [21:48:44]*** Brake cut motor [21:48:44]Read from MH i2c: 01 [21:48:44]MH_I2C_Read... [21:48:44]*** Stop cut motor [21:48:44]*** Cut end [21:48:44]Read from MH i2c: 01 07 00 [21:48:44]MH_I2C_Read... [21:48:44]Read from MH i2c: 01 07 00 CE 82 00 00 00 00 00 FF 0F 65 [21:48:44]process_action print_text done [21:48:44]requested_data is exist [21:48:44]produce_requested_data [21:48:44]requested_item fm.sn is exist - process it [21:48:44]wFMCommunicate request_size=4 [21:48:44]MH_SAM_APDU [21:48:44]CAPDU: 80 11 00 00 [21:48:44]Write to MH i2c: E2 08 00 CF 82 80 11 00 00 00 00 00 00 CB [21:48:44]Write i2c OK [21:48:44]MH_I2C_Read... [21:48:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:44]Read from MH i2c: E2 [21:48:44]MH_I2C_Read... [21:48:44]Read from MH i2c: E2 17 00 [21:48:44]MH_I2C_Read... [21:48:44]Read from MH i2c: E2 17 00 CF 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 26 [21:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:48:44]wFMCommunicate OK [21:48:44]requested_item fd.num is exist - process it [21:48:44]SAM_PROTO_GetFieldsCounters [21:48:44]wFMCommunicate request_size=4 [21:48:44]MH_SAM_APDU [21:48:44]CAPDU: 80 13 00 00 [21:48:44]Write to MH i2c: E2 08 00 D0 82 80 13 00 00 00 00 00 00 CE [21:48:44]Write i2c OK [21:48:44]MH_I2C_Read... [21:48:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:44]Read from MH i2c: E2 [21:48:44]MH_I2C_Read... [21:48:44]Read from MH i2c: E2 62 00 [21:48:44]MH_I2C_Read... [21:48:44]Read from MH i2c: E2 62 00 D0 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 88 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 7C [21:48: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 88 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:48:44]wFMCommunicate OK [21:48:44]SAM_PROTO_GetFieldsCounters done [21:48:44]requested_item shift.num is exist - process it [21:48:44]requested_item shift.opened is exist - process it [21:48:44]req_shift_opened [21:48:44]FM_GetShiftState [21:48:44]SAM_PROTO_GetShiftState [21:48:44]wFMCommunicate request_size=4 [21:48:44]MH_SAM_APDU [21:48:44]CAPDU: 80 13 01 00 [21:48:44]Write to MH i2c: E2 08 00 D1 82 80 13 01 00 00 00 00 00 D0 [21:48:44]Write i2c OK [21:48:44]MH_I2C_Read... [21:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:44]Read from MH i2c: E2 [21:48:44]MH_I2C_Read... [21:48:44]Read from MH i2c: E2 0E 00 [21:48:44]MH_I2C_Read... [21:48:44]Read from MH i2c: E2 0E 00 D1 82 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 FE [21:48:44]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:48:44]wFMCommunicate OK [21:48:44]SAM_PROTO_GetShiftState done [21:48:44]FM_GetShiftState done [21:48:44]req_shift_opened done [21:48:44]requested_item shift.open_date is exist - process it [21:48:44]req_shift_open_date [21:48:44]req_shift_open_date done [21:48:44]produce_requested_data done [21:48:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118920,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:48:44]process_action_free print_text [21:48:44]json_value_free [21:48:44]json_value_free done [21:48:44]process_json_proto returns [21:48:44]Send response to host [21:48:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118920,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:48:44]free response buf [21:48:44]execute_script done [21:48:44]execute_script returns [21:48:44]free content buf [21:48:44]Sock 9.Close socket [21:48:44]Sock 9.Thread stoped [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:06]accept exits with 7 [21:50:06]New connection [21:50:06]New thread 3067383140 created [21:50:06]Thread 3067239780 joined [21:50:06]Waiting for new connection... [21:50:06] Sock 7.Parse request [21:50:06]Sock 7.Check first char [21:50:06]Sock 7.First char is OK [21:50:06]request: POST /json_proto HTTP/1.0 [21:50:06]Method: POST [21:50:06]URL: /json_proto [21:50:06]Method is POST - this is cgi request [21:50:06]url: /json_proto [21:50:06]query_string will be loaded in cgi processing [21:50:06]execute_cgi json_proto POST (null) [21:50:06]execute_cgi path=json_proto method=POST [21:50:06]POST find Content-Length [21:50:06]Host: 172.17.45.7:8080 [21:50:06]Content-Length: 820 [21:50:06]Content-Type: application/json [21:50:06] [21:50:06]POST finish read [21:50:06]Found Content-Length = 820 [21:50:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:06]execute_script... [21:50: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)949832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:06]POST & json_proto [21:50:06]process_json_proto [21:50:06]json parsed OK: [21:50:06]protocol is kg_v1.0 [21:50:06]action value=close_receipt [21:50:06]process_action close_receipt [21:50:06]cmd_close_receipt [21:50:06]MH_GetDate [21:50:06]Write to MH i2c: F0 00 00 D2 82 43 [21:50:06]Write i2c OK [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: F0 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: F0 09 00 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: F0 09 00 D2 82 00 96 0E A8 66 90 0F 3E 66 41 [21:50:06]GetLastDocTimeStamp 1722289061 [21:50:06]current date 1722289814 [21:50:06]FM_GetShiftState [21:50:06]SAM_PROTO_GetShiftState [21:50:06]wFMCommunicate request_size=4 [21:50:06]MH_SAM_APDU [21:50:06]CAPDU: 80 13 01 00 [21:50:06]Write to MH i2c: E2 08 00 D3 82 80 13 01 00 00 00 00 00 D2 [21:50:06]Write i2c OK [21:50:06]MH_I2C_Read... [21:50:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:06]Read from MH i2c: E2 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 0E 00 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 0E 00 D3 82 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 00 [21:50:06]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:50:06]wFMCommunicate OK [21:50:06]SAM_PROTO_GetShiftState done [21:50:06]FM_GetShiftState done [21:50:06]opened in 1722211641 [21:50:06]opened+sec_in_day 1722298041 [21:50:06]quantity*price = 998982 [21:50:06]sum+1 = 998983 [21:50:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 9989.00 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 297 29.07.2024 21:50 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118921 ФПД: 258611207834512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215014&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118921&fm=258611207834512&tin=02508201610067®Number=0000000000092660&sum=998900 [21:50:07]StoreToDocumentArchive [21:50:07]shift 434 fd 118921 [21:50:07]save to /storage/0434/doc_00118921 [21:50:07]save last doc name /storage/0434/doc_00118921 to /storage/kkm_last_doc_name [21:50:07]save OK [21:50:07]Clear old archive folders... [21:50:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:50:07]tlvbuf is 020552F0 [21:50:07]SAM_PROTO_ClearQueue [21:50:07]wFMCommunicate request_size=4 [21:50:07]MH_SAM_APDU [21:50:07]CAPDU: 80 09 00 00 [21:50:07]Write to MH i2c: E2 08 00 E0 82 80 09 00 00 00 00 00 00 D4 [21:50:07]Write i2c OK [21:50:07]MH_I2C_Read... [21:50:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:07]Read from MH i2c: E2 [21:50:07]MH_I2C_Read... [21:50:07]Read from MH i2c: E2 03 00 [21:50:07]MH_I2C_Read... [21:50:07]Read from MH i2c: E2 03 00 E0 82 00 90 00 D6 [21:50:07]RAPDU: 90 00 [21:50:07]wFMCommunicate OK [21:50:07]SAM_PROTO_ClearQueue done [21:50:07]KKMCreateOFDPacket [21:50:07]OFDProtocolAddRootSTLVToBuf [21:50:07]FM_MakeSignedData [21:50:07]FM_MakeSignedData [21:50:07]SAM_PROTO_SignData [21:50:07]wFMCommunicate request_size=4 [21:50:07]MH_SAM_APDU [21:50:07]CAPDU: 80 0D 01 02 [21:50:07]Write to MH i2c: E2 08 00 E1 82 80 0D 01 02 00 00 00 00 DC [21:50:07]Write i2c OK [21:50:07]MH_I2C_Read... [21:50:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:07]Read from MH i2c: E2 [21:50:07]MH_I2C_Read... [21:50:07]Read from MH i2c: E2 03 00 [21:50:07]MH_I2C_Read... [21:50:07]Read from MH i2c: E2 03 00 E1 82 00 90 00 D7 [21:50:07]RAPDU: 90 00 [21:50:07]wFMCommunicate OK [21:50:07]wFMCommunicate request_size=255 [21:50:07]MH_SAM_APDU [21:50: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 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 96 0E A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 89 D0 01 00 35 04 06 00 EB 34 9D 2D [21:50:07]Write to MH i2c: E2 02 01 E2 82 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 96 0E A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 89 D0 01 00 35 04 06 00 EB 34 9D 2D 00 00 D8 [21:50:07]Write i2c OK [21:50:07]MH_I2C_Read... [21:50:08]OFD Sender: No OFD packet to send [21:50:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:08]Read from MH i2c: E2 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 03 00 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 03 00 E2 82 00 90 00 D8 [21:50:08]RAPDU: 90 00 [21:50:08]wFMCommunicate OK [21:50:08]wFMCommunicate request_size=7 [21:50:08]MH_SAM_APDU [21:50:08]CAPDU: 80 0D 02 02 02 8B 90 [21:50:08]Write to MH i2c: E2 0A 00 E3 82 80 0D 02 02 02 00 8B 90 00 00 FE [21:50:08]Write i2c OK [21:50:08]MH_I2C_Read... [21:50:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:08]Read from MH i2c: E2 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 03 00 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 03 00 E3 82 00 90 00 D9 [21:50:08]RAPDU: 90 00 [21:50:08]wFMCommunicate OK [21:50:08]wFMCommunicate request_size=4 [21:50:08]MH_SAM_APDU [21:50:08]CAPDU: 80 0D 03 02 [21:50:08]Write to MH i2c: E2 08 00 E4 82 80 0D 03 02 00 00 00 00 E1 [21:50:08]Write i2c OK [21:50:08]MH_I2C_Read... [21:50:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:08]Read from MH i2c: E2 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 0B 00 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 0B 00 E4 82 00 E6 45 84 B8 C7 00 0F 20 90 00 3F [21:50:08]RAPDU: E6 45 84 B8 C7 00 0F 20 90 00 [21:50:08]wFMCommunicate OK [21:50:08]SAM_PROTO_SignData done [21:50:08]FM_MakeSignedData done [21:50:08]CreateOFDProtocolMessage [21:50:08]wFMCommunicate request_size=4 [21:50:08]MH_SAM_APDU [21:50:08]CAPDU: 80 11 00 00 [21:50:08]Write to MH i2c: E2 08 00 E5 82 80 11 00 00 00 00 00 00 E1 [21:50:08]Write i2c OK [21:50:08]MH_I2C_Read... [21:50:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:08]Read from MH i2c: E2 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 17 00 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 17 00 E5 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3C [21:50:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:50:08]wFMCommunicate OK [21:50:08]CreateOFDProtocolMessage done [21:50:08]OFDSenderStorePacket 118921 [21:50:08]StoreOFDPacket docnum=118921 [21:50:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A3 75 04 01 C6 B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 96 0E A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 89 D0 01 00 35 04 06 00 EB 34 9D 2D 8B 90 E6 45 84 B8 C7 00 0F 20 [21:50:08]CheckFolder [21:50:08]dirname=/storage/ofd_packets [21:50:08]CheckFolder done [21:50:08]ProducePacketName [21:50:08]name=ofd_packets/00118921 [21:50:08]NVStorageSaveData ofd_packets/00118921 [21:50:08]File name is /storage/ofd_packets/00118921 [21:50:08]Write 298 bytes [21:50:08]NVStorageSaveData done [21:50:08]OFDSenderStorePacket done [21:50:08]KKMCreateOFDPacket done [21:50:08]NVStorageSaveData kkm_last_timestamp [21:50:08]File name is /storage/kkm_last_timestamp [21:50:08]Write 4 bytes [21:50:08]NVStorageSaveData done [21:50:08]ExternCall_PrintAddStr [21:50:08]wPrintStart [21:50:08]Write to MH i2c: 01 00 00 E6 82 68 [21:50:08]Write i2c OK [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: 01 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: 01 07 00 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: 01 07 00 E6 82 00 00 00 00 00 FF 0F 7D [21:50:08]RasterBufferAndPrint [21:50:08]line Счет N : (1)949832 [21:50:08]line ИНН: 02508201610067 [21:50:08]line Контрольно-Кассовый Чек [21:50:08]line ПРОДАЖА [21:50:08]line ТРК (МРК, ГНК) : 21 [21:50:08]line Товар: 2710194800 [21:50:08]line ДТ-К-5 [21:50:08]line 131.100 * 76.20 [21:50:08]line = 9989.82 [21:50:08]line НДС 12% НСП 1% [21:50:08]line > о реализуемом товаре [21:50:08]line ОКРУГЛЕНИЕ: -0.82 [21:50:08]line ИТОГО: 9989.00 [21:50:08]line НСП 1% : 88.40 [21:50:08]line НДС 12% : 1060.87 [21:50:08]line Наличными: 0.00 [21:50:08]line Безнал.: 9989.00 [21:50:08]line Место: АЗС № 134 "Партнер Нефть" [21:50:08]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:50:08]line СНО: Общий режим [21:50:08]line Чек 297 29.07.2024 21:50 [21:50:08]line Смена: 434 ФФД: 1.0 [21:50:08]line ЗНМ: 0300000044 [21:50:08]line РНМ: 0000000000092660 [21:50:08]line Версия ККМ: 001 [21:50:08]line Платежная система: O! деньги [21:50:08]line ФМ: 0000000000874939 [21:50:08]line ФД: 118921 [21:50:08]line ФПД: 258611207834512 [21:50:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215014&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118921&fm=258611207834512&tin=02508201610067®Number=0000000000092660&sum=998900 [21:50:08]written 0, free lines is 4095 [21:50:08]OFD Sender: Processing packet 118921 [packets to send 86, broken 85] [21:50:08]ProducePacketName [21:50:08]name=ofd_packets/00118921 [21:50:08]OFD Sender: To server: pG, [21:50:08]CommunicateWithHost lk.salyk.kg:30040 [21:50:08]ConnectInit lk.salyk.kg [21:50:08]Connected sock=10 [21:50:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A3 75 04 01 C6 B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 96 0E A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 89 D0 01 00 35 04 06 00 EB 34 9D 2D 8B 90 E6 45 84 B8 C7 00 0F 20 [21:50:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F2 0C 47 00 09 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 89 D0 01 00 F4 03 04 00 23 BC A7 66 B6 04 01 00 00 35 7B B1 E7 39 3C C8 4B [21:50:08]CommunicateWithHost err = 0 [21:50:08]CheckOFDResponse [21:50:08]1017 (14) - 77093643461234 [21:50:08]1041 (16) - 0000000000874939 [21:50:08]1040 (4) - 118921 [21:50:08]1012 (4) - 29.07.2024 15:58 [21:50:08]1206 (1) - 0 [21:50:08]OFD Sender: Remove packet 118921 [21:50:08]ProducePacketName [21:50:08]name=ofd_packets/00118921 [21:50:08]NVStorageDeleteData [21:50:09]Write to MH i2c: 01 00 00 10 83 93 [21:50:09]Write i2c OK [21:50:09]MH_I2C_Read... [21:50:09]Read from MH i2c: 01 [21:50:09]MH_I2C_Read... [21:50:09]Read from MH i2c: 01 07 00 [21:50:09]MH_I2C_Read... [21:50:09]Read from MH i2c: 01 07 00 10 83 00 00 00 00 00 F2 0C 98 [21:50:09]RasterBufferAndPrint [21:50:09]line [21:50:09]line [21:50:09]line [21:50:09]line [21:50:09]line [21:50:09]written 0, free lines is 3320 [21:50:09]MH_Cut [21:50:09]Write to MH i2c: D1 01 00 17 83 01 6C [21:50:09]Write i2c OK [21:50:09]MH_I2C_Read... [21:50:09]Read from MH i2c: D1 [21:50:09]MH_I2C_Read... [21:50:09]Read from MH i2c: D1 01 00 [21:50:09]MH_I2C_Read... [21:50:09]Read from MH i2c: D1 01 00 17 83 00 6B [21:50:09]Write to MH i2c: 01 00 00 18 83 9B [21:50:09]Write i2c OK [21:50:09]MH_I2C_Read... [21:50:09]OFD Sender: No OFD packet to send [21:50:09]*** Cut start [21:50:09]*** Partial cut [21:50:09]*** CUTSNS_PIN = 1 [21:50:09]*** CUTSNS_PIN = 0 [21:50:10]*** Brake cut motor [21:50:10]Read from MH i2c: 01 [21:50:10]MH_I2C_Read... [21:50:10]*** Stop cut motor [21:50:10]*** Cut end [21:50:10]Read from MH i2c: 01 07 00 [21:50:10]MH_I2C_Read... [21:50:10]Read from MH i2c: 01 07 00 18 83 00 00 00 00 00 FF 0F B0 [21:50:10]process_action close_receipt done [21:50:10]requested_data is exist [21:50:10]produce_requested_data [21:50:10]requested_item fm.sn is exist - process it [21:50:10]wFMCommunicate request_size=4 [21:50:10]MH_SAM_APDU [21:50:10]CAPDU: 80 11 00 00 [21:50:10]Write to MH i2c: E2 08 00 19 83 80 11 00 00 00 00 00 00 16 [21:50:10]Write i2c OK [21:50:10]MH_I2C_Read... [21:50:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:10]Read from MH i2c: E2 [21:50:10]MH_I2C_Read... [21:50:10]Read from MH i2c: E2 17 00 [21:50:10]MH_I2C_Read... [21:50:10]Read from MH i2c: E2 17 00 19 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 71 [21:50:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:50:10]wFMCommunicate OK [21:50:10]requested_item fd.num is exist - process it [21:50:10]SAM_PROTO_GetFieldsCounters [21:50:10]wFMCommunicate request_size=4 [21:50:10]MH_SAM_APDU [21:50:10]CAPDU: 80 13 00 00 [21:50:10]Write to MH i2c: E2 08 00 1A 83 80 13 00 00 00 00 00 00 19 [21:50:10]Write i2c OK [21:50:10]MH_I2C_Read... [21:50:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:10]Read from MH i2c: E2 [21:50:10]MH_I2C_Read... [21:50:10]Read from MH i2c: E2 62 00 [21:50:10]MH_I2C_Read... [21:50:10]Read from MH i2c: E2 62 00 1A 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 89 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [21:50: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 89 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:50:10]wFMCommunicate OK [21:50:10]SAM_PROTO_GetFieldsCounters done [21:50:10]requested_item shift.num is exist - process it [21:50:10]requested_item shift.opened is exist - process it [21:50:10]req_shift_opened [21:50:10]FM_GetShiftState [21:50:10]SAM_PROTO_GetShiftState [21:50:10]wFMCommunicate request_size=4 [21:50:10]MH_SAM_APDU [21:50:10]CAPDU: 80 13 01 00 [21:50:10]Write to MH i2c: E2 08 00 1B 83 80 13 01 00 00 00 00 00 1B [21:50:10]Write i2c OK [21:50:10]MH_I2C_Read... [21:50:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:10]Read from MH i2c: E2 [21:50:10]MH_I2C_Read... [21:50:10]Read from MH i2c: E2 0E 00 [21:50:10]MH_I2C_Read... [21:50:10]Read from MH i2c: E2 0E 00 1B 83 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 49 [21:50:10]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:50:10]wFMCommunicate OK [21:50:10]SAM_PROTO_GetShiftState done [21:50:10]FM_GetShiftState done [21:50:10]req_shift_opened done [21:50:10]requested_item shift.open_date is exist - process it [21:50:10]req_shift_open_date [21:50:10]req_shift_open_date done [21:50:10]produce_requested_data done [21:50:10]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118921,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:50:10]process_action_free close_receipt [21:50:10]json_value_free [21:50:10]json_value_free done [21:50:10]process_json_proto returns [21:50:10]Send response to host [21:50:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118921,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:50:10]free response buf [21:50:10]execute_script done [21:50:10]execute_script returns [21:50:10]free content buf [21:50:10]Sock 7.Close socket [21:50:10]Sock 7.Thread stoped [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:07]accept exits with 9 [21:52:07]New connection [21:52:07]New thread 3067239780 created [21:52:07]Thread 3067383140 joined [21:52:07]Waiting for new connection... [21:52:07] Sock 9.Parse request [21:52:07]Sock 9.Check first char [21:52:07]Sock 9.First char is OK [21:52:07]request: POST /json_proto HTTP/1.0 [21:52:07]Method: POST [21:52:07]URL: /json_proto [21:52:07]Method is POST - this is cgi request [21:52:07]url: /json_proto [21:52:07]query_string will be loaded in cgi processing [21:52:07]execute_cgi json_proto POST (null) [21:52:07]execute_cgi path=json_proto method=POST [21:52:07]POST find Content-Length [21:52:07]Host: 172.17.45.7:8080 [21:52:07]Content-Length: 682 [21:52:07]Content-Type: application/json [21:52:07] [21:52:07]POST finish read [21:52:07]Found Content-Length = 682 [21:52:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 19.180, "sum" : 1300.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:07]execute_script... [21:52:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 19.180, "sum" : 1300.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:07]POST & json_proto [21:52:07]process_json_proto [21:52:07]json parsed OK: [21:52:07]protocol is kg_v1.0 [21:52:07]action value=close_receipt [21:52:07]process_action close_receipt [21:52:07]cmd_close_receipt [21:52:07]MH_GetDate [21:52:07]Write to MH i2c: F0 00 00 1C 83 8E [21:52:07]Write i2c OK [21:52:07]MH_I2C_Read... [21:52:07]Read from MH i2c: F0 [21:52:07]MH_I2C_Read... [21:52:07]Read from MH i2c: F0 09 00 [21:52:07]MH_I2C_Read... [21:52:07]Read from MH i2c: F0 09 00 1C 83 00 0E 0F A8 66 90 0F 3E 66 05 [21:52:07]GetLastDocTimeStamp 1722289814 [21:52:07]current date 1722289934 [21:52:07]FM_GetShiftState [21:52:07]SAM_PROTO_GetShiftState [21:52:07]wFMCommunicate request_size=4 [21:52:07]MH_SAM_APDU [21:52:07]CAPDU: 80 13 01 00 [21:52:07]Write to MH i2c: E2 08 00 1D 83 80 13 01 00 00 00 00 00 1D [21:52:07]Write i2c OK [21:52:07]MH_I2C_Read... [21:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:07]Read from MH i2c: E2 [21:52:07]MH_I2C_Read... [21:52:07]Read from MH i2c: E2 0E 00 [21:52:07]MH_I2C_Read... [21:52:07]Read from MH i2c: E2 0E 00 1D 83 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 4B [21:52:07]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:52:07]wFMCommunicate OK [21:52:07]SAM_PROTO_GetShiftState done [21:52:07]FM_GetShiftState done [21:52:07]opened in 1722211641 [21:52:07]opened+sec_in_day 1722298041 [21:52:07]quantity*price = 130040 [21:52:07]sum+1 = 130041 [21:52:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.10 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 298 29.07.2024 21:52 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118922 ФПД: 214148939609488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215215&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118922&fm=214148939609488&tin=02508201610067®Number=0000000000092660&sum=130000 [21:52:08]StoreToDocumentArchive [21:52:08]shift 434 fd 118922 [21:52:08]save to /storage/0434/doc_00118922 [21:52:08]save last doc name /storage/0434/doc_00118922 to /storage/kkm_last_doc_name [21:52:08]save OK [21:52:08]Clear old archive folders... [21:52:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:52:08]tlvbuf is 01F068A0 [21:52:08]SAM_PROTO_ClearQueue [21:52:08]wFMCommunicate request_size=4 [21:52:08]MH_SAM_APDU [21:52:08]CAPDU: 80 09 00 00 [21:52:08]Write to MH i2c: E2 08 00 2A 83 80 09 00 00 00 00 00 00 1F [21:52:08]Write i2c OK [21:52:08]MH_I2C_Read... [21:52:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:08]Read from MH i2c: E2 [21:52:08]MH_I2C_Read... [21:52:08]Read from MH i2c: E2 03 00 [21:52:08]MH_I2C_Read... [21:52:08]Read from MH i2c: E2 03 00 2A 83 00 90 00 21 [21:52:08]RAPDU: 90 00 [21:52:08]wFMCommunicate OK [21:52:08]SAM_PROTO_ClearQueue done [21:52:08]KKMCreateOFDPacket [21:52:08]OFDProtocolAddRootSTLVToBuf [21:52:08]FM_MakeSignedData [21:52:08]FM_MakeSignedData [21:52:08]SAM_PROTO_SignData [21:52:08]wFMCommunicate request_size=4 [21:52:08]MH_SAM_APDU [21:52:08]CAPDU: 80 0D 01 02 [21:52:08]Write to MH i2c: E2 08 00 2B 83 80 0D 01 02 00 00 00 00 27 [21:52:08]Write i2c OK [21:52:08]MH_I2C_Read... [21:52:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:08]Read from MH i2c: E2 [21:52:08]MH_I2C_Read... [21:52:08]Read from MH i2c: E2 03 00 [21:52:08]MH_I2C_Read... [21:52:08]Read from MH i2c: E2 03 00 2B 83 00 90 00 22 [21:52:08]RAPDU: 90 00 [21:52:08]wFMCommunicate OK [21:52:08]wFMCommunicate request_size=255 [21:52:08]MH_SAM_APDU [21:52:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 0F 0F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8A D0 01 00 35 04 06 00 C2 [21:52:08]Write to MH i2c: E2 02 01 2C 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 0F 0F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8A D0 01 00 35 04 06 00 C2 00 00 5F [21:52:08]Write i2c OK [21:52:08]MH_I2C_Read... [21:52:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:09]Read from MH i2c: E2 [21:52:09]MH_I2C_Read... [21:52:09]Read from MH i2c: E2 03 00 [21:52:09]MH_I2C_Read... [21:52:09]Read from MH i2c: E2 03 00 2C 83 00 90 00 23 [21:52:09]RAPDU: 90 00 [21:52:09]wFMCommunicate OK [21:52:09]wFMCommunicate request_size=10 [21:52:09]MH_SAM_APDU [21:52:09]CAPDU: 80 0D 02 02 05 C4 6F 79 75 90 [21:52:09]Write to MH i2c: E2 0D 00 2D 83 80 0D 02 02 05 00 C4 6F 79 75 90 00 00 E5 [21:52:09]Write i2c OK [21:52:09]MH_I2C_Read... [21:52:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:09]Read from MH i2c: E2 [21:52:09]MH_I2C_Read... [21:52:09]Read from MH i2c: E2 03 00 [21:52:09]MH_I2C_Read... [21:52:09]Read from MH i2c: E2 03 00 2D 83 00 90 00 24 [21:52:09]RAPDU: 90 00 [21:52:09]wFMCommunicate OK [21:52:09]wFMCommunicate request_size=4 [21:52:09]MH_SAM_APDU [21:52:09]CAPDU: 80 0D 03 02 [21:52:09]Write to MH i2c: E2 08 00 2E 83 80 0D 03 02 00 00 00 00 2C [21:52:09]Write i2c OK [21:52:09]MH_I2C_Read... [21:52:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:09]Read from MH i2c: E2 [21:52:09]MH_I2C_Read... [21:52:09]Read from MH i2c: E2 0B 00 [21:52:09]MH_I2C_Read... [21:52:09]Read from MH i2c: E2 0B 00 2E 83 00 B6 77 85 45 0A E7 E6 FF 90 00 FA [21:52:09]RAPDU: B6 77 85 45 0A E7 E6 FF 90 00 [21:52:09]wFMCommunicate OK [21:52:09]SAM_PROTO_SignData done [21:52:09]FM_MakeSignedData done [21:52:09]CreateOFDProtocolMessage [21:52:09]wFMCommunicate request_size=4 [21:52:09]MH_SAM_APDU [21:52:09]CAPDU: 80 11 00 00 [21:52:09]Write to MH i2c: E2 08 00 2F 83 80 11 00 00 00 00 00 00 2C [21:52:09]Write i2c OK [21:52:09]MH_I2C_Read... [21:52:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:09]Read from MH i2c: E2 [21:52:09]MH_I2C_Read... [21:52:09]Read from MH i2c: E2 17 00 [21:52:09]MH_I2C_Read... [21:52:09]Read from MH i2c: E2 17 00 2F 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 87 [21:52:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:52:09]wFMCommunicate OK [21:52:09]CreateOFDProtocolMessage done [21:52:09]OFDSenderStorePacket 118922 [21:52:09]StoreOFDPacket docnum=118922 [21:52:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 67 59 07 01 13 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 0F 0F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8A D0 01 00 35 04 06 00 C2 C4 6F 79 75 90 B6 77 85 45 0A E7 E6 FF [21:52:09]CheckFolder [21:52:09]dirname=/storage/ofd_packets [21:52:09]CheckFolder done [21:52:09]ProducePacketName [21:52:09]name=ofd_packets/00118922 [21:52:09]NVStorageSaveData ofd_packets/00118922 [21:52:09]File name is /storage/ofd_packets/00118922 [21:52:09]Write 301 bytes [21:52:09]NVStorageSaveData done [21:52:09]OFDSenderStorePacket done [21:52:09]KKMCreateOFDPacket done [21:52:09]NVStorageSaveData kkm_last_timestamp [21:52:09]File name is /storage/kkm_last_timestamp [21:52:09]Write 4 bytes [21:52:09]NVStorageSaveData done [21:52:09]ExternCall_PrintAddStr [21:52:09]wPrintStart [21:52:09]Write to MH i2c: 01 00 00 30 83 B3 [21:52:09]Write i2c OK [21:52:09]MH_I2C_Read... [21:52:09]Read from MH i2c: 01 [21:52:09]MH_I2C_Read... [21:52:09]Read from MH i2c: 01 07 00 [21:52:09]MH_I2C_Read... [21:52:09]Read from MH i2c: 01 07 00 30 83 00 00 00 00 00 FF 0F C8 [21:52:09]RasterBufferAndPrint [21:52:09]line Счет N : (1)949834 [21:52:09]line ИНН: 02508201610067 [21:52:09]line Контрольно-Кассовый Чек [21:52:09]line ПРОДАЖА [21:52:09]line ТРК (МРК, ГНК) : 31 [21:52:09]line Товар: 2710124130 [21:52:09]line Аи-92-К-4 [21:52:09]line 19.180 * 67.80 [21:52:09]line = 1300.40 [21:52:09]line НДС 12% НСП 1% [21:52:09]line > о реализуемом товаре [21:52:09]line ОКРУГЛЕНИЕ: -0.40 [21:52:09]line ИТОГО: 1300.00 [21:52:09]line Внесено: 1300.00 [21:52:09]line СДАЧА: 0.00 [21:52:09]line НСП 1% : 11.51 [21:52:09]line НДС 12% : 138.10 [21:52:09]line Наличными: 1300.00 [21:52:09]line Безнал.: 0.00 [21:52:09]line Место: АЗС № 134 "Партнер Нефть" [21:52:09]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:52:09]line СНО: Общий режим [21:52:09]line Чек 298 29.07.2024 21:52 [21:52:09]line Смена: 434 ФФД: 1.0 [21:52:09]line ЗНМ: 0300000044 [21:52:09]line РНМ: 0000000000092660 [21:52:09]line Версия ККМ: 001 [21:52:09]line ФМ: 0000000000874939 [21:52:09]line ФД: 118922 [21:52:09]line ФПД: 214148939609488 [21:52:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215215&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118922&fm=214148939609488&tin=02508201610067®Number=0000000000092660&sum=130000 [21:52:09]written 0, free lines is 4095 [21:52:09]OFD Sender: Processing packet 118922 [packets to send 86, broken 85] [21:52:09]ProducePacketName [21:52:09]name=ofd_packets/00118922 [21:52:09]OFD Sender: To server: pG, [21:52:09]CommunicateWithHost lk.salyk.kg:30040 [21:52:09]ConnectInit lk.salyk.kg [21:52:09]Connected sock=10 [21:52:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 67 59 07 01 13 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 0F 0F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8A D0 01 00 35 04 06 00 C2 C4 6F 79 75 90 B6 77 85 45 0A E7 E6 FF [21:52:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 13 AF 47 00 24 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8A D0 01 00 F4 03 04 00 9B BC A7 66 B6 04 01 00 00 42 E1 32 11 C0 65 3D 3C [21:52:09]CommunicateWithHost err = 0 [21:52:09]CheckOFDResponse [21:52:09]1017 (14) - 77093643461234 [21:52:09]1041 (16) - 0000000000874939 [21:52:09]1040 (4) - 118922 [21:52:09]1012 (4) - 29.07.2024 16:00 [21:52:09]1206 (1) - 0 [21:52:09]OFD Sender: Remove packet 118922 [21:52:09]ProducePacketName [21:52:09]name=ofd_packets/00118922 [21:52:09]NVStorageDeleteData [21:52:09]Write to MH i2c: 01 00 00 5A 83 DD [21:52:10]Write i2c OK [21:52:10]MH_I2C_Read... [21:52:10]Read from MH i2c: 01 [21:52:10]MH_I2C_Read... [21:52:10]Read from MH i2c: 01 07 00 [21:52:10]MH_I2C_Read... [21:52:10]Read from MH i2c: 01 07 00 5A 83 00 00 00 00 00 D8 0C C8 [21:52:10]RasterBufferAndPrint [21:52:10]line [21:52:10]line [21:52:10]line [21:52:10]line [21:52:10]line [21:52:10]written 0, free lines is 3296 [21:52:10]MH_Cut [21:52:10]Write to MH i2c: D1 01 00 61 83 01 B6 [21:52:10]Write i2c OK [21:52:10]MH_I2C_Read... [21:52:10]Read from MH i2c: D1 [21:52:10]MH_I2C_Read... [21:52:10]Read from MH i2c: D1 01 00 [21:52:10]MH_I2C_Read... [21:52:10]Read from MH i2c: D1 01 00 61 83 00 B5 [21:52:10]Write to MH i2c: 01 00 00 62 83 E5 [21:52:10]Write i2c OK [21:52:10]MH_I2C_Read... [21:52:10]OFD Sender: No OFD packet to send [21:52:10]*** Cut start [21:52:10]*** Partial cut [21:52:10]*** CUTSNS_PIN = 1 [21:52:10]*** CUTSNS_PIN = 0 [21:52:11]*** Brake cut motor [21:52:11]Read from MH i2c: 01 [21:52:11]MH_I2C_Read... [21:52:11]*** Stop cut motor [21:52:11]*** Cut end [21:52:11]Read from MH i2c: 01 07 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: 01 07 00 62 83 00 00 00 00 00 FF 0F FA [21:52:11]process_action close_receipt done [21:52:11]requested_data is exist [21:52:11]produce_requested_data [21:52:11]requested_item fm.sn is exist - process it [21:52:11]wFMCommunicate request_size=4 [21:52:11]MH_SAM_APDU [21:52:11]CAPDU: 80 11 00 00 [21:52:11]Write to MH i2c: E2 08 00 63 83 80 11 00 00 00 00 00 00 60 [21:52:11]Write i2c OK [21:52:11]MH_I2C_Read... [21:52:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:11]Read from MH i2c: E2 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 17 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 17 00 63 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BB [21:52:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:52:11]wFMCommunicate OK [21:52:11]requested_item fd.num is exist - process it [21:52:11]SAM_PROTO_GetFieldsCounters [21:52:11]wFMCommunicate request_size=4 [21:52:11]MH_SAM_APDU [21:52:11]CAPDU: 80 13 00 00 [21:52:11]Write to MH i2c: E2 08 00 64 83 80 13 00 00 00 00 00 00 63 [21:52:11]Write i2c OK [21:52:11]MH_I2C_Read... [21:52:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:11]Read from MH i2c: E2 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 62 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 62 00 64 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8A D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 19 [21:52: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8A D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:52:11]wFMCommunicate OK [21:52:11]SAM_PROTO_GetFieldsCounters done [21:52:11]requested_item shift.num is exist - process it [21:52:11]requested_item shift.opened is exist - process it [21:52:11]req_shift_opened [21:52:11]FM_GetShiftState [21:52:11]SAM_PROTO_GetShiftState [21:52:11]wFMCommunicate request_size=4 [21:52:11]MH_SAM_APDU [21:52:11]CAPDU: 80 13 01 00 [21:52:11]Write to MH i2c: E2 08 00 65 83 80 13 01 00 00 00 00 00 65 [21:52:11]Write i2c OK [21:52:11]MH_I2C_Read... [21:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:11]Read from MH i2c: E2 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 0E 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 0E 00 65 83 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 93 [21:52:11]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:52:11]wFMCommunicate OK [21:52:11]SAM_PROTO_GetShiftState done [21:52:11]FM_GetShiftState done [21:52:11]req_shift_opened done [21:52:11]requested_item shift.open_date is exist - process it [21:52:11]req_shift_open_date [21:52:11]req_shift_open_date done [21:52:11]produce_requested_data done [21:52:11]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118922,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:52:11]process_action_free close_receipt [21:52:11]json_value_free [21:52:11]json_value_free done [21:52:11]process_json_proto returns [21:52:11]Send response to host [21:52:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118922,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:52:11]free response buf [21:52:11]execute_script done [21:52:11]execute_script returns [21:52:11]free content buf [21:52:11]Sock 9.Close socket [21:52:11]Sock 9.Thread stoped [21:52:11]accept exits with 7 [21:52:11]New connection [21:52:11]New thread 3067383140 created [21:52:11]Thread 3067239780 joined [21:52:11]Waiting for new connection... [21:52:11] Sock 7.Parse request [21:52:11]Sock 7.Check first char [21:52:11]Sock 7.First char is OK [21:52:11]request: POST /json_proto HTTP/1.0 [21:52:11]Method: POST [21:52:11]URL: /json_proto [21:52:11]Method is POST - this is cgi request [21:52:11]url: /json_proto [21:52:11]query_string will be loaded in cgi processing [21:52:11]execute_cgi json_proto POST (null) [21:52:11]execute_cgi path=json_proto method=POST [21:52:11]POST find Content-Length [21:52:11]Host: 172.17.45.7:8080 [21:52:11]Content-Length: 819 [21:52:11]Content-Type: application/json [21:52:11] [21:52:11]POST finish read [21:52:11]Found Content-Length = 819 [21:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 5000.00, "payments": [ { "type": 1, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:11]execute_script... [21:52:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 5000.00, "payments": [ { "type": 1, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:11]POST & json_proto [21:52:11]process_json_proto [21:52:11]json parsed OK: [21:52:11]protocol is kg_v1.0 [21:52:11]action value=close_receipt [21:52:11]process_action close_receipt [21:52:11]cmd_close_receipt [21:52:11]MH_GetDate [21:52:11]Write to MH i2c: F0 00 00 66 83 D8 [21:52:11]Write i2c OK [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: F0 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: F0 09 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: F0 09 00 66 83 00 13 0F A8 66 90 0F 3E 66 54 [21:52:11]GetLastDocTimeStamp 1722289935 [21:52:11]current date 1722289939 [21:52:11]FM_GetShiftState [21:52:11]SAM_PROTO_GetShiftState [21:52:11]wFMCommunicate request_size=4 [21:52:11]MH_SAM_APDU [21:52:11]CAPDU: 80 13 01 00 [21:52:11]Write to MH i2c: E2 08 00 67 83 80 13 01 00 00 00 00 00 67 [21:52:11]Write i2c OK [21:52:11]MH_I2C_Read... [21:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:11]Read from MH i2c: E2 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 0E 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 0E 00 67 83 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 95 [21:52:11]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:52:11]wFMCommunicate OK [21:52:11]SAM_PROTO_GetShiftState done [21:52:11]FM_GetShiftState done [21:52:11]opened in 1722211641 [21:52:11]opened+sec_in_day 1722298041 [21:52:11]quantity*price = 500024 [21:52:11]sum+1 = 500025 [21:52:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 5000.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 0.00 Безнал.: 5000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 299 29.07.2024 21:52 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118923 ФПД: 273457716239000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215219&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118923&fm=273457716239000&tin=02508201610067®Number=0000000000092660&sum=500000 [21:52:13]StoreToDocumentArchive [21:52:13]shift 434 fd 118923 [21:52:13]save to /storage/0434/doc_00118923 [21:52:13]save last doc name /storage/0434/doc_00118923 to /storage/kkm_last_doc_name [21:52:13]save OK [21:52:13]Clear old archive folders... [21:52:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:52:13]tlvbuf is 020B4400 [21:52:13]SAM_PROTO_ClearQueue [21:52:13]wFMCommunicate request_size=4 [21:52:13]MH_SAM_APDU [21:52:13]CAPDU: 80 09 00 00 [21:52:13]Write to MH i2c: E2 08 00 74 83 80 09 00 00 00 00 00 00 69 [21:52:13]Write i2c OK [21:52:13]MH_I2C_Read... [21:52:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:13]Read from MH i2c: E2 [21:52:13]MH_I2C_Read... [21:52:13]Read from MH i2c: E2 03 00 [21:52:13]MH_I2C_Read... [21:52:13]Read from MH i2c: E2 03 00 74 83 00 90 00 6B [21:52:13]RAPDU: 90 00 [21:52:13]wFMCommunicate OK [21:52:13]SAM_PROTO_ClearQueue done [21:52:13]KKMCreateOFDPacket [21:52:13]OFDProtocolAddRootSTLVToBuf [21:52:13]FM_MakeSignedData [21:52:13]FM_MakeSignedData [21:52:13]SAM_PROTO_SignData [21:52:13]wFMCommunicate request_size=4 [21:52:13]MH_SAM_APDU [21:52:13]CAPDU: 80 0D 01 02 [21:52:13]Write to MH i2c: E2 08 00 75 83 80 0D 01 02 00 00 00 00 71 [21:52:13]Write i2c OK [21:52:13]MH_I2C_Read... [21:52:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:13]Read from MH i2c: E2 [21:52:13]MH_I2C_Read... [21:52:13]Read from MH i2c: E2 03 00 [21:52:13]MH_I2C_Read... [21:52:13]Read from MH i2c: E2 03 00 75 83 00 90 00 6C [21:52:13]RAPDU: 90 00 [21:52:13]wFMCommunicate OK [21:52:13]wFMCommunicate request_size=255 [21:52:13]MH_SAM_APDU [21:52:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 13 0F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8B D0 01 00 35 04 06 00 F8 B5 56 09 [21:52:13]Write to MH i2c: E2 02 01 76 83 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 13 0F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8B D0 01 00 35 04 06 00 F8 B5 56 09 00 00 8B [21:52:13]Write i2c OK [21:52:13]MH_I2C_Read... [21:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:13]Read from MH i2c: E2 [21:52:13]MH_I2C_Read... [21:52:13]Read from MH i2c: E2 03 00 [21:52:13]MH_I2C_Read... [21:52:13]Read from MH i2c: E2 03 00 76 83 00 90 00 6D [21:52:13]RAPDU: 90 00 [21:52:13]wFMCommunicate OK [21:52:13]wFMCommunicate request_size=7 [21:52:13]MH_SAM_APDU [21:52:13]CAPDU: 80 0D 02 02 02 9A 98 [21:52:13]Write to MH i2c: E2 0A 00 77 83 80 0D 02 02 02 00 9A 98 00 00 AA [21:52:13]Write i2c OK [21:52:13]MH_I2C_Read... [21:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:13]Read from MH i2c: E2 [21:52:13]MH_I2C_Read... [21:52:13]Read from MH i2c: E2 03 00 [21:52:13]MH_I2C_Read... [21:52:13]Read from MH i2c: E2 03 00 77 83 00 90 00 6E [21:52:13]RAPDU: 90 00 [21:52:13]wFMCommunicate OK [21:52:13]wFMCommunicate request_size=4 [21:52:13]MH_SAM_APDU [21:52:13]CAPDU: 80 0D 03 02 [21:52:13]Write to MH i2c: E2 08 00 78 83 80 0D 03 02 00 00 00 00 76 [21:52:13]Write i2c OK [21:52:13]MH_I2C_Read... [21:52:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:13]Read from MH i2c: E2 [21:52:13]MH_I2C_Read... [21:52:13]Read from MH i2c: E2 0B 00 [21:52:13]MH_I2C_Read... [21:52:13]Read from MH i2c: E2 0B 00 78 83 00 42 BC 1C 76 AB 72 09 C4 90 00 F1 [21:52:13]RAPDU: 42 BC 1C 76 AB 72 09 C4 90 00 [21:52:13]wFMCommunicate OK [21:52:13]SAM_PROTO_SignData done [21:52:13]FM_MakeSignedData done [21:52:13]CreateOFDProtocolMessage [21:52:13]wFMCommunicate request_size=4 [21:52:13]MH_SAM_APDU [21:52:13]CAPDU: 80 11 00 00 [21:52:13]Write to MH i2c: E2 08 00 79 83 80 11 00 00 00 00 00 00 76 [21:52:13]Write i2c OK [21:52:13]MH_I2C_Read... [21:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:14]Read from MH i2c: E2 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: E2 17 00 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: E2 17 00 79 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D1 [21:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:52:14]wFMCommunicate OK [21:52:14]CreateOFDProtocolMessage done [21:52:14]OFDSenderStorePacket 118923 [21:52:14]StoreOFDPacket docnum=118923 [21:52:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 53 D6 04 01 5D 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 13 0F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8B D0 01 00 35 04 06 00 F8 B5 56 09 9A 98 42 BC 1C 76 AB 72 09 C4 [21:52:14]CheckFolder [21:52:14]dirname=/storage/ofd_packets [21:52:14]CheckFolder done [21:52:14]ProducePacketName [21:52:14]name=ofd_packets/00118923 [21:52:14]NVStorageSaveData ofd_packets/00118923 [21:52:14]File name is /storage/ofd_packets/00118923 [21:52:14]Write 298 bytes [21:52:14]NVStorageSaveData done [21:52:14]OFDSenderStorePacket done [21:52:14]KKMCreateOFDPacket done [21:52:14]NVStorageSaveData kkm_last_timestamp [21:52:14]File name is /storage/kkm_last_timestamp [21:52:14]Write 4 bytes [21:52:14]NVStorageSaveData done [21:52:14]ExternCall_PrintAddStr [21:52:14]wPrintStart [21:52:14]Write to MH i2c: 01 00 00 7A 83 FD [21:52:14]Write i2c OK [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: 01 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: 01 07 00 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: 01 07 00 7A 83 00 00 00 00 00 FF 0F 12 [21:52:14]RasterBufferAndPrint [21:52:14]line Счет N : (1)949833 [21:52:14]line ИНН: 02508201610067 [21:52:14]line Контрольно-Кассовый Чек [21:52:14]line ПРОДАЖА [21:52:14]line ТРК (МРК, ГНК) : 11 [21:52:14]line Товар: 2710194800 [21:52:14]line ДТ-К-5 [21:52:14]line 65.620 * 76.20 [21:52:14]line = 5000.24 [21:52:14]line НДС 12% НСП 1% [21:52:14]line > о реализуемом товаре [21:52:14]line ОКРУГЛЕНИЕ: -0.24 [21:52:14]line ИТОГО: 5000.00 [21:52:14]line НСП 1% : 44.25 [21:52:14]line НДС 12% : 531.00 [21:52:14]line Наличными: 0.00 [21:52:14]line Безнал.: 5000.00 [21:52:14]line Место: АЗС № 134 "Партнер Нефть" [21:52:14]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:52:14]line СНО: Общий режим [21:52:14]line Чек 299 29.07.2024 21:52 [21:52:14]line Смена: 434 ФФД: 1.0 [21:52:14]line ЗНМ: 0300000044 [21:52:14]line РНМ: 0000000000092660 [21:52:14]line Версия ККМ: 001 [21:52:14]line Платежная система: O! деньги [21:52:14]line ФМ: 0000000000874939 [21:52:14]line ФД: 118923 [21:52:14]line ФПД: 273457716239000 [21:52:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215219&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118923&fm=273457716239000&tin=02508201610067®Number=0000000000092660&sum=500000 [21:52:14]OFD Sender: Processing packet 118923 [packets to send 86, broken 85] [21:52:14]ProducePacketName [21:52:14]name=ofd_packets/00118923 [21:52:14]OFD Sender: To server: pG, [21:52:14]CommunicateWithHost lk.salyk.kg:30040 [21:52:14]ConnectInit lk.salyk.kg [21:52:14]written 0, free lines is 4095 [21:52:14]Connected sock=10 [21:52:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 53 D6 04 01 5D 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 13 0F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8B D0 01 00 35 04 06 00 F8 B5 56 09 9A 98 42 BC 1C 76 AB 72 09 C4 [21:52:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4B EA 47 00 13 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8B D0 01 00 F4 03 04 00 A0 BC A7 66 B6 04 01 00 00 0B 13 D4 FA 26 4C B9 B2 [21:52:14]CommunicateWithHost err = 0 [21:52:14]CheckOFDResponse [21:52:14]1017 (14) - 77093643461234 [21:52:14]1041 (16) - 0000000000874939 [21:52:14]1040 (4) - 118923 [21:52:14]1012 (4) - 29.07.2024 16:00 [21:52:14]1206 (1) - 0 [21:52:14]OFD Sender: Remove packet 118923 [21:52:14]ProducePacketName [21:52:14]name=ofd_packets/00118923 [21:52:14]NVStorageDeleteData [21:52:14]Write to MH i2c: 01 00 00 A4 83 27 [21:52:14]Write i2c OK [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: 01 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: 01 07 00 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: 01 07 00 A4 83 00 00 00 00 00 F0 0C 2A [21:52:14]RasterBufferAndPrint [21:52:14]line [21:52:14]line [21:52:14]line [21:52:14]line [21:52:14]line [21:52:14]written 0, free lines is 3326 [21:52:14]MH_Cut [21:52:14]Write to MH i2c: D1 01 00 AB 83 01 00 [21:52:14]Write i2c OK [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: D1 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: D1 01 00 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: D1 01 00 AB 83 00 FF [21:52:14]Write to MH i2c: 01 00 00 AC 83 2F [21:52:14]Write i2c OK [21:52:14]MH_I2C_Read... [21:52:15]OFD Sender: No OFD packet to send [21:52:15]*** Cut start [21:52:15]*** Partial cut [21:52:15]*** CUTSNS_PIN = 1 [21:52:15]*** CUTSNS_PIN = 0 [21:52:15]*** Brake cut motor [21:52:16]Read from MH i2c: 01 [21:52:16]MH_I2C_Read... [21:52:16]*** Stop cut motor [21:52:16]*** Cut end [21:52:16]Read from MH i2c: 01 07 00 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: 01 07 00 AC 83 00 00 00 00 00 FF 0F 44 [21:52:16]process_action close_receipt done [21:52:16]requested_data is exist [21:52:16]produce_requested_data [21:52:16]requested_item fm.sn is exist - process it [21:52:16]wFMCommunicate request_size=4 [21:52:16]MH_SAM_APDU [21:52:16]CAPDU: 80 11 00 00 [21:52:16]Write to MH i2c: E2 08 00 AD 83 80 11 00 00 00 00 00 00 AA [21:52:16]Write i2c OK [21:52:16]MH_I2C_Read... [21:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:16]Read from MH i2c: E2 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: E2 17 00 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: E2 17 00 AD 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 05 [21:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:52:16]wFMCommunicate OK [21:52:16]requested_item fd.num is exist - process it [21:52:16]SAM_PROTO_GetFieldsCounters [21:52:16]wFMCommunicate request_size=4 [21:52:16]MH_SAM_APDU [21:52:16]CAPDU: 80 13 00 00 [21:52:16]Write to MH i2c: E2 08 00 AE 83 80 13 00 00 00 00 00 00 AD [21:52:16]Write i2c OK [21:52:16]MH_I2C_Read... [21:52:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:16]Read from MH i2c: E2 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: E2 62 00 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: E2 62 00 AE 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8B D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 67 [21:52: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8B D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:52:16]wFMCommunicate OK [21:52:16]SAM_PROTO_GetFieldsCounters done [21:52:16]requested_item shift.num is exist - process it [21:52:16]requested_item shift.opened is exist - process it [21:52:16]req_shift_opened [21:52:16]FM_GetShiftState [21:52:16]SAM_PROTO_GetShiftState [21:52:16]wFMCommunicate request_size=4 [21:52:16]MH_SAM_APDU [21:52:16]CAPDU: 80 13 01 00 [21:52:16]Write to MH i2c: E2 08 00 AF 83 80 13 01 00 00 00 00 00 AF [21:52:16]Write i2c OK [21:52:16]MH_I2C_Read... [21:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:16]Read from MH i2c: E2 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: E2 0E 00 [21:52:16]MH_I2C_Read... [21:52:16]Read from MH i2c: E2 0E 00 AF 83 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 DD [21:52:16]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:52:16]wFMCommunicate OK [21:52:16]SAM_PROTO_GetShiftState done [21:52:16]FM_GetShiftState done [21:52:16]req_shift_opened done [21:52:16]requested_item shift.open_date is exist - process it [21:52:16]req_shift_open_date [21:52:16]req_shift_open_date done [21:52:16]produce_requested_data done [21:52:16]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118923,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:52:16]process_action_free close_receipt [21:52:16]json_value_free [21:52:16]json_value_free done [21:52:16]process_json_proto returns [21:52:16]Send response to host [21:52:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118923,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:52:16]free response buf [21:52:16]execute_script done [21:52:16]execute_script returns [21:52:16]free content buf [21:52:16]Sock 7.Close socket [21:52:16]Sock 7.Thread stoped [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:39]accept exits with 9 [21:53:39]New connection [21:53:39]New thread 3067239780 created [21:53:39]Thread 3067383140 joined [21:53:39]Waiting for new connection... [21:53:39] Sock 9.Parse request [21:53:39]Sock 9.Check first char [21:53:39]Sock 9.First char is OK [21:53:39]request: POST /json_proto HTTP/1.0 [21:53:39]Method: POST [21:53:39]URL: /json_proto [21:53:39]Method is POST - this is cgi request [21:53:39]url: /json_proto [21:53:39]query_string will be loaded in cgi processing [21:53:39]execute_cgi json_proto POST (null) [21:53:39]execute_cgi path=json_proto method=POST [21:53:39]POST find Content-Length [21:53:39]Host: 172.17.45.7:8080 [21:53:39]Content-Length: 819 [21:53:39]Content-Type: application/json [21:53:39] [21:53:39]POST finish read [21:53:39]Found Content-Length = 819 [21:53:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:39]execute_script... [21:53:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:39]POST & json_proto [21:53:39]process_json_proto [21:53:39]json parsed OK: [21:53:39]protocol is kg_v1.0 [21:53:39]action value=close_receipt [21:53:39]process_action close_receipt [21:53:39]cmd_close_receipt [21:53:39]MH_GetDate [21:53:39]Write to MH i2c: F0 00 00 B0 83 22 [21:53:39]Write i2c OK [21:53:39]MH_I2C_Read... [21:53:39]Read from MH i2c: F0 [21:53:39]MH_I2C_Read... [21:53:39]Read from MH i2c: F0 09 00 [21:53:39]MH_I2C_Read... [21:53:39]Read from MH i2c: F0 09 00 B0 83 00 6A 0F A8 66 90 0F 3E 66 F5 [21:53:39]GetLastDocTimeStamp 1722289939 [21:53:39]current date 1722290026 [21:53:39]FM_GetShiftState [21:53:39]SAM_PROTO_GetShiftState [21:53:39]wFMCommunicate request_size=4 [21:53:39]MH_SAM_APDU [21:53:39]CAPDU: 80 13 01 00 [21:53:39]Write to MH i2c: E2 08 00 B1 83 80 13 01 00 00 00 00 00 B1 [21:53:39]Write i2c OK [21:53:39]MH_I2C_Read... [21:53:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:39]Read from MH i2c: E2 [21:53:39]MH_I2C_Read... [21:53:39]Read from MH i2c: E2 0E 00 [21:53:39]MH_I2C_Read... [21:53:39]Read from MH i2c: E2 0E 00 B1 83 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 DF [21:53:39]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:53:39]wFMCommunicate OK [21:53:39]SAM_PROTO_GetShiftState done [21:53:39]FM_GetShiftState done [21:53:39]opened in 1722211641 [21:53:39]opened+sec_in_day 1722298041 [21:53:39]quantity*price = 200025 [21:53:39]sum+1 = 200026 [21:53:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 300 29.07.2024 21:53 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118924 ФПД: 172989086345776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215346&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118924&fm=172989086345776&tin=02508201610067®Number=0000000000092660&sum=200000 [21:53:40]StoreToDocumentArchive [21:53:40]shift 434 fd 118924 [21:53:40]save to /storage/0434/doc_00118924 [21:53:40]save last doc name /storage/0434/doc_00118924 to /storage/kkm_last_doc_name [21:53:40]save OK [21:53:40]Clear old archive folders... [21:53:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:53:40]tlvbuf is 01E591E0 [21:53:40]SAM_PROTO_ClearQueue [21:53:40]wFMCommunicate request_size=4 [21:53:40]MH_SAM_APDU [21:53:40]CAPDU: 80 09 00 00 [21:53:40]Write to MH i2c: E2 08 00 BE 83 80 09 00 00 00 00 00 00 B3 [21:53:40]Write i2c OK [21:53:40]MH_I2C_Read... [21:53:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:40]Read from MH i2c: E2 [21:53:40]MH_I2C_Read... [21:53:40]Read from MH i2c: E2 03 00 [21:53:40]MH_I2C_Read... [21:53:40]Read from MH i2c: E2 03 00 BE 83 00 90 00 B5 [21:53:40]RAPDU: 90 00 [21:53:40]wFMCommunicate OK [21:53:40]SAM_PROTO_ClearQueue done [21:53:40]KKMCreateOFDPacket [21:53:40]OFDProtocolAddRootSTLVToBuf [21:53:40]FM_MakeSignedData [21:53:40]FM_MakeSignedData [21:53:40]SAM_PROTO_SignData [21:53:40]wFMCommunicate request_size=4 [21:53:40]MH_SAM_APDU [21:53:40]CAPDU: 80 0D 01 02 [21:53:40]Write to MH i2c: E2 08 00 BF 83 80 0D 01 02 00 00 00 00 BB [21:53:40]Write i2c OK [21:53:40]MH_I2C_Read... [21:53:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:40]Read from MH i2c: E2 [21:53:40]MH_I2C_Read... [21:53:40]Read from MH i2c: E2 03 00 [21:53:40]MH_I2C_Read... [21:53:40]Read from MH i2c: E2 03 00 BF 83 00 90 00 B6 [21:53:40]RAPDU: 90 00 [21:53:40]wFMCommunicate OK [21:53:40]wFMCommunicate request_size=255 [21:53:40]MH_SAM_APDU [21:53:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 6A 0F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8C D0 01 00 35 04 06 00 9D 55 29 0A [21:53:40]Write to MH i2c: E2 02 01 C0 83 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 6A 0F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8C D0 01 00 35 04 06 00 9D 55 29 0A 00 00 22 [21:53:40]Write i2c OK [21:53:40]MH_I2C_Read... [21:53:40]OFD Sender: No OFD packet to send [21:53:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:40]Read from MH i2c: E2 [21:53:40]MH_I2C_Read... [21:53:40]Read from MH i2c: E2 03 00 [21:53:40]MH_I2C_Read... [21:53:40]Read from MH i2c: E2 03 00 C0 83 00 90 00 B7 [21:53:40]RAPDU: 90 00 [21:53:40]wFMCommunicate OK [21:53:40]wFMCommunicate request_size=7 [21:53:40]MH_SAM_APDU [21:53:40]CAPDU: 80 0D 02 02 02 AA 30 [21:53:40]Write to MH i2c: E2 0A 00 C1 83 80 0D 02 02 02 00 AA 30 00 00 9C [21:53:40]Write i2c OK [21:53:40]MH_I2C_Read... [21:53:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:40]Read from MH i2c: E2 [21:53:40]MH_I2C_Read... [21:53:40]Read from MH i2c: E2 03 00 [21:53:40]MH_I2C_Read... [21:53:40]Read from MH i2c: E2 03 00 C1 83 00 90 00 B8 [21:53:40]RAPDU: 90 00 [21:53:40]wFMCommunicate OK [21:53:40]wFMCommunicate request_size=4 [21:53:40]MH_SAM_APDU [21:53:40]CAPDU: 80 0D 03 02 [21:53:40]Write to MH i2c: E2 08 00 C2 83 80 0D 03 02 00 00 00 00 C0 [21:53:40]Write i2c OK [21:53:40]MH_I2C_Read... [21:53:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:40]Read from MH i2c: E2 [21:53:40]MH_I2C_Read... [21:53:40]Read from MH i2c: E2 0B 00 [21:53:40]MH_I2C_Read... [21:53:40]Read from MH i2c: E2 0B 00 C2 83 00 11 56 1C F0 43 3D A5 32 90 00 8B [21:53:40]RAPDU: 11 56 1C F0 43 3D A5 32 90 00 [21:53:40]wFMCommunicate OK [21:53:40]SAM_PROTO_SignData done [21:53:40]FM_MakeSignedData done [21:53:40]CreateOFDProtocolMessage [21:53:40]wFMCommunicate request_size=4 [21:53:40]MH_SAM_APDU [21:53:40]CAPDU: 80 11 00 00 [21:53:40]Write to MH i2c: E2 08 00 C3 83 80 11 00 00 00 00 00 00 C0 [21:53:40]Write i2c OK [21:53:40]MH_I2C_Read... [21:53:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:40]Read from MH i2c: E2 [21:53:40]MH_I2C_Read... [21:53:40]Read from MH i2c: E2 17 00 [21:53:40]MH_I2C_Read... [21:53:40]Read from MH i2c: E2 17 00 C3 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1B [21:53:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:53:40]wFMCommunicate OK [21:53:40]CreateOFDProtocolMessage done [21:53:40]OFDSenderStorePacket 118924 [21:53:40]StoreOFDPacket docnum=118924 [21:53:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 BE 4F 04 01 FD B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 6A 0F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8C D0 01 00 35 04 06 00 9D 55 29 0A AA 30 11 56 1C F0 43 3D A5 32 [21:53:40]CheckFolder [21:53:40]dirname=/storage/ofd_packets [21:53:40]CheckFolder done [21:53:40]ProducePacketName [21:53:40]name=ofd_packets/00118924 [21:53:40]NVStorageSaveData ofd_packets/00118924 [21:53:40]File name is /storage/ofd_packets/00118924 [21:53:40]Write 298 bytes [21:53:40]NVStorageSaveData done [21:53:40]OFDSenderStorePacket done [21:53:40]KKMCreateOFDPacket done [21:53:40]NVStorageSaveData kkm_last_timestamp [21:53:40]File name is /storage/kkm_last_timestamp [21:53:40]Write 4 bytes [21:53:40]NVStorageSaveData done [21:53:40]ExternCall_PrintAddStr [21:53:40]wPrintStart [21:53:40]Write to MH i2c: 01 00 00 C4 83 47 [21:53:40]Write i2c OK [21:53:40]MH_I2C_Read... [21:53:40]Read from MH i2c: 01 [21:53:40]MH_I2C_Read... [21:53:40]Read from MH i2c: 01 07 00 [21:53:40]MH_I2C_Read... [21:53:40]Read from MH i2c: 01 07 00 C4 83 00 00 00 00 00 FF 0F 5C [21:53:40]RasterBufferAndPrint [21:53:40]line Счет N : (1)949835 [21:53:40]line ИНН: 02508201610067 [21:53:40]line Контрольно-Кассовый Чек [21:53:40]line ПРОДАЖА [21:53:40]line ТРК (МРК, ГНК) : 34 [21:53:40]line Товар: 2710194800 [21:53:40]line ДТ-К-5 [21:53:40]line 26.250 * 76.20 [21:53:40]line = 2000.25 [21:53:40]line НДС 12% НСП 1% [21:53:40]line > о реализуемом товаре [21:53:40]line ОКРУГЛЕНИЕ: -0.25 [21:53:40]line ИТОГО: 2000.00 [21:53:40]line НСП 1% : 17.70 [21:53:40]line НДС 12% : 212.42 [21:53:40]line Наличными: 0.00 [21:53:40]line Безнал.: 2000.00 [21:53:40]line Место: АЗС № 134 "Партнер Нефть" [21:53:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:53:40]line СНО: Общий режим [21:53:40]line Чек 300 29.07.2024 21:53 [21:53:40]line Смена: 434 ФФД: 1.0 [21:53:40]line ЗНМ: 0300000044 [21:53:40]line РНМ: 0000000000092660 [21:53:40]line Версия ККМ: 001 [21:53:40]line Платежная система: O! деньги [21:53:40]line ФМ: 0000000000874939 [21:53:40]line ФД: 118924 [21:53:40]line ФПД: 172989086345776 [21:53:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215346&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118924&fm=172989086345776&tin=02508201610067®Number=0000000000092660&sum=200000 [21:53:41]OFD Sender: Processing packet 118924 [packets to send 86, broken 85] [21:53:41]ProducePacketName [21:53:41]name=ofd_packets/00118924 [21:53:41]OFD Sender: To server: pG, [21:53:41]CommunicateWithHost lk.salyk.kg:30040 [21:53:41]ConnectInit lk.salyk.kg [21:53:41]written 0, free lines is 4095 [21:53:41]Connected sock=10 [21:53:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 BE 4F 04 01 FD B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 6A 0F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8C D0 01 00 35 04 06 00 9D 55 29 0A AA 30 11 56 1C F0 43 3D A5 32 [21:53:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 88 E9 47 00 1B 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 34 39 33 39 10 04 04 00 8C D0 01 00 F4 03 04 00 F7 BC A7 66 B6 04 01 00 00 42 06 7A 46 63 34 D9 17 [21:53:41]CommunicateWithHost err = 0 [21:53:41]CheckOFDResponse [21:53:41]1017 (14) - 77093643461234 [21:53:41]1041 (16) - 0000000000874939 [21:53:41]1040 (4) - 118924 [21:53:41]1012 (4) - 29.07.2024 16:01 [21:53:41]1206 (1) - 0 [21:53:41]OFD Sender: Remove packet 118924 [21:53:41]ProducePacketName [21:53:41]name=ofd_packets/00118924 [21:53:41]NVStorageDeleteData [21:53:41]Write to MH i2c: 01 00 00 EE 83 71 [21:53:41]Write i2c OK [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: 01 [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: 01 07 00 [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: 01 07 00 EE 83 00 00 00 00 00 DC 0C 60 [21:53:41]RasterBufferAndPrint [21:53:41]line [21:53:41]line [21:53:41]line [21:53:41]line [21:53:41]line [21:53:41]written 0, free lines is 3298 [21:53:41]MH_Cut [21:53:41]Write to MH i2c: D1 01 00 F5 83 01 4A [21:53:41]Write i2c OK [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: D1 [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: D1 01 00 [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: D1 01 00 F5 83 00 49 [21:53:41]Write to MH i2c: 01 00 00 F6 83 79 [21:53:41]Write i2c OK [21:53:41]MH_I2C_Read... [21:53:41]OFD Sender: No OFD packet to send [21:53:42]*** Cut start [21:53:42]*** Partial cut [21:53:42]*** CUTSNS_PIN = 1 [21:53:42]*** CUTSNS_PIN = 0 [21:53:42]*** Brake cut motor [21:53:42]Read from MH i2c: 01 [21:53:42]MH_I2C_Read... [21:53:42]*** Stop cut motor [21:53:42]*** Cut end [21:53:42]Read from MH i2c: 01 07 00 [21:53:42]MH_I2C_Read... [21:53:42]Read from MH i2c: 01 07 00 F6 83 00 00 00 00 00 FF 0F 8E [21:53:42]process_action close_receipt done [21:53:42]requested_data is exist [21:53:42]produce_requested_data [21:53:42]requested_item fm.sn is exist - process it [21:53:42]wFMCommunicate request_size=4 [21:53:42]MH_SAM_APDU [21:53:42]CAPDU: 80 11 00 00 [21:53:42]Write to MH i2c: E2 08 00 F7 83 80 11 00 00 00 00 00 00 F4 [21:53:42]Write i2c OK [21:53:42]MH_I2C_Read... [21:53:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:42]Read from MH i2c: E2 [21:53:42]MH_I2C_Read... [21:53:42]Read from MH i2c: E2 17 00 [21:53:42]MH_I2C_Read... [21:53:42]Read from MH i2c: E2 17 00 F7 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4F [21:53:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:53:42]wFMCommunicate OK [21:53:42]requested_item fd.num is exist - process it [21:53:42]SAM_PROTO_GetFieldsCounters [21:53:42]wFMCommunicate request_size=4 [21:53:42]MH_SAM_APDU [21:53:42]CAPDU: 80 13 00 00 [21:53:42]Write to MH i2c: E2 08 00 F8 83 80 13 00 00 00 00 00 00 F7 [21:53:42]Write i2c OK [21:53:42]MH_I2C_Read... [21:53:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:43]Read from MH i2c: E2 [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: E2 62 00 [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: E2 62 00 F8 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8C D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 B5 [21:53: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8C D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:53:43]wFMCommunicate OK [21:53:43]SAM_PROTO_GetFieldsCounters done [21:53:43]requested_item shift.num is exist - process it [21:53:43]requested_item shift.opened is exist - process it [21:53:43]req_shift_opened [21:53:43]FM_GetShiftState [21:53:43]SAM_PROTO_GetShiftState [21:53:43]wFMCommunicate request_size=4 [21:53:43]MH_SAM_APDU [21:53:43]CAPDU: 80 13 01 00 [21:53:43]Write to MH i2c: E2 08 00 F9 83 80 13 01 00 00 00 00 00 F9 [21:53:43]Write i2c OK [21:53:43]MH_I2C_Read... [21:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:43]Read from MH i2c: E2 [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: E2 0E 00 [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: E2 0E 00 F9 83 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 27 [21:53:43]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:53:43]wFMCommunicate OK [21:53:43]SAM_PROTO_GetShiftState done [21:53:43]FM_GetShiftState done [21:53:43]req_shift_opened done [21:53:43]requested_item shift.open_date is exist - process it [21:53:43]req_shift_open_date [21:53:43]req_shift_open_date done [21:53:43]produce_requested_data done [21:53:43]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118924,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:53:43]process_action_free close_receipt [21:53:43]json_value_free [21:53:43]json_value_free done [21:53:43]process_json_proto returns [21:53:43]Send response to host [21:53:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118924,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:53:43]free response buf [21:53:43]execute_script done [21:53:43]execute_script returns [21:53:43]free content buf [21:53:43]Sock 9.Close socket [21:53:43]Sock 9.Thread stoped [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:36]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:03]accept exits with 7 [21:55:03]New connection [21:55:03]New thread 3067383140 created [21:55:03]Thread 3067239780 joined [21:55:03]Waiting for new connection... [21:55:03] Sock 7.Parse request [21:55:03]Sock 7.Check first char [21:55:03]Sock 7.First char is OK [21:55:03]request: POST /json_proto HTTP/1.0 [21:55:03]Method: POST [21:55:03]URL: /json_proto [21:55:03]Method is POST - this is cgi request [21:55:03]url: /json_proto [21:55:03]query_string will be loaded in cgi processing [21:55:03]execute_cgi json_proto POST (null) [21:55:03]execute_cgi path=json_proto method=POST [21:55:03]POST find Content-Length [21:55:03]Host: 172.17.45.7:8080 [21:55:03]Content-Length: 679 [21:55:03]Content-Type: application/json [21:55:03] [21:55:03]POST finish read [21:55:03]Found Content-Length = 679 [21:55:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:03]execute_script... [21: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)949837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:03]POST & json_proto [21:55:03]process_json_proto [21:55:03]json parsed OK: [21:55:03]protocol is kg_v1.0 [21:55:03]action value=close_receipt [21:55:03]process_action close_receipt [21:55:03]cmd_close_receipt [21:55:03]MH_GetDate [21:55:03]Write to MH i2c: F0 00 00 FA 83 6C [21:55:03]Write i2c OK [21:55:03]MH_I2C_Read... [21:55:03]Read from MH i2c: F0 [21:55:03]MH_I2C_Read... [21:55:03]Read from MH i2c: F0 09 00 [21:55:03]MH_I2C_Read... [21:55:03]Read from MH i2c: F0 09 00 FA 83 00 BE 0F A8 66 90 0F 3E 66 93 [21:55:03]GetLastDocTimeStamp 1722290026 [21:55:03]current date 1722290110 [21:55:03]FM_GetShiftState [21:55:03]SAM_PROTO_GetShiftState [21:55:03]wFMCommunicate request_size=4 [21:55:03]MH_SAM_APDU [21:55:03]CAPDU: 80 13 01 00 [21:55:03]Write to MH i2c: E2 08 00 FB 83 80 13 01 00 00 00 00 00 FB [21:55:03]Write i2c OK [21:55:03]MH_I2C_Read... [21:55:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:03]Read from MH i2c: E2 [21:55:03]MH_I2C_Read... [21:55:03]Read from MH i2c: E2 0E 00 [21:55:03]MH_I2C_Read... [21:55:03]Read from MH i2c: E2 0E 00 FB 83 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 29 [21:55:03]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:55:03]wFMCommunicate OK [21:55:03]SAM_PROTO_GetShiftState done [21:55:03]FM_GetShiftState done [21:55:03]opened in 1722211641 [21:55:03]opened+sec_in_day 1722298041 [21:55:03]quantity*price = 200025 [21:55:03]sum+1 = 200026 [21:55:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 301 29.07.2024 21:55 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118925 ФПД: 254808670383288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215510&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118925&fm=254808670383288&tin=02508201610067®Number=0000000000092660&sum=200000 [21:55:04]StoreToDocumentArchive [21:55:04]shift 434 fd 118925 [21:55:04]save to /storage/0434/doc_00118925 [21:55:04]save last doc name /storage/0434/doc_00118925 to /storage/kkm_last_doc_name [21:55:04]save OK [21:55:04]Clear old archive folders... [21:55:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:55:04]tlvbuf is 02063890 [21:55:04]SAM_PROTO_ClearQueue [21:55:04]wFMCommunicate request_size=4 [21:55:04]MH_SAM_APDU [21:55:04]CAPDU: 80 09 00 00 [21:55:04]Write to MH i2c: E2 08 00 08 84 80 09 00 00 00 00 00 00 FE [21:55:04]Write i2c OK [21:55:04]MH_I2C_Read... [21:55:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:55:04]Read from MH i2c: E2 [21:55:04]MH_I2C_Read... [21:55:04]Read from MH i2c: E2 03 00 [21:55:04]MH_I2C_Read... [21:55:04]Read from MH i2c: E2 03 00 08 84 00 90 00 00 [21:55:04]RAPDU: 90 00 [21:55:04]wFMCommunicate OK [21:55:04]SAM_PROTO_ClearQueue done [21:55:04]KKMCreateOFDPacket [21:55:04]OFDProtocolAddRootSTLVToBuf [21:55:04]FM_MakeSignedData [21:55:04]FM_MakeSignedData [21:55:04]SAM_PROTO_SignData [21:55:04]wFMCommunicate request_size=4 [21:55:04]MH_SAM_APDU [21:55:04]CAPDU: 80 0D 01 02 [21:55:04]Write to MH i2c: E2 08 00 09 84 80 0D 01 02 00 00 00 00 06 [21:55:04]Write i2c OK [21:55:04]MH_I2C_Read... [21:55:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:55:04]Read from MH i2c: E2 [21:55:04]MH_I2C_Read... [21:55:04]Read from MH i2c: E2 03 00 [21:55:04]MH_I2C_Read... [21:55:04]Read from MH i2c: E2 03 00 09 84 00 90 00 01 [21:55:04]RAPDU: 90 00 [21:55:04]wFMCommunicate OK [21:55:04]wFMCommunicate request_size=255 [21:55:04]MH_SAM_APDU [21:55:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 BE 0F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8D D0 01 00 35 04 06 00 E7 BF 44 48 [21:55:04]Write to MH i2c: E2 02 01 0A 84 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 BE 0F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8D D0 01 00 35 04 06 00 E7 BF 44 48 00 00 D0 [21:55:04]Write i2c OK [21:55:04]MH_I2C_Read... [21:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:04]Read from MH i2c: E2 [21:55:04]MH_I2C_Read... [21:55:04]Read from MH i2c: E2 03 00 [21:55:04]MH_I2C_Read... [21:55:04]Read from MH i2c: E2 03 00 0A 84 00 90 00 02 [21:55:04]RAPDU: 90 00 [21:55:04]wFMCommunicate OK [21:55:04]wFMCommunicate request_size=7 [21:55:04]MH_SAM_APDU [21:55:04]CAPDU: 80 0D 02 02 02 AC B8 [21:55:04]Write to MH i2c: E2 0A 00 0B 84 80 0D 02 02 02 00 AC B8 00 00 71 [21:55:04]Write i2c OK [21:55:04]MH_I2C_Read... [21:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:04]Read from MH i2c: E2 [21:55:04]MH_I2C_Read... [21:55:04]Read from MH i2c: E2 03 00 [21:55:04]MH_I2C_Read... [21:55:04]Read from MH i2c: E2 03 00 0B 84 00 90 00 03 [21:55:04]RAPDU: 90 00 [21:55:04]wFMCommunicate OK [21:55:04]wFMCommunicate request_size=4 [21:55:04]MH_SAM_APDU [21:55:04]CAPDU: 80 0D 03 02 [21:55:04]Write to MH i2c: E2 08 00 0C 84 80 0D 03 02 00 00 00 00 0B [21:55:04]Write i2c OK [21:55:04]MH_I2C_Read... [21:55:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:55:04]Read from MH i2c: E2 [21:55:04]MH_I2C_Read... [21:55:04]Read from MH i2c: E2 0B 00 [21:55:04]MH_I2C_Read... [21:55:04]Read from MH i2c: E2 0B 00 0C 84 00 DF 4D E2 D6 E0 14 58 26 90 00 62 [21:55:04]RAPDU: DF 4D E2 D6 E0 14 58 26 90 00 [21:55:04]wFMCommunicate OK [21:55:04]SAM_PROTO_SignData done [21:55:04]FM_MakeSignedData done [21:55:04]CreateOFDProtocolMessage [21:55:04]wFMCommunicate request_size=4 [21:55:04]MH_SAM_APDU [21:55:04]CAPDU: 80 11 00 00 [21:55:04]Write to MH i2c: E2 08 00 0D 84 80 11 00 00 00 00 00 00 0B [21:55:04]Write i2c OK [21:55:04]MH_I2C_Read... [21:55:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:04]Read from MH i2c: E2 [21:55:04]MH_I2C_Read... [21:55:04]Read from MH i2c: E2 17 00 [21:55:04]MH_I2C_Read... [21:55:04]Read from MH i2c: E2 17 00 0D 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 66 [21:55:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:55:04]wFMCommunicate OK [21:55:04]CreateOFDProtocolMessage done [21:55:04]OFDSenderStorePacket 118925 [21:55:04]StoreOFDPacket docnum=118925 [21:55:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5D E2 04 01 22 31 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 BE 0F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8D D0 01 00 35 04 06 00 E7 BF 44 48 AC B8 DF 4D E2 D6 E0 14 58 26 [21:55:04]CheckFolder [21:55:04]dirname=/storage/ofd_packets [21:55:04]CheckFolder done [21:55:04]ProducePacketName [21:55:04]name=ofd_packets/00118925 [21:55:04]NVStorageSaveData ofd_packets/00118925 [21:55:04]File name is /storage/ofd_packets/00118925 [21:55:04]Write 298 bytes [21:55:04]NVStorageSaveData done [21:55:04]OFDSenderStorePacket done [21:55:04]KKMCreateOFDPacket done [21:55:04]NVStorageSaveData kkm_last_timestamp [21:55:04]File name is /storage/kkm_last_timestamp [21:55:04]Write 4 bytes [21:55:04]NVStorageSaveData done [21:55:04]ExternCall_PrintAddStr [21:55:04]wPrintStart [21:55:04]Write to MH i2c: 01 00 00 0E 84 92 [21:55:04]Write i2c OK [21:55:04]MH_I2C_Read... [21:55:04]Read from MH i2c: 01 [21:55:04]MH_I2C_Read... [21:55:04]Read from MH i2c: 01 07 00 [21:55:04]MH_I2C_Read... [21:55:04]Read from MH i2c: 01 07 00 0E 84 00 00 00 00 00 FF 0F A7 [21:55:04]RasterBufferAndPrint [21:55:04]line Счет N : (1)949837 [21:55:04]line ИНН: 02508201610067 [21:55:04]line Контрольно-Кассовый Чек [21:55:04]line ПРОДАЖА [21:55:04]line ТРК (МРК, ГНК) : 34 [21:55:04]line Товар: 2710194800 [21:55:04]line ДТ-К-5 [21:55:04]line 26.250 * 76.20 [21:55:04]line = 2000.25 [21:55:04]line НДС 12% НСП 1% [21:55:04]line > о реализуемом товаре [21:55:04]line ОКРУГЛЕНИЕ: -0.25 [21:55:04]line ИТОГО: 2000.00 [21:55:04]line Внесено: 2000.00 [21:55:04]line СДАЧА: 0.00 [21:55:04]line НСП 1% : 17.70 [21:55:04]line НДС 12% : 212.42 [21:55:04]line Наличными: 2000.00 [21:55:04]line Безнал.: 0.00 [21:55:04]line Место: АЗС № 134 "Партнер Нефть" [21:55:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:55:04]line СНО: Общий режим [21:55:04]line Чек 301 29.07.2024 21:55 [21:55:04]line Смена: 434 ФФД: 1.0 [21:55:04]line ЗНМ: 0300000044 [21:55:04]line РНМ: 0000000000092660 [21:55:04]line Версия ККМ: 001 [21:55:04]line ФМ: 0000000000874939 [21:55:04]line ФД: 118925 [21:55:04]line ФПД: 254808670383288 [21:55:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215510&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118925&fm=254808670383288&tin=02508201610067®Number=0000000000092660&sum=200000 [21:55:05]OFD Sender: Processing packet 118925 [packets to send 86, broken 85] [21:55:05]ProducePacketName [21:55:05]name=ofd_packets/00118925 [21:55:05]OFD Sender: To server: pG, [21:55:05]CommunicateWithHost lk.salyk.kg:30040 [21:55:05]ConnectInit lk.salyk.kg [21:55:05]written 0, free lines is 4095 [21:55:05]Connected sock=11 [21:55:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5D E2 04 01 22 31 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 BE 0F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8D D0 01 00 35 04 06 00 E7 BF 44 48 AC B8 DF 4D E2 D6 E0 14 58 26 [21:55:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 38 A6 47 00 55 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8D D0 01 00 F4 03 04 00 4B BD A7 66 B6 04 01 00 00 21 43 4F C8 46 96 35 CC [21:55:05]CommunicateWithHost err = 0 [21:55:05]CheckOFDResponse [21:55:05]1017 (14) - 77093643461234 [21:55:05]1041 (16) - 0000000000874939 [21:55:05]1040 (4) - 118925 [21:55:05]1012 (4) - 29.07.2024 16:03 [21:55:05]1206 (1) - 0 [21:55:05]OFD Sender: Remove packet 118925 [21:55:05]ProducePacketName [21:55:05]name=ofd_packets/00118925 [21:55:05]NVStorageDeleteData [21:55:05]Write to MH i2c: 01 00 00 38 84 BC [21:55:05]Write i2c OK [21:55:05]MH_I2C_Read... [21:55:05]Read from MH i2c: 01 [21:55:05]MH_I2C_Read... [21:55:05]Read from MH i2c: 01 07 00 [21:55:05]MH_I2C_Read... [21:55:05]Read from MH i2c: 01 07 00 38 84 00 00 00 00 00 E1 0C B0 [21:55:05]RasterBufferAndPrint [21:55:05]line [21:55:05]line [21:55:05]line [21:55:05]line [21:55:05]line [21:55:05]written 0, free lines is 3302 [21:55:05]MH_Cut [21:55:05]Write to MH i2c: D1 01 00 3F 84 01 95 [21:55:05]Write i2c OK [21:55:05]MH_I2C_Read... [21:55:05]Read from MH i2c: D1 [21:55:05]MH_I2C_Read... [21:55:05]Read from MH i2c: D1 01 00 [21:55:05]MH_I2C_Read... [21:55:05]Read from MH i2c: D1 01 00 3F 84 00 94 [21:55:05]Write to MH i2c: 01 00 00 40 84 C4 [21:55:05]Write i2c OK [21:55:05]MH_I2C_Read... [21:55:06]OFD Sender: No OFD packet to send [21:55:06]*** Cut start [21:55:06]*** Partial cut [21:55:06]*** CUTSNS_PIN = 1 [21:55:06]*** CUTSNS_PIN = 0 [21:55:06]*** Brake cut motor [21:55:07]Read from MH i2c: 01 [21:55:07]MH_I2C_Read... [21:55:07]*** Stop cut motor [21:55:07]*** Cut end [21:55:07]Read from MH i2c: 01 07 00 [21:55:07]MH_I2C_Read... [21:55:07]Read from MH i2c: 01 07 00 40 84 00 00 00 00 00 FF 0F D9 [21:55:07]process_action close_receipt done [21:55:07]requested_data is exist [21:55:07]produce_requested_data [21:55:07]requested_item fm.sn is exist - process it [21:55:07]wFMCommunicate request_size=4 [21:55:07]MH_SAM_APDU [21:55:07]CAPDU: 80 11 00 00 [21:55:07]Write to MH i2c: E2 08 00 41 84 80 11 00 00 00 00 00 00 3F [21:55:07]Write i2c OK [21:55:07]MH_I2C_Read... [21:55:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:07]Read from MH i2c: E2 [21:55:07]MH_I2C_Read... [21:55:07]Read from MH i2c: E2 17 00 [21:55:07]MH_I2C_Read... [21:55:07]Read from MH i2c: E2 17 00 41 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9A [21:55:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:55:07]wFMCommunicate OK [21:55:07]requested_item fd.num is exist - process it [21:55:07]SAM_PROTO_GetFieldsCounters [21:55:07]wFMCommunicate request_size=4 [21:55:07]MH_SAM_APDU [21:55:07]CAPDU: 80 13 00 00 [21:55:07]Write to MH i2c: E2 08 00 42 84 80 13 00 00 00 00 00 00 42 [21:55:07]Write i2c OK [21:55:07]MH_I2C_Read... [21:55:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:55:07]Read from MH i2c: E2 [21:55:07]MH_I2C_Read... [21:55:07]Read from MH i2c: E2 62 00 [21:55:07]MH_I2C_Read... [21:55:07]Read from MH i2c: E2 62 00 42 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8D D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [21: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8D D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:55:07]wFMCommunicate OK [21:55:07]SAM_PROTO_GetFieldsCounters done [21:55:07]requested_item shift.num is exist - process it [21:55:07]requested_item shift.opened is exist - process it [21:55:07]req_shift_opened [21:55:07]FM_GetShiftState [21:55:07]SAM_PROTO_GetShiftState [21:55:07]wFMCommunicate request_size=4 [21:55:07]MH_SAM_APDU [21:55:07]CAPDU: 80 13 01 00 [21:55:07]Write to MH i2c: E2 08 00 43 84 80 13 01 00 00 00 00 00 44 [21:55:07]Write i2c OK [21:55:07]MH_I2C_Read... [21:55:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:07]Read from MH i2c: E2 [21:55:07]MH_I2C_Read... [21:55:07]Read from MH i2c: E2 0E 00 [21:55:07]MH_I2C_Read... [21:55:07]Read from MH i2c: E2 0E 00 43 84 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 72 [21:55:07]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:55:07]wFMCommunicate OK [21:55:07]SAM_PROTO_GetShiftState done [21:55:07]FM_GetShiftState done [21:55:07]req_shift_opened done [21:55:07]requested_item shift.open_date is exist - process it [21:55:07]req_shift_open_date [21:55:07]req_shift_open_date done [21:55:07]produce_requested_data done [21:55:07]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118925,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:55:07]process_action_free close_receipt [21:55:07]json_value_free [21:55:07]json_value_free done [21:55:07]process_json_proto returns [21:55:07]Send response to host [21:55:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118925,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:55:07]free response buf [21:55:07]execute_script done [21:55:07]execute_script returns [21:55:07]free content buf [21:55:07]Sock 7.Close socket [21:55:07]Sock 7.Thread stoped [21:55:10]accept exits with 9 [21:55:10]New connection [21:55:10]New thread 3067239780 created [21:55:10]Thread 3067383140 joined [21:55:10]Waiting for new connection... [21:55:10] Sock 9.Parse request [21:55:10]Sock 9.Check first char [21:55:10]Sock 9.First char is OK [21:55:10]request: POST /json_proto HTTP/1.0 [21:55:10]Method: POST [21:55:10]URL: /json_proto [21:55:10]Method is POST - this is cgi request [21:55:10]url: /json_proto [21:55:10]query_string will be loaded in cgi processing [21:55:10]execute_cgi json_proto POST (null) [21:55:10]execute_cgi path=json_proto method=POST [21:55:10]POST find Content-Length [21:55:10]Host: 172.17.45.7:8080 [21:55:10]Content-Length: 736 [21:55:10]Content-Type: application/json [21:55:10] [21:55:10]POST finish read [21:55:10]Found Content-Length = 736 [21:55:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118925, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:10]execute_script... [21:55:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118925, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:10]POST & json_proto [21:55:10]process_json_proto [21:55:10]json parsed OK: [21:55:10]protocol is kg_v1.0 [21:55:10]action value=close_receipt [21:55:10]process_action close_receipt [21:55:10]cmd_close_receipt [21:55:10]MH_GetDate [21:55:10]Write to MH i2c: F0 00 00 44 84 B7 [21:55:10]Write i2c OK [21:55:10]MH_I2C_Read... [21:55:10]Read from MH i2c: F0 [21:55:10]MH_I2C_Read... [21:55:10]Read from MH i2c: F0 09 00 [21:55:10]MH_I2C_Read... [21:55:10]Read from MH i2c: F0 09 00 44 84 00 C5 0F A8 66 90 0F 3E 66 E5 [21:55:10]GetLastDocTimeStamp 1722290110 [21:55:10]current date 1722290117 [21:55:10]FM_GetShiftState [21:55:10]SAM_PROTO_GetShiftState [21:55:10]wFMCommunicate request_size=4 [21:55:10]MH_SAM_APDU [21:55:10]CAPDU: 80 13 01 00 [21:55:10]Write to MH i2c: E2 08 00 45 84 80 13 01 00 00 00 00 00 46 [21:55:10]Write i2c OK [21:55:10]MH_I2C_Read... [21:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:10]Read from MH i2c: E2 [21:55:10]MH_I2C_Read... [21:55:10]Read from MH i2c: E2 0E 00 [21:55:10]MH_I2C_Read... [21:55:10]Read from MH i2c: E2 0E 00 45 84 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 74 [21:55:10]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:55:10]wFMCommunicate OK [21:55:10]SAM_PROTO_GetShiftState done [21:55:10]FM_GetShiftState done [21:55:10]opened in 1722211641 [21:55:10]opened+sec_in_day 1722298041 [21:55:10]quantity*price = 200025 [21:55:10]sum+1 = 200026 [21:55:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 302 29.07.2024 21:55 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 118925 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 118926 ФПД: 69912845718511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215517&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118926&fm=69912845718511&tin=02508201610067®Number=0000000000092660&sum=200000 [21:55:11]StoreToDocumentArchive [21:55:11]shift 434 fd 118926 [21:55:11]save to /storage/0434/doc_00118926 [21:55:11]save last doc name /storage/0434/doc_00118926 to /storage/kkm_last_doc_name [21:55:11]save OK [21:55:11]Clear old archive folders... [21:55:11]ProcessDocumentItem done err = 0, tmpTLVsize=276 [21:55:11]tlvbuf is 01E54740 [21:55:11]SAM_PROTO_ClearQueue [21:55:11]wFMCommunicate request_size=4 [21:55:11]MH_SAM_APDU [21:55:11]CAPDU: 80 09 00 00 [21:55:11]Write to MH i2c: E2 08 00 54 84 80 09 00 00 00 00 00 00 4A [21:55:11]Write i2c OK [21:55:11]MH_I2C_Read... [21:55:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:55:11]Read from MH i2c: E2 [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: E2 03 00 [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: E2 03 00 54 84 00 90 00 4C [21:55:11]RAPDU: 90 00 [21:55:11]wFMCommunicate OK [21:55:11]SAM_PROTO_ClearQueue done [21:55:11]KKMCreateOFDPacket [21:55:11]OFDProtocolAddRootSTLVToBuf [21:55:11]FM_MakeSignedData [21:55:11]FM_MakeSignedData [21:55:11]SAM_PROTO_SignData [21:55:11]wFMCommunicate request_size=4 [21:55:11]MH_SAM_APDU [21:55:11]CAPDU: 80 0D 01 02 [21:55:11]Write to MH i2c: E2 08 00 55 84 80 0D 01 02 00 00 00 00 52 [21:55:11]Write i2c OK [21:55:11]MH_I2C_Read... [21:55:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:55:11]Read from MH i2c: E2 [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: E2 03 00 [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: E2 03 00 55 84 00 90 00 4D [21:55:11]RAPDU: 90 00 [21:55:11]wFMCommunicate OK [21:55:11]wFMCommunicate request_size=255 [21:55:11]MH_SAM_APDU [21:55:11]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 C5 0F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 8D D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 [21:55:11]Write to MH i2c: E2 02 01 56 84 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 C5 0F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 8D D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 00 00 E4 [21:55:11]Write i2c OK [21:55:11]MH_I2C_Read... [21:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:12]Read from MH i2c: E2 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 03 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 03 00 56 84 00 90 00 4E [21:55:12]RAPDU: 90 00 [21:55:12]wFMCommunicate OK [21:55:12]wFMCommunicate request_size=35 [21:55:12]MH_SAM_APDU [21:55:12]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8E D0 01 00 35 04 06 00 3F 95 DA 55 93 EF [21:55:12]Write to MH i2c: E2 26 00 57 84 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8E D0 01 00 35 04 06 00 3F 95 DA 55 93 EF 00 00 34 [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:12]Read from MH i2c: E2 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 03 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 03 00 57 84 00 90 00 4F [21:55:12]RAPDU: 90 00 [21:55:12]wFMCommunicate OK [21:55:12]wFMCommunicate request_size=4 [21:55:12]MH_SAM_APDU [21:55:12]CAPDU: 80 0D 03 02 [21:55:12]Write to MH i2c: E2 08 00 58 84 80 0D 03 02 00 00 00 00 57 [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:55:12]Read from MH i2c: E2 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 0B 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 0B 00 58 84 00 4A CB 80 E8 96 BA 63 82 90 00 0A [21:55:12]RAPDU: 4A CB 80 E8 96 BA 63 82 90 00 [21:55:12]wFMCommunicate OK [21:55:12]SAM_PROTO_SignData done [21:55:12]FM_MakeSignedData done [21:55:12]CreateOFDProtocolMessage [21:55:12]wFMCommunicate request_size=4 [21:55:12]MH_SAM_APDU [21:55:12]CAPDU: 80 11 00 00 [21:55:12]Write to MH i2c: E2 08 00 59 84 80 11 00 00 00 00 00 00 57 [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:12]Read from MH i2c: E2 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 17 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: E2 17 00 59 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B2 [21:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:55:12]wFMCommunicate OK [21:55:12]CreateOFDProtocolMessage done [21:55:12]OFDSenderStorePacket 118926 [21:55:12]StoreOFDPacket docnum=118926 [21:55:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 12 58 20 01 4F 7C 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 C5 0F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 8D D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8E D0 01 00 35 04 06 00 3F 95 DA 55 93 EF 4A CB 80 E8 96 BA 63 82 [21:55:12]CheckFolder [21:55:12]dirname=/storage/ofd_packets [21:55:12]CheckFolder done [21:55:12]ProducePacketName [21:55:12]name=ofd_packets/00118926 [21:55:12]NVStorageSaveData ofd_packets/00118926 [21:55:12]File name is /storage/ofd_packets/00118926 [21:55:12]Write 326 bytes [21:55:12]NVStorageSaveData done [21:55:12]OFDSenderStorePacket done [21:55:12]KKMCreateOFDPacket done [21:55:12]NVStorageSaveData kkm_last_timestamp [21:55:12]File name is /storage/kkm_last_timestamp [21:55:12]Write 4 bytes [21:55:12]NVStorageSaveData done [21:55:12]ExternCall_PrintAddStr [21:55:12]wPrintStart [21:55:12]Write to MH i2c: 01 00 00 5A 84 DE [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: 01 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: 01 07 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: 01 07 00 5A 84 00 00 00 00 00 FF 0F F3 [21:55:12]RasterBufferAndPrint [21:55:12]line Счет N : (1)949837 [21:55:12]line ИНН: 02508201610067 [21:55:12]line Контрольно-Кассовый Чек [21:55:12]line ВОЗВРАТ ПРОДАЖИ [21:55:12]line ТРК (МРК, ГНК) : 34 [21:55:12]line Товар: 2710194800 [21:55:12]line ДТ-К-5 [21:55:12]line 26.250 * 76.20 [21:55:12]line = 2000.25 [21:55:12]line НДС 12% НСП 1% [21:55:12]line > о реализуемом товаре [21:55:12]line ОКРУГЛЕНИЕ: -0.25 [21:55:12]line ИТОГО: 2000.00 [21:55:12]line НСП 1% : 17.70 [21:55:12]line НДС 12% : 212.42 [21:55:12]line Наличными: 2000.00 [21:55:12]line Безнал.: 0.00 [21:55:12]line Место: АЗС № 134 "Партнер Нефть" [21:55:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:55:12]line СНО: Общий режим [21:55:12]line Чек 302 29.07.2024 21:55 [21:55:12]line Смена: 434 ФФД: 1.0 [21:55:12]line ЗНМ: 0300000044 [21:55:12]line РНМ: 0000000000092660 [21:55:12]line Версия ККМ: 001 [21:55:12]line ФД осн.: 118925 [21:55:12]line ФМ осн.: 0000000000874939 [21:55:12]line ФМ: 0000000000874939 [21:55:12]line ФД: 118926 [21:55:12]line ФПД: 69912845718511 [21:55:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215517&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118926&fm=69912845718511&tin=02508201610067®Number=0000000000092660&sum=200000 [21:55:12]written 0, free lines is 4095 [21:55:12]OFD Sender: Processing packet 118926 [packets to send 86, broken 85] [21:55:12]ProducePacketName [21:55:12]name=ofd_packets/00118926 [21:55:12]OFD Sender: To server: pG, [21:55:12]CommunicateWithHost lk.salyk.kg:30040 [21:55:12]ConnectInit lk.salyk.kg [21:55:12]Connected sock=10 [21:55:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 12 58 20 01 4F 7C 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 C5 0F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 8D D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8E D0 01 00 35 04 06 00 3F 95 DA 55 93 EF 4A CB 80 E8 96 BA 63 82 [21:55:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 38 DE 47 00 98 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 34 39 33 39 10 04 04 00 8E D0 01 00 F4 03 04 00 52 BD A7 66 B6 04 01 00 00 0F F9 7C E7 CB 70 6D 5C [21:55:12]CommunicateWithHost err = 0 [21:55:12]CheckOFDResponse [21:55:12]1017 (14) - 77093643461234 [21:55:12]1041 (16) - 0000000000874939 [21:55:12]1040 (4) - 118926 [21:55:12]1012 (4) - 29.07.2024 16:03 [21:55:12]1206 (1) - 0 [21:55:12]OFD Sender: Remove packet 118926 [21:55:12]ProducePacketName [21:55:12]name=ofd_packets/00118926 [21:55:12]NVStorageDeleteData [21:55:12]Write to MH i2c: 01 00 00 84 84 08 [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: 01 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: 01 07 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: 01 07 00 84 84 00 00 00 00 00 02 0D 1E [21:55:12]RasterBufferAndPrint [21:55:12]line [21:55:12]line [21:55:12]line [21:55:12]line [21:55:12]line [21:55:12]written 0, free lines is 3341 [21:55:12]MH_Cut [21:55:12]Write to MH i2c: D1 01 00 8B 84 01 E1 [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: D1 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: D1 01 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: D1 01 00 8B 84 00 E0 [21:55:12]Write to MH i2c: 01 00 00 8C 84 10 [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:13]OFD Sender: No OFD packet to send [21:55:13]*** Cut start [21:55:13]*** Partial cut [21:55:13]*** CUTSNS_PIN = 1 [21:55:13]*** CUTSNS_PIN = 0 [21:55:13]*** Brake cut motor [21:55:14]Read from MH i2c: 01 [21:55:14]MH_I2C_Read... [21:55:14]*** Stop cut motor [21:55:14]*** Cut end [21:55:14]Read from MH i2c: 01 07 00 [21:55:14]MH_I2C_Read... [21:55:14]Read from MH i2c: 01 07 00 8C 84 00 00 00 00 00 FF 0F 25 [21:55:14]process_action close_receipt done [21:55:14]requested_data is exist [21:55:14]produce_requested_data [21:55:14]requested_item fm.sn is exist - process it [21:55:14]wFMCommunicate request_size=4 [21:55:14]MH_SAM_APDU [21:55:14]CAPDU: 80 11 00 00 [21:55:14]Write to MH i2c: E2 08 00 8D 84 80 11 00 00 00 00 00 00 8B [21:55:14]Write i2c OK [21:55:14]MH_I2C_Read... [21:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:14]Read from MH i2c: E2 [21:55:14]MH_I2C_Read... [21:55:14]Read from MH i2c: E2 17 00 [21:55:14]MH_I2C_Read... [21:55:14]Read from MH i2c: E2 17 00 8D 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E6 [21:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:55:14]wFMCommunicate OK [21:55:14]requested_item fd.num is exist - process it [21:55:14]SAM_PROTO_GetFieldsCounters [21:55:14]wFMCommunicate request_size=4 [21:55:14]MH_SAM_APDU [21:55:14]CAPDU: 80 13 00 00 [21:55:14]Write to MH i2c: E2 08 00 8E 84 80 13 00 00 00 00 00 00 8E [21:55:14]Write i2c OK [21:55:14]MH_I2C_Read... [21:55:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:55:14]Read from MH i2c: E2 [21:55:14]MH_I2C_Read... [21:55:14]Read from MH i2c: E2 62 00 [21:55:14]MH_I2C_Read... [21:55:14]Read from MH i2c: E2 62 00 8E 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8E D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 54 [21:55:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8E D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:55:14]wFMCommunicate OK [21:55:14]SAM_PROTO_GetFieldsCounters done [21:55:14]requested_item shift.num is exist - process it [21:55:14]requested_item shift.opened is exist - process it [21:55:14]req_shift_opened [21:55:14]FM_GetShiftState [21:55:14]SAM_PROTO_GetShiftState [21:55:14]wFMCommunicate request_size=4 [21:55:14]MH_SAM_APDU [21:55:14]CAPDU: 80 13 01 00 [21:55:14]Write to MH i2c: E2 08 00 8F 84 80 13 01 00 00 00 00 00 90 [21:55:14]Write i2c OK [21:55:14]MH_I2C_Read... [21:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:14]Read from MH i2c: E2 [21:55:14]MH_I2C_Read... [21:55:14]Read from MH i2c: E2 0E 00 [21:55:14]MH_I2C_Read... [21:55:14]Read from MH i2c: E2 0E 00 8F 84 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 BE [21:55:14]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:55:14]wFMCommunicate OK [21:55:14]SAM_PROTO_GetShiftState done [21:55:14]FM_GetShiftState done [21:55:14]req_shift_opened done [21:55:14]requested_item shift.open_date is exist - process it [21:55:14]req_shift_open_date [21:55:14]req_shift_open_date done [21:55:14]produce_requested_data done [21:55:14]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118926,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:55:14]process_action_free close_receipt [21:55:14]json_value_free [21:55:14]json_value_free done [21:55:14]process_json_proto returns [21:55:14]Send response to host [21:55:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118926,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:55:14]free response buf [21:55:14]execute_script done [21:55:14]execute_script returns [21:55:14]free content buf [21:55:14]Sock 9.Close socket [21:55:14]Sock 9.Thread stoped [21:55:18]OFD Sender: No OFD packet to send [21:55:23]OFD Sender: No OFD packet to send [21:55:28]OFD Sender: No OFD packet to send [21:55:33]OFD Sender: No OFD packet to send [21:55:38]OFD Sender: No OFD packet to send [21:55:43]OFD Sender: No OFD packet to send [21:55:48]OFD Sender: No OFD packet to send [21:55:53]OFD Sender: No OFD packet to send [21:55:58]OFD Sender: No OFD packet to send [21:56:03]OFD Sender: No OFD packet to send [21:56:08]OFD Sender: No OFD packet to send [21:56:13]OFD Sender: No OFD packet to send [21:56:18]OFD Sender: No OFD packet to send [21:56:23]OFD Sender: No OFD packet to send [21:56:28]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:03]OFD Sender: No OFD packet to send [21:57:08]OFD Sender: No OFD packet to send [21:57:13]OFD Sender: No OFD packet to send [21:57:18]OFD Sender: No OFD packet to send [21:57:23]OFD Sender: No OFD packet to send [21:57:28]OFD Sender: No OFD packet to send [21:57:33]OFD Sender: No OFD packet to send [21:57:38]OFD Sender: No OFD packet to send [21:57:43]OFD Sender: No OFD packet to send [21:57:48]OFD Sender: No OFD packet to send [21:57:53]OFD Sender: No OFD packet to send [21:57:58]OFD Sender: No OFD packet to send [21:58:03]OFD Sender: No OFD packet to send [21:58:08]OFD Sender: No OFD packet to send [21:58:13]OFD Sender: No OFD packet to send [21:58:15]accept exits with 7 [21:58:15]New connection [21:58:15]New thread 3067383140 created [21:58:15]Thread 3067239780 joined [21:58:15]Waiting for new connection... [21:58:15] Sock 7.Parse request [21:58:15]Sock 7.Check first char [21:58:15]Sock 7.First char is OK [21:58:15]request: POST /json_proto HTTP/1.0 [21:58:15]Method: POST [21:58:15]URL: /json_proto [21:58:15]Method is POST - this is cgi request [21:58:15]url: /json_proto [21:58:15]query_string will be loaded in cgi processing [21:58:15]execute_cgi json_proto POST (null) [21:58:15]execute_cgi path=json_proto method=POST [21:58:15]POST find Content-Length [21:58:15]Host: 172.17.45.7:8080 [21:58:15]Content-Length: 640 [21:58:15]Content-Type: application/json [21:58:15] [21:58:15]POST finish read [21:58:15]Found Content-Length = 640 [21:58:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 115.000, "sum" : 8763.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 8763.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:15]execute_script... [21:58:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 115.000, "sum" : 8763.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 8763.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:15]POST & json_proto [21:58:15]process_json_proto [21:58:15]json parsed OK: [21:58:15]protocol is kg_v1.0 [21:58:15]action value=close_receipt [21:58:15]process_action close_receipt [21:58:15]cmd_close_receipt [21:58:15]MH_GetDate [21:58:15]Write to MH i2c: F0 00 00 90 84 03 [21:58:15]Write i2c OK [21:58:15]MH_I2C_Read... [21:58:15]Read from MH i2c: F0 [21:58:15]MH_I2C_Read... [21:58:15]Read from MH i2c: F0 09 00 [21:58:15]MH_I2C_Read... [21:58:15]Read from MH i2c: F0 09 00 90 84 00 7E 10 A8 66 90 0F 3E 66 EB [21:58:15]GetLastDocTimeStamp 1722290117 [21:58:15]current date 1722290302 [21:58:15]FM_GetShiftState [21:58:15]SAM_PROTO_GetShiftState [21:58:15]wFMCommunicate request_size=4 [21:58:15]MH_SAM_APDU [21:58:15]CAPDU: 80 13 01 00 [21:58:15]Write to MH i2c: E2 08 00 91 84 80 13 01 00 00 00 00 00 92 [21:58:15]Write i2c OK [21:58:15]MH_I2C_Read... [21:58:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:15]Read from MH i2c: E2 [21:58:15]MH_I2C_Read... [21:58:15]Read from MH i2c: E2 0E 00 [21:58:15]MH_I2C_Read... [21:58:15]Read from MH i2c: E2 0E 00 91 84 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C0 [21:58:15]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:58:15]wFMCommunicate OK [21:58:15]SAM_PROTO_GetShiftState done [21:58:15]FM_GetShiftState done [21:58:15]opened in 1722211641 [21:58:15]opened+sec_in_day 1722298041 [21:58:15]quantity*price = 876300 [21:58:15]sum+1 = 876301 [21:58:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8763.00 НСП 1% : 77.55 НДС 12% : 930.58 Наличными: 8763.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 303 29.07.2024 21:58 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118927 ФПД: 103047380067839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215822&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118927&fm=103047380067839&tin=02508201610067®Number=0000000000092660&sum=876300 [21:58:16]StoreToDocumentArchive [21:58:16]shift 434 fd 118927 [21:58:16]save to /storage/0434/doc_00118927 [21:58:16]save last doc name /storage/0434/doc_00118927 to /storage/kkm_last_doc_name [21:58:16]save OK [21:58:16]Clear old archive folders... [21:58:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:58:16]tlvbuf is 02105C60 [21:58:16]SAM_PROTO_ClearQueue [21:58:16]wFMCommunicate request_size=4 [21:58:16]MH_SAM_APDU [21:58:16]CAPDU: 80 09 00 00 [21:58:16]Write to MH i2c: E2 08 00 9E 84 80 09 00 00 00 00 00 00 94 [21:58:16]Write i2c OK [21:58:16]MH_I2C_Read... [21:58:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:16]Read from MH i2c: E2 [21:58:16]MH_I2C_Read... [21:58:16]Read from MH i2c: E2 03 00 [21:58:16]MH_I2C_Read... [21:58:16]Read from MH i2c: E2 03 00 9E 84 00 90 00 96 [21:58:16]RAPDU: 90 00 [21:58:16]wFMCommunicate OK [21:58:16]SAM_PROTO_ClearQueue done [21:58:16]KKMCreateOFDPacket [21:58:16]OFDProtocolAddRootSTLVToBuf [21:58:16]FM_MakeSignedData [21:58:16]FM_MakeSignedData [21:58:16]SAM_PROTO_SignData [21:58:16]wFMCommunicate request_size=4 [21:58:16]MH_SAM_APDU [21:58:16]CAPDU: 80 0D 01 02 [21:58:16]Write to MH i2c: E2 08 00 9F 84 80 0D 01 02 00 00 00 00 9C [21:58:16]Write i2c OK [21:58:16]MH_I2C_Read... [21:58:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:16]Read from MH i2c: E2 [21:58:16]MH_I2C_Read... [21:58:16]Read from MH i2c: E2 03 00 [21:58:16]MH_I2C_Read... [21:58:16]Read from MH i2c: E2 03 00 9F 84 00 90 00 97 [21:58:16]RAPDU: 90 00 [21:58:16]wFMCommunicate OK [21:58:16]wFMCommunicate request_size=255 [21:58:16]MH_SAM_APDU [21:58:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 38 C1 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0C 5F 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 5F 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 6B 01 00 00 00 07 04 06 00 0C 5F 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 7E 10 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8F D0 01 00 35 04 06 00 5D B8 96 7B [21:58:16]Write to MH i2c: E2 02 01 A0 84 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 38 C1 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0C 5F 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 5F 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 6B 01 00 00 00 07 04 06 00 0C 5F 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 7E 10 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8F D0 01 00 35 04 06 00 5D B8 96 7B 00 00 A3 [21:58:16]Write i2c OK [21:58:16]MH_I2C_Read... [21:58:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:16]Read from MH i2c: E2 [21:58:16]MH_I2C_Read... [21:58:16]Read from MH i2c: E2 03 00 [21:58:16]MH_I2C_Read... [21:58:16]Read from MH i2c: E2 03 00 A0 84 00 90 00 98 [21:58:16]RAPDU: 90 00 [21:58:16]wFMCommunicate OK [21:58:16]wFMCommunicate request_size=7 [21:58:16]MH_SAM_APDU [21:58:16]CAPDU: 80 0D 02 02 02 E5 FF [21:58:16]Write to MH i2c: E2 0A 00 A1 84 80 0D 02 02 02 00 E5 FF 00 00 87 [21:58:16]Write i2c OK [21:58:16]MH_I2C_Read... [21:58:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:16]Read from MH i2c: E2 [21:58:16]MH_I2C_Read... [21:58:16]Read from MH i2c: E2 03 00 [21:58:16]MH_I2C_Read... [21:58:16]Read from MH i2c: E2 03 00 A1 84 00 90 00 99 [21:58:16]RAPDU: 90 00 [21:58:16]wFMCommunicate OK [21:58:16]wFMCommunicate request_size=4 [21:58:16]MH_SAM_APDU [21:58:16]CAPDU: 80 0D 03 02 [21:58:16]Write to MH i2c: E2 08 00 A2 84 80 0D 03 02 00 00 00 00 A1 [21:58:16]Write i2c OK [21:58:16]MH_I2C_Read... [21:58:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:16]Read from MH i2c: E2 [21:58:16]MH_I2C_Read... [21:58:16]Read from MH i2c: E2 0B 00 [21:58:16]MH_I2C_Read... [21:58:16]Read from MH i2c: E2 0B 00 A2 84 00 85 33 C7 0B 8D 7B A9 84 90 00 61 [21:58:16]RAPDU: 85 33 C7 0B 8D 7B A9 84 90 00 [21:58:16]wFMCommunicate OK [21:58:16]SAM_PROTO_SignData done [21:58:16]FM_MakeSignedData done [21:58:16]CreateOFDProtocolMessage [21:58:16]wFMCommunicate request_size=4 [21:58:16]MH_SAM_APDU [21:58:16]CAPDU: 80 11 00 00 [21:58:16]Write to MH i2c: E2 08 00 A3 84 80 11 00 00 00 00 00 00 A1 [21:58:16]Write i2c OK [21:58:16]MH_I2C_Read... [21:58:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:16]Read from MH i2c: E2 [21:58:16]MH_I2C_Read... [21:58:16]Read from MH i2c: E2 17 00 [21:58:16]MH_I2C_Read... [21:58:16]Read from MH i2c: E2 17 00 A3 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FC [21:58:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:58:16]wFMCommunicate OK [21:58:16]CreateOFDProtocolMessage done [21:58:16]OFDSenderStorePacket 118927 [21:58:16]StoreOFDPacket docnum=118927 [21:58:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B4 76 04 01 58 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 38 C1 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0C 5F 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 5F 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 6B 01 00 00 00 07 04 06 00 0C 5F 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 7E 10 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8F D0 01 00 35 04 06 00 5D B8 96 7B E5 FF 85 33 C7 0B 8D 7B A9 84 [21:58:16]CheckFolder [21:58:16]dirname=/storage/ofd_packets [21:58:16]CheckFolder done [21:58:16]ProducePacketName [21:58:16]name=ofd_packets/00118927 [21:58:16]NVStorageSaveData ofd_packets/00118927 [21:58:16]File name is /storage/ofd_packets/00118927 [21:58:16]Write 298 bytes [21:58:16]NVStorageSaveData done [21:58:16]OFDSenderStorePacket done [21:58:16]KKMCreateOFDPacket done [21:58:16]NVStorageSaveData kkm_last_timestamp [21:58:16]File name is /storage/kkm_last_timestamp [21:58:16]Write 4 bytes [21:58:16]NVStorageSaveData done [21:58:16]ExternCall_PrintAddStr [21:58:16]wPrintStart [21:58:16]Write to MH i2c: 01 00 00 A4 84 28 [21:58:16]Write i2c OK [21:58:16]MH_I2C_Read... [21:58:16]Read from MH i2c: 01 [21:58:16]MH_I2C_Read... [21:58:16]Read from MH i2c: 01 07 00 [21:58:16]MH_I2C_Read... [21:58:16]Read from MH i2c: 01 07 00 A4 84 00 00 00 00 00 FF 0F 3D [21:58:16]RasterBufferAndPrint [21:58:16]line Счет N : (1)949838 [21:58:16]line ИНН: 02508201610067 [21:58:16]line Контрольно-Кассовый Чек [21:58:16]line ПРОДАЖА [21:58:16]line ТРК (МРК, ГНК) : 11 [21:58:16]line Товар: 2710194800 [21:58:16]line ДТ-К-5 [21:58:16]line 115.000 * 76.20 [21:58:16]line = 8763.00 [21:58:16]line НДС 12% НСП 1% [21:58:16]line > о реализуемом товаре [21:58:16]line ИТОГО: 8763.00 [21:58:16]line НСП 1% : 77.55 [21:58:16]line НДС 12% : 930.58 [21:58:16]line Наличными: 8763.00 [21:58:16]line Безнал.: 0.00 [21:58:16]line Место: АЗС № 134 "Партнер Нефть" [21:58:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:58:16]line СНО: Общий режим [21:58:16]line Чек 303 29.07.2024 21:58 [21:58:16]line Смена: 434 ФФД: 1.0 [21:58:16]line ЗНМ: 0300000044 [21:58:16]line РНМ: 0000000000092660 [21:58:16]line Версия ККМ: 001 [21:58:16]line ФМ: 0000000000874939 [21:58:16]line ФД: 118927 [21:58:16]line ФПД: 103047380067839 [21:58:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215822&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118927&fm=103047380067839&tin=02508201610067®Number=0000000000092660&sum=876300 [21:58:17]OFD Sender: Processing packet 118927 [packets to send 86, broken 85] [21:58:17]ProducePacketName [21:58:17]name=ofd_packets/00118927 [21:58:17]OFD Sender: To server: pG, [21:58:17]CommunicateWithHost lk.salyk.kg:30040 [21:58:17]ConnectInit lk.salyk.kg [21:58:17]written 0, free lines is 4095 [21:58:17]Connected sock=9 [21:58:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B4 76 04 01 58 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 38 C1 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0C 5F 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 5F 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 6B 01 00 00 00 07 04 06 00 0C 5F 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 7E 10 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8F D0 01 00 35 04 06 00 5D B8 96 7B E5 FF 85 33 C7 0B 8D 7B A9 84 [21:58:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 12 B9 47 00 8B F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8F D0 01 00 F4 03 04 00 0B BE A7 66 B6 04 01 00 00 10 65 E2 EC D6 46 03 46 [21:58:17]CommunicateWithHost err = 0 [21:58:17]CheckOFDResponse [21:58:17]1017 (14) - 77093643461234 [21:58:17]1041 (16) - 0000000000874939 [21:58:17]1040 (4) - 118927 [21:58:17]1012 (4) - 29.07.2024 16:06 [21:58:17]1206 (1) - 0 [21:58:17]OFD Sender: Remove packet 118927 [21:58:17]ProducePacketName [21:58:17]name=ofd_packets/00118927 [21:58:17]NVStorageDeleteData [21:58:17]Write to MH i2c: 01 00 00 CB 84 4F [21:58:17]Write i2c OK [21:58:17]MH_I2C_Read... [21:58:17]Read from MH i2c: 01 [21:58:17]MH_I2C_Read... [21:58:17]Read from MH i2c: 01 07 00 [21:58:17]MH_I2C_Read... [21:58:17]Read from MH i2c: 01 07 00 CB 84 00 00 00 00 00 1D 0D 80 [21:58:17]RasterBufferAndPrint [21:58:17]line [21:58:17]line [21:58:17]line [21:58:17]line [21:58:17]line [21:58:17]written 0, free lines is 3363 [21:58:17]MH_Cut [21:58:17]Write to MH i2c: D1 01 00 D2 84 01 28 [21:58:17]Write i2c OK [21:58:17]MH_I2C_Read... [21:58:17]Read from MH i2c: D1 [21:58:17]MH_I2C_Read... [21:58:17]Read from MH i2c: D1 01 00 [21:58:17]MH_I2C_Read... [21:58:17]Read from MH i2c: D1 01 00 D2 84 00 27 [21:58:17]Write to MH i2c: 01 00 00 D3 84 57 [21:58:17]Write i2c OK [21:58:17]MH_I2C_Read... [21:58:18]OFD Sender: No OFD packet to send [21:58:18]*** Cut start [21:58:18]*** Partial cut [21:58:18]*** CUTSNS_PIN = 1 [21:58:18]*** CUTSNS_PIN = 0 [21:58:18]*** Brake cut motor [21:58:18]Read from MH i2c: 01 [21:58:18]MH_I2C_Read... [21:58:18]*** Stop cut motor [21:58:18]*** Cut end [21:58:18]Read from MH i2c: 01 07 00 [21:58:18]MH_I2C_Read... [21:58:18]Read from MH i2c: 01 07 00 D3 84 00 00 00 00 00 FF 0F 6C [21:58:18]process_action close_receipt done [21:58:18]requested_data is exist [21:58:18]produce_requested_data [21:58:18]requested_item fm.sn is exist - process it [21:58:18]wFMCommunicate request_size=4 [21:58:18]MH_SAM_APDU [21:58:18]CAPDU: 80 11 00 00 [21:58:18]Write to MH i2c: E2 08 00 D4 84 80 11 00 00 00 00 00 00 D2 [21:58:18]Write i2c OK [21:58:18]MH_I2C_Read... [21:58:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:18]Read from MH i2c: E2 [21:58:18]MH_I2C_Read... [21:58:18]Read from MH i2c: E2 17 00 [21:58:18]MH_I2C_Read... [21:58:18]Read from MH i2c: E2 17 00 D4 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2D [21:58:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:58:18]wFMCommunicate OK [21:58:18]requested_item fd.num is exist - process it [21:58:18]SAM_PROTO_GetFieldsCounters [21:58:18]wFMCommunicate request_size=4 [21:58:18]MH_SAM_APDU [21:58:18]CAPDU: 80 13 00 00 [21:58:18]Write to MH i2c: E2 08 00 D5 84 80 13 00 00 00 00 00 00 D5 [21:58:18]Write i2c OK [21:58:18]MH_I2C_Read... [21:58:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:19]Read from MH i2c: E2 [21:58:19]MH_I2C_Read... [21:58:19]Read from MH i2c: E2 62 00 [21:58:19]MH_I2C_Read... [21:58:19]Read from MH i2c: E2 62 00 D5 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8F D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [21:58:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 8F D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:58:19]wFMCommunicate OK [21:58:19]SAM_PROTO_GetFieldsCounters done [21:58:19]requested_item shift.num is exist - process it [21:58:19]requested_item shift.opened is exist - process it [21:58:19]req_shift_opened [21:58:19]FM_GetShiftState [21:58:19]SAM_PROTO_GetShiftState [21:58:19]wFMCommunicate request_size=4 [21:58:19]MH_SAM_APDU [21:58:19]CAPDU: 80 13 01 00 [21:58:19]Write to MH i2c: E2 08 00 D6 84 80 13 01 00 00 00 00 00 D7 [21:58:19]Write i2c OK [21:58:19]MH_I2C_Read... [21:58:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:19]Read from MH i2c: E2 [21:58:19]MH_I2C_Read... [21:58:19]Read from MH i2c: E2 0E 00 [21:58:19]MH_I2C_Read... [21:58:19]Read from MH i2c: E2 0E 00 D6 84 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 05 [21:58:19]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:58:19]wFMCommunicate OK [21:58:19]SAM_PROTO_GetShiftState done [21:58:19]FM_GetShiftState done [21:58:19]req_shift_opened done [21:58:19]requested_item shift.open_date is exist - process it [21:58:19]req_shift_open_date [21:58:19]req_shift_open_date done [21:58:19]produce_requested_data done [21:58:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118927,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:58:19]process_action_free close_receipt [21:58:19]json_value_free [21:58:19]json_value_free done [21:58:19]process_json_proto returns [21:58:19]Send response to host [21:58:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118927,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:58:19]free response buf [21:58:19]execute_script done [21:58:19]execute_script returns [21:58:19]free content buf [21:58:19]Sock 7.Close socket [21:58:19]Sock 7.Thread stoped [21:58:21]accept exits with 10 [21:58:21]New connection [21:58:21]New thread 3067239780 created [21:58:21]Thread 3067383140 joined [21:58:21]Waiting for new connection... [21:58:21] Sock 10.Parse request [21:58:21]Sock 10.Check first char [21:58:21]Sock 10.First char is OK [21:58:21]request: POST /json_proto HTTP/1.0 [21:58:21]Method: POST [21:58:21]URL: /json_proto [21:58:21]Method is POST - this is cgi request [21:58:21]url: /json_proto [21:58:21]query_string will be loaded in cgi processing [21:58:21]execute_cgi json_proto POST (null) [21:58:21]execute_cgi path=json_proto method=POST [21:58:21]POST find Content-Length [21:58:21]Host: 172.17.45.7:8080 [21:58:21]Content-Length: 697 [21:58:21]Content-Type: application/json [21:58:21] [21:58:21]POST finish read [21:58:21]Found Content-Length = 697 [21:58:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118927, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 115.000, "sum" : 8763.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 8763.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:21]execute_script... [21:58:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118927, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 115.000, "sum" : 8763.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 8763.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:21]POST & json_proto [21:58:21]process_json_proto [21:58:21]json parsed OK: [21:58:21]protocol is kg_v1.0 [21:58:21]action value=close_receipt [21:58:21]process_action close_receipt [21:58:21]cmd_close_receipt [21:58:21]MH_GetDate [21:58:21]Write to MH i2c: F0 00 00 D7 84 4A [21:58:21]Write i2c OK [21:58:21]MH_I2C_Read... [21:58:21]Read from MH i2c: F0 [21:58:21]MH_I2C_Read... [21:58:21]Read from MH i2c: F0 09 00 [21:58:21]MH_I2C_Read... [21:58:21]Read from MH i2c: F0 09 00 D7 84 00 85 10 A8 66 90 0F 3E 66 39 [21:58:21]GetLastDocTimeStamp 1722290302 [21:58:21]current date 1722290309 [21:58:21]FM_GetShiftState [21:58:21]SAM_PROTO_GetShiftState [21:58:21]wFMCommunicate request_size=4 [21:58:21]MH_SAM_APDU [21:58:21]CAPDU: 80 13 01 00 [21:58:21]Write to MH i2c: E2 08 00 D8 84 80 13 01 00 00 00 00 00 D9 [21:58:21]Write i2c OK [21:58:21]MH_I2C_Read... [21:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:21]Read from MH i2c: E2 [21:58:21]MH_I2C_Read... [21:58:21]Read from MH i2c: E2 0E 00 [21:58:21]MH_I2C_Read... [21:58:21]Read from MH i2c: E2 0E 00 D8 84 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 07 [21:58:21]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:58:21]wFMCommunicate OK [21:58:21]SAM_PROTO_GetShiftState done [21:58:21]FM_GetShiftState done [21:58:21]opened in 1722211641 [21:58:21]opened+sec_in_day 1722298041 [21:58:21]quantity*price = 876300 [21:58:21]sum+1 = 876301 [21:58:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8763.00 НСП 1% : 77.55 НДС 12% : 930.58 Наличными: 8763.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 304 29.07.2024 21:58 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 118927 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 118928 ФПД: 113184347317943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215829&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118928&fm=113184347317943&tin=02508201610067®Number=0000000000092660&sum=876300 [21:58:23]StoreToDocumentArchive [21:58:23]shift 434 fd 118928 [21:58:23]save to /storage/0434/doc_00118928 [21:58:23]save last doc name /storage/0434/doc_00118928 to /storage/kkm_last_doc_name [21:58:23]save OK [21:58:23]Clear old archive folders... [21:58:23]ProcessDocumentItem done err = 0, tmpTLVsize=276 [21:58:23]tlvbuf is 02054DC0 [21:58:23]SAM_PROTO_ClearQueue [21:58:23]wFMCommunicate request_size=4 [21:58:23]MH_SAM_APDU [21:58:23]CAPDU: 80 09 00 00 [21:58:23]Write to MH i2c: E2 08 00 E7 84 80 09 00 00 00 00 00 00 DD [21:58:23]Write i2c OK [21:58:23]MH_I2C_Read... [21:58:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:23]Read from MH i2c: E2 [21:58:23]MH_I2C_Read... [21:58:23]Read from MH i2c: E2 03 00 [21:58:23]MH_I2C_Read... [21:58:23]Read from MH i2c: E2 03 00 E7 84 00 90 00 DF [21:58:23]RAPDU: 90 00 [21:58:23]wFMCommunicate OK [21:58:23]SAM_PROTO_ClearQueue done [21:58:23]KKMCreateOFDPacket [21:58:23]OFDProtocolAddRootSTLVToBuf [21:58:23]FM_MakeSignedData [21:58:23]FM_MakeSignedData [21:58:23]SAM_PROTO_SignData [21:58:23]wFMCommunicate request_size=4 [21:58:23]MH_SAM_APDU [21:58:23]CAPDU: 80 0D 01 02 [21:58:23]Write to MH i2c: E2 08 00 E8 84 80 0D 01 02 00 00 00 00 E5 [21:58:23]Write i2c OK [21:58:23]MH_I2C_Read... [21:58:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:23]Read from MH i2c: E2 [21:58:23]MH_I2C_Read... [21:58:23]Read from MH i2c: E2 03 00 [21:58:23]MH_I2C_Read... [21:58:23]Read from MH i2c: E2 03 00 E8 84 00 90 00 E0 [21:58:23]RAPDU: 90 00 [21:58:23]wFMCommunicate OK [21:58:23]wFMCommunicate request_size=255 [21:58:23]MH_SAM_APDU [21:58:23]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 38 C1 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0C 5F 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 5F 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 6B 01 00 00 00 07 04 06 00 0C 5F 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 85 10 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 8F D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 [21:58:23]Write to MH i2c: E2 02 01 E9 84 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 38 C1 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0C 5F 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 5F 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 6B 01 00 00 00 07 04 06 00 0C 5F 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 85 10 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 8F D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 00 00 C0 [21:58:23]Write i2c OK [21:58:23]MH_I2C_Read... [21:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:23]Read from MH i2c: E2 [21:58:23]MH_I2C_Read... [21:58:23]Read from MH i2c: E2 03 00 [21:58:23]MH_I2C_Read... [21:58:23]Read from MH i2c: E2 03 00 E9 84 00 90 00 E1 [21:58:23]RAPDU: 90 00 [21:58:23]wFMCommunicate OK [21:58:23]wFMCommunicate request_size=35 [21:58:23]MH_SAM_APDU [21:58:23]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 90 D0 01 00 35 04 06 00 66 F0 C8 D0 E6 B7 [21:58:23]Write to MH i2c: E2 26 00 EA 84 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 90 D0 01 00 35 04 06 00 66 F0 C8 D0 E6 B7 00 00 CF [21:58:23]Write i2c OK [21:58:23]MH_I2C_Read... [21:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:23]Read from MH i2c: E2 [21:58:23]MH_I2C_Read... [21:58:23]Read from MH i2c: E2 03 00 [21:58:23]MH_I2C_Read... [21:58:23]Read from MH i2c: E2 03 00 EA 84 00 90 00 E2 [21:58:23]RAPDU: 90 00 [21:58:23]wFMCommunicate OK [21:58:23]wFMCommunicate request_size=4 [21:58:23]MH_SAM_APDU [21:58:23]CAPDU: 80 0D 03 02 [21:58:23]Write to MH i2c: E2 08 00 EB 84 80 0D 03 02 00 00 00 00 EA [21:58:23]Write i2c OK [21:58:23]MH_I2C_Read... [21:58:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:23]Read from MH i2c: E2 [21:58:23]MH_I2C_Read... [21:58:23]Read from MH i2c: E2 0B 00 [21:58:23]MH_I2C_Read... [21:58:23]Read from MH i2c: E2 0B 00 EB 84 00 74 49 EE 4C 6C 3B F3 C4 90 00 40 [21:58:23]RAPDU: 74 49 EE 4C 6C 3B F3 C4 90 00 [21:58:23]wFMCommunicate OK [21:58:23]SAM_PROTO_SignData done [21:58:23]FM_MakeSignedData done [21:58:23]CreateOFDProtocolMessage [21:58:23]wFMCommunicate request_size=4 [21:58:23]MH_SAM_APDU [21:58:23]CAPDU: 80 11 00 00 [21:58:23]Write to MH i2c: E2 08 00 EC 84 80 11 00 00 00 00 00 00 EA [21:58:23]Write i2c OK [21:58:23]MH_I2C_Read... [21:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:23]Read from MH i2c: E2 [21:58:23]MH_I2C_Read... [21:58:23]Read from MH i2c: E2 17 00 [21:58:23]MH_I2C_Read... [21:58:23]Read from MH i2c: E2 17 00 EC 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 45 [21:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:58:23]wFMCommunicate OK [21:58:23]CreateOFDProtocolMessage done [21:58:23]OFDSenderStorePacket 118928 [21:58:23]StoreOFDPacket docnum=118928 [21:58:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 AA 52 20 01 87 0A 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 38 C1 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0C 5F 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 5F 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 6B 01 00 00 00 07 04 06 00 0C 5F 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 85 10 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 8F D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 90 D0 01 00 35 04 06 00 66 F0 C8 D0 E6 B7 74 49 EE 4C 6C 3B F3 C4 [21:58:23]CheckFolder [21:58:23]dirname=/storage/ofd_packets [21:58:23]CheckFolder done [21:58:23]ProducePacketName [21:58:23]name=ofd_packets/00118928 [21:58:23]NVStorageSaveData ofd_packets/00118928 [21:58:23]File name is /storage/ofd_packets/00118928 [21:58:23]Write 326 bytes [21:58:23]NVStorageSaveData done [21:58:23]OFDSenderStorePacket done [21:58:23]KKMCreateOFDPacket done [21:58:23]NVStorageSaveData kkm_last_timestamp [21:58:23]File name is /storage/kkm_last_timestamp [21:58:23]Write 4 bytes [21:58:23]NVStorageSaveData done [21:58:23]ExternCall_PrintAddStr [21:58:23]wPrintStart [21:58:23]Write to MH i2c: 01 00 00 ED 84 71 [21:58:23]Write i2c OK [21:58:23]MH_I2C_Read... [21:58:23]Read from MH i2c: 01 [21:58:23]MH_I2C_Read... [21:58:23]Read from MH i2c: 01 07 00 [21:58:23]MH_I2C_Read... [21:58:23]Read from MH i2c: 01 07 00 ED 84 00 00 00 00 00 FF 0F 86 [21:58:23]RasterBufferAndPrint [21:58:23]line Счет N : (1)949838 [21:58:23]line ИНН: 02508201610067 [21:58:23]line Контрольно-Кассовый Чек [21:58:23]line ВОЗВРАТ ПРОДАЖИ [21:58:23]line ТРК (МРК, ГНК) : 11 [21:58:23]line Товар: 2710194800 [21:58:23]line ДТ-К-5 [21:58:23]line 115.000 * 76.20 [21:58:23]line = 8763.00 [21:58:23]line НДС 12% НСП 1% [21:58:23]line > о реализуемом товаре [21:58:23]line ИТОГО: 8763.00 [21:58:23]line НСП 1% : 77.55 [21:58:23]line НДС 12% : 930.58 [21:58:23]line Наличными: 8763.00 [21:58:23]line Безнал.: 0.00 [21:58:23]line Место: АЗС № 134 "Партнер Нефть" [21:58:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:58:23]line СНО: Общий режим [21:58:23]line Чек 304 29.07.2024 21:58 [21:58:23]line Смена: 434 ФФД: 1.0 [21:58:23]line ЗНМ: 0300000044 [21:58:23]line РНМ: 0000000000092660 [21:58:23]line Версия ККМ: 001 [21:58:23]line ФД осн.: 118927 [21:58:23]line ФМ осн.: 0000000000874939 [21:58:23]line ФМ: 0000000000874939 [21:58:23]line ФД: 118928 [21:58:23]line ФПД: 113184347317943 [21:58:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215829&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118928&fm=113184347317943&tin=02508201610067®Number=0000000000092660&sum=876300 [21:58:23]written 0, free lines is 4095 [21:58:23]OFD Sender: Processing packet 118928 [packets to send 86, broken 85] [21:58:23]ProducePacketName [21:58:23]name=ofd_packets/00118928 [21:58:23]OFD Sender: To server: pG, [21:58:23]CommunicateWithHost lk.salyk.kg:30040 [21:58:23]ConnectInit lk.salyk.kg [21:58:23]Connected sock=9 [21:58:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 AA 52 20 01 87 0A 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 38 C1 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0C 5F 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 5F 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 6B 01 00 00 00 07 04 06 00 0C 5F 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 85 10 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 8F D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 90 D0 01 00 35 04 06 00 66 F0 C8 D0 E6 B7 74 49 EE 4C 6C 3B F3 C4 [21:58:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4E B0 47 00 9B 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 90 D0 01 00 F4 03 04 00 12 BE A7 66 B6 04 01 00 00 81 90 E8 27 EB 6D 14 82 [21:58:24]CommunicateWithHost err = 0 [21:58:24]CheckOFDResponse [21:58:24]1017 (14) - 77093643461234 [21:58:24]1041 (16) - 0000000000874939 [21:58:24]1040 (4) - 118928 [21:58:24]1012 (4) - 29.07.2024 16:06 [21:58:24]1206 (1) - 0 [21:58:24]OFD Sender: Remove packet 118928 [21:58:24]ProducePacketName [21:58:24]name=ofd_packets/00118928 [21:58:24]NVStorageDeleteData [21:58:24]Write to MH i2c: 01 00 00 16 85 9B [21:58:24]Write i2c OK [21:58:24]MH_I2C_Read... [21:58:24]Read from MH i2c: 01 [21:58:24]MH_I2C_Read... [21:58:24]Read from MH i2c: 01 07 00 [21:58:24]MH_I2C_Read... [21:58:24]Read from MH i2c: 01 07 00 16 85 00 00 00 00 00 02 0D B1 [21:58:24]RasterBufferAndPrint [21:58:24]line [21:58:24]line [21:58:24]line [21:58:24]line [21:58:24]line [21:58:24]written 0, free lines is 3345 [21:58:24]MH_Cut [21:58:24]Write to MH i2c: D1 01 00 1D 85 01 74 [21:58:24]Write i2c OK [21:58:24]MH_I2C_Read... [21:58:24]Read from MH i2c: D1 [21:58:24]MH_I2C_Read... [21:58:24]Read from MH i2c: D1 01 00 [21:58:24]MH_I2C_Read... [21:58:24]Read from MH i2c: D1 01 00 1D 85 00 73 [21:58:24]Write to MH i2c: 01 00 00 1E 85 A3 [21:58:24]Write i2c OK [21:58:24]MH_I2C_Read... [21:58:24]OFD Sender: No OFD packet to send [21:58:24]*** Cut start [21:58:24]*** Partial cut [21:58:24]*** CUTSNS_PIN = 1 [21:58:24]*** CUTSNS_PIN = 0 [21:58:25]*** Brake cut motor [21:58:25]Read from MH i2c: 01 [21:58:25]MH_I2C_Read... [21:58:25]*** Stop cut motor [21:58:25]*** Cut end [21:58:25]Read from MH i2c: 01 07 00 [21:58:25]MH_I2C_Read... [21:58:25]Read from MH i2c: 01 07 00 1E 85 00 00 00 00 00 FF 0F B8 [21:58:25]process_action close_receipt done [21:58:25]requested_data is exist [21:58:25]produce_requested_data [21:58:25]requested_item fm.sn is exist - process it [21:58:25]wFMCommunicate request_size=4 [21:58:25]MH_SAM_APDU [21:58:25]CAPDU: 80 11 00 00 [21:58:25]Write to MH i2c: E2 08 00 1F 85 80 11 00 00 00 00 00 00 1E [21:58:25]Write i2c OK [21:58:25]MH_I2C_Read... [21:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:25]Read from MH i2c: E2 [21:58:25]MH_I2C_Read... [21:58:25]Read from MH i2c: E2 17 00 [21:58:25]MH_I2C_Read... [21:58:25]Read from MH i2c: E2 17 00 1F 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 79 [21:58:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:58:25]wFMCommunicate OK [21:58:25]requested_item fd.num is exist - process it [21:58:25]SAM_PROTO_GetFieldsCounters [21:58:25]wFMCommunicate request_size=4 [21:58:25]MH_SAM_APDU [21:58:25]CAPDU: 80 13 00 00 [21:58:25]Write to MH i2c: E2 08 00 20 85 80 13 00 00 00 00 00 00 21 [21:58:25]Write i2c OK [21:58:25]MH_I2C_Read... [21:58:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:25]Read from MH i2c: E2 [21:58:25]MH_I2C_Read... [21:58:25]Read from MH i2c: E2 62 00 [21:58:25]MH_I2C_Read... [21:58:25]Read from MH i2c: E2 62 00 20 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 90 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [21:58: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 90 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:58:25]wFMCommunicate OK [21:58:25]SAM_PROTO_GetFieldsCounters done [21:58:25]requested_item shift.num is exist - process it [21:58:25]requested_item shift.opened is exist - process it [21:58:25]req_shift_opened [21:58:25]FM_GetShiftState [21:58:25]SAM_PROTO_GetShiftState [21:58:25]wFMCommunicate request_size=4 [21:58:25]MH_SAM_APDU [21:58:25]CAPDU: 80 13 01 00 [21:58:25]Write to MH i2c: E2 08 00 21 85 80 13 01 00 00 00 00 00 23 [21:58:25]Write i2c OK [21:58:25]MH_I2C_Read... [21:58:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:25]Read from MH i2c: E2 [21:58:25]MH_I2C_Read... [21:58:25]Read from MH i2c: E2 0E 00 [21:58:25]MH_I2C_Read... [21:58:25]Read from MH i2c: E2 0E 00 21 85 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 51 [21:58:25]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:58:25]wFMCommunicate OK [21:58:25]SAM_PROTO_GetShiftState done [21:58:25]FM_GetShiftState done [21:58:25]req_shift_opened done [21:58:25]requested_item shift.open_date is exist - process it [21:58:25]req_shift_open_date [21:58:25]req_shift_open_date done [21:58:25]produce_requested_data done [21:58:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118928,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:58:25]process_action_free close_receipt [21:58:25]json_value_free [21:58:25]json_value_free done [21:58:25]process_json_proto returns [21:58:25]Send response to host [21:58:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118928,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:58:25]free response buf [21:58:25]execute_script done [21:58:25]execute_script returns [21:58:25]free content buf [21:58:25]Sock 10.Close socket [21:58:25]Sock 10.Thread stoped [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:51]accept exits with 7 [21:59:51]New connection [21:59:51]New thread 3067383140 created [21:59:51]Thread 3067239780 joined [21:59:51]Waiting for new connection... [21:59:51] Sock 7.Parse request [21:59:51]Sock 7.Check first char [21:59:51]Sock 7.First char is OK [21:59:51]request: POST /json_proto HTTP/1.0 [21:59:51]Method: POST [21:59:51]URL: /json_proto [21:59:51]Method is POST - this is cgi request [21:59:51]url: /json_proto [21:59:51]query_string will be loaded in cgi processing [21:59:51]execute_cgi json_proto POST (null) [21:59:51]execute_cgi path=json_proto method=POST [21:59:51]POST find Content-Length [21:59:51]Host: 172.17.45.7:8080 [21:59:51]Content-Length: 801 [21:59:51]Content-Type: application/json [21:59:51] [21:59:51]POST finish read [21:59:51]Found Content-Length = 801 [21:59:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 115.000, "sum" : 8763.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" : 8763.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:59:51]execute_script... [21:59:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 115.000, "sum" : 8763.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" : 8763.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:59:51]POST & json_proto [21:59:51]process_json_proto [21:59:51]json parsed OK: [21:59:51]protocol is kg_v1.0 [21:59:51]action value=close_receipt [21:59:51]process_action close_receipt [21:59:51]cmd_close_receipt [21:59:51]MH_GetDate [21:59:51]Write to MH i2c: F0 00 00 22 85 96 [21:59:51]Write i2c OK [21:59:51]MH_I2C_Read... [21:59:51]Read from MH i2c: F0 [21:59:51]MH_I2C_Read... [21:59:51]Read from MH i2c: F0 09 00 [21:59:51]MH_I2C_Read... [21:59:51]Read from MH i2c: F0 09 00 22 85 00 DE 10 A8 66 90 0F 3E 66 DE [21:59:51]GetLastDocTimeStamp 1722290309 [21:59:51]current date 1722290398 [21:59:51]FM_GetShiftState [21:59:51]SAM_PROTO_GetShiftState [21:59:51]wFMCommunicate request_size=4 [21:59:51]MH_SAM_APDU [21:59:51]CAPDU: 80 13 01 00 [21:59:51]Write to MH i2c: E2 08 00 23 85 80 13 01 00 00 00 00 00 25 [21:59:51]Write i2c OK [21:59:51]MH_I2C_Read... [21:59:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:51]Read from MH i2c: E2 [21:59:51]MH_I2C_Read... [21:59:51]Read from MH i2c: E2 0E 00 [21:59:51]MH_I2C_Read... [21:59:51]Read from MH i2c: E2 0E 00 23 85 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 53 [21:59:51]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:59:51]wFMCommunicate OK [21:59:51]SAM_PROTO_GetShiftState done [21:59:51]FM_GetShiftState done [21:59:51]opened in 1722211641 [21:59:51]opened+sec_in_day 1722298041 [21:59:51]quantity*price = 876300 [21:59:51]sum+1 = 876301 [21:59:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8763.00 НСП 1% : 77.55 НДС 12% : 930.58 Наличными: 0.00 Безнал.: 8763.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 305 29.07.2024 21:59 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118929 ФПД: 107709281650478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215958&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118929&fm=107709281650478&tin=02508201610067®Number=0000000000092660&sum=876300 [21:59:52]StoreToDocumentArchive [21:59:52]shift 434 fd 118929 [21:59:52]save to /storage/0434/doc_00118929 [21:59:52]save last doc name /storage/0434/doc_00118929 to /storage/kkm_last_doc_name [21:59:52]save OK [21:59:52]Clear old archive folders... [21:59:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:59:52]tlvbuf is 01F346C0 [21:59:52]SAM_PROTO_ClearQueue [21:59:52]wFMCommunicate request_size=4 [21:59:52]MH_SAM_APDU [21:59:52]CAPDU: 80 09 00 00 [21:59:52]Write to MH i2c: E2 08 00 30 85 80 09 00 00 00 00 00 00 27 [21:59:52]Write i2c OK [21:59:52]MH_I2C_Read... [21:59:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:59:52]Read from MH i2c: E2 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: E2 03 00 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: E2 03 00 30 85 00 90 00 29 [21:59:52]RAPDU: 90 00 [21:59:52]wFMCommunicate OK [21:59:52]SAM_PROTO_ClearQueue done [21:59:52]KKMCreateOFDPacket [21:59:52]OFDProtocolAddRootSTLVToBuf [21:59:52]FM_MakeSignedData [21:59:52]FM_MakeSignedData [21:59:52]SAM_PROTO_SignData [21:59:52]wFMCommunicate request_size=4 [21:59:52]MH_SAM_APDU [21:59:52]CAPDU: 80 0D 01 02 [21:59:52]Write to MH i2c: E2 08 00 31 85 80 0D 01 02 00 00 00 00 2F [21:59:52]Write i2c OK [21:59:52]MH_I2C_Read... [21:59:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:59:52]Read from MH i2c: E2 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: E2 03 00 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: E2 03 00 31 85 00 90 00 2A [21:59:52]RAPDU: 90 00 [21:59:52]wFMCommunicate OK [21:59:52]wFMCommunicate request_size=255 [21:59:52]MH_SAM_APDU [21:59:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 38 C1 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0C 5F 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 5F 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 6B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 5F 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 DE 10 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 91 D0 01 00 35 04 06 00 61 F6 05 78 [21:59:52]Write to MH i2c: E2 02 01 32 85 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 38 C1 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0C 5F 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 5F 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 6B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 5F 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 DE 10 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 91 D0 01 00 35 04 06 00 61 F6 05 78 00 00 48 [21:59:52]Write i2c OK [21:59:52]MH_I2C_Read... [21:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:52]Read from MH i2c: E2 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: E2 03 00 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: E2 03 00 32 85 00 90 00 2B [21:59:52]RAPDU: 90 00 [21:59:52]wFMCommunicate OK [21:59:52]wFMCommunicate request_size=7 [21:59:52]MH_SAM_APDU [21:59:52]CAPDU: 80 0D 02 02 02 C7 2E [21:59:52]Write to MH i2c: E2 0A 00 33 85 80 0D 02 02 02 00 C7 2E 00 00 2B [21:59:52]Write i2c OK [21:59:52]MH_I2C_Read... [21:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:52]Read from MH i2c: E2 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: E2 03 00 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: E2 03 00 33 85 00 90 00 2C [21:59:52]RAPDU: 90 00 [21:59:52]wFMCommunicate OK [21:59:52]wFMCommunicate request_size=4 [21:59:52]MH_SAM_APDU [21:59:52]CAPDU: 80 0D 03 02 [21:59:52]Write to MH i2c: E2 08 00 34 85 80 0D 03 02 00 00 00 00 34 [21:59:52]Write i2c OK [21:59:52]MH_I2C_Read... [21:59:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:59:52]Read from MH i2c: E2 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: E2 0B 00 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: E2 0B 00 34 85 00 E6 36 0F C9 2F 3A C0 8B 90 00 DD [21:59:52]RAPDU: E6 36 0F C9 2F 3A C0 8B 90 00 [21:59:52]wFMCommunicate OK [21:59:52]SAM_PROTO_SignData done [21:59:52]FM_MakeSignedData done [21:59:52]CreateOFDProtocolMessage [21:59:52]wFMCommunicate request_size=4 [21:59:52]MH_SAM_APDU [21:59:52]CAPDU: 80 11 00 00 [21:59:52]Write to MH i2c: E2 08 00 35 85 80 11 00 00 00 00 00 00 34 [21:59:52]Write i2c OK [21:59:52]MH_I2C_Read... [21:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:52]Read from MH i2c: E2 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: E2 17 00 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: E2 17 00 35 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8F [21:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:59:52]wFMCommunicate OK [21:59:52]CreateOFDProtocolMessage done [21:59:52]OFDSenderStorePacket 118929 [21:59:52]StoreOFDPacket docnum=118929 [21:59:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 82 79 04 01 A5 D4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 38 C1 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0C 5F 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 5F 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 6B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 5F 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 DE 10 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 91 D0 01 00 35 04 06 00 61 F6 05 78 C7 2E E6 36 0F C9 2F 3A C0 8B [21:59:52]CheckFolder [21:59:52]dirname=/storage/ofd_packets [21:59:52]CheckFolder done [21:59:52]ProducePacketName [21:59:52]name=ofd_packets/00118929 [21:59:52]NVStorageSaveData ofd_packets/00118929 [21:59:52]File name is /storage/ofd_packets/00118929 [21:59:52]Write 298 bytes [21:59:52]NVStorageSaveData done [21:59:52]OFDSenderStorePacket done [21:59:52]KKMCreateOFDPacket done [21:59:52]NVStorageSaveData kkm_last_timestamp [21:59:52]File name is /storage/kkm_last_timestamp [21:59:52]Write 4 bytes [21:59:52]NVStorageSaveData done [21:59:52]ExternCall_PrintAddStr [21:59:52]wPrintStart [21:59:52]Write to MH i2c: 01 00 00 36 85 BB [21:59:52]Write i2c OK [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: 01 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: 01 07 00 [21:59:52]MH_I2C_Read... [21:59:52]Read from MH i2c: 01 07 00 36 85 00 00 00 00 00 FF 0F D0 [21:59:52]RasterBufferAndPrint [21:59:52]line Счет N : (1)949836 [21:59:52]line ИНН: 02508201610067 [21:59:52]line Контрольно-Кассовый Чек [21:59:52]line ПРОДАЖА [21:59:52]line ТРК (МРК, ГНК) : 21 [21:59:52]line Товар: 2710194800 [21:59:52]line ДТ-К-5 [21:59:52]line 115.000 * 76.20 [21:59:52]line = 8763.00 [21:59:52]line НДС 12% НСП 1% [21:59:52]line > о реализуемом товаре [21:59:52]line ИТОГО: 8763.00 [21:59:52]line НСП 1% : 77.55 [21:59:52]line НДС 12% : 930.58 [21:59:52]line Наличными: 0.00 [21:59:52]line Безнал.: 8763.00 [21:59:52]line Место: АЗС № 134 "Партнер Нефть" [21:59:52]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [21:59:52]line СНО: Общий режим [21:59:52]line Чек 305 29.07.2024 21:59 [21:59:52]line Смена: 434 ФФД: 1.0 [21:59:52]line ЗНМ: 0300000044 [21:59:52]line РНМ: 0000000000092660 [21:59:52]line Версия ККМ: 001 [21:59:52]line Платежная система: O! деньги [21:59:52]line ФМ: 0000000000874939 [21:59:52]line ФД: 118929 [21:59:52]line ФПД: 107709281650478 [21:59:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T215958&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118929&fm=107709281650478&tin=02508201610067®Number=0000000000092660&sum=876300 [21:59:53]OFD Sender: Processing packet 118929 [packets to send 86, broken 85] [21:59:53]ProducePacketName [21:59:53]name=ofd_packets/00118929 [21:59:53]OFD Sender: To server: pG, [21:59:53]CommunicateWithHost lk.salyk.kg:30040 [21:59:53]ConnectInit lk.salyk.kg [21:59:53]written 0, free lines is 4095 [21:59:53]Connected sock=10 [21:59:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 82 79 04 01 A5 D4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 38 C1 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0C 5F 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 5F 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 6B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 5F 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 DE 10 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 91 D0 01 00 35 04 06 00 61 F6 05 78 C7 2E E6 36 0F C9 2F 3A C0 8B [21:59:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BF 8B 47 00 32 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 34 39 33 39 10 04 04 00 91 D0 01 00 F4 03 04 00 6B BE A7 66 B6 04 01 00 00 F8 25 9F 28 88 5C 09 EA [21:59:53]CommunicateWithHost err = 0 [21:59:53]CheckOFDResponse [21:59:53]1017 (14) - 77093643461234 [21:59:53]1041 (16) - 0000000000874939 [21:59:53]1040 (4) - 118929 [21:59:53]1012 (4) - 29.07.2024 16:08 [21:59:53]1206 (1) - 0 [21:59:53]OFD Sender: Remove packet 118929 [21:59:53]ProducePacketName [21:59:53]name=ofd_packets/00118929 [21:59:53]NVStorageDeleteData [21:59:53]Write to MH i2c: 01 00 00 5F 85 E4 [21:59:53]Write i2c OK [21:59:53]MH_I2C_Read... [21:59:53]Read from MH i2c: 01 [21:59:53]MH_I2C_Read... [21:59:53]Read from MH i2c: 01 07 00 [21:59:53]MH_I2C_Read... [21:59:53]Read from MH i2c: 01 07 00 5F 85 00 00 00 00 00 FA 0C F1 [21:59:53]RasterBufferAndPrint [21:59:53]line [21:59:53]line [21:59:53]line [21:59:53]line [21:59:53]line [21:59:53]written 0, free lines is 3329 [21:59:53]MH_Cut [21:59:53]Write to MH i2c: D1 01 00 66 85 01 BD [21:59:53]Write i2c OK [21:59:53]MH_I2C_Read... [21:59:53]Read from MH i2c: D1 [21:59:53]MH_I2C_Read... [21:59:53]Read from MH i2c: D1 01 00 [21:59:53]MH_I2C_Read... [21:59:53]Read from MH i2c: D1 01 00 66 85 00 BC [21:59:53]Write to MH i2c: 01 00 00 67 85 EC [21:59:53]Write i2c OK [21:59:53]MH_I2C_Read... [21:59:53]OFD Sender: No OFD packet to send [21:59:54]*** Cut start [21:59:54]*** Partial cut [21:59:54]*** CUTSNS_PIN = 1 [21:59:54]*** CUTSNS_PIN = 0 [21:59:54]*** Brake cut motor [21:59:54]Read from MH i2c: 01 [21:59:54]MH_I2C_Read... [21:59:54]*** Stop cut motor [21:59:54]*** Cut end [21:59:54]Read from MH i2c: 01 07 00 [21:59:54]MH_I2C_Read... [21:59:54]Read from MH i2c: 01 07 00 67 85 00 00 00 00 00 FF 0F 01 [21:59:54]process_action close_receipt done [21:59:54]requested_data is exist [21:59:54]produce_requested_data [21:59:54]requested_item fm.sn is exist - process it [21:59:54]wFMCommunicate request_size=4 [21:59:54]MH_SAM_APDU [21:59:54]CAPDU: 80 11 00 00 [21:59:54]Write to MH i2c: E2 08 00 68 85 80 11 00 00 00 00 00 00 67 [21:59:54]Write i2c OK [21:59:54]MH_I2C_Read... [21:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:54]Read from MH i2c: E2 [21:59:54]MH_I2C_Read... [21:59:54]Read from MH i2c: E2 17 00 [21:59:54]MH_I2C_Read... [21:59:54]Read from MH i2c: E2 17 00 68 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C2 [21:59:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [21:59:54]wFMCommunicate OK [21:59:54]requested_item fd.num is exist - process it [21:59:54]SAM_PROTO_GetFieldsCounters [21:59:54]wFMCommunicate request_size=4 [21:59:54]MH_SAM_APDU [21:59:54]CAPDU: 80 13 00 00 [21:59:54]Write to MH i2c: E2 08 00 69 85 80 13 00 00 00 00 00 00 6A [21:59:54]Write i2c OK [21:59:54]MH_I2C_Read... [21:59:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:59:54]Read from MH i2c: E2 [21:59:54]MH_I2C_Read... [21:59:54]Read from MH i2c: E2 62 00 [21:59:54]MH_I2C_Read... [21:59:54]Read from MH i2c: E2 62 00 69 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 91 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [21:59: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 91 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:59:55]wFMCommunicate OK [21:59:55]SAM_PROTO_GetFieldsCounters done [21:59:55]requested_item shift.num is exist - process it [21:59:55]requested_item shift.opened is exist - process it [21:59:55]req_shift_opened [21:59:55]FM_GetShiftState [21:59:55]SAM_PROTO_GetShiftState [21:59:55]wFMCommunicate request_size=4 [21:59:55]MH_SAM_APDU [21:59:55]CAPDU: 80 13 01 00 [21:59:55]Write to MH i2c: E2 08 00 6A 85 80 13 01 00 00 00 00 00 6C [21:59:55]Write i2c OK [21:59:55]MH_I2C_Read... [21:59:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:55]Read from MH i2c: E2 [21:59:55]MH_I2C_Read... [21:59:55]Read from MH i2c: E2 0E 00 [21:59:55]MH_I2C_Read... [21:59:55]Read from MH i2c: E2 0E 00 6A 85 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 9A [21:59:55]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [21:59:55]wFMCommunicate OK [21:59:55]SAM_PROTO_GetShiftState done [21:59:55]FM_GetShiftState done [21:59:55]req_shift_opened done [21:59:55]requested_item shift.open_date is exist - process it [21:59:55]req_shift_open_date [21:59:55]req_shift_open_date done [21:59:55]produce_requested_data done [21:59:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118929,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [21:59:55]process_action_free close_receipt [21:59:55]json_value_free [21:59:55]json_value_free done [21:59:55]process_json_proto returns [21:59:55]Send response to host [21:59:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118929,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [21:59:55]free response buf [21:59:55]execute_script done [21:59:55]execute_script returns [21:59:55]free content buf [21:59:55]Sock 7.Close socket [21:59:55]Sock 7.Thread stoped [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:15]accept exits with 9 [22:01:15]New connection [22:01:15]New thread 3067239780 created [22:01:15]Thread 3067383140 joined [22:01:15]Waiting for new connection... [22:01:15] Sock 9.Parse request [22:01:15]Sock 9.Check first char [22:01:15]Sock 9.First char is OK [22:01:15]request: POST /json_proto HTTP/1.0 [22:01:15]Method: POST [22:01:15]URL: /json_proto [22:01:15]Method is POST - this is cgi request [22:01:15]url: /json_proto [22:01:15]query_string will be loaded in cgi processing [22:01:15]execute_cgi json_proto POST (null) [22:01:15]execute_cgi path=json_proto method=POST [22:01:15]POST find Content-Length [22:01:15]Host: 172.17.45.7:8080 [22:01:15]Content-Length: 822 [22:01:15]Content-Type: application/json [22:01:15] [22:01:15]POST finish read [22:01:15]Found Content-Length = 822 [22:01:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:15]execute_script... [22:01:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:15]POST & json_proto [22:01:15]process_json_proto [22:01:15]json parsed OK: [22:01:15]protocol is kg_v1.0 [22:01:15]action value=close_receipt [22:01:15]process_action close_receipt [22:01:15]cmd_close_receipt [22:01:15]MH_GetDate [22:01:15]Write to MH i2c: F0 00 00 6B 85 DF [22:01:15]Write i2c OK [22:01:15]MH_I2C_Read... [22:01:15]Read from MH i2c: F0 [22:01:15]MH_I2C_Read... [22:01:15]Read from MH i2c: F0 09 00 [22:01:15]MH_I2C_Read... [22:01:15]Read from MH i2c: F0 09 00 6B 85 00 33 11 A8 66 90 0F 3E 66 7D [22:01:15]GetLastDocTimeStamp 1722290398 [22:01:15]current date 1722290483 [22:01:15]FM_GetShiftState [22:01:15]SAM_PROTO_GetShiftState [22:01:15]wFMCommunicate request_size=4 [22:01:15]MH_SAM_APDU [22:01:15]CAPDU: 80 13 01 00 [22:01:15]Write to MH i2c: E2 08 00 6C 85 80 13 01 00 00 00 00 00 6E [22:01:15]Write i2c OK [22:01:15]MH_I2C_Read... [22:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:16]Read from MH i2c: E2 [22:01:16]MH_I2C_Read... [22:01:16]Read from MH i2c: E2 0E 00 [22:01:16]MH_I2C_Read... [22:01:16]Read from MH i2c: E2 0E 00 6C 85 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 9C [22:01:16]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:01:16]wFMCommunicate OK [22:01:16]SAM_PROTO_GetShiftState done [22:01:16]FM_GetShiftState done [22:01:16]opened in 1722211641 [22:01:16]opened+sec_in_day 1722298041 [22:01:16]quantity*price = 200010 [22:01:16]sum+1 = 200011 [22:01:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 306 29.07.2024 22:01 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118930 ФПД: 62044709310221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T220123&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118930&fm=62044709310221&tin=02508201610067®Number=0000000000092660&sum=200000 [22:01:17]StoreToDocumentArchive [22:01:17]shift 434 fd 118930 [22:01:17]save to /storage/0434/doc_00118930 [22:01:17]save last doc name /storage/0434/doc_00118930 to /storage/kkm_last_doc_name [22:01:17]save OK [22:01:17]Clear old archive folders... [22:01:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:01:17]tlvbuf is 01F34310 [22:01:17]SAM_PROTO_ClearQueue [22:01:17]wFMCommunicate request_size=4 [22:01:17]MH_SAM_APDU [22:01:17]CAPDU: 80 09 00 00 [22:01:17]Write to MH i2c: E2 08 00 79 85 80 09 00 00 00 00 00 00 70 [22:01:17]Write i2c OK [22:01:17]MH_I2C_Read... [22:01:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:01:17]Read from MH i2c: E2 [22:01:17]MH_I2C_Read... [22:01:17]Read from MH i2c: E2 03 00 [22:01:17]MH_I2C_Read... [22:01:17]Read from MH i2c: E2 03 00 79 85 00 90 00 72 [22:01:17]RAPDU: 90 00 [22:01:17]wFMCommunicate OK [22:01:17]SAM_PROTO_ClearQueue done [22:01:17]KKMCreateOFDPacket [22:01:17]OFDProtocolAddRootSTLVToBuf [22:01:17]FM_MakeSignedData [22:01:17]FM_MakeSignedData [22:01:17]SAM_PROTO_SignData [22:01:17]wFMCommunicate request_size=4 [22:01:17]MH_SAM_APDU [22:01:17]CAPDU: 80 0D 01 02 [22:01:17]Write to MH i2c: E2 08 00 7A 85 80 0D 01 02 00 00 00 00 78 [22:01:17]Write i2c OK [22:01:17]MH_I2C_Read... [22:01:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:01:17]Read from MH i2c: E2 [22:01:17]MH_I2C_Read... [22:01:17]Read from MH i2c: E2 03 00 [22:01:17]MH_I2C_Read... [22:01:17]Read from MH i2c: E2 03 00 7A 85 00 90 00 73 [22:01:17]RAPDU: 90 00 [22:01:17]wFMCommunicate OK [22:01:17]wFMCommunicate request_size=255 [22:01:17]MH_SAM_APDU [22:01: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 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 33 11 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 92 D0 01 00 35 04 06 00 38 [22:01:17]Write to MH i2c: E2 02 01 7B 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 33 11 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 92 D0 01 00 35 04 06 00 38 00 00 D3 [22:01:17]Write i2c OK [22:01:17]MH_I2C_Read... [22:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:17]Read from MH i2c: E2 [22:01:17]MH_I2C_Read... [22:01:17]Read from MH i2c: E2 03 00 [22:01:17]MH_I2C_Read... [22:01:17]Read from MH i2c: E2 03 00 7B 85 00 90 00 74 [22:01:17]RAPDU: 90 00 [22:01:17]wFMCommunicate OK [22:01:17]wFMCommunicate request_size=10 [22:01:17]MH_SAM_APDU [22:01:17]CAPDU: 80 0D 02 02 05 6D E8 DB CF 0D [22:01:17]Write to MH i2c: E2 0D 00 7C 85 80 0D 02 02 05 00 6D E8 DB CF 0D 00 00 91 [22:01:17]Write i2c OK [22:01:17]MH_I2C_Read... [22:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:17]Read from MH i2c: E2 [22:01:17]MH_I2C_Read... [22:01:17]Read from MH i2c: E2 03 00 [22:01:17]MH_I2C_Read... [22:01:17]Read from MH i2c: E2 03 00 7C 85 00 90 00 75 [22:01:17]RAPDU: 90 00 [22:01:17]wFMCommunicate OK [22:01:17]wFMCommunicate request_size=4 [22:01:17]MH_SAM_APDU [22:01:17]CAPDU: 80 0D 03 02 [22:01:17]Write to MH i2c: E2 08 00 7D 85 80 0D 03 02 00 00 00 00 7D [22:01:17]Write i2c OK [22:01:17]MH_I2C_Read... [22:01:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:01:17]Read from MH i2c: E2 [22:01:17]MH_I2C_Read... [22:01:17]Read from MH i2c: E2 0B 00 [22:01:17]MH_I2C_Read... [22:01:17]Read from MH i2c: E2 0B 00 7D 85 00 74 D7 0D 87 C5 6E FF 0F 90 00 9E [22:01:17]RAPDU: 74 D7 0D 87 C5 6E FF 0F 90 00 [22:01:17]wFMCommunicate OK [22:01:17]SAM_PROTO_SignData done [22:01:17]FM_MakeSignedData done [22:01:17]CreateOFDProtocolMessage [22:01:17]wFMCommunicate request_size=4 [22:01:17]MH_SAM_APDU [22:01:17]CAPDU: 80 11 00 00 [22:01:17]Write to MH i2c: E2 08 00 7E 85 80 11 00 00 00 00 00 00 7D [22:01:17]Write i2c OK [22:01:17]MH_I2C_Read... [22:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:17]Read from MH i2c: E2 [22:01:17]MH_I2C_Read... [22:01:17]Read from MH i2c: E2 17 00 [22:01:17]MH_I2C_Read... [22:01:17]Read from MH i2c: E2 17 00 7E 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D8 [22:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:01:17]wFMCommunicate OK [22:01:17]CreateOFDProtocolMessage done [22:01:17]OFDSenderStorePacket 118930 [22:01:17]StoreOFDPacket docnum=118930 [22:01:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FA F7 07 01 5A B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 33 11 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 92 D0 01 00 35 04 06 00 38 6D E8 DB CF 0D 74 D7 0D 87 C5 6E FF 0F [22:01:17]CheckFolder [22:01:17]dirname=/storage/ofd_packets [22:01:17]CheckFolder done [22:01:17]ProducePacketName [22:01:17]name=ofd_packets/00118930 [22:01:17]NVStorageSaveData ofd_packets/00118930 [22:01:17]File name is /storage/ofd_packets/00118930 [22:01:17]Write 301 bytes [22:01:17]NVStorageSaveData done [22:01:17]OFDSenderStorePacket done [22:01:17]KKMCreateOFDPacket done [22:01:17]NVStorageSaveData kkm_last_timestamp [22:01:17]File name is /storage/kkm_last_timestamp [22:01:17]Write 4 bytes [22:01:17]NVStorageSaveData done [22:01:17]ExternCall_PrintAddStr [22:01:17]wPrintStart [22:01:17]Write to MH i2c: 01 00 00 7F 85 04 [22:01:17]Write i2c OK [22:01:17]MH_I2C_Read... [22:01:17]Read from MH i2c: 01 [22:01:17]MH_I2C_Read... [22:01:17]Read from MH i2c: 01 07 00 [22:01:17]MH_I2C_Read... [22:01:17]Read from MH i2c: 01 07 00 7F 85 00 00 00 00 00 FF 0F 19 [22:01:17]RasterBufferAndPrint [22:01:17]line Счет N : (1)949839 [22:01:17]line ИНН: 02508201610067 [22:01:17]line Контрольно-Кассовый Чек [22:01:17]line ПРОДАЖА [22:01:17]line ТРК (МРК, ГНК) : 51 [22:01:17]line Товар: 2710124130 [22:01:17]line Аи-92-К-4 [22:01:17]line 29.500 * 67.80 [22:01:17]line = 2000.10 [22:01:17]line НДС 12% НСП 1% [22:01:17]line > о реализуемом товаре [22:01:17]line ОКРУГЛЕНИЕ: -0.10 [22:01:17]line ИТОГО: 2000.00 [22:01:17]line НСП 1% : 17.70 [22:01:17]line НДС 12% : 212.40 [22:01:17]line Наличными: 0.00 [22:01:17]line Безнал.: 2000.00 [22:01:17]line Место: АЗС № 134 "Партнер Нефть" [22:01:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:01:17]line СНО: Общий режим [22:01:17]line Чек 306 29.07.2024 22:01 [22:01:17]line Смена: 434 ФФД: 1.0 [22:01:17]line ЗНМ: 0300000044 [22:01:17]line РНМ: 0000000000092660 [22:01:17]line Версия ККМ: 001 [22:01:17]line Платежная система: O! деньги [22:01:17]line ФМ: 0000000000874939 [22:01:17]line ФД: 118930 [22:01:17]line ФПД: 62044709310221 [22:01:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T220123&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118930&fm=62044709310221&tin=02508201610067®Number=0000000000092660&sum=200000 [22:01:18]OFD Sender: Processing packet 118930 [packets to send 86, broken 85] [22:01:18]ProducePacketName [22:01:18]name=ofd_packets/00118930 [22:01:18]OFD Sender: To server: pG, [22:01:18]CommunicateWithHost lk.salyk.kg:30040 [22:01:18]ConnectInit lk.salyk.kg [22:01:18]written 0, free lines is 4095 [22:01:18]Connected sock=10 [22:01:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FA F7 07 01 5A B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 33 11 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 92 D0 01 00 35 04 06 00 38 6D E8 DB CF 0D 74 D7 0D 87 C5 6E FF 0F [22:01:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3C 7F 47 00 6A 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 34 39 33 39 10 04 04 00 92 D0 01 00 F4 03 04 00 C0 BE A7 66 B6 04 01 00 00 E7 5F 54 1D D0 B1 7A B7 [22:01:18]CommunicateWithHost err = 0 [22:01:18]CheckOFDResponse [22:01:18]1017 (14) - 77093643461234 [22:01:18]1041 (16) - 0000000000874939 [22:01:18]1040 (4) - 118930 [22:01:18]1012 (4) - 29.07.2024 16:09 [22:01:18]1206 (1) - 0 [22:01:18]OFD Sender: Remove packet 118930 [22:01:18]ProducePacketName [22:01:18]name=ofd_packets/00118930 [22:01:18]NVStorageDeleteData [22:01:18]Write to MH i2c: 01 00 00 A9 85 2E [22:01:18]Write i2c OK [22:01:18]MH_I2C_Read... [22:01:18]Read from MH i2c: 01 [22:01:18]MH_I2C_Read... [22:01:18]Read from MH i2c: 01 07 00 [22:01:18]MH_I2C_Read... [22:01:18]Read from MH i2c: 01 07 00 A9 85 00 00 00 00 00 EE 0C 2F [22:01:18]RasterBufferAndPrint [22:01:18]line [22:01:18]line [22:01:18]line [22:01:18]line [22:01:18]line [22:01:18]written 0, free lines is 3319 [22:01:18]MH_Cut [22:01:18]Write to MH i2c: D1 01 00 B0 85 01 07 [22:01:18]Write i2c OK [22:01:18]MH_I2C_Read... [22:01:18]Read from MH i2c: D1 [22:01:18]MH_I2C_Read... [22:01:18]Read from MH i2c: D1 01 00 [22:01:18]MH_I2C_Read... [22:01:18]Read from MH i2c: D1 01 00 B0 85 00 06 [22:01:18]Write to MH i2c: 01 00 00 B1 85 36 [22:01:18]Write i2c OK [22:01:18]MH_I2C_Read... [22:01:18]OFD Sender: No OFD packet to send [22:01:19]*** Cut start [22:01:19]*** Partial cut [22:01:19]*** CUTSNS_PIN = 1 [22:01:19]*** CUTSNS_PIN = 0 [22:01:19]*** Brake cut motor [22:01:19]Read from MH i2c: 01 [22:01:19]MH_I2C_Read... [22:01:19]*** Stop cut motor [22:01:19]*** Cut end [22:01:19]Read from MH i2c: 01 07 00 [22:01:19]MH_I2C_Read... [22:01:19]Read from MH i2c: 01 07 00 B1 85 00 00 00 00 00 FF 0F 4B [22:01:19]process_action close_receipt done [22:01:19]requested_data is exist [22:01:19]produce_requested_data [22:01:19]requested_item fm.sn is exist - process it [22:01:19]wFMCommunicate request_size=4 [22:01:19]MH_SAM_APDU [22:01:19]CAPDU: 80 11 00 00 [22:01:19]Write to MH i2c: E2 08 00 B2 85 80 11 00 00 00 00 00 00 B1 [22:01:19]Write i2c OK [22:01:19]MH_I2C_Read... [22:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:19]Read from MH i2c: E2 [22:01:19]MH_I2C_Read... [22:01:19]Read from MH i2c: E2 17 00 [22:01:19]MH_I2C_Read... [22:01:19]Read from MH i2c: E2 17 00 B2 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0C [22:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:01:19]wFMCommunicate OK [22:01:19]requested_item fd.num is exist - process it [22:01:19]SAM_PROTO_GetFieldsCounters [22:01:19]wFMCommunicate request_size=4 [22:01:19]MH_SAM_APDU [22:01:19]CAPDU: 80 13 00 00 [22:01:19]Write to MH i2c: E2 08 00 B3 85 80 13 00 00 00 00 00 00 B4 [22:01:19]Write i2c OK [22:01:19]MH_I2C_Read... [22:01:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:01:20]Read from MH i2c: E2 [22:01:20]MH_I2C_Read... [22:01:20]Read from MH i2c: E2 62 00 [22:01:20]MH_I2C_Read... [22:01:20]Read from MH i2c: E2 62 00 B3 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 92 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 8A [22:01: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 92 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:01:20]wFMCommunicate OK [22:01:20]SAM_PROTO_GetFieldsCounters done [22:01:20]requested_item shift.num is exist - process it [22:01:20]requested_item shift.opened is exist - process it [22:01:20]req_shift_opened [22:01:20]FM_GetShiftState [22:01:20]SAM_PROTO_GetShiftState [22:01:20]wFMCommunicate request_size=4 [22:01:20]MH_SAM_APDU [22:01:20]CAPDU: 80 13 01 00 [22:01:20]Write to MH i2c: E2 08 00 B4 85 80 13 01 00 00 00 00 00 B6 [22:01:20]Write i2c OK [22:01:20]MH_I2C_Read... [22:01:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:20]Read from MH i2c: E2 [22:01:20]MH_I2C_Read... [22:01:20]Read from MH i2c: E2 0E 00 [22:01:20]MH_I2C_Read... [22:01:20]Read from MH i2c: E2 0E 00 B4 85 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 E4 [22:01:20]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:01:20]wFMCommunicate OK [22:01:20]SAM_PROTO_GetShiftState done [22:01:20]FM_GetShiftState done [22:01:20]req_shift_opened done [22:01:20]requested_item shift.open_date is exist - process it [22:01:20]req_shift_open_date [22:01:20]req_shift_open_date done [22:01:20]produce_requested_data done [22:01:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118930,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [22:01:20]process_action_free close_receipt [22:01:20]json_value_free [22:01:20]json_value_free done [22:01:20]process_json_proto returns [22:01:20]Send response to host [22:01:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118930,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [22:01:20]free response buf [22:01:20]execute_script done [22:01:20]execute_script returns [22:01:20]free content buf [22:01:20]Sock 9.Close socket [22:01:20]Sock 9.Thread stoped [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:03:03]OFD Sender: No OFD packet to send [22:03:08]OFD Sender: No OFD packet to send [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:53]accept exits with 7 [22:03:53]New connection [22:03:53]New thread 3067383140 created [22:03:53]Thread 3067239780 joined [22:03:53]Waiting for new connection... [22:03:53] Sock 7.Parse request [22:03:53]Sock 7.Check first char [22:03:53]Sock 7.First char is OK [22:03:53]request: POST /json_proto HTTP/1.0 [22:03:53]Method: POST [22:03:53]URL: /json_proto [22:03:53]Method is POST - this is cgi request [22:03:53]url: /json_proto [22:03:53]query_string will be loaded in cgi processing [22:03:53]execute_cgi json_proto POST (null) [22:03:53]execute_cgi path=json_proto method=POST [22:03:53]POST find Content-Length [22:03:53]Host: 172.17.45.7:8080 [22:03:53]Content-Length: 1205 [22:03:53]Content-Type: application/json [22:03:53] [22:03:53]POST finish read [22:03:53]Found Content-Length = 1205 [22:03:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949840\u000A29.07.2024 22:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4203137/3839230\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:53]execute_script... [22:03:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949840\u000A29.07.2024 22:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4203137/3839230\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:53]POST & json_proto [22:03:53]process_json_proto [22:03:53]json parsed OK: [22:03:53]protocol is kg_v1.0 [22:03:53]action value=print_text [22:03:53]process_action print_text [22:03:53]cmd_print_text [22:03:53]ExternCall_PrintAddStr [22:03:53]wPrintStart [22:03:53]Write to MH i2c: 01 00 00 B5 85 3A [22:03:53]Write i2c OK [22:03:53]MH_I2C_Read... [22:03:53]Read from MH i2c: 01 [22:03:53]MH_I2C_Read... [22:03:53]Read from MH i2c: 01 07 00 [22:03:53]MH_I2C_Read... [22:03:53]Read from MH i2c: 01 07 00 B5 85 00 00 00 00 00 FF 0F 4F [22:03:53]RasterBufferAndPrint [22:03:53]line *****ТОВАРНЫЙ ЧЕК***** [22:03:53]line АЗС-134 [22:03:53]line Партнер нефть [22:03:53]line 02508201610067 [22:03:53]line Кассир : Казаков Ч. [22:03:53]line Счет N : (1)949840 [22:03:53]line 29.07.2024 22:01 [22:03:53]line ПРОДАЖА [22:03:53]line ТРК (МРК, ГНК): 51 [22:03:53]line Вид ГСМ : 2710124130 [22:03:53]line Аи-92-К-4 [22:03:53]line 20.000 x 67.80 [22:03:53]line ИТОГ: 1356.00 [22:03:53]line Тип оплаты: Талоны: Топливные Талоны [22:03:53]line 4203137/3839230 [22:03:53]line ______________________ [22:03:53]line (подпись) [22:03:53]written 0, free lines is 4095 [22:03:54]OFD Sender: No OFD packet to send [22:03:54]Write to MH i2c: 01 00 00 C9 85 4E [22:03:54]Write i2c OK [22:03:54]MH_I2C_Read... [22:03:54]Read from MH i2c: 01 [22:03:54]MH_I2C_Read... [22:03:54]Read from MH i2c: 01 07 00 [22:03:54]MH_I2C_Read... [22:03:54]Read from MH i2c: 01 07 00 C9 85 00 00 00 00 00 15 0E 78 [22:03:54]RasterBufferAndPrint [22:03:54]line [22:03:54]line [22:03:54]line [22:03:54]line [22:03:54]line [22:03:54]written 0, free lines is 3606 [22:03:54]MH_Cut [22:03:54]Write to MH i2c: D1 01 00 D0 85 01 27 [22:03:54]Write i2c OK [22:03:54]MH_I2C_Read... [22:03:54]Read from MH i2c: D1 [22:03:54]MH_I2C_Read... [22:03:54]Read from MH i2c: D1 01 00 [22:03:54]MH_I2C_Read... [22:03:54]Read from MH i2c: D1 01 00 D0 85 00 26 [22:03:54]Write to MH i2c: 01 00 00 D1 85 56 [22:03:54]Write i2c OK [22:03:54]MH_I2C_Read... [22:03:54]*** Cut start [22:03:54]*** Partial cut [22:03:54]*** CUTSNS_PIN = 1 [22:03:54]*** CUTSNS_PIN = 0 [22:03:54]*** Brake cut motor [22:03:55]Read from MH i2c: 01 [22:03:55]MH_I2C_Read... [22:03:55]*** Stop cut motor [22:03:55]*** Cut end [22:03:55]Read from MH i2c: 01 07 00 [22:03:55]MH_I2C_Read... [22:03:55]Read from MH i2c: 01 07 00 D1 85 00 00 00 00 00 FF 0F 6B [22:03:55]process_action print_text done [22:03:55]requested_data is exist [22:03:55]produce_requested_data [22:03:55]requested_item fm.sn is exist - process it [22:03:55]wFMCommunicate request_size=4 [22:03:55]MH_SAM_APDU [22:03:55]CAPDU: 80 11 00 00 [22:03:55]Write to MH i2c: E2 08 00 D2 85 80 11 00 00 00 00 00 00 D1 [22:03:55]Write i2c OK [22:03:55]MH_I2C_Read... [22:03:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:55]Read from MH i2c: E2 [22:03:55]MH_I2C_Read... [22:03:55]Read from MH i2c: E2 17 00 [22:03:55]MH_I2C_Read... [22:03:55]Read from MH i2c: E2 17 00 D2 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2C [22:03:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:03:55]wFMCommunicate OK [22:03:55]requested_item fd.num is exist - process it [22:03:55]SAM_PROTO_GetFieldsCounters [22:03:55]wFMCommunicate request_size=4 [22:03:55]MH_SAM_APDU [22:03:55]CAPDU: 80 13 00 00 [22:03:55]Write to MH i2c: E2 08 00 D3 85 80 13 00 00 00 00 00 00 D4 [22:03:55]Write i2c OK [22:03:55]MH_I2C_Read... [22:03:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:03:55]Read from MH i2c: E2 [22:03:55]MH_I2C_Read... [22:03:55]Read from MH i2c: E2 62 00 [22:03:55]MH_I2C_Read... [22:03:55]Read from MH i2c: E2 62 00 D3 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 92 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 AA [22: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 92 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:03:55]wFMCommunicate OK [22:03:55]SAM_PROTO_GetFieldsCounters done [22:03:55]requested_item shift.num is exist - process it [22:03:55]requested_item shift.opened is exist - process it [22:03:55]req_shift_opened [22:03:55]FM_GetShiftState [22:03:55]SAM_PROTO_GetShiftState [22:03:55]wFMCommunicate request_size=4 [22:03:55]MH_SAM_APDU [22:03:55]CAPDU: 80 13 01 00 [22:03:55]Write to MH i2c: E2 08 00 D4 85 80 13 01 00 00 00 00 00 D6 [22:03:55]Write i2c OK [22:03:55]MH_I2C_Read... [22:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:55]Read from MH i2c: E2 [22:03:55]MH_I2C_Read... [22:03:55]Read from MH i2c: E2 0E 00 [22:03:55]MH_I2C_Read... [22:03:55]Read from MH i2c: E2 0E 00 D4 85 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 04 [22:03:55]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:03:55]wFMCommunicate OK [22:03:55]SAM_PROTO_GetShiftState done [22:03:55]FM_GetShiftState done [22:03:55]req_shift_opened done [22:03:55]requested_item shift.open_date is exist - process it [22:03:55]req_shift_open_date [22:03:55]req_shift_open_date done [22:03:55]produce_requested_data done [22:03:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118930,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [22:03:55]process_action_free print_text [22:03:55]json_value_free [22:03:55]json_value_free done [22:03:55]process_json_proto returns [22:03:55]Send response to host [22:03:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118930,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [22:03:55]free response buf [22:03:55]execute_script done [22:03:55]execute_script returns [22:03:55]free content buf [22:03:55]Sock 7.Close socket [22:03:55]Sock 7.Thread stoped [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:50]accept exits with 9 [22:04:50]New connection [22:04:50]New thread 3067239780 created [22:04:50]Thread 3067383140 joined [22:04:50]Waiting for new connection... [22:04:50] Sock 9.Parse request [22:04:50]Sock 9.Check first char [22:04:50]Sock 9.First char is OK [22:04:50]request: POST /json_proto HTTP/1.0 [22:04:50]Method: POST [22:04:50]URL: /json_proto [22:04:50]Method is POST - this is cgi request [22:04:50]url: /json_proto [22:04:50]query_string will be loaded in cgi processing [22:04:50]execute_cgi json_proto POST (null) [22:04:50]execute_cgi path=json_proto method=POST [22:04:50]POST find Content-Length [22:04:50]Host: 172.17.45.7:8080 [22:04:50]Content-Length: 1197 [22:04:50]Content-Type: application/json [22:04:50] [22:04:50]POST finish read [22:04:50]Found Content-Length = 1197 [22:04:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949841\u000A29.07.2024 22:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3588477\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:50]execute_script... [22:04:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949841\u000A29.07.2024 22:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3588477\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:50]POST & json_proto [22:04:50]process_json_proto [22:04:50]json parsed OK: [22:04:50]protocol is kg_v1.0 [22:04:50]action value=print_text [22:04:50]process_action print_text [22:04:50]cmd_print_text [22:04:50]ExternCall_PrintAddStr [22:04:50]wPrintStart [22:04:50]Write to MH i2c: 01 00 00 D5 85 5A [22:04:50]Write i2c OK [22:04:50]MH_I2C_Read... [22:04:50]Read from MH i2c: 01 [22:04:50]MH_I2C_Read... [22:04:50]Read from MH i2c: 01 07 00 [22:04:50]MH_I2C_Read... [22:04:50]Read from MH i2c: 01 07 00 D5 85 00 00 00 00 00 FF 0F 6F [22:04:50]RasterBufferAndPrint [22:04:50]line *****ТОВАРНЫЙ ЧЕК***** [22:04:50]line АЗС-134 [22:04:50]line Партнер нефть [22:04:50]line 02508201610067 [22:04:50]line Кассир : Казаков Ч. [22:04:50]line Счет N : (1)949841 [22:04:50]line 29.07.2024 22:02 [22:04:50]line ПРОДАЖА [22:04:50]line ТРК (МРК, ГНК): 41 [22:04:50]line Вид ГСМ : 2710124130 [22:04:50]line Аи-92-К-4 [22:04:50]line 20.000 x 67.80 [22:04:50]line ИТОГ: 1356.00 [22:04:50]line Тип оплаты: Талоны: Топливные Талоны [22:04:50]line 3588477 [22:04:50]line ______________________ [22:04:50]line (подпись) [22:04:50]written 0, free lines is 4095 [22:04:50]Write to MH i2c: 01 00 00 E9 85 6E [22:04:50]Write i2c OK [22:04:50]MH_I2C_Read... [22:04:50]Read from MH i2c: 01 [22:04:50]MH_I2C_Read... [22:04:50]Read from MH i2c: 01 07 00 [22:04:50]MH_I2C_Read... [22:04:50]Read from MH i2c: 01 07 00 E9 85 00 00 00 00 00 11 0E 94 [22:04:50]RasterBufferAndPrint [22:04:50]line [22:04:50]line [22:04:50]line [22:04:50]line [22:04:50]line [22:04:50]written 0, free lines is 3602 [22:04:50]MH_Cut [22:04:50]Write to MH i2c: D1 01 00 F0 85 01 47 [22:04:50]Write i2c OK [22:04:50]MH_I2C_Read... [22:04:50]Read from MH i2c: D1 [22:04:50]MH_I2C_Read... [22:04:50]Read from MH i2c: D1 01 00 [22:04:50]MH_I2C_Read... [22:04:50]Read from MH i2c: D1 01 00 F0 85 00 46 [22:04:50]Write to MH i2c: 01 00 00 F1 85 76 [22:04:50]Write i2c OK [22:04:50]MH_I2C_Read... [22:04:51]*** Cut start [22:04:51]*** Partial cut [22:04:51]*** CUTSNS_PIN = 1 [22:04:51]*** CUTSNS_PIN = 0 [22:04:51]*** Brake cut motor [22:04:52]Read from MH i2c: 01 [22:04:52]MH_I2C_Read... [22:04:52]*** Stop cut motor [22:04:52]*** Cut end [22:04:52]Read from MH i2c: 01 07 00 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: 01 07 00 F1 85 00 00 00 00 00 FF 0F 8B [22:04:52]process_action print_text done [22:04:52]requested_data is exist [22:04:52]produce_requested_data [22:04:52]requested_item fm.sn is exist - process it [22:04:52]wFMCommunicate request_size=4 [22:04:52]MH_SAM_APDU [22:04:52]CAPDU: 80 11 00 00 [22:04:52]Write to MH i2c: E2 08 00 F2 85 80 11 00 00 00 00 00 00 F1 [22:04:52]Write i2c OK [22:04:52]MH_I2C_Read... [22:04:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:52]Read from MH i2c: E2 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 17 00 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 17 00 F2 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4C [22:04:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:04:52]wFMCommunicate OK [22:04:52]requested_item fd.num is exist - process it [22:04:52]SAM_PROTO_GetFieldsCounters [22:04:52]wFMCommunicate request_size=4 [22:04:52]MH_SAM_APDU [22:04:52]CAPDU: 80 13 00 00 [22:04:52]Write to MH i2c: E2 08 00 F3 85 80 13 00 00 00 00 00 00 F4 [22:04:52]Write i2c OK [22:04:52]MH_I2C_Read... [22:04:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:04:52]Read from MH i2c: E2 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 62 00 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 62 00 F3 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 92 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 CA [22:04: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 92 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:04:52]wFMCommunicate OK [22:04:52]SAM_PROTO_GetFieldsCounters done [22:04:52]requested_item shift.num is exist - process it [22:04:52]requested_item shift.opened is exist - process it [22:04:52]req_shift_opened [22:04:52]FM_GetShiftState [22:04:52]SAM_PROTO_GetShiftState [22:04:52]wFMCommunicate request_size=4 [22:04:52]MH_SAM_APDU [22:04:52]CAPDU: 80 13 01 00 [22:04:52]Write to MH i2c: E2 08 00 F4 85 80 13 01 00 00 00 00 00 F6 [22:04:52]Write i2c OK [22:04:52]MH_I2C_Read... [22:04:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:52]Read from MH i2c: E2 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 0E 00 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 0E 00 F4 85 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 24 [22:04:52]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:04:52]wFMCommunicate OK [22:04:52]SAM_PROTO_GetShiftState done [22:04:52]FM_GetShiftState done [22:04:52]req_shift_opened done [22:04:52]requested_item shift.open_date is exist - process it [22:04:52]req_shift_open_date [22:04:52]req_shift_open_date done [22:04:52]produce_requested_data done [22:04:52]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118930,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [22:04:52]process_action_free print_text [22:04:52]json_value_free [22:04:52]json_value_free done [22:04:52]process_json_proto returns [22:04:52]Send response to host [22:04:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118930,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [22:04:52]free response buf [22:04:52]execute_script done [22:04:52]execute_script returns [22:04:52]free content buf [22:04:52]Sock 9.Close socket [22:04:52]Sock 9.Thread stoped [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:27]accept exits with 7 [22:16:27]New connection [22:16:27]New thread 3067383140 created [22:16:27]Thread 3067239780 joined [22:16:27]Waiting for new connection... [22:16:27] Sock 7.Parse request [22:16:27]Sock 7.Check first char [22:16:27]Sock 7.First char is OK [22:16:27]request: POST /json_proto HTTP/1.0 [22:16:27]Method: POST [22:16:27]URL: /json_proto [22:16:27]Method is POST - this is cgi request [22:16:27]url: /json_proto [22:16:27]query_string will be loaded in cgi processing [22:16:27]execute_cgi json_proto POST (null) [22:16:27]execute_cgi path=json_proto method=POST [22:16:27]POST find Content-Length [22:16:27]Host: 172.17.45.7:8080 [22:16:27]Content-Length: 820 [22:16:27]Content-Type: application/json [22:16:27] [22:16:27]POST finish read [22:16:27]Found Content-Length = 820 [22:16:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:27]execute_script... [22:16:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:27]POST & json_proto [22:16:27]process_json_proto [22:16:27]json parsed OK: [22:16:27]protocol is kg_v1.0 [22:16:27]action value=close_receipt [22:16:27]process_action close_receipt [22:16:27]cmd_close_receipt [22:16:27]MH_GetDate [22:16:27]Write to MH i2c: F0 00 00 F5 85 69 [22:16:27]Write i2c OK [22:16:27]MH_I2C_Read... [22:16:27]Read from MH i2c: F0 [22:16:27]MH_I2C_Read... [22:16:27]Read from MH i2c: F0 09 00 [22:16:27]MH_I2C_Read... [22:16:27]Read from MH i2c: F0 09 00 F5 85 00 C2 14 A8 66 90 0F 3E 66 99 [22:16:27]GetLastDocTimeStamp 1722290483 [22:16:27]current date 1722291394 [22:16:27]FM_GetShiftState [22:16:27]SAM_PROTO_GetShiftState [22:16:27]wFMCommunicate request_size=4 [22:16:27]MH_SAM_APDU [22:16:27]CAPDU: 80 13 01 00 [22:16:27]Write to MH i2c: E2 08 00 F6 85 80 13 01 00 00 00 00 00 F8 [22:16:27]Write i2c OK [22:16:27]MH_I2C_Read... [22:16:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:27]Read from MH i2c: E2 [22:16:27]MH_I2C_Read... [22:16:27]Read from MH i2c: E2 0E 00 [22:16:27]MH_I2C_Read... [22:16:27]Read from MH i2c: E2 0E 00 F6 85 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 26 [22:16:27]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:16:27]wFMCommunicate OK [22:16:27]SAM_PROTO_GetShiftState done [22:16:27]FM_GetShiftState done [22:16:27]opened in 1722211641 [22:16:27]opened+sec_in_day 1722298041 [22:16:27]quantity*price = 998982 [22:16:27]sum+1 = 998983 [22:16:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 9989.00 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 307 29.07.2024 22:16 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118931 ФПД: 175094630565162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T221634&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118931&fm=175094630565162&tin=02508201610067®Number=0000000000092660&sum=998900 [22:16:28]StoreToDocumentArchive [22:16:28]shift 434 fd 118931 [22:16:28]save to /storage/0434/doc_00118931 [22:16:28]save last doc name /storage/0434/doc_00118931 to /storage/kkm_last_doc_name [22:16:28]save OK [22:16:28]Clear old archive folders... [22:16:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:16:28]tlvbuf is 01E5B670 [22:16:28]SAM_PROTO_ClearQueue [22:16:28]wFMCommunicate request_size=4 [22:16:28]MH_SAM_APDU [22:16:28]CAPDU: 80 09 00 00 [22:16:28]Write to MH i2c: E2 08 00 03 86 80 09 00 00 00 00 00 00 FB [22:16:28]Write i2c OK [22:16:28]MH_I2C_Read... [22:16:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:16:28]Read from MH i2c: E2 [22:16:28]MH_I2C_Read... [22:16:28]Read from MH i2c: E2 03 00 [22:16:28]MH_I2C_Read... [22:16:28]Read from MH i2c: E2 03 00 03 86 00 90 00 FD [22:16:28]RAPDU: 90 00 [22:16:28]wFMCommunicate OK [22:16:28]SAM_PROTO_ClearQueue done [22:16:28]KKMCreateOFDPacket [22:16:28]OFDProtocolAddRootSTLVToBuf [22:16:28]FM_MakeSignedData [22:16:28]FM_MakeSignedData [22:16:28]SAM_PROTO_SignData [22:16:28]wFMCommunicate request_size=4 [22:16:28]MH_SAM_APDU [22:16:28]CAPDU: 80 0D 01 02 [22:16:28]Write to MH i2c: E2 08 00 04 86 80 0D 01 02 00 00 00 00 03 [22:16:28]Write i2c OK [22:16:28]MH_I2C_Read... [22:16:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:16:28]Read from MH i2c: E2 [22:16:28]MH_I2C_Read... [22:16:28]Read from MH i2c: E2 03 00 [22:16:28]MH_I2C_Read... [22:16:28]Read from MH i2c: E2 03 00 04 86 00 90 00 FE [22:16:28]RAPDU: 90 00 [22:16:28]wFMCommunicate OK [22:16:28]wFMCommunicate request_size=255 [22:16:28]MH_SAM_APDU [22:16:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 C2 14 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 93 D0 01 00 35 04 06 00 9F 3F 65 41 [22:16:28]Write to MH i2c: E2 02 01 05 86 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 C2 14 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 93 D0 01 00 35 04 06 00 9F 3F 65 41 00 00 E0 [22:16:28]Write i2c OK [22:16:28]MH_I2C_Read... [22:16:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:28]Read from MH i2c: E2 [22:16:28]MH_I2C_Read... [22:16:28]Read from MH i2c: E2 03 00 [22:16:28]MH_I2C_Read... [22:16:28]Read from MH i2c: E2 03 00 05 86 00 90 00 FF [22:16:28]RAPDU: 90 00 [22:16:28]wFMCommunicate OK [22:16:28]wFMCommunicate request_size=7 [22:16:28]MH_SAM_APDU [22:16:28]CAPDU: 80 0D 02 02 02 C5 2A [22:16:28]Write to MH i2c: E2 0A 00 06 86 80 0D 02 02 02 00 C5 2A 00 00 F9 [22:16:28]Write i2c OK [22:16:28]MH_I2C_Read... [22:16:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:28]Read from MH i2c: E2 [22:16:28]MH_I2C_Read... [22:16:28]Read from MH i2c: E2 03 00 [22:16:28]MH_I2C_Read... [22:16:28]Read from MH i2c: E2 03 00 06 86 00 90 00 00 [22:16:28]RAPDU: 90 00 [22:16:28]wFMCommunicate OK [22:16:28]wFMCommunicate request_size=4 [22:16:28]MH_SAM_APDU [22:16:28]CAPDU: 80 0D 03 02 [22:16:28]Write to MH i2c: E2 08 00 07 86 80 0D 03 02 00 00 00 00 08 [22:16:28]Write i2c OK [22:16:28]MH_I2C_Read... [22:16:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:16:28]Read from MH i2c: E2 [22:16:28]MH_I2C_Read... [22:16:28]Read from MH i2c: E2 0B 00 [22:16:28]MH_I2C_Read... [22:16:28]Read from MH i2c: E2 0B 00 07 86 00 84 9E 93 06 FF 86 EA B7 90 00 EA [22:16:28]RAPDU: 84 9E 93 06 FF 86 EA B7 90 00 [22:16:28]wFMCommunicate OK [22:16:28]SAM_PROTO_SignData done [22:16:28]FM_MakeSignedData done [22:16:28]CreateOFDProtocolMessage [22:16:28]wFMCommunicate request_size=4 [22:16:28]MH_SAM_APDU [22:16:28]CAPDU: 80 11 00 00 [22:16:28]Write to MH i2c: E2 08 00 08 86 80 11 00 00 00 00 00 00 08 [22:16:28]Write i2c OK [22:16:28]MH_I2C_Read... [22:16:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:28]Read from MH i2c: E2 [22:16:28]MH_I2C_Read... [22:16:28]Read from MH i2c: E2 17 00 [22:16:28]MH_I2C_Read... [22:16:28]Read from MH i2c: E2 17 00 08 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 63 [22:16:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:16:28]wFMCommunicate OK [22:16:28]CreateOFDProtocolMessage done [22:16:28]OFDSenderStorePacket 118931 [22:16:28]StoreOFDPacket docnum=118931 [22:16:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 82 16 04 01 71 BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 C2 14 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 93 D0 01 00 35 04 06 00 9F 3F 65 41 C5 2A 84 9E 93 06 FF 86 EA B7 [22:16:28]CheckFolder [22:16:28]dirname=/storage/ofd_packets [22:16:28]CheckFolder done [22:16:28]ProducePacketName [22:16:28]name=ofd_packets/00118931 [22:16:28]NVStorageSaveData ofd_packets/00118931 [22:16:28]File name is /storage/ofd_packets/00118931 [22:16:28]Write 298 bytes [22:16:28]NVStorageSaveData done [22:16:28]OFDSenderStorePacket done [22:16:28]KKMCreateOFDPacket done [22:16:28]NVStorageSaveData kkm_last_timestamp [22:16:28]File name is /storage/kkm_last_timestamp [22:16:28]Write 4 bytes [22:16:28]NVStorageSaveData done [22:16:28]ExternCall_PrintAddStr [22:16:28]wPrintStart [22:16:28]Write to MH i2c: 01 00 00 09 86 8F [22:16:28]Write i2c OK [22:16:28]MH_I2C_Read... [22:16:28]Read from MH i2c: 01 [22:16:28]MH_I2C_Read... [22:16:28]Read from MH i2c: 01 07 00 [22:16:28]MH_I2C_Read... [22:16:28]Read from MH i2c: 01 07 00 09 86 00 00 00 00 00 FF 0F A4 [22:16:28]RasterBufferAndPrint [22:16:28]line Счет N : (1)949842 [22:16:28]line ИНН: 02508201610067 [22:16:28]line Контрольно-Кассовый Чек [22:16:28]line ПРОДАЖА [22:16:28]line ТРК (МРК, ГНК) : 21 [22:16:28]line Товар: 2710194800 [22:16:28]line ДТ-К-5 [22:16:28]line 131.100 * 76.20 [22:16:28]line = 9989.82 [22:16:28]line НДС 12% НСП 1% [22:16:28]line > о реализуемом товаре [22:16:28]line ОКРУГЛЕНИЕ: -0.82 [22:16:28]line ИТОГО: 9989.00 [22:16:28]line НСП 1% : 88.40 [22:16:28]line НДС 12% : 1060.87 [22:16:28]line Наличными: 0.00 [22:16:28]line Безнал.: 9989.00 [22:16:28]line Место: АЗС № 134 "Партнер Нефть" [22:16:28]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:16:28]line СНО: Общий режим [22:16:28]line Чек 307 29.07.2024 22:16 [22:16:28]line Смена: 434 ФФД: 1.0 [22:16:28]line ЗНМ: 0300000044 [22:16:28]line РНМ: 0000000000092660 [22:16:28]line Версия ККМ: 001 [22:16:28]line Платежная система: O! деньги [22:16:28]line ФМ: 0000000000874939 [22:16:28]line ФД: 118931 [22:16:28]line ФПД: 175094630565162 [22:16:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T221634&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118931&fm=175094630565162&tin=02508201610067®Number=0000000000092660&sum=998900 [22:16:29]OFD Sender: Processing packet 118931 [packets to send 86, broken 85] [22:16:29]ProducePacketName [22:16:29]name=ofd_packets/00118931 [22:16:29]OFD Sender: To server: pG, [22:16:29]CommunicateWithHost lk.salyk.kg:30040 [22:16:29]ConnectInit lk.salyk.kg [22:16:29]written 0, free lines is 4095 [22:16:29]Connected sock=10 [22:16:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 82 16 04 01 71 BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 C2 14 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 93 D0 01 00 35 04 06 00 9F 3F 65 41 C5 2A 84 9E 93 06 FF 86 EA B7 [22:16:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3D 7E 47 00 1C A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 93 D0 01 00 F4 03 04 00 4F C2 A7 66 B6 04 01 00 00 5B EA 4B 8F C9 C9 37 9E [22:16:29]CommunicateWithHost err = 0 [22:16:29]CheckOFDResponse [22:16:29]1017 (14) - 77093643461234 [22:16:29]1041 (16) - 0000000000874939 [22:16:29]1040 (4) - 118931 [22:16:29]1012 (4) - 29.07.2024 16:24 [22:16:29]1206 (1) - 0 [22:16:29]OFD Sender: Remove packet 118931 [22:16:29]ProducePacketName [22:16:29]name=ofd_packets/00118931 [22:16:29]NVStorageDeleteData [22:16:29]Write to MH i2c: 01 00 00 33 86 B9 [22:16:29]Write i2c OK [22:16:29]MH_I2C_Read... [22:16:29]Read from MH i2c: 01 [22:16:29]MH_I2C_Read... [22:16:29]Read from MH i2c: 01 07 00 [22:16:29]MH_I2C_Read... [22:16:29]Read from MH i2c: 01 07 00 33 86 00 00 00 00 00 EC 0C B8 [22:16:29]RasterBufferAndPrint [22:16:29]line [22:16:29]line [22:16:29]line [22:16:29]line [22:16:29]line [22:16:29]written 0, free lines is 3315 [22:16:29]MH_Cut [22:16:29]Write to MH i2c: D1 01 00 3A 86 01 92 [22:16:29]Write i2c OK [22:16:29]MH_I2C_Read... [22:16:29]Read from MH i2c: D1 [22:16:29]MH_I2C_Read... [22:16:29]Read from MH i2c: D1 01 00 [22:16:29]MH_I2C_Read... [22:16:29]Read from MH i2c: D1 01 00 3A 86 00 91 [22:16:29]Write to MH i2c: 01 00 00 3B 86 C1 [22:16:29]Write i2c OK [22:16:29]MH_I2C_Read... [22:16:29]OFD Sender: No OFD packet to send [22:16:30]*** Cut start [22:16:30]*** Partial cut [22:16:30]*** CUTSNS_PIN = 1 [22:16:30]*** CUTSNS_PIN = 0 [22:16:30]*** Brake cut motor [22:16:30]Read from MH i2c: 01 [22:16:30]MH_I2C_Read... [22:16:30]*** Stop cut motor [22:16:30]*** Cut end [22:16:30]Read from MH i2c: 01 07 00 [22:16:30]MH_I2C_Read... [22:16:30]Read from MH i2c: 01 07 00 3B 86 00 00 00 00 00 FF 0F D6 [22:16:30]process_action close_receipt done [22:16:30]requested_data is exist [22:16:30]produce_requested_data [22:16:30]requested_item fm.sn is exist - process it [22:16:30]wFMCommunicate request_size=4 [22:16:30]MH_SAM_APDU [22:16:30]CAPDU: 80 11 00 00 [22:16:30]Write to MH i2c: E2 08 00 3C 86 80 11 00 00 00 00 00 00 3C [22:16:30]Write i2c OK [22:16:30]MH_I2C_Read... [22:16:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:30]Read from MH i2c: E2 [22:16:30]MH_I2C_Read... [22:16:30]Read from MH i2c: E2 17 00 [22:16:30]MH_I2C_Read... [22:16:30]Read from MH i2c: E2 17 00 3C 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 97 [22:16:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:16:30]wFMCommunicate OK [22:16:30]requested_item fd.num is exist - process it [22:16:30]SAM_PROTO_GetFieldsCounters [22:16:30]wFMCommunicate request_size=4 [22:16:30]MH_SAM_APDU [22:16:30]CAPDU: 80 13 00 00 [22:16:30]Write to MH i2c: E2 08 00 3D 86 80 13 00 00 00 00 00 00 3F [22:16:30]Write i2c OK [22:16:30]MH_I2C_Read... [22:16:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:31]Read from MH i2c: E2 [22:16:31]MH_I2C_Read... [22:16:31]Read from MH i2c: E2 62 00 [22:16:31]MH_I2C_Read... [22:16:31]Read from MH i2c: E2 62 00 3D 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 93 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 19 [22:16: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 93 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:16:31]wFMCommunicate OK [22:16:31]SAM_PROTO_GetFieldsCounters done [22:16:31]requested_item shift.num is exist - process it [22:16:31]requested_item shift.opened is exist - process it [22:16:31]req_shift_opened [22:16:31]FM_GetShiftState [22:16:31]SAM_PROTO_GetShiftState [22:16:31]wFMCommunicate request_size=4 [22:16:31]MH_SAM_APDU [22:16:31]CAPDU: 80 13 01 00 [22:16:31]Write to MH i2c: E2 08 00 3E 86 80 13 01 00 00 00 00 00 41 [22:16:31]Write i2c OK [22:16:31]MH_I2C_Read... [22:16:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:31]Read from MH i2c: E2 [22:16:31]MH_I2C_Read... [22:16:31]Read from MH i2c: E2 0E 00 [22:16:31]MH_I2C_Read... [22:16:31]Read from MH i2c: E2 0E 00 3E 86 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 6F [22:16:31]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:16:31]wFMCommunicate OK [22:16:31]SAM_PROTO_GetShiftState done [22:16:31]FM_GetShiftState done [22:16:31]req_shift_opened done [22:16:31]requested_item shift.open_date is exist - process it [22:16:31]req_shift_open_date [22:16:31]req_shift_open_date done [22:16:31]produce_requested_data done [22:16:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118931,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [22:16:31]process_action_free close_receipt [22:16:31]json_value_free [22:16:31]json_value_free done [22:16:31]process_json_proto returns [22:16:31]Send response to host [22:16:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118931,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [22:16:31]free response buf [22:16:31]execute_script done [22:16:31]execute_script returns [22:16:31]free content buf [22:16:31]Sock 7.Close socket [22:16:31]Sock 7.Thread stoped [22:16:34]OFD Sender: No OFD packet to send [22:16:39]accept exits with 9 [22:16:39]New connection [22:16:39]New thread 3067239780 created [22:16:39]Thread 3067383140 joined [22:16:39]Waiting for new connection... [22:16:39] Sock 9.Parse request [22:16:39]Sock 9.Check first char [22:16:39]Sock 9.First char is OK [22:16:39]request: POST /json_proto HTTP/1.0 [22:16:39]Method: POST [22:16:39]URL: /json_proto [22:16:39]Method is POST - this is cgi request [22:16:39]url: /json_proto [22:16:39]query_string will be loaded in cgi processing [22:16:39]execute_cgi json_proto POST (null) [22:16:39]execute_cgi path=json_proto method=POST [22:16:39]POST find Content-Length [22:16:39]Host: 172.17.45.7:8080 [22:16:39]Content-Length: 820 [22:16:39]Content-Type: application/json [22:16:39] [22:16:39]POST finish read [22:16:39]Found Content-Length = 820 [22:16:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:39]execute_script... [22:16:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:39]POST & json_proto [22:16:39]process_json_proto [22:16:39]json parsed OK: [22:16:39]protocol is kg_v1.0 [22:16:39]action value=close_receipt [22:16:39]process_action close_receipt [22:16:39]cmd_close_receipt [22:16:39]MH_GetDate [22:16:39]Write to MH i2c: F0 00 00 3F 86 B4 [22:16:39]Write i2c OK [22:16:39]MH_I2C_Read... [22:16:39]Read from MH i2c: F0 [22:16:39]MH_I2C_Read... [22:16:39]Read from MH i2c: F0 09 00 [22:16:39]MH_I2C_Read... [22:16:39]Read from MH i2c: F0 09 00 3F 86 00 CE 14 A8 66 90 0F 3E 66 F0 [22:16:39]GetLastDocTimeStamp 1722291394 [22:16:39]current date 1722291406 [22:16:39]FM_GetShiftState [22:16:39]SAM_PROTO_GetShiftState [22:16:39]wFMCommunicate request_size=4 [22:16:39]MH_SAM_APDU [22:16:39]CAPDU: 80 13 01 00 [22:16:39]Write to MH i2c: E2 08 00 40 86 80 13 01 00 00 00 00 00 43 [22:16:39]Write i2c OK [22:16:39]MH_I2C_Read... [22:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:39]Read from MH i2c: E2 [22:16:39]MH_I2C_Read... [22:16:39]Read from MH i2c: E2 0E 00 [22:16:39]MH_I2C_Read... [22:16:39]Read from MH i2c: E2 0E 00 40 86 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 71 [22:16:39]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:16:39]wFMCommunicate OK [22:16:39]SAM_PROTO_GetShiftState done [22:16:39]FM_GetShiftState done [22:16:39]opened in 1722211641 [22:16:39]opened+sec_in_day 1722298041 [22:16:39]quantity*price = 998982 [22:16:39]sum+1 = 998983 [22:16:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 9989.00 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 308 29.07.2024 22:16 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118932 ФПД: 94516574533455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T221646&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118932&fm=94516574533455&tin=02508201610067®Number=0000000000092660&sum=998900 [22:16:40]StoreToDocumentArchive [22:16:40]shift 434 fd 118932 [22:16:40]save to /storage/0434/doc_00118932 [22:16:40]save last doc name /storage/0434/doc_00118932 to /storage/kkm_last_doc_name [22:16:40]save OK [22:16:40]Clear old archive folders... [22:16:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:16:40]tlvbuf is B6E117E0 [22:16:40]SAM_PROTO_ClearQueue [22:16:40]wFMCommunicate request_size=4 [22:16:40]MH_SAM_APDU [22:16:40]CAPDU: 80 09 00 00 [22:16:40]Write to MH i2c: E2 08 00 4D 86 80 09 00 00 00 00 00 00 45 [22:16:40]Write i2c OK [22:16:40]MH_I2C_Read... [22:16:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:16:40]Read from MH i2c: E2 [22:16:40]MH_I2C_Read... [22:16:40]Read from MH i2c: E2 03 00 [22:16:40]MH_I2C_Read... [22:16:40]Read from MH i2c: E2 03 00 4D 86 00 90 00 47 [22:16:40]RAPDU: 90 00 [22:16:40]wFMCommunicate OK [22:16:40]SAM_PROTO_ClearQueue done [22:16:40]KKMCreateOFDPacket [22:16:40]OFDProtocolAddRootSTLVToBuf [22:16:40]FM_MakeSignedData [22:16:40]FM_MakeSignedData [22:16:40]SAM_PROTO_SignData [22:16:40]wFMCommunicate request_size=4 [22:16:40]MH_SAM_APDU [22:16:40]CAPDU: 80 0D 01 02 [22:16:40]Write to MH i2c: E2 08 00 4E 86 80 0D 01 02 00 00 00 00 4D [22:16:40]Write i2c OK [22:16:40]MH_I2C_Read... [22:16:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:16:40]Read from MH i2c: E2 [22:16:40]MH_I2C_Read... [22:16:40]Read from MH i2c: E2 03 00 [22:16:40]MH_I2C_Read... [22:16:40]Read from MH i2c: E2 03 00 4E 86 00 90 00 48 [22:16:40]RAPDU: 90 00 [22:16:40]wFMCommunicate OK [22:16:40]wFMCommunicate request_size=255 [22:16:40]MH_SAM_APDU [22:16:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 CE 14 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 94 D0 01 00 35 04 06 00 55 F6 5A D9 [22:16:40]Write to MH i2c: E2 02 01 4F 86 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 CE 14 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 94 D0 01 00 35 04 06 00 55 F6 5A D9 00 00 32 [22:16:40]Write i2c OK [22:16:40]MH_I2C_Read... [22:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:40]Read from MH i2c: E2 [22:16:40]MH_I2C_Read... [22:16:40]Read from MH i2c: E2 03 00 [22:16:40]MH_I2C_Read... [22:16:40]Read from MH i2c: E2 03 00 4F 86 00 90 00 49 [22:16:40]RAPDU: 90 00 [22:16:40]wFMCommunicate OK [22:16:40]wFMCommunicate request_size=7 [22:16:40]MH_SAM_APDU [22:16:40]CAPDU: 80 0D 02 02 02 B7 4F [22:16:40]Write to MH i2c: E2 0A 00 50 86 80 0D 02 02 02 00 B7 4F 00 00 5A [22:16:40]Write i2c OK [22:16:40]MH_I2C_Read... [22:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:40]Read from MH i2c: E2 [22:16:40]MH_I2C_Read... [22:16:40]Read from MH i2c: E2 03 00 [22:16:40]MH_I2C_Read... [22:16:40]Read from MH i2c: E2 03 00 50 86 00 90 00 4A [22:16:40]RAPDU: 90 00 [22:16:40]wFMCommunicate OK [22:16:40]wFMCommunicate request_size=4 [22:16:40]MH_SAM_APDU [22:16:40]CAPDU: 80 0D 03 02 [22:16:40]Write to MH i2c: E2 08 00 51 86 80 0D 03 02 00 00 00 00 52 [22:16:40]Write i2c OK [22:16:40]MH_I2C_Read... [22:16:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:16:40]Read from MH i2c: E2 [22:16:40]MH_I2C_Read... [22:16:40]Read from MH i2c: E2 0B 00 [22:16:40]MH_I2C_Read... [22:16:40]Read from MH i2c: E2 0B 00 51 86 00 A8 42 54 24 CC E3 88 57 90 00 43 [22:16:40]RAPDU: A8 42 54 24 CC E3 88 57 90 00 [22:16:40]wFMCommunicate OK [22:16:40]SAM_PROTO_SignData done [22:16:40]FM_MakeSignedData done [22:16:40]CreateOFDProtocolMessage [22:16:40]wFMCommunicate request_size=4 [22:16:40]MH_SAM_APDU [22:16:40]CAPDU: 80 11 00 00 [22:16:40]Write to MH i2c: E2 08 00 52 86 80 11 00 00 00 00 00 00 52 [22:16:40]Write i2c OK [22:16:40]MH_I2C_Read... [22:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:40]Read from MH i2c: E2 [22:16:40]MH_I2C_Read... [22:16:40]Read from MH i2c: E2 17 00 [22:16:40]MH_I2C_Read... [22:16:40]Read from MH i2c: E2 17 00 52 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AD [22:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:16:40]wFMCommunicate OK [22:16:40]CreateOFDProtocolMessage done [22:16:40]OFDSenderStorePacket 118932 [22:16:40]StoreOFDPacket docnum=118932 [22:16:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 D9 78 04 01 7B 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 CE 14 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 94 D0 01 00 35 04 06 00 55 F6 5A D9 B7 4F A8 42 54 24 CC E3 88 57 [22:16:40]CheckFolder [22:16:40]dirname=/storage/ofd_packets [22:16:40]CheckFolder done [22:16:40]ProducePacketName [22:16:40]name=ofd_packets/00118932 [22:16:40]NVStorageSaveData ofd_packets/00118932 [22:16:40]File name is /storage/ofd_packets/00118932 [22:16:40]Write 298 bytes [22:16:40]NVStorageSaveData done [22:16:40]OFDSenderStorePacket done [22:16:40]KKMCreateOFDPacket done [22:16:40]NVStorageSaveData kkm_last_timestamp [22:16:40]File name is /storage/kkm_last_timestamp [22:16:40]Write 4 bytes [22:16:40]NVStorageSaveData done [22:16:40]ExternCall_PrintAddStr [22:16:40]wPrintStart [22:16:40]Write to MH i2c: 01 00 00 53 86 D9 [22:16:40]Write i2c OK [22:16:40]MH_I2C_Read... [22:16:40]Read from MH i2c: 01 [22:16:40]MH_I2C_Read... [22:16:40]Read from MH i2c: 01 07 00 [22:16:40]MH_I2C_Read... [22:16:40]Read from MH i2c: 01 07 00 53 86 00 00 00 00 00 FF 0F EE [22:16:40]RasterBufferAndPrint [22:16:40]line Счет N : (1)949843 [22:16:40]line ИНН: 02508201610067 [22:16:40]line Контрольно-Кассовый Чек [22:16:40]line ПРОДАЖА [22:16:40]line ТРК (МРК, ГНК) : 11 [22:16:40]line Товар: 2710194800 [22:16:40]line ДТ-К-5 [22:16:40]line 131.100 * 76.20 [22:16:40]line = 9989.82 [22:16:40]line НДС 12% НСП 1% [22:16:40]line > о реализуемом товаре [22:16:40]line ОКРУГЛЕНИЕ: -0.82 [22:16:40]line ИТОГО: 9989.00 [22:16:40]line НСП 1% : 88.40 [22:16:40]line НДС 12% : 1060.87 [22:16:40]line Наличными: 0.00 [22:16:40]line Безнал.: 9989.00 [22:16:40]line Место: АЗС № 134 "Партнер Нефть" [22:16:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:16:40]line СНО: Общий режим [22:16:40]line Чек 308 29.07.2024 22:16 [22:16:40]line Смена: 434 ФФД: 1.0 [22:16:40]line ЗНМ: 0300000044 [22:16:40]line РНМ: 0000000000092660 [22:16:40]line Версия ККМ: 001 [22:16:40]line Платежная система: O! деньги [22:16:40]line ФМ: 0000000000874939 [22:16:40]line ФД: 118932 [22:16:40]line ФПД: 94516574533455 [22:16:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T221646&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118932&fm=94516574533455&tin=02508201610067®Number=0000000000092660&sum=998900 [22:16:41]OFD Sender: Processing packet 118932 [packets to send 86, broken 85] [22:16:41]ProducePacketName [22:16:41]name=ofd_packets/00118932 [22:16:41]OFD Sender: To server: pG, [22:16:41]CommunicateWithHost lk.salyk.kg:30040 [22:16:41]ConnectInit lk.salyk.kg [22:16:41]written 0, free lines is 4095 [22:16:41]Connected sock=10 [22:16:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 D9 78 04 01 7B 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 CE 14 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 94 D0 01 00 35 04 06 00 55 F6 5A D9 B7 4F A8 42 54 24 CC E3 88 57 [22:16:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7F E8 47 00 23 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 34 39 33 39 10 04 04 00 94 D0 01 00 F4 03 04 00 5B C2 A7 66 B6 04 01 00 00 FF 53 9B 48 F5 83 83 BD [22:16:41]CommunicateWithHost err = 0 [22:16:41]CheckOFDResponse [22:16:41]1017 (14) - 77093643461234 [22:16:41]1041 (16) - 0000000000874939 [22:16:41]1040 (4) - 118932 [22:16:41]1012 (4) - 29.07.2024 16:24 [22:16:41]1206 (1) - 0 [22:16:41]OFD Sender: Remove packet 118932 [22:16:41]ProducePacketName [22:16:41]name=ofd_packets/00118932 [22:16:41]NVStorageDeleteData [22:16:41]Write to MH i2c: 01 00 00 7D 86 03 [22:16:41]Write i2c OK [22:16:41]MH_I2C_Read... [22:16:41]Read from MH i2c: 01 [22:16:41]MH_I2C_Read... [22:16:41]Read from MH i2c: 01 07 00 [22:16:41]MH_I2C_Read... [22:16:41]Read from MH i2c: 01 07 00 7D 86 00 00 00 00 00 E5 0C FB [22:16:41]RasterBufferAndPrint [22:16:41]line [22:16:41]line [22:16:41]line [22:16:41]line [22:16:41]line [22:16:41]written 0, free lines is 3310 [22:16:41]MH_Cut [22:16:41]Write to MH i2c: D1 01 00 84 86 01 DC [22:16:41]Write i2c OK [22:16:41]MH_I2C_Read... [22:16:41]Read from MH i2c: D1 [22:16:41]MH_I2C_Read... [22:16:41]Read from MH i2c: D1 01 00 [22:16:41]MH_I2C_Read... [22:16:41]Read from MH i2c: D1 01 00 84 86 00 DB [22:16:41]Write to MH i2c: 01 00 00 85 86 0B [22:16:41]Write i2c OK [22:16:41]MH_I2C_Read... [22:16:42]OFD Sender: No OFD packet to send [22:16:42]*** Cut start [22:16:42]*** Partial cut [22:16:42]*** CUTSNS_PIN = 1 [22:16:42]*** CUTSNS_PIN = 0 [22:16:42]*** Brake cut motor [22:16:43]Read from MH i2c: 01 [22:16:43]MH_I2C_Read... [22:16:43]*** Stop cut motor [22:16:43]*** Cut end [22:16:43]Read from MH i2c: 01 07 00 [22:16:43]MH_I2C_Read... [22:16:43]Read from MH i2c: 01 07 00 85 86 00 00 00 00 00 FF 0F 20 [22:16:43]process_action close_receipt done [22:16:43]requested_data is exist [22:16:43]produce_requested_data [22:16:43]requested_item fm.sn is exist - process it [22:16:43]wFMCommunicate request_size=4 [22:16:43]MH_SAM_APDU [22:16:43]CAPDU: 80 11 00 00 [22:16:43]Write to MH i2c: E2 08 00 86 86 80 11 00 00 00 00 00 00 86 [22:16:43]Write i2c OK [22:16:43]MH_I2C_Read... [22:16:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:43]Read from MH i2c: E2 [22:16:43]MH_I2C_Read... [22:16:43]Read from MH i2c: E2 17 00 [22:16:43]MH_I2C_Read... [22:16:43]Read from MH i2c: E2 17 00 86 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E1 [22:16:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:16:43]wFMCommunicate OK [22:16:43]requested_item fd.num is exist - process it [22:16:43]SAM_PROTO_GetFieldsCounters [22:16:43]wFMCommunicate request_size=4 [22:16:43]MH_SAM_APDU [22:16:43]CAPDU: 80 13 00 00 [22:16:43]Write to MH i2c: E2 08 00 87 86 80 13 00 00 00 00 00 00 89 [22:16:43]Write i2c OK [22:16:43]MH_I2C_Read... [22:16:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:43]Read from MH i2c: E2 [22:16:43]MH_I2C_Read... [22:16:43]Read from MH i2c: E2 62 00 [22:16:43]MH_I2C_Read... [22:16:43]Read from MH i2c: E2 62 00 87 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 94 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 67 [22:16: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 94 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:16:43]wFMCommunicate OK [22:16:43]SAM_PROTO_GetFieldsCounters done [22:16:43]requested_item shift.num is exist - process it [22:16:43]requested_item shift.opened is exist - process it [22:16:43]req_shift_opened [22:16:43]FM_GetShiftState [22:16:43]SAM_PROTO_GetShiftState [22:16:43]wFMCommunicate request_size=4 [22:16:43]MH_SAM_APDU [22:16:43]CAPDU: 80 13 01 00 [22:16:43]Write to MH i2c: E2 08 00 88 86 80 13 01 00 00 00 00 00 8B [22:16:43]Write i2c OK [22:16:43]MH_I2C_Read... [22:16:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:43]Read from MH i2c: E2 [22:16:43]MH_I2C_Read... [22:16:43]Read from MH i2c: E2 0E 00 [22:16:43]MH_I2C_Read... [22:16:43]Read from MH i2c: E2 0E 00 88 86 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 B9 [22:16:43]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:16:43]wFMCommunicate OK [22:16:43]SAM_PROTO_GetShiftState done [22:16:43]FM_GetShiftState done [22:16:43]req_shift_opened done [22:16:43]requested_item shift.open_date is exist - process it [22:16:43]req_shift_open_date [22:16:43]req_shift_open_date done [22:16:43]produce_requested_data done [22:16:43]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118932,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [22:16:43]process_action_free close_receipt [22:16:43]json_value_free [22:16:43]json_value_free done [22:16:43]process_json_proto returns [22:16:43]Send response to host [22:16:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118932,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [22:16:43]free response buf [22:16:43]execute_script done [22:16:43]execute_script returns [22:16:43]free content buf [22:16:43]Sock 9.Close socket [22:16:43]Sock 9.Thread stoped [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:37]accept exits with 7 [22:18:37]New connection [22:18:37]New thread 3067383140 created [22:18:37]Thread 3067239780 joined [22:18:37]Waiting for new connection... [22:18:37] Sock 7.Parse request [22:18:37]Sock 7.Check first char [22:18:37]Sock 7.First char is OK [22:18:37]request: POST /json_proto HTTP/1.0 [22:18:37]Method: POST [22:18:37]URL: /json_proto [22:18:37]Method is POST - this is cgi request [22:18:37]url: /json_proto [22:18:37]query_string will be loaded in cgi processing [22:18:37]execute_cgi json_proto POST (null) [22:18:37]execute_cgi path=json_proto method=POST [22:18:37]POST find Content-Length [22:18:37]Host: 172.17.45.7:8080 [22:18:37]Content-Length: 838 [22:18:37]Content-Type: application/json [22:18:37] [22:18:37]POST finish read [22:18:37]Found Content-Length = 838 [22:18:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.54, "quantity" : 16.320, "sum" : 1200.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1200.00, "payments": [ { "type": 1, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:37]execute_script... [22:18: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)949844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.54, "quantity" : 16.320, "sum" : 1200.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1200.00, "payments": [ { "type": 1, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:37]POST & json_proto [22:18:37]process_json_proto [22:18:37]json parsed OK: [22:18:37]protocol is kg_v1.0 [22:18:37]action value=close_receipt [22:18:37]process_action close_receipt [22:18:37]cmd_close_receipt [22:18:37]MH_GetDate [22:18:37]Write to MH i2c: F0 00 00 89 86 FE [22:18:37]Write i2c OK [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: F0 [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: F0 09 00 [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: F0 09 00 89 86 00 45 15 A8 66 90 0F 3E 66 B2 [22:18:37]GetLastDocTimeStamp 1722291406 [22:18:37]current date 1722291525 [22:18:37]FM_GetShiftState [22:18:37]SAM_PROTO_GetShiftState [22:18:37]wFMCommunicate request_size=4 [22:18:37]MH_SAM_APDU [22:18:37]CAPDU: 80 13 01 00 [22:18:37]Write to MH i2c: E2 08 00 8A 86 80 13 01 00 00 00 00 00 8D [22:18:37]Write i2c OK [22:18:37]MH_I2C_Read... [22:18:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:37]Read from MH i2c: E2 [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: E2 0E 00 [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: E2 0E 00 8A 86 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 BB [22:18:37]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:18:37]wFMCommunicate OK [22:18:37]SAM_PROTO_GetShiftState done [22:18:37]FM_GetShiftState done [22:18:37]opened in 1722211641 [22:18:37]opened+sec_in_day 1722298041 [22:18:37]quantity*price = 120017 [22:18:37]sum+1 = 120018 [22:18:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1200.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 0.00 Безнал.: 1200.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 309 29.07.2024 22:18 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 118933 ФПД: 152272249127479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T221845&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118933&fm=152272249127479&tin=02508201610067®Number=0000000000092660&sum=120000 [22:18:38]StoreToDocumentArchive [22:18:38]shift 434 fd 118933 [22:18:38]save to /storage/0434/doc_00118933 [22:18:38]save last doc name /storage/0434/doc_00118933 to /storage/kkm_last_doc_name [22:18:38]save OK [22:18:38]Clear old archive folders... [22:18:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:18:38]tlvbuf is 01E97D90 [22:18:38]SAM_PROTO_ClearQueue [22:18:38]wFMCommunicate request_size=4 [22:18:38]MH_SAM_APDU [22:18:38]CAPDU: 80 09 00 00 [22:18:38]Write to MH i2c: E2 08 00 97 86 80 09 00 00 00 00 00 00 8F [22:18:38]Write i2c OK [22:18:38]MH_I2C_Read... [22:18:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:18:38]Read from MH i2c: E2 [22:18:38]MH_I2C_Read... [22:18:38]Read from MH i2c: E2 03 00 [22:18:38]MH_I2C_Read... [22:18:38]Read from MH i2c: E2 03 00 97 86 00 90 00 91 [22:18:38]RAPDU: 90 00 [22:18:38]wFMCommunicate OK [22:18:38]SAM_PROTO_ClearQueue done [22:18:38]KKMCreateOFDPacket [22:18:38]OFDProtocolAddRootSTLVToBuf [22:18:38]FM_MakeSignedData [22:18:38]FM_MakeSignedData [22:18:38]SAM_PROTO_SignData [22:18:38]wFMCommunicate request_size=4 [22:18:38]MH_SAM_APDU [22:18:38]CAPDU: 80 0D 01 02 [22:18:38]Write to MH i2c: E2 08 00 98 86 80 0D 01 02 00 00 00 00 97 [22:18:38]Write i2c OK [22:18:38]MH_I2C_Read... [22:18:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:18:38]Read from MH i2c: E2 [22:18:38]MH_I2C_Read... [22:18:38]Read from MH i2c: E2 03 00 [22:18:38]MH_I2C_Read... [22:18:38]Read from MH i2c: E2 03 00 98 86 00 90 00 92 [22:18:38]RAPDU: 90 00 [22:18:38]wFMCommunicate OK [22:18:38]wFMCommunicate request_size=255 [22:18:38]MH_SAM_APDU [22:18:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C0 3F 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 D1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 45 15 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 95 D0 01 00 35 04 06 00 8A [22:18:38]Write to MH i2c: E2 02 01 99 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C0 3F 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 D1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 45 15 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 95 D0 01 00 35 04 06 00 8A 00 00 B3 [22:18:38]Write i2c OK [22:18:38]MH_I2C_Read... [22:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:39]Read from MH i2c: E2 [22:18:39]MH_I2C_Read... [22:18:39]Read from MH i2c: E2 03 00 [22:18:39]MH_I2C_Read... [22:18:39]Read from MH i2c: E2 03 00 99 86 00 90 00 93 [22:18:39]RAPDU: 90 00 [22:18:39]wFMCommunicate OK [22:18:39]wFMCommunicate request_size=10 [22:18:39]MH_SAM_APDU [22:18:39]CAPDU: 80 0D 02 02 05 7D A5 51 82 37 [22:18:39]Write to MH i2c: E2 0D 00 9A 86 80 0D 02 02 05 00 7D A5 51 82 37 00 00 D0 [22:18:39]Write i2c OK [22:18:39]MH_I2C_Read... [22:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:39]Read from MH i2c: E2 [22:18:39]MH_I2C_Read... [22:18:39]Read from MH i2c: E2 03 00 [22:18:39]MH_I2C_Read... [22:18:39]Read from MH i2c: E2 03 00 9A 86 00 90 00 94 [22:18:39]RAPDU: 90 00 [22:18:39]wFMCommunicate OK [22:18:39]wFMCommunicate request_size=4 [22:18:39]MH_SAM_APDU [22:18:39]CAPDU: 80 0D 03 02 [22:18:39]Write to MH i2c: E2 08 00 9B 86 80 0D 03 02 00 00 00 00 9C [22:18:39]Write i2c OK [22:18:39]MH_I2C_Read... [22:18:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:18:39]Read from MH i2c: E2 [22:18:39]MH_I2C_Read... [22:18:39]Read from MH i2c: E2 0B 00 [22:18:39]MH_I2C_Read... [22:18:39]Read from MH i2c: E2 0B 00 9B 86 00 FE EC 10 D6 62 FA D7 C1 90 00 61 [22:18:39]RAPDU: FE EC 10 D6 62 FA D7 C1 90 00 [22:18:39]wFMCommunicate OK [22:18:39]SAM_PROTO_SignData done [22:18:39]FM_MakeSignedData done [22:18:39]CreateOFDProtocolMessage [22:18:39]wFMCommunicate request_size=4 [22:18:39]MH_SAM_APDU [22:18:39]CAPDU: 80 11 00 00 [22:18:39]Write to MH i2c: E2 08 00 9C 86 80 11 00 00 00 00 00 00 9C [22:18:39]Write i2c OK [22:18:39]MH_I2C_Read... [22:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:39]Read from MH i2c: E2 [22:18:39]MH_I2C_Read... [22:18:39]Read from MH i2c: E2 17 00 [22:18:39]MH_I2C_Read... [22:18:39]Read from MH i2c: E2 17 00 9C 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F7 [22:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:18:39]wFMCommunicate OK [22:18:39]CreateOFDProtocolMessage done [22:18:39]OFDSenderStorePacket 118933 [22:18:39]StoreOFDPacket docnum=118933 [22:18:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5E 81 07 01 B5 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C0 3F 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 D1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 45 15 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 95 D0 01 00 35 04 06 00 8A 7D A5 51 82 37 FE EC 10 D6 62 FA D7 C1 [22:18:39]CheckFolder [22:18:39]dirname=/storage/ofd_packets [22:18:39]CheckFolder done [22:18:39]ProducePacketName [22:18:39]name=ofd_packets/00118933 [22:18:39]NVStorageSaveData ofd_packets/00118933 [22:18:39]File name is /storage/ofd_packets/00118933 [22:18:39]Write 301 bytes [22:18:39]NVStorageSaveData done [22:18:39]OFDSenderStorePacket done [22:18:39]KKMCreateOFDPacket done [22:18:39]NVStorageSaveData kkm_last_timestamp [22:18:39]File name is /storage/kkm_last_timestamp [22:18:39]Write 4 bytes [22:18:39]NVStorageSaveData done [22:18:39]ExternCall_PrintAddStr [22:18:39]wPrintStart [22:18:39]Write to MH i2c: 01 00 00 9D 86 23 [22:18:39]Write i2c OK [22:18:39]MH_I2C_Read... [22:18:39]Read from MH i2c: 01 [22:18:39]MH_I2C_Read... [22:18:39]Read from MH i2c: 01 07 00 [22:18:39]MH_I2C_Read... [22:18:39]Read from MH i2c: 01 07 00 9D 86 00 00 00 00 00 FF 0F 38 [22:18:39]RasterBufferAndPrint [22:18:39]line Счет N : (1)949844 [22:18:39]line ИНН: 02508201610067 [22:18:39]line Контрольно-Кассовый Чек [22:18:39]line ПРОДАЖА [22:18:39]line ТРК (МРК, ГНК) : 43 [22:18:39]line Товар: 2710124500 [22:18:39]line Аи-95-К-3 [22:18:39]line 16.320 * 73.54 [22:18:39]line = 1200.17 [22:18:39]line НДС 12% НСП 1% [22:18:39]line > о реализуемом товаре [22:18:39]line ОКРУГЛЕНИЕ: -0.17 [22:18:39]line ИТОГО: 1200.00 [22:18:39]line НСП 1% : 10.62 [22:18:39]line НДС 12% : 127.45 [22:18:39]line Наличными: 0.00 [22:18:39]line Безнал.: 1200.00 [22:18:39]line Место: АЗС № 134 "Партнер Нефть" [22:18:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:18:39]line СНО: Общий режим [22:18:39]line Чек 309 29.07.2024 22:18 [22:18:39]line Смена: 434 ФФД: 1.0 [22:18:39]line ЗНМ: 0300000044 [22:18:39]line РНМ: 0000000000092660 [22:18:39]line Версия ККМ: 001 [22:18:39]line Платежная система: Бакай Банк [22:18:39]line ФМ: 0000000000874939 [22:18:39]line ФД: 118933 [22:18:39]line ФПД: 152272249127479 [22:18:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T221845&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118933&fm=152272249127479&tin=02508201610067®Number=0000000000092660&sum=120000 [22:18:39]OFD Sender: Processing packet 118933 [packets to send 86, broken 85] [22:18:39]ProducePacketName [22:18:39]name=ofd_packets/00118933 [22:18:39]OFD Sender: To server: pG, [22:18:39]CommunicateWithHost lk.salyk.kg:30040 [22:18:39]ConnectInit lk.salyk.kg [22:18:39]written 0, free lines is 4095 [22:18:39]Connected sock=11 [22:18:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5E 81 07 01 B5 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C0 3F 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 D1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 45 15 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 95 D0 01 00 35 04 06 00 8A 7D A5 51 82 37 FE EC 10 D6 62 FA D7 C1 [22:18:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 10 88 47 00 16 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 95 D0 01 00 F4 03 04 00 D2 C2 A7 66 B6 04 01 00 00 B1 4E E3 A4 3D 8B 94 AC [22:18:40]CommunicateWithHost err = 0 [22:18:40]CheckOFDResponse [22:18:40]1017 (14) - 77093643461234 [22:18:40]1041 (16) - 0000000000874939 [22:18:40]1040 (4) - 118933 [22:18:40]1012 (4) - 29.07.2024 16:26 [22:18:40]1206 (1) - 0 [22:18:40]OFD Sender: Remove packet 118933 [22:18:40]ProducePacketName [22:18:40]name=ofd_packets/00118933 [22:18:40]NVStorageDeleteData [22:18:40]Write to MH i2c: 01 00 00 C7 86 4D [22:18:40]Write i2c OK [22:18:40]MH_I2C_Read... [22:18:40]Read from MH i2c: 01 [22:18:40]MH_I2C_Read... [22:18:40]Read from MH i2c: 01 07 00 [22:18:40]MH_I2C_Read... [22:18:40]Read from MH i2c: 01 07 00 C7 86 00 00 00 00 00 EB 0C 4B [22:18:40]RasterBufferAndPrint [22:18:40]line [22:18:40]line [22:18:40]line [22:18:40]line [22:18:40]line [22:18:40]written 0, free lines is 3314 [22:18:40]MH_Cut [22:18:40]Write to MH i2c: D1 01 00 CE 86 01 26 [22:18:40]Write i2c OK [22:18:40]MH_I2C_Read... [22:18:40]Read from MH i2c: D1 [22:18:40]MH_I2C_Read... [22:18:40]Read from MH i2c: D1 01 00 [22:18:40]MH_I2C_Read... [22:18:40]Read from MH i2c: D1 01 00 CE 86 00 25 [22:18:40]Write to MH i2c: 01 00 00 CF 86 55 [22:18:40]Write i2c OK [22:18:40]MH_I2C_Read... [22:18:40]OFD Sender: No OFD packet to send [22:18:40]*** Cut start [22:18:40]*** Partial cut [22:18:40]*** CUTSNS_PIN = 1 [22:18:40]*** CUTSNS_PIN = 0 [22:18:41]*** Brake cut motor [22:18:41]Read from MH i2c: 01 [22:18:41]MH_I2C_Read... [22:18:41]*** Stop cut motor [22:18:41]*** Cut end [22:18:41]Read from MH i2c: 01 07 00 [22:18:41]MH_I2C_Read... [22:18:41]Read from MH i2c: 01 07 00 CF 86 00 00 00 00 00 FF 0F 6A [22:18:41]process_action close_receipt done [22:18:41]requested_data is exist [22:18:41]produce_requested_data [22:18:41]requested_item fm.sn is exist - process it [22:18:41]wFMCommunicate request_size=4 [22:18:41]MH_SAM_APDU [22:18:41]CAPDU: 80 11 00 00 [22:18:41]Write to MH i2c: E2 08 00 D0 86 80 11 00 00 00 00 00 00 D0 [22:18:41]Write i2c OK [22:18:41]MH_I2C_Read... [22:18:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:41]Read from MH i2c: E2 [22:18:41]MH_I2C_Read... [22:18:41]Read from MH i2c: E2 17 00 [22:18:41]MH_I2C_Read... [22:18:41]Read from MH i2c: E2 17 00 D0 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2B [22:18:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:18:41]wFMCommunicate OK [22:18:41]requested_item fd.num is exist - process it [22:18:41]SAM_PROTO_GetFieldsCounters [22:18:41]wFMCommunicate request_size=4 [22:18:41]MH_SAM_APDU [22:18:41]CAPDU: 80 13 00 00 [22:18:41]Write to MH i2c: E2 08 00 D1 86 80 13 00 00 00 00 00 00 D3 [22:18:41]Write i2c OK [22:18:41]MH_I2C_Read... [22:18:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:18:41]Read from MH i2c: E2 [22:18:41]MH_I2C_Read... [22:18:41]Read from MH i2c: E2 62 00 [22:18:41]MH_I2C_Read... [22:18:41]Read from MH i2c: E2 62 00 D1 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 95 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 B5 [22:18: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 95 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:18:41]wFMCommunicate OK [22:18:41]SAM_PROTO_GetFieldsCounters done [22:18:41]requested_item shift.num is exist - process it [22:18:41]requested_item shift.opened is exist - process it [22:18:41]req_shift_opened [22:18:41]FM_GetShiftState [22:18:41]SAM_PROTO_GetShiftState [22:18:41]wFMCommunicate request_size=4 [22:18:41]MH_SAM_APDU [22:18:41]CAPDU: 80 13 01 00 [22:18:41]Write to MH i2c: E2 08 00 D2 86 80 13 01 00 00 00 00 00 D5 [22:18:41]Write i2c OK [22:18:41]MH_I2C_Read... [22:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:41]Read from MH i2c: E2 [22:18:41]MH_I2C_Read... [22:18:41]Read from MH i2c: E2 0E 00 [22:18:41]MH_I2C_Read... [22:18:41]Read from MH i2c: E2 0E 00 D2 86 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 03 [22:18:41]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:18:41]wFMCommunicate OK [22:18:41]SAM_PROTO_GetShiftState done [22:18:41]FM_GetShiftState done [22:18:41]req_shift_opened done [22:18:41]requested_item shift.open_date is exist - process it [22:18:41]req_shift_open_date [22:18:41]req_shift_open_date done [22:18:41]produce_requested_data done [22:18:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118933,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [22:18:41]process_action_free close_receipt [22:18:41]json_value_free [22:18:41]json_value_free done [22:18:41]process_json_proto returns [22:18:41]Send response to host [22:18:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118933,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [22:18:41]free response buf [22:18:41]execute_script done [22:18:41]execute_script returns [22:18:41]free content buf [22:18:41]Sock 7.Close socket [22:18:41]Sock 7.Thread stoped [22:18:45]OFD Sender: No OFD packet to send [22:18:50]OFD Sender: No OFD packet to send [22:18:55]OFD Sender: No OFD packet to send [22:19:00]OFD Sender: No OFD packet to send [22:19:05]OFD Sender: No OFD packet to send [22:19:10]OFD Sender: No OFD packet to send [22:19:15]OFD Sender: No OFD packet to send [22:19:20]OFD Sender: No OFD packet to send [22:19:25]OFD Sender: No OFD packet to send [22:19:30]OFD Sender: No OFD packet to send [22:19:35]OFD Sender: No OFD packet to send [22:19:40]OFD Sender: No OFD packet to send [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:10]OFD Sender: No OFD packet to send [22:20:15]OFD Sender: No OFD packet to send [22:20:20]OFD Sender: No OFD packet to send [22:20:25]OFD Sender: No OFD packet to send [22:20:30]OFD Sender: No OFD packet to send [22:20:35]OFD Sender: No OFD packet to send [22:20:40]OFD Sender: No OFD packet to send [22:20:45]OFD Sender: No OFD packet to send [22:20:50]OFD Sender: No OFD packet to send [22:20:55]OFD Sender: No OFD packet to send [22:21:00]OFD Sender: No OFD packet to send [22:21:05]OFD Sender: No OFD packet to send [22:21:10]OFD Sender: No OFD packet to send [22:21:15]OFD Sender: No OFD packet to send [22:21:20]OFD Sender: No OFD packet to send [22:21:25]OFD Sender: No OFD packet to send [22:21:30]OFD Sender: No OFD packet to send [22:21:35]OFD Sender: No OFD packet to send [22:21:37]accept exits with 9 [22:21:37]New connection [22:21:37]New thread 3067239780 created [22:21:37]Thread 3067383140 joined [22:21:37]Waiting for new connection... [22:21:37] Sock 9.Parse request [22:21:37]Sock 9.Check first char [22:21:37]Sock 9.First char is OK [22:21:37]request: POST /json_proto HTTP/1.0 [22:21:37]Method: POST [22:21:37]URL: /json_proto [22:21:37]Method is POST - this is cgi request [22:21:37]url: /json_proto [22:21:37]query_string will be loaded in cgi processing [22:21:37]execute_cgi json_proto POST (null) [22:21:37]execute_cgi path=json_proto method=POST [22:21:37]POST find Content-Length [22:21:37]Host: 172.17.45.7:8080 [22:21:37]Content-Length: 1187 [22:21:37]Content-Type: application/json [22:21:37] [22:21:37]POST finish read [22:21:37]Found Content-Length = 1187 [22:21:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949845\u000A29.07.2024 22:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74559\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:37]execute_script... [22:21:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949845\u000A29.07.2024 22:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74559\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:37]POST & json_proto [22:21:37]process_json_proto [22:21:37]json parsed OK: [22:21:37]protocol is kg_v1.0 [22:21:37]action value=print_text [22:21:37]process_action print_text [22:21:37]cmd_print_text [22:21:37]ExternCall_PrintAddStr [22:21:37]wPrintStart [22:21:37]Write to MH i2c: 01 00 00 D3 86 59 [22:21:37]Write i2c OK [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: 01 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: 01 07 00 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: 01 07 00 D3 86 00 00 00 00 00 FF 0F 6E [22:21:37]RasterBufferAndPrint [22:21:37]line *****ТОВАРНЫЙ ЧЕК***** [22:21:37]line АЗС-134 [22:21:37]line Партнер нефть [22:21:37]line 02508201610067 [22:21:37]line Кассир : Казаков Ч. [22:21:37]line Счет N : (1)949845 [22:21:37]line 29.07.2024 22:19 [22:21:37]line ПРОДАЖА [22:21:37]line ТРК (МРК, ГНК): 64 [22:21:37]line Вид ГСМ : 2710194800 [22:21:37]line ДТ-К-5 [22:21:37]line 100.000 x 76.20 [22:21:37]line ИТОГ: 7620.00 [22:21:37]line Тип оплаты: Талоны: Топливная Карта [22:21:37]line 74559 [22:21:37]line ______________________ [22:21:37]line (подпись) [22:21:37]written 0, free lines is 4095 [22:21:37]Write to MH i2c: 01 00 00 E7 86 6D [22:21:37]Write i2c OK [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: 01 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: 01 07 00 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: 01 07 00 E7 86 00 00 00 00 00 10 0E 92 [22:21:37]RasterBufferAndPrint [22:21:37]line [22:21:37]line [22:21:37]line [22:21:37]line [22:21:37]line [22:21:37]written 0, free lines is 3601 [22:21:37]MH_Cut [22:21:37]Write to MH i2c: D1 01 00 EE 86 01 46 [22:21:37]Write i2c OK [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: D1 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: D1 01 00 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: D1 01 00 EE 86 00 45 [22:21:37]Write to MH i2c: 01 00 00 EF 86 75 [22:21:37]Write i2c OK [22:21:37]MH_I2C_Read... [22:21:38]*** Cut start [22:21:38]*** Partial cut [22:21:38]*** CUTSNS_PIN = 1 [22:21:38]*** CUTSNS_PIN = 0 [22:21:38]*** Brake cut motor [22:21:38]Read from MH i2c: 01 [22:21:38]MH_I2C_Read... [22:21:38]*** Stop cut motor [22:21:38]*** Cut end [22:21:38]Read from MH i2c: 01 07 00 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: 01 07 00 EF 86 00 00 00 00 00 FF 0F 8A [22:21:38]process_action print_text done [22:21:38]requested_data is exist [22:21:38]produce_requested_data [22:21:38]requested_item fm.sn is exist - process it [22:21:38]wFMCommunicate request_size=4 [22:21:38]MH_SAM_APDU [22:21:38]CAPDU: 80 11 00 00 [22:21:38]Write to MH i2c: E2 08 00 F0 86 80 11 00 00 00 00 00 00 F0 [22:21:38]Write i2c OK [22:21:38]MH_I2C_Read... [22:21:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:38]Read from MH i2c: E2 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: E2 17 00 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: E2 17 00 F0 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4B [22:21:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:21:38]wFMCommunicate OK [22:21:38]requested_item fd.num is exist - process it [22:21:38]SAM_PROTO_GetFieldsCounters [22:21:38]wFMCommunicate request_size=4 [22:21:38]MH_SAM_APDU [22:21:38]CAPDU: 80 13 00 00 [22:21:38]Write to MH i2c: E2 08 00 F1 86 80 13 00 00 00 00 00 00 F3 [22:21:38]Write i2c OK [22:21:38]MH_I2C_Read... [22:21:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:21:38]Read from MH i2c: E2 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: E2 62 00 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: E2 62 00 F1 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 95 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 D5 [22:21: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 95 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:21:38]wFMCommunicate OK [22:21:38]SAM_PROTO_GetFieldsCounters done [22:21:38]requested_item shift.num is exist - process it [22:21:38]requested_item shift.opened is exist - process it [22:21:38]req_shift_opened [22:21:38]FM_GetShiftState [22:21:38]SAM_PROTO_GetShiftState [22:21:38]wFMCommunicate request_size=4 [22:21:38]MH_SAM_APDU [22:21:38]CAPDU: 80 13 01 00 [22:21:38]Write to MH i2c: E2 08 00 F2 86 80 13 01 00 00 00 00 00 F5 [22:21:38]Write i2c OK [22:21:38]MH_I2C_Read... [22:21:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:38]Read from MH i2c: E2 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: E2 0E 00 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: E2 0E 00 F2 86 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 23 [22:21:38]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:21:38]wFMCommunicate OK [22:21:38]SAM_PROTO_GetShiftState done [22:21:38]FM_GetShiftState done [22:21:38]req_shift_opened done [22:21:38]requested_item shift.open_date is exist - process it [22:21:38]req_shift_open_date [22:21:38]req_shift_open_date done [22:21:38]produce_requested_data done [22:21:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118933,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [22:21:38]process_action_free print_text [22:21:38]json_value_free [22:21:38]json_value_free done [22:21:38]process_json_proto returns [22:21:38]Send response to host [22:21:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118933,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [22:21:38]free response buf [22:21:38]execute_script done [22:21:38]execute_script returns [22:21:38]free content buf [22:21:38]Sock 9.Close socket [22:21:38]Sock 9.Thread stoped [22:21:40]OFD Sender: No OFD packet to send [22:21:45]OFD Sender: No OFD packet to send [22:21:50]OFD Sender: No OFD packet to send [22:21:54]accept exits with 7 [22:21:54]New connection [22:21:54]New thread 3067383140 created [22:21:54]Thread 3067239780 joined [22:21:54]Waiting for new connection... [22:21:54] Sock 7.Parse request [22:21:54]Sock 7.Check first char [22:21:54]Sock 7.First char is OK [22:21:54]request: POST /json_proto HTTP/1.0 [22:21:54]Method: POST [22:21:54]URL: /json_proto [22:21:54]Method is POST - this is cgi request [22:21:54]url: /json_proto [22:21:54]query_string will be loaded in cgi processing [22:21:54]execute_cgi json_proto POST (null) [22:21:54]execute_cgi path=json_proto method=POST [22:21:54]POST find Content-Length [22:21:54]Host: 172.17.45.7:8080 [22:21:54]Content-Length: 1187 [22:21:54]Content-Type: application/json [22:21:54] [22:21:54]POST finish read [22:21:54]Found Content-Length = 1187 [22:21:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949846\u000A29.07.2024 22:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74559\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:54]execute_script... [22:21:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949846\u000A29.07.2024 22:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74559\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:54]POST & json_proto [22:21:54]process_json_proto [22:21:54]json parsed OK: [22:21:54]protocol is kg_v1.0 [22:21:54]action value=print_text [22:21:54]process_action print_text [22:21:54]cmd_print_text [22:21:54]ExternCall_PrintAddStr [22:21:54]wPrintStart [22:21:54]Write to MH i2c: 01 00 00 F3 86 79 [22:21:54]Write i2c OK [22:21:54]MH_I2C_Read... [22:21:54]Read from MH i2c: 01 [22:21:54]MH_I2C_Read... [22:21:54]Read from MH i2c: 01 07 00 [22:21:54]MH_I2C_Read... [22:21:54]Read from MH i2c: 01 07 00 F3 86 00 00 00 00 00 FF 0F 8E [22:21:54]RasterBufferAndPrint [22:21:54]line *****ТОВАРНЫЙ ЧЕК***** [22:21:54]line АЗС-134 [22:21:54]line Партнер нефть [22:21:54]line 02508201610067 [22:21:54]line Кассир : Казаков Ч. [22:21:54]line Счет N : (1)949846 [22:21:54]line 29.07.2024 22:19 [22:21:54]line ПРОДАЖА [22:21:54]line ТРК (МРК, ГНК): 54 [22:21:54]line Вид ГСМ : 2710194800 [22:21:54]line ДТ-К-5 [22:21:54]line 100.000 x 76.20 [22:21:54]line ИТОГ: 7620.00 [22:21:54]line Тип оплаты: Талоны: Топливная Карта [22:21:54]line 74559 [22:21:54]line ______________________ [22:21:54]line (подпись) [22:21:54]written 0, free lines is 4095 [22:21:54]Write to MH i2c: 01 00 00 07 87 8E [22:21:54]Write i2c OK [22:21:54]MH_I2C_Read... [22:21:54]Read from MH i2c: 01 [22:21:54]MH_I2C_Read... [22:21:54]Read from MH i2c: 01 07 00 [22:21:54]MH_I2C_Read... [22:21:54]Read from MH i2c: 01 07 00 07 87 00 00 00 00 00 10 0E B3 [22:21:54]RasterBufferAndPrint [22:21:54]line [22:21:54]line [22:21:54]line [22:21:54]line [22:21:54]line [22:21:54]written 0, free lines is 3601 [22:21:54]MH_Cut [22:21:54]Write to MH i2c: D1 01 00 0E 87 01 67 [22:21:54]Write i2c OK [22:21:54]MH_I2C_Read... [22:21:54]Read from MH i2c: D1 [22:21:54]MH_I2C_Read... [22:21:54]Read from MH i2c: D1 01 00 [22:21:54]MH_I2C_Read... [22:21:54]Read from MH i2c: D1 01 00 0E 87 00 66 [22:21:54]Write to MH i2c: 01 00 00 0F 87 96 [22:21:54]Write i2c OK [22:21:54]MH_I2C_Read... [22:21:55]*** Cut start [22:21:55]*** Partial cut [22:21:55]*** CUTSNS_PIN = 1 [22:21:55]*** CUTSNS_PIN = 0 [22:21:55]*** Brake cut motor [22:21:55]Read from MH i2c: 01 [22:21:55]MH_I2C_Read... [22:21:55]*** Stop cut motor [22:21:55]*** Cut end [22:21:55]Read from MH i2c: 01 07 00 [22:21:55]MH_I2C_Read... [22:21:55]Read from MH i2c: 01 07 00 0F 87 00 00 00 00 00 FF 0F AB [22:21:55]process_action print_text done [22:21:55]requested_data is exist [22:21:55]produce_requested_data [22:21:55]requested_item fm.sn is exist - process it [22:21:55]wFMCommunicate request_size=4 [22:21:55]MH_SAM_APDU [22:21:55]CAPDU: 80 11 00 00 [22:21:55]Write to MH i2c: E2 08 00 10 87 80 11 00 00 00 00 00 00 11 [22:21:55]Write i2c OK [22:21:55]MH_I2C_Read... [22:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:55]OFD Sender: No OFD packet to send [22:21:55]Read from MH i2c: E2 [22:21:55]MH_I2C_Read... [22:21:55]Read from MH i2c: E2 17 00 [22:21:55]MH_I2C_Read... [22:21:55]Read from MH i2c: E2 17 00 10 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6C [22:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:21:55]wFMCommunicate OK [22:21:55]requested_item fd.num is exist - process it [22:21:55]SAM_PROTO_GetFieldsCounters [22:21:55]wFMCommunicate request_size=4 [22:21:55]MH_SAM_APDU [22:21:55]CAPDU: 80 13 00 00 [22:21:55]Write to MH i2c: E2 08 00 11 87 80 13 00 00 00 00 00 00 14 [22:21:55]Write i2c OK [22:21:55]MH_I2C_Read... [22:21:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:21:55]Read from MH i2c: E2 [22:21:55]MH_I2C_Read... [22:21:55]Read from MH i2c: E2 62 00 [22:21:55]MH_I2C_Read... [22:21:55]Read from MH i2c: E2 62 00 11 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 95 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [22:21: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 95 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:21:55]wFMCommunicate OK [22:21:55]SAM_PROTO_GetFieldsCounters done [22:21:55]requested_item shift.num is exist - process it [22:21:55]requested_item shift.opened is exist - process it [22:21:55]req_shift_opened [22:21:55]FM_GetShiftState [22:21:55]SAM_PROTO_GetShiftState [22:21:55]wFMCommunicate request_size=4 [22:21:55]MH_SAM_APDU [22:21:55]CAPDU: 80 13 01 00 [22:21:55]Write to MH i2c: E2 08 00 12 87 80 13 01 00 00 00 00 00 16 [22:21:55]Write i2c OK [22:21:55]MH_I2C_Read... [22:21:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:55]Read from MH i2c: E2 [22:21:55]MH_I2C_Read... [22:21:55]Read from MH i2c: E2 0E 00 [22:21:55]MH_I2C_Read... [22:21:55]Read from MH i2c: E2 0E 00 12 87 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 44 [22:21:55]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:21:55]wFMCommunicate OK [22:21:55]SAM_PROTO_GetShiftState done [22:21:55]FM_GetShiftState done [22:21:55]req_shift_opened done [22:21:55]requested_item shift.open_date is exist - process it [22:21:55]req_shift_open_date [22:21:55]req_shift_open_date done [22:21:55]produce_requested_data done [22:21:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118933,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [22:21:55]process_action_free print_text [22:21:55]json_value_free [22:21:55]json_value_free done [22:21:55]process_json_proto returns [22:21:55]Send response to host [22:21:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118933,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [22:21:55]free response buf [22:21:55]execute_script done [22:21:55]execute_script returns [22:21:55]free content buf [22:21:55]Sock 7.Close socket [22:21:55]Sock 7.Thread stoped [22:22:00]OFD Sender: No OFD packet to send [22:22:05]OFD Sender: No OFD packet to send [22:22:10]OFD Sender: No OFD packet to send [22:22:15]OFD Sender: No OFD packet to send [22:22:20]OFD Sender: No OFD packet to send [22:22:25]OFD Sender: No OFD packet to send [22:22:30]OFD Sender: No OFD packet to send [22:22:35]OFD Sender: No OFD packet to send [22:22:40]OFD Sender: No OFD packet to send [22:22:45]OFD Sender: No OFD packet to send [22:22:50]OFD Sender: No OFD packet to send [22:22:55]OFD Sender: No OFD packet to send [22:23:00]OFD Sender: No OFD packet to send [22:23:05]OFD Sender: No OFD packet to send [22:23:10]OFD Sender: No OFD packet to send [22:23:15]OFD Sender: No OFD packet to send [22:23:20]OFD Sender: No OFD packet to send [22:23:25]OFD Sender: No OFD packet to send [22:23:30]OFD Sender: No OFD packet to send [22:23:35]OFD Sender: No OFD packet to send [22:23:40]OFD Sender: No OFD packet to send [22:23:45]OFD Sender: No OFD packet to send [22:23:50]OFD Sender: No OFD packet to send [22:23:55]OFD Sender: No OFD packet to send [22:24:00]OFD Sender: No OFD packet to send [22:24:04]accept exits with 9 [22:24:04]New connection [22:24:04]New thread 3067239780 created [22:24:04]Thread 3067383140 joined [22:24:04]Waiting for new connection... [22:24:04] Sock 9.Parse request [22:24:04]Sock 9.Check first char [22:24:04]Sock 9.First char is OK [22:24:04]request: POST /json_proto HTTP/1.0 [22:24:04]Method: POST [22:24:04]URL: /json_proto [22:24:04]Method is POST - this is cgi request [22:24:04]url: /json_proto [22:24:04]query_string will be loaded in cgi processing [22:24:04]execute_cgi json_proto POST (null) [22:24:04]execute_cgi path=json_proto method=POST [22:24:04]POST find Content-Length [22:24:04]Host: 172.17.45.7:8080 [22:24:04]Content-Length: 819 [22:24:04]Content-Type: application/json [22:24:04] [22:24:04]POST finish read [22:24:04]Found Content-Length = 819 [22:24:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 3500.00, "payments": [ { "type": 1, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:04]execute_script... [22:24:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 3500.00, "payments": [ { "type": 1, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:04]POST & json_proto [22:24:04]process_json_proto [22:24:04]json parsed OK: [22:24:04]protocol is kg_v1.0 [22:24:04]action value=close_receipt [22:24:04]process_action close_receipt [22:24:04]cmd_close_receipt [22:24:04]MH_GetDate [22:24:04]Write to MH i2c: F0 00 00 13 87 89 [22:24:04]Write i2c OK [22:24:04]MH_I2C_Read... [22:24:04]Read from MH i2c: F0 [22:24:04]MH_I2C_Read... [22:24:04]Read from MH i2c: F0 09 00 [22:24:04]MH_I2C_Read... [22:24:04]Read from MH i2c: F0 09 00 13 87 00 8B 16 A8 66 90 0F 3E 66 84 [22:24:04]GetLastDocTimeStamp 1722291525 [22:24:04]current date 1722291851 [22:24:04]FM_GetShiftState [22:24:04]SAM_PROTO_GetShiftState [22:24:04]wFMCommunicate request_size=4 [22:24:04]MH_SAM_APDU [22:24:04]CAPDU: 80 13 01 00 [22:24:04]Write to MH i2c: E2 08 00 14 87 80 13 01 00 00 00 00 00 18 [22:24:04]Write i2c OK [22:24:04]MH_I2C_Read... [22:24:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:04]Read from MH i2c: E2 [22:24:04]MH_I2C_Read... [22:24:04]Read from MH i2c: E2 0E 00 [22:24:04]MH_I2C_Read... [22:24:04]Read from MH i2c: E2 0E 00 14 87 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 46 [22:24:04]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:24:04]wFMCommunicate OK [22:24:04]SAM_PROTO_GetShiftState done [22:24:04]FM_GetShiftState done [22:24:04]opened in 1722211641 [22:24:04]opened+sec_in_day 1722298041 [22:24:04]quantity*price = 350062 [22:24:04]sum+1 = 350064 [22:24:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 3500.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 0.00 Безнал.: 3500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 310 29.07.2024 22:24 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118934 ФПД: 227333069094956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T222412&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118934&fm=227333069094956&tin=02508201610067®Number=0000000000092660&sum=350000 [22:24:05]StoreToDocumentArchive [22:24:05]shift 434 fd 118934 [22:24:05]save to /storage/0434/doc_00118934 [22:24:05]save last doc name /storage/0434/doc_00118934 to /storage/kkm_last_doc_name [22:24:05]save OK [22:24:05]Clear old archive folders... [22:24:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:24:05]tlvbuf is 01EC0570 [22:24:05]SAM_PROTO_ClearQueue [22:24:05]wFMCommunicate request_size=4 [22:24:05]MH_SAM_APDU [22:24:05]CAPDU: 80 09 00 00 [22:24:05]Write to MH i2c: E2 08 00 21 87 80 09 00 00 00 00 00 00 1A [22:24:05]Write i2c OK [22:24:05]MH_I2C_Read... [22:24:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:24:05]Read from MH i2c: E2 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 03 00 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 03 00 21 87 00 90 00 1C [22:24:05]RAPDU: 90 00 [22:24:05]wFMCommunicate OK [22:24:05]SAM_PROTO_ClearQueue done [22:24:05]KKMCreateOFDPacket [22:24:05]OFDProtocolAddRootSTLVToBuf [22:24:05]FM_MakeSignedData [22:24:05]FM_MakeSignedData [22:24:05]SAM_PROTO_SignData [22:24:05]wFMCommunicate request_size=4 [22:24:05]MH_SAM_APDU [22:24:05]CAPDU: 80 0D 01 02 [22:24:05]Write to MH i2c: E2 08 00 22 87 80 0D 01 02 00 00 00 00 22 [22:24:05]Write i2c OK [22:24:05]MH_I2C_Read... [22:24:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:24:05]Read from MH i2c: E2 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 03 00 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 03 00 22 87 00 90 00 1D [22:24:05]RAPDU: 90 00 [22:24:05]wFMCommunicate OK [22:24:05]wFMCommunicate request_size=255 [22:24:05]MH_SAM_APDU [22:24:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 8C 16 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 96 D0 01 00 35 04 06 00 CE C2 1A D4 [22:24:05]Write to MH i2c: E2 02 01 23 87 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 8C 16 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 96 D0 01 00 35 04 06 00 CE C2 1A D4 00 00 E2 [22:24:05]Write i2c OK [22:24:05]MH_I2C_Read... [22:24:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:05]Read from MH i2c: E2 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 03 00 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 03 00 23 87 00 90 00 1E [22:24:05]RAPDU: 90 00 [22:24:05]wFMCommunicate OK [22:24:05]wFMCommunicate request_size=7 [22:24:05]MH_SAM_APDU [22:24:05]CAPDU: 80 0D 02 02 02 40 2C [22:24:05]Write to MH i2c: E2 0A 00 24 87 80 0D 02 02 02 00 40 2C 00 00 95 [22:24:05]Write i2c OK [22:24:05]MH_I2C_Read... [22:24:05]OFD Sender: No OFD packet to send [22:24:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:05]Read from MH i2c: E2 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 03 00 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 03 00 24 87 00 90 00 1F [22:24:05]RAPDU: 90 00 [22:24:05]wFMCommunicate OK [22:24:05]wFMCommunicate request_size=4 [22:24:05]MH_SAM_APDU [22:24:05]CAPDU: 80 0D 03 02 [22:24:05]Write to MH i2c: E2 08 00 25 87 80 0D 03 02 00 00 00 00 27 [22:24:05]Write i2c OK [22:24:05]MH_I2C_Read... [22:24:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:24:05]Read from MH i2c: E2 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 0B 00 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 0B 00 25 87 00 C3 78 5A 14 50 B6 A9 C5 90 00 45 [22:24:05]RAPDU: C3 78 5A 14 50 B6 A9 C5 90 00 [22:24:05]wFMCommunicate OK [22:24:05]SAM_PROTO_SignData done [22:24:05]FM_MakeSignedData done [22:24:05]CreateOFDProtocolMessage [22:24:05]wFMCommunicate request_size=4 [22:24:05]MH_SAM_APDU [22:24:05]CAPDU: 80 11 00 00 [22:24:05]Write to MH i2c: E2 08 00 26 87 80 11 00 00 00 00 00 00 27 [22:24:05]Write i2c OK [22:24:05]MH_I2C_Read... [22:24:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:06]Read from MH i2c: E2 [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: E2 17 00 [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: E2 17 00 26 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 82 [22:24:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:24:06]wFMCommunicate OK [22:24:06]CreateOFDProtocolMessage done [22:24:06]OFDSenderStorePacket 118934 [22:24:06]StoreOFDPacket docnum=118934 [22:24:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2A 56 04 01 D2 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 8C 16 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 96 D0 01 00 35 04 06 00 CE C2 1A D4 40 2C C3 78 5A 14 50 B6 A9 C5 [22:24:06]CheckFolder [22:24:06]dirname=/storage/ofd_packets [22:24:06]CheckFolder done [22:24:06]ProducePacketName [22:24:06]name=ofd_packets/00118934 [22:24:06]NVStorageSaveData ofd_packets/00118934 [22:24:06]File name is /storage/ofd_packets/00118934 [22:24:06]Write 298 bytes [22:24:06]NVStorageSaveData done [22:24:06]OFDSenderStorePacket done [22:24:06]KKMCreateOFDPacket done [22:24:06]NVStorageSaveData kkm_last_timestamp [22:24:06]File name is /storage/kkm_last_timestamp [22:24:06]Write 4 bytes [22:24:06]NVStorageSaveData done [22:24:06]ExternCall_PrintAddStr [22:24:06]wPrintStart [22:24:06]Write to MH i2c: 01 00 00 27 87 AE [22:24:06]Write i2c OK [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: 01 [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: 01 07 00 [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: 01 07 00 27 87 00 00 00 00 00 FF 0F C3 [22:24:06]RasterBufferAndPrint [22:24:06]line Счет N : (1)949847 [22:24:06]line ИНН: 02508201610067 [22:24:06]line Контрольно-Кассовый Чек [22:24:06]line ПРОДАЖА [22:24:06]line ТРК (МРК, ГНК) : 11 [22:24:06]line Товар: 2710194800 [22:24:06]line ДТ-К-5 [22:24:06]line 45.940 * 76.20 [22:24:06]line = 3500.63 [22:24:06]line НДС 12% НСП 1% [22:24:06]line > о реализуемом товаре [22:24:06]line ОКРУГЛЕНИЕ: -0.63 [22:24:06]line ИТОГО: 3500.00 [22:24:06]line НСП 1% : 30.98 [22:24:06]line НДС 12% : 371.75 [22:24:06]line Наличными: 0.00 [22:24:06]line Безнал.: 3500.00 [22:24:06]line Место: АЗС № 134 "Партнер Нефть" [22:24:06]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:24:06]line СНО: Общий режим [22:24:06]line Чек 310 29.07.2024 22:24 [22:24:06]line Смена: 434 ФФД: 1.0 [22:24:06]line ЗНМ: 0300000044 [22:24:06]line РНМ: 0000000000092660 [22:24:06]line Версия ККМ: 001 [22:24:06]line Платежная система: O! деньги [22:24:06]line ФМ: 0000000000874939 [22:24:06]line ФД: 118934 [22:24:06]line ФПД: 227333069094956 [22:24:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T222412&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118934&fm=227333069094956&tin=02508201610067®Number=0000000000092660&sum=350000 [22:24:06]OFD Sender: Processing packet 118934 [packets to send 86, broken 85] [22:24:06]ProducePacketName [22:24:06]name=ofd_packets/00118934 [22:24:06]OFD Sender: To server: pG, [22:24:06]CommunicateWithHost lk.salyk.kg:30040 [22:24:06]ConnectInit lk.salyk.kg [22:24:06]written 0, free lines is 4095 [22:24:06]Connected sock=10 [22:24:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2A 56 04 01 D2 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 8C 16 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 96 D0 01 00 35 04 06 00 CE C2 1A D4 40 2C C3 78 5A 14 50 B6 A9 C5 [22:24:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 81 E9 47 00 66 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 96 D0 01 00 F4 03 04 00 18 C4 A7 66 B6 04 01 00 00 8F 32 D4 D8 E7 75 36 C5 [22:24:06]CommunicateWithHost err = 0 [22:24:06]CheckOFDResponse [22:24:06]1017 (14) - 77093643461234 [22:24:06]1041 (16) - 0000000000874939 [22:24:06]1040 (4) - 118934 [22:24:06]1012 (4) - 29.07.2024 16:32 [22:24:06]1206 (1) - 0 [22:24:06]OFD Sender: Remove packet 118934 [22:24:06]ProducePacketName [22:24:06]name=ofd_packets/00118934 [22:24:06]NVStorageDeleteData [22:24:06]Write to MH i2c: 01 00 00 51 87 D8 [22:24:06]Write i2c OK [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: 01 [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: 01 07 00 [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: 01 07 00 51 87 00 00 00 00 00 E3 0C CE [22:24:06]RasterBufferAndPrint [22:24:06]line [22:24:06]line [22:24:06]line [22:24:06]line [22:24:06]line [22:24:06]written 0, free lines is 3306 [22:24:06]MH_Cut [22:24:06]Write to MH i2c: D1 01 00 58 87 01 B1 [22:24:06]Write i2c OK [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: D1 [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: D1 01 00 [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: D1 01 00 58 87 00 B0 [22:24:06]Write to MH i2c: 01 00 00 59 87 E0 [22:24:06]Write i2c OK [22:24:06]MH_I2C_Read... [22:24:07]OFD Sender: No OFD packet to send [22:24:07]*** Cut start [22:24:07]*** Partial cut [22:24:07]*** CUTSNS_PIN = 1 [22:24:07]*** CUTSNS_PIN = 0 [22:24:07]*** Brake cut motor [22:24:08]Read from MH i2c: 01 [22:24:08]MH_I2C_Read... [22:24:08]*** Stop cut motor [22:24:08]*** Cut end [22:24:08]Read from MH i2c: 01 07 00 [22:24:08]MH_I2C_Read... [22:24:08]Read from MH i2c: 01 07 00 59 87 00 00 00 00 00 FF 0F F5 [22:24:08]process_action close_receipt done [22:24:08]requested_data is exist [22:24:08]produce_requested_data [22:24:08]requested_item fm.sn is exist - process it [22:24:08]wFMCommunicate request_size=4 [22:24:08]MH_SAM_APDU [22:24:08]CAPDU: 80 11 00 00 [22:24:08]Write to MH i2c: E2 08 00 5A 87 80 11 00 00 00 00 00 00 5B [22:24:08]Write i2c OK [22:24:08]MH_I2C_Read... [22:24:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:08]Read from MH i2c: E2 [22:24:08]MH_I2C_Read... [22:24:08]Read from MH i2c: E2 17 00 [22:24:08]MH_I2C_Read... [22:24:08]Read from MH i2c: E2 17 00 5A 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B6 [22:24:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:24:08]wFMCommunicate OK [22:24:08]requested_item fd.num is exist - process it [22:24:08]SAM_PROTO_GetFieldsCounters [22:24:08]wFMCommunicate request_size=4 [22:24:08]MH_SAM_APDU [22:24:08]CAPDU: 80 13 00 00 [22:24:08]Write to MH i2c: E2 08 00 5B 87 80 13 00 00 00 00 00 00 5E [22:24:08]Write i2c OK [22:24:08]MH_I2C_Read... [22:24:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:24:08]Read from MH i2c: E2 [22:24:08]MH_I2C_Read... [22:24:08]Read from MH i2c: E2 62 00 [22:24:08]MH_I2C_Read... [22:24:08]Read from MH i2c: E2 62 00 5B 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 96 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 44 [22:24: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 96 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:24:08]wFMCommunicate OK [22:24:08]SAM_PROTO_GetFieldsCounters done [22:24:08]requested_item shift.num is exist - process it [22:24:08]requested_item shift.opened is exist - process it [22:24:08]req_shift_opened [22:24:08]FM_GetShiftState [22:24:08]SAM_PROTO_GetShiftState [22:24:08]wFMCommunicate request_size=4 [22:24:08]MH_SAM_APDU [22:24:08]CAPDU: 80 13 01 00 [22:24:08]Write to MH i2c: E2 08 00 5C 87 80 13 01 00 00 00 00 00 60 [22:24:08]Write i2c OK [22:24:08]MH_I2C_Read... [22:24:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:08]Read from MH i2c: E2 [22:24:08]MH_I2C_Read... [22:24:08]Read from MH i2c: E2 0E 00 [22:24:08]MH_I2C_Read... [22:24:08]Read from MH i2c: E2 0E 00 5C 87 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 8E [22:24:08]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:24:08]wFMCommunicate OK [22:24:08]SAM_PROTO_GetShiftState done [22:24:08]FM_GetShiftState done [22:24:08]req_shift_opened done [22:24:08]requested_item shift.open_date is exist - process it [22:24:08]req_shift_open_date [22:24:08]req_shift_open_date done [22:24:08]produce_requested_data done [22:24:08]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118934,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [22:24:08]process_action_free close_receipt [22:24:08]json_value_free [22:24:08]json_value_free done [22:24:08]process_json_proto returns [22:24:08]Send response to host [22:24:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118934,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [22:24:08]free response buf [22:24:08]execute_script done [22:24:08]execute_script returns [22:24:08]free content buf [22:24:08]Sock 9.Close socket [22:24:08]Sock 9.Thread stoped [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:24]accept exits with 7 [22:25:24]New connection [22:25:24]New thread 3067383140 created [22:25:24]Thread 3067239780 joined [22:25:24]Waiting for new connection... [22:25:24] Sock 7.Parse request [22:25:24]Sock 7.Check first char [22:25:24]Sock 7.First char is OK [22:25:24]request: POST /json_proto HTTP/1.0 [22:25:24]Method: POST [22:25:24]URL: /json_proto [22:25:24]Method is POST - this is cgi request [22:25:24]url: /json_proto [22:25:24]query_string will be loaded in cgi processing [22:25:24]execute_cgi json_proto POST (null) [22:25:24]execute_cgi path=json_proto method=POST [22:25:24]POST find Content-Length [22:25:24]Host: 172.17.45.7:8080 [22:25:24]Content-Length: 1187 [22:25:24]Content-Type: application/json [22:25:24] [22:25:24]POST finish read [22:25:24]Found Content-Length = 1187 [22:25:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949849\u000A29.07.2024 22:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74559\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:24]execute_script... [22:25:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949849\u000A29.07.2024 22:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74559\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:24]POST & json_proto [22:25:24]process_json_proto [22:25:24]json parsed OK: [22:25:24]protocol is kg_v1.0 [22:25:24]action value=print_text [22:25:24]process_action print_text [22:25:24]cmd_print_text [22:25:24]ExternCall_PrintAddStr [22:25:24]wPrintStart [22:25:24]Write to MH i2c: 01 00 00 5D 87 E4 [22:25:24]Write i2c OK [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: 01 [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: 01 07 00 [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: 01 07 00 5D 87 00 00 00 00 00 FF 0F F9 [22:25:24]RasterBufferAndPrint [22:25:24]line *****ТОВАРНЫЙ ЧЕК***** [22:25:24]line АЗС-134 [22:25:24]line Партнер нефть [22:25:24]line 02508201610067 [22:25:24]line Кассир : Казаков Ч. [22:25:24]line Счет N : (1)949849 [22:25:24]line 29.07.2024 22:23 [22:25:24]line ПРОДАЖА [22:25:24]line ТРК (МРК, ГНК): 54 [22:25:24]line Вид ГСМ : 2710194800 [22:25:24]line ДТ-К-5 [22:25:24]line 100.000 x 76.20 [22:25:24]line ИТОГ: 7620.00 [22:25:24]line Тип оплаты: Талоны: Топливная Карта [22:25:24]line 74559 [22:25:24]line ______________________ [22:25:24]line (подпись) [22:25:24]written 0, free lines is 4095 [22:25:24]Write to MH i2c: 01 00 00 71 87 F8 [22:25:24]Write i2c OK [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: 01 [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: 01 07 00 [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: 01 07 00 71 87 00 00 00 00 00 10 0E 1D [22:25:24]RasterBufferAndPrint [22:25:24]line [22:25:24]line [22:25:24]line [22:25:24]line [22:25:24]line [22:25:24]written 0, free lines is 3602 [22:25:24]MH_Cut [22:25:24]Write to MH i2c: D1 01 00 78 87 01 D1 [22:25:24]Write i2c OK [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: D1 [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: D1 01 00 [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: D1 01 00 78 87 00 D0 [22:25:24]Write to MH i2c: 01 00 00 79 87 00 [22:25:24]Write i2c OK [22:25:24]MH_I2C_Read... [22:25:24]*** Cut start [22:25:24]*** Partial cut [22:25:24]*** CUTSNS_PIN = 1 [22:25:24]*** CUTSNS_PIN = 0 [22:25:25]*** Brake cut motor [22:25:25]Read from MH i2c: 01 [22:25:25]MH_I2C_Read... [22:25:25]*** Stop cut motor [22:25:25]*** Cut end [22:25:25]Read from MH i2c: 01 07 00 [22:25:25]MH_I2C_Read... [22:25:25]Read from MH i2c: 01 07 00 79 87 00 00 00 00 00 FF 0F 15 [22:25:25]process_action print_text done [22:25:25]requested_data is exist [22:25:25]produce_requested_data [22:25:25]requested_item fm.sn is exist - process it [22:25:25]wFMCommunicate request_size=4 [22:25:25]MH_SAM_APDU [22:25:25]CAPDU: 80 11 00 00 [22:25:25]Write to MH i2c: E2 08 00 7A 87 80 11 00 00 00 00 00 00 7B [22:25:25]Write i2c OK [22:25:25]MH_I2C_Read... [22:25:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:25]Read from MH i2c: E2 [22:25:25]MH_I2C_Read... [22:25:25]Read from MH i2c: E2 17 00 [22:25:25]MH_I2C_Read... [22:25:25]Read from MH i2c: E2 17 00 7A 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D6 [22:25:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:25:25]wFMCommunicate OK [22:25:25]requested_item fd.num is exist - process it [22:25:25]SAM_PROTO_GetFieldsCounters [22:25:25]wFMCommunicate request_size=4 [22:25:25]MH_SAM_APDU [22:25:25]CAPDU: 80 13 00 00 [22:25:25]Write to MH i2c: E2 08 00 7B 87 80 13 00 00 00 00 00 00 7E [22:25:25]Write i2c OK [22:25:25]MH_I2C_Read... [22:25:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:25:25]Read from MH i2c: E2 [22:25:25]MH_I2C_Read... [22:25:25]Read from MH i2c: E2 62 00 [22:25:25]MH_I2C_Read... [22:25:25]Read from MH i2c: E2 62 00 7B 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 96 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [22:25: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 96 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:25:25]wFMCommunicate OK [22:25:25]SAM_PROTO_GetFieldsCounters done [22:25:25]requested_item shift.num is exist - process it [22:25:25]requested_item shift.opened is exist - process it [22:25:25]req_shift_opened [22:25:25]FM_GetShiftState [22:25:25]SAM_PROTO_GetShiftState [22:25:25]wFMCommunicate request_size=4 [22:25:25]MH_SAM_APDU [22:25:25]CAPDU: 80 13 01 00 [22:25:25]Write to MH i2c: E2 08 00 7C 87 80 13 01 00 00 00 00 00 80 [22:25:25]Write i2c OK [22:25:25]MH_I2C_Read... [22:25:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:25]Read from MH i2c: E2 [22:25:25]MH_I2C_Read... [22:25:25]Read from MH i2c: E2 0E 00 [22:25:25]MH_I2C_Read... [22:25:25]Read from MH i2c: E2 0E 00 7C 87 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 AE [22:25:25]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:25:25]wFMCommunicate OK [22:25:25]SAM_PROTO_GetShiftState done [22:25:25]FM_GetShiftState done [22:25:25]req_shift_opened done [22:25:25]requested_item shift.open_date is exist - process it [22:25:25]req_shift_open_date [22:25:25]req_shift_open_date done [22:25:25]produce_requested_data done [22:25:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118934,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [22:25:25]process_action_free print_text [22:25:25]json_value_free [22:25:25]json_value_free done [22:25:25]process_json_proto returns [22:25:25]Send response to host [22:25:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118934,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [22:25:25]free response buf [22:25:25]execute_script done [22:25:25]execute_script returns [22:25:25]free content buf [22:25:25]Sock 7.Close socket [22:25:25]Sock 7.Thread stoped [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]accept exits with 9 [22:25:37]New connection [22:25:37]New thread 3067239780 created [22:25:37]Thread 3067383140 joined [22:25:37]Waiting for new connection... [22:25:37] Sock 9.Parse request [22:25:37]Sock 9.Check first char [22:25:37]Sock 9.First char is OK [22:25:37]request: POST /json_proto HTTP/1.0 [22:25:37]Method: POST [22:25:37]URL: /json_proto [22:25:37]Method is POST - this is cgi request [22:25:37]url: /json_proto [22:25:37]query_string will be loaded in cgi processing [22:25:37]execute_cgi json_proto POST (null) [22:25:37]execute_cgi path=json_proto method=POST [22:25:37]POST find Content-Length [22:25:37]Host: 172.17.45.7:8080 [22:25:37]Content-Length: 1187 [22:25:37]Content-Type: application/json [22:25:37] [22:25:37]POST finish read [22:25:37]Found Content-Length = 1187 [22:25:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949848\u000A29.07.2024 22:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74559\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:37]execute_script... [22:25:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949848\u000A29.07.2024 22:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74559\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:37]POST & json_proto [22:25:37]process_json_proto [22:25:37]json parsed OK: [22:25:37]protocol is kg_v1.0 [22:25:37]action value=print_text [22:25:37]process_action print_text [22:25:37]cmd_print_text [22:25:37]ExternCall_PrintAddStr [22:25:37]wPrintStart [22:25:37]Write to MH i2c: 01 00 00 7D 87 04 [22:25:37]Write i2c OK [22:25:37]MH_I2C_Read... [22:25:37]Read from MH i2c: 01 [22:25:37]MH_I2C_Read... [22:25:37]Read from MH i2c: 01 07 00 [22:25:37]MH_I2C_Read... [22:25:37]Read from MH i2c: 01 07 00 7D 87 00 00 00 00 00 FF 0F 19 [22:25:37]RasterBufferAndPrint [22:25:37]line *****ТОВАРНЫЙ ЧЕК***** [22:25:37]line АЗС-134 [22:25:37]line Партнер нефть [22:25:37]line 02508201610067 [22:25:37]line Кассир : Казаков Ч. [22:25:37]line Счет N : (1)949848 [22:25:37]line 29.07.2024 22:23 [22:25:37]line ПРОДАЖА [22:25:37]line ТРК (МРК, ГНК): 64 [22:25:37]line Вид ГСМ : 2710194800 [22:25:37]line ДТ-К-5 [22:25:37]line 100.000 x 76.20 [22:25:37]line ИТОГ: 7620.00 [22:25:37]line Тип оплаты: Талоны: Топливная Карта [22:25:37]line 74559 [22:25:37]line ______________________ [22:25:37]line (подпись) [22:25:37]written 0, free lines is 4095 [22:25:37]OFD Sender: No OFD packet to send [22:25:37]Write to MH i2c: 01 00 00 91 87 18 [22:25:37]Write i2c OK [22:25:37]MH_I2C_Read... [22:25:37]Read from MH i2c: 01 [22:25:37]MH_I2C_Read... [22:25:37]Read from MH i2c: 01 07 00 [22:25:37]MH_I2C_Read... [22:25:37]Read from MH i2c: 01 07 00 91 87 00 00 00 00 00 10 0E 3D [22:25:37]RasterBufferAndPrint [22:25:37]line [22:25:37]line [22:25:37]line [22:25:37]line [22:25:37]line [22:25:37]written 0, free lines is 3602 [22:25:37]MH_Cut [22:25:37]Write to MH i2c: D1 01 00 98 87 01 F1 [22:25:37]Write i2c OK [22:25:37]MH_I2C_Read... [22:25:37]Read from MH i2c: D1 [22:25:37]MH_I2C_Read... [22:25:37]Read from MH i2c: D1 01 00 [22:25:37]MH_I2C_Read... [22:25:37]Read from MH i2c: D1 01 00 98 87 00 F0 [22:25:37]Write to MH i2c: 01 00 00 99 87 20 [22:25:37]Write i2c OK [22:25:37]MH_I2C_Read... [22:25:37]*** Cut start [22:25:37]*** Partial cut [22:25:37]*** CUTSNS_PIN = 1 [22:25:37]*** CUTSNS_PIN = 0 [22:25:38]*** Brake cut motor [22:25:38]Read from MH i2c: 01 [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: 01 07 00 [22:25:38]MH_I2C_Read... [22:25:38]*** Stop cut motor [22:25:38]*** Cut end [22:25:38]Read from MH i2c: 01 07 00 99 87 00 00 00 00 00 FF 0F 35 [22:25:38]process_action print_text done [22:25:38]requested_data is exist [22:25:38]produce_requested_data [22:25:38]requested_item fm.sn is exist - process it [22:25:38]wFMCommunicate request_size=4 [22:25:38]MH_SAM_APDU [22:25:38]CAPDU: 80 11 00 00 [22:25:38]Write to MH i2c: E2 08 00 9A 87 80 11 00 00 00 00 00 00 9B [22:25:38]Write i2c OK [22:25:38]MH_I2C_Read... [22:25:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:38]Read from MH i2c: E2 [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: E2 17 00 [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: E2 17 00 9A 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F6 [22:25:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:25:38]wFMCommunicate OK [22:25:38]requested_item fd.num is exist - process it [22:25:38]SAM_PROTO_GetFieldsCounters [22:25:38]wFMCommunicate request_size=4 [22:25:38]MH_SAM_APDU [22:25:38]CAPDU: 80 13 00 00 [22:25:38]Write to MH i2c: E2 08 00 9B 87 80 13 00 00 00 00 00 00 9E [22:25:38]Write i2c OK [22:25:38]MH_I2C_Read... [22:25:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:25:38]Read from MH i2c: E2 [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: E2 62 00 [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: E2 62 00 9B 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 96 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 84 [22:25: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 96 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:25:38]wFMCommunicate OK [22:25:38]SAM_PROTO_GetFieldsCounters done [22:25:38]requested_item shift.num is exist - process it [22:25:38]requested_item shift.opened is exist - process it [22:25:38]req_shift_opened [22:25:38]FM_GetShiftState [22:25:38]SAM_PROTO_GetShiftState [22:25:38]wFMCommunicate request_size=4 [22:25:38]MH_SAM_APDU [22:25:38]CAPDU: 80 13 01 00 [22:25:38]Write to MH i2c: E2 08 00 9C 87 80 13 01 00 00 00 00 00 A0 [22:25:38]Write i2c OK [22:25:38]MH_I2C_Read... [22:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:38]Read from MH i2c: E2 [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: E2 0E 00 [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: E2 0E 00 9C 87 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 CE [22:25:38]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:25:38]wFMCommunicate OK [22:25:38]SAM_PROTO_GetShiftState done [22:25:38]FM_GetShiftState done [22:25:38]req_shift_opened done [22:25:38]requested_item shift.open_date is exist - process it [22:25:38]req_shift_open_date [22:25:38]req_shift_open_date done [22:25:38]produce_requested_data done [22:25:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118934,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [22:25:38]process_action_free print_text [22:25:38]json_value_free [22:25:38]json_value_free done [22:25:38]process_json_proto returns [22:25:38]Send response to host [22:25:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118934,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [22:25:38]free response buf [22:25:38]execute_script done [22:25:38]execute_script returns [22:25:38]free content buf [22:25:38]Sock 9.Close socket [22:25:38]Sock 9.Thread stoped [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:21]accept exits with 7 [22:29:21]New connection [22:29:21]New thread 3067383140 created [22:29:21]Thread 3067239780 joined [22:29:21]Waiting for new connection... [22:29:21] Sock 7.Parse request [22:29:21]Sock 7.Check first char [22:29:21]Sock 7.First char is OK [22:29:21]request: POST /json_proto HTTP/1.0 [22:29:21]Method: POST [22:29:21]URL: /json_proto [22:29:21]Method is POST - this is cgi request [22:29:21]url: /json_proto [22:29:21]query_string will be loaded in cgi processing [22:29:21]execute_cgi json_proto POST (null) [22:29:21]execute_cgi path=json_proto method=POST [22:29:21]POST find Content-Length [22:29:21]Host: 172.17.45.7:8080 [22:29:21]Content-Length: 1187 [22:29:21]Content-Type: application/json [22:29:21] [22:29:21]POST finish read [22:29:21]Found Content-Length = 1187 [22:29:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949850\u000A29.07.2024 22:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74559\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:21]execute_script... [22:29:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949850\u000A29.07.2024 22:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74559\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:21]POST & json_proto [22:29:21]process_json_proto [22:29:21]json parsed OK: [22:29:21]protocol is kg_v1.0 [22:29:21]action value=print_text [22:29:21]process_action print_text [22:29:21]cmd_print_text [22:29:21]ExternCall_PrintAddStr [22:29:21]wPrintStart [22:29:21]Write to MH i2c: 01 00 00 9D 87 24 [22:29:21]Write i2c OK [22:29:21]MH_I2C_Read... [22:29:21]Read from MH i2c: 01 [22:29:21]MH_I2C_Read... [22:29:21]Read from MH i2c: 01 07 00 [22:29:21]MH_I2C_Read... [22:29:21]Read from MH i2c: 01 07 00 9D 87 00 00 00 00 00 FF 0F 39 [22:29:21]RasterBufferAndPrint [22:29:21]line *****ТОВАРНЫЙ ЧЕК***** [22:29:21]line АЗС-134 [22:29:21]line Партнер нефть [22:29:21]line 02508201610067 [22:29:21]line Кассир : Казаков Ч. [22:29:21]line Счет N : (1)949850 [22:29:21]line 29.07.2024 22:27 [22:29:21]line ПРОДАЖА [22:29:21]line ТРК (МРК, ГНК): 54 [22:29:21]line Вид ГСМ : 2710194800 [22:29:21]line ДТ-К-5 [22:29:21]line 100.000 x 76.20 [22:29:21]line ИТОГ: 7620.00 [22:29:21]line Тип оплаты: Талоны: Топливная Карта [22:29:21]line 74559 [22:29:21]line ______________________ [22:29:21]line (подпись) [22:29:21]written 0, free lines is 4095 [22:29:21]Write to MH i2c: 01 00 00 B1 87 38 [22:29:21]Write i2c OK [22:29:21]MH_I2C_Read... [22:29:21]Read from MH i2c: 01 [22:29:21]MH_I2C_Read... [22:29:21]Read from MH i2c: 01 07 00 [22:29:21]MH_I2C_Read... [22:29:21]Read from MH i2c: 01 07 00 B1 87 00 00 00 00 00 10 0E 5D [22:29:21]RasterBufferAndPrint [22:29:21]line [22:29:21]line [22:29:21]line [22:29:21]line [22:29:21]line [22:29:21]written 0, free lines is 3601 [22:29:21]MH_Cut [22:29:21]Write to MH i2c: D1 01 00 B8 87 01 11 [22:29:21]Write i2c OK [22:29:21]MH_I2C_Read... [22:29:21]Read from MH i2c: D1 [22:29:21]MH_I2C_Read... [22:29:21]Read from MH i2c: D1 01 00 [22:29:21]MH_I2C_Read... [22:29:21]Read from MH i2c: D1 01 00 B8 87 00 10 [22:29:21]Write to MH i2c: 01 00 00 B9 87 40 [22:29:21]Write i2c OK [22:29:21]MH_I2C_Read... [22:29:22]*** Cut start [22:29:22]*** Partial cut [22:29:22]*** CUTSNS_PIN = 1 [22:29:22]*** CUTSNS_PIN = 0 [22:29:22]*** Brake cut motor [22:29:22]OFD Sender: No OFD packet to send [22:29:22]Read from MH i2c: 01 [22:29:22]MH_I2C_Read... [22:29:22]*** Stop cut motor [22:29:22]*** Cut end [22:29:22]Read from MH i2c: 01 07 00 [22:29:22]MH_I2C_Read... [22:29:22]Read from MH i2c: 01 07 00 B9 87 00 00 00 00 00 FF 0F 55 [22:29:22]process_action print_text done [22:29:22]requested_data is exist [22:29:22]produce_requested_data [22:29:22]requested_item fm.sn is exist - process it [22:29:22]wFMCommunicate request_size=4 [22:29:22]MH_SAM_APDU [22:29:22]CAPDU: 80 11 00 00 [22:29:22]Write to MH i2c: E2 08 00 BA 87 80 11 00 00 00 00 00 00 BB [22:29:22]Write i2c OK [22:29:22]MH_I2C_Read... [22:29:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:22]Read from MH i2c: E2 [22:29:22]MH_I2C_Read... [22:29:22]Read from MH i2c: E2 17 00 [22:29:22]MH_I2C_Read... [22:29:22]Read from MH i2c: E2 17 00 BA 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 16 [22:29:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:29:22]wFMCommunicate OK [22:29:22]requested_item fd.num is exist - process it [22:29:22]SAM_PROTO_GetFieldsCounters [22:29:22]wFMCommunicate request_size=4 [22:29:22]MH_SAM_APDU [22:29:22]CAPDU: 80 13 00 00 [22:29:22]Write to MH i2c: E2 08 00 BB 87 80 13 00 00 00 00 00 00 BE [22:29:22]Write i2c OK [22:29:22]MH_I2C_Read... [22:29:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:29:22]Read from MH i2c: E2 [22:29:22]MH_I2C_Read... [22:29:22]Read from MH i2c: E2 62 00 [22:29:22]MH_I2C_Read... [22:29:22]Read from MH i2c: E2 62 00 BB 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 96 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 A4 [22:29: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 96 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:29:22]wFMCommunicate OK [22:29:22]SAM_PROTO_GetFieldsCounters done [22:29:22]requested_item shift.num is exist - process it [22:29:22]requested_item shift.opened is exist - process it [22:29:22]req_shift_opened [22:29:22]FM_GetShiftState [22:29:22]SAM_PROTO_GetShiftState [22:29:22]wFMCommunicate request_size=4 [22:29:22]MH_SAM_APDU [22:29:22]CAPDU: 80 13 01 00 [22:29:22]Write to MH i2c: E2 08 00 BC 87 80 13 01 00 00 00 00 00 C0 [22:29:22]Write i2c OK [22:29:22]MH_I2C_Read... [22:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:23]Read from MH i2c: E2 [22:29:23]MH_I2C_Read... [22:29:23]Read from MH i2c: E2 0E 00 [22:29:23]MH_I2C_Read... [22:29:23]Read from MH i2c: E2 0E 00 BC 87 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 EE [22:29:23]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:29:23]wFMCommunicate OK [22:29:23]SAM_PROTO_GetShiftState done [22:29:23]FM_GetShiftState done [22:29:23]req_shift_opened done [22:29:23]requested_item shift.open_date is exist - process it [22:29:23]req_shift_open_date [22:29:23]req_shift_open_date done [22:29:23]produce_requested_data done [22:29:23]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118934,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [22:29:23]process_action_free print_text [22:29:23]json_value_free [22:29:23]json_value_free done [22:29:23]process_json_proto returns [22:29:23]Send response to host [22:29:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118934,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [22:29:23]free response buf [22:29:23]execute_script done [22:29:23]execute_script returns [22:29:23]free content buf [22:29:23]Sock 7.Close socket [22:29:23]Sock 7.Thread stoped [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:57]OFD Sender: No OFD packet to send [22:30:02]OFD Sender: No OFD packet to send [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:42]OFD Sender: No OFD packet to send [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:05]accept exits with 9 [22:32:05]New connection [22:32:05]New thread 3067239780 created [22:32:05]Thread 3067383140 joined [22:32:05]Waiting for new connection... [22:32:05] Sock 9.Parse request [22:32:05]Sock 9.Check first char [22:32:05]Sock 9.First char is OK [22:32:05]request: POST /json_proto HTTP/1.0 [22:32:05]Method: POST [22:32:05]URL: /json_proto [22:32:05]Method is POST - this is cgi request [22:32:05]url: /json_proto [22:32:05]query_string will be loaded in cgi processing [22:32:05]execute_cgi json_proto POST (null) [22:32:05]execute_cgi path=json_proto method=POST [22:32:05]POST find Content-Length [22:32:05]Host: 172.17.45.7:8080 [22:32:05]Content-Length: 1187 [22:32:05]Content-Type: application/json [22:32:05] [22:32:05]POST finish read [22:32:05]Found Content-Length = 1187 [22:32:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949851\u000A29.07.2024 22:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74559\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:05]execute_script... [22:32:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949851\u000A29.07.2024 22:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 64\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74559\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:05]POST & json_proto [22:32:05]process_json_proto [22:32:05]json parsed OK: [22:32:05]protocol is kg_v1.0 [22:32:05]action value=print_text [22:32:05]process_action print_text [22:32:05]cmd_print_text [22:32:05]ExternCall_PrintAddStr [22:32:05]wPrintStart [22:32:05]Write to MH i2c: 01 00 00 BD 87 44 [22:32:05]Write i2c OK [22:32:05]MH_I2C_Read... [22:32:05]Read from MH i2c: 01 [22:32:05]MH_I2C_Read... [22:32:05]Read from MH i2c: 01 07 00 [22:32:05]MH_I2C_Read... [22:32:05]Read from MH i2c: 01 07 00 BD 87 00 00 00 00 00 FF 0F 59 [22:32:05]RasterBufferAndPrint [22:32:05]line *****ТОВАРНЫЙ ЧЕК***** [22:32:05]line АЗС-134 [22:32:05]line Партнер нефть [22:32:05]line 02508201610067 [22:32:05]line Кассир : Казаков Ч. [22:32:05]line Счет N : (1)949851 [22:32:05]line 29.07.2024 22:29 [22:32:05]line ПРОДАЖА [22:32:05]line ТРК (МРК, ГНК): 64 [22:32:05]line Вид ГСМ : 2710194800 [22:32:05]line ДТ-К-5 [22:32:05]line 100.000 x 76.20 [22:32:05]line ИТОГ: 7620.00 [22:32:05]line Тип оплаты: Талоны: Топливная Карта [22:32:05]line 74559 [22:32:05]line ______________________ [22:32:05]line (подпись) [22:32:05]written 0, free lines is 4095 [22:32:06]Write to MH i2c: 01 00 00 D1 87 58 [22:32:06]Write i2c OK [22:32:06]MH_I2C_Read... [22:32:06]Read from MH i2c: 01 [22:32:06]MH_I2C_Read... [22:32:06]Read from MH i2c: 01 07 00 [22:32:06]MH_I2C_Read... [22:32:06]Read from MH i2c: 01 07 00 D1 87 00 00 00 00 00 10 0E 7D [22:32:06]RasterBufferAndPrint [22:32:06]line [22:32:06]line [22:32:06]line [22:32:06]line [22:32:06]line [22:32:06]written 0, free lines is 3601 [22:32:06]MH_Cut [22:32:06]Write to MH i2c: D1 01 00 D8 87 01 31 [22:32:06]Write i2c OK [22:32:06]MH_I2C_Read... [22:32:06]Read from MH i2c: D1 [22:32:06]MH_I2C_Read... [22:32:06]Read from MH i2c: D1 01 00 [22:32:06]MH_I2C_Read... [22:32:06]Read from MH i2c: D1 01 00 D8 87 00 30 [22:32:06]Write to MH i2c: 01 00 00 D9 87 60 [22:32:06]Write i2c OK [22:32:06]MH_I2C_Read... [22:32:06]*** Cut start [22:32:06]*** Partial cut [22:32:06]*** CUTSNS_PIN = 1 [22:32:06]*** CUTSNS_PIN = 0 [22:32:06]*** Brake cut motor [22:32:07]Read from MH i2c: 01 [22:32:07]MH_I2C_Read... [22:32:07]*** Stop cut motor [22:32:07]*** Cut end [22:32:07]Read from MH i2c: 01 07 00 [22:32:07]MH_I2C_Read... [22:32:07]Read from MH i2c: 01 07 00 D9 87 00 00 00 00 00 FF 0F 75 [22:32:07]process_action print_text done [22:32:07]requested_data is exist [22:32:07]produce_requested_data [22:32:07]requested_item fm.sn is exist - process it [22:32:07]wFMCommunicate request_size=4 [22:32:07]MH_SAM_APDU [22:32:07]CAPDU: 80 11 00 00 [22:32:07]Write to MH i2c: E2 08 00 DA 87 80 11 00 00 00 00 00 00 DB [22:32:07]Write i2c OK [22:32:07]MH_I2C_Read... [22:32:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:07]Read from MH i2c: E2 [22:32:07]MH_I2C_Read... [22:32:07]Read from MH i2c: E2 17 00 [22:32:07]MH_I2C_Read... [22:32:07]Read from MH i2c: E2 17 00 DA 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 36 [22:32:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:32:07]wFMCommunicate OK [22:32:07]requested_item fd.num is exist - process it [22:32:07]SAM_PROTO_GetFieldsCounters [22:32:07]wFMCommunicate request_size=4 [22:32:07]MH_SAM_APDU [22:32:07]CAPDU: 80 13 00 00 [22:32:07]Write to MH i2c: E2 08 00 DB 87 80 13 00 00 00 00 00 00 DE [22:32:07]Write i2c OK [22:32:07]MH_I2C_Read... [22:32:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:32:07]Read from MH i2c: E2 [22:32:07]MH_I2C_Read... [22:32:07]Read from MH i2c: E2 62 00 [22:32:07]MH_I2C_Read... [22:32:07]Read from MH i2c: E2 62 00 DB 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 96 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [22:32: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 96 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:32:07]wFMCommunicate OK [22:32:07]SAM_PROTO_GetFieldsCounters done [22:32:07]requested_item shift.num is exist - process it [22:32:07]requested_item shift.opened is exist - process it [22:32:07]req_shift_opened [22:32:07]FM_GetShiftState [22:32:07]SAM_PROTO_GetShiftState [22:32:07]wFMCommunicate request_size=4 [22:32:07]MH_SAM_APDU [22:32:07]CAPDU: 80 13 01 00 [22:32:07]Write to MH i2c: E2 08 00 DC 87 80 13 01 00 00 00 00 00 E0 [22:32:07]Write i2c OK [22:32:07]MH_I2C_Read... [22:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:07]Read from MH i2c: E2 [22:32:07]MH_I2C_Read... [22:32:07]Read from MH i2c: E2 0E 00 [22:32:07]MH_I2C_Read... [22:32:07]Read from MH i2c: E2 0E 00 DC 87 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 0E [22:32:07]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:32:07]wFMCommunicate OK [22:32:07]SAM_PROTO_GetShiftState done [22:32:07]FM_GetShiftState done [22:32:07]req_shift_opened done [22:32:07]requested_item shift.open_date is exist - process it [22:32:07]req_shift_open_date [22:32:07]req_shift_open_date done [22:32:07]produce_requested_data done [22:32:07]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118934,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [22:32:07]process_action_free print_text [22:32:07]json_value_free [22:32:07]json_value_free done [22:32:07]process_json_proto returns [22:32:07]Send response to host [22:32:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118934,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [22:32:07]free response buf [22:32:07]execute_script done [22:32:07]execute_script returns [22:32:07]free content buf [22:32:07]Sock 9.Close socket [22:32:07]Sock 9.Thread stoped [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:27]accept exits with 7 [22:33:27]New connection [22:33:27]New thread 3067383140 created [22:33:27]Thread 3067239780 joined [22:33:27]Waiting for new connection... [22:33:27] Sock 7.Parse request [22:33:27]Sock 7.Check first char [22:33:27]Sock 7.First char is OK [22:33:27]request: POST /json_proto HTTP/1.0 [22:33:27]Method: POST [22:33:27]URL: /json_proto [22:33:27]Method is POST - this is cgi request [22:33:27]url: /json_proto [22:33:27]query_string will be loaded in cgi processing [22:33:27]execute_cgi json_proto POST (null) [22:33:27]execute_cgi path=json_proto method=POST [22:33:27]POST find Content-Length [22:33:27]Host: 172.17.45.7:8080 [22:33:27]Content-Length: 1187 [22:33:27]Content-Type: application/json [22:33:27] [22:33:27]POST finish read [22:33:27]Found Content-Length = 1187 [22:33:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949852\u000A29.07.2024 22:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74559\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:27]execute_script... [22:33:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949852\u000A29.07.2024 22:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 54\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74559\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:27]POST & json_proto [22:33:27]process_json_proto [22:33:27]json parsed OK: [22:33:27]protocol is kg_v1.0 [22:33:27]action value=print_text [22:33:27]process_action print_text [22:33:27]cmd_print_text [22:33:27]ExternCall_PrintAddStr [22:33:27]wPrintStart [22:33:27]Write to MH i2c: 01 00 00 DD 87 64 [22:33:27]Write i2c OK [22:33:27]MH_I2C_Read... [22:33:27]Read from MH i2c: 01 [22:33:27]MH_I2C_Read... [22:33:27]Read from MH i2c: 01 07 00 [22:33:27]MH_I2C_Read... [22:33:27]Read from MH i2c: 01 07 00 DD 87 00 00 00 00 00 FF 0F 79 [22:33:27]RasterBufferAndPrint [22:33:27]line *****ТОВАРНЫЙ ЧЕК***** [22:33:27]line АЗС-134 [22:33:27]line Партнер нефть [22:33:27]line 02508201610067 [22:33:27]line Кассир : Казаков Ч. [22:33:27]line Счет N : (1)949852 [22:33:27]line 29.07.2024 22:31 [22:33:27]line ПРОДАЖА [22:33:27]line ТРК (МРК, ГНК): 54 [22:33:27]line Вид ГСМ : 2710194800 [22:33:27]line ДТ-К-5 [22:33:27]line 100.000 x 76.20 [22:33:27]line ИТОГ: 7620.00 [22:33:27]line Тип оплаты: Талоны: Топливная Карта [22:33:27]line 74559 [22:33:27]line ______________________ [22:33:27]line (подпись) [22:33:27]written 0, free lines is 4095 [22:33:28]Write to MH i2c: 01 00 00 F1 87 78 [22:33:28]Write i2c OK [22:33:28]MH_I2C_Read... [22:33:28]Read from MH i2c: 01 [22:33:28]MH_I2C_Read... [22:33:28]Read from MH i2c: 01 07 00 [22:33:28]MH_I2C_Read... [22:33:28]Read from MH i2c: 01 07 00 F1 87 00 00 00 00 00 10 0E 9D [22:33:28]RasterBufferAndPrint [22:33:28]line [22:33:28]line [22:33:28]line [22:33:28]line [22:33:28]line [22:33:28]written 0, free lines is 3601 [22:33:28]MH_Cut [22:33:28]Write to MH i2c: D1 01 00 F8 87 01 51 [22:33:28]Write i2c OK [22:33:28]MH_I2C_Read... [22:33:28]Read from MH i2c: D1 [22:33:28]MH_I2C_Read... [22:33:28]Read from MH i2c: D1 01 00 [22:33:28]MH_I2C_Read... [22:33:28]Read from MH i2c: D1 01 00 F8 87 00 50 [22:33:28]Write to MH i2c: 01 00 00 F9 87 80 [22:33:28]Write i2c OK [22:33:28]MH_I2C_Read... [22:33:28]*** Cut start [22:33:28]*** Partial cut [22:33:28]*** CUTSNS_PIN = 1 [22:33:28]*** CUTSNS_PIN = 0 [22:33:28]*** Brake cut motor [22:33:29]Read from MH i2c: 01 [22:33:29]MH_I2C_Read... [22:33:29]*** Stop cut motor [22:33:29]*** Cut end [22:33:29]Read from MH i2c: 01 07 00 [22:33:29]MH_I2C_Read... [22:33:29]Read from MH i2c: 01 07 00 F9 87 00 00 00 00 00 FF 0F 95 [22:33:29]process_action print_text done [22:33:29]requested_data is exist [22:33:29]produce_requested_data [22:33:29]requested_item fm.sn is exist - process it [22:33:29]wFMCommunicate request_size=4 [22:33:29]MH_SAM_APDU [22:33:29]CAPDU: 80 11 00 00 [22:33:29]Write to MH i2c: E2 08 00 FA 87 80 11 00 00 00 00 00 00 FB [22:33:29]Write i2c OK [22:33:29]MH_I2C_Read... [22:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:29]Read from MH i2c: E2 [22:33:29]MH_I2C_Read... [22:33:29]Read from MH i2c: E2 17 00 [22:33:29]MH_I2C_Read... [22:33:29]Read from MH i2c: E2 17 00 FA 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 56 [22:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:33:29]wFMCommunicate OK [22:33:29]requested_item fd.num is exist - process it [22:33:29]SAM_PROTO_GetFieldsCounters [22:33:29]wFMCommunicate request_size=4 [22:33:29]MH_SAM_APDU [22:33:29]CAPDU: 80 13 00 00 [22:33:29]Write to MH i2c: E2 08 00 FB 87 80 13 00 00 00 00 00 00 FE [22:33:29]Write i2c OK [22:33:29]MH_I2C_Read... [22:33:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:33:29]Read from MH i2c: E2 [22:33:29]MH_I2C_Read... [22:33:29]Read from MH i2c: E2 62 00 [22:33:29]MH_I2C_Read... [22:33:29]Read from MH i2c: E2 62 00 FB 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 96 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [22:33: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 96 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:33:29]wFMCommunicate OK [22:33:29]SAM_PROTO_GetFieldsCounters done [22:33:29]requested_item shift.num is exist - process it [22:33:29]requested_item shift.opened is exist - process it [22:33:29]req_shift_opened [22:33:29]FM_GetShiftState [22:33:29]SAM_PROTO_GetShiftState [22:33:29]wFMCommunicate request_size=4 [22:33:29]MH_SAM_APDU [22:33:29]CAPDU: 80 13 01 00 [22:33:29]Write to MH i2c: E2 08 00 FC 87 80 13 01 00 00 00 00 00 00 [22:33:29]Write i2c OK [22:33:29]MH_I2C_Read... [22:33:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:29]Read from MH i2c: E2 [22:33:29]MH_I2C_Read... [22:33:29]Read from MH i2c: E2 0E 00 [22:33:29]MH_I2C_Read... [22:33:29]Read from MH i2c: E2 0E 00 FC 87 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 2E [22:33:29]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:33:29]wFMCommunicate OK [22:33:29]SAM_PROTO_GetShiftState done [22:33:29]FM_GetShiftState done [22:33:29]req_shift_opened done [22:33:29]requested_item shift.open_date is exist - process it [22:33:29]req_shift_open_date [22:33:29]req_shift_open_date done [22:33:29]produce_requested_data done [22:33:29]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118934,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [22:33:29]process_action_free print_text [22:33:29]json_value_free [22:33:29]json_value_free done [22:33:29]process_json_proto returns [22:33:29]Send response to host [22:33:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118934,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [22:33:29]free response buf [22:33:29]execute_script done [22:33:29]execute_script returns [22:33:29]free content buf [22:33:29]Sock 7.Close socket [22:33:29]Sock 7.Thread stoped [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:29]accept exits with 9 [22:34:29]New connection [22:34:29]New thread 3067239780 created [22:34:29]Thread 3067383140 joined [22:34:29]Waiting for new connection... [22:34:29] Sock 9.Parse request [22:34:29]Sock 9.Check first char [22:34:29]Sock 9.First char is OK [22:34:29]request: POST /json_proto HTTP/1.0 [22:34:29]Method: POST [22:34:29]URL: /json_proto [22:34:29]Method is POST - this is cgi request [22:34:29]url: /json_proto [22:34:29]query_string will be loaded in cgi processing [22:34:29]execute_cgi json_proto POST (null) [22:34:29]execute_cgi path=json_proto method=POST [22:34:29]POST find Content-Length [22:34:29]Host: 172.17.45.7:8080 [22:34:29]Content-Length: 677 [22:34:29]Content-Type: application/json [22:34:29] [22:34:29]POST finish read [22:34:29]Found Content-Length = 677 [22:34:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:29]execute_script... [22:34:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:29]POST & json_proto [22:34:29]process_json_proto [22:34:29]json parsed OK: [22:34:29]protocol is kg_v1.0 [22:34:29]action value=close_receipt [22:34:29]process_action close_receipt [22:34:29]cmd_close_receipt [22:34:29]MH_GetDate [22:34:29]Write to MH i2c: F0 00 00 FD 87 73 [22:34:29]Write i2c OK [22:34:29]MH_I2C_Read... [22:34:29]Read from MH i2c: F0 [22:34:29]MH_I2C_Read... [22:34:29]Read from MH i2c: F0 09 00 [22:34:29]MH_I2C_Read... [22:34:29]Read from MH i2c: F0 09 00 FD 87 00 FD 18 A8 66 90 0F 3E 66 E2 [22:34:29]GetLastDocTimeStamp 1722291852 [22:34:29]current date 1722292477 [22:34:29]FM_GetShiftState [22:34:29]SAM_PROTO_GetShiftState [22:34:29]wFMCommunicate request_size=4 [22:34:29]MH_SAM_APDU [22:34:29]CAPDU: 80 13 01 00 [22:34:29]Write to MH i2c: E2 08 00 FE 87 80 13 01 00 00 00 00 00 02 [22:34:29]Write i2c OK [22:34:29]MH_I2C_Read... [22:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:29]Read from MH i2c: E2 [22:34:29]MH_I2C_Read... [22:34:29]Read from MH i2c: E2 0E 00 [22:34:29]MH_I2C_Read... [22:34:29]Read from MH i2c: E2 0E 00 FE 87 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 30 [22:34:29]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:34:29]wFMCommunicate OK [22:34:29]SAM_PROTO_GetShiftState done [22:34:29]FM_GetShiftState done [22:34:29]opened in 1722211641 [22:34:29]opened+sec_in_day 1722298041 [22:34:29]quantity*price = 50036 [22:34:29]sum+1 = 50037 [22:34:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 311 29.07.2024 22:34 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118935 ФПД: 152929011377213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T223437&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118935&fm=152929011377213&tin=02508201610067®Number=0000000000092660&sum=50000 [22:34:30]StoreToDocumentArchive [22:34:30]shift 434 fd 118935 [22:34:30]save to /storage/0434/doc_00118935 [22:34:30]save last doc name /storage/0434/doc_00118935 to /storage/kkm_last_doc_name [22:34:30]save OK [22:34:30]Clear old archive folders... [22:34:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:34:30]tlvbuf is B6E11B40 [22:34:30]SAM_PROTO_ClearQueue [22:34:30]wFMCommunicate request_size=4 [22:34:30]MH_SAM_APDU [22:34:30]CAPDU: 80 09 00 00 [22:34:30]Write to MH i2c: E2 08 00 0B 88 80 09 00 00 00 00 00 00 05 [22:34:30]Write i2c OK [22:34:30]MH_I2C_Read... [22:34:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:34:30]Read from MH i2c: E2 [22:34:30]MH_I2C_Read... [22:34:30]Read from MH i2c: E2 03 00 [22:34:30]MH_I2C_Read... [22:34:30]Read from MH i2c: E2 03 00 0B 88 00 90 00 07 [22:34:30]RAPDU: 90 00 [22:34:30]wFMCommunicate OK [22:34:30]SAM_PROTO_ClearQueue done [22:34:30]KKMCreateOFDPacket [22:34:30]OFDProtocolAddRootSTLVToBuf [22:34:30]FM_MakeSignedData [22:34:30]FM_MakeSignedData [22:34:30]SAM_PROTO_SignData [22:34:30]wFMCommunicate request_size=4 [22:34:30]MH_SAM_APDU [22:34:30]CAPDU: 80 0D 01 02 [22:34:30]Write to MH i2c: E2 08 00 0C 88 80 0D 01 02 00 00 00 00 0D [22:34:30]Write i2c OK [22:34:30]MH_I2C_Read... [22:34:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:34:30]Read from MH i2c: E2 [22:34:30]MH_I2C_Read... [22:34:30]Read from MH i2c: E2 03 00 [22:34:30]MH_I2C_Read... [22:34:30]Read from MH i2c: E2 03 00 0C 88 00 90 00 08 [22:34:30]RAPDU: 90 00 [22:34:30]wFMCommunicate OK [22:34:30]wFMCommunicate request_size=255 [22:34:30]MH_SAM_APDU [22:34:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 FD 18 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 97 D0 01 00 35 04 06 00 8B [22:34:30]Write to MH i2c: E2 02 01 0D 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 FD 18 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 97 D0 01 00 35 04 06 00 8B 00 00 92 [22:34:30]Write i2c OK [22:34:30]MH_I2C_Read... [22:34:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:31]Read from MH i2c: E2 [22:34:31]MH_I2C_Read... [22:34:31]Read from MH i2c: E2 03 00 [22:34:31]MH_I2C_Read... [22:34:31]Read from MH i2c: E2 03 00 0D 88 00 90 00 09 [22:34:31]RAPDU: 90 00 [22:34:31]wFMCommunicate OK [22:34:31]wFMCommunicate request_size=10 [22:34:31]MH_SAM_APDU [22:34:31]CAPDU: 80 0D 02 02 05 16 8F 66 24 3D [22:34:31]Write to MH i2c: E2 0D 00 0E 88 80 0D 02 02 05 00 16 8F 66 24 3D 00 00 86 [22:34:31]Write i2c OK [22:34:31]MH_I2C_Read... [22:34:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:31]Read from MH i2c: E2 [22:34:31]MH_I2C_Read... [22:34:31]Read from MH i2c: E2 03 00 [22:34:31]MH_I2C_Read... [22:34:31]Read from MH i2c: E2 03 00 0E 88 00 90 00 0A [22:34:31]RAPDU: 90 00 [22:34:31]wFMCommunicate OK [22:34:31]wFMCommunicate request_size=4 [22:34:31]MH_SAM_APDU [22:34:31]CAPDU: 80 0D 03 02 [22:34:31]Write to MH i2c: E2 08 00 0F 88 80 0D 03 02 00 00 00 00 12 [22:34:31]Write i2c OK [22:34:31]MH_I2C_Read... [22:34:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:34:31]Read from MH i2c: E2 [22:34:31]MH_I2C_Read... [22:34:31]Read from MH i2c: E2 0B 00 [22:34:31]MH_I2C_Read... [22:34:31]Read from MH i2c: E2 0B 00 0F 88 00 B9 52 33 1C D0 05 35 D0 90 00 47 [22:34:31]RAPDU: B9 52 33 1C D0 05 35 D0 90 00 [22:34:31]wFMCommunicate OK [22:34:31]SAM_PROTO_SignData done [22:34:31]FM_MakeSignedData done [22:34:31]CreateOFDProtocolMessage [22:34:31]wFMCommunicate request_size=4 [22:34:31]MH_SAM_APDU [22:34:31]CAPDU: 80 11 00 00 [22:34:31]Write to MH i2c: E2 08 00 10 88 80 11 00 00 00 00 00 00 12 [22:34:31]Write i2c OK [22:34:31]MH_I2C_Read... [22:34:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:31]Read from MH i2c: E2 [22:34:31]MH_I2C_Read... [22:34:31]Read from MH i2c: E2 17 00 [22:34:31]MH_I2C_Read... [22:34:31]Read from MH i2c: E2 17 00 10 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6D [22:34:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:34:31]wFMCommunicate OK [22:34:31]CreateOFDProtocolMessage done [22:34:31]OFDSenderStorePacket 118935 [22:34:31]StoreOFDPacket docnum=118935 [22:34:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 92 7E 07 01 14 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 FD 18 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 97 D0 01 00 35 04 06 00 8B 16 8F 66 24 3D B9 52 33 1C D0 05 35 D0 [22:34:31]CheckFolder [22:34:31]dirname=/storage/ofd_packets [22:34:31]CheckFolder done [22:34:31]ProducePacketName [22:34:31]name=ofd_packets/00118935 [22:34:31]NVStorageSaveData ofd_packets/00118935 [22:34:31]File name is /storage/ofd_packets/00118935 [22:34:31]Write 301 bytes [22:34:31]NVStorageSaveData done [22:34:31]OFDSenderStorePacket done [22:34:31]KKMCreateOFDPacket done [22:34:31]NVStorageSaveData kkm_last_timestamp [22:34:31]File name is /storage/kkm_last_timestamp [22:34:31]Write 4 bytes [22:34:31]NVStorageSaveData done [22:34:31]ExternCall_PrintAddStr [22:34:31]wPrintStart [22:34:31]Write to MH i2c: 01 00 00 11 88 99 [22:34:31]Write i2c OK [22:34:31]MH_I2C_Read... [22:34:31]Read from MH i2c: 01 [22:34:31]MH_I2C_Read... [22:34:31]Read from MH i2c: 01 07 00 [22:34:31]MH_I2C_Read... [22:34:31]Read from MH i2c: 01 07 00 11 88 00 00 00 00 00 FF 0F AE [22:34:31]RasterBufferAndPrint [22:34:31]line Счет N : (1)949853 [22:34:31]line ИНН: 02508201610067 [22:34:31]line Контрольно-Кассовый Чек [22:34:31]line ПРОДАЖА [22:34:31]line ТРК (МРК, ГНК) : 31 [22:34:31]line Товар: 2710124130 [22:34:31]line Аи-92-К-4 [22:34:31]line 7.380 * 67.80 [22:34:31]line = 500.36 [22:34:31]line НДС 12% НСП 1% [22:34:31]line > о реализуемом товаре [22:34:31]line ОКРУГЛЕНИЕ: -0.36 [22:34:31]line ИТОГО: 500.00 [22:34:31]line Внесено: 500.00 [22:34:31]line СДАЧА: 0.00 [22:34:31]line НСП 1% : 4.43 [22:34:31]line НДС 12% : 53.14 [22:34:31]line Наличными: 500.00 [22:34:31]line Безнал.: 0.00 [22:34:31]line Место: АЗС № 134 "Партнер Нефть" [22:34:31]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:34:31]line СНО: Общий режим [22:34:31]line Чек 311 29.07.2024 22:34 [22:34:31]line Смена: 434 ФФД: 1.0 [22:34:31]line ЗНМ: 0300000044 [22:34:31]line РНМ: 0000000000092660 [22:34:31]line Версия ККМ: 001 [22:34:31]line ФМ: 0000000000874939 [22:34:31]line ФД: 118935 [22:34:31]line ФПД: 152929011377213 [22:34:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T223437&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118935&fm=152929011377213&tin=02508201610067®Number=0000000000092660&sum=50000 [22:34:31]written 0, free lines is 4095 [22:34:31]OFD Sender: Processing packet 118935 [packets to send 86, broken 85] [22:34:31]ProducePacketName [22:34:31]name=ofd_packets/00118935 [22:34:31]OFD Sender: To server: pG, [22:34:31]CommunicateWithHost lk.salyk.kg:30040 [22:34:31]ConnectInit lk.salyk.kg [22:34:31]Connected sock=10 [22:34:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 92 7E 07 01 14 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 FD 18 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 97 D0 01 00 35 04 06 00 8B 16 8F 66 24 3D B9 52 33 1C D0 05 35 D0 [22:34:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 04 63 47 00 36 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 34 39 33 39 10 04 04 00 97 D0 01 00 F4 03 04 00 89 C6 A7 66 B6 04 01 00 00 F2 75 04 D6 90 2F 81 5B [22:34:31]CommunicateWithHost err = 0 [22:34:31]CheckOFDResponse [22:34:31]1017 (14) - 77093643461234 [22:34:31]1041 (16) - 0000000000874939 [22:34:31]1040 (4) - 118935 [22:34:31]1012 (4) - 29.07.2024 16:42 [22:34:31]1206 (1) - 0 [22:34:31]OFD Sender: Remove packet 118935 [22:34:31]ProducePacketName [22:34:31]name=ofd_packets/00118935 [22:34:31]NVStorageDeleteData [22:34:31]Write to MH i2c: 01 00 00 3B 88 C3 [22:34:31]Write i2c OK [22:34:31]MH_I2C_Read... [22:34:31]Read from MH i2c: 01 [22:34:31]MH_I2C_Read... [22:34:31]Read from MH i2c: 01 07 00 [22:34:31]MH_I2C_Read... [22:34:31]Read from MH i2c: 01 07 00 3B 88 00 00 00 00 00 D3 0C A9 [22:34:31]RasterBufferAndPrint [22:34:31]line [22:34:31]line [22:34:31]line [22:34:31]line [22:34:31]line [22:34:31]written 0, free lines is 3289 [22:34:31]MH_Cut [22:34:31]Write to MH i2c: D1 01 00 42 88 01 9C [22:34:31]Write i2c OK [22:34:31]MH_I2C_Read... [22:34:31]Read from MH i2c: D1 [22:34:31]MH_I2C_Read... [22:34:31]Read from MH i2c: D1 01 00 [22:34:31]MH_I2C_Read... [22:34:31]Read from MH i2c: D1 01 00 42 88 00 9B [22:34:31]Write to MH i2c: 01 00 00 43 88 CB [22:34:31]Write i2c OK [22:34:31]MH_I2C_Read... [22:34:32]OFD Sender: No OFD packet to send [22:34:32]*** Cut start [22:34:32]*** Partial cut [22:34:32]*** CUTSNS_PIN = 1 [22:34:32]*** CUTSNS_PIN = 0 [22:34:32]*** Brake cut motor [22:34:33]Read from MH i2c: 01 [22:34:33]MH_I2C_Read... [22:34:33]*** Stop cut motor [22:34:33]*** Cut end [22:34:33]Read from MH i2c: 01 07 00 [22:34:33]MH_I2C_Read... [22:34:33]Read from MH i2c: 01 07 00 43 88 00 00 00 00 00 FF 0F E0 [22:34:33]process_action close_receipt done [22:34:33]requested_data is exist [22:34:33]produce_requested_data [22:34:33]requested_item fm.sn is exist - process it [22:34:33]wFMCommunicate request_size=4 [22:34:33]MH_SAM_APDU [22:34:33]CAPDU: 80 11 00 00 [22:34:33]Write to MH i2c: E2 08 00 44 88 80 11 00 00 00 00 00 00 46 [22:34:33]Write i2c OK [22:34:33]MH_I2C_Read... [22:34:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:33]Read from MH i2c: E2 [22:34:33]MH_I2C_Read... [22:34:33]Read from MH i2c: E2 17 00 [22:34:33]MH_I2C_Read... [22:34:33]Read from MH i2c: E2 17 00 44 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A1 [22:34:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:34:33]wFMCommunicate OK [22:34:33]requested_item fd.num is exist - process it [22:34:33]SAM_PROTO_GetFieldsCounters [22:34:33]wFMCommunicate request_size=4 [22:34:33]MH_SAM_APDU [22:34:33]CAPDU: 80 13 00 00 [22:34:33]Write to MH i2c: E2 08 00 45 88 80 13 00 00 00 00 00 00 49 [22:34:33]Write i2c OK [22:34:33]MH_I2C_Read... [22:34:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:34:33]Read from MH i2c: E2 [22:34:33]MH_I2C_Read... [22:34:33]Read from MH i2c: E2 62 00 [22:34:33]MH_I2C_Read... [22:34:33]Read from MH i2c: E2 62 00 45 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 97 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [22:34:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 97 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:34:33]wFMCommunicate OK [22:34:33]SAM_PROTO_GetFieldsCounters done [22:34:33]requested_item shift.num is exist - process it [22:34:33]requested_item shift.opened is exist - process it [22:34:33]req_shift_opened [22:34:33]FM_GetShiftState [22:34:33]SAM_PROTO_GetShiftState [22:34:33]wFMCommunicate request_size=4 [22:34:33]MH_SAM_APDU [22:34:33]CAPDU: 80 13 01 00 [22:34:33]Write to MH i2c: E2 08 00 46 88 80 13 01 00 00 00 00 00 4B [22:34:33]Write i2c OK [22:34:33]MH_I2C_Read... [22:34:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:33]Read from MH i2c: E2 [22:34:33]MH_I2C_Read... [22:34:33]Read from MH i2c: E2 0E 00 [22:34:33]MH_I2C_Read... [22:34:33]Read from MH i2c: E2 0E 00 46 88 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 79 [22:34:33]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:34:33]wFMCommunicate OK [22:34:33]SAM_PROTO_GetShiftState done [22:34:33]FM_GetShiftState done [22:34:33]req_shift_opened done [22:34:33]requested_item shift.open_date is exist - process it [22:34:33]req_shift_open_date [22:34:33]req_shift_open_date done [22:34:33]produce_requested_data done [22:34:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118935,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [22:34:33]process_action_free close_receipt [22:34:33]json_value_free [22:34:33]json_value_free done [22:34:33]process_json_proto returns [22:34:33]Send response to host [22:34:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118935,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [22:34:33]free response buf [22:34:33]execute_script done [22:34:33]execute_script returns [22:34:33]free content buf [22:34:33]Sock 9.Close socket [22:34:33]Sock 9.Thread stoped [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:27]OFD Sender: No OFD packet to send [22:36:32]OFD Sender: No OFD packet to send [22:36:37]OFD Sender: No OFD packet to send [22:36:42]OFD Sender: No OFD packet to send [22:36:47]OFD Sender: No OFD packet to send [22:36:52]OFD Sender: No OFD packet to send [22:36:57]OFD Sender: No OFD packet to send [22:36:58]accept exits with 7 [22:36:58]New connection [22:36:58]New thread 3067383140 created [22:36:58]Thread 3067239780 joined [22:36:58]Waiting for new connection... [22:36:58] Sock 7.Parse request [22:36:58]Sock 7.Check first char [22:36:58]Sock 7.First char is OK [22:36:58]request: POST /json_proto HTTP/1.0 [22:36:58]Method: POST [22:36:58]URL: /json_proto [22:36:58]Method is POST - this is cgi request [22:36:58]url: /json_proto [22:36:58]query_string will be loaded in cgi processing [22:36:58]execute_cgi json_proto POST (null) [22:36:58]execute_cgi path=json_proto method=POST [22:36:58]POST find Content-Length [22:36:58]Host: 172.17.45.7:8080 [22:36:58]Content-Length: 677 [22:36:58]Content-Type: application/json [22:36:58] [22:36:58]POST finish read [22:36:58]Found Content-Length = 677 [22:36:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:58]execute_script... [22:36: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)949854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:58]POST & json_proto [22:36:58]process_json_proto [22:36:58]json parsed OK: [22:36:58]protocol is kg_v1.0 [22:36:58]action value=close_receipt [22:36:58]process_action close_receipt [22:36:58]cmd_close_receipt [22:36:58]MH_GetDate [22:36:58]Write to MH i2c: F0 00 00 47 88 BE [22:36:58]Write i2c OK [22:36:58]MH_I2C_Read... [22:36:58]Read from MH i2c: F0 [22:36:58]MH_I2C_Read... [22:36:58]Read from MH i2c: F0 09 00 [22:36:58]MH_I2C_Read... [22:36:58]Read from MH i2c: F0 09 00 47 88 00 92 19 A8 66 90 0F 3E 66 C3 [22:36:58]GetLastDocTimeStamp 1722292477 [22:36:58]current date 1722292626 [22:36:58]FM_GetShiftState [22:36:58]SAM_PROTO_GetShiftState [22:36:58]wFMCommunicate request_size=4 [22:36:58]MH_SAM_APDU [22:36:58]CAPDU: 80 13 01 00 [22:36:58]Write to MH i2c: E2 08 00 48 88 80 13 01 00 00 00 00 00 4D [22:36:58]Write i2c OK [22:36:58]MH_I2C_Read... [22:36:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:59]Read from MH i2c: E2 [22:36:59]MH_I2C_Read... [22:36:59]Read from MH i2c: E2 0E 00 [22:36:59]MH_I2C_Read... [22:36:59]Read from MH i2c: E2 0E 00 48 88 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 7B [22:36:59]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:36:59]wFMCommunicate OK [22:36:59]SAM_PROTO_GetShiftState done [22:36:59]FM_GetShiftState done [22:36:59]opened in 1722211641 [22:36:59]opened+sec_in_day 1722298041 [22:36:59]quantity*price = 40002 [22:36:59]sum+1 = 40003 [22:36:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 312 29.07.2024 22:37 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118936 ФПД: 156526075536553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T223706&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118936&fm=156526075536553&tin=02508201610067®Number=0000000000092660&sum=40000 [22:37:00]StoreToDocumentArchive [22:37:00]shift 434 fd 118936 [22:37:00]save to /storage/0434/doc_00118936 [22:37:00]save last doc name /storage/0434/doc_00118936 to /storage/kkm_last_doc_name [22:37:00]save OK [22:37:00]Clear old archive folders... [22:37:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:37:00]tlvbuf is B6E11540 [22:37:00]SAM_PROTO_ClearQueue [22:37:00]wFMCommunicate request_size=4 [22:37:00]MH_SAM_APDU [22:37:00]CAPDU: 80 09 00 00 [22:37:00]Write to MH i2c: E2 08 00 55 88 80 09 00 00 00 00 00 00 4F [22:37:00]Write i2c OK [22:37:00]MH_I2C_Read... [22:37:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:37:00]Read from MH i2c: E2 [22:37:00]MH_I2C_Read... [22:37:00]Read from MH i2c: E2 03 00 [22:37:00]MH_I2C_Read... [22:37:00]Read from MH i2c: E2 03 00 55 88 00 90 00 51 [22:37:00]RAPDU: 90 00 [22:37:00]wFMCommunicate OK [22:37:00]SAM_PROTO_ClearQueue done [22:37:00]KKMCreateOFDPacket [22:37:00]OFDProtocolAddRootSTLVToBuf [22:37:00]FM_MakeSignedData [22:37:00]FM_MakeSignedData [22:37:00]SAM_PROTO_SignData [22:37:00]wFMCommunicate request_size=4 [22:37:00]MH_SAM_APDU [22:37:00]CAPDU: 80 0D 01 02 [22:37:00]Write to MH i2c: E2 08 00 56 88 80 0D 01 02 00 00 00 00 57 [22:37:00]Write i2c OK [22:37:00]MH_I2C_Read... [22:37:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:37:00]Read from MH i2c: E2 [22:37:00]MH_I2C_Read... [22:37:00]Read from MH i2c: E2 03 00 [22:37:00]MH_I2C_Read... [22:37:00]Read from MH i2c: E2 03 00 56 88 00 90 00 52 [22:37:00]RAPDU: 90 00 [22:37:00]wFMCommunicate OK [22:37:00]wFMCommunicate request_size=255 [22:37:00]MH_SAM_APDU [22:37:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 92 19 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 98 D0 01 00 35 04 06 00 8E [22:37:00]Write to MH i2c: E2 02 01 57 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 92 19 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 98 D0 01 00 35 04 06 00 8E 00 00 5C [22:37:00]Write i2c OK [22:37:00]MH_I2C_Read... [22:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:00]Read from MH i2c: E2 [22:37:00]MH_I2C_Read... [22:37:00]Read from MH i2c: E2 03 00 [22:37:00]MH_I2C_Read... [22:37:00]Read from MH i2c: E2 03 00 57 88 00 90 00 53 [22:37:00]RAPDU: 90 00 [22:37:00]wFMCommunicate OK [22:37:00]wFMCommunicate request_size=10 [22:37:00]MH_SAM_APDU [22:37:00]CAPDU: 80 0D 02 02 05 5C 11 21 64 A9 [22:37:00]Write to MH i2c: E2 0D 00 58 88 80 0D 02 02 05 00 5C 11 21 64 A9 00 00 FF [22:37:00]Write i2c OK [22:37:00]MH_I2C_Read... [22:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:00]Read from MH i2c: E2 [22:37:00]MH_I2C_Read... [22:37:00]Read from MH i2c: E2 03 00 [22:37:00]MH_I2C_Read... [22:37:00]Read from MH i2c: E2 03 00 58 88 00 90 00 54 [22:37:00]RAPDU: 90 00 [22:37:00]wFMCommunicate OK [22:37:00]wFMCommunicate request_size=4 [22:37:00]MH_SAM_APDU [22:37:00]CAPDU: 80 0D 03 02 [22:37:00]Write to MH i2c: E2 08 00 59 88 80 0D 03 02 00 00 00 00 5C [22:37:00]Write i2c OK [22:37:00]MH_I2C_Read... [22:37:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:37:00]Read from MH i2c: E2 [22:37:00]MH_I2C_Read... [22:37:00]Read from MH i2c: E2 0B 00 [22:37:00]MH_I2C_Read... [22:37:00]Read from MH i2c: E2 0B 00 59 88 00 DA 7D BC 2D A5 54 4D 0A 90 00 ED [22:37:00]RAPDU: DA 7D BC 2D A5 54 4D 0A 90 00 [22:37:00]wFMCommunicate OK [22:37:00]SAM_PROTO_SignData done [22:37:00]FM_MakeSignedData done [22:37:00]CreateOFDProtocolMessage [22:37:00]wFMCommunicate request_size=4 [22:37:00]MH_SAM_APDU [22:37:00]CAPDU: 80 11 00 00 [22:37:00]Write to MH i2c: E2 08 00 5A 88 80 11 00 00 00 00 00 00 5C [22:37:00]Write i2c OK [22:37:00]MH_I2C_Read... [22:37:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:00]Read from MH i2c: E2 [22:37:00]MH_I2C_Read... [22:37:00]Read from MH i2c: E2 17 00 [22:37:00]MH_I2C_Read... [22:37:00]Read from MH i2c: E2 17 00 5A 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B7 [22:37:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:37:00]wFMCommunicate OK [22:37:00]CreateOFDProtocolMessage done [22:37:00]OFDSenderStorePacket 118936 [22:37:00]StoreOFDPacket docnum=118936 [22:37:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E7 51 07 01 6A C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 92 19 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 98 D0 01 00 35 04 06 00 8E 5C 11 21 64 A9 DA 7D BC 2D A5 54 4D 0A [22:37:00]CheckFolder [22:37:00]dirname=/storage/ofd_packets [22:37:00]CheckFolder done [22:37:00]ProducePacketName [22:37:00]name=ofd_packets/00118936 [22:37:00]NVStorageSaveData ofd_packets/00118936 [22:37:00]File name is /storage/ofd_packets/00118936 [22:37:00]Write 301 bytes [22:37:00]NVStorageSaveData done [22:37:00]OFDSenderStorePacket done [22:37:00]KKMCreateOFDPacket done [22:37:00]NVStorageSaveData kkm_last_timestamp [22:37:00]File name is /storage/kkm_last_timestamp [22:37:00]Write 4 bytes [22:37:00]NVStorageSaveData done [22:37:00]ExternCall_PrintAddStr [22:37:00]wPrintStart [22:37:00]Write to MH i2c: 01 00 00 5B 88 E3 [22:37:00]Write i2c OK [22:37:00]MH_I2C_Read... [22:37:00]Read from MH i2c: 01 [22:37:00]MH_I2C_Read... [22:37:00]Read from MH i2c: 01 07 00 [22:37:00]MH_I2C_Read... [22:37:00]Read from MH i2c: 01 07 00 5B 88 00 00 00 00 00 FF 0F F8 [22:37:00]RasterBufferAndPrint [22:37:00]line Счет N : (1)949854 [22:37:00]line ИНН: 02508201610067 [22:37:00]line Контрольно-Кассовый Чек [22:37:00]line ПРОДАЖА [22:37:00]line ТРК (МРК, ГНК) : 41 [22:37:00]line Товар: 2710124130 [22:37:00]line Аи-92-К-4 [22:37:00]line 5.900 * 67.80 [22:37:00]line = 400.02 [22:37:00]line НДС 12% НСП 1% [22:37:00]line > о реализуемом товаре [22:37:00]line ОКРУГЛЕНИЕ: -0.02 [22:37:00]line ИТОГО: 400.00 [22:37:00]line Внесено: 400.00 [22:37:00]line СДАЧА: 0.00 [22:37:00]line НСП 1% : 3.54 [22:37:00]line НДС 12% : 42.48 [22:37:00]line Наличными: 400.00 [22:37:00]line Безнал.: 0.00 [22:37:00]line Место: АЗС № 134 "Партнер Нефть" [22:37:00]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:37:00]line СНО: Общий режим [22:37:00]line Чек 312 29.07.2024 22:37 [22:37:00]line Смена: 434 ФФД: 1.0 [22:37:00]line ЗНМ: 0300000044 [22:37:00]line РНМ: 0000000000092660 [22:37:00]line Версия ККМ: 001 [22:37:00]line ФМ: 0000000000874939 [22:37:00]line ФД: 118936 [22:37:00]line ФПД: 156526075536553 [22:37:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T223706&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118936&fm=156526075536553&tin=02508201610067®Number=0000000000092660&sum=40000 [22:37:00]OFD Sender: Processing packet 118936 [packets to send 86, broken 85] [22:37:00]ProducePacketName [22:37:00]name=ofd_packets/00118936 [22:37:00]OFD Sender: To server: pG, [22:37:00]CommunicateWithHost lk.salyk.kg:30040 [22:37:00]ConnectInit lk.salyk.kg [22:37:00]written 0, free lines is 4095 [22:37:01]Connected sock=10 [22:37:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E7 51 07 01 6A C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 92 19 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 98 D0 01 00 35 04 06 00 8E 5C 11 21 64 A9 DA 7D BC 2D A5 54 4D 0A [22:37:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B5 F0 47 00 F1 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 34 39 33 39 10 04 04 00 98 D0 01 00 F4 03 04 00 1F C7 A7 66 B6 04 01 00 00 40 DC 48 39 7A 38 61 E7 [22:37:01]CommunicateWithHost err = 0 [22:37:01]CheckOFDResponse [22:37:01]1017 (14) - 77093643461234 [22:37:01]1041 (16) - 0000000000874939 [22:37:01]1040 (4) - 118936 [22:37:01]1012 (4) - 29.07.2024 16:45 [22:37:01]1206 (1) - 0 [22:37:01]OFD Sender: Remove packet 118936 [22:37:01]ProducePacketName [22:37:01]name=ofd_packets/00118936 [22:37:01]NVStorageDeleteData [22:37:01]Write to MH i2c: 01 00 00 85 88 0D [22:37:01]Write i2c OK [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: 01 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: 01 07 00 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: 01 07 00 85 88 00 00 00 00 00 DB 0C FB [22:37:01]RasterBufferAndPrint [22:37:01]line [22:37:01]line [22:37:01]line [22:37:01]line [22:37:01]line [22:37:01]written 0, free lines is 3297 [22:37:01]MH_Cut [22:37:01]Write to MH i2c: D1 01 00 8C 88 01 E6 [22:37:01]Write i2c OK [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: D1 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: D1 01 00 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: D1 01 00 8C 88 00 E5 [22:37:01]Write to MH i2c: 01 00 00 8D 88 15 [22:37:01]Write i2c OK [22:37:01]MH_I2C_Read... [22:37:01]OFD Sender: No OFD packet to send [22:37:02]*** Cut start [22:37:02]*** Partial cut [22:37:02]*** CUTSNS_PIN = 1 [22:37:02]*** CUTSNS_PIN = 0 [22:37:02]*** Brake cut motor [22:37:02]Read from MH i2c: 01 [22:37:02]MH_I2C_Read... [22:37:02]*** Stop cut motor [22:37:02]*** Cut end [22:37:02]Read from MH i2c: 01 07 00 [22:37:02]MH_I2C_Read... [22:37:02]Read from MH i2c: 01 07 00 8D 88 00 00 00 00 00 FF 0F 2A [22:37:02]process_action close_receipt done [22:37:02]requested_data is exist [22:37:02]produce_requested_data [22:37:02]requested_item fm.sn is exist - process it [22:37:02]wFMCommunicate request_size=4 [22:37:02]MH_SAM_APDU [22:37:02]CAPDU: 80 11 00 00 [22:37:02]Write to MH i2c: E2 08 00 8E 88 80 11 00 00 00 00 00 00 90 [22:37:02]Write i2c OK [22:37:02]MH_I2C_Read... [22:37:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:02]Read from MH i2c: E2 [22:37:02]MH_I2C_Read... [22:37:02]Read from MH i2c: E2 17 00 [22:37:02]MH_I2C_Read... [22:37:02]Read from MH i2c: E2 17 00 8E 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EB [22:37:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:37:02]wFMCommunicate OK [22:37:02]requested_item fd.num is exist - process it [22:37:02]SAM_PROTO_GetFieldsCounters [22:37:02]wFMCommunicate request_size=4 [22:37:02]MH_SAM_APDU [22:37:02]CAPDU: 80 13 00 00 [22:37:02]Write to MH i2c: E2 08 00 8F 88 80 13 00 00 00 00 00 00 93 [22:37:02]Write i2c OK [22:37:02]MH_I2C_Read... [22:37:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:37:02]Read from MH i2c: E2 [22:37:02]MH_I2C_Read... [22:37:02]Read from MH i2c: E2 62 00 [22:37:02]MH_I2C_Read... [22:37:02]Read from MH i2c: E2 62 00 8F 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 98 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 81 [22:37: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 98 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:37:02]wFMCommunicate OK [22:37:02]SAM_PROTO_GetFieldsCounters done [22:37:02]requested_item shift.num is exist - process it [22:37:02]requested_item shift.opened is exist - process it [22:37:02]req_shift_opened [22:37:02]FM_GetShiftState [22:37:02]SAM_PROTO_GetShiftState [22:37:02]wFMCommunicate request_size=4 [22:37:02]MH_SAM_APDU [22:37:02]CAPDU: 80 13 01 00 [22:37:02]Write to MH i2c: E2 08 00 90 88 80 13 01 00 00 00 00 00 95 [22:37:02]Write i2c OK [22:37:02]MH_I2C_Read... [22:37:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:03]Read from MH i2c: E2 [22:37:03]MH_I2C_Read... [22:37:03]Read from MH i2c: E2 0E 00 [22:37:03]MH_I2C_Read... [22:37:03]Read from MH i2c: E2 0E 00 90 88 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C3 [22:37:03]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:37:03]wFMCommunicate OK [22:37:03]SAM_PROTO_GetShiftState done [22:37:03]FM_GetShiftState done [22:37:03]req_shift_opened done [22:37:03]requested_item shift.open_date is exist - process it [22:37:03]req_shift_open_date [22:37:03]req_shift_open_date done [22:37:03]produce_requested_data done [22:37:03]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118936,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [22:37:03]process_action_free close_receipt [22:37:03]json_value_free [22:37:03]json_value_free done [22:37:03]process_json_proto returns [22:37:03]Send response to host [22:37:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118936,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [22:37:03]free response buf [22:37:03]execute_script done [22:37:03]execute_script returns [22:37:03]free content buf [22:37:03]Sock 7.Close socket [22:37:03]Sock 7.Thread stoped [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:21]OFD Sender: No OFD packet to send [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:46]OFD Sender: No OFD packet to send [22:37:51]OFD Sender: No OFD packet to send [22:37:56]OFD Sender: No OFD packet to send [22:38:01]OFD Sender: No OFD packet to send [22:38:06]OFD Sender: No OFD packet to send [22:38:11]OFD Sender: No OFD packet to send [22:38:16]OFD Sender: No OFD packet to send [22:38:21]OFD Sender: No OFD packet to send [22:38:26]OFD Sender: No OFD packet to send [22:38:31]OFD Sender: No OFD packet to send [22:38:36]OFD Sender: No OFD packet to send [22:38:41]OFD Sender: No OFD packet to send [22:38:46]OFD Sender: No OFD packet to send [22:38:51]OFD Sender: No OFD packet to send [22:38:56]OFD Sender: No OFD packet to send [22:39:01]OFD Sender: No OFD packet to send [22:39:06]OFD Sender: No OFD packet to send [22:39:11]OFD Sender: No OFD packet to send [22:39:16]OFD Sender: No OFD packet to send [22:39:21]OFD Sender: No OFD packet to send [22:39:26]OFD Sender: No OFD packet to send [22:39:31]OFD Sender: No OFD packet to send [22:39:36]OFD Sender: No OFD packet to send [22:39:41]OFD Sender: No OFD packet to send [22:39:46]OFD Sender: No OFD packet to send [22:39:51]OFD Sender: No OFD packet to send [22:39:56]OFD Sender: No OFD packet to send [22:40:01]OFD Sender: No OFD packet to send [22:40:06]OFD Sender: No OFD packet to send [22:40:11]OFD Sender: No OFD packet to send [22:40:16]OFD Sender: No OFD packet to send [22:40:21]OFD Sender: No OFD packet to send [22:40:26]OFD Sender: No OFD packet to send [22:40:32]OFD Sender: No OFD packet to send [22:40:37]OFD Sender: No OFD packet to send [22:40:42]OFD Sender: No OFD packet to send [22:40:47]OFD Sender: No OFD packet to send [22:40:52]OFD Sender: No OFD packet to send [22:40:57]OFD Sender: No OFD packet to send [22:41:02]OFD Sender: No OFD packet to send [22:41:07]OFD Sender: No OFD packet to send [22:41:12]OFD Sender: No OFD packet to send [22:41:17]OFD Sender: No OFD packet to send [22:41:22]OFD Sender: No OFD packet to send [22:41:27]OFD Sender: No OFD packet to send [22:41:32]OFD Sender: No OFD packet to send [22:41:37]OFD Sender: No OFD packet to send [22:41:42]OFD Sender: No OFD packet to send [22:41:47]OFD Sender: No OFD packet to send [22:41:52]OFD Sender: No OFD packet to send [22:41:57]OFD Sender: No OFD packet to send [22:42:02]OFD Sender: No OFD packet to send [22:42:07]OFD Sender: No OFD packet to send [22:42:12]OFD Sender: No OFD packet to send [22:42:17]OFD Sender: No OFD packet to send [22:42:22]OFD Sender: No OFD packet to send [22:42:27]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:47]OFD Sender: No OFD packet to send [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:02]OFD Sender: No OFD packet to send [22:43:07]OFD Sender: No OFD packet to send [22:43:12]OFD Sender: No OFD packet to send [22:43:17]OFD Sender: No OFD packet to send [22:43:22]OFD Sender: No OFD packet to send [22:43:27]OFD Sender: No OFD packet to send [22:43:32]OFD Sender: No OFD packet to send [22:43:37]OFD Sender: No OFD packet to send [22:43:42]OFD Sender: No OFD packet to send [22:43:47]OFD Sender: No OFD packet to send [22:43:52]OFD Sender: No OFD packet to send [22:43:57]OFD Sender: No OFD packet to send [22:44:02]OFD Sender: No OFD packet to send [22:44:07]OFD Sender: No OFD packet to send [22:44:12]OFD Sender: No OFD packet to send [22:44:17]OFD Sender: No OFD packet to send [22:44:22]OFD Sender: No OFD packet to send [22:44:27]OFD Sender: No OFD packet to send [22:44:32]OFD Sender: No OFD packet to send [22:44:37]OFD Sender: No OFD packet to send [22:44:42]OFD Sender: No OFD packet to send [22:44:47]OFD Sender: No OFD packet to send [22:44:52]OFD Sender: No OFD packet to send [22:44:57]OFD Sender: No OFD packet to send [22:45:02]OFD Sender: No OFD packet to send [22:45:07]OFD Sender: No OFD packet to send [22:45:12]OFD Sender: No OFD packet to send [22:45:17]OFD Sender: No OFD packet to send [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:32]OFD Sender: No OFD packet to send [22:45:37]OFD Sender: No OFD packet to send [22:45:42]OFD Sender: No OFD packet to send [22:45:47]OFD Sender: No OFD packet to send [22:45:52]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:32]OFD Sender: No OFD packet to send [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:42]OFD Sender: No OFD packet to send [22:47:47]OFD Sender: No OFD packet to send [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:02]accept exits with 9 [22:48:02]New connection [22:48:02]New thread 3067239780 created [22:48:02]Thread 3067383140 joined [22:48:02]Waiting for new connection... [22:48:02] Sock 9.Parse request [22:48:02]Sock 9.Check first char [22:48:02]Sock 9.First char is OK [22:48:02]request: POST /json_proto HTTP/1.0 [22:48:02]Method: POST [22:48:02]URL: /json_proto [22:48:02]Method is POST - this is cgi request [22:48:02]url: /json_proto [22:48:02]query_string will be loaded in cgi processing [22:48:02]execute_cgi json_proto POST (null) [22:48:02]execute_cgi path=json_proto method=POST [22:48:02]POST find Content-Length [22:48:02]Host: 172.17.45.7:8080 [22:48:02]Content-Length: 678 [22:48:02]Content-Type: application/json [22:48:02] [22:48:02]POST finish read [22:48:02]Found Content-Length = 678 [22:48:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:02]execute_script... [22:48: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)949856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:02]POST & json_proto [22:48:02]process_json_proto [22:48:02]json parsed OK: [22:48:02]protocol is kg_v1.0 [22:48:02]action value=close_receipt [22:48:02]process_action close_receipt [22:48:02]cmd_close_receipt [22:48:02]MH_GetDate [22:48:02]Write to MH i2c: F0 00 00 91 88 08 [22:48:02]Write i2c OK [22:48:02]MH_I2C_Read... [22:48:02]Read from MH i2c: F0 [22:48:02]MH_I2C_Read... [22:48:02]Read from MH i2c: F0 09 00 [22:48:02]MH_I2C_Read... [22:48:02]Read from MH i2c: F0 09 00 91 88 00 2A 1C A8 66 90 0F 3E 66 A8 [22:48:02]GetLastDocTimeStamp 1722292626 [22:48:02]current date 1722293290 [22:48:02]FM_GetShiftState [22:48:02]SAM_PROTO_GetShiftState [22:48:02]wFMCommunicate request_size=4 [22:48:02]MH_SAM_APDU [22:48:02]CAPDU: 80 13 01 00 [22:48:02]Write to MH i2c: E2 08 00 92 88 80 13 01 00 00 00 00 00 97 [22:48:02]Write i2c OK [22:48:02]MH_I2C_Read... [22:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:02]Read from MH i2c: E2 [22:48:02]MH_I2C_Read... [22:48:02]Read from MH i2c: E2 0E 00 [22:48:02]MH_I2C_Read... [22:48:02]Read from MH i2c: E2 0E 00 92 88 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 C5 [22:48:02]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:48:02]wFMCommunicate OK [22:48:02]SAM_PROTO_GetShiftState done [22:48:02]FM_GetShiftState done [22:48:02]opened in 1722211641 [22:48:02]opened+sec_in_day 1722298041 [22:48:02]quantity*price = 80061 [22:48:02]sum+1 = 80063 [22:48:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 313 29.07.2024 22:48 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118937 ФПД: 34626823283360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T224810&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118937&fm=34626823283360&tin=02508201610067®Number=0000000000092660&sum=80000 [22:48:03]StoreToDocumentArchive [22:48:03]shift 434 fd 118937 [22:48:03]save to /storage/0434/doc_00118937 [22:48:03]save last doc name /storage/0434/doc_00118937 to /storage/kkm_last_doc_name [22:48:03]save OK [22:48:03]Clear old archive folders... [22:48:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:48:03]tlvbuf is 01F744B0 [22:48:03]SAM_PROTO_ClearQueue [22:48:03]wFMCommunicate request_size=4 [22:48:03]MH_SAM_APDU [22:48:03]CAPDU: 80 09 00 00 [22:48:03]Write to MH i2c: E2 08 00 9F 88 80 09 00 00 00 00 00 00 99 [22:48:03]Write i2c OK [22:48:03]MH_I2C_Read... [22:48:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:48:03]Read from MH i2c: E2 [22:48:03]MH_I2C_Read... [22:48:03]Read from MH i2c: E2 03 00 [22:48:03]MH_I2C_Read... [22:48:03]Read from MH i2c: E2 03 00 9F 88 00 90 00 9B [22:48:03]RAPDU: 90 00 [22:48:03]wFMCommunicate OK [22:48:03]SAM_PROTO_ClearQueue done [22:48:03]KKMCreateOFDPacket [22:48:03]OFDProtocolAddRootSTLVToBuf [22:48:03]FM_MakeSignedData [22:48:03]FM_MakeSignedData [22:48:03]SAM_PROTO_SignData [22:48:03]wFMCommunicate request_size=4 [22:48:03]MH_SAM_APDU [22:48:03]CAPDU: 80 0D 01 02 [22:48:03]Write to MH i2c: E2 08 00 A0 88 80 0D 01 02 00 00 00 00 A1 [22:48:03]Write i2c OK [22:48:03]MH_I2C_Read... [22:48:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:48:03]Read from MH i2c: E2 [22:48:03]MH_I2C_Read... [22:48:03]Read from MH i2c: E2 03 00 [22:48:03]MH_I2C_Read... [22:48:03]Read from MH i2c: E2 03 00 A0 88 00 90 00 9C [22:48:03]RAPDU: 90 00 [22:48:03]wFMCommunicate OK [22:48:03]wFMCommunicate request_size=255 [22:48:03]MH_SAM_APDU [22:48:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 2A 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 99 D0 01 00 35 04 06 00 1F [22:48:03]Write to MH i2c: E2 02 01 A1 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 2A 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 99 D0 01 00 35 04 06 00 1F 00 00 6B [22:48:03]Write i2c OK [22:48:03]MH_I2C_Read... [22:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:04]Read from MH i2c: E2 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: E2 03 00 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: E2 03 00 A1 88 00 90 00 9D [22:48:04]RAPDU: 90 00 [22:48:04]wFMCommunicate OK [22:48:04]wFMCommunicate request_size=10 [22:48:04]MH_SAM_APDU [22:48:04]CAPDU: 80 0D 02 02 05 7E 2F 80 62 A0 [22:48:04]Write to MH i2c: E2 0D 00 A2 88 80 0D 02 02 05 00 7E 2F 80 62 A0 00 00 DD [22:48:04]Write i2c OK [22:48:04]MH_I2C_Read... [22:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:04]Read from MH i2c: E2 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: E2 03 00 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: E2 03 00 A2 88 00 90 00 9E [22:48:04]RAPDU: 90 00 [22:48:04]wFMCommunicate OK [22:48:04]wFMCommunicate request_size=4 [22:48:04]MH_SAM_APDU [22:48:04]CAPDU: 80 0D 03 02 [22:48:04]Write to MH i2c: E2 08 00 A3 88 80 0D 03 02 00 00 00 00 A6 [22:48:04]Write i2c OK [22:48:04]MH_I2C_Read... [22:48:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:48:04]Read from MH i2c: E2 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: E2 0B 00 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: E2 0B 00 A3 88 00 BD 8F C0 B1 EF A9 32 43 90 00 71 [22:48:04]RAPDU: BD 8F C0 B1 EF A9 32 43 90 00 [22:48:04]wFMCommunicate OK [22:48:04]SAM_PROTO_SignData done [22:48:04]FM_MakeSignedData done [22:48:04]CreateOFDProtocolMessage [22:48:04]wFMCommunicate request_size=4 [22:48:04]MH_SAM_APDU [22:48:04]CAPDU: 80 11 00 00 [22:48:04]Write to MH i2c: E2 08 00 A4 88 80 11 00 00 00 00 00 00 A6 [22:48:04]Write i2c OK [22:48:04]MH_I2C_Read... [22:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:04]Read from MH i2c: E2 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: E2 17 00 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: E2 17 00 A4 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 01 [22:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:48:04]wFMCommunicate OK [22:48:04]CreateOFDProtocolMessage done [22:48:04]OFDSenderStorePacket 118937 [22:48:04]StoreOFDPacket docnum=118937 [22:48:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3C 91 07 01 83 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 2A 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 99 D0 01 00 35 04 06 00 1F 7E 2F 80 62 A0 BD 8F C0 B1 EF A9 32 43 [22:48:04]CheckFolder [22:48:04]dirname=/storage/ofd_packets [22:48:04]CheckFolder done [22:48:04]ProducePacketName [22:48:04]name=ofd_packets/00118937 [22:48:04]NVStorageSaveData ofd_packets/00118937 [22:48:04]File name is /storage/ofd_packets/00118937 [22:48:04]Write 301 bytes [22:48:04]NVStorageSaveData done [22:48:04]OFDSenderStorePacket done [22:48:04]KKMCreateOFDPacket done [22:48:04]NVStorageSaveData kkm_last_timestamp [22:48:04]File name is /storage/kkm_last_timestamp [22:48:04]Write 4 bytes [22:48:04]NVStorageSaveData done [22:48:04]ExternCall_PrintAddStr [22:48:04]wPrintStart [22:48:04]Write to MH i2c: 01 00 00 A5 88 2D [22:48:04]Write i2c OK [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: 01 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: 01 07 00 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: 01 07 00 A5 88 00 00 00 00 00 FF 0F 42 [22:48:04]RasterBufferAndPrint [22:48:04]line Счет N : (1)949856 [22:48:04]line ИНН: 02508201610067 [22:48:04]line Контрольно-Кассовый Чек [22:48:04]line ПРОДАЖА [22:48:04]line ТРК (МРК, ГНК) : 43 [22:48:04]line Товар: 2710124500 [22:48:04]line Аи-95-К-3 [22:48:04]line 10.790 * 74.20 [22:48:04]line = 800.62 [22:48:04]line НДС 12% НСП 1% [22:48:04]line > о реализуемом товаре [22:48:04]line ОКРУГЛЕНИЕ: -0.62 [22:48:04]line ИТОГО: 800.00 [22:48:04]line Внесено: 800.00 [22:48:04]line СДАЧА: 0.00 [22:48:04]line НСП 1% : 7.08 [22:48:04]line НДС 12% : 85.02 [22:48:04]line Наличными: 800.00 [22:48:04]line Безнал.: 0.00 [22:48:04]line Место: АЗС № 134 "Партнер Нефть" [22:48:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:48:04]line СНО: Общий режим [22:48:04]line Чек 313 29.07.2024 22:48 [22:48:04]line Смена: 434 ФФД: 1.0 [22:48:04]line ЗНМ: 0300000044 [22:48:04]line РНМ: 0000000000092660 [22:48:04]line Версия ККМ: 001 [22:48:04]line ФМ: 0000000000874939 [22:48:04]line ФД: 118937 [22:48:04]line ФПД: 34626823283360 [22:48:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T224810&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118937&fm=34626823283360&tin=02508201610067®Number=0000000000092660&sum=80000 [22:48:04]written 0, free lines is 4095 [22:48:04]OFD Sender: Processing packet 118937 [packets to send 86, broken 85] [22:48:04]ProducePacketName [22:48:04]name=ofd_packets/00118937 [22:48:04]OFD Sender: To server: pG, [22:48:04]CommunicateWithHost lk.salyk.kg:30040 [22:48:04]ConnectInit lk.salyk.kg [22:48:04]Connected sock=10 [22:48:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3C 91 07 01 83 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 2A 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 99 D0 01 00 35 04 06 00 1F 7E 2F 80 62 A0 BD 8F C0 B1 EF A9 32 43 [22:48:04]Write to MH i2c: 01 00 00 CF 88 57 [22:48:04]Write i2c OK [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: 01 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: 01 07 00 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: 01 07 00 CF 88 00 00 00 00 00 D9 0C 43 [22:48:04]RasterBufferAndPrint [22:48:04]line [22:48:04]line [22:48:04]line [22:48:04]line [22:48:04]line [22:48:04]written 0, free lines is 3296 [22:48:04]MH_Cut [22:48:04]Write to MH i2c: D1 01 00 D6 88 01 30 [22:48:04]Write i2c OK [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: D1 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: D1 01 00 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: D1 01 00 D6 88 00 2F [22:48:04]Write to MH i2c: 01 00 00 D7 88 5F [22:48:04]Write i2c OK [22:48:04]MH_I2C_Read... [22:48:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6A 6D 47 00 04 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 34 39 33 39 10 04 04 00 99 D0 01 00 F4 03 04 00 B7 C9 A7 66 B6 04 01 00 00 7B B7 B6 33 11 03 89 F6 [22:48:05]CommunicateWithHost err = 0 [22:48:05]CheckOFDResponse [22:48:05]1017 (14) - 77093643461234 [22:48:05]1041 (16) - 0000000000874939 [22:48:05]1040 (4) - 118937 [22:48:05]1012 (4) - 29.07.2024 16:56 [22:48:05]1206 (1) - 0 [22:48:05]OFD Sender: Remove packet 118937 [22:48:05]ProducePacketName [22:48:05]name=ofd_packets/00118937 [22:48:05]NVStorageDeleteData [22:48:05]OFD Sender: No OFD packet to send [22:48:05]*** Cut start [22:48:05]*** Partial cut [22:48:05]*** CUTSNS_PIN = 1 [22:48:05]*** CUTSNS_PIN = 0 [22:48:05]*** Brake cut motor [22:48:06]Read from MH i2c: 01 [22:48:06]MH_I2C_Read... [22:48:06]*** Stop cut motor [22:48:06]*** Cut end [22:48:06]Read from MH i2c: 01 07 00 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: 01 07 00 D7 88 00 00 00 00 00 FF 0F 74 [22:48:06]process_action close_receipt done [22:48:06]requested_data is exist [22:48:06]produce_requested_data [22:48:06]requested_item fm.sn is exist - process it [22:48:06]wFMCommunicate request_size=4 [22:48:06]MH_SAM_APDU [22:48:06]CAPDU: 80 11 00 00 [22:48:06]Write to MH i2c: E2 08 00 D8 88 80 11 00 00 00 00 00 00 DA [22:48:06]Write i2c OK [22:48:06]MH_I2C_Read... [22:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:06]Read from MH i2c: E2 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: E2 17 00 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: E2 17 00 D8 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 35 [22:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:48:06]wFMCommunicate OK [22:48:06]requested_item fd.num is exist - process it [22:48:06]SAM_PROTO_GetFieldsCounters [22:48:06]wFMCommunicate request_size=4 [22:48:06]MH_SAM_APDU [22:48:06]CAPDU: 80 13 00 00 [22:48:06]Write to MH i2c: E2 08 00 D9 88 80 13 00 00 00 00 00 00 DD [22:48:06]Write i2c OK [22:48:06]MH_I2C_Read... [22:48:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:48:06]Read from MH i2c: E2 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: E2 62 00 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: E2 62 00 D9 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 99 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 CF [22:48: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 99 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:48:06]wFMCommunicate OK [22:48:06]SAM_PROTO_GetFieldsCounters done [22:48:06]requested_item shift.num is exist - process it [22:48:06]requested_item shift.opened is exist - process it [22:48:06]req_shift_opened [22:48:06]FM_GetShiftState [22:48:06]SAM_PROTO_GetShiftState [22:48:06]wFMCommunicate request_size=4 [22:48:06]MH_SAM_APDU [22:48:06]CAPDU: 80 13 01 00 [22:48:06]Write to MH i2c: E2 08 00 DA 88 80 13 01 00 00 00 00 00 DF [22:48:06]Write i2c OK [22:48:06]MH_I2C_Read... [22:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:06]Read from MH i2c: E2 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: E2 0E 00 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: E2 0E 00 DA 88 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 0D [22:48:06]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:48:06]wFMCommunicate OK [22:48:06]SAM_PROTO_GetShiftState done [22:48:06]FM_GetShiftState done [22:48:06]req_shift_opened done [22:48:06]requested_item shift.open_date is exist - process it [22:48:06]req_shift_open_date [22:48:06]req_shift_open_date done [22:48:06]produce_requested_data done [22:48:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118937,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [22:48:06]process_action_free close_receipt [22:48:06]json_value_free [22:48:06]json_value_free done [22:48:06]process_json_proto returns [22:48:06]Send response to host [22:48:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118937,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [22:48:06]free response buf [22:48:06]execute_script done [22:48:06]execute_script returns [22:48:06]free content buf [22:48:06]Sock 9.Close socket [22:48:06]Sock 9.Thread stoped [22:48:10]OFD Sender: No OFD packet to send [22:48:15]OFD Sender: No OFD packet to send [22:48:20]OFD Sender: No OFD packet to send [22:48:25]OFD Sender: No OFD packet to send [22:48:30]OFD Sender: No OFD packet to send [22:48:35]OFD Sender: No OFD packet to send [22:48:40]OFD Sender: No OFD packet to send [22:48:45]OFD Sender: No OFD packet to send [22:48:50]OFD Sender: No OFD packet to send [22:48:55]OFD Sender: No OFD packet to send [22:49:00]OFD Sender: No OFD packet to send [22:49:05]OFD Sender: No OFD packet to send [22:49:10]OFD Sender: No OFD packet to send [22:49:15]OFD Sender: No OFD packet to send [22:49:20]OFD Sender: No OFD packet to send [22:49:21]accept exits with 7 [22:49:21]New connection [22:49:21]New thread 3067383140 created [22:49:21]Thread 3067239780 joined [22:49:21]Waiting for new connection... [22:49:21] Sock 7.Parse request [22:49:21]Sock 7.Check first char [22:49:21]Sock 7.First char is OK [22:49:21]request: POST /json_proto HTTP/1.0 [22:49:21]Method: POST [22:49:21]URL: /json_proto [22:49:21]Method is POST - this is cgi request [22:49:21]url: /json_proto [22:49:21]query_string will be loaded in cgi processing [22:49:21]execute_cgi json_proto POST (null) [22:49:21]execute_cgi path=json_proto method=POST [22:49:21]POST find Content-Length [22:49:21]Host: 172.17.45.7:8080 [22:49:21]Content-Length: 819 [22:49:21]Content-Type: application/json [22:49:21] [22:49:21]POST finish read [22:49:21]Found Content-Length = 819 [22:49:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:21]execute_script... [22:49:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:21]POST & json_proto [22:49:21]process_json_proto [22:49:21]json parsed OK: [22:49:21]protocol is kg_v1.0 [22:49:21]action value=close_receipt [22:49:21]process_action close_receipt [22:49:21]cmd_close_receipt [22:49:21]MH_GetDate [22:49:21]Write to MH i2c: F0 00 00 DB 88 52 [22:49:21]Write i2c OK [22:49:21]MH_I2C_Read... [22:49:21]Read from MH i2c: F0 [22:49:21]MH_I2C_Read... [22:49:21]Read from MH i2c: F0 09 00 [22:49:21]MH_I2C_Read... [22:49:21]Read from MH i2c: F0 09 00 DB 88 00 79 1C A8 66 90 0F 3E 66 41 [22:49:21]GetLastDocTimeStamp 1722293290 [22:49:21]current date 1722293369 [22:49:21]FM_GetShiftState [22:49:21]SAM_PROTO_GetShiftState [22:49:21]wFMCommunicate request_size=4 [22:49:21]MH_SAM_APDU [22:49:21]CAPDU: 80 13 01 00 [22:49:21]Write to MH i2c: E2 08 00 DC 88 80 13 01 00 00 00 00 00 E1 [22:49:21]Write i2c OK [22:49:21]MH_I2C_Read... [22:49:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:21]Read from MH i2c: E2 [22:49:21]MH_I2C_Read... [22:49:21]Read from MH i2c: E2 0E 00 [22:49:21]MH_I2C_Read... [22:49:21]Read from MH i2c: E2 0E 00 DC 88 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 0F [22:49:21]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:49:21]wFMCommunicate OK [22:49:21]SAM_PROTO_GetShiftState done [22:49:21]FM_GetShiftState done [22:49:21]opened in 1722211641 [22:49:21]opened+sec_in_day 1722298041 [22:49:21]quantity*price = 300075 [22:49:21]sum+1 = 300077 [22:49:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 314 29.07.2024 22:49 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118938 ФПД: 124923801168081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T224929&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118938&fm=124923801168081&tin=02508201610067®Number=0000000000092660&sum=300000 [22:49:23]StoreToDocumentArchive [22:49:23]shift 434 fd 118938 [22:49:23]save to /storage/0434/doc_00118938 [22:49:23]save last doc name /storage/0434/doc_00118938 to /storage/kkm_last_doc_name [22:49:23]save OK [22:49:23]Clear old archive folders... [22:49:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:49:23]tlvbuf is 01F69F30 [22:49:23]SAM_PROTO_ClearQueue [22:49:23]wFMCommunicate request_size=4 [22:49:23]MH_SAM_APDU [22:49:23]CAPDU: 80 09 00 00 [22:49:23]Write to MH i2c: E2 08 00 E9 88 80 09 00 00 00 00 00 00 E3 [22:49:23]Write i2c OK [22:49:23]MH_I2C_Read... [22:49:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:49:23]Read from MH i2c: E2 [22:49:23]MH_I2C_Read... [22:49:23]Read from MH i2c: E2 03 00 [22:49:23]MH_I2C_Read... [22:49:23]Read from MH i2c: E2 03 00 E9 88 00 90 00 E5 [22:49:23]RAPDU: 90 00 [22:49:23]wFMCommunicate OK [22:49:23]SAM_PROTO_ClearQueue done [22:49:23]KKMCreateOFDPacket [22:49:23]OFDProtocolAddRootSTLVToBuf [22:49:23]FM_MakeSignedData [22:49:23]FM_MakeSignedData [22:49:23]SAM_PROTO_SignData [22:49:23]wFMCommunicate request_size=4 [22:49:23]MH_SAM_APDU [22:49:23]CAPDU: 80 0D 01 02 [22:49:23]Write to MH i2c: E2 08 00 EA 88 80 0D 01 02 00 00 00 00 EB [22:49:23]Write i2c OK [22:49:23]MH_I2C_Read... [22:49:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:49:23]Read from MH i2c: E2 [22:49:23]MH_I2C_Read... [22:49:23]Read from MH i2c: E2 03 00 [22:49:23]MH_I2C_Read... [22:49:23]Read from MH i2c: E2 03 00 EA 88 00 90 00 E6 [22:49:23]RAPDU: 90 00 [22:49:23]wFMCommunicate OK [22:49:23]wFMCommunicate request_size=255 [22:49:23]MH_SAM_APDU [22:49:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 79 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9A D0 01 00 35 04 06 00 71 9E 16 CA [22:49:23]Write to MH i2c: E2 02 01 EB 88 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 79 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9A D0 01 00 35 04 06 00 71 9E 16 CA 00 00 9D [22:49:23]Write i2c OK [22:49:23]MH_I2C_Read... [22:49:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:23]Read from MH i2c: E2 [22:49:23]MH_I2C_Read... [22:49:23]Read from MH i2c: E2 03 00 [22:49:23]MH_I2C_Read... [22:49:23]Read from MH i2c: E2 03 00 EB 88 00 90 00 E7 [22:49:23]RAPDU: 90 00 [22:49:23]wFMCommunicate OK [22:49:23]wFMCommunicate request_size=7 [22:49:23]MH_SAM_APDU [22:49:23]CAPDU: 80 0D 02 02 02 E8 D1 [22:49:23]Write to MH i2c: E2 0A 00 EC 88 80 0D 02 02 02 00 E8 D1 00 00 AB [22:49:23]Write i2c OK [22:49:23]MH_I2C_Read... [22:49:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:23]Read from MH i2c: E2 [22:49:23]MH_I2C_Read... [22:49:23]Read from MH i2c: E2 03 00 [22:49:23]MH_I2C_Read... [22:49:23]Read from MH i2c: E2 03 00 EC 88 00 90 00 E8 [22:49:23]RAPDU: 90 00 [22:49:23]wFMCommunicate OK [22:49:23]wFMCommunicate request_size=4 [22:49:23]MH_SAM_APDU [22:49:23]CAPDU: 80 0D 03 02 [22:49:23]Write to MH i2c: E2 08 00 ED 88 80 0D 03 02 00 00 00 00 F0 [22:49:23]Write i2c OK [22:49:23]MH_I2C_Read... [22:49:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:49:23]Read from MH i2c: E2 [22:49:23]MH_I2C_Read... [22:49:23]Read from MH i2c: E2 0B 00 [22:49:23]MH_I2C_Read... [22:49:23]Read from MH i2c: E2 0B 00 ED 88 00 8F 40 FB FB 29 70 85 C8 90 00 9C [22:49:23]RAPDU: 8F 40 FB FB 29 70 85 C8 90 00 [22:49:23]wFMCommunicate OK [22:49:23]SAM_PROTO_SignData done [22:49:23]FM_MakeSignedData done [22:49:23]CreateOFDProtocolMessage [22:49:23]wFMCommunicate request_size=4 [22:49:23]MH_SAM_APDU [22:49:23]CAPDU: 80 11 00 00 [22:49:23]Write to MH i2c: E2 08 00 EE 88 80 11 00 00 00 00 00 00 F0 [22:49:23]Write i2c OK [22:49:23]MH_I2C_Read... [22:49:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:23]Read from MH i2c: E2 [22:49:23]MH_I2C_Read... [22:49:23]Read from MH i2c: E2 17 00 [22:49:23]MH_I2C_Read... [22:49:23]Read from MH i2c: E2 17 00 EE 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4B [22:49:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:49:23]wFMCommunicate OK [22:49:23]CreateOFDProtocolMessage done [22:49:23]OFDSenderStorePacket 118938 [22:49:23]StoreOFDPacket docnum=118938 [22:49:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 74 5B 04 01 24 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 79 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9A D0 01 00 35 04 06 00 71 9E 16 CA E8 D1 8F 40 FB FB 29 70 85 C8 [22:49:23]CheckFolder [22:49:23]dirname=/storage/ofd_packets [22:49:23]CheckFolder done [22:49:23]ProducePacketName [22:49:23]name=ofd_packets/00118938 [22:49:23]NVStorageSaveData ofd_packets/00118938 [22:49:23]File name is /storage/ofd_packets/00118938 [22:49:23]Write 298 bytes [22:49:23]NVStorageSaveData done [22:49:23]OFDSenderStorePacket done [22:49:23]KKMCreateOFDPacket done [22:49:23]NVStorageSaveData kkm_last_timestamp [22:49:23]File name is /storage/kkm_last_timestamp [22:49:23]Write 4 bytes [22:49:23]NVStorageSaveData done [22:49:23]ExternCall_PrintAddStr [22:49:23]wPrintStart [22:49:23]Write to MH i2c: 01 00 00 EF 88 77 [22:49:23]Write i2c OK [22:49:23]MH_I2C_Read... [22:49:23]Read from MH i2c: 01 [22:49:23]MH_I2C_Read... [22:49:23]Read from MH i2c: 01 07 00 [22:49:23]MH_I2C_Read... [22:49:23]Read from MH i2c: 01 07 00 EF 88 00 00 00 00 00 FF 0F 8C [22:49:23]RasterBufferAndPrint [22:49:23]line Счет N : (1)949855 [22:49:23]line ИНН: 02508201610067 [22:49:23]line Контрольно-Кассовый Чек [22:49:23]line ПРОДАЖА [22:49:23]line ТРК (МРК, ГНК) : 21 [22:49:23]line Товар: 2710194800 [22:49:23]line ДТ-К-5 [22:49:23]line 39.380 * 76.20 [22:49:23]line = 3000.76 [22:49:23]line НДС 12% НСП 1% [22:49:23]line > о реализуемом товаре [22:49:23]line ОКРУГЛЕНИЕ: -0.76 [22:49:23]line ИТОГО: 3000.00 [22:49:23]line НСП 1% : 26.55 [22:49:23]line НДС 12% : 318.66 [22:49:23]line Наличными: 0.00 [22:49:23]line Безнал.: 3000.00 [22:49:23]line Место: АЗС № 134 "Партнер Нефть" [22:49:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:49:23]line СНО: Общий режим [22:49:23]line Чек 314 29.07.2024 22:49 [22:49:23]line Смена: 434 ФФД: 1.0 [22:49:23]line ЗНМ: 0300000044 [22:49:23]line РНМ: 0000000000092660 [22:49:23]line Версия ККМ: 001 [22:49:23]line Платежная система: O! деньги [22:49:23]line ФМ: 0000000000874939 [22:49:23]line ФД: 118938 [22:49:23]line ФПД: 124923801168081 [22:49:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T224929&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118938&fm=124923801168081&tin=02508201610067®Number=0000000000092660&sum=300000 [22:49:23]OFD Sender: Processing packet 118938 [packets to send 86, broken 85] [22:49:23]ProducePacketName [22:49:23]name=ofd_packets/00118938 [22:49:23]OFD Sender: To server: pG, [22:49:23]CommunicateWithHost lk.salyk.kg:30040 [22:49:23]ConnectInit lk.salyk.kg [22:49:23]written 0, free lines is 4095 [22:49:23]Connected sock=10 [22:49:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 74 5B 04 01 24 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 79 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9A D0 01 00 35 04 06 00 71 9E 16 CA E8 D1 8F 40 FB FB 29 70 85 C8 [22:49:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 99 A2 47 00 BF 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 34 39 33 39 10 04 04 00 9A D0 01 00 F4 03 04 00 06 CA A7 66 B6 04 01 00 00 AA B7 D7 59 E8 C9 04 E0 [22:49:24]CommunicateWithHost err = 0 [22:49:24]CheckOFDResponse [22:49:24]1017 (14) - 77093643461234 [22:49:24]1041 (16) - 0000000000874939 [22:49:24]1040 (4) - 118938 [22:49:24]1012 (4) - 29.07.2024 16:57 [22:49:24]1206 (1) - 0 [22:49:24]OFD Sender: Remove packet 118938 [22:49:24]ProducePacketName [22:49:24]name=ofd_packets/00118938 [22:49:24]NVStorageDeleteData [22:49:24]Write to MH i2c: 01 00 00 19 89 A2 [22:49:24]Write i2c OK [22:49:24]MH_I2C_Read... [22:49:24]Read from MH i2c: 01 [22:49:24]MH_I2C_Read... [22:49:24]Read from MH i2c: 01 07 00 [22:49:24]MH_I2C_Read... [22:49:24]Read from MH i2c: 01 07 00 19 89 00 00 00 00 00 ED 0C A2 [22:49:24]RasterBufferAndPrint [22:49:24]line [22:49:24]line [22:49:24]line [22:49:24]line [22:49:24]line [22:49:24]written 0, free lines is 3316 [22:49:24]MH_Cut [22:49:24]Write to MH i2c: D1 01 00 20 89 01 7B [22:49:24]Write i2c OK [22:49:24]MH_I2C_Read... [22:49:24]Read from MH i2c: D1 [22:49:24]MH_I2C_Read... [22:49:24]Read from MH i2c: D1 01 00 [22:49:24]MH_I2C_Read... [22:49:24]Read from MH i2c: D1 01 00 20 89 00 7A [22:49:24]Write to MH i2c: 01 00 00 21 89 AA [22:49:24]Write i2c OK [22:49:24]MH_I2C_Read... [22:49:24]OFD Sender: No OFD packet to send [22:49:25]*** Cut start [22:49:25]*** Partial cut [22:49:25]*** CUTSNS_PIN = 1 [22:49:25]*** CUTSNS_PIN = 0 [22:49:25]*** Brake cut motor [22:49:25]Read from MH i2c: 01 [22:49:25]MH_I2C_Read... [22:49:25]*** Stop cut motor [22:49:25]*** Cut end [22:49:25]Read from MH i2c: 01 07 00 [22:49:25]MH_I2C_Read... [22:49:25]Read from MH i2c: 01 07 00 21 89 00 00 00 00 00 FF 0F BF [22:49:25]process_action close_receipt done [22:49:25]requested_data is exist [22:49:25]produce_requested_data [22:49:25]requested_item fm.sn is exist - process it [22:49:25]wFMCommunicate request_size=4 [22:49:25]MH_SAM_APDU [22:49:25]CAPDU: 80 11 00 00 [22:49:25]Write to MH i2c: E2 08 00 22 89 80 11 00 00 00 00 00 00 25 [22:49:25]Write i2c OK [22:49:25]MH_I2C_Read... [22:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:25]Read from MH i2c: E2 [22:49:25]MH_I2C_Read... [22:49:25]Read from MH i2c: E2 17 00 [22:49:25]MH_I2C_Read... [22:49:25]Read from MH i2c: E2 17 00 22 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 80 [22:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:49:25]wFMCommunicate OK [22:49:25]requested_item fd.num is exist - process it [22:49:25]SAM_PROTO_GetFieldsCounters [22:49:25]wFMCommunicate request_size=4 [22:49:25]MH_SAM_APDU [22:49:25]CAPDU: 80 13 00 00 [22:49:25]Write to MH i2c: E2 08 00 23 89 80 13 00 00 00 00 00 00 28 [22:49:25]Write i2c OK [22:49:25]MH_I2C_Read... [22:49:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:49:25]Read from MH i2c: E2 [22:49:25]MH_I2C_Read... [22:49:25]Read from MH i2c: E2 62 00 [22:49:25]MH_I2C_Read... [22:49:25]Read from MH i2c: E2 62 00 23 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9A D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 1E [22:49: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9A D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:49:25]wFMCommunicate OK [22:49:25]SAM_PROTO_GetFieldsCounters done [22:49:25]requested_item shift.num is exist - process it [22:49:25]requested_item shift.opened is exist - process it [22:49:25]req_shift_opened [22:49:25]FM_GetShiftState [22:49:25]SAM_PROTO_GetShiftState [22:49:25]wFMCommunicate request_size=4 [22:49:25]MH_SAM_APDU [22:49:25]CAPDU: 80 13 01 00 [22:49:25]Write to MH i2c: E2 08 00 24 89 80 13 01 00 00 00 00 00 2A [22:49:25]Write i2c OK [22:49:25]MH_I2C_Read... [22:49:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:25]Read from MH i2c: E2 [22:49:25]MH_I2C_Read... [22:49:25]Read from MH i2c: E2 0E 00 [22:49:25]MH_I2C_Read... [22:49:25]Read from MH i2c: E2 0E 00 24 89 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 58 [22:49:25]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:49:25]wFMCommunicate OK [22:49:25]SAM_PROTO_GetShiftState done [22:49:25]FM_GetShiftState done [22:49:25]req_shift_opened done [22:49:25]requested_item shift.open_date is exist - process it [22:49:25]req_shift_open_date [22:49:25]req_shift_open_date done [22:49:25]produce_requested_data done [22:49:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118938,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [22:49:25]process_action_free close_receipt [22:49:25]json_value_free [22:49:25]json_value_free done [22:49:25]process_json_proto returns [22:49:25]Send response to host [22:49:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118938,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [22:49:25]free response buf [22:49:25]execute_script done [22:49:25]execute_script returns [22:49:25]free content buf [22:49:25]Sock 7.Close socket [22:49:25]Sock 7.Thread stoped [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:15]accept exits with 9 [22:50:15]New connection [22:50:15]New thread 3067239780 created [22:50:15]Thread 3067383140 joined [22:50:15]Waiting for new connection... [22:50:15] Sock 9.Parse request [22:50:15]Sock 9.Check first char [22:50:15]Sock 9.First char is OK [22:50:15]request: POST /json_proto HTTP/1.0 [22:50:15]Method: POST [22:50:15]URL: /json_proto [22:50:15]Method is POST - this is cgi request [22:50:15]url: /json_proto [22:50:15]query_string will be loaded in cgi processing [22:50:15]execute_cgi json_proto POST (null) [22:50:15]execute_cgi path=json_proto method=POST [22:50:15]POST find Content-Length [22:50:15]Host: 172.17.45.7:8080 [22:50:15]Content-Length: 818 [22:50:15]Content-Type: application/json [22:50:15] [22:50:15]POST finish read [22:50:15]Found Content-Length = 818 [22:50:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:15]execute_script... [22:50:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:15]POST & json_proto [22:50:15]process_json_proto [22:50:15]json parsed OK: [22:50:15]protocol is kg_v1.0 [22:50:15]action value=close_receipt [22:50:15]process_action close_receipt [22:50:15]cmd_close_receipt [22:50:15]MH_GetDate [22:50:15]Write to MH i2c: F0 00 00 25 89 9D [22:50:15]Write i2c OK [22:50:15]MH_I2C_Read... [22:50:15]Read from MH i2c: F0 [22:50:15]MH_I2C_Read... [22:50:15]Read from MH i2c: F0 09 00 [22:50:15]MH_I2C_Read... [22:50:15]Read from MH i2c: F0 09 00 25 89 00 AF 1C A8 66 90 0F 3E 66 C2 [22:50:15]GetLastDocTimeStamp 1722293369 [22:50:15]current date 1722293423 [22:50:15]FM_GetShiftState [22:50:15]SAM_PROTO_GetShiftState [22:50:15]wFMCommunicate request_size=4 [22:50:15]MH_SAM_APDU [22:50:15]CAPDU: 80 13 01 00 [22:50:15]Write to MH i2c: E2 08 00 26 89 80 13 01 00 00 00 00 00 2C [22:50:15]Write i2c OK [22:50:15]MH_I2C_Read... [22:50:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:15]Read from MH i2c: E2 [22:50:15]MH_I2C_Read... [22:50:15]Read from MH i2c: E2 0E 00 [22:50:15]MH_I2C_Read... [22:50:15]Read from MH i2c: E2 0E 00 26 89 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 5A [22:50:15]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:50:15]wFMCommunicate OK [22:50:15]SAM_PROTO_GetShiftState done [22:50:15]FM_GetShiftState done [22:50:15]opened in 1722211641 [22:50:15]opened+sec_in_day 1722298041 [22:50:15]quantity*price = 30035 [22:50:15]sum+1 = 30036 [22:50:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 315 29.07.2024 22:50 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118939 ФПД: 273757387426874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T225023&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118939&fm=273757387426874&tin=02508201610067®Number=0000000000092660&sum=30000 [22:50:16]StoreToDocumentArchive [22:50:16]shift 434 fd 118939 [22:50:16]save to /storage/0434/doc_00118939 [22:50:16]save last doc name /storage/0434/doc_00118939 to /storage/kkm_last_doc_name [22:50:16]save OK [22:50:16]Clear old archive folders... [22:50:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:50:16]tlvbuf is 01E8A120 [22:50:16]SAM_PROTO_ClearQueue [22:50:16]wFMCommunicate request_size=4 [22:50:16]MH_SAM_APDU [22:50:16]CAPDU: 80 09 00 00 [22:50:16]Write to MH i2c: E2 08 00 33 89 80 09 00 00 00 00 00 00 2E [22:50:16]Write i2c OK [22:50:16]MH_I2C_Read... [22:50:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:16]Read from MH i2c: E2 [22:50:16]MH_I2C_Read... [22:50:16]Read from MH i2c: E2 03 00 [22:50:16]MH_I2C_Read... [22:50:16]Read from MH i2c: E2 03 00 33 89 00 90 00 30 [22:50:16]RAPDU: 90 00 [22:50:16]wFMCommunicate OK [22:50:16]SAM_PROTO_ClearQueue done [22:50:16]KKMCreateOFDPacket [22:50:16]OFDProtocolAddRootSTLVToBuf [22:50:16]FM_MakeSignedData [22:50:16]FM_MakeSignedData [22:50:16]SAM_PROTO_SignData [22:50:16]wFMCommunicate request_size=4 [22:50:16]MH_SAM_APDU [22:50:16]CAPDU: 80 0D 01 02 [22:50:16]Write to MH i2c: E2 08 00 34 89 80 0D 01 02 00 00 00 00 36 [22:50:16]Write i2c OK [22:50:16]MH_I2C_Read... [22:50:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:50:16]Read from MH i2c: E2 [22:50:16]MH_I2C_Read... [22:50:16]Read from MH i2c: E2 03 00 [22:50:16]MH_I2C_Read... [22:50:16]Read from MH i2c: E2 03 00 34 89 00 90 00 31 [22:50:16]RAPDU: 90 00 [22:50:16]wFMCommunicate OK [22:50:16]wFMCommunicate request_size=255 [22:50:16]MH_SAM_APDU [22:50:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 AF 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9B D0 01 00 35 04 06 00 F8 [22:50:16]Write to MH i2c: E2 02 01 35 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 AF 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9B D0 01 00 35 04 06 00 F8 00 00 05 [22:50:16]Write i2c OK [22:50:16]MH_I2C_Read... [22:50:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:17]Read from MH i2c: E2 [22:50:17]MH_I2C_Read... [22:50:17]Read from MH i2c: E2 03 00 [22:50:17]MH_I2C_Read... [22:50:17]Read from MH i2c: E2 03 00 35 89 00 90 00 32 [22:50:17]RAPDU: 90 00 [22:50:17]wFMCommunicate OK [22:50:17]wFMCommunicate request_size=10 [22:50:17]MH_SAM_APDU [22:50:17]CAPDU: 80 0D 02 02 05 FB 1B D5 0C 3A [22:50:17]Write to MH i2c: E2 0D 00 36 89 80 0D 02 02 05 00 FB 1B D5 0C 3A 00 00 74 [22:50:17]Write i2c OK [22:50:17]MH_I2C_Read... [22:50:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:17]Read from MH i2c: E2 [22:50:17]MH_I2C_Read... [22:50:17]Read from MH i2c: E2 03 00 [22:50:17]MH_I2C_Read... [22:50:17]Read from MH i2c: E2 03 00 36 89 00 90 00 33 [22:50:17]RAPDU: 90 00 [22:50:17]wFMCommunicate OK [22:50:17]wFMCommunicate request_size=4 [22:50:17]MH_SAM_APDU [22:50:17]CAPDU: 80 0D 03 02 [22:50:17]Write to MH i2c: E2 08 00 37 89 80 0D 03 02 00 00 00 00 3B [22:50:17]Write i2c OK [22:50:17]MH_I2C_Read... [22:50:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:50:17]Read from MH i2c: E2 [22:50:17]MH_I2C_Read... [22:50:17]Read from MH i2c: E2 0B 00 [22:50:17]MH_I2C_Read... [22:50:17]Read from MH i2c: E2 0B 00 37 89 00 07 DF 4D 2A EE 02 15 FF 90 00 9D [22:50:17]RAPDU: 07 DF 4D 2A EE 02 15 FF 90 00 [22:50:17]wFMCommunicate OK [22:50:17]SAM_PROTO_SignData done [22:50:17]FM_MakeSignedData done [22:50:17]CreateOFDProtocolMessage [22:50:17]wFMCommunicate request_size=4 [22:50:17]MH_SAM_APDU [22:50:17]CAPDU: 80 11 00 00 [22:50:17]Write to MH i2c: E2 08 00 38 89 80 11 00 00 00 00 00 00 3B [22:50:17]Write i2c OK [22:50:17]MH_I2C_Read... [22:50:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:17]Read from MH i2c: E2 [22:50:17]MH_I2C_Read... [22:50:17]Read from MH i2c: E2 17 00 [22:50:17]MH_I2C_Read... [22:50:17]Read from MH i2c: E2 17 00 38 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 96 [22:50:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:50:17]wFMCommunicate OK [22:50:17]CreateOFDProtocolMessage done [22:50:17]OFDSenderStorePacket 118939 [22:50:17]StoreOFDPacket docnum=118939 [22:50:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DE D5 07 01 A5 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 AF 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9B D0 01 00 35 04 06 00 F8 FB 1B D5 0C 3A 07 DF 4D 2A EE 02 15 FF [22:50:17]CheckFolder [22:50:17]dirname=/storage/ofd_packets [22:50:17]CheckFolder done [22:50:17]ProducePacketName [22:50:17]name=ofd_packets/00118939 [22:50:17]NVStorageSaveData ofd_packets/00118939 [22:50:17]File name is /storage/ofd_packets/00118939 [22:50:17]Write 301 bytes [22:50:17]NVStorageSaveData done [22:50:17]OFDSenderStorePacket done [22:50:17]KKMCreateOFDPacket done [22:50:17]NVStorageSaveData kkm_last_timestamp [22:50:17]File name is /storage/kkm_last_timestamp [22:50:17]Write 4 bytes [22:50:17]NVStorageSaveData done [22:50:17]ExternCall_PrintAddStr [22:50:17]wPrintStart [22:50:17]Write to MH i2c: 01 00 00 39 89 C2 [22:50:17]Write i2c OK [22:50:17]MH_I2C_Read... [22:50:17]Read from MH i2c: 01 [22:50:17]MH_I2C_Read... [22:50:17]Read from MH i2c: 01 07 00 [22:50:17]MH_I2C_Read... [22:50:17]Read from MH i2c: 01 07 00 39 89 00 00 00 00 00 FF 0F D7 [22:50:17]RasterBufferAndPrint [22:50:17]line Счет N : (1)949857 [22:50:17]line ИНН: 02508201610067 [22:50:17]line Контрольно-Кассовый Чек [22:50:17]line ПРОДАЖА [22:50:17]line ТРК (МРК, ГНК) : 61 [22:50:17]line Товар: 2710124130 [22:50:17]line Аи-92-К-4 [22:50:17]line 4.430 * 67.80 [22:50:17]line = 300.35 [22:50:17]line НДС 12% НСП 1% [22:50:17]line > о реализуемом товаре [22:50:17]line ОКРУГЛЕНИЕ: -0.35 [22:50:17]line ИТОГО: 300.00 [22:50:17]line НСП 1% : 2.66 [22:50:17]line НДС 12% : 31.90 [22:50:17]line Наличными: 0.00 [22:50:17]line Безнал.: 300.00 [22:50:17]line Место: АЗС № 134 "Партнер Нефть" [22:50:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:50:17]line СНО: Общий режим [22:50:17]line Чек 315 29.07.2024 22:50 [22:50:17]line Смена: 434 ФФД: 1.0 [22:50:17]line ЗНМ: 0300000044 [22:50:17]line РНМ: 0000000000092660 [22:50:17]line Версия ККМ: 001 [22:50:17]line Платежная система: O! деньги [22:50:17]line ФМ: 0000000000874939 [22:50:17]line ФД: 118939 [22:50:17]line ФПД: 273757387426874 [22:50:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T225023&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118939&fm=273757387426874&tin=02508201610067®Number=0000000000092660&sum=30000 [22:50:17]written 0, free lines is 4095 [22:50:17]OFD Sender: Processing packet 118939 [packets to send 86, broken 85] [22:50:17]ProducePacketName [22:50:17]name=ofd_packets/00118939 [22:50:17]OFD Sender: To server: pG, [22:50:17]CommunicateWithHost lk.salyk.kg:30040 [22:50:17]ConnectInit lk.salyk.kg [22:50:17]Connected sock=10 [22:50:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DE D5 07 01 A5 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 AF 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9B D0 01 00 35 04 06 00 F8 FB 1B D5 0C 3A 07 DF 4D 2A EE 02 15 FF [22:50:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CE A5 47 00 A9 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 34 39 33 39 10 04 04 00 9B D0 01 00 F4 03 04 00 3C CA A7 66 B6 04 01 00 00 ED 35 7F 2E 78 C6 B8 96 [22:50:17]CommunicateWithHost err = 0 [22:50:17]CheckOFDResponse [22:50:17]1017 (14) - 77093643461234 [22:50:17]1041 (16) - 0000000000874939 [22:50:17]1040 (4) - 118939 [22:50:17]1012 (4) - 29.07.2024 16:58 [22:50:17]1206 (1) - 0 [22:50:17]OFD Sender: Remove packet 118939 [22:50:17]ProducePacketName [22:50:17]name=ofd_packets/00118939 [22:50:17]NVStorageDeleteData [22:50:18]Write to MH i2c: 01 00 00 63 89 EC [22:50:18]Write i2c OK [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: 01 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: 01 07 00 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: 01 07 00 63 89 00 00 00 00 00 DC 0C DB [22:50:18]RasterBufferAndPrint [22:50:18]line [22:50:18]line [22:50:18]line [22:50:18]line [22:50:18]line [22:50:18]written 0, free lines is 3302 [22:50:18]MH_Cut [22:50:18]Write to MH i2c: D1 01 00 6A 89 01 C5 [22:50:18]Write i2c OK [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: D1 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: D1 01 00 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: D1 01 00 6A 89 00 C4 [22:50:18]Write to MH i2c: 01 00 00 6B 89 F4 [22:50:18]Write i2c OK [22:50:18]MH_I2C_Read... [22:50:18]OFD Sender: No OFD packet to send [22:50:18]*** Cut start [22:50:18]*** Partial cut [22:50:18]*** CUTSNS_PIN = 1 [22:50:18]*** CUTSNS_PIN = 0 [22:50:19]*** Brake cut motor [22:50:19]Read from MH i2c: 01 [22:50:19]MH_I2C_Read... [22:50:19]*** Stop cut motor [22:50:19]*** Cut end [22:50:19]Read from MH i2c: 01 07 00 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: 01 07 00 6B 89 00 00 00 00 00 FF 0F 09 [22:50:19]process_action close_receipt done [22:50:19]requested_data is exist [22:50:19]produce_requested_data [22:50:19]requested_item fm.sn is exist - process it [22:50:19]wFMCommunicate request_size=4 [22:50:19]MH_SAM_APDU [22:50:19]CAPDU: 80 11 00 00 [22:50:19]Write to MH i2c: E2 08 00 6C 89 80 11 00 00 00 00 00 00 6F [22:50:19]Write i2c OK [22:50:19]MH_I2C_Read... [22:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:19]Read from MH i2c: E2 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: E2 17 00 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: E2 17 00 6C 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CA [22:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:50:19]wFMCommunicate OK [22:50:19]requested_item fd.num is exist - process it [22:50:19]SAM_PROTO_GetFieldsCounters [22:50:19]wFMCommunicate request_size=4 [22:50:19]MH_SAM_APDU [22:50:19]CAPDU: 80 13 00 00 [22:50:19]Write to MH i2c: E2 08 00 6D 89 80 13 00 00 00 00 00 00 72 [22:50:19]Write i2c OK [22:50:19]MH_I2C_Read... [22:50:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:50:19]Read from MH i2c: E2 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: E2 62 00 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: E2 62 00 6D 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9B D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 6C [22:50:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9B D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:50:19]wFMCommunicate OK [22:50:19]SAM_PROTO_GetFieldsCounters done [22:50:19]requested_item shift.num is exist - process it [22:50:19]requested_item shift.opened is exist - process it [22:50:19]req_shift_opened [22:50:19]FM_GetShiftState [22:50:19]SAM_PROTO_GetShiftState [22:50:19]wFMCommunicate request_size=4 [22:50:19]MH_SAM_APDU [22:50:19]CAPDU: 80 13 01 00 [22:50:19]Write to MH i2c: E2 08 00 6E 89 80 13 01 00 00 00 00 00 74 [22:50:19]Write i2c OK [22:50:19]MH_I2C_Read... [22:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:19]Read from MH i2c: E2 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: E2 0E 00 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: E2 0E 00 6E 89 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A2 [22:50:19]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:50:19]wFMCommunicate OK [22:50:19]SAM_PROTO_GetShiftState done [22:50:19]FM_GetShiftState done [22:50:19]req_shift_opened done [22:50:19]requested_item shift.open_date is exist - process it [22:50:19]req_shift_open_date [22:50:19]req_shift_open_date done [22:50:19]produce_requested_data done [22:50:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118939,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [22:50:19]process_action_free close_receipt [22:50:19]json_value_free [22:50:19]json_value_free done [22:50:19]process_json_proto returns [22:50:19]Send response to host [22:50:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118939,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [22:50:19]free response buf [22:50:19]execute_script done [22:50:19]execute_script returns [22:50:19]free content buf [22:50:19]Sock 9.Close socket [22:50:19]Sock 9.Thread stoped [22:50:20]accept exits with 7 [22:50:20]New connection [22:50:20]New thread 3067383140 created [22:50:20]Thread 3067239780 joined [22:50:20]Waiting for new connection... [22:50:20] Sock 7.Parse request [22:50:20]Sock 7.Check first char [22:50:20]Sock 7.First char is OK [22:50:20]request: POST /json_proto HTTP/1.0 [22:50:20]Method: POST [22:50:20]URL: /json_proto [22:50:20]Method is POST - this is cgi request [22:50:20]url: /json_proto [22:50:20]query_string will be loaded in cgi processing [22:50:20]execute_cgi json_proto POST (null) [22:50:20]execute_cgi path=json_proto method=POST [22:50:20]POST find Content-Length [22:50:20]Host: 172.17.45.7:8080 [22:50:20]Content-Length: 677 [22:50:20]Content-Type: application/json [22:50:20] [22:50:20]POST finish read [22:50:20]Found Content-Length = 677 [22:50:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:20]execute_script... [22:50:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:20]POST & json_proto [22:50:20]process_json_proto [22:50:20]json parsed OK: [22:50:20]protocol is kg_v1.0 [22:50:20]action value=close_receipt [22:50:20]process_action close_receipt [22:50:20]cmd_close_receipt [22:50:20]MH_GetDate [22:50:20]Write to MH i2c: F0 00 00 6F 89 E7 [22:50:20]Write i2c OK [22:50:20]MH_I2C_Read... [22:50:20]Read from MH i2c: F0 [22:50:20]MH_I2C_Read... [22:50:20]Read from MH i2c: F0 09 00 [22:50:20]MH_I2C_Read... [22:50:20]Read from MH i2c: F0 09 00 6F 89 00 B3 1C A8 66 90 0F 3E 66 10 [22:50:20]GetLastDocTimeStamp 1722293423 [22:50:20]current date 1722293427 [22:50:20]FM_GetShiftState [22:50:20]SAM_PROTO_GetShiftState [22:50:20]wFMCommunicate request_size=4 [22:50:20]MH_SAM_APDU [22:50:20]CAPDU: 80 13 01 00 [22:50:20]Write to MH i2c: E2 08 00 70 89 80 13 01 00 00 00 00 00 76 [22:50:20]Write i2c OK [22:50:20]MH_I2C_Read... [22:50:20]Read from MH i2c: E2 [22:50:20]MH_I2C_Read... [22:50:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:20]Read from MH i2c: E2 0E 00 [22:50:20]MH_I2C_Read... [22:50:20]Read from MH i2c: E2 0E 00 70 89 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A4 [22:50:20]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:50:20]wFMCommunicate OK [22:50:20]SAM_PROTO_GetShiftState done [22:50:20]FM_GetShiftState done [22:50:20]opened in 1722211641 [22:50:20]opened+sec_in_day 1722298041 [22:50:20]quantity*price = 50036 [22:50:20]sum+1 = 50037 [22:50:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 316 29.07.2024 22:50 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118940 ФПД: 128972182386060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T225027&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118940&fm=128972182386060&tin=02508201610067®Number=0000000000092660&sum=50000 [22:50:21]StoreToDocumentArchive [22:50:21]shift 434 fd 118940 [22:50:21]save to /storage/0434/doc_00118940 [22:50:21]save last doc name /storage/0434/doc_00118940 to /storage/kkm_last_doc_name [22:50:21]save OK [22:50:21]Clear old archive folders... [22:50:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:50:21]tlvbuf is 01E59040 [22:50:21]SAM_PROTO_ClearQueue [22:50:21]wFMCommunicate request_size=4 [22:50:21]MH_SAM_APDU [22:50:21]CAPDU: 80 09 00 00 [22:50:21]Write to MH i2c: E2 08 00 7D 89 80 09 00 00 00 00 00 00 78 [22:50:21]Write i2c OK [22:50:21]MH_I2C_Read... [22:50:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:21]Read from MH i2c: E2 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: E2 03 00 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: E2 03 00 7D 89 00 90 00 7A [22:50:21]RAPDU: 90 00 [22:50:21]wFMCommunicate OK [22:50:21]SAM_PROTO_ClearQueue done [22:50:21]KKMCreateOFDPacket [22:50:21]OFDProtocolAddRootSTLVToBuf [22:50:21]FM_MakeSignedData [22:50:21]FM_MakeSignedData [22:50:21]SAM_PROTO_SignData [22:50:21]wFMCommunicate request_size=4 [22:50:21]MH_SAM_APDU [22:50:21]CAPDU: 80 0D 01 02 [22:50:21]Write to MH i2c: E2 08 00 7E 89 80 0D 01 02 00 00 00 00 80 [22:50:21]Write i2c OK [22:50:21]MH_I2C_Read... [22:50:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:50:21]Read from MH i2c: E2 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: E2 03 00 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: E2 03 00 7E 89 00 90 00 7B [22:50:21]RAPDU: 90 00 [22:50:21]wFMCommunicate OK [22:50:21]wFMCommunicate request_size=255 [22:50:21]MH_SAM_APDU [22:50:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 B3 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9C D0 01 00 35 04 06 00 75 [22:50:21]Write to MH i2c: E2 02 01 7F 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 B3 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9C D0 01 00 35 04 06 00 75 00 00 B3 [22:50:21]Write i2c OK [22:50:21]MH_I2C_Read... [22:50:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:22]Read from MH i2c: E2 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: E2 03 00 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: E2 03 00 7F 89 00 90 00 7C [22:50:22]RAPDU: 90 00 [22:50:22]wFMCommunicate OK [22:50:22]wFMCommunicate request_size=10 [22:50:22]MH_SAM_APDU [22:50:22]CAPDU: 80 0D 02 02 05 4C AD 1D F5 8C [22:50:22]Write to MH i2c: E2 0D 00 80 89 80 0D 02 02 05 00 4C AD 1D F5 8C 00 00 24 [22:50:22]Write i2c OK [22:50:22]MH_I2C_Read... [22:50:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:22]Read from MH i2c: E2 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: E2 03 00 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: E2 03 00 80 89 00 90 00 7D [22:50:22]RAPDU: 90 00 [22:50:22]wFMCommunicate OK [22:50:22]wFMCommunicate request_size=4 [22:50:22]MH_SAM_APDU [22:50:22]CAPDU: 80 0D 03 02 [22:50:22]Write to MH i2c: E2 08 00 81 89 80 0D 03 02 00 00 00 00 85 [22:50:22]Write i2c OK [22:50:22]MH_I2C_Read... [22:50:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:50:22]Read from MH i2c: E2 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: E2 0B 00 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: E2 0B 00 81 89 00 E1 D2 33 AE BB E6 AC E9 90 00 50 [22:50:22]RAPDU: E1 D2 33 AE BB E6 AC E9 90 00 [22:50:22]wFMCommunicate OK [22:50:22]SAM_PROTO_SignData done [22:50:22]FM_MakeSignedData done [22:50:22]CreateOFDProtocolMessage [22:50:22]wFMCommunicate request_size=4 [22:50:22]MH_SAM_APDU [22:50:22]CAPDU: 80 11 00 00 [22:50:22]Write to MH i2c: E2 08 00 82 89 80 11 00 00 00 00 00 00 85 [22:50:22]Write i2c OK [22:50:22]MH_I2C_Read... [22:50:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:22]Read from MH i2c: E2 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: E2 17 00 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: E2 17 00 82 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E0 [22:50:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:50:22]wFMCommunicate OK [22:50:22]CreateOFDProtocolMessage done [22:50:22]OFDSenderStorePacket 118940 [22:50:22]StoreOFDPacket docnum=118940 [22:50:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 77 0D 07 01 BE BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 B3 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9C D0 01 00 35 04 06 00 75 4C AD 1D F5 8C E1 D2 33 AE BB E6 AC E9 [22:50:22]CheckFolder [22:50:22]dirname=/storage/ofd_packets [22:50:22]CheckFolder done [22:50:22]ProducePacketName [22:50:22]name=ofd_packets/00118940 [22:50:22]NVStorageSaveData ofd_packets/00118940 [22:50:22]File name is /storage/ofd_packets/00118940 [22:50:22]Write 301 bytes [22:50:22]NVStorageSaveData done [22:50:22]OFDSenderStorePacket done [22:50:22]KKMCreateOFDPacket done [22:50:22]NVStorageSaveData kkm_last_timestamp [22:50:22]File name is /storage/kkm_last_timestamp [22:50:22]Write 4 bytes [22:50:22]NVStorageSaveData done [22:50:22]ExternCall_PrintAddStr [22:50:22]wPrintStart [22:50:22]Write to MH i2c: 01 00 00 83 89 0C [22:50:22]Write i2c OK [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: 01 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: 01 07 00 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: 01 07 00 83 89 00 00 00 00 00 FF 0F 21 [22:50:22]RasterBufferAndPrint [22:50:22]line Счет N : (1)949858 [22:50:22]line ИНН: 02508201610067 [22:50:22]line Контрольно-Кассовый Чек [22:50:22]line ПРОДАЖА [22:50:22]line ТРК (МРК, ГНК) : 61 [22:50:22]line Товар: 2710124130 [22:50:22]line Аи-92-К-4 [22:50:22]line 7.380 * 67.80 [22:50:22]line = 500.36 [22:50:22]line НДС 12% НСП 1% [22:50:22]line > о реализуемом товаре [22:50:22]line ОКРУГЛЕНИЕ: -0.36 [22:50:22]line ИТОГО: 500.00 [22:50:22]line Внесено: 500.00 [22:50:22]line СДАЧА: 0.00 [22:50:22]line НСП 1% : 4.43 [22:50:22]line НДС 12% : 53.14 [22:50:22]line Наличными: 500.00 [22:50:22]line Безнал.: 0.00 [22:50:22]line Место: АЗС № 134 "Партнер Нефть" [22:50:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:50:22]line СНО: Общий режим [22:50:22]line Чек 316 29.07.2024 22:50 [22:50:22]line Смена: 434 ФФД: 1.0 [22:50:22]line ЗНМ: 0300000044 [22:50:22]line РНМ: 0000000000092660 [22:50:22]line Версия ККМ: 001 [22:50:22]line ФМ: 0000000000874939 [22:50:22]line ФД: 118940 [22:50:22]line ФПД: 128972182386060 [22:50:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T225027&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118940&fm=128972182386060&tin=02508201610067®Number=0000000000092660&sum=50000 [22:50:22]OFD Sender: Processing packet 118940 [packets to send 86, broken 85] [22:50:22]ProducePacketName [22:50:22]name=ofd_packets/00118940 [22:50:22]OFD Sender: To server: pG, [22:50:22]CommunicateWithHost lk.salyk.kg:30040 [22:50:22]ConnectInit lk.salyk.kg [22:50:22]written 0, free lines is 4095 [22:50:22]Connected sock=10 [22:50:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 77 0D 07 01 BE BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 B3 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9C D0 01 00 35 04 06 00 75 4C AD 1D F5 8C E1 D2 33 AE BB E6 AC E9 [22:50:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 37 F3 47 00 AD 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9C D0 01 00 F4 03 04 00 40 CA A7 66 B6 04 01 00 00 1E 9A 39 8A E4 26 C7 5A [22:50:22]CommunicateWithHost err = 0 [22:50:22]CheckOFDResponse [22:50:22]1017 (14) - 77093643461234 [22:50:22]1041 (16) - 0000000000874939 [22:50:22]1040 (4) - 118940 [22:50:22]1012 (4) - 29.07.2024 16:58 [22:50:22]1206 (1) - 0 [22:50:22]OFD Sender: Remove packet 118940 [22:50:22]ProducePacketName [22:50:22]name=ofd_packets/00118940 [22:50:22]NVStorageDeleteData [22:50:22]Write to MH i2c: 01 00 00 AD 89 36 [22:50:22]Write i2c OK [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: 01 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: 01 07 00 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: 01 07 00 AD 89 00 00 00 00 00 E7 0C 30 [22:50:22]RasterBufferAndPrint [22:50:22]line [22:50:22]line [22:50:22]line [22:50:22]line [22:50:22]line [22:50:22]written 0, free lines is 3315 [22:50:22]MH_Cut [22:50:22]Write to MH i2c: D1 01 00 B4 89 01 0F [22:50:22]Write i2c OK [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: D1 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: D1 01 00 [22:50:22]MH_I2C_Read... [22:50:22]Read from MH i2c: D1 01 00 B4 89 00 0E [22:50:22]Write to MH i2c: 01 00 00 B5 89 3E [22:50:22]Write i2c OK [22:50:22]MH_I2C_Read... [22:50:23]OFD Sender: No OFD packet to send [22:50:23]*** Cut start [22:50:23]*** Partial cut [22:50:23]*** CUTSNS_PIN = 1 [22:50:23]*** CUTSNS_PIN = 0 [22:50:23]*** Brake cut motor [22:50:23]Read from MH i2c: 01 [22:50:23]MH_I2C_Read... [22:50:23]*** Stop cut motor [22:50:23]*** Cut end [22:50:23]Read from MH i2c: 01 07 00 [22:50:23]MH_I2C_Read... [22:50:23]Read from MH i2c: 01 07 00 B5 89 00 00 00 00 00 FF 0F 53 [22:50:23]process_action close_receipt done [22:50:23]requested_data is exist [22:50:23]produce_requested_data [22:50:23]requested_item fm.sn is exist - process it [22:50:23]wFMCommunicate request_size=4 [22:50:23]MH_SAM_APDU [22:50:23]CAPDU: 80 11 00 00 [22:50:23]Write to MH i2c: E2 08 00 B6 89 80 11 00 00 00 00 00 00 B9 [22:50:24]Write i2c OK [22:50:24]MH_I2C_Read... [22:50:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:24]Read from MH i2c: E2 [22:50:24]MH_I2C_Read... [22:50:24]Read from MH i2c: E2 17 00 [22:50:24]MH_I2C_Read... [22:50:24]Read from MH i2c: E2 17 00 B6 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 14 [22:50:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:50:24]wFMCommunicate OK [22:50:24]requested_item fd.num is exist - process it [22:50:24]SAM_PROTO_GetFieldsCounters [22:50:24]wFMCommunicate request_size=4 [22:50:24]MH_SAM_APDU [22:50:24]CAPDU: 80 13 00 00 [22:50:24]Write to MH i2c: E2 08 00 B7 89 80 13 00 00 00 00 00 00 BC [22:50:24]Write i2c OK [22:50:24]MH_I2C_Read... [22:50:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:50:24]Read from MH i2c: E2 [22:50:24]MH_I2C_Read... [22:50:24]Read from MH i2c: E2 62 00 [22:50:24]MH_I2C_Read... [22:50:24]Read from MH i2c: E2 62 00 B7 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9C D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 BA [22:50: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9C D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:50:24]wFMCommunicate OK [22:50:24]SAM_PROTO_GetFieldsCounters done [22:50:24]requested_item shift.num is exist - process it [22:50:24]requested_item shift.opened is exist - process it [22:50:24]req_shift_opened [22:50:24]FM_GetShiftState [22:50:24]SAM_PROTO_GetShiftState [22:50:24]wFMCommunicate request_size=4 [22:50:24]MH_SAM_APDU [22:50:24]CAPDU: 80 13 01 00 [22:50:24]Write to MH i2c: E2 08 00 B8 89 80 13 01 00 00 00 00 00 BE [22:50:24]Write i2c OK [22:50:24]MH_I2C_Read... [22:50:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:24]Read from MH i2c: E2 [22:50:24]MH_I2C_Read... [22:50:24]Read from MH i2c: E2 0E 00 [22:50:24]MH_I2C_Read... [22:50:24]Read from MH i2c: E2 0E 00 B8 89 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 EC [22:50:24]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:50:24]wFMCommunicate OK [22:50:24]SAM_PROTO_GetShiftState done [22:50:24]FM_GetShiftState done [22:50:24]req_shift_opened done [22:50:24]requested_item shift.open_date is exist - process it [22:50:24]req_shift_open_date [22:50:24]req_shift_open_date done [22:50:24]produce_requested_data done [22:50:24]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118940,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [22:50:24]process_action_free close_receipt [22:50:24]json_value_free [22:50:24]json_value_free done [22:50:24]process_json_proto returns [22:50:24]Send response to host [22:50:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118940,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [22:50:24]free response buf [22:50:24]execute_script done [22:50:24]execute_script returns [22:50:24]free content buf [22:50:24]Sock 7.Close socket [22:50:24]Sock 7.Thread stoped [22:50:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:53]OFD Sender: No OFD packet to send [22:50:58]OFD Sender: No OFD packet to send [22:51:03]OFD Sender: No OFD packet to send [22:51:08]OFD Sender: No OFD packet to send [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:33]OFD Sender: No OFD packet to send [22:51:38]OFD Sender: No OFD packet to send [22:51:43]OFD Sender: No OFD packet to send [22:51:48]OFD Sender: No OFD packet to send [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]OFD Sender: No OFD packet to send [22:52:06]accept exits with 9 [22:52:06]New connection [22:52:06]New thread 3067239780 created [22:52:06]Thread 3067383140 joined [22:52:06]Waiting for new connection... [22:52:06] Sock 9.Parse request [22:52:06]Sock 9.Check first char [22:52:06]Sock 9.First char is OK [22:52:06]request: POST /json_proto HTTP/1.0 [22:52:06]Method: POST [22:52:06]URL: /json_proto [22:52:06]Method is POST - this is cgi request [22:52:06]url: /json_proto [22:52:06]query_string will be loaded in cgi processing [22:52:06]execute_cgi json_proto POST (null) [22:52:06]execute_cgi path=json_proto method=POST [22:52:06]POST find Content-Length [22:52:06]Host: 172.17.45.7:8080 [22:52:06]Content-Length: 682 [22:52:06]Content-Type: application/json [22:52:06] [22:52:06]POST finish read [22:52:06]Found Content-Length = 682 [22:52:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:52:06]execute_script... [22:52:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:52:06]POST & json_proto [22:52:06]process_json_proto [22:52:06]json parsed OK: [22:52:06]protocol is kg_v1.0 [22:52:06]action value=close_receipt [22:52:06]process_action close_receipt [22:52:06]cmd_close_receipt [22:52:06]MH_GetDate [22:52:06]Write to MH i2c: F0 00 00 B9 89 31 [22:52:06]Write i2c OK [22:52:06]MH_I2C_Read... [22:52:06]Read from MH i2c: F0 [22:52:06]MH_I2C_Read... [22:52:06]Read from MH i2c: F0 09 00 [22:52:06]MH_I2C_Read... [22:52:06]Read from MH i2c: F0 09 00 B9 89 00 1E 1D A8 66 90 0F 3E 66 C6 [22:52:06]GetLastDocTimeStamp 1722293427 [22:52:06]current date 1722293534 [22:52:06]FM_GetShiftState [22:52:06]SAM_PROTO_GetShiftState [22:52:06]wFMCommunicate request_size=4 [22:52:06]MH_SAM_APDU [22:52:06]CAPDU: 80 13 01 00 [22:52:06]Write to MH i2c: E2 08 00 BA 89 80 13 01 00 00 00 00 00 C0 [22:52:06]Write i2c OK [22:52:06]MH_I2C_Read... [22:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:52:06]Read from MH i2c: E2 [22:52:06]MH_I2C_Read... [22:52:06]Read from MH i2c: E2 0E 00 [22:52:06]MH_I2C_Read... [22:52:06]Read from MH i2c: E2 0E 00 BA 89 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 EE [22:52:06]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:52:06]wFMCommunicate OK [22:52:06]SAM_PROTO_GetShiftState done [22:52:06]FM_GetShiftState done [22:52:06]opened in 1722211641 [22:52:06]opened+sec_in_day 1722298041 [22:52:06]quantity*price = 100005 [22:52:06]sum+1 = 100006 [22:52:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 317 29.07.2024 22:52 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118941 ФПД: 48156496924077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T225214&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118941&fm=48156496924077&tin=02508201610067®Number=0000000000092660&sum=100000 [22:52:07]StoreToDocumentArchive [22:52:07]shift 434 fd 118941 [22:52:07]save to /storage/0434/doc_00118941 [22:52:07]save last doc name /storage/0434/doc_00118941 to /storage/kkm_last_doc_name [22:52:07]save OK [22:52:07]Clear old archive folders... [22:52:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:52:07]tlvbuf is 01E807F0 [22:52:07]SAM_PROTO_ClearQueue [22:52:07]wFMCommunicate request_size=4 [22:52:07]MH_SAM_APDU [22:52:07]CAPDU: 80 09 00 00 [22:52:07]Write to MH i2c: E2 08 00 C7 89 80 09 00 00 00 00 00 00 C2 [22:52:07]Write i2c OK [22:52:07]MH_I2C_Read... [22:52:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:52:07]Read from MH i2c: E2 [22:52:07]MH_I2C_Read... [22:52:07]Read from MH i2c: E2 03 00 [22:52:07]MH_I2C_Read... [22:52:07]Read from MH i2c: E2 03 00 C7 89 00 90 00 C4 [22:52:07]RAPDU: 90 00 [22:52:07]wFMCommunicate OK [22:52:07]SAM_PROTO_ClearQueue done [22:52:07]KKMCreateOFDPacket [22:52:07]OFDProtocolAddRootSTLVToBuf [22:52:07]FM_MakeSignedData [22:52:07]FM_MakeSignedData [22:52:07]SAM_PROTO_SignData [22:52:07]wFMCommunicate request_size=4 [22:52:07]MH_SAM_APDU [22:52:07]CAPDU: 80 0D 01 02 [22:52:07]Write to MH i2c: E2 08 00 C8 89 80 0D 01 02 00 00 00 00 CA [22:52:07]Write i2c OK [22:52:07]MH_I2C_Read... [22:52:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:52:07]Read from MH i2c: E2 [22:52:07]MH_I2C_Read... [22:52:07]Read from MH i2c: E2 03 00 [22:52:07]MH_I2C_Read... [22:52:07]Read from MH i2c: E2 03 00 C8 89 00 90 00 C5 [22:52:07]RAPDU: 90 00 [22:52:07]wFMCommunicate OK [22:52:07]wFMCommunicate request_size=255 [22:52:07]MH_SAM_APDU [22:52:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 1E 1D A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9D D0 01 00 35 04 06 00 2B [22:52:07]Write to MH i2c: E2 02 01 C9 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 1E 1D A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9D D0 01 00 35 04 06 00 2B 00 00 B0 [22:52:07]Write i2c OK [22:52:07]MH_I2C_Read... [22:52:08]OFD Sender: No OFD packet to send [22:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:08]Read from MH i2c: E2 [22:52:08]MH_I2C_Read... [22:52:08]Read from MH i2c: E2 03 00 [22:52:08]MH_I2C_Read... [22:52:08]Read from MH i2c: E2 03 00 C9 89 00 90 00 C6 [22:52:08]RAPDU: 90 00 [22:52:08]wFMCommunicate OK [22:52:08]wFMCommunicate request_size=10 [22:52:08]MH_SAM_APDU [22:52:08]CAPDU: 80 0D 02 02 05 CC 4E E4 8D AD [22:52:08]Write to MH i2c: E2 0D 00 CA 89 80 0D 02 02 05 00 CC 4E E4 8D AD 00 00 0F [22:52:08]Write i2c OK [22:52:08]MH_I2C_Read... [22:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:08]Read from MH i2c: E2 [22:52:08]MH_I2C_Read... [22:52:08]Read from MH i2c: E2 03 00 [22:52:08]MH_I2C_Read... [22:52:08]Read from MH i2c: E2 03 00 CA 89 00 90 00 C7 [22:52:08]RAPDU: 90 00 [22:52:08]wFMCommunicate OK [22:52:08]wFMCommunicate request_size=4 [22:52:08]MH_SAM_APDU [22:52:08]CAPDU: 80 0D 03 02 [22:52:08]Write to MH i2c: E2 08 00 CB 89 80 0D 03 02 00 00 00 00 CF [22:52:08]Write i2c OK [22:52:08]MH_I2C_Read... [22:52:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:52:08]Read from MH i2c: E2 [22:52:08]MH_I2C_Read... [22:52:08]Read from MH i2c: E2 0B 00 [22:52:08]MH_I2C_Read... [22:52:08]Read from MH i2c: E2 0B 00 CB 89 00 4B D0 5F A0 E9 84 73 83 90 00 4D [22:52:08]RAPDU: 4B D0 5F A0 E9 84 73 83 90 00 [22:52:08]wFMCommunicate OK [22:52:08]SAM_PROTO_SignData done [22:52:08]FM_MakeSignedData done [22:52:08]CreateOFDProtocolMessage [22:52:08]wFMCommunicate request_size=4 [22:52:08]MH_SAM_APDU [22:52:08]CAPDU: 80 11 00 00 [22:52:08]Write to MH i2c: E2 08 00 CC 89 80 11 00 00 00 00 00 00 CF [22:52:08]Write i2c OK [22:52:08]MH_I2C_Read... [22:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:52:08]Read from MH i2c: E2 [22:52:08]MH_I2C_Read... [22:52:08]Read from MH i2c: E2 17 00 [22:52:08]MH_I2C_Read... [22:52:08]Read from MH i2c: E2 17 00 CC 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2A [22:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:52:08]wFMCommunicate OK [22:52:08]CreateOFDProtocolMessage done [22:52:08]OFDSenderStorePacket 118941 [22:52:08]StoreOFDPacket docnum=118941 [22:52:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2C 8B 07 01 87 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 1E 1D A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9D D0 01 00 35 04 06 00 2B CC 4E E4 8D AD 4B D0 5F A0 E9 84 73 83 [22:52:08]CheckFolder [22:52:08]dirname=/storage/ofd_packets [22:52:08]CheckFolder done [22:52:08]ProducePacketName [22:52:08]name=ofd_packets/00118941 [22:52:08]NVStorageSaveData ofd_packets/00118941 [22:52:08]File name is /storage/ofd_packets/00118941 [22:52:08]Write 301 bytes [22:52:08]NVStorageSaveData done [22:52:08]OFDSenderStorePacket done [22:52:08]KKMCreateOFDPacket done [22:52:08]NVStorageSaveData kkm_last_timestamp [22:52:08]File name is /storage/kkm_last_timestamp [22:52:08]Write 4 bytes [22:52:08]NVStorageSaveData done [22:52:08]ExternCall_PrintAddStr [22:52:08]wPrintStart [22:52:08]Write to MH i2c: 01 00 00 CD 89 56 [22:52:08]Write i2c OK [22:52:08]MH_I2C_Read... [22:52:08]Read from MH i2c: 01 [22:52:08]MH_I2C_Read... [22:52:08]Read from MH i2c: 01 07 00 [22:52:08]MH_I2C_Read... [22:52:08]Read from MH i2c: 01 07 00 CD 89 00 00 00 00 00 FF 0F 6B [22:52:08]RasterBufferAndPrint [22:52:08]line Счет N : (1)949859 [22:52:08]line ИНН: 02508201610067 [22:52:08]line Контрольно-Кассовый Чек [22:52:08]line ПРОДАЖА [22:52:08]line ТРК (МРК, ГНК) : 41 [22:52:08]line Товар: 2710124130 [22:52:08]line Аи-92-К-4 [22:52:08]line 14.750 * 67.80 [22:52:08]line = 1000.05 [22:52:08]line НДС 12% НСП 1% [22:52:08]line > о реализуемом товаре [22:52:08]line ОКРУГЛЕНИЕ: -0.05 [22:52:08]line ИТОГО: 1000.00 [22:52:08]line Внесено: 1000.00 [22:52:08]line СДАЧА: 0.00 [22:52:08]line НСП 1% : 8.85 [22:52:08]line НДС 12% : 106.20 [22:52:08]line Наличными: 1000.00 [22:52:08]line Безнал.: 0.00 [22:52:08]line Место: АЗС № 134 "Партнер Нефть" [22:52:08]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:52:08]line СНО: Общий режим [22:52:08]line Чек 317 29.07.2024 22:52 [22:52:08]line Смена: 434 ФФД: 1.0 [22:52:08]line ЗНМ: 0300000044 [22:52:08]line РНМ: 0000000000092660 [22:52:08]line Версия ККМ: 001 [22:52:08]line ФМ: 0000000000874939 [22:52:08]line ФД: 118941 [22:52:08]line ФПД: 48156496924077 [22:52:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T225214&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118941&fm=48156496924077&tin=02508201610067®Number=0000000000092660&sum=100000 [22:52:08]OFD Sender: Processing packet 118941 [packets to send 86, broken 85] [22:52:08]ProducePacketName [22:52:08]name=ofd_packets/00118941 [22:52:08]OFD Sender: To server: pG, [22:52:08]CommunicateWithHost lk.salyk.kg:30040 [22:52:08]ConnectInit lk.salyk.kg [22:52:08]written 0, free lines is 4095 [22:52:08]Connected sock=10 [22:52:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2C 8B 07 01 87 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 1E 1D A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9D D0 01 00 35 04 06 00 2B CC 4E E4 8D AD 4B D0 5F A0 E9 84 73 83 [22:52:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1F 6F 47 00 43 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 34 39 33 39 10 04 04 00 9D D0 01 00 F4 03 04 00 AB CA A7 66 B6 04 01 00 00 DD 17 54 57 D2 DD 03 C6 [22:52:09]CommunicateWithHost err = 0 [22:52:09]CheckOFDResponse [22:52:09]1017 (14) - 77093643461234 [22:52:09]1041 (16) - 0000000000874939 [22:52:09]1040 (4) - 118941 [22:52:09]1012 (4) - 29.07.2024 17:00 [22:52:09]1206 (1) - 0 [22:52:09]OFD Sender: Remove packet 118941 [22:52:09]ProducePacketName [22:52:09]name=ofd_packets/00118941 [22:52:09]NVStorageDeleteData [22:52:09]Write to MH i2c: 01 00 00 F7 89 80 [22:52:09]Write i2c OK [22:52:09]MH_I2C_Read... [22:52:09]Read from MH i2c: 01 [22:52:09]MH_I2C_Read... [22:52:09]Read from MH i2c: 01 07 00 [22:52:09]MH_I2C_Read... [22:52:09]Read from MH i2c: 01 07 00 F7 89 00 00 00 00 00 D1 0C 64 [22:52:09]RasterBufferAndPrint [22:52:09]line [22:52:09]line [22:52:09]line [22:52:09]line [22:52:09]line [22:52:09]written 0, free lines is 3288 [22:52:09]MH_Cut [22:52:09]Write to MH i2c: D1 01 00 FE 89 01 59 [22:52:09]Write i2c OK [22:52:09]MH_I2C_Read... [22:52:09]Read from MH i2c: D1 [22:52:09]MH_I2C_Read... [22:52:09]Read from MH i2c: D1 01 00 [22:52:09]MH_I2C_Read... [22:52:09]Read from MH i2c: D1 01 00 FE 89 00 58 [22:52:09]Write to MH i2c: 01 00 00 FF 89 88 [22:52:09]Write i2c OK [22:52:09]MH_I2C_Read... [22:52:09]OFD Sender: No OFD packet to send [22:52:09]*** Cut start [22:52:09]*** Partial cut [22:52:09]*** CUTSNS_PIN = 1 [22:52:09]*** CUTSNS_PIN = 0 [22:52:10]*** Brake cut motor [22:52:10]Read from MH i2c: 01 [22:52:10]MH_I2C_Read... [22:52:10]*** Stop cut motor [22:52:10]*** Cut end [22:52:10]Read from MH i2c: 01 07 00 [22:52:10]MH_I2C_Read... [22:52:10]Read from MH i2c: 01 07 00 FF 89 00 00 00 00 00 FF 0F 9D [22:52:10]process_action close_receipt done [22:52:10]requested_data is exist [22:52:10]produce_requested_data [22:52:10]requested_item fm.sn is exist - process it [22:52:10]wFMCommunicate request_size=4 [22:52:10]MH_SAM_APDU [22:52:10]CAPDU: 80 11 00 00 [22:52:10]Write to MH i2c: E2 08 00 00 8A 80 11 00 00 00 00 00 00 04 [22:52:10]Write i2c OK [22:52:10]MH_I2C_Read... [22:52:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:52:10]Read from MH i2c: E2 [22:52:10]MH_I2C_Read... [22:52:10]Read from MH i2c: E2 17 00 [22:52:10]MH_I2C_Read... [22:52:10]Read from MH i2c: E2 17 00 00 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5F [22:52:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:52:10]wFMCommunicate OK [22:52:10]requested_item fd.num is exist - process it [22:52:10]SAM_PROTO_GetFieldsCounters [22:52:10]wFMCommunicate request_size=4 [22:52:10]MH_SAM_APDU [22:52:10]CAPDU: 80 13 00 00 [22:52:10]Write to MH i2c: E2 08 00 01 8A 80 13 00 00 00 00 00 00 07 [22:52:10]Write i2c OK [22:52:10]MH_I2C_Read... [22:52:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:52:10]Read from MH i2c: E2 [22:52:10]MH_I2C_Read... [22:52:10]Read from MH i2c: E2 62 00 [22:52:10]MH_I2C_Read... [22:52:10]Read from MH i2c: E2 62 00 01 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9D D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 09 [22:52: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9D D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:52:10]wFMCommunicate OK [22:52:10]SAM_PROTO_GetFieldsCounters done [22:52:10]requested_item shift.num is exist - process it [22:52:10]requested_item shift.opened is exist - process it [22:52:10]req_shift_opened [22:52:10]FM_GetShiftState [22:52:10]SAM_PROTO_GetShiftState [22:52:10]wFMCommunicate request_size=4 [22:52:10]MH_SAM_APDU [22:52:10]CAPDU: 80 13 01 00 [22:52:10]Write to MH i2c: E2 08 00 02 8A 80 13 01 00 00 00 00 00 09 [22:52:10]Write i2c OK [22:52:10]MH_I2C_Read... [22:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:52:10]Read from MH i2c: E2 [22:52:10]MH_I2C_Read... [22:52:10]Read from MH i2c: E2 0E 00 [22:52:10]MH_I2C_Read... [22:52:10]Read from MH i2c: E2 0E 00 02 8A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 37 [22:52:10]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [22:52:10]wFMCommunicate OK [22:52:10]SAM_PROTO_GetShiftState done [22:52:10]FM_GetShiftState done [22:52:10]req_shift_opened done [22:52:10]requested_item shift.open_date is exist - process it [22:52:10]req_shift_open_date [22:52:10]req_shift_open_date done [22:52:10]produce_requested_data done [22:52:10]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118941,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [22:52:10]process_action_free close_receipt [22:52:10]json_value_free [22:52:10]json_value_free done [22:52:10]process_json_proto returns [22:52:10]Send response to host [22:52:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118941,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [22:52:10]free response buf [22:52:10]execute_script done [22:52:10]execute_script returns [22:52:10]free content buf [22:52:10]Sock 9.Close socket [22:52:10]Sock 9.Thread stoped [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]OFD Sender: No OFD packet to send [22:53:54]OFD Sender: No OFD packet to send [22:53:59]OFD Sender: No OFD packet to send [22:54:04]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:09]OFD Sender: No OFD packet to send [22:59:14]OFD Sender: No OFD packet to send [22:59:19]OFD Sender: No OFD packet to send [22:59:24]OFD Sender: No OFD packet to send [22:59:29]OFD Sender: No OFD packet to send [22:59:34]OFD Sender: No OFD packet to send [22:59:39]OFD Sender: No OFD packet to send [22:59:45]OFD Sender: No OFD packet to send [22:59:50]OFD Sender: No OFD packet to send [22:59:55]OFD Sender: No OFD packet to send [23:00:00]OFD Sender: No OFD packet to send [23:00:05]OFD Sender: No OFD packet to send [23:00:10]OFD Sender: No OFD packet to send [23:00:15]OFD Sender: No OFD packet to send [23:00:20]OFD Sender: No OFD packet to send [23:00:25]OFD Sender: No OFD packet to send [23:00:30]OFD Sender: No OFD packet to send [23:00:35]OFD Sender: No OFD packet to send [23:00:40]OFD Sender: No OFD packet to send [23:00:45]OFD Sender: No OFD packet to send [23:00:50]OFD Sender: No OFD packet to send [23:00:55]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:29]accept exits with 7 [23:03:29]New connection [23:03:29]New thread 3067383140 created [23:03:29]Thread 3067239780 joined [23:03:29]Waiting for new connection... [23:03:29] Sock 7.Parse request [23:03:29]Sock 7.Check first char [23:03:29]Sock 7.First char is OK [23:03:29]request: POST /json_proto HTTP/1.0 [23:03:29]Method: POST [23:03:29]URL: /json_proto [23:03:29]Method is POST - this is cgi request [23:03:29]url: /json_proto [23:03:29]query_string will be loaded in cgi processing [23:03:29]execute_cgi json_proto POST (null) [23:03:29]execute_cgi path=json_proto method=POST [23:03:29]POST find Content-Length [23:03:29]Host: 172.17.45.7:8080 [23:03:29]Content-Length: 678 [23:03:29]Content-Type: application/json [23:03:29] [23:03:29]POST finish read [23:03:29]Found Content-Length = 678 [23:03:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:03:29]execute_script... [23:03:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:03:29]POST & json_proto [23:03:29]process_json_proto [23:03:29]json parsed OK: [23:03:29]protocol is kg_v1.0 [23:03:29]action value=close_receipt [23:03:29]process_action close_receipt [23:03:29]cmd_close_receipt [23:03:29]MH_GetDate [23:03:29]Write to MH i2c: F0 00 00 03 8A 7C [23:03:29]Write i2c OK [23:03:29]MH_I2C_Read... [23:03:29]Read from MH i2c: F0 [23:03:29]MH_I2C_Read... [23:03:29]Read from MH i2c: F0 09 00 [23:03:29]MH_I2C_Read... [23:03:29]Read from MH i2c: F0 09 00 03 8A 00 C8 1F A8 66 90 0F 3E 66 BD [23:03:29]GetLastDocTimeStamp 1722293534 [23:03:29]current date 1722294216 [23:03:29]FM_GetShiftState [23:03:29]SAM_PROTO_GetShiftState [23:03:29]wFMCommunicate request_size=4 [23:03:29]MH_SAM_APDU [23:03:29]CAPDU: 80 13 01 00 [23:03:29]Write to MH i2c: E2 08 00 04 8A 80 13 01 00 00 00 00 00 0B [23:03:29]Write i2c OK [23:03:29]MH_I2C_Read... [23:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:03:29]Read from MH i2c: E2 [23:03:29]MH_I2C_Read... [23:03:29]Read from MH i2c: E2 0E 00 [23:03:29]MH_I2C_Read... [23:03:29]Read from MH i2c: E2 0E 00 04 8A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 39 [23:03:29]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [23:03:29]wFMCommunicate OK [23:03:29]SAM_PROTO_GetShiftState done [23:03:29]FM_GetShiftState done [23:03:29]opened in 1722211641 [23:03:29]opened+sec_in_day 1722298041 [23:03:29]quantity*price = 80061 [23:03:29]sum+1 = 80063 [23:03:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 318 29.07.2024 23:03 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118942 ФПД: 21686319453762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T230336&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118942&fm=21686319453762&tin=02508201610067®Number=0000000000092660&sum=80000 [23:03:30]StoreToDocumentArchive [23:03:30]shift 434 fd 118942 [23:03:30]save to /storage/0434/doc_00118942 [23:03:30]save last doc name /storage/0434/doc_00118942 to /storage/kkm_last_doc_name [23:03:30]save OK [23:03:30]Clear old archive folders... [23:03:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:03:30]tlvbuf is 01EA9E50 [23:03:30]SAM_PROTO_ClearQueue [23:03:30]wFMCommunicate request_size=4 [23:03:30]MH_SAM_APDU [23:03:30]CAPDU: 80 09 00 00 [23:03:30]Write to MH i2c: E2 08 00 11 8A 80 09 00 00 00 00 00 00 0D [23:03:30]Write i2c OK [23:03:30]MH_I2C_Read... [23:03:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:03:30]Read from MH i2c: E2 [23:03:30]MH_I2C_Read... [23:03:30]Read from MH i2c: E2 03 00 [23:03:30]MH_I2C_Read... [23:03:30]Read from MH i2c: E2 03 00 11 8A 00 90 00 0F [23:03:30]RAPDU: 90 00 [23:03:30]wFMCommunicate OK [23:03:30]SAM_PROTO_ClearQueue done [23:03:30]KKMCreateOFDPacket [23:03:30]OFDProtocolAddRootSTLVToBuf [23:03:30]FM_MakeSignedData [23:03:30]FM_MakeSignedData [23:03:30]SAM_PROTO_SignData [23:03:30]wFMCommunicate request_size=4 [23:03:30]MH_SAM_APDU [23:03:30]CAPDU: 80 0D 01 02 [23:03:30]Write to MH i2c: E2 08 00 12 8A 80 0D 01 02 00 00 00 00 15 [23:03:30]Write i2c OK [23:03:30]MH_I2C_Read... [23:03:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:03:30]OFD Sender: No OFD packet to send [23:03:30]Read from MH i2c: E2 [23:03:30]MH_I2C_Read... [23:03:30]Read from MH i2c: E2 03 00 [23:03:30]MH_I2C_Read... [23:03:30]Read from MH i2c: E2 03 00 12 8A 00 90 00 10 [23:03:30]RAPDU: 90 00 [23:03:30]wFMCommunicate OK [23:03:30]wFMCommunicate request_size=255 [23:03:30]MH_SAM_APDU [23:03:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 C8 1F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9E D0 01 00 35 04 06 00 13 [23:03:30]Write to MH i2c: E2 02 01 13 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 C8 1F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9E D0 01 00 35 04 06 00 13 00 00 7E [23:03:30]Write i2c OK [23:03:30]MH_I2C_Read... [23:03:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:03:30]Read from MH i2c: E2 [23:03:30]MH_I2C_Read... [23:03:30]Read from MH i2c: E2 03 00 [23:03:30]MH_I2C_Read... [23:03:30]Read from MH i2c: E2 03 00 13 8A 00 90 00 11 [23:03:30]RAPDU: 90 00 [23:03:30]wFMCommunicate OK [23:03:30]wFMCommunicate request_size=10 [23:03:30]MH_SAM_APDU [23:03:30]CAPDU: 80 0D 02 02 05 B9 3D 5E 16 42 [23:03:30]Write to MH i2c: E2 0D 00 14 8A 80 0D 02 02 05 00 B9 3D 5E 16 42 00 00 CE [23:03:30]Write i2c OK [23:03:30]MH_I2C_Read... [23:03:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:03:30]Read from MH i2c: E2 [23:03:30]MH_I2C_Read... [23:03:30]Read from MH i2c: E2 03 00 [23:03:30]MH_I2C_Read... [23:03:30]Read from MH i2c: E2 03 00 14 8A 00 90 00 12 [23:03:30]RAPDU: 90 00 [23:03:30]wFMCommunicate OK [23:03:30]wFMCommunicate request_size=4 [23:03:30]MH_SAM_APDU [23:03:30]CAPDU: 80 0D 03 02 [23:03:30]Write to MH i2c: E2 08 00 15 8A 80 0D 03 02 00 00 00 00 1A [23:03:30]Write i2c OK [23:03:30]MH_I2C_Read... [23:03:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:03:30]Read from MH i2c: E2 [23:03:30]MH_I2C_Read... [23:03:30]Read from MH i2c: E2 0B 00 [23:03:30]MH_I2C_Read... [23:03:30]Read from MH i2c: E2 0B 00 15 8A 00 71 5E 9C 91 A1 30 03 77 90 00 62 [23:03:30]RAPDU: 71 5E 9C 91 A1 30 03 77 90 00 [23:03:30]wFMCommunicate OK [23:03:30]SAM_PROTO_SignData done [23:03:30]FM_MakeSignedData done [23:03:30]CreateOFDProtocolMessage [23:03:30]wFMCommunicate request_size=4 [23:03:30]MH_SAM_APDU [23:03:30]CAPDU: 80 11 00 00 [23:03:30]Write to MH i2c: E2 08 00 16 8A 80 11 00 00 00 00 00 00 1A [23:03:30]Write i2c OK [23:03:30]MH_I2C_Read... [23:03:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:03:30]Read from MH i2c: E2 [23:03:30]MH_I2C_Read... [23:03:30]Read from MH i2c: E2 17 00 [23:03:30]MH_I2C_Read... [23:03:30]Read from MH i2c: E2 17 00 16 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 75 [23:03:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:03:30]wFMCommunicate OK [23:03:30]CreateOFDProtocolMessage done [23:03:30]OFDSenderStorePacket 118942 [23:03:30]StoreOFDPacket docnum=118942 [23:03:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 70 EE 07 01 FB 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 C8 1F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9E D0 01 00 35 04 06 00 13 B9 3D 5E 16 42 71 5E 9C 91 A1 30 03 77 [23:03:30]CheckFolder [23:03:30]dirname=/storage/ofd_packets [23:03:30]CheckFolder done [23:03:30]ProducePacketName [23:03:30]name=ofd_packets/00118942 [23:03:30]NVStorageSaveData ofd_packets/00118942 [23:03:30]File name is /storage/ofd_packets/00118942 [23:03:30]Write 301 bytes [23:03:30]NVStorageSaveData done [23:03:30]OFDSenderStorePacket done [23:03:30]KKMCreateOFDPacket done [23:03:30]NVStorageSaveData kkm_last_timestamp [23:03:30]File name is /storage/kkm_last_timestamp [23:03:30]Write 4 bytes [23:03:30]NVStorageSaveData done [23:03:30]ExternCall_PrintAddStr [23:03:30]wPrintStart [23:03:30]Write to MH i2c: 01 00 00 17 8A A1 [23:03:30]Write i2c OK [23:03:30]MH_I2C_Read... [23:03:30]Read from MH i2c: 01 [23:03:30]MH_I2C_Read... [23:03:30]Read from MH i2c: 01 07 00 [23:03:30]MH_I2C_Read... [23:03:30]Read from MH i2c: 01 07 00 17 8A 00 00 00 00 00 FF 0F B6 [23:03:30]RasterBufferAndPrint [23:03:30]line Счет N : (1)949861 [23:03:30]line ИНН: 02508201610067 [23:03:30]line Контрольно-Кассовый Чек [23:03:30]line ПРОДАЖА [23:03:30]line ТРК (МРК, ГНК) : 43 [23:03:30]line Товар: 2710124500 [23:03:30]line Аи-95-К-3 [23:03:30]line 10.790 * 74.20 [23:03:30]line = 800.62 [23:03:30]line НДС 12% НСП 1% [23:03:30]line > о реализуемом товаре [23:03:30]line ОКРУГЛЕНИЕ: -0.62 [23:03:30]line ИТОГО: 800.00 [23:03:30]line Внесено: 800.00 [23:03:30]line СДАЧА: 0.00 [23:03:30]line НСП 1% : 7.08 [23:03:30]line НДС 12% : 85.02 [23:03:30]line Наличными: 800.00 [23:03:30]line Безнал.: 0.00 [23:03:30]line Место: АЗС № 134 "Партнер Нефть" [23:03:30]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:03:30]line СНО: Общий режим [23:03:30]line Чек 318 29.07.2024 23:03 [23:03:30]line Смена: 434 ФФД: 1.0 [23:03:30]line ЗНМ: 0300000044 [23:03:30]line РНМ: 0000000000092660 [23:03:30]line Версия ККМ: 001 [23:03:30]line ФМ: 0000000000874939 [23:03:30]line ФД: 118942 [23:03:30]line ФПД: 21686319453762 [23:03:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T230336&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118942&fm=21686319453762&tin=02508201610067®Number=0000000000092660&sum=80000 [23:03:31]OFD Sender: Processing packet 118942 [packets to send 86, broken 85] [23:03:31]ProducePacketName [23:03:31]name=ofd_packets/00118942 [23:03:31]OFD Sender: To server: pG, [23:03:31]CommunicateWithHost lk.salyk.kg:30040 [23:03:31]ConnectInit lk.salyk.kg [23:03:31]written 0, free lines is 4095 [23:03:31]Connected sock=10 [23:03:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 70 EE 07 01 FB 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 C8 1F A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9E D0 01 00 35 04 06 00 13 B9 3D 5E 16 42 71 5E 9C 91 A1 30 03 77 [23:03:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 46 BE 47 00 39 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 34 39 33 39 10 04 04 00 9E D0 01 00 F4 03 04 00 55 CD A7 66 B6 04 01 00 00 0F 56 CF AB AF 47 56 9D [23:03:31]CommunicateWithHost err = 0 [23:03:31]CheckOFDResponse [23:03:31]1017 (14) - 77093643461234 [23:03:31]1041 (16) - 0000000000874939 [23:03:31]1040 (4) - 118942 [23:03:31]1012 (4) - 29.07.2024 17:11 [23:03:31]1206 (1) - 0 [23:03:31]OFD Sender: Remove packet 118942 [23:03:31]ProducePacketName [23:03:31]name=ofd_packets/00118942 [23:03:31]NVStorageDeleteData [23:03:31]Write to MH i2c: 01 00 00 41 8A CB [23:03:31]Write i2c OK [23:03:31]MH_I2C_Read... [23:03:31]Read from MH i2c: 01 [23:03:31]MH_I2C_Read... [23:03:31]Read from MH i2c: 01 07 00 [23:03:31]MH_I2C_Read... [23:03:31]Read from MH i2c: 01 07 00 41 8A 00 00 00 00 00 D8 0C B6 [23:03:31]RasterBufferAndPrint [23:03:31]line [23:03:31]line [23:03:31]line [23:03:31]line [23:03:31]line [23:03:31]written 0, free lines is 3296 [23:03:31]MH_Cut [23:03:31]Write to MH i2c: D1 01 00 48 8A 01 A4 [23:03:31]Write i2c OK [23:03:31]MH_I2C_Read... [23:03:31]Read from MH i2c: D1 [23:03:31]MH_I2C_Read... [23:03:31]Read from MH i2c: D1 01 00 [23:03:31]MH_I2C_Read... [23:03:31]Read from MH i2c: D1 01 00 48 8A 00 A3 [23:03:31]Write to MH i2c: 01 00 00 49 8A D3 [23:03:31]Write i2c OK [23:03:31]MH_I2C_Read... [23:03:31]OFD Sender: No OFD packet to send [23:03:32]*** Cut start [23:03:32]*** Partial cut [23:03:32]*** CUTSNS_PIN = 1 [23:03:32]*** CUTSNS_PIN = 0 [23:03:32]*** Brake cut motor [23:03:32]Read from MH i2c: 01 [23:03:32]MH_I2C_Read... [23:03:32]*** Stop cut motor [23:03:32]*** Cut end [23:03:32]Read from MH i2c: 01 07 00 [23:03:32]MH_I2C_Read... [23:03:32]Read from MH i2c: 01 07 00 49 8A 00 00 00 00 00 FF 0F E8 [23:03:32]process_action close_receipt done [23:03:32]requested_data is exist [23:03:32]produce_requested_data [23:03:32]requested_item fm.sn is exist - process it [23:03:32]wFMCommunicate request_size=4 [23:03:32]MH_SAM_APDU [23:03:32]CAPDU: 80 11 00 00 [23:03:32]Write to MH i2c: E2 08 00 4A 8A 80 11 00 00 00 00 00 00 4E [23:03:32]Write i2c OK [23:03:32]MH_I2C_Read... [23:03:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:03:32]Read from MH i2c: E2 [23:03:32]MH_I2C_Read... [23:03:32]Read from MH i2c: E2 17 00 [23:03:32]MH_I2C_Read... [23:03:32]Read from MH i2c: E2 17 00 4A 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A9 [23:03:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:03:32]wFMCommunicate OK [23:03:32]requested_item fd.num is exist - process it [23:03:32]SAM_PROTO_GetFieldsCounters [23:03:32]wFMCommunicate request_size=4 [23:03:32]MH_SAM_APDU [23:03:32]CAPDU: 80 13 00 00 [23:03:32]Write to MH i2c: E2 08 00 4B 8A 80 13 00 00 00 00 00 00 51 [23:03:32]Write i2c OK [23:03:32]MH_I2C_Read... [23:03:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:03:33]Read from MH i2c: E2 [23:03:33]MH_I2C_Read... [23:03:33]Read from MH i2c: E2 62 00 [23:03:33]MH_I2C_Read... [23:03:33]Read from MH i2c: E2 62 00 4B 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9E D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 57 [23:03:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9E D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:03:33]wFMCommunicate OK [23:03:33]SAM_PROTO_GetFieldsCounters done [23:03:33]requested_item shift.num is exist - process it [23:03:33]requested_item shift.opened is exist - process it [23:03:33]req_shift_opened [23:03:33]FM_GetShiftState [23:03:33]SAM_PROTO_GetShiftState [23:03:33]wFMCommunicate request_size=4 [23:03:33]MH_SAM_APDU [23:03:33]CAPDU: 80 13 01 00 [23:03:33]Write to MH i2c: E2 08 00 4C 8A 80 13 01 00 00 00 00 00 53 [23:03:33]Write i2c OK [23:03:33]MH_I2C_Read... [23:03:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:03:33]Read from MH i2c: E2 [23:03:33]MH_I2C_Read... [23:03:33]Read from MH i2c: E2 0E 00 [23:03:33]MH_I2C_Read... [23:03:33]Read from MH i2c: E2 0E 00 4C 8A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 81 [23:03:33]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [23:03:33]wFMCommunicate OK [23:03:33]SAM_PROTO_GetShiftState done [23:03:33]FM_GetShiftState done [23:03:33]req_shift_opened done [23:03:33]requested_item shift.open_date is exist - process it [23:03:33]req_shift_open_date [23:03:33]req_shift_open_date done [23:03:33]produce_requested_data done [23:03:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118942,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [23:03:33]process_action_free close_receipt [23:03:33]json_value_free [23:03:33]json_value_free done [23:03:33]process_json_proto returns [23:03:33]Send response to host [23:03:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118942,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [23:03:33]free response buf [23:03:33]execute_script done [23:03:33]execute_script returns [23:03:33]free content buf [23:03:33]Sock 7.Close socket [23:03:33]Sock 7.Thread stoped [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:46]OFD Sender: No OFD packet to send [23:03:49]accept exits with 9 [23:03:49]New connection [23:03:49]New thread 3067239780 created [23:03:49]Thread 3067383140 joined [23:03:49]Waiting for new connection... [23:03:49] Sock 9.Parse request [23:03:49]Sock 9.Check first char [23:03:49]Sock 9.First char is OK [23:03:49]request: POST /json_proto HTTP/1.0 [23:03:49]Method: POST [23:03:49]URL: /json_proto [23:03:49]Method is POST - this is cgi request [23:03:49]url: /json_proto [23:03:49]query_string will be loaded in cgi processing [23:03:49]execute_cgi json_proto POST (null) [23:03:49]execute_cgi path=json_proto method=POST [23:03:49]POST find Content-Length [23:03:49]Host: 172.17.45.7:8080 [23:03:49]Content-Length: 1187 [23:03:49]Content-Type: application/json [23:03:49] [23:03:49]POST finish read [23:03:49]Found Content-Length = 1187 [23:03:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949860\u000A29.07.2024 23:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A64300\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:03:49]execute_script... [23:03:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. \u000A\u0421\u0447\u0435\u0442 N : (1)949860\u000A29.07.2024 23:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A64300\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:03:49]POST & json_proto [23:03:49]process_json_proto [23:03:49]json parsed OK: [23:03:49]protocol is kg_v1.0 [23:03:49]action value=print_text [23:03:49]process_action print_text [23:03:49]cmd_print_text [23:03:49]ExternCall_PrintAddStr [23:03:49]wPrintStart [23:03:49]Write to MH i2c: 01 00 00 4D 8A D7 [23:03:49]Write i2c OK [23:03:49]MH_I2C_Read... [23:03:49]Read from MH i2c: 01 [23:03:49]MH_I2C_Read... [23:03:49]Read from MH i2c: 01 07 00 [23:03:49]MH_I2C_Read... [23:03:49]Read from MH i2c: 01 07 00 4D 8A 00 00 00 00 00 FF 0F EC [23:03:49]RasterBufferAndPrint [23:03:49]line *****ТОВАРНЫЙ ЧЕК***** [23:03:49]line АЗС-134 [23:03:49]line Партнер нефть [23:03:49]line 02508201610067 [23:03:49]line Кассир : Казаков Ч. [23:03:49]line Счет N : (1)949860 [23:03:49]line 29.07.2024 23:01 [23:03:49]line ПРОДАЖА [23:03:49]line ТРК (МРК, ГНК): 11 [23:03:49]line Вид ГСМ : 2710194800 [23:03:49]line ДТ-К-5 [23:03:49]line 100.000 x 76.20 [23:03:49]line ИТОГ: 7620.00 [23:03:49]line Тип оплаты: Талоны: Топливная Карта [23:03:49]line 64300 [23:03:49]line ______________________ [23:03:49]line (подпись) [23:03:49]written 0, free lines is 4095 [23:03:49]Write to MH i2c: 01 00 00 61 8A EB [23:03:49]Write i2c OK [23:03:49]MH_I2C_Read... [23:03:49]Read from MH i2c: 01 [23:03:49]MH_I2C_Read... [23:03:49]Read from MH i2c: 01 07 00 [23:03:49]MH_I2C_Read... [23:03:49]Read from MH i2c: 01 07 00 61 8A 00 00 00 00 00 0E 0E 0E [23:03:49]RasterBufferAndPrint [23:03:49]line [23:03:49]line [23:03:49]line [23:03:49]line [23:03:49]line [23:03:49]written 0, free lines is 3600 [23:03:49]MH_Cut [23:03:49]Write to MH i2c: D1 01 00 68 8A 01 C4 [23:03:49]Write i2c OK [23:03:49]MH_I2C_Read... [23:03:49]Read from MH i2c: D1 [23:03:49]MH_I2C_Read... [23:03:49]Read from MH i2c: D1 01 00 [23:03:49]MH_I2C_Read... [23:03:49]Read from MH i2c: D1 01 00 68 8A 00 C3 [23:03:49]Write to MH i2c: 01 00 00 69 8A F3 [23:03:49]Write i2c OK [23:03:49]MH_I2C_Read... [23:03:50]*** Cut start [23:03:50]*** Partial cut [23:03:50]*** CUTSNS_PIN = 1 [23:03:50]*** CUTSNS_PIN = 0 [23:03:50]*** Brake cut motor [23:03:51]Read from MH i2c: 01 [23:03:51]MH_I2C_Read... [23:03:51]*** Stop cut motor [23:03:51]*** Cut end [23:03:51]Read from MH i2c: 01 07 00 [23:03:51]MH_I2C_Read... [23:03:51]Read from MH i2c: 01 07 00 69 8A 00 00 00 00 00 FF 0F 08 [23:03:51]process_action print_text done [23:03:51]requested_data is exist [23:03:51]produce_requested_data [23:03:51]requested_item fm.sn is exist - process it [23:03:51]wFMCommunicate request_size=4 [23:03:51]MH_SAM_APDU [23:03:51]CAPDU: 80 11 00 00 [23:03:51]Write to MH i2c: E2 08 00 6A 8A 80 11 00 00 00 00 00 00 6E [23:03:51]Write i2c OK [23:03:51]MH_I2C_Read... [23:03:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:03:51]Read from MH i2c: E2 [23:03:51]MH_I2C_Read... [23:03:51]Read from MH i2c: E2 17 00 [23:03:51]MH_I2C_Read... [23:03:51]Read from MH i2c: E2 17 00 6A 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C9 [23:03:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:03:51]wFMCommunicate OK [23:03:51]requested_item fd.num is exist - process it [23:03:51]SAM_PROTO_GetFieldsCounters [23:03:51]wFMCommunicate request_size=4 [23:03:51]MH_SAM_APDU [23:03:51]CAPDU: 80 13 00 00 [23:03:51]Write to MH i2c: E2 08 00 6B 8A 80 13 00 00 00 00 00 00 71 [23:03:51]Write i2c OK [23:03:51]MH_I2C_Read... [23:03:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:03:51]Read from MH i2c: E2 [23:03:51]MH_I2C_Read... [23:03:51]Read from MH i2c: E2 62 00 [23:03:51]MH_I2C_Read... [23:03:51]Read from MH i2c: E2 62 00 6B 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9E D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 77 [23:03: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9E D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:03:51]wFMCommunicate OK [23:03:51]SAM_PROTO_GetFieldsCounters done [23:03:51]requested_item shift.num is exist - process it [23:03:51]requested_item shift.opened is exist - process it [23:03:51]req_shift_opened [23:03:51]FM_GetShiftState [23:03:51]SAM_PROTO_GetShiftState [23:03:51]wFMCommunicate request_size=4 [23:03:51]MH_SAM_APDU [23:03:51]CAPDU: 80 13 01 00 [23:03:51]Write to MH i2c: E2 08 00 6C 8A 80 13 01 00 00 00 00 00 73 [23:03:51]Write i2c OK [23:03:51]MH_I2C_Read... [23:03:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:03:51]Read from MH i2c: E2 [23:03:51]MH_I2C_Read... [23:03:51]Read from MH i2c: E2 0E 00 [23:03:51]MH_I2C_Read... [23:03:51]Read from MH i2c: E2 0E 00 6C 8A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A1 [23:03:51]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [23:03:51]wFMCommunicate OK [23:03:51]SAM_PROTO_GetShiftState done [23:03:51]FM_GetShiftState done [23:03:51]req_shift_opened done [23:03:51]requested_item shift.open_date is exist - process it [23:03:51]req_shift_open_date [23:03:51]req_shift_open_date done [23:03:51]produce_requested_data done [23:03:51]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118942,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [23:03:51]process_action_free print_text [23:03:51]json_value_free [23:03:51]json_value_free done [23:03:51]process_json_proto returns [23:03:51]Send response to host [23:03:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118942,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [23:03:51]free response buf [23:03:51]execute_script done [23:03:51]execute_script returns [23:03:51]free content buf [23:03:51]Sock 9.Close socket [23:03:51]Sock 9.Thread stoped [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:06]OFD Sender: No OFD packet to send [23:04:11]OFD Sender: No OFD packet to send [23:04:16]OFD Sender: No OFD packet to send [23:04:21]OFD Sender: No OFD packet to send [23:04:26]OFD Sender: No OFD packet to send [23:04:31]OFD Sender: No OFD packet to send [23:04:36]OFD Sender: No OFD packet to send [23:04:41]OFD Sender: No OFD packet to send [23:04:46]OFD Sender: No OFD packet to send [23:04:51]OFD Sender: No OFD packet to send [23:04:56]OFD Sender: No OFD packet to send [23:05:01]OFD Sender: No OFD packet to send [23:05:06]OFD Sender: No OFD packet to send [23:05:11]OFD Sender: No OFD packet to send [23:05:16]OFD Sender: No OFD packet to send [23:05:21]OFD Sender: No OFD packet to send [23:05:26]OFD Sender: No OFD packet to send [23:05:31]OFD Sender: No OFD packet to send [23:05:36]OFD Sender: No OFD packet to send [23:05:41]OFD Sender: No OFD packet to send [23:05:47]OFD Sender: No OFD packet to send [23:05:49]int [23:05:49]Write to MH i2c: 01 00 00 6D 8A F7 [23:05:49]*** FLAG_PRN_PAP1 set [23:05:49]Write i2c OK [23:05:49]MH_I2C_Read... [23:05:49]Read from MH i2c: 01 [23:05:49]MH_I2C_Read... [23:05:49]Read from MH i2c: 01 07 00 [23:05:49]MH_I2C_Read... [23:05:49]Read from MH i2c: 01 07 00 6D 8A 00 01 00 00 00 FF 0F 0D [23:05:49]state=0 [23:05:49]No paper [23:05:49]int [23:05:49]Write to MH i2c: 01 00 00 6E 8A F8 [23:05:49]*** FLAG_PRN_PAP2 set [23:05:49]Write i2c OK [23:05:49]MH_I2C_Read... [23:05:49]Read from MH i2c: 01 [23:05:49]MH_I2C_Read... [23:05:49]Read from MH i2c: 01 07 00 [23:05:49]MH_I2C_Read... [23:05:49]Read from MH i2c: 01 07 00 6E 8A 00 03 00 00 00 FF 0F 10 [23:05:49]state=0 [23:05:49]No paper [23:05:49]Cover opened [23:05:52]OFD Sender: No OFD packet to send [23:05:54]Write to MH i2c: 01 00 00 6F 8A F9 [23:05:54]Write i2c OK [23:05:54]MH_I2C_Read... [23:05:54]Read from MH i2c: 01 [23:05:54]MH_I2C_Read... [23:05:54]Read from MH i2c: 01 07 00 [23:05:54]MH_I2C_Read... [23:05:54]Read from MH i2c: 01 07 00 6F 8A 00 03 00 00 00 FF 0F 11 [23:05:54]state=3 [23:05:54]No paper [23:05:54]Cover opened [23:05:55]int [23:05:55]Write to MH i2c: 01 00 00 70 8A FA [23:05:55]Write i2c OK [23:05:55]MH_I2C_Read... [23:05:55]Read from MH i2c: 01 [23:05:55]MH_I2C_Read... [23:05:55]Read from MH i2c: 01 07 00 [23:05:55]MH_I2C_Read... [23:05:55]*** FLAG_PRN_PAP2 reset [23:05:55]*** FLAG_PRN_PAP1 reset [23:05:55]Read from MH i2c: 01 07 00 70 8A 00 00 00 00 00 FF 0F 0F [23:05:55]state=3 [23:05:55]Cover closed [23:05:57]OFD Sender: No OFD packet to send [23:06:02]OFD Sender: No OFD packet to send [23:06:07]OFD Sender: No OFD packet to send [23:06:12]OFD Sender: No OFD packet to send [23:06:17]OFD Sender: No OFD packet to send [23:06:22]OFD Sender: No OFD packet to send [23:06:27]OFD Sender: No OFD packet to send [23:06:32]OFD Sender: No OFD packet to send [23:06:37]OFD Sender: No OFD packet to send [23:06:42]OFD Sender: No OFD packet to send [23:06:47]OFD Sender: No OFD packet to send [23:06:52]OFD Sender: No OFD packet to send [23:06:57]OFD Sender: No OFD packet to send [23:07:02]OFD Sender: No OFD packet to send [23:07:07]OFD Sender: No OFD packet to send [23:07:12]OFD Sender: No OFD packet to send [23:07:17]OFD Sender: No OFD packet to send [23:07:22]OFD Sender: No OFD packet to send [23:07:27]OFD Sender: No OFD packet to send [23:07:32]OFD Sender: No OFD packet to send [23:07:37]OFD Sender: No OFD packet to send [23:07:42]OFD Sender: No OFD packet to send [23:07:47]OFD Sender: No OFD packet to send [23:07:52]OFD Sender: No OFD packet to send [23:07:57]OFD Sender: No OFD packet to send [23:08:02]OFD Sender: No OFD packet to send [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:27]OFD Sender: No OFD packet to send [23:08:32]OFD Sender: No OFD packet to send [23:08:37]OFD Sender: No OFD packet to send [23:08:42]OFD Sender: No OFD packet to send [23:08:47]OFD Sender: No OFD packet to send [23:08:52]OFD Sender: No OFD packet to send [23:08:57]OFD Sender: No OFD packet to send [23:09:02]OFD Sender: No OFD packet to send [23:09:07]OFD Sender: No OFD packet to send [23:09:12]OFD Sender: No OFD packet to send [23:09:17]OFD Sender: No OFD packet to send [23:09:22]OFD Sender: No OFD packet to send [23:09:27]OFD Sender: No OFD packet to send [23:09:32]OFD Sender: No OFD packet to send [23:09:37]OFD Sender: No OFD packet to send [23:09:42]OFD Sender: No OFD packet to send [23:09:47]OFD Sender: No OFD packet to send [23:09:52]OFD Sender: No OFD packet to send [23:09:57]OFD Sender: No OFD packet to send [23:10:02]OFD Sender: No OFD packet to send [23:10:07]OFD Sender: No OFD packet to send [23:10:12]OFD Sender: No OFD packet to send [23:10:17]OFD Sender: No OFD packet to send [23:10:22]OFD Sender: No OFD packet to send [23:10:27]OFD Sender: No OFD packet to send [23:10:32]OFD Sender: No OFD packet to send [23:10:37]OFD Sender: No OFD packet to send [23:10:42]OFD Sender: No OFD packet to send [23:10:47]OFD Sender: No OFD packet to send [23:10:52]OFD Sender: No OFD packet to send [23:10:57]OFD Sender: No OFD packet to send [23:11:02]OFD Sender: No OFD packet to send [23:11:07]OFD Sender: No OFD packet to send [23:11:12]OFD Sender: No OFD packet to send [23:11:17]OFD Sender: No OFD packet to send [23:11:22]OFD Sender: No OFD packet to send [23:11:27]OFD Sender: No OFD packet to send [23:11:32]OFD Sender: No OFD packet to send [23:11:37]OFD Sender: No OFD packet to send [23:11:42]OFD Sender: No OFD packet to send [23:11:47]OFD Sender: No OFD packet to send [23:11:52]OFD Sender: No OFD packet to send [23:11:57]OFD Sender: No OFD packet to send [23:12:02]OFD Sender: No OFD packet to send [23:12:07]OFD Sender: No OFD packet to send [23:12:12]OFD Sender: No OFD packet to send [23:12:13]accept exits with 7 [23:12:13]New connection [23:12:13]New thread 3067383140 created [23:12:13]Thread 3067239780 joined [23:12:13]Waiting for new connection... [23:12:13] Sock 7.Parse request [23:12:13]Sock 7.Check first char [23:12:13]Sock 7.First char is OK [23:12:13]request: POST /json_proto HTTP/1.0 [23:12:13]Method: POST [23:12:13]URL: /json_proto [23:12:13]Method is POST - this is cgi request [23:12:13]url: /json_proto [23:12:13]query_string will be loaded in cgi processing [23:12:13]execute_cgi json_proto POST (null) [23:12:13]execute_cgi path=json_proto method=POST [23:12:13]POST find Content-Length [23:12:13]Host: 172.17.45.7:8080 [23:12:13]Content-Length: 682 [23:12:13]Content-Type: application/json [23:12:13] [23:12:13]POST finish read [23:12:13]Found Content-Length = 682 [23:12:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:13]execute_script... [23:12: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)949862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:13]POST & json_proto [23:12:13]process_json_proto [23:12:13]json parsed OK: [23:12:13]protocol is kg_v1.0 [23:12:13]action value=close_receipt [23:12:13]process_action close_receipt [23:12:13]cmd_close_receipt [23:12:13]MH_GetDate [23:12:13]Write to MH i2c: F0 00 00 71 8A EA [23:12:13]Write i2c OK [23:12:13]MH_I2C_Read... [23:12:13]Read from MH i2c: F0 [23:12:13]MH_I2C_Read... [23:12:13]Read from MH i2c: F0 09 00 [23:12:13]MH_I2C_Read... [23:12:13]Read from MH i2c: F0 09 00 71 8A 00 D5 21 A8 66 90 0F 3E 66 3A [23:12:13]GetLastDocTimeStamp 1722294216 [23:12:13]current date 1722294741 [23:12:13]FM_GetShiftState [23:12:13]SAM_PROTO_GetShiftState [23:12:13]wFMCommunicate request_size=4 [23:12:13]MH_SAM_APDU [23:12:13]CAPDU: 80 13 01 00 [23:12:13]Write to MH i2c: E2 08 00 72 8A 80 13 01 00 00 00 00 00 79 [23:12:13]Write i2c OK [23:12:13]MH_I2C_Read... [23:12:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:13]Read from MH i2c: E2 [23:12:13]MH_I2C_Read... [23:12:13]Read from MH i2c: E2 0E 00 [23:12:13]MH_I2C_Read... [23:12:13]Read from MH i2c: E2 0E 00 72 8A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 A7 [23:12:13]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [23:12:13]wFMCommunicate OK [23:12:13]SAM_PROTO_GetShiftState done [23:12:13]FM_GetShiftState done [23:12:13]opened in 1722211641 [23:12:13]opened+sec_in_day 1722298041 [23:12:13]quantity*price = 120006 [23:12:13]sum+1 = 120007 [23:12:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 319 29.07.2024 23:12 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118943 ФПД: 4346541207811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T231221&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118943&fm=4346541207811&tin=02508201610067®Number=0000000000092660&sum=120000 [23:12:14]StoreToDocumentArchive [23:12:14]shift 434 fd 118943 [23:12:14]save to /storage/0434/doc_00118943 [23:12:14]save last doc name /storage/0434/doc_00118943 to /storage/kkm_last_doc_name [23:12:14]save OK [23:12:14]Clear old archive folders... [23:12:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:12:14]tlvbuf is 0203E350 [23:12:14]SAM_PROTO_ClearQueue [23:12:14]wFMCommunicate request_size=4 [23:12:14]MH_SAM_APDU [23:12:14]CAPDU: 80 09 00 00 [23:12:14]Write to MH i2c: E2 08 00 7F 8A 80 09 00 00 00 00 00 00 7B [23:12:14]Write i2c OK [23:12:14]MH_I2C_Read... [23:12:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:12:14]Read from MH i2c: E2 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 03 00 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 03 00 7F 8A 00 90 00 7D [23:12:14]RAPDU: 90 00 [23:12:14]wFMCommunicate OK [23:12:14]SAM_PROTO_ClearQueue done [23:12:14]KKMCreateOFDPacket [23:12:14]OFDProtocolAddRootSTLVToBuf [23:12:14]FM_MakeSignedData [23:12:14]FM_MakeSignedData [23:12:14]SAM_PROTO_SignData [23:12:14]wFMCommunicate request_size=4 [23:12:14]MH_SAM_APDU [23:12:14]CAPDU: 80 0D 01 02 [23:12:14]Write to MH i2c: E2 08 00 80 8A 80 0D 01 02 00 00 00 00 83 [23:12:14]Write i2c OK [23:12:14]MH_I2C_Read... [23:12:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:12:14]Read from MH i2c: E2 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 03 00 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 03 00 80 8A 00 90 00 7E [23:12:14]RAPDU: 90 00 [23:12:14]wFMCommunicate OK [23:12:14]wFMCommunicate request_size=255 [23:12:14]MH_SAM_APDU [23:12: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 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 D5 21 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9F D0 01 00 35 04 06 00 03 [23:12:14]Write to MH i2c: E2 02 01 81 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 D5 21 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9F D0 01 00 35 04 06 00 03 00 00 E3 [23:12:14]Write i2c OK [23:12:14]MH_I2C_Read... [23:12:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:14]Read from MH i2c: E2 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 03 00 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 03 00 81 8A 00 90 00 7F [23:12:14]RAPDU: 90 00 [23:12:14]wFMCommunicate OK [23:12:14]wFMCommunicate request_size=10 [23:12:14]MH_SAM_APDU [23:12:14]CAPDU: 80 0D 02 02 05 F4 02 0B 71 03 [23:12:14]Write to MH i2c: E2 0D 00 82 8A 80 0D 02 02 05 00 F4 02 0B 71 03 00 00 05 [23:12:14]Write i2c OK [23:12:14]MH_I2C_Read... [23:12:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:14]Read from MH i2c: E2 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 03 00 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 03 00 82 8A 00 90 00 80 [23:12:14]RAPDU: 90 00 [23:12:14]wFMCommunicate OK [23:12:14]wFMCommunicate request_size=4 [23:12:14]MH_SAM_APDU [23:12:14]CAPDU: 80 0D 03 02 [23:12:14]Write to MH i2c: E2 08 00 83 8A 80 0D 03 02 00 00 00 00 88 [23:12:14]Write i2c OK [23:12:14]MH_I2C_Read... [23:12:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:12:14]Read from MH i2c: E2 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 0B 00 [23:12:14]MH_I2C_Read... [23:12:14]Read from MH i2c: E2 0B 00 83 8A 00 43 38 63 1E 3E ED B4 76 90 00 DA [23:12:15]RAPDU: 43 38 63 1E 3E ED B4 76 90 00 [23:12:15]wFMCommunicate OK [23:12:15]SAM_PROTO_SignData done [23:12:15]FM_MakeSignedData done [23:12:15]CreateOFDProtocolMessage [23:12:15]wFMCommunicate request_size=4 [23:12:15]MH_SAM_APDU [23:12:15]CAPDU: 80 11 00 00 [23:12:15]Write to MH i2c: E2 08 00 84 8A 80 11 00 00 00 00 00 00 88 [23:12:15]Write i2c OK [23:12:15]MH_I2C_Read... [23:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:15]Read from MH i2c: E2 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: E2 17 00 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: E2 17 00 84 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E3 [23:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:12:15]wFMCommunicate OK [23:12:15]CreateOFDProtocolMessage done [23:12:15]OFDSenderStorePacket 118943 [23:12:15]StoreOFDPacket docnum=118943 [23:12:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 75 E8 07 01 C4 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 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 D5 21 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9F D0 01 00 35 04 06 00 03 F4 02 0B 71 03 43 38 63 1E 3E ED B4 76 [23:12:15]CheckFolder [23:12:15]dirname=/storage/ofd_packets [23:12:15]CheckFolder done [23:12:15]ProducePacketName [23:12:15]name=ofd_packets/00118943 [23:12:15]NVStorageSaveData ofd_packets/00118943 [23:12:15]File name is /storage/ofd_packets/00118943 [23:12:15]Write 301 bytes [23:12:15]NVStorageSaveData done [23:12:15]OFDSenderStorePacket done [23:12:15]KKMCreateOFDPacket done [23:12:15]NVStorageSaveData kkm_last_timestamp [23:12:15]File name is /storage/kkm_last_timestamp [23:12:15]Write 4 bytes [23:12:15]NVStorageSaveData done [23:12:15]ExternCall_PrintAddStr [23:12:15]wPrintStart [23:12:15]Write to MH i2c: 01 00 00 85 8A 0F [23:12:15]Write i2c OK [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: 01 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: 01 07 00 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: 01 07 00 85 8A 00 00 00 00 00 FF 0F 24 [23:12:15]RasterBufferAndPrint [23:12:15]line Счет N : (1)949862 [23:12:15]line ИНН: 02508201610067 [23:12:15]line Контрольно-Кассовый Чек [23:12:15]line ПРОДАЖА [23:12:15]line ТРК (МРК, ГНК) : 51 [23:12:15]line Товар: 2710124130 [23:12:15]line Аи-92-К-4 [23:12:15]line 17.700 * 67.80 [23:12:15]line = 1200.06 [23:12:15]line НДС 12% НСП 1% [23:12:15]line > о реализуемом товаре [23:12:15]line ОКРУГЛЕНИЕ: -0.06 [23:12:15]line ИТОГО: 1200.00 [23:12:15]line Внесено: 1200.00 [23:12:15]line СДАЧА: 0.00 [23:12:15]line НСП 1% : 10.62 [23:12:15]line НДС 12% : 127.44 [23:12:15]line Наличными: 1200.00 [23:12:15]line Безнал.: 0.00 [23:12:15]line Место: АЗС № 134 "Партнер Нефть" [23:12:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:12:15]line СНО: Общий режим [23:12:15]line Чек 319 29.07.2024 23:12 [23:12:15]line Смена: 434 ФФД: 1.0 [23:12:15]line ЗНМ: 0300000044 [23:12:15]line РНМ: 0000000000092660 [23:12:15]line Версия ККМ: 001 [23:12:15]line ФМ: 0000000000874939 [23:12:15]line ФД: 118943 [23:12:15]line ФПД: 4346541207811 [23:12:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T231221&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118943&fm=4346541207811&tin=02508201610067®Number=0000000000092660&sum=120000 [23:12:15]written 0, free lines is 4095 [23:12:15]OFD Sender: Processing packet 118943 [packets to send 86, broken 85] [23:12:15]ProducePacketName [23:12:15]name=ofd_packets/00118943 [23:12:15]OFD Sender: To server: pG, [23:12:15]CommunicateWithHost lk.salyk.kg:30040 [23:12:15]ConnectInit lk.salyk.kg [23:12:15]Connected sock=10 [23:12:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 75 E8 07 01 C4 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 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 D5 21 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9F D0 01 00 35 04 06 00 03 F4 02 0B 71 03 43 38 63 1E 3E ED B4 76 [23:12:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 73 F6 47 00 2A 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9F D0 01 00 F4 03 04 00 61 CF A7 66 B6 04 01 00 00 AF C1 10 6F 2A 3D A1 36 [23:12:15]CommunicateWithHost err = 0 [23:12:15]CheckOFDResponse [23:12:15]1017 (14) - 77093643461234 [23:12:15]1041 (16) - 0000000000874939 [23:12:15]1040 (4) - 118943 [23:12:15]1012 (4) - 29.07.2024 17:20 [23:12:15]1206 (1) - 0 [23:12:15]OFD Sender: Remove packet 118943 [23:12:15]ProducePacketName [23:12:15]name=ofd_packets/00118943 [23:12:15]NVStorageDeleteData [23:12:15]Write to MH i2c: 01 00 00 AF 8A 39 [23:12:15]Write i2c OK [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: 01 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: 01 07 00 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: 01 07 00 AF 8A 00 00 00 00 00 CA 0C 16 [23:12:15]RasterBufferAndPrint [23:12:15]line [23:12:15]line [23:12:15]line [23:12:15]line [23:12:15]line [23:12:15]written 0, free lines is 3280 [23:12:15]MH_Cut [23:12:15]Write to MH i2c: D1 01 00 B6 8A 01 12 [23:12:15]Write i2c OK [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: D1 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: D1 01 00 [23:12:15]MH_I2C_Read... [23:12:15]Read from MH i2c: D1 01 00 B6 8A 00 11 [23:12:15]Write to MH i2c: 01 00 00 B7 8A 41 [23:12:15]Write i2c OK [23:12:15]MH_I2C_Read... [23:12:16]OFD Sender: No OFD packet to send [23:12:16]*** Cut start [23:12:16]*** Partial cut [23:12:16]*** CUTSNS_PIN = 1 [23:12:16]*** CUTSNS_PIN = 0 [23:12:16]*** Brake cut motor [23:12:17]Read from MH i2c: 01 [23:12:17]MH_I2C_Read... [23:12:17]*** Stop cut motor [23:12:17]*** Cut end [23:12:17]Read from MH i2c: 01 07 00 [23:12:17]MH_I2C_Read... [23:12:17]Read from MH i2c: 01 07 00 B7 8A 00 00 00 00 00 FF 0F 56 [23:12:17]process_action close_receipt done [23:12:17]requested_data is exist [23:12:17]produce_requested_data [23:12:17]requested_item fm.sn is exist - process it [23:12:17]wFMCommunicate request_size=4 [23:12:17]MH_SAM_APDU [23:12:17]CAPDU: 80 11 00 00 [23:12:17]Write to MH i2c: E2 08 00 B8 8A 80 11 00 00 00 00 00 00 BC [23:12:17]Write i2c OK [23:12:17]MH_I2C_Read... [23:12:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:17]Read from MH i2c: E2 [23:12:17]MH_I2C_Read... [23:12:17]Read from MH i2c: E2 17 00 [23:12:17]MH_I2C_Read... [23:12:17]Read from MH i2c: E2 17 00 B8 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 17 [23:12:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:12:17]wFMCommunicate OK [23:12:17]requested_item fd.num is exist - process it [23:12:17]SAM_PROTO_GetFieldsCounters [23:12:17]wFMCommunicate request_size=4 [23:12:17]MH_SAM_APDU [23:12:17]CAPDU: 80 13 00 00 [23:12:17]Write to MH i2c: E2 08 00 B9 8A 80 13 00 00 00 00 00 00 BF [23:12:17]Write i2c OK [23:12:17]MH_I2C_Read... [23:12:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:12:17]Read from MH i2c: E2 [23:12:17]MH_I2C_Read... [23:12:17]Read from MH i2c: E2 62 00 [23:12:17]MH_I2C_Read... [23:12:17]Read from MH i2c: E2 62 00 B9 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9F D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 C9 [23:12: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 9F D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:12:17]wFMCommunicate OK [23:12:17]SAM_PROTO_GetFieldsCounters done [23:12:17]requested_item shift.num is exist - process it [23:12:17]requested_item shift.opened is exist - process it [23:12:17]req_shift_opened [23:12:17]FM_GetShiftState [23:12:17]SAM_PROTO_GetShiftState [23:12:17]wFMCommunicate request_size=4 [23:12:17]MH_SAM_APDU [23:12:17]CAPDU: 80 13 01 00 [23:12:17]Write to MH i2c: E2 08 00 BA 8A 80 13 01 00 00 00 00 00 C1 [23:12:17]Write i2c OK [23:12:17]MH_I2C_Read... [23:12:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:17]Read from MH i2c: E2 [23:12:17]MH_I2C_Read... [23:12:17]Read from MH i2c: E2 0E 00 [23:12:17]MH_I2C_Read... [23:12:17]Read from MH i2c: E2 0E 00 BA 8A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 EF [23:12:17]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [23:12:17]wFMCommunicate OK [23:12:17]SAM_PROTO_GetShiftState done [23:12:17]FM_GetShiftState done [23:12:17]req_shift_opened done [23:12:17]requested_item shift.open_date is exist - process it [23:12:17]req_shift_open_date [23:12:17]req_shift_open_date done [23:12:17]produce_requested_data done [23:12:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118943,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [23:12:17]process_action_free close_receipt [23:12:17]json_value_free [23:12:17]json_value_free done [23:12:17]process_json_proto returns [23:12:17]Send response to host [23:12:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118943,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [23:12:17]free response buf [23:12:17]execute_script done [23:12:17]execute_script returns [23:12:17]free content buf [23:12:17]Sock 7.Close socket [23:12:17]Sock 7.Thread stoped [23:12:21]OFD Sender: No OFD packet to send [23:12:26]OFD Sender: No OFD packet to send [23:12:31]OFD Sender: No OFD packet to send [23:12:36]OFD Sender: No OFD packet to send [23:12:41]OFD Sender: No OFD packet to send [23:12:46]OFD Sender: No OFD packet to send [23:12:51]OFD Sender: No OFD packet to send [23:12:56]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13:36]OFD Sender: No OFD packet to send [23:13:41]OFD Sender: No OFD packet to send [23:13:46]OFD Sender: No OFD packet to send [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:14:01]OFD Sender: No OFD packet to send [23:14:06]OFD Sender: No OFD packet to send [23:14:11]OFD Sender: No OFD packet to send [23:14:16]OFD Sender: No OFD packet to send [23:14:21]OFD Sender: No OFD packet to send [23:14:26]OFD Sender: No OFD packet to send [23:14:31]OFD Sender: No OFD packet to send [23:14:36]OFD Sender: No OFD packet to send [23:14:41]OFD Sender: No OFD packet to send [23:14:46]OFD Sender: No OFD packet to send [23:14:51]OFD Sender: No OFD packet to send [23:14:56]OFD Sender: No OFD packet to send [23:15:01]OFD Sender: No OFD packet to send [23:15:06]OFD Sender: No OFD packet to send [23:15:11]OFD Sender: No OFD packet to send [23:15:16]OFD Sender: No OFD packet to send [23:15:21]OFD Sender: No OFD packet to send [23:15:26]OFD Sender: No OFD packet to send [23:15:31]OFD Sender: No OFD packet to send [23:15:36]OFD Sender: No OFD packet to send [23:15:41]OFD Sender: No OFD packet to send [23:15:46]OFD Sender: No OFD packet to send [23:15:51]OFD Sender: No OFD packet to send [23:15:56]OFD Sender: No OFD packet to send [23:16:01]OFD Sender: No OFD packet to send [23:16:06]OFD Sender: No OFD packet to send [23:16:11]OFD Sender: No OFD packet to send [23:16:16]OFD Sender: No OFD packet to send [23:16:21]OFD Sender: No OFD packet to send [23:16:26]OFD Sender: No OFD packet to send [23:16:31]OFD Sender: No OFD packet to send [23:16:36]OFD Sender: No OFD packet to send [23:16:41]OFD Sender: No OFD packet to send [23:16:46]OFD Sender: No OFD packet to send [23:16:51]OFD Sender: No OFD packet to send [23:16:56]OFD Sender: No OFD packet to send [23:17:01]OFD Sender: No OFD packet to send [23:17:06]OFD Sender: No OFD packet to send [23:17:11]OFD Sender: No OFD packet to send [23:17:16]OFD Sender: No OFD packet to send [23:17:21]OFD Sender: No OFD packet to send [23:17:26]OFD Sender: No OFD packet to send [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:46]OFD Sender: No OFD packet to send [23:17:51]OFD Sender: No OFD packet to send [23:17:56]OFD Sender: No OFD packet to send [23:18:01]OFD Sender: No OFD packet to send [23:18:06]OFD Sender: No OFD packet to send [23:18:11]OFD Sender: No OFD packet to send [23:18:16]OFD Sender: No OFD packet to send [23:18:21]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:56]OFD Sender: No OFD packet to send [23:18:58]accept exits with 9 [23:18:58]New connection [23:18:58]New thread 3067239780 created [23:18:58]Thread 3067383140 joined [23:18:58]Waiting for new connection... [23:18:58] Sock 9.Parse request [23:18:58]Sock 9.Check first char [23:18:58]Sock 9.First char is OK [23:18:58]request: POST /json_proto HTTP/1.0 [23:18:58]Method: POST [23:18:58]URL: /json_proto [23:18:58]Method is POST - this is cgi request [23:18:58]url: /json_proto [23:18:58]query_string will be loaded in cgi processing [23:18:58]execute_cgi json_proto POST (null) [23:18:58]execute_cgi path=json_proto method=POST [23:18:58]POST find Content-Length [23:18:58]Host: 172.17.45.7:8080 [23:18:58]Content-Length: 679 [23:18:58]Content-Type: application/json [23:18:58] [23:18:58]POST finish read [23:18:58]Found Content-Length = 679 [23:18:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:58]execute_script... [23:18:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:58]POST & json_proto [23:18:58]process_json_proto [23:18:58]json parsed OK: [23:18:58]protocol is kg_v1.0 [23:18:58]action value=close_receipt [23:18:58]process_action close_receipt [23:18:58]cmd_close_receipt [23:18:58]MH_GetDate [23:18:58]Write to MH i2c: F0 00 00 BB 8A 34 [23:18:58]Write i2c OK [23:18:58]MH_I2C_Read... [23:18:58]Read from MH i2c: F0 [23:18:58]MH_I2C_Read... [23:18:58]Read from MH i2c: F0 09 00 [23:18:58]MH_I2C_Read... [23:18:58]Read from MH i2c: F0 09 00 BB 8A 00 69 23 A8 66 90 0F 3E 66 1A [23:18:58]GetLastDocTimeStamp 1722294741 [23:18:58]current date 1722295145 [23:18:58]FM_GetShiftState [23:18:58]SAM_PROTO_GetShiftState [23:18:58]wFMCommunicate request_size=4 [23:18:58]MH_SAM_APDU [23:18:58]CAPDU: 80 13 01 00 [23:18:58]Write to MH i2c: E2 08 00 BC 8A 80 13 01 00 00 00 00 00 C3 [23:18:58]Write i2c OK [23:18:58]MH_I2C_Read... [23:18:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:58]Read from MH i2c: E2 [23:18:58]MH_I2C_Read... [23:18:58]Read from MH i2c: E2 0E 00 [23:18:58]MH_I2C_Read... [23:18:58]Read from MH i2c: E2 0E 00 BC 8A 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F1 [23:18:58]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [23:18:58]wFMCommunicate OK [23:18:58]SAM_PROTO_GetShiftState done [23:18:58]FM_GetShiftState done [23:18:58]opened in 1722211641 [23:18:58]opened+sec_in_day 1722298041 [23:18:58]quantity*price = 100050 [23:18:58]sum+1 = 100052 [23:18:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 320 29.07.2024 23:19 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118944 ФПД: 114603587061684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T231906&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118944&fm=114603587061684&tin=02508201610067®Number=0000000000092660&sum=100000 [23:18:59]StoreToDocumentArchive [23:18:59]shift 434 fd 118944 [23:18:59]save to /storage/0434/doc_00118944 [23:18:59]save last doc name /storage/0434/doc_00118944 to /storage/kkm_last_doc_name [23:18:59]save OK [23:18:59]Clear old archive folders... [23:18:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:18:59]tlvbuf is 02052C00 [23:18:59]SAM_PROTO_ClearQueue [23:18:59]wFMCommunicate request_size=4 [23:18:59]MH_SAM_APDU [23:18:59]CAPDU: 80 09 00 00 [23:18:59]Write to MH i2c: E2 08 00 C9 8A 80 09 00 00 00 00 00 00 C5 [23:18:59]Write i2c OK [23:18:59]MH_I2C_Read... [23:18:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:18:59]Read from MH i2c: E2 [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: E2 03 00 [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: E2 03 00 C9 8A 00 90 00 C7 [23:18:59]RAPDU: 90 00 [23:18:59]wFMCommunicate OK [23:18:59]SAM_PROTO_ClearQueue done [23:18:59]KKMCreateOFDPacket [23:18:59]OFDProtocolAddRootSTLVToBuf [23:18:59]FM_MakeSignedData [23:18:59]FM_MakeSignedData [23:18:59]SAM_PROTO_SignData [23:18:59]wFMCommunicate request_size=4 [23:18:59]MH_SAM_APDU [23:18:59]CAPDU: 80 0D 01 02 [23:18:59]Write to MH i2c: E2 08 00 CA 8A 80 0D 01 02 00 00 00 00 CD [23:18:59]Write i2c OK [23:18:59]MH_I2C_Read... [23:18:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:18:59]Read from MH i2c: E2 [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: E2 03 00 [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: E2 03 00 CA 8A 00 90 00 C8 [23:18:59]RAPDU: 90 00 [23:18:59]wFMCommunicate OK [23:18:59]wFMCommunicate request_size=255 [23:18:59]MH_SAM_APDU [23:18:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 6A 23 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A0 D0 01 00 35 04 06 00 68 3B 3A 18 [23:18:59]Write to MH i2c: E2 02 01 CB 8A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 6A 23 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A0 D0 01 00 35 04 06 00 68 3B 3A 18 00 00 52 [23:18:59]Write i2c OK [23:18:59]MH_I2C_Read... [23:18:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:59]Read from MH i2c: E2 [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: E2 03 00 [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: E2 03 00 CB 8A 00 90 00 C9 [23:18:59]RAPDU: 90 00 [23:18:59]wFMCommunicate OK [23:18:59]wFMCommunicate request_size=7 [23:18:59]MH_SAM_APDU [23:18:59]CAPDU: 80 0D 02 02 02 C7 B4 [23:18:59]Write to MH i2c: E2 0A 00 CC 8A 80 0D 02 02 02 00 C7 B4 00 00 4F [23:18:59]Write i2c OK [23:18:59]MH_I2C_Read... [23:18:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:59]Read from MH i2c: E2 [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: E2 03 00 [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: E2 03 00 CC 8A 00 90 00 CA [23:18:59]RAPDU: 90 00 [23:18:59]wFMCommunicate OK [23:18:59]wFMCommunicate request_size=4 [23:18:59]MH_SAM_APDU [23:18:59]CAPDU: 80 0D 03 02 [23:18:59]Write to MH i2c: E2 08 00 CD 8A 80 0D 03 02 00 00 00 00 D2 [23:18:59]Write i2c OK [23:18:59]MH_I2C_Read... [23:18:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:18:59]Read from MH i2c: E2 [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: E2 0B 00 [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: E2 0B 00 CD 8A 00 D4 00 EF E4 CF 25 27 53 90 00 E8 [23:18:59]RAPDU: D4 00 EF E4 CF 25 27 53 90 00 [23:18:59]wFMCommunicate OK [23:18:59]SAM_PROTO_SignData done [23:18:59]FM_MakeSignedData done [23:18:59]CreateOFDProtocolMessage [23:18:59]wFMCommunicate request_size=4 [23:18:59]MH_SAM_APDU [23:18:59]CAPDU: 80 11 00 00 [23:18:59]Write to MH i2c: E2 08 00 CE 8A 80 11 00 00 00 00 00 00 D2 [23:18:59]Write i2c OK [23:18:59]MH_I2C_Read... [23:18:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:59]Read from MH i2c: E2 [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: E2 17 00 [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: E2 17 00 CE 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2D [23:18:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:18:59]wFMCommunicate OK [23:18:59]CreateOFDProtocolMessage done [23:18:59]OFDSenderStorePacket 118944 [23:18:59]StoreOFDPacket docnum=118944 [23:18:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E8 A4 04 01 9C DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 6A 23 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A0 D0 01 00 35 04 06 00 68 3B 3A 18 C7 B4 D4 00 EF E4 CF 25 27 53 [23:18:59]CheckFolder [23:18:59]dirname=/storage/ofd_packets [23:18:59]CheckFolder done [23:18:59]ProducePacketName [23:18:59]name=ofd_packets/00118944 [23:18:59]NVStorageSaveData ofd_packets/00118944 [23:18:59]File name is /storage/ofd_packets/00118944 [23:18:59]Write 298 bytes [23:18:59]NVStorageSaveData done [23:18:59]OFDSenderStorePacket done [23:18:59]KKMCreateOFDPacket done [23:18:59]NVStorageSaveData kkm_last_timestamp [23:18:59]File name is /storage/kkm_last_timestamp [23:18:59]Write 4 bytes [23:18:59]NVStorageSaveData done [23:18:59]ExternCall_PrintAddStr [23:18:59]wPrintStart [23:18:59]Write to MH i2c: 01 00 00 CF 8A 59 [23:18:59]Write i2c OK [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: 01 [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: 01 07 00 [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: 01 07 00 CF 8A 00 00 00 00 00 FF 0F 6E [23:18:59]RasterBufferAndPrint [23:18:59]line Счет N : (1)949863 [23:18:59]line ИНН: 02508201610067 [23:18:59]line Контрольно-Кассовый Чек [23:18:59]line ПРОДАЖА [23:18:59]line ТРК (МРК, ГНК) : 64 [23:18:59]line Товар: 2710194800 [23:18:59]line ДТ-К-5 [23:18:59]line 13.130 * 76.20 [23:18:59]line = 1000.51 [23:18:59]line НДС 12% НСП 1% [23:18:59]line > о реализуемом товаре [23:18:59]line ОКРУГЛЕНИЕ: -0.51 [23:18:59]line ИТОГО: 1000.00 [23:18:59]line Внесено: 1000.00 [23:18:59]line СДАЧА: 0.00 [23:18:59]line НСП 1% : 8.85 [23:18:59]line НДС 12% : 106.25 [23:18:59]line Наличными: 1000.00 [23:18:59]line Безнал.: 0.00 [23:18:59]line Место: АЗС № 134 "Партнер Нефть" [23:18:59]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:18:59]line СНО: Общий режим [23:18:59]line Чек 320 29.07.2024 23:19 [23:18:59]line Смена: 434 ФФД: 1.0 [23:18:59]line ЗНМ: 0300000044 [23:18:59]line РНМ: 0000000000092660 [23:18:59]line Версия ККМ: 001 [23:18:59]line ФМ: 0000000000874939 [23:18:59]line ФД: 118944 [23:18:59]line ФПД: 114603587061684 [23:18:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T231906&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118944&fm=114603587061684&tin=02508201610067®Number=0000000000092660&sum=100000 [23:19:00]OFD Sender: Processing packet 118944 [packets to send 86, broken 85] [23:19:00]ProducePacketName [23:19:00]name=ofd_packets/00118944 [23:19:00]OFD Sender: To server: pG, [23:19:00]CommunicateWithHost lk.salyk.kg:30040 [23:19:00]ConnectInit lk.salyk.kg [23:19:00]written 0, free lines is 4095 [23:19:00]Connected sock=7 [23:19:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E8 A4 04 01 9C DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 6A 23 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A0 D0 01 00 35 04 06 00 68 3B 3A 18 C7 B4 D4 00 EF E4 CF 25 27 53 [23:19:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8C F5 47 00 ED 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 34 39 33 39 10 04 04 00 A0 D0 01 00 F4 03 04 00 F6 D0 A7 66 B6 04 01 00 00 5A F8 56 C9 16 31 24 B8 [23:19:00]CommunicateWithHost err = 0 [23:19:00]CheckOFDResponse [23:19:00]1017 (14) - 77093643461234 [23:19:00]1041 (16) - 0000000000874939 [23:19:00]1040 (4) - 118944 [23:19:00]1012 (4) - 29.07.2024 17:27 [23:19:00]1206 (1) - 0 [23:19:00]OFD Sender: Remove packet 118944 [23:19:00]ProducePacketName [23:19:00]name=ofd_packets/00118944 [23:19:00]NVStorageDeleteData [23:19:00]Write to MH i2c: 01 00 00 F9 8A 83 [23:19:00]Write i2c OK [23:19:00]MH_I2C_Read... [23:19:00]Read from MH i2c: 01 [23:19:00]MH_I2C_Read... [23:19:00]Read from MH i2c: 01 07 00 [23:19:00]MH_I2C_Read... [23:19:00]Read from MH i2c: 01 07 00 F9 8A 00 00 00 00 00 CF 0C 65 [23:19:00]RasterBufferAndPrint [23:19:00]line [23:19:00]line [23:19:00]line [23:19:00]line [23:19:00]line [23:19:00]written 0, free lines is 3285 [23:19:00]MH_Cut [23:19:00]Write to MH i2c: D1 01 00 00 8B 01 5D [23:19:00]Write i2c OK [23:19:00]MH_I2C_Read... [23:19:00]Read from MH i2c: D1 [23:19:00]MH_I2C_Read... [23:19:00]Read from MH i2c: D1 01 00 [23:19:00]MH_I2C_Read... [23:19:00]Read from MH i2c: D1 01 00 00 8B 00 5C [23:19:00]Write to MH i2c: 01 00 00 01 8B 8C [23:19:00]Write i2c OK [23:19:00]MH_I2C_Read... [23:19:01]OFD Sender: No OFD packet to send [23:19:01]*** Cut start [23:19:01]*** Partial cut [23:19:01]*** CUTSNS_PIN = 1 [23:19:01]*** CUTSNS_PIN = 0 [23:19:01]*** Brake cut motor [23:19:01]Read from MH i2c: 01 [23:19:02]MH_I2C_Read... [23:19:02]*** Stop cut motor [23:19:02]*** Cut end [23:19:02]Read from MH i2c: 01 07 00 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: 01 07 00 01 8B 00 00 00 00 00 FF 0F A1 [23:19:02]process_action close_receipt done [23:19:02]requested_data is exist [23:19:02]produce_requested_data [23:19:02]requested_item fm.sn is exist - process it [23:19:02]wFMCommunicate request_size=4 [23:19:02]MH_SAM_APDU [23:19:02]CAPDU: 80 11 00 00 [23:19:02]Write to MH i2c: E2 08 00 02 8B 80 11 00 00 00 00 00 00 07 [23:19:02]Write i2c OK [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: E2 [23:19:02]MH_I2C_Read... [23:19:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:02]Read from MH i2c: E2 17 00 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: E2 17 00 02 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 62 [23:19:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:19:02]wFMCommunicate OK [23:19:02]requested_item fd.num is exist - process it [23:19:02]SAM_PROTO_GetFieldsCounters [23:19:02]wFMCommunicate request_size=4 [23:19:02]MH_SAM_APDU [23:19:02]CAPDU: 80 13 00 00 [23:19:02]Write to MH i2c: E2 08 00 03 8B 80 13 00 00 00 00 00 00 0A [23:19:02]Write i2c OK [23:19:02]MH_I2C_Read... [23:19:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:02]Read from MH i2c: E2 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: E2 62 00 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: E2 62 00 03 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A0 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 18 [23:19:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A0 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:19:02]wFMCommunicate OK [23:19:02]SAM_PROTO_GetFieldsCounters done [23:19:02]requested_item shift.num is exist - process it [23:19:02]requested_item shift.opened is exist - process it [23:19:02]req_shift_opened [23:19:02]FM_GetShiftState [23:19:02]SAM_PROTO_GetShiftState [23:19:02]wFMCommunicate request_size=4 [23:19:02]MH_SAM_APDU [23:19:02]CAPDU: 80 13 01 00 [23:19:02]Write to MH i2c: E2 08 00 04 8B 80 13 01 00 00 00 00 00 0C [23:19:02]Write i2c OK [23:19:02]MH_I2C_Read... [23:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:02]Read from MH i2c: E2 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: E2 0E 00 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: E2 0E 00 04 8B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 3A [23:19:02]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [23:19:02]wFMCommunicate OK [23:19:02]SAM_PROTO_GetShiftState done [23:19:02]FM_GetShiftState done [23:19:02]req_shift_opened done [23:19:02]requested_item shift.open_date is exist - process it [23:19:02]req_shift_open_date [23:19:02]req_shift_open_date done [23:19:02]produce_requested_data done [23:19:02]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118944,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [23:19:02]process_action_free close_receipt [23:19:02]json_value_free [23:19:02]json_value_free done [23:19:02]process_json_proto returns [23:19:02]Send response to host [23:19:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118944,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [23:19:02]free response buf [23:19:02]execute_script done [23:19:02]execute_script returns [23:19:02]free content buf [23:19:02]Sock 9.Close socket [23:19:02]Sock 9.Thread stoped [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:38]accept exits with 10 [23:20:38]New connection [23:20:38]New thread 3067383140 created [23:20:38]Thread 3067239780 joined [23:20:38]Waiting for new connection... [23:20:38] Sock 10.Parse request [23:20:38]Sock 10.Check first char [23:20:38]Sock 10.First char is OK [23:20:38]request: POST /json_proto HTTP/1.0 [23:20:38]Method: POST [23:20:38]URL: /json_proto [23:20:38]Method is POST - this is cgi request [23:20:38]url: /json_proto [23:20:38]query_string will be loaded in cgi processing [23:20:38]execute_cgi json_proto POST (null) [23:20:38]execute_cgi path=json_proto method=POST [23:20:38]POST find Content-Length [23:20:38]Host: 172.17.45.7:8080 [23:20:38]Content-Length: 677 [23:20:38]Content-Type: application/json [23:20:38] [23:20:38]POST finish read [23:20:38]Found Content-Length = 677 [23:20:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:38]execute_script... [23:20:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:38]POST & json_proto [23:20:38]process_json_proto [23:20:38]json parsed OK: [23:20:38]protocol is kg_v1.0 [23:20:38]action value=close_receipt [23:20:38]process_action close_receipt [23:20:38]cmd_close_receipt [23:20:38]MH_GetDate [23:20:38]Write to MH i2c: F0 00 00 05 8B 7F [23:20:38]Write i2c OK [23:20:38]MH_I2C_Read... [23:20:38]Read from MH i2c: F0 [23:20:38]MH_I2C_Read... [23:20:38]Read from MH i2c: F0 09 00 [23:20:38]MH_I2C_Read... [23:20:38]Read from MH i2c: F0 09 00 05 8B 00 CE 23 A8 66 90 0F 3E 66 CA [23:20:38]GetLastDocTimeStamp 1722295146 [23:20:38]current date 1722295246 [23:20:38]FM_GetShiftState [23:20:38]SAM_PROTO_GetShiftState [23:20:38]wFMCommunicate request_size=4 [23:20:38]MH_SAM_APDU [23:20:38]CAPDU: 80 13 01 00 [23:20:38]Write to MH i2c: E2 08 00 06 8B 80 13 01 00 00 00 00 00 0E [23:20:38]Write i2c OK [23:20:38]MH_I2C_Read... [23:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:38]Read from MH i2c: E2 [23:20:38]MH_I2C_Read... [23:20:38]Read from MH i2c: E2 0E 00 [23:20:38]MH_I2C_Read... [23:20:38]Read from MH i2c: E2 0E 00 06 8B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 3C [23:20:38]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [23:20:38]wFMCommunicate OK [23:20:38]SAM_PROTO_GetShiftState done [23:20:38]FM_GetShiftState done [23:20:38]opened in 1722211641 [23:20:38]opened+sec_in_day 1722298041 [23:20:38]quantity*price = 30035 [23:20:38]sum+1 = 30036 [23:20:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 321 29.07.2024 23:20 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118945 ФПД: 80211500568981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T232046&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118945&fm=80211500568981&tin=02508201610067®Number=0000000000092660&sum=30000 [23:20:39]StoreToDocumentArchive [23:20:39]shift 434 fd 118945 [23:20:39]save to /storage/0434/doc_00118945 [23:20:39]save last doc name /storage/0434/doc_00118945 to /storage/kkm_last_doc_name [23:20:39]save OK [23:20:39]Clear old archive folders... [23:20:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:20:39]tlvbuf is 01F69DE0 [23:20:39]SAM_PROTO_ClearQueue [23:20:39]wFMCommunicate request_size=4 [23:20:39]MH_SAM_APDU [23:20:39]CAPDU: 80 09 00 00 [23:20:39]Write to MH i2c: E2 08 00 13 8B 80 09 00 00 00 00 00 00 10 [23:20:39]Write i2c OK [23:20:39]MH_I2C_Read... [23:20:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:20:39]Read from MH i2c: E2 [23:20:39]MH_I2C_Read... [23:20:39]Read from MH i2c: E2 03 00 [23:20:39]MH_I2C_Read... [23:20:39]Read from MH i2c: E2 03 00 13 8B 00 90 00 12 [23:20:39]RAPDU: 90 00 [23:20:39]wFMCommunicate OK [23:20:39]SAM_PROTO_ClearQueue done [23:20:39]KKMCreateOFDPacket [23:20:39]OFDProtocolAddRootSTLVToBuf [23:20:39]FM_MakeSignedData [23:20:39]FM_MakeSignedData [23:20:39]SAM_PROTO_SignData [23:20:39]wFMCommunicate request_size=4 [23:20:39]MH_SAM_APDU [23:20:39]CAPDU: 80 0D 01 02 [23:20:39]Write to MH i2c: E2 08 00 14 8B 80 0D 01 02 00 00 00 00 18 [23:20:39]Write i2c OK [23:20:39]MH_I2C_Read... [23:20:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:20:39]Read from MH i2c: E2 [23:20:39]MH_I2C_Read... [23:20:39]Read from MH i2c: E2 03 00 [23:20:39]MH_I2C_Read... [23:20:39]Read from MH i2c: E2 03 00 14 8B 00 90 00 13 [23:20:39]RAPDU: 90 00 [23:20:39]wFMCommunicate OK [23:20:39]wFMCommunicate request_size=255 [23:20:39]MH_SAM_APDU [23:20:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 CE 23 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A1 D0 01 00 35 04 06 00 48 [23:20:39]Write to MH i2c: E2 02 01 15 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 CE 23 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A1 D0 01 00 35 04 06 00 48 00 00 69 [23:20:39]Write i2c OK [23:20:39]MH_I2C_Read... [23:20:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:40]Read from MH i2c: E2 [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: E2 03 00 [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: E2 03 00 15 8B 00 90 00 14 [23:20:40]RAPDU: 90 00 [23:20:40]wFMCommunicate OK [23:20:40]wFMCommunicate request_size=10 [23:20:40]MH_SAM_APDU [23:20:40]CAPDU: 80 0D 02 02 05 F3 B1 FF 91 95 [23:20:40]Write to MH i2c: E2 0D 00 16 8B 80 0D 02 02 05 00 F3 B1 FF 91 95 00 00 EE [23:20:40]Write i2c OK [23:20:40]MH_I2C_Read... [23:20:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:40]Read from MH i2c: E2 [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: E2 03 00 [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: E2 03 00 16 8B 00 90 00 15 [23:20:40]RAPDU: 90 00 [23:20:40]wFMCommunicate OK [23:20:40]wFMCommunicate request_size=4 [23:20:40]MH_SAM_APDU [23:20:40]CAPDU: 80 0D 03 02 [23:20:40]Write to MH i2c: E2 08 00 17 8B 80 0D 03 02 00 00 00 00 1D [23:20:40]Write i2c OK [23:20:40]MH_I2C_Read... [23:20:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:20:40]Read from MH i2c: E2 [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: E2 0B 00 [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: E2 0B 00 17 8B 00 7A 70 6E 13 C5 BB 71 D5 90 00 4F [23:20:40]RAPDU: 7A 70 6E 13 C5 BB 71 D5 90 00 [23:20:40]wFMCommunicate OK [23:20:40]SAM_PROTO_SignData done [23:20:40]FM_MakeSignedData done [23:20:40]CreateOFDProtocolMessage [23:20:40]wFMCommunicate request_size=4 [23:20:40]MH_SAM_APDU [23:20:40]CAPDU: 80 11 00 00 [23:20:40]Write to MH i2c: E2 08 00 18 8B 80 11 00 00 00 00 00 00 1D [23:20:40]Write i2c OK [23:20:40]MH_I2C_Read... [23:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:40]Read from MH i2c: E2 [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: E2 17 00 [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: E2 17 00 18 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 78 [23:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:20:40]wFMCommunicate OK [23:20:40]CreateOFDProtocolMessage done [23:20:40]OFDSenderStorePacket 118945 [23:20:40]StoreOFDPacket docnum=118945 [23:20:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 59 C1 07 01 94 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 CE 23 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A1 D0 01 00 35 04 06 00 48 F3 B1 FF 91 95 7A 70 6E 13 C5 BB 71 D5 [23:20:40]CheckFolder [23:20:40]dirname=/storage/ofd_packets [23:20:40]CheckFolder done [23:20:40]ProducePacketName [23:20:40]name=ofd_packets/00118945 [23:20:40]NVStorageSaveData ofd_packets/00118945 [23:20:40]File name is /storage/ofd_packets/00118945 [23:20:40]Write 301 bytes [23:20:40]NVStorageSaveData done [23:20:40]OFDSenderStorePacket done [23:20:40]KKMCreateOFDPacket done [23:20:40]NVStorageSaveData kkm_last_timestamp [23:20:40]File name is /storage/kkm_last_timestamp [23:20:40]Write 4 bytes [23:20:40]NVStorageSaveData done [23:20:40]ExternCall_PrintAddStr [23:20:40]wPrintStart [23:20:40]Write to MH i2c: 01 00 00 19 8B A4 [23:20:40]Write i2c OK [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: 01 [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: 01 07 00 [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: 01 07 00 19 8B 00 00 00 00 00 FF 0F B9 [23:20:40]RasterBufferAndPrint [23:20:40]line Счет N : (1)949864 [23:20:40]line ИНН: 02508201610067 [23:20:40]line Контрольно-Кассовый Чек [23:20:40]line ПРОДАЖА [23:20:40]line ТРК (МРК, ГНК) : 41 [23:20:40]line Товар: 2710124130 [23:20:40]line Аи-92-К-4 [23:20:40]line 4.430 * 67.80 [23:20:40]line = 300.35 [23:20:40]line НДС 12% НСП 1% [23:20:40]line > о реализуемом товаре [23:20:40]line ОКРУГЛЕНИЕ: -0.35 [23:20:40]line ИТОГО: 300.00 [23:20:40]line Внесено: 300.00 [23:20:40]line СДАЧА: 0.00 [23:20:40]line НСП 1% : 2.66 [23:20:40]line НДС 12% : 31.90 [23:20:40]line Наличными: 300.00 [23:20:40]line Безнал.: 0.00 [23:20:40]line Место: АЗС № 134 "Партнер Нефть" [23:20:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:20:40]line СНО: Общий режим [23:20:40]line Чек 321 29.07.2024 23:20 [23:20:40]line Смена: 434 ФФД: 1.0 [23:20:40]line ЗНМ: 0300000044 [23:20:40]line РНМ: 0000000000092660 [23:20:40]line Версия ККМ: 001 [23:20:40]line ФМ: 0000000000874939 [23:20:40]line ФД: 118945 [23:20:40]line ФПД: 80211500568981 [23:20:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T232046&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118945&fm=80211500568981&tin=02508201610067®Number=0000000000092660&sum=30000 [23:20:40]written 0, free lines is 4095 [23:20:40]OFD Sender: Processing packet 118945 [packets to send 86, broken 85] [23:20:40]ProducePacketName [23:20:40]name=ofd_packets/00118945 [23:20:40]OFD Sender: To server: pG, [23:20:40]CommunicateWithHost lk.salyk.kg:30040 [23:20:40]ConnectInit lk.salyk.kg [23:20:40]Connected sock=9 [23:20:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 59 C1 07 01 94 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 CE 23 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A1 D0 01 00 35 04 06 00 48 F3 B1 FF 91 95 7A 70 6E 13 C5 BB 71 D5 [23:20:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2F F3 47 00 67 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A1 D0 01 00 F4 03 04 00 5A D1 A7 66 B6 04 01 00 00 1C 0F CB C2 B8 3B 99 3B [23:20:40]CommunicateWithHost err = 0 [23:20:40]CheckOFDResponse [23:20:40]1017 (14) - 77093643461234 [23:20:40]1041 (16) - 0000000000874939 [23:20:40]1040 (4) - 118945 [23:20:40]1012 (4) - 29.07.2024 17:28 [23:20:40]1206 (1) - 0 [23:20:40]OFD Sender: Remove packet 118945 [23:20:40]ProducePacketName [23:20:40]name=ofd_packets/00118945 [23:20:40]NVStorageDeleteData [23:20:40]Write to MH i2c: 01 00 00 43 8B CE [23:20:40]Write i2c OK [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: 01 [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: 01 07 00 [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: 01 07 00 43 8B 00 00 00 00 00 D3 0C B4 [23:20:40]RasterBufferAndPrint [23:20:40]line [23:20:40]line [23:20:40]line [23:20:40]line [23:20:40]line [23:20:40]written 0, free lines is 3289 [23:20:40]MH_Cut [23:20:40]Write to MH i2c: D1 01 00 4A 8B 01 A7 [23:20:40]Write i2c OK [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: D1 [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: D1 01 00 [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: D1 01 00 4A 8B 00 A6 [23:20:40]Write to MH i2c: 01 00 00 4B 8B D6 [23:20:40]Write i2c OK [23:20:40]MH_I2C_Read... [23:20:41]OFD Sender: No OFD packet to send [23:20:41]*** Cut start [23:20:41]*** Partial cut [23:20:41]*** CUTSNS_PIN = 1 [23:20:41]*** CUTSNS_PIN = 0 [23:20:41]*** Brake cut motor [23:20:42]Read from MH i2c: 01 [23:20:42]MH_I2C_Read... [23:20:42]*** Stop cut motor [23:20:42]*** Cut end [23:20:42]Read from MH i2c: 01 07 00 [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: 01 07 00 4B 8B 00 00 00 00 00 FF 0F EB [23:20:42]process_action close_receipt done [23:20:42]requested_data is exist [23:20:42]produce_requested_data [23:20:42]requested_item fm.sn is exist - process it [23:20:42]wFMCommunicate request_size=4 [23:20:42]MH_SAM_APDU [23:20:42]CAPDU: 80 11 00 00 [23:20:42]Write to MH i2c: E2 08 00 4C 8B 80 11 00 00 00 00 00 00 51 [23:20:42]Write i2c OK [23:20:42]MH_I2C_Read... [23:20:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:42]Read from MH i2c: E2 [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: E2 17 00 [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: E2 17 00 4C 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AC [23:20:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:20:42]wFMCommunicate OK [23:20:42]requested_item fd.num is exist - process it [23:20:42]SAM_PROTO_GetFieldsCounters [23:20:42]wFMCommunicate request_size=4 [23:20:42]MH_SAM_APDU [23:20:42]CAPDU: 80 13 00 00 [23:20:42]Write to MH i2c: E2 08 00 4D 8B 80 13 00 00 00 00 00 00 54 [23:20:42]Write i2c OK [23:20:42]MH_I2C_Read... [23:20:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:20:42]Read from MH i2c: E2 [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: E2 62 00 [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: E2 62 00 4D 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A1 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 66 [23:20: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A1 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:20:42]wFMCommunicate OK [23:20:42]SAM_PROTO_GetFieldsCounters done [23:20:42]requested_item shift.num is exist - process it [23:20:42]requested_item shift.opened is exist - process it [23:20:42]req_shift_opened [23:20:42]FM_GetShiftState [23:20:42]SAM_PROTO_GetShiftState [23:20:42]wFMCommunicate request_size=4 [23:20:42]MH_SAM_APDU [23:20:42]CAPDU: 80 13 01 00 [23:20:42]Write to MH i2c: E2 08 00 4E 8B 80 13 01 00 00 00 00 00 56 [23:20:42]Write i2c OK [23:20:42]MH_I2C_Read... [23:20:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:42]Read from MH i2c: E2 [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: E2 0E 00 [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: E2 0E 00 4E 8B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 84 [23:20:42]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [23:20:42]wFMCommunicate OK [23:20:42]SAM_PROTO_GetShiftState done [23:20:42]FM_GetShiftState done [23:20:42]req_shift_opened done [23:20:42]requested_item shift.open_date is exist - process it [23:20:42]req_shift_open_date [23:20:42]req_shift_open_date done [23:20:42]produce_requested_data done [23:20:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118945,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [23:20:42]process_action_free close_receipt [23:20:42]json_value_free [23:20:42]json_value_free done [23:20:42]process_json_proto returns [23:20:42]Send response to host [23:20:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118945,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [23:20:42]free response buf [23:20:42]execute_script done [23:20:42]execute_script returns [23:20:42]free content buf [23:20:42]Sock 10.Close socket [23:20:42]Sock 10.Thread stoped [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:36]accept exits with 7 [23:23:36]New connection [23:23:36]New thread 3067239780 created [23:23:36]Thread 3067383140 joined [23:23:36]Waiting for new connection... [23:23:36] Sock 7.Parse request [23:23:36]Sock 7.Check first char [23:23:36]Sock 7.First char is OK [23:23:36]request: POST /json_proto HTTP/1.0 [23:23:36]Method: POST [23:23:36]URL: /json_proto [23:23:36]Method is POST - this is cgi request [23:23:36]url: /json_proto [23:23:36]query_string will be loaded in cgi processing [23:23:36]execute_cgi json_proto POST (null) [23:23:36]execute_cgi path=json_proto method=POST [23:23:36]POST find Content-Length [23:23:36]Host: 172.17.45.7:8080 [23:23:36]Content-Length: 682 [23:23:36]Content-Type: application/json [23:23:36] [23:23:36]POST finish read [23:23:36]Found Content-Length = 682 [23:23:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:36]execute_script... [23:23: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)949865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:36]POST & json_proto [23:23:36]process_json_proto [23:23:36]json parsed OK: [23:23:36]protocol is kg_v1.0 [23:23:36]action value=close_receipt [23:23:36]process_action close_receipt [23:23:36]cmd_close_receipt [23:23:36]MH_GetDate [23:23:36]Write to MH i2c: F0 00 00 4F 8B C9 [23:23:36]Write i2c OK [23:23:36]MH_I2C_Read... [23:23:36]Read from MH i2c: F0 [23:23:36]MH_I2C_Read... [23:23:36]Read from MH i2c: F0 09 00 [23:23:36]MH_I2C_Read... [23:23:36]Read from MH i2c: F0 09 00 4F 8B 00 80 24 A8 66 90 0F 3E 66 C7 [23:23:36]GetLastDocTimeStamp 1722295246 [23:23:36]current date 1722295424 [23:23:36]FM_GetShiftState [23:23:36]SAM_PROTO_GetShiftState [23:23:36]wFMCommunicate request_size=4 [23:23:36]MH_SAM_APDU [23:23:36]CAPDU: 80 13 01 00 [23:23:36]Write to MH i2c: E2 08 00 50 8B 80 13 01 00 00 00 00 00 58 [23:23:36]Write i2c OK [23:23:36]MH_I2C_Read... [23:23:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:36]Read from MH i2c: E2 [23:23:36]MH_I2C_Read... [23:23:36]Read from MH i2c: E2 0E 00 [23:23:36]MH_I2C_Read... [23:23:36]Read from MH i2c: E2 0E 00 50 8B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 86 [23:23:36]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [23:23:36]wFMCommunicate OK [23:23:36]SAM_PROTO_GetShiftState done [23:23:36]FM_GetShiftState done [23:23:36]opened in 1722211641 [23:23:36]opened+sec_in_day 1722298041 [23:23:36]quantity*price = 100005 [23:23:36]sum+1 = 100006 [23:23:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 322 29.07.2024 23:23 Смена: 434 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118946 ФПД: 72726407803503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T232344&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118946&fm=72726407803503&tin=02508201610067®Number=0000000000092660&sum=100000 [23:23:37]StoreToDocumentArchive [23:23:37]shift 434 fd 118946 [23:23:37]save to /storage/0434/doc_00118946 [23:23:37]save last doc name /storage/0434/doc_00118946 to /storage/kkm_last_doc_name [23:23:37]save OK [23:23:37]Clear old archive folders... [23:23:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:23:37]tlvbuf is 01F06BB0 [23:23:37]SAM_PROTO_ClearQueue [23:23:37]wFMCommunicate request_size=4 [23:23:37]MH_SAM_APDU [23:23:37]CAPDU: 80 09 00 00 [23:23:37]Write to MH i2c: E2 08 00 5D 8B 80 09 00 00 00 00 00 00 5A [23:23:38]Write i2c OK [23:23:38]MH_I2C_Read... [23:23:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:23:38]Read from MH i2c: E2 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 03 00 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 03 00 5D 8B 00 90 00 5C [23:23:38]RAPDU: 90 00 [23:23:38]wFMCommunicate OK [23:23:38]SAM_PROTO_ClearQueue done [23:23:38]KKMCreateOFDPacket [23:23:38]OFDProtocolAddRootSTLVToBuf [23:23:38]FM_MakeSignedData [23:23:38]FM_MakeSignedData [23:23:38]SAM_PROTO_SignData [23:23:38]wFMCommunicate request_size=4 [23:23:38]MH_SAM_APDU [23:23:38]CAPDU: 80 0D 01 02 [23:23:38]Write to MH i2c: E2 08 00 5E 8B 80 0D 01 02 00 00 00 00 62 [23:23:38]Write i2c OK [23:23:38]MH_I2C_Read... [23:23:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:23:38]Read from MH i2c: E2 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 03 00 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 03 00 5E 8B 00 90 00 5D [23:23:38]RAPDU: 90 00 [23:23:38]wFMCommunicate OK [23:23:38]wFMCommunicate request_size=255 [23:23:38]MH_SAM_APDU [23:23:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 80 24 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A2 D0 01 00 35 04 06 00 42 [23:23:38]Write to MH i2c: E2 02 01 5F 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 80 24 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A2 D0 01 00 35 04 06 00 42 00 00 D2 [23:23:38]Write i2c OK [23:23:38]MH_I2C_Read... [23:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:38]Read from MH i2c: E2 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 03 00 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 03 00 5F 8B 00 90 00 5E [23:23:38]RAPDU: 90 00 [23:23:38]wFMCommunicate OK [23:23:38]wFMCommunicate request_size=10 [23:23:38]MH_SAM_APDU [23:23:38]CAPDU: 80 0D 02 02 05 24 EF B3 F2 6F [23:23:38]Write to MH i2c: E2 0D 00 60 8B 80 0D 02 02 05 00 24 EF B3 F2 6F 00 00 96 [23:23:38]Write i2c OK [23:23:38]MH_I2C_Read... [23:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:38]Read from MH i2c: E2 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 03 00 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 03 00 60 8B 00 90 00 5F [23:23:38]RAPDU: 90 00 [23:23:38]wFMCommunicate OK [23:23:38]wFMCommunicate request_size=4 [23:23:38]MH_SAM_APDU [23:23:38]CAPDU: 80 0D 03 02 [23:23:38]Write to MH i2c: E2 08 00 61 8B 80 0D 03 02 00 00 00 00 67 [23:23:38]Write i2c OK [23:23:38]MH_I2C_Read... [23:23:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:23:38]Read from MH i2c: E2 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 0B 00 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 0B 00 61 8B 00 4D AD 21 D6 0F DE 4A 1A 90 00 AA [23:23:38]RAPDU: 4D AD 21 D6 0F DE 4A 1A 90 00 [23:23:38]wFMCommunicate OK [23:23:38]SAM_PROTO_SignData done [23:23:38]FM_MakeSignedData done [23:23:38]CreateOFDProtocolMessage [23:23:38]wFMCommunicate request_size=4 [23:23:38]MH_SAM_APDU [23:23:38]CAPDU: 80 11 00 00 [23:23:38]Write to MH i2c: E2 08 00 62 8B 80 11 00 00 00 00 00 00 67 [23:23:38]Write i2c OK [23:23:38]MH_I2C_Read... [23:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:38]Read from MH i2c: E2 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 17 00 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 17 00 62 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C2 [23:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:23:38]wFMCommunicate OK [23:23:38]CreateOFDProtocolMessage done [23:23:38]OFDSenderStorePacket 118946 [23:23:38]StoreOFDPacket docnum=118946 [23:23:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 80 0C 07 01 E8 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 80 24 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A2 D0 01 00 35 04 06 00 42 24 EF B3 F2 6F 4D AD 21 D6 0F DE 4A 1A [23:23:38]CheckFolder [23:23:38]dirname=/storage/ofd_packets [23:23:38]CheckFolder done [23:23:38]ProducePacketName [23:23:38]name=ofd_packets/00118946 [23:23:38]NVStorageSaveData ofd_packets/00118946 [23:23:38]File name is /storage/ofd_packets/00118946 [23:23:38]Write 301 bytes [23:23:38]NVStorageSaveData done [23:23:38]OFDSenderStorePacket done [23:23:38]KKMCreateOFDPacket done [23:23:38]NVStorageSaveData kkm_last_timestamp [23:23:38]File name is /storage/kkm_last_timestamp [23:23:38]Write 4 bytes [23:23:38]NVStorageSaveData done [23:23:38]ExternCall_PrintAddStr [23:23:38]wPrintStart [23:23:38]Write to MH i2c: 01 00 00 63 8B EE [23:23:38]Write i2c OK [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: 01 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: 01 07 00 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: 01 07 00 63 8B 00 00 00 00 00 FF 0F 03 [23:23:38]RasterBufferAndPrint [23:23:38]line Счет N : (1)949865 [23:23:38]line ИНН: 02508201610067 [23:23:38]line Контрольно-Кассовый Чек [23:23:38]line ПРОДАЖА [23:23:38]line ТРК (МРК, ГНК) : 51 [23:23:38]line Товар: 2710124130 [23:23:38]line Аи-92-К-4 [23:23:38]line 14.750 * 67.80 [23:23:38]line = 1000.05 [23:23:38]line НДС 12% НСП 1% [23:23:38]line > о реализуемом товаре [23:23:38]line ОКРУГЛЕНИЕ: -0.05 [23:23:38]line ИТОГО: 1000.00 [23:23:38]line Внесено: 1000.00 [23:23:38]line СДАЧА: 0.00 [23:23:38]line НСП 1% : 8.85 [23:23:38]line НДС 12% : 106.20 [23:23:38]line Наличными: 1000.00 [23:23:38]line Безнал.: 0.00 [23:23:38]line Место: АЗС № 134 "Партнер Нефть" [23:23:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:23:38]line СНО: Общий режим [23:23:38]line Чек 322 29.07.2024 23:23 [23:23:38]line Смена: 434 ФФД: 1.0 [23:23:38]line ЗНМ: 0300000044 [23:23:38]line РНМ: 0000000000092660 [23:23:38]line Версия ККМ: 001 [23:23:38]line ФМ: 0000000000874939 [23:23:38]line ФД: 118946 [23:23:38]line ФПД: 72726407803503 [23:23:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T232344&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118946&fm=72726407803503&tin=02508201610067®Number=0000000000092660&sum=100000 [23:23:38]OFD Sender: Processing packet 118946 [packets to send 86, broken 85] [23:23:38]ProducePacketName [23:23:38]name=ofd_packets/00118946 [23:23:38]OFD Sender: To server: pG, [23:23:38]CommunicateWithHost lk.salyk.kg:30040 [23:23:38]ConnectInit lk.salyk.kg [23:23:38]written 0, free lines is 4095 [23:23:38]Connected sock=10 [23:23:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 80 0C 07 01 E8 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 80 24 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A2 D0 01 00 35 04 06 00 42 24 EF B3 F2 6F 4D AD 21 D6 0F DE 4A 1A [23:23:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 13 88 47 00 B2 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A2 D0 01 00 F4 03 04 00 0D D2 A7 66 B6 04 01 00 00 24 D2 5C 10 EA 85 12 3D [23:23:39]CommunicateWithHost err = 0 [23:23:39]CheckOFDResponse [23:23:39]1017 (14) - 77093643461234 [23:23:39]1041 (16) - 0000000000874939 [23:23:39]1040 (4) - 118946 [23:23:39]1012 (4) - 29.07.2024 17:31 [23:23:39]1206 (1) - 0 [23:23:39]OFD Sender: Remove packet 118946 [23:23:39]ProducePacketName [23:23:39]name=ofd_packets/00118946 [23:23:39]NVStorageDeleteData [23:23:39]Write to MH i2c: 01 00 00 8D 8B 18 [23:23:39]Write i2c OK [23:23:39]MH_I2C_Read... [23:23:39]Read from MH i2c: 01 [23:23:39]MH_I2C_Read... [23:23:39]Read from MH i2c: 01 07 00 [23:23:39]MH_I2C_Read... [23:23:39]Read from MH i2c: 01 07 00 8D 8B 00 00 00 00 00 D8 0C 03 [23:23:39]RasterBufferAndPrint [23:23:39]line [23:23:39]line [23:23:39]line [23:23:39]line [23:23:39]line [23:23:39]written 0, free lines is 3294 [23:23:39]MH_Cut [23:23:39]Write to MH i2c: D1 01 00 94 8B 01 F1 [23:23:39]Write i2c OK [23:23:39]MH_I2C_Read... [23:23:39]Read from MH i2c: D1 [23:23:39]MH_I2C_Read... [23:23:39]Read from MH i2c: D1 01 00 [23:23:39]MH_I2C_Read... [23:23:39]Read from MH i2c: D1 01 00 94 8B 00 F0 [23:23:39]Write to MH i2c: 01 00 00 95 8B 20 [23:23:39]Write i2c OK [23:23:39]MH_I2C_Read... [23:23:39]OFD Sender: No OFD packet to send [23:23:40]*** Cut start [23:23:40]*** Partial cut [23:23:40]*** CUTSNS_PIN = 1 [23:23:40]*** CUTSNS_PIN = 0 [23:23:40]*** Brake cut motor [23:23:40]Read from MH i2c: 01 [23:23:40]MH_I2C_Read... [23:23:40]*** Stop cut motor [23:23:40]*** Cut end [23:23:40]Read from MH i2c: 01 07 00 [23:23:40]MH_I2C_Read... [23:23:40]Read from MH i2c: 01 07 00 95 8B 00 00 00 00 00 FF 0F 35 [23:23:40]process_action close_receipt done [23:23:40]requested_data is exist [23:23:40]produce_requested_data [23:23:40]requested_item fm.sn is exist - process it [23:23:40]wFMCommunicate request_size=4 [23:23:40]MH_SAM_APDU [23:23:40]CAPDU: 80 11 00 00 [23:23:40]Write to MH i2c: E2 08 00 96 8B 80 11 00 00 00 00 00 00 9B [23:23:40]Write i2c OK [23:23:40]MH_I2C_Read... [23:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:40]Read from MH i2c: E2 [23:23:40]MH_I2C_Read... [23:23:40]Read from MH i2c: E2 17 00 [23:23:40]MH_I2C_Read... [23:23:40]Read from MH i2c: E2 17 00 96 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F6 [23:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:23:40]wFMCommunicate OK [23:23:40]requested_item fd.num is exist - process it [23:23:40]SAM_PROTO_GetFieldsCounters [23:23:40]wFMCommunicate request_size=4 [23:23:40]MH_SAM_APDU [23:23:40]CAPDU: 80 13 00 00 [23:23:40]Write to MH i2c: E2 08 00 97 8B 80 13 00 00 00 00 00 00 9E [23:23:40]Write i2c OK [23:23:40]MH_I2C_Read... [23:23:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:23:40]Read from MH i2c: E2 [23:23:40]MH_I2C_Read... [23:23:40]Read from MH i2c: E2 62 00 [23:23:40]MH_I2C_Read... [23:23:40]Read from MH i2c: E2 62 00 97 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A2 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 B4 [23:23: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A2 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:23:40]wFMCommunicate OK [23:23:40]SAM_PROTO_GetFieldsCounters done [23:23:40]requested_item shift.num is exist - process it [23:23:40]requested_item shift.opened is exist - process it [23:23:40]req_shift_opened [23:23:40]FM_GetShiftState [23:23:40]SAM_PROTO_GetShiftState [23:23:40]wFMCommunicate request_size=4 [23:23:40]MH_SAM_APDU [23:23:40]CAPDU: 80 13 01 00 [23:23:40]Write to MH i2c: E2 08 00 98 8B 80 13 01 00 00 00 00 00 A0 [23:23:40]Write i2c OK [23:23:40]MH_I2C_Read... [23:23:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:40]Read from MH i2c: E2 [23:23:40]MH_I2C_Read... [23:23:40]Read from MH i2c: E2 0E 00 [23:23:40]MH_I2C_Read... [23:23:40]Read from MH i2c: E2 0E 00 98 8B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 CE [23:23:40]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [23:23:40]wFMCommunicate OK [23:23:40]SAM_PROTO_GetShiftState done [23:23:40]FM_GetShiftState done [23:23:40]req_shift_opened done [23:23:40]requested_item shift.open_date is exist - process it [23:23:40]req_shift_open_date [23:23:40]req_shift_open_date done [23:23:40]produce_requested_data done [23:23:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118946,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [23:23:40]process_action_free close_receipt [23:23:40]json_value_free [23:23:40]json_value_free done [23:23:40]process_json_proto returns [23:23:40]Send response to host [23:23:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118946,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [23:23:40]free response buf [23:23:40]execute_script done [23:23:40]execute_script returns [23:23:40]free content buf [23:23:40]Sock 7.Close socket [23:23:40]Sock 7.Thread stoped [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:29]OFD Sender: No OFD packet to send [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:09]OFD Sender: No OFD packet to send [23:25:14]OFD Sender: No OFD packet to send [23:25:19]OFD Sender: No OFD packet to send [23:25:24]OFD Sender: No OFD packet to send [23:25:29]OFD Sender: No OFD packet to send [23:25:34]OFD Sender: No OFD packet to send [23:25:39]OFD Sender: No OFD packet to send [23:25:44]OFD Sender: No OFD packet to send [23:25:49]OFD Sender: No OFD packet to send [23:25:54]OFD Sender: No OFD packet to send [23:25:59]OFD Sender: No OFD packet to send [23:26:04]OFD Sender: No OFD packet to send [23:26:09]OFD Sender: No OFD packet to send [23:26:14]OFD Sender: No OFD packet to send [23:26:19]OFD Sender: No OFD packet to send [23:26:24]OFD Sender: No OFD packet to send [23:26:29]OFD Sender: No OFD packet to send [23:26:34]OFD Sender: No OFD packet to send [23:26:39]OFD Sender: No OFD packet to send [23:26:44]OFD Sender: No OFD packet to send [23:26:49]OFD Sender: No OFD packet to send [23:26:54]OFD Sender: No OFD packet to send [23:26:59]OFD Sender: No OFD packet to send [23:27:04]OFD Sender: No OFD packet to send [23:27:09]OFD Sender: No OFD packet to send [23:27:14]OFD Sender: No OFD packet to send [23:27:19]OFD Sender: No OFD packet to send [23:27:24]OFD Sender: No OFD packet to send [23:27:29]OFD Sender: No OFD packet to send [23:27:34]OFD Sender: No OFD packet to send [23:27:39]OFD Sender: No OFD packet to send [23:27:44]OFD Sender: No OFD packet to send [23:27:49]OFD Sender: No OFD packet to send [23:27:54]OFD Sender: No OFD packet to send [23:27:59]OFD Sender: No OFD packet to send [23:28:04]OFD Sender: No OFD packet to send [23:28:09]OFD Sender: No OFD packet to send [23:28:14]OFD Sender: No OFD packet to send [23:28:19]OFD Sender: No OFD packet to send [23:28:24]OFD Sender: No OFD packet to send [23:28:29]OFD Sender: No OFD packet to send [23:28:34]OFD Sender: No OFD packet to send [23:28:39]OFD Sender: No OFD packet to send [23:28:44]OFD Sender: No OFD packet to send [23:28:49]OFD Sender: No OFD packet to send [23:28:54]OFD Sender: No OFD packet to send [23:28:59]OFD Sender: No OFD packet to send [23:29:04]OFD Sender: No OFD packet to send [23:29:09]OFD Sender: No OFD packet to send [23:29:14]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45:20]OFD Sender: No OFD packet to send [23:45:25]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:38]accept exits with 9 [23:45:38]New connection [23:45:38]New thread 3067383140 created [23:45:38]Thread 3067239780 joined [23:45:38]Waiting for new connection... [23:45:38] Sock 9.Parse request [23:45:38]Sock 9.Check first char [23:45:38]Sock 9.First char is OK [23:45:38]request: POST /json_proto HTTP/1.0 [23:45:38]Method: POST [23:45:38]URL: /json_proto [23:45:38]Method is POST - this is cgi request [23:45:38]url: /json_proto [23:45:38]query_string will be loaded in cgi processing [23:45:38]execute_cgi json_proto POST (null) [23:45:38]execute_cgi path=json_proto method=POST [23:45:38]POST find Content-Length [23:45:38]Host: 172.17.45.7:8080 [23:45:38]Content-Length: 215 [23:45:38]Content-Type: application/json [23:45:38] [23:45:38]POST finish read [23:45:38]Found Content-Length = 215 [23:45:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:38]execute_script... [23:45:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:38]POST & json_proto [23:45:38]process_json_proto [23:45:38]json parsed OK: [23:45:38]protocol is kg_v1.0 [23:45:38]action value=get_value [23:45:38]process_action get_value [23:45:38]cmd_get_value [23:45:38]process_action get_value done [23:45:38]requested_data is exist [23:45:38]produce_requested_data [23:45:38]requested_item kkm.sn is exist - process it [23:45:38]requested_item kkm.ver is exist - process it [23:45:38]requested_item fm.sn is exist - process it [23:45:38]wFMCommunicate request_size=4 [23:45:38]MH_SAM_APDU [23:45:38]CAPDU: 80 11 00 00 [23:45:38]Write to MH i2c: E2 08 00 99 8B 80 11 00 00 00 00 00 00 9E [23:45:38]Write i2c OK [23:45:38]MH_I2C_Read... [23:45:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:38]Read from MH i2c: E2 [23:45:38]MH_I2C_Read... [23:45:38]Read from MH i2c: E2 17 00 [23:45:38]MH_I2C_Read... [23:45:38]Read from MH i2c: E2 17 00 99 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F9 [23:45:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:45:38]wFMCommunicate OK [23:45:38]requested_item fd.num is exist - process it [23:45:38]SAM_PROTO_GetFieldsCounters [23:45:38]wFMCommunicate request_size=4 [23:45:38]MH_SAM_APDU [23:45:38]CAPDU: 80 13 00 00 [23:45:38]Write to MH i2c: E2 08 00 9A 8B 80 13 00 00 00 00 00 00 A1 [23:45:38]Write i2c OK [23:45:38]MH_I2C_Read... [23:45:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:45:38]Read from MH i2c: E2 [23:45:38]MH_I2C_Read... [23:45:38]Read from MH i2c: E2 62 00 [23:45:38]MH_I2C_Read... [23:45:38]Read from MH i2c: E2 62 00 9A 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A2 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 B7 [23:45: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A2 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:45:38]wFMCommunicate OK [23:45:38]SAM_PROTO_GetFieldsCounters done [23:45:38]requested_item shift.num is exist - process it [23:45:38]requested_item shift.opened is exist - process it [23:45:38]req_shift_opened [23:45:38]FM_GetShiftState [23:45:38]SAM_PROTO_GetShiftState [23:45:38]wFMCommunicate request_size=4 [23:45:38]MH_SAM_APDU [23:45:38]CAPDU: 80 13 01 00 [23:45:38]Write to MH i2c: E2 08 00 9B 8B 80 13 01 00 00 00 00 00 A3 [23:45:38]Write i2c OK [23:45:38]MH_I2C_Read... [23:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:38]Read from MH i2c: E2 [23:45:38]MH_I2C_Read... [23:45:38]Read from MH i2c: E2 0E 00 [23:45:38]MH_I2C_Read... [23:45:38]Read from MH i2c: E2 0E 00 9B 8B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 D1 [23:45:38]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [23:45:38]wFMCommunicate OK [23:45:38]SAM_PROTO_GetShiftState done [23:45:38]FM_GetShiftState done [23:45:38]req_shift_opened done [23:45:38]requested_item shift.open_date is exist - process it [23:45:38]req_shift_open_date [23:45:38]req_shift_open_date done [23:45:38]produce_requested_data done [23:45:38]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118946,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [23:45:38]process_action_free get_value [23:45:38]json_value_free [23:45:38]json_value_free done [23:45:38]process_json_proto returns [23:45:38]Send response to host [23:45:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118946,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [23:45:38]free response buf [23:45:38]execute_script done [23:45:38]execute_script returns [23:45:38]free content buf [23:45:38]Sock 9.Close socket [23:45:38]Sock 9.Thread stoped [23:45:38]accept exits with 7 [23:45:38]New connection [23:45:38]New thread 3067239780 created [23:45:38]Thread 3067383140 joined [23:45:38]Waiting for new connection... [23:45:38] Sock 7.Parse request [23:45:38]Sock 7.Check first char [23:45:38]Sock 7.First char is OK [23:45:38]request: POST /json_proto HTTP/1.0 [23:45:38]Method: POST [23:45:38]URL: /json_proto [23:45:38]Method is POST - this is cgi request [23:45:38]url: /json_proto [23:45:38]query_string will be loaded in cgi processing [23:45:38]execute_cgi json_proto POST (null) [23:45:38]execute_cgi path=json_proto method=POST [23:45:38]POST find Content-Length [23:45:38]Host: 172.17.45.7:8080 [23:45:38]Content-Length: 331 [23:45:38]Content-Type: application/json [23:45:38] [23:45:38]POST finish read [23:45:38]Found Content-Length = 331 [23:45:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:45:38]execute_script... [23:45:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:45:38]POST & json_proto [23:45:38]process_json_proto [23:45:38]json parsed OK: [23:45:38]protocol is kg_v1.0 [23:45:38]action value=get_value [23:45:38]process_action get_value [23:45:38]cmd_get_value [23:45:38]process_action get_value done [23:45:38]requested_data is exist [23:45:38]produce_requested_data [23:45:38]requested_item fm.sale.total is exist - process it [23:45:38]SAM_PROTO_GetFMData [23:45:38]wFMCommunicate request_size=4 [23:45:38]MH_SAM_APDU [23:45:38]CAPDU: 80 13 03 00 [23:45:38]Write to MH i2c: E2 08 00 9C 8B 80 13 03 00 00 00 00 00 A6 [23:45:38]Write i2c OK [23:45:38]MH_I2C_Read... [23:45:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:45:39]Read from MH i2c: E2 [23:45:39]MH_I2C_Read... [23:45:39]Read from MH i2c: E2 FD 00 [23:45:39]MH_I2C_Read... [23:45:39]Read from MH i2c: E2 FD 00 9C 8B 00 C5 04 85 04 C1 04 6E 04 04 00 3E CD 01 00 69 04 A3 00 6F 04 04 00 AB BF 01 00 B1 04 05 00 10 68 07 78 03 70 04 05 00 18 05 19 A9 02 72 04 04 00 F8 62 EE CE 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C6 11 54 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7F 35 DC 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 93 0D 00 00 B1 04 04 00 D8 ED 3F 3B 70 04 04 00 D8 ED 3F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 F1 4A 06 EF 03 09 90 00 28 [23:45:39]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3E CD 01 00 69 04 A3 00 6F 04 04 00 AB BF 01 00 B1 04 05 00 10 68 07 78 03 70 04 05 00 18 05 19 A9 02 72 04 04 00 F8 62 EE CE 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C6 11 54 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7F 35 DC 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 93 0D 00 00 B1 04 04 00 D8 ED 3F 3B 70 04 04 00 D8 ED 3F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 F1 4A 06 EF 03 09 90 00 [23:45:39]wFMCommunicate OK [23:45:39]wFMCommunicate request_size=4 [23:45:39]MH_SAM_APDU [23:45:39]CAPDU: 80 17 00 00 [23:45:39]Write to MH i2c: E2 08 00 9D 8B 80 17 00 00 00 00 00 00 A8 [23:45:39]Write i2c OK [23:45:39]MH_I2C_Read... [23:45:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:45:39]Read from MH i2c: E2 [23:45:39]MH_I2C_Read... [23:45:39]Read from MH i2c: E2 FD 00 [23:45:39]MH_I2C_Read... [23:45:39]Read from MH i2c: E2 FD 00 9D 8B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 3D 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 08 [23:45:39]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 3D 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:45:39]wFMCommunicate OK [23:45:39]wFMCommunicate request_size=4 [23:45:39]MH_SAM_APDU [23:45:39]CAPDU: 80 17 00 00 [23:45:39]Write to MH i2c: E2 08 00 9E 8B 80 17 00 00 00 00 00 00 A9 [23:45:39]Write i2c OK [23:45:39]MH_I2C_Read... [23:45:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:45:39]Read from MH i2c: E2 [23:45:39]MH_I2C_Read... [23:45:39]Read from MH i2c: E2 FD 00 [23:45:39]MH_I2C_Read... [23:45:39]Read from MH i2c: E2 FD 00 9E 8B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 BB [23:45:39]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:45:39]wFMCommunicate OK [23:45:39]wFMCommunicate request_size=4 [23:45:39]MH_SAM_APDU [23:45:39]CAPDU: 80 17 00 00 [23:45:39]Write to MH i2c: E2 08 00 9F 8B 80 17 00 00 00 00 00 00 AA [23:45:39]Write i2c OK [23:45:39]MH_I2C_Read... [23:45:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:45:40]Read from MH i2c: E2 [23:45:40]MH_I2C_Read... [23:45:40]Read from MH i2c: E2 FD 00 [23:45:40]MH_I2C_Read... [23:45:40]Read from MH i2c: E2 FD 00 9F 8B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 36 [23:45:40]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:45:40]wFMCommunicate OK [23:45:40]wFMCommunicate request_size=4 [23:45:40]MH_SAM_APDU [23:45:40]CAPDU: 80 17 00 00 [23:45:40]Write to MH i2c: E2 08 00 A0 8B 80 17 00 00 00 00 00 00 AB [23:45:40]Write i2c OK [23:45:40]MH_I2C_Read... [23:45:40]Read from MH i2c: E2 [23:45:40]MH_I2C_Read... [23:45:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:45:40]Read from MH i2c: E2 E2 00 [23:45:40]MH_I2C_Read... [23:45:40]Read from MH i2c: E2 E2 00 A0 8B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 89 [23:45:40]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:45:40]wFMCommunicate OK [23:45:40]SAM_PROTO_GetFMData done [23:45:40]requested_item fm.sale_refund.total is exist - process it [23:45:40]requested_item fm.buy.total is exist - process it [23:45:40]requested_item shift.sale.total is exist - process it [23:45:40]SAM_PROTO_GetShiftData [23:45:40]wFMCommunicate request_size=4 [23:45:40]MH_SAM_APDU [23:45:40]CAPDU: 80 13 02 00 [23:45:40]Write to MH i2c: E2 08 00 A1 8B 80 13 02 00 00 00 00 00 AA [23:45:40]Write i2c OK [23:45:40]MH_I2C_Read... [23:45:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:45:40]Read from MH i2c: E2 [23:45:40]MH_I2C_Read... [23:45:40]Read from MH i2c: E2 FD 00 [23:45:40]MH_I2C_Read... [23:45:40]Read from MH i2c: E2 FD 00 A1 8B 00 BD 04 AA 04 B9 04 6E 04 04 00 42 01 00 00 69 04 9F 00 6F 04 04 00 39 01 00 00 B1 04 04 00 98 7A A9 02 70 04 04 00 80 4D 81 01 72 04 04 00 18 2D 28 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BA 62 48 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2F 08 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 9C 0A 2C 70 04 03 00 9C 0A 2C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 66 AD 04 EF 03 09 00 F6 03 01 00 00 F7 90 00 1B [23:45:40]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 42 01 00 00 69 04 9F 00 6F 04 04 00 39 01 00 00 B1 04 04 00 98 7A A9 02 70 04 04 00 80 4D 81 01 72 04 04 00 18 2D 28 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BA 62 48 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2F 08 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 9C 0A 2C 70 04 03 00 9C 0A 2C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 66 AD 04 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:45:40]wFMCommunicate OK [23:45:40]wFMCommunicate request_size=4 [23:45:40]MH_SAM_APDU [23:45:40]CAPDU: 80 17 00 00 [23:45:40]Write to MH i2c: E2 08 00 A2 8B 80 17 00 00 00 00 00 00 AD [23:45:40]Write i2c OK [23:45:40]MH_I2C_Read... [23:45:41]OFD Sender: No OFD packet to send [23:45:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:45:41]Read from MH i2c: E2 [23:45:41]MH_I2C_Read... [23:45:41]Read from MH i2c: E2 FD 00 [23:45:41]MH_I2C_Read... [23:45:41]Read from MH i2c: E2 FD 00 A2 8B 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 85 [23:45:41]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 [23:45:41]wFMCommunicate OK [23:45:41]wFMCommunicate request_size=4 [23:45:41]MH_SAM_APDU [23:45:41]CAPDU: 80 17 00 00 [23:45:41]Write to MH i2c: E2 08 00 A3 8B 80 17 00 00 00 00 00 00 AE [23:45:41]Write i2c OK [23:45:41]MH_I2C_Read... [23:45:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:45:41]Read from MH i2c: E2 [23:45:41]MH_I2C_Read... [23:45:41]Read from MH i2c: E2 FD 00 [23:45:41]MH_I2C_Read... [23:45:41]Read from MH i2c: E2 FD 00 A3 8B 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 E0 [23:45:41]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [23:45:41]wFMCommunicate OK [23:45:41]wFMCommunicate request_size=4 [23:45:41]MH_SAM_APDU [23:45:41]CAPDU: 80 17 00 00 [23:45:41]Write to MH i2c: E2 08 00 A4 8B 80 17 00 00 00 00 00 00 AF [23:45:41]Write i2c OK [23:45:41]MH_I2C_Read... [23:45:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:45:41]Read from MH i2c: E2 [23:45:41]MH_I2C_Read... [23:45:41]Read from MH i2c: E2 FD 00 [23:45:41]MH_I2C_Read... [23:45:41]Read from MH i2c: E2 FD 00 A4 8B 00 F7 03 00 00 EF 03 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 90 00 26 [23:45:41]RAPDU: F7 03 00 00 EF 03 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 90 00 [23:45:41]wFMCommunicate OK [23:45:41]wFMCommunicate request_size=4 [23:45:41]MH_SAM_APDU [23:45:41]CAPDU: 80 17 00 00 [23:45:41]Write to MH i2c: E2 08 00 A5 8B 80 17 00 00 00 00 00 00 B0 [23:45:41]Write i2c OK [23:45:41]MH_I2C_Read... [23:45:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [23:45:42]Read from MH i2c: E2 [23:45:42]MH_I2C_Read... [23:45:42]Read from MH i2c: E2 DA 00 [23:45:42]MH_I2C_Read... [23:45:42]Read from MH i2c: E2 DA 00 A5 8B 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 91 [23:45:42]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:45:42]wFMCommunicate OK [23:45:42]SAM_PROTO_GetShiftData done [23:45:42]requested_item shift.sale.total_cash is exist - process it [23:45:42]requested_item shift.sale_refund.total is exist - process it [23:45:42]requested_item shift.sale_refund.total_cash is exist - process it [23:45:42]requested_item shift.buy.total is exist - process it [23:45:42]requested_item shift.buy.total_cash is exist - process it [23:45:42]produce_requested_data done [23:45:42]produce_requested_data return {"fm.sale.total":148986532.00,"fm.sale_refund.total":9940454.00,"fm.buy.total":0.00,"shift.sale.total":446614.00,"shift.sale.total_cash":252512.00,"shift.sale_refund.total":28863.00,"shift.sale_refund.total_cash":28863.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:45:42]process_action_free get_value [23:45:42]json_value_free [23:45:42]json_value_free done [23:45:42]process_json_proto returns [23:45:42]Send response to host [23:45:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148986532.00,"fm.sale_refund.total":9940454.00,"fm.buy.total":0.00,"shift.sale.total":446614.00,"shift.sale.total_cash":252512.00,"shift.sale_refund.total":28863.00,"shift.sale_refund.total_cash":28863.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:45:42]free response buf [23:45:42]execute_script done [23:45:42]execute_script returns [23:45:42]free content buf [23:45:42]Sock 7.Close socket [23:45:42]Sock 7.Thread stoped [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:41]OFD Sender: No OFD packet to send [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:11]OFD Sender: No OFD packet to send [23:47:16]OFD Sender: No OFD packet to send [23:47:21]OFD Sender: No OFD packet to send [23:47:21]accept exits with 9 [23:47:21]New connection [23:47:21]New thread 3067383140 created [23:47:21]Thread 3067239780 joined [23:47:21]Waiting for new connection... [23:47:21] Sock 9.Parse request [23:47:21]Sock 9.Check first char [23:47:21]Sock 9.First char is OK [23:47:21]request: POST /json_proto HTTP/1.0 [23:47:21]Method: POST [23:47:21]URL: /json_proto [23:47:21]Method is POST - this is cgi request [23:47:21]url: /json_proto [23:47:21]query_string will be loaded in cgi processing [23:47:21]execute_cgi json_proto POST (null) [23:47:21]execute_cgi path=json_proto method=POST [23:47:21]POST find Content-Length [23:47:21]Host: 172.17.45.7:8080 [23:47:21]Content-Length: 215 [23:47:21]Content-Type: application/json [23:47:21] [23:47:21]POST finish read [23:47:21]Found Content-Length = 215 [23:47:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:21]execute_script... [23:47:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:21]POST & json_proto [23:47:21]process_json_proto [23:47:21]json parsed OK: [23:47:21]protocol is kg_v1.0 [23:47:21]action value=get_value [23:47:21]process_action get_value [23:47:21]cmd_get_value [23:47:21]process_action get_value done [23:47:21]requested_data is exist [23:47:21]produce_requested_data [23:47:21]requested_item kkm.sn is exist - process it [23:47:21]requested_item kkm.ver is exist - process it [23:47:21]requested_item fm.sn is exist - process it [23:47:21]wFMCommunicate request_size=4 [23:47:21]MH_SAM_APDU [23:47:21]CAPDU: 80 11 00 00 [23:47:21]Write to MH i2c: E2 08 00 A6 8B 80 11 00 00 00 00 00 00 AB [23:47:21]Write i2c OK [23:47:21]MH_I2C_Read... [23:47:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:21]Read from MH i2c: E2 [23:47:21]MH_I2C_Read... [23:47:21]Read from MH i2c: E2 17 00 [23:47:21]MH_I2C_Read... [23:47:21]Read from MH i2c: E2 17 00 A6 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 06 [23:47:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:47:21]wFMCommunicate OK [23:47:21]requested_item fd.num is exist - process it [23:47:21]SAM_PROTO_GetFieldsCounters [23:47:21]wFMCommunicate request_size=4 [23:47:21]MH_SAM_APDU [23:47:21]CAPDU: 80 13 00 00 [23:47:21]Write to MH i2c: E2 08 00 A7 8B 80 13 00 00 00 00 00 00 AE [23:47:21]Write i2c OK [23:47:21]MH_I2C_Read... [23:47:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:22]Read from MH i2c: E2 [23:47:22]MH_I2C_Read... [23:47:22]Read from MH i2c: E2 62 00 [23:47:22]MH_I2C_Read... [23:47:22]Read from MH i2c: E2 62 00 A7 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A2 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [23:47: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A2 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:47:22]wFMCommunicate OK [23:47:22]SAM_PROTO_GetFieldsCounters done [23:47:22]requested_item shift.num is exist - process it [23:47:22]requested_item shift.opened is exist - process it [23:47:22]req_shift_opened [23:47:22]FM_GetShiftState [23:47:22]SAM_PROTO_GetShiftState [23:47:22]wFMCommunicate request_size=4 [23:47:22]MH_SAM_APDU [23:47:22]CAPDU: 80 13 01 00 [23:47:22]Write to MH i2c: E2 08 00 A8 8B 80 13 01 00 00 00 00 00 B0 [23:47:22]Write i2c OK [23:47:22]MH_I2C_Read... [23:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:22]Read from MH i2c: E2 [23:47:22]MH_I2C_Read... [23:47:22]Read from MH i2c: E2 0E 00 [23:47:22]MH_I2C_Read... [23:47:22]Read from MH i2c: E2 0E 00 A8 8B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 DE [23:47:22]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [23:47:22]wFMCommunicate OK [23:47:22]SAM_PROTO_GetShiftState done [23:47:22]FM_GetShiftState done [23:47:22]req_shift_opened done [23:47:22]requested_item shift.open_date is exist - process it [23:47:22]req_shift_open_date [23:47:22]req_shift_open_date done [23:47:22]produce_requested_data done [23:47:22]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118946,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [23:47:22]process_action_free get_value [23:47:22]json_value_free [23:47:22]json_value_free done [23:47:22]process_json_proto returns [23:47:22]Send response to host [23:47:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118946,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [23:47:22]free response buf [23:47:22]execute_script done [23:47:22]execute_script returns [23:47:22]free content buf [23:47:22]Sock 9.Close socket [23:47:22]Sock 9.Thread stoped [23:47:22]accept exits with 7 [23:47:22]New connection [23:47:22]New thread 3067239780 created [23:47:22]Thread 3067383140 joined [23:47:22]Waiting for new connection... [23:47:22] Sock 7.Parse request [23:47:22]Sock 7.Check first char [23:47:22]Sock 7.First char is OK [23:47:22]request: POST /json_proto HTTP/1.0 [23:47:22]Method: POST [23:47:22]URL: /json_proto [23:47:22]Method is POST - this is cgi request [23:47:22]url: /json_proto [23:47:22]query_string will be loaded in cgi processing [23:47:22]execute_cgi json_proto POST (null) [23:47:22]execute_cgi path=json_proto method=POST [23:47:22]POST find Content-Length [23:47:22]Host: 172.17.45.7:8080 [23:47:22]Content-Length: 331 [23:47:22]Content-Type: application/json [23:47:22] [23:47:22]POST finish read [23:47:22]Found Content-Length = 331 [23:47:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:47:22]execute_script... [23:47:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:47:22]POST & json_proto [23:47:22]process_json_proto [23:47:22]json parsed OK: [23:47:22]protocol is kg_v1.0 [23:47:22]action value=get_value [23:47:22]process_action get_value [23:47:22]cmd_get_value [23:47:22]process_action get_value done [23:47:22]requested_data is exist [23:47:22]produce_requested_data [23:47:22]requested_item fm.sale.total is exist - process it [23:47:22]SAM_PROTO_GetFMData [23:47:22]wFMCommunicate request_size=4 [23:47:22]MH_SAM_APDU [23:47:22]CAPDU: 80 13 03 00 [23:47:22]Write to MH i2c: E2 08 00 A9 8B 80 13 03 00 00 00 00 00 B3 [23:47:22]Write i2c OK [23:47:22]MH_I2C_Read... [23:47:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:47:22]Read from MH i2c: E2 [23:47:22]MH_I2C_Read... [23:47:22]Read from MH i2c: E2 FD 00 [23:47:22]MH_I2C_Read... [23:47:22]Read from MH i2c: E2 FD 00 A9 8B 00 C5 04 85 04 C1 04 6E 04 04 00 3E CD 01 00 69 04 A3 00 6F 04 04 00 AB BF 01 00 B1 04 05 00 10 68 07 78 03 70 04 05 00 18 05 19 A9 02 72 04 04 00 F8 62 EE CE 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C6 11 54 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7F 35 DC 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 93 0D 00 00 B1 04 04 00 D8 ED 3F 3B 70 04 04 00 D8 ED 3F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 F1 4A 06 EF 03 09 90 00 35 [23:47:22]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3E CD 01 00 69 04 A3 00 6F 04 04 00 AB BF 01 00 B1 04 05 00 10 68 07 78 03 70 04 05 00 18 05 19 A9 02 72 04 04 00 F8 62 EE CE 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C6 11 54 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7F 35 DC 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 93 0D 00 00 B1 04 04 00 D8 ED 3F 3B 70 04 04 00 D8 ED 3F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 F1 4A 06 EF 03 09 90 00 [23:47:22]wFMCommunicate OK [23:47:22]wFMCommunicate request_size=4 [23:47:22]MH_SAM_APDU [23:47:22]CAPDU: 80 17 00 00 [23:47:22]Write to MH i2c: E2 08 00 AA 8B 80 17 00 00 00 00 00 00 B5 [23:47:22]Write i2c OK [23:47:22]MH_I2C_Read... [23:47:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:23]Read from MH i2c: E2 [23:47:23]MH_I2C_Read... [23:47:23]Read from MH i2c: E2 FD 00 [23:47:23]MH_I2C_Read... [23:47:23]Read from MH i2c: E2 FD 00 AA 8B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 3D 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 15 [23:47:23]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 3D 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:47:23]wFMCommunicate OK [23:47:23]wFMCommunicate request_size=4 [23:47:23]MH_SAM_APDU [23:47:23]CAPDU: 80 17 00 00 [23:47:23]Write to MH i2c: E2 08 00 AB 8B 80 17 00 00 00 00 00 00 B6 [23:47:23]Write i2c OK [23:47:23]MH_I2C_Read... [23:47:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:23]Read from MH i2c: E2 [23:47:23]MH_I2C_Read... [23:47:23]Read from MH i2c: E2 FD 00 [23:47:23]MH_I2C_Read... [23:47:23]Read from MH i2c: E2 FD 00 AB 8B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 C8 [23:47:23]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:47:23]wFMCommunicate OK [23:47:23]wFMCommunicate request_size=4 [23:47:23]MH_SAM_APDU [23:47:23]CAPDU: 80 17 00 00 [23:47:23]Write to MH i2c: E2 08 00 AC 8B 80 17 00 00 00 00 00 00 B7 [23:47:23]Write i2c OK [23:47:23]MH_I2C_Read... [23:47:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:23]Read from MH i2c: E2 [23:47:23]MH_I2C_Read... [23:47:23]Read from MH i2c: E2 FD 00 [23:47:23]MH_I2C_Read... [23:47:23]Read from MH i2c: E2 FD 00 AC 8B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 43 [23:47:23]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:47:23]wFMCommunicate OK [23:47:23]wFMCommunicate request_size=4 [23:47:23]MH_SAM_APDU [23:47:23]CAPDU: 80 17 00 00 [23:47:23]Write to MH i2c: E2 08 00 AD 8B 80 17 00 00 00 00 00 00 B8 [23:47:23]Write i2c OK [23:47:23]MH_I2C_Read... [23:47:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:47:23]Read from MH i2c: E2 [23:47:23]MH_I2C_Read... [23:47:23]Read from MH i2c: E2 E2 00 [23:47:23]MH_I2C_Read... [23:47:23]Read from MH i2c: E2 E2 00 AD 8B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 96 [23:47:23]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:47:23]wFMCommunicate OK [23:47:23]SAM_PROTO_GetFMData done [23:47:23]requested_item fm.sale_refund.total is exist - process it [23:47:23]requested_item fm.buy.total is exist - process it [23:47:23]requested_item shift.sale.total is exist - process it [23:47:23]SAM_PROTO_GetShiftData [23:47:23]wFMCommunicate request_size=4 [23:47:23]MH_SAM_APDU [23:47:23]CAPDU: 80 13 02 00 [23:47:23]Write to MH i2c: E2 08 00 AE 8B 80 13 02 00 00 00 00 00 B7 [23:47:23]Write i2c OK [23:47:23]MH_I2C_Read... [23:47:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:47:24]Read from MH i2c: E2 [23:47:24]MH_I2C_Read... [23:47:24]Read from MH i2c: E2 FD 00 [23:47:24]MH_I2C_Read... [23:47:24]Read from MH i2c: E2 FD 00 AE 8B 00 BD 04 AA 04 B9 04 6E 04 04 00 42 01 00 00 69 04 9F 00 6F 04 04 00 39 01 00 00 B1 04 04 00 98 7A A9 02 70 04 04 00 80 4D 81 01 72 04 04 00 18 2D 28 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BA 62 48 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2F 08 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 9C 0A 2C 70 04 03 00 9C 0A 2C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 66 AD 04 EF 03 09 00 F6 03 01 00 00 F7 90 00 28 [23:47:24]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 42 01 00 00 69 04 9F 00 6F 04 04 00 39 01 00 00 B1 04 04 00 98 7A A9 02 70 04 04 00 80 4D 81 01 72 04 04 00 18 2D 28 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BA 62 48 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2F 08 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 9C 0A 2C 70 04 03 00 9C 0A 2C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 66 AD 04 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:47:24]wFMCommunicate OK [23:47:24]wFMCommunicate request_size=4 [23:47:24]MH_SAM_APDU [23:47:24]CAPDU: 80 17 00 00 [23:47:24]Write to MH i2c: E2 08 00 AF 8B 80 17 00 00 00 00 00 00 BA [23:47:24]Write i2c OK [23:47:24]MH_I2C_Read... [23:47:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:24]Read from MH i2c: E2 [23:47:24]MH_I2C_Read... [23:47:24]Read from MH i2c: E2 FD 00 [23:47:24]MH_I2C_Read... [23:47:24]Read from MH i2c: E2 FD 00 AF 8B 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 92 [23:47:24]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 [23:47:24]wFMCommunicate OK [23:47:24]wFMCommunicate request_size=4 [23:47:24]MH_SAM_APDU [23:47:24]CAPDU: 80 17 00 00 [23:47:24]Write to MH i2c: E2 08 00 B0 8B 80 17 00 00 00 00 00 00 BB [23:47:24]Write i2c OK [23:47:24]MH_I2C_Read... [23:47:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:24]Read from MH i2c: E2 [23:47:24]MH_I2C_Read... [23:47:24]Read from MH i2c: E2 FD 00 [23:47:24]MH_I2C_Read... [23:47:24]Read from MH i2c: E2 FD 00 B0 8B 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 ED [23:47:24]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [23:47:24]wFMCommunicate OK [23:47:24]wFMCommunicate request_size=4 [23:47:24]MH_SAM_APDU [23:47:24]CAPDU: 80 17 00 00 [23:47:24]Write to MH i2c: E2 08 00 B1 8B 80 17 00 00 00 00 00 00 BC [23:47:24]Write i2c OK [23:47:24]MH_I2C_Read... [23:47:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:25]Read from MH i2c: E2 [23:47:25]MH_I2C_Read... [23:47:25]Read from MH i2c: E2 FD 00 [23:47:25]MH_I2C_Read... [23:47:25]Read from MH i2c: E2 FD 00 B1 8B 00 F7 03 00 00 EF 03 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 90 00 33 [23:47:25]RAPDU: F7 03 00 00 EF 03 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 90 00 [23:47:25]wFMCommunicate OK [23:47:25]wFMCommunicate request_size=4 [23:47:25]MH_SAM_APDU [23:47:25]CAPDU: 80 17 00 00 [23:47:25]Write to MH i2c: E2 08 00 B2 8B 80 17 00 00 00 00 00 00 BD [23:47:25]Write i2c OK [23:47:25]MH_I2C_Read... [23:47:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [23:47:25]Read from MH i2c: E2 [23:47:25]MH_I2C_Read... [23:47:25]Read from MH i2c: E2 DA 00 [23:47:25]MH_I2C_Read... [23:47:25]Read from MH i2c: E2 DA 00 B2 8B 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9E [23:47:25]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:47:25]wFMCommunicate OK [23:47:25]SAM_PROTO_GetShiftData done [23:47:25]requested_item shift.sale.total_cash is exist - process it [23:47:25]requested_item shift.sale_refund.total is exist - process it [23:47:25]requested_item shift.sale_refund.total_cash is exist - process it [23:47:25]requested_item shift.buy.total is exist - process it [23:47:25]requested_item shift.buy.total_cash is exist - process it [23:47:25]produce_requested_data done [23:47:25]produce_requested_data return {"fm.sale.total":148986532.00,"fm.sale_refund.total":9940454.00,"fm.buy.total":0.00,"shift.sale.total":446614.00,"shift.sale.total_cash":252512.00,"shift.sale_refund.total":28863.00,"shift.sale_refund.total_cash":28863.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:47:25]process_action_free get_value [23:47:25]json_value_free [23:47:25]json_value_free done [23:47:25]process_json_proto returns [23:47:25]Send response to host [23:47:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148986532.00,"fm.sale_refund.total":9940454.00,"fm.buy.total":0.00,"shift.sale.total":446614.00,"shift.sale.total_cash":252512.00,"shift.sale_refund.total":28863.00,"shift.sale_refund.total_cash":28863.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:47:25]free response buf [23:47:25]execute_script done [23:47:25]execute_script returns [23:47:25]free content buf [23:47:25]Sock 7.Close socket [23:47:25]Sock 7.Thread stoped [23:47:25]accept exits with 9 [23:47:25]New connection [23:47:25]New thread 3067383140 created [23:47:25]Thread 3067239780 joined [23:47:25]Waiting for new connection... [23:47:25] Sock 9.Parse request [23:47:25]Sock 9.Check first char [23:47:25]Sock 9.First char is OK [23:47:25]request: POST /json_proto HTTP/1.0 [23:47:25]Method: POST [23:47:25]URL: /json_proto [23:47:25]Method is POST - this is cgi request [23:47:25]url: /json_proto [23:47:25]query_string will be loaded in cgi processing [23:47:25]execute_cgi json_proto POST (null) [23:47:25]execute_cgi path=json_proto method=POST [23:47:25]POST find Content-Length [23:47:25]Host: 172.17.45.7:8080 [23:47:25]Content-Length: 331 [23:47:25]Content-Type: application/json [23:47:25] [23:47:25]POST finish read [23:47:25]Found Content-Length = 331 [23:47:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:47:25]execute_script... [23:47:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:47:25]POST & json_proto [23:47:25]process_json_proto [23:47:25]json parsed OK: [23:47:25]protocol is kg_v1.0 [23:47:25]action value=get_value [23:47:25]process_action get_value [23:47:25]cmd_get_value [23:47:25]process_action get_value done [23:47:25]requested_data is exist [23:47:25]produce_requested_data [23:47:25]requested_item fm.sale.total is exist - process it [23:47:25]SAM_PROTO_GetFMData [23:47:25]wFMCommunicate request_size=4 [23:47:25]MH_SAM_APDU [23:47:25]CAPDU: 80 13 03 00 [23:47:25]Write to MH i2c: E2 08 00 B3 8B 80 13 03 00 00 00 00 00 BD [23:47:25]Write i2c OK [23:47:25]MH_I2C_Read... [23:47:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:47:26]Read from MH i2c: E2 [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: E2 FD 00 [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: E2 FD 00 B3 8B 00 C5 04 85 04 C1 04 6E 04 04 00 3E CD 01 00 69 04 A3 00 6F 04 04 00 AB BF 01 00 B1 04 05 00 10 68 07 78 03 70 04 05 00 18 05 19 A9 02 72 04 04 00 F8 62 EE CE 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C6 11 54 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7F 35 DC 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 93 0D 00 00 B1 04 04 00 D8 ED 3F 3B 70 04 04 00 D8 ED 3F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 F1 4A 06 EF 03 09 90 00 3F [23:47:26]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3E CD 01 00 69 04 A3 00 6F 04 04 00 AB BF 01 00 B1 04 05 00 10 68 07 78 03 70 04 05 00 18 05 19 A9 02 72 04 04 00 F8 62 EE CE 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C6 11 54 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7F 35 DC 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 93 0D 00 00 B1 04 04 00 D8 ED 3F 3B 70 04 04 00 D8 ED 3F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 F1 4A 06 EF 03 09 90 00 [23:47:26]wFMCommunicate OK [23:47:26]wFMCommunicate request_size=4 [23:47:26]MH_SAM_APDU [23:47:26]CAPDU: 80 17 00 00 [23:47:26]Write to MH i2c: E2 08 00 B4 8B 80 17 00 00 00 00 00 00 BF [23:47:26]Write i2c OK [23:47:26]MH_I2C_Read... [23:47:26]OFD Sender: No OFD packet to send [23:47:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:26]Read from MH i2c: E2 [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: E2 FD 00 [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: E2 FD 00 B4 8B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 3D 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 1F [23:47:26]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 3D 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:47:26]wFMCommunicate OK [23:47:26]wFMCommunicate request_size=4 [23:47:26]MH_SAM_APDU [23:47:26]CAPDU: 80 17 00 00 [23:47:26]Write to MH i2c: E2 08 00 B5 8B 80 17 00 00 00 00 00 00 C0 [23:47:26]Write i2c OK [23:47:26]MH_I2C_Read... [23:47:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:26]Read from MH i2c: E2 [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: E2 FD 00 [23:47:26]MH_I2C_Read... [23:47:26]Read from MH i2c: E2 FD 00 B5 8B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 D2 [23:47:26]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:47:26]wFMCommunicate OK [23:47:26]wFMCommunicate request_size=4 [23:47:26]MH_SAM_APDU [23:47:26]CAPDU: 80 17 00 00 [23:47:26]Write to MH i2c: E2 08 00 B6 8B 80 17 00 00 00 00 00 00 C1 [23:47:26]Write i2c OK [23:47:26]MH_I2C_Read... [23:47:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:27]Read from MH i2c: E2 [23:47:27]MH_I2C_Read... [23:47:27]Read from MH i2c: E2 FD 00 [23:47:27]MH_I2C_Read... [23:47:27]Read from MH i2c: E2 FD 00 B6 8B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 4D [23:47:27]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:47:27]wFMCommunicate OK [23:47:27]wFMCommunicate request_size=4 [23:47:27]MH_SAM_APDU [23:47:27]CAPDU: 80 17 00 00 [23:47:27]Write to MH i2c: E2 08 00 B7 8B 80 17 00 00 00 00 00 00 C2 [23:47:27]Write i2c OK [23:47:27]MH_I2C_Read... [23:47:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:47:27]Read from MH i2c: E2 [23:47:27]MH_I2C_Read... [23:47:27]Read from MH i2c: E2 E2 00 [23:47:27]MH_I2C_Read... [23:47:27]Read from MH i2c: E2 E2 00 B7 8B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A0 [23:47:27]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:47:27]wFMCommunicate OK [23:47:27]SAM_PROTO_GetFMData done [23:47:27]requested_item fm.sale_refund.total is exist - process it [23:47:27]requested_item fm.buy.total is exist - process it [23:47:27]requested_item shift.sale.total is exist - process it [23:47:27]SAM_PROTO_GetShiftData [23:47:27]wFMCommunicate request_size=4 [23:47:27]MH_SAM_APDU [23:47:27]CAPDU: 80 13 02 00 [23:47:27]Write to MH i2c: E2 08 00 B8 8B 80 13 02 00 00 00 00 00 C1 [23:47:27]Write i2c OK [23:47:27]MH_I2C_Read... [23:47:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:47:28]Read from MH i2c: E2 [23:47:28]MH_I2C_Read... [23:47:28]Read from MH i2c: E2 FD 00 [23:47:28]MH_I2C_Read... [23:47:28]Read from MH i2c: E2 FD 00 B8 8B 00 BD 04 AA 04 B9 04 6E 04 04 00 42 01 00 00 69 04 9F 00 6F 04 04 00 39 01 00 00 B1 04 04 00 98 7A A9 02 70 04 04 00 80 4D 81 01 72 04 04 00 18 2D 28 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BA 62 48 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2F 08 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 9C 0A 2C 70 04 03 00 9C 0A 2C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 66 AD 04 EF 03 09 00 F6 03 01 00 00 F7 90 00 32 [23:47:28]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 42 01 00 00 69 04 9F 00 6F 04 04 00 39 01 00 00 B1 04 04 00 98 7A A9 02 70 04 04 00 80 4D 81 01 72 04 04 00 18 2D 28 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BA 62 48 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2F 08 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 9C 0A 2C 70 04 03 00 9C 0A 2C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 66 AD 04 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:47:28]wFMCommunicate OK [23:47:28]wFMCommunicate request_size=4 [23:47:28]MH_SAM_APDU [23:47:28]CAPDU: 80 17 00 00 [23:47:28]Write to MH i2c: E2 08 00 B9 8B 80 17 00 00 00 00 00 00 C4 [23:47:28]Write i2c OK [23:47:28]MH_I2C_Read... [23:47:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:28]Read from MH i2c: E2 [23:47:28]MH_I2C_Read... [23:47:28]Read from MH i2c: E2 FD 00 [23:47:28]MH_I2C_Read... [23:47:28]Read from MH i2c: E2 FD 00 B9 8B 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 9C [23:47:28]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 [23:47:28]wFMCommunicate OK [23:47:28]wFMCommunicate request_size=4 [23:47:28]MH_SAM_APDU [23:47:28]CAPDU: 80 17 00 00 [23:47:28]Write to MH i2c: E2 08 00 BA 8B 80 17 00 00 00 00 00 00 C5 [23:47:28]Write i2c OK [23:47:28]MH_I2C_Read... [23:47:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:28]Read from MH i2c: E2 [23:47:28]MH_I2C_Read... [23:47:28]Read from MH i2c: E2 FD 00 [23:47:28]MH_I2C_Read... [23:47:28]Read from MH i2c: E2 FD 00 BA 8B 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 F7 [23:47:29]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [23:47:29]wFMCommunicate OK [23:47:29]wFMCommunicate request_size=4 [23:47:29]MH_SAM_APDU [23:47:29]CAPDU: 80 17 00 00 [23:47:29]Write to MH i2c: E2 08 00 BB 8B 80 17 00 00 00 00 00 00 C6 [23:47:29]Write i2c OK [23:47:29]MH_I2C_Read... [23:47:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:29]Read from MH i2c: E2 [23:47:29]MH_I2C_Read... [23:47:29]Read from MH i2c: E2 FD 00 [23:47:29]MH_I2C_Read... [23:47:29]Read from MH i2c: E2 FD 00 BB 8B 00 F7 03 00 00 EF 03 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 90 00 3D [23:47:29]RAPDU: F7 03 00 00 EF 03 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 90 00 [23:47:29]wFMCommunicate OK [23:47:29]wFMCommunicate request_size=4 [23:47:29]MH_SAM_APDU [23:47:29]CAPDU: 80 17 00 00 [23:47:29]Write to MH i2c: E2 08 00 BC 8B 80 17 00 00 00 00 00 00 C7 [23:47:29]Write i2c OK [23:47:29]MH_I2C_Read... [23:47:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [23:47:29]Read from MH i2c: E2 [23:47:29]MH_I2C_Read... [23:47:29]Read from MH i2c: E2 DA 00 [23:47:29]MH_I2C_Read... [23:47:29]Read from MH i2c: E2 DA 00 BC 8B 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A8 [23:47:29]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:47:29]wFMCommunicate OK [23:47:29]SAM_PROTO_GetShiftData done [23:47:29]requested_item shift.sale.total_cash is exist - process it [23:47:29]requested_item shift.sale_refund.total is exist - process it [23:47:29]requested_item shift.sale_refund.total_cash is exist - process it [23:47:29]requested_item shift.buy.total is exist - process it [23:47:29]requested_item shift.buy.total_cash is exist - process it [23:47:29]produce_requested_data done [23:47:29]produce_requested_data return {"fm.sale.total":148986532.00,"fm.sale_refund.total":9940454.00,"fm.buy.total":0.00,"shift.sale.total":446614.00,"shift.sale.total_cash":252512.00,"shift.sale_refund.total":28863.00,"shift.sale_refund.total_cash":28863.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:47:29]process_action_free get_value [23:47:29]json_value_free [23:47:29]json_value_free done [23:47:29]process_json_proto returns [23:47:29]Send response to host [23:47:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148986532.00,"fm.sale_refund.total":9940454.00,"fm.buy.total":0.00,"shift.sale.total":446614.00,"shift.sale.total_cash":252512.00,"shift.sale_refund.total":28863.00,"shift.sale_refund.total_cash":28863.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:47:29]free response buf [23:47:29]execute_script done [23:47:29]execute_script returns [23:47:29]free content buf [23:47:29]Sock 9.Close socket [23:47:29]Sock 9.Thread stoped [23:47:29]accept exits with 7 [23:47:29]New connection [23:47:29]New thread 3067239780 created [23:47:29]Thread 3067383140 joined [23:47:29]Waiting for new connection... [23:47:29] Sock 7.Parse request [23:47:29]Sock 7.Check first char [23:47:29]Sock 7.First char is OK [23:47:29]request: POST /json_proto HTTP/1.0 [23:47:29]Method: POST [23:47:29]URL: /json_proto [23:47:29]Method is POST - this is cgi request [23:47:29]url: /json_proto [23:47:29]query_string will be loaded in cgi processing [23:47:29]execute_cgi json_proto POST (null) [23:47:29]execute_cgi path=json_proto method=POST [23:47:29]POST find Content-Length [23:47:29]Host: 172.17.45.7:8080 [23:47:29]Content-Length: 251 [23:47:29]Content-Type: application/json [23:47:29] [23:47:29]POST finish read [23:47:29]Found Content-Length = 251 [23:47:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:29]execute_script... [23:47:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:29]POST & json_proto [23:47:29]process_json_proto [23:47:29]json parsed OK: [23:47:29]protocol is kg_v1.0 [23:47:29]action value=x_report [23:47:29]process_action x_report [23:47:29]cmd_x_report [23:47:29]MH_GetDate [23:47:29]Write to MH i2c: F0 00 00 BD 8B 37 [23:47:29]Write i2c OK [23:47:29]MH_I2C_Read... [23:47:29]Read from MH i2c: F0 [23:47:29]MH_I2C_Read... [23:47:29]Read from MH i2c: F0 09 00 [23:47:29]MH_I2C_Read... [23:47:29]Read from MH i2c: F0 09 00 BD 8B 00 19 2A A8 66 90 0F 3E 66 D4 [23:47:29]GetLastDocTimeStamp 1722295424 [23:47:29]current date 1722296857 [23:47:29]FM_GetShiftState [23:47:29]SAM_PROTO_GetShiftState [23:47:29]wFMCommunicate request_size=4 [23:47:29]MH_SAM_APDU [23:47:29]CAPDU: 80 13 01 00 [23:47:29]Write to MH i2c: E2 08 00 BE 8B 80 13 01 00 00 00 00 00 C6 [23:47:29]Write i2c OK [23:47:29]MH_I2C_Read... [23:47:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:29]Read from MH i2c: E2 [23:47:29]MH_I2C_Read... [23:47:29]Read from MH i2c: E2 0E 00 [23:47:29]MH_I2C_Read... [23:47:29]Read from MH i2c: E2 0E 00 BE 8B 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 F4 [23:47:29]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [23:47:30]wFMCommunicate OK [23:47:30]SAM_PROTO_GetShiftState done [23:47:30]FM_GetShiftState done [23:47:30]KKMCreateXReportDocument [23:47:30]Load OK [23:47:30]Malloc new data [23:47:30]MH_GetDate [23:47:30]Write to MH i2c: F0 00 00 BF 8B 39 [23:47:30]Write i2c OK [23:47:30]MH_I2C_Read... [23:47:30]Read from MH i2c: F0 [23:47:30]MH_I2C_Read... [23:47:30]Read from MH i2c: F0 09 00 [23:47:30]MH_I2C_Read... [23:47:30]Read from MH i2c: F0 09 00 BF 8B 00 19 2A A8 66 90 0F 3E 66 D6 [23:47:30]Malloc new data [23:47:30]Malloc new data [23:47:30]wFMCommunicate request_size=4 [23:47:30]MH_SAM_APDU [23:47:30]CAPDU: 80 11 00 00 [23:47:30]Write to MH i2c: E2 08 00 C0 8B 80 11 00 00 00 00 00 00 C5 [23:47:30]Write i2c OK [23:47:30]MH_I2C_Read... [23:47:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:30]Read from MH i2c: E2 [23:47:30]MH_I2C_Read... [23:47:30]Read from MH i2c: E2 17 00 [23:47:30]MH_I2C_Read... [23:47:30]Read from MH i2c: E2 17 00 C0 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 20 [23:47:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:47:30]wFMCommunicate OK [23:47:30]SAM_PROTO_GetFieldsCounters [23:47:30]wFMCommunicate request_size=4 [23:47:30]MH_SAM_APDU [23:47:30]CAPDU: 80 13 00 00 [23:47:30]Write to MH i2c: E2 08 00 C1 8B 80 13 00 00 00 00 00 00 C8 [23:47:30]Write i2c OK [23:47:30]MH_I2C_Read... [23:47:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:30]Read from MH i2c: E2 [23:47:30]MH_I2C_Read... [23:47:30]Read from MH i2c: E2 62 00 [23:47:30]MH_I2C_Read... [23:47:30]Read from MH i2c: E2 62 00 C1 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A2 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 DE [23:47: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A2 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:47:30]wFMCommunicate OK [23:47:30]SAM_PROTO_GetFieldsCounters done [23:47:30]Malloc new data [23:47:30]Malloc new data [23:47:30]Malloc new data [23:47:30]KKMCreateXReportDocument OK [23:47:30]KKMSetXReportData OK [23:47:30]KKMPrepareXReportFMData [23:47:30]SAM_PROTO_GetShiftData [23:47:30]wFMCommunicate request_size=4 [23:47:30]MH_SAM_APDU [23:47:30]CAPDU: 80 13 02 00 [23:47:30]Write to MH i2c: E2 08 00 C2 8B 80 13 02 00 00 00 00 00 CB [23:47:30]Write i2c OK [23:47:30]MH_I2C_Read... [23:47:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:47:30]Read from MH i2c: E2 [23:47:30]MH_I2C_Read... [23:47:30]Read from MH i2c: E2 FD 00 [23:47:30]MH_I2C_Read... [23:47:30]Read from MH i2c: E2 FD 00 C2 8B 00 BD 04 AA 04 B9 04 6E 04 04 00 42 01 00 00 69 04 9F 00 6F 04 04 00 39 01 00 00 B1 04 04 00 98 7A A9 02 70 04 04 00 80 4D 81 01 72 04 04 00 18 2D 28 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BA 62 48 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2F 08 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 9C 0A 2C 70 04 03 00 9C 0A 2C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 66 AD 04 EF 03 09 00 F6 03 01 00 00 F7 90 00 3C [23:47:30]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 42 01 00 00 69 04 9F 00 6F 04 04 00 39 01 00 00 B1 04 04 00 98 7A A9 02 70 04 04 00 80 4D 81 01 72 04 04 00 18 2D 28 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BA 62 48 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2F 08 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 9C 0A 2C 70 04 03 00 9C 0A 2C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 66 AD 04 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:47:30]wFMCommunicate OK [23:47:30]wFMCommunicate request_size=4 [23:47:30]MH_SAM_APDU [23:47:30]CAPDU: 80 17 00 00 [23:47:30]Write to MH i2c: E2 08 00 C3 8B 80 17 00 00 00 00 00 00 CE [23:47:30]Write i2c OK [23:47:30]MH_I2C_Read... [23:47:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:31]Read from MH i2c: E2 [23:47:31]MH_I2C_Read... [23:47:31]Read from MH i2c: E2 FD 00 [23:47:31]MH_I2C_Read... [23:47:31]Read from MH i2c: E2 FD 00 C3 8B 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 OFD Sender: No OFD packet to send [23:47:31]03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 A6 [23:47:31]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 [23:47:31]wFMCommunicate OK [23:47:31]wFMCommunicate request_size=4 [23:47:31]MH_SAM_APDU [23:47:31]CAPDU: 80 17 00 00 [23:47:31]Write to MH i2c: E2 08 00 C4 8B 80 17 00 00 00 00 00 00 CF [23:47:31]Write i2c OK [23:47:31]MH_I2C_Read... [23:47:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:31]Read from MH i2c: E2 [23:47:31]MH_I2C_Read... [23:47:31]Read from MH i2c: E2 FD 00 [23:47:31]MH_I2C_Read... [23:47:31]Read from MH i2c: E2 FD 00 C4 8B 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 01 [23:47:31]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [23:47:31]wFMCommunicate OK [23:47:31]wFMCommunicate request_size=4 [23:47:31]MH_SAM_APDU [23:47:31]CAPDU: 80 17 00 00 [23:47:31]Write to MH i2c: E2 08 00 C5 8B 80 17 00 00 00 00 00 00 D0 [23:47:31]Write i2c OK [23:47:31]MH_I2C_Read... [23:47:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:32]Read from MH i2c: E2 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 FD 00 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 FD 00 C5 8B 00 F7 03 00 00 EF 03 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 90 00 47 [23:47:32]RAPDU: F7 03 00 00 EF 03 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 90 00 [23:47:32]wFMCommunicate OK [23:47:32]wFMCommunicate request_size=4 [23:47:32]MH_SAM_APDU [23:47:32]CAPDU: 80 17 00 00 [23:47:32]Write to MH i2c: E2 08 00 C6 8B 80 17 00 00 00 00 00 00 D1 [23:47:32]Write i2c OK [23:47:32]MH_I2C_Read... [23:47:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [23:47:32]Read from MH i2c: E2 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 DA 00 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 DA 00 C6 8B 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B2 [23:47:32]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:47:32]wFMCommunicate OK [23:47:32]SAM_PROTO_GetShiftData done [23:47:32]1194 (1209) - счетчики итогов смены [23:47:32] 1134 (4) - 322 - количество чеков со всеми признаками расчетов [23:47:32] 1129 (159) - счетчики операций «приход» [23:47:32] 1135 (4) - 313 - количество чеков по признаку расчетов [23:47:32] 1201 (4) - 446614.00 - общая итоговая сумма в чеках [23:47:32] 1136 (4) - 252512.00 - итоговая сумма в чеках наличными [23:47:32] 1138 (4) - 194102.00 - итоговая сумма в чеках безналичными [23:47:32] 1024 (123) - суммы налогов [23:47:32] 1006 (9) - суммы НДС [23:47:32] 1010 (1) - 0% - код ставки НДС [23:47:32] 1011 (0) - 0.00 - сумма НДС по ставке [23:47:32] 1006 (12) - суммы НДС [23:47:32] 1010 (1) - 12% - код ставки НДС [23:47:32] 1011 (3) - 47438.66 - сумма НДС по ставке [23:47:32] 1007 (9) - суммы НСП [23:47:32] 1014 (1) - 0% - код ставки НСП [23:47:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:32] 1007 (12) - суммы НСП [23:47:32] 1014 (1) - 1% - код ставки НСП [23:47:32] 1015 (3) - 3953.11 - сумма НСП по ставке [23:47:32] 1007 (9) - суммы НСП [23:47:32] 1014 (1) - 2% - код ставки НСП [23:47:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:32] 1007 (9) - суммы НСП [23:47:32] 1014 (1) - 3% - код ставки НСП [23:47:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:32] 1007 (9) - суммы НСП [23:47:32] 1014 (1) - 5% - код ставки НСП [23:47:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:32] 1007 (9) - суммы НСП [23:47:32] 1014 (1) - 0,50% - код ставки НСП [23:47:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:32] 1007 (9) - суммы НСП [23:47:32] 1014 (1) - 1,50% - код ставки НСП [23:47:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:32] 1130 (152) - счетчики операций «возврат прихода» [23:47:32] 1135 (4) - 9 - количество чеков по признаку расчетов [23:47:32] 1201 (3) - 28863.00 - общая итоговая сумма в чеках [23:47:32] 1136 (3) - 28863.00 - итоговая сумма в чеках наличными [23:47:32] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:47:32] 1024 (122) - суммы налогов [23:47:32] 1006 (9) - суммы НДС [23:47:32] 1010 (1) - 0% - код ставки НДС [23:47:32] 1011 (0) - 0.00 - сумма НДС по ставке [23:47:32] 1006 (12) - суммы НДС [23:47:32] 1010 (1) - 12% - код ставки НДС [23:47:32] 1011 (3) - 3065.34 - сумма НДС по ставке [23:47:32] 1007 (9) - суммы НСП [23:47:32] 1014 (1) - 0% - код ставки НСП [23:47:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:32] 1007 (11) - суммы НСП [23:47:32] 1014 (1) - 1% - код ставки НСП [23:47:33] 1015 (2) - 255.44 - сумма НСП по ставке [23:47:33] 1007 (9) - суммы НСП [23:47:33] 1014 (1) - 2% - код ставки НСП [23:47:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:33] 1007 (9) - суммы НСП [23:47:33] 1014 (1) - 3% - код ставки НСП [23:47:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:33] 1007 (9) - суммы НСП [23:47:33] 1014 (1) - 5% - код ставки НСП [23:47:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:33] 1007 (9) - суммы НСП [23:47:33] 1014 (1) - 0,50% - код ставки НСП [23:47:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:33] 1007 (9) - суммы НСП [23:47:33] 1014 (1) - 1,50% - код ставки НСП [23:47:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:33] 1131 (141) - счетчики операций «расход» [23:47:33] 1135 (4) - 0 - количество чеков по признаку расчетов [23:47:33] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:47:33] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:47:33] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:47:33] 1024 (117) - суммы налогов [23:47:33] 1006 (9) - суммы НДС [23:47:33] 1010 (1) - 0% - код ставки НДС [23:47:33] 1011 (0) - 0.00 - сумма НДС по ставке [23:47:33] 1006 (9) - суммы НДС [23:47:33] 1010 (1) - 12% - код ставки НДС [23:47:33] 1011 (0) - 0.00 - сумма НДС по ставке [23:47:33] 1007 (9) - суммы НСП [23:47:33] 1014 (1) - 0% - код ставки НСП [23:47:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:33] 1007 (9) - суммы НСП [23:47:33] 1014 (1) - 1% - код ставки НСП [23:47:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:33] 1007 (9) - суммы НСП [23:47:33] 1014 (1) - 2% - код ставки НСП [23:47:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:33] 1007 (9) - суммы НСП [23:47:33] 1014 (1) - 3% - код ставки НСП [23:47:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:33] 1007 (9) - суммы НСП [23:47:33] 1014 (1) - 5% - код ставки НСП [23:47:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:33] 1007 (9) - суммы НСП [23:47:33] 1014 (1) - 0,50% - код ставки НСП [23:47:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:33] 1007 (9) - суммы НСП [23:47:33] 1014 (1) - 1,50% - код ставки НСП [23:47:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:33] 1132 (141) - счетчики операций «возврат расхода» [23:47:33] 1135 (4) - 0 - количество чеков по признаку расчетов [23:47:33] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:47:33] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:47:33] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:47:33] 1024 (117) - суммы налогов [23:47:33] 1006 (9) - суммы НДС [23:47:33] 1010 (1) - 0% - код ставки НДС [23:47:33] 1011 (0) - 0.00 - сумма НДС по ставке [23:47:33] 1006 (9) - суммы НДС [23:47:33] 1010 (1) - 12% - код ставки НДС [23:47:33] 1011 (0) - 0.00 - сумма НДС по ставке [23:47:33] 1007 (9) - суммы НСП [23:47:33] 1014 (1) - 0% - код ставки НСП [23:47:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:33] 1007 (9) - суммы НСП [23:47:33] 1014 (1) - 1% - код ставки НСП [23:47:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:33] 1007 (9) - суммы НСП [23:47:33] 1014 (1) - 2% - код ставки НСП [23:47:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:33] 1007 (9) - суммы НСП [23:47:33] 1014 (1) - 3% - код ставки НСП [23:47:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:33] 1007 (9) - суммы НСП [23:47:33] 1014 (1) - 5% - код ставки НСП [23:47:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:33] 1007 (9) - суммы НСП [23:47:33] 1014 (1) - 0,50% - код ставки НСП [23:47:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:33] 1007 (9) - суммы НСП [23:47:33] 1014 (1) - 1,50% - код ставки НСП [23:47:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:47:33] 1133 (588) - - счетчики коррекции - не используются [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1194 (04AA) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1134 (046E) [23:47:33]Malloc new data [23:47:33]Processing tag 1129 (0469) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1135 (046F) [23:47:33]Malloc new data [23:47:33]Processing tag 1201 (04B1) [23:47:33]Malloc new data [23:47:33]Processing tag 1136 (0470) [23:47:33]Malloc new data [23:47:33]Processing tag 1138 (0472) [23:47:33]Malloc new data [23:47:33]Processing tag 1024 (0400) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1006 (03EE) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1010 (03F2) [23:47:33]Malloc new data [23:47:33]Processing tag 1011 (03F3) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1006 (03EE) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1010 (03F2) [23:47:33]Malloc new data [23:47:33]Processing tag 1011 (03F3) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]SetTLVBufToDocument err=0 [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1130 (046A) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1135 (046F) [23:47:33]Malloc new data [23:47:33]Processing tag 1201 (04B1) [23:47:33]Malloc new data [23:47:33]Processing tag 1136 (0470) [23:47:33]Malloc new data [23:47:33]Processing tag 1138 (0472) [23:47:33]Malloc new data [23:47:33]Processing tag 1024 (0400) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1006 (03EE) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1010 (03F2) [23:47:33]Malloc new data [23:47:33]Processing tag 1011 (03F3) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1006 (03EE) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1010 (03F2) [23:47:33]Malloc new data [23:47:33]Processing tag 1011 (03F3) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]SetTLVBufToDocument err=0 [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1131 (046B) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1135 (046F) [23:47:33]Malloc new data [23:47:33]Processing tag 1201 (04B1) [23:47:33]Malloc new data [23:47:33]Processing tag 1136 (0470) [23:47:33]Malloc new data [23:47:33]Processing tag 1138 (0472) [23:47:33]Malloc new data [23:47:33]Processing tag 1024 (0400) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1006 (03EE) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1010 (03F2) [23:47:33]Malloc new data [23:47:33]Processing tag 1011 (03F3) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1006 (03EE) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1010 (03F2) [23:47:33]Malloc new data [23:47:33]Processing tag 1011 (03F3) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]SetTLVBufToDocument err=0 [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1132 (046C) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1135 (046F) [23:47:33]Malloc new data [23:47:33]Processing tag 1201 (04B1) [23:47:33]Malloc new data [23:47:33]Processing tag 1136 (0470) [23:47:33]Malloc new data [23:47:33]Processing tag 1138 (0472) [23:47:33]Malloc new data [23:47:33]Processing tag 1024 (0400) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1006 (03EE) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1010 (03F2) [23:47:33]Malloc new data [23:47:33]Processing tag 1011 (03F3) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1006 (03EE) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1010 (03F2) [23:47:33]Malloc new data [23:47:33]Processing tag 1011 (03F3) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:33]Processing tag 1014 (03F6) [23:47:33]Malloc new data [23:47:33]Processing tag 1015 (03F7) [23:47:33]Malloc new data [23:47:33]SetTLVBufToDocument err=0 [23:47:33]Processing tag 1007 (03EF) [23:47:33]Load OK [23:47:33]SetTLVBufToDocument [23:47:34]Processing tag 1014 (03F6) [23:47:34]Malloc new data [23:47:34]Processing tag 1015 (03F7) [23:47:34]Malloc new data [23:47:34]SetTLVBufToDocument err=0 [23:47:34]Processing tag 1007 (03EF) [23:47:34]Load OK [23:47:34]SetTLVBufToDocument [23:47:34]Processing tag 1014 (03F6) [23:47:34]Malloc new data [23:47:34]Processing tag 1015 (03F7) [23:47:34]Malloc new data [23:47:34]SetTLVBufToDocument err=0 [23:47:34]Processing tag 1007 (03EF) [23:47:34]Load OK [23:47:34]SetTLVBufToDocument [23:47:34]Processing tag 1014 (03F6) [23:47:34]Malloc new data [23:47:34]Processing tag 1015 (03F7) [23:47:34]Malloc new data [23:47:34]SetTLVBufToDocument err=0 [23:47:34]Processing tag 1007 (03EF) [23:47:34]Load OK [23:47:34]SetTLVBufToDocument [23:47:34]Processing tag 1014 (03F6) [23:47:34]Malloc new data [23:47:34]Processing tag 1015 (03F7) [23:47:34]Malloc new data [23:47:34]SetTLVBufToDocument err=0 [23:47:34]Processing tag 1007 (03EF) [23:47:34]Load OK [23:47:34]SetTLVBufToDocument [23:47:34]Processing tag 1014 (03F6) [23:47:34]Malloc new data [23:47:34]Processing tag 1015 (03F7) [23:47:34]Malloc new data [23:47:34]SetTLVBufToDocument err=0 [23:47:34]SetTLVBufToDocument err=0 [23:47:34]SetTLVBufToDocument err=0 [23:47:34]Processing tag 1133 (046D) [23:47:34]Malloc new data [23:47:34]SetTLVBufToDocument err=0 [23:47:34]SetTLVBufToDocument err=0 [23:47:34]Malloc new data [23:47:34]SAM_PROTO_GetFMData [23:47:34]wFMCommunicate request_size=4 [23:47:34]MH_SAM_APDU [23:47:34]CAPDU: 80 13 03 00 [23:47:34]Write to MH i2c: E2 08 00 C7 8B 80 13 03 00 00 00 00 00 D1 [23:47:34]Write i2c OK [23:47:34]MH_I2C_Read... [23:47:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:47:34]Read from MH i2c: E2 [23:47:34]MH_I2C_Read... [23:47:34]Read from MH i2c: E2 FD 00 [23:47:34]MH_I2C_Read... [23:47:34]Read from MH i2c: E2 FD 00 C7 8B 00 C5 04 85 04 C1 04 6E 04 04 00 3E CD 01 00 69 04 A3 00 6F 04 04 00 AB BF 01 00 B1 04 05 00 10 68 07 78 03 70 04 05 00 18 05 19 A9 02 72 04 04 00 F8 62 EE CE 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C6 11 54 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7F 35 DC 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 93 0D 00 00 B1 04 04 00 D8 ED 3F 3B 70 04 04 00 D8 ED 3F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 F1 4A 06 EF 03 09 90 00 53 [23:47:34]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3E CD 01 00 69 04 A3 00 6F 04 04 00 AB BF 01 00 B1 04 05 00 10 68 07 78 03 70 04 05 00 18 05 19 A9 02 72 04 04 00 F8 62 EE CE 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C6 11 54 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7F 35 DC 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 93 0D 00 00 B1 04 04 00 D8 ED 3F 3B 70 04 04 00 D8 ED 3F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 F1 4A 06 EF 03 09 90 00 [23:47:34]wFMCommunicate OK [23:47:34]wFMCommunicate request_size=4 [23:47:34]MH_SAM_APDU [23:47:34]CAPDU: 80 17 00 00 [23:47:34]Write to MH i2c: E2 08 00 C8 8B 80 17 00 00 00 00 00 00 D3 [23:47:34]Write i2c OK [23:47:34]MH_I2C_Read... [23:47:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:35]Read from MH i2c: E2 [23:47:35]MH_I2C_Read... [23:47:35]Read from MH i2c: E2 FD 00 [23:47:35]MH_I2C_Read... [23:47:35]Read from MH i2c: E2 FD 00 C8 8B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 3D 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 33 [23:47:35]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 3D 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:47:35]wFMCommunicate OK [23:47:35]wFMCommunicate request_size=4 [23:47:35]MH_SAM_APDU [23:47:35]CAPDU: 80 17 00 00 [23:47:35]Write to MH i2c: E2 08 00 C9 8B 80 17 00 00 00 00 00 00 D4 [23:47:35]Write i2c OK [23:47:35]MH_I2C_Read... [23:47:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:35]Read from MH i2c: E2 [23:47:35]MH_I2C_Read... [23:47:35]Read from MH i2c: E2 FD 00 [23:47:35]MH_I2C_Read... [23:47:35]Read from MH i2c: E2 FD 00 C9 8B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 E6 [23:47:35]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:47:35]wFMCommunicate OK [23:47:35]wFMCommunicate request_size=4 [23:47:35]MH_SAM_APDU [23:47:35]CAPDU: 80 17 00 00 [23:47:35]Write to MH i2c: E2 08 00 CA 8B 80 17 00 00 00 00 00 00 D5 [23:47:35]Write i2c OK [23:47:35]MH_I2C_Read... [23:47:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:36]Read from MH i2c: E2 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: E2 FD 00 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: E2 FD 00 CA 8B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 61 [23:47:36]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:47:36]wFMCommunicate OK [23:47:36]wFMCommunicate request_size=4 [23:47:36]MH_SAM_APDU [23:47:36]CAPDU: 80 17 00 00 [23:47:36]Write to MH i2c: E2 08 00 CB 8B 80 17 00 00 00 00 00 00 D6 [23:47:36]OFD Sender: No OFD packet to send [23:47:36]Write i2c OK [23:47:36]MH_I2C_Read... [23:47:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:47:36]Read from MH i2c: E2 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: E2 E2 00 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: E2 E2 00 CB 8B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B4 [23:47:36]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:47:36]wFMCommunicate OK [23:47:36]SAM_PROTO_GetFMData done [23:47:36]FM_GetFMData:85 04 C1 04 6E 04 04 00 3E CD 01 00 69 04 A3 00 6F 04 04 00 AB BF 01 00 B1 04 05 00 10 68 07 78 03 70 04 05 00 18 05 19 A9 02 72 04 04 00 F8 62 EE CE 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C6 11 54 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7F 35 DC 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 93 0D 00 00 B1 04 04 00 D8 ED 3F 3B 70 04 04 00 D8 ED 3F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 F1 4A 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 3D 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:47:37]oper:6F 04 04 00 AB BF 01 00 B1 04 05 00 10 68 07 78 03 70 04 05 00 18 05 19 A9 02 72 04 04 00 F8 62 EE CE 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C6 11 54 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7F 35 DC 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:47:37]total:10 68 07 78 03 [23:47:37]Malloc new data [23:47:37]oper:6F 04 04 00 93 0D 00 00 B1 04 04 00 D8 ED 3F 3B 70 04 04 00 D8 ED 3F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 F1 4A 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 3D 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:47:37]total:D8 ED 3F 3B [23:47:37]Malloc new data [23:47:37]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:47:37]total: [23:47:37]Malloc new data [23:47:37]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:47:37]total: [23:47:37]Malloc new data [23:47:37]KKMPrepareXReportFMData err=0 [23:47:37]Х отчет ИНН: 02508201610067 Кассир: Казаков Ч. 29.07.2024 23:47 Смена: 266 РНМ: 0000000000092660 ЗНМ: 0300000044 СНО: Общий режим Всего чеков: 322 ИТОГИ ПРИХОД Чеков: 313 Общий итог: 446614.00 Итого наличными: 252512.00 Итого безнал.: 194102.00 НДС 0% : 0.00 НДС 12% : 47438.66 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3953.11 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 9 Общий итог: 28863.00 Итого наличными: 28863.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 3065.34 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 255.44 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 223649.00 НС Приход: 148986532.00 НС Возвр.Прихода: 9940454.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874939 [23:47:37]StoreToDocumentArchive [23:47:37]MH_GetDate [23:47:37]Write to MH i2c: F0 00 00 CC 8B 46 [23:47:37]Write i2c OK [23:47:37]MH_I2C_Read... [23:47:37]Read from MH i2c: F0 [23:47:37]MH_I2C_Read... [23:47:37]Read from MH i2c: F0 09 00 [23:47:37]MH_I2C_Read... [23:47:37]Read from MH i2c: F0 09 00 CC 8B 00 21 2A A8 66 90 0F 3E 66 EB [23:47:37]shift 266 fd 1722296865 [23:47:37]Create dir for shift 0266 [23:47:37]save to /storage/0266/doc_1722296865 [23:47:37]save last doc name /storage/0266/doc_1722296865 to /storage/kkm_last_doc_name [23:47:37]save OK [23:47:37]Clear old archive folders... [23:47:37]NVStorageSaveData kkm_last_timestamp [23:47:37]File name is /storage/kkm_last_timestamp [23:47:37]Write 4 bytes [23:47:37]NVStorageSaveData done [23:47:37]ExternCall_PrintAddStr [23:47:37]wPrintStart [23:47:37]Write to MH i2c: 01 00 00 CD 8B 58 [23:47:37]Write i2c OK [23:47:37]MH_I2C_Read... [23:47:37]Read from MH i2c: 01 [23:47:37]MH_I2C_Read... [23:47:37]Read from MH i2c: 01 07 00 [23:47:37]MH_I2C_Read... [23:47:37]Read from MH i2c: 01 07 00 CD 8B 00 00 00 00 00 FF 0F 6D [23:47:37]RasterBufferAndPrint [23:47:37]line Х отчет [23:47:37]line ИНН: 02508201610067 [23:47:37]line Кассир: Казаков Ч. [23:47:37]line 29.07.2024 23:47 [23:47:37]line Смена: 266 [23:47:37]line РНМ: 0000000000092660 [23:47:37]line ЗНМ: 0300000044 [23:47:37]line СНО: Общий режим [23:47:37]line Всего чеков: 322 [23:47:37]line ИТОГИ ПРИХОД [23:47:37]line Чеков: 313 [23:47:37]line Общий итог: 446614.00 [23:47:37]line Итого наличными: 252512.00 [23:47:37]line Итого безнал.: 194102.00 [23:47:37]line НДС 0% : 0.00 [23:47:37]line НДС 12% : 47438.66 [23:47:37]line НСП 0% : 0.00 [23:47:37]line НСП 1,50% : 0.00 [23:47:37]line НСП 0,50% : 0.00 [23:47:37]line НСП 5% : 0.00 [23:47:37]line НСП 3% : 0.00 [23:47:37]line НСП 2% : 0.00 [23:47:37]line НСП 1% : 3953.11 [23:47:37]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:47:37]line Чеков: 9 [23:47:37]line Общий итог: 28863.00 [23:47:37]line Итого наличными: 28863.00 [23:47:37]line Итого безнал.: 0.00 [23:47:37]line НДС 0% : 0.00 [23:47:37]line НДС 12% : 3065.34 [23:47:37]line НСП 0% : 0.00 [23:47:37]line НСП 1,50% : 0.00 [23:47:37]line НСП 0,50% : 0.00 [23:47:37]line НСП 5% : 0.00 [23:47:38]line НСП 3% : 0.00 [23:47:38]line НСП 2% : 0.00 [23:47:38]line НСП 1% : 255.44 [23:47:38]line ИТОГИ РАСХОД [23:47:38]line Чеков: 0 [23:47:38]line Общий итог: 0.00 [23:47:38]line Итого наличными: 0.00 [23:47:38]line Итого безнал.: 0.00 [23:47:38]line НДС 0% : 0.00 [23:47:38]line НДС 12% : 0.00 [23:47:38]line НСП 0% : 0.00 [23:47:38]line НСП 1,50% : 0.00 [23:47:38]line НСП 0,50% : 0.00 [23:47:38]line НСП 5% : 0.00 [23:47:38]line НСП 3% : 0.00 [23:47:38]line НСП 2% : 0.00 [23:47:38]line НСП 1% : 0.00 [23:47:38]line ИТОГИ ВОЗВРАТ РАСХОДА [23:47:38]line Чеков: 0 [23:47:38]line Общий итог: 0.00 [23:47:38]line Итого наличными: 0.00 [23:47:38]line Итого безнал.: 0.00 [23:47:38]line НДС 0% : 0.00 [23:47:38]line НДС 12% : 0.00 [23:47:38]line НСП 0% : 0.00 [23:47:38]line НСП 1,50% : 0.00 [23:47:38]line НСП 0,50% : 0.00 [23:47:38]line НСП 5% : 0.00 [23:47:38]line НСП 3% : 0.00 [23:47:38]line НСП 2% : 0.00 [23:47:38]line НСП 1% : 0.00 [23:47:38]line Сумма внесений: 0.00 [23:47:38]line Сумма выплат: 0.00 [23:47:38]line Нал. в кассе: 223649.00 [23:47:38]line НС Приход: 148986532.00 [23:47:38]line НС Возвр.Прихода: 9940454.00 [23:47:38]line НС Расход: 0.00 [23:47:38]line НС Возвр.Расхода: 0.00 [23:47:38]line ФМ: 0000000000874939 [23:47:38]written 0, free lines is 4095 [23:47:38]Write to MH i2c: 01 00 00 18 8C A4 [23:47:38]Write i2c OK [23:47:38]MH_I2C_Read... [23:47:38]Read from MH i2c: 01 [23:47:38]MH_I2C_Read... [23:47:38]Read from MH i2c: 01 07 00 [23:47:38]MH_I2C_Read... [23:47:38]Read from MH i2c: 01 07 00 18 8C 00 00 00 00 00 CD 0A 82 [23:47:38]RasterBufferAndPrint [23:47:38]line [23:47:38]line [23:47:38]line [23:47:38]line [23:47:38]line [23:47:38]written 0, free lines is 2797 [23:47:38]MH_Cut [23:47:38]Write to MH i2c: D1 01 00 1F 8C 01 7D [23:47:38]Write i2c OK [23:47:38]MH_I2C_Read... [23:47:38]Read from MH i2c: D1 [23:47:38]MH_I2C_Read... [23:47:38]Read from MH i2c: D1 01 00 [23:47:38]MH_I2C_Read... [23:47:38]Read from MH i2c: D1 01 00 1F 8C 00 7C [23:47:38]Write to MH i2c: 01 00 00 20 8C AC [23:47:38]Write i2c OK [23:47:38]MH_I2C_Read... [23:47:39]*** Cut start [23:47:39]*** Partial cut [23:47:39]*** CUTSNS_PIN = 1 [23:47:39]*** CUTSNS_PIN = 0 [23:47:40]*** Brake cut motor [23:47:40]Read from MH i2c: 01 [23:47:40]MH_I2C_Read... [23:47:40]*** Stop cut motor [23:47:40]*** Cut end [23:47:40]Read from MH i2c: 01 07 00 [23:47:40]MH_I2C_Read... [23:47:40]Read from MH i2c: 01 07 00 20 8C 00 00 00 00 00 FF 0F C1 [23:47:40]process_action x_report done [23:47:40]requested_data is exist [23:47:40]produce_requested_data [23:47:40]requested_item fd.num is exist - process it [23:47:40]SAM_PROTO_GetFieldsCounters [23:47:40]wFMCommunicate request_size=4 [23:47:40]MH_SAM_APDU [23:47:40]CAPDU: 80 13 00 00 [23:47:40]Write to MH i2c: E2 08 00 21 8C 80 13 00 00 00 00 00 00 29 [23:47:40]Write i2c OK [23:47:40]MH_I2C_Read... [23:47:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:40]Read from MH i2c: E2 [23:47:40]MH_I2C_Read... [23:47:40]Read from MH i2c: E2 62 00 [23:47:40]MH_I2C_Read... [23:47:40]Read from MH i2c: E2 62 00 21 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A2 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [23:47: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A2 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:47:40]wFMCommunicate OK [23:47:40]SAM_PROTO_GetFieldsCounters done [23:47:40]requested_item shift.num is exist - process it [23:47:40]requested_item shift.opened is exist - process it [23:47:40]req_shift_opened [23:47:40]FM_GetShiftState [23:47:40]SAM_PROTO_GetShiftState [23:47:40]wFMCommunicate request_size=4 [23:47:40]MH_SAM_APDU [23:47:40]CAPDU: 80 13 01 00 [23:47:40]Write to MH i2c: E2 08 00 22 8C 80 13 01 00 00 00 00 00 2B [23:47:40]Write i2c OK [23:47:40]MH_I2C_Read... [23:47:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:40]Read from MH i2c: E2 [23:47:40]MH_I2C_Read... [23:47:40]Read from MH i2c: E2 0E 00 [23:47:40]MH_I2C_Read... [23:47:40]Read from MH i2c: E2 0E 00 22 8C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 59 [23:47:40]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [23:47:40]wFMCommunicate OK [23:47:40]SAM_PROTO_GetShiftState done [23:47:40]FM_GetShiftState done [23:47:40]req_shift_opened done [23:47:40]requested_item shift.open_date is exist - process it [23:47:40]req_shift_open_date [23:47:40]req_shift_open_date done [23:47:40]produce_requested_data done [23:47:40]produce_requested_data return {"fd.num":118946,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [23:47:40]process_action_free x_report [23:47:40]json_value_free [23:47:40]json_value_free done [23:47:40]process_json_proto returns [23:47:40]Send response to host [23:47:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":118946,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [23:47:40]free response buf [23:47:40]execute_script done [23:47:40]execute_script returns [23:47:40]free content buf [23:47:40]Sock 7.Close socket [23:47:40]Sock 7.Thread stoped [23:47:41]OFD Sender: No OFD packet to send [23:47:46]OFD Sender: No OFD packet to send [23:47:51]OFD Sender: No OFD packet to send [23:47:56]OFD Sender: No OFD packet to send [23:48:01]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:13]accept exits with 9 [23:48:13]New connection [23:48:13]New thread 3067383140 created [23:48:13]Thread 3067239780 joined [23:48:13]Waiting for new connection... [23:48:13] Sock 9.Parse request [23:48:13]Sock 9.Check first char [23:48:13]Sock 9.First char is OK [23:48:13]request: POST /json_proto HTTP/1.0 [23:48:13]Method: POST [23:48:13]URL: /json_proto [23:48:13]Method is POST - this is cgi request [23:48:13]url: /json_proto [23:48:13]query_string will be loaded in cgi processing [23:48:13]execute_cgi json_proto POST (null) [23:48:13]execute_cgi path=json_proto method=POST [23:48:13]POST find Content-Length [23:48:13]Host: 172.17.45.7:8080 [23:48:13]Content-Length: 215 [23:48:13]Content-Type: application/json [23:48:13] [23:48:13]POST finish read [23:48:13]Found Content-Length = 215 [23:48:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:13]execute_script... [23:48:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:13]POST & json_proto [23:48:13]process_json_proto [23:48:13]json parsed OK: [23:48:13]protocol is kg_v1.0 [23:48:13]action value=get_value [23:48:13]process_action get_value [23:48:13]cmd_get_value [23:48:13]process_action get_value done [23:48:13]requested_data is exist [23:48:13]produce_requested_data [23:48:13]requested_item kkm.sn is exist - process it [23:48:13]requested_item kkm.ver is exist - process it [23:48:13]requested_item fm.sn is exist - process it [23:48:13]wFMCommunicate request_size=4 [23:48:13]MH_SAM_APDU [23:48:13]CAPDU: 80 11 00 00 [23:48:13]Write to MH i2c: E2 08 00 23 8C 80 11 00 00 00 00 00 00 29 [23:48:13]Write i2c OK [23:48:13]MH_I2C_Read... [23:48:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:13]Read from MH i2c: E2 [23:48:13]MH_I2C_Read... [23:48:13]Read from MH i2c: E2 17 00 [23:48:13]MH_I2C_Read... [23:48:13]Read from MH i2c: E2 17 00 23 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 84 [23:48:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:48:13]wFMCommunicate OK [23:48:13]requested_item fd.num is exist - process it [23:48:13]SAM_PROTO_GetFieldsCounters [23:48:13]wFMCommunicate request_size=4 [23:48:13]MH_SAM_APDU [23:48:13]CAPDU: 80 13 00 00 [23:48:13]Write to MH i2c: E2 08 00 24 8C 80 13 00 00 00 00 00 00 2C [23:48:13]Write i2c OK [23:48:13]MH_I2C_Read... [23:48:13]Read from MH i2c: E2 [23:48:13]MH_I2C_Read... [23:48:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:13]Read from MH i2c: E2 62 00 [23:48:13]MH_I2C_Read... [23:48:13]Read from MH i2c: E2 62 00 24 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A2 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 42 [23:48:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A2 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:48:13]wFMCommunicate OK [23:48:13]SAM_PROTO_GetFieldsCounters done [23:48:13]requested_item shift.num is exist - process it [23:48:13]requested_item shift.opened is exist - process it [23:48:13]req_shift_opened [23:48:13]FM_GetShiftState [23:48:13]SAM_PROTO_GetShiftState [23:48:13]wFMCommunicate request_size=4 [23:48:13]MH_SAM_APDU [23:48:13]CAPDU: 80 13 01 00 [23:48:13]Write to MH i2c: E2 08 00 25 8C 80 13 01 00 00 00 00 00 2E [23:48:13]Write i2c OK [23:48:13]MH_I2C_Read... [23:48:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:13]Read from MH i2c: E2 [23:48:13]MH_I2C_Read... [23:48:13]Read from MH i2c: E2 0E 00 [23:48:13]MH_I2C_Read... [23:48:13]Read from MH i2c: E2 0E 00 25 8C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 5C [23:48:13]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [23:48:13]wFMCommunicate OK [23:48:13]SAM_PROTO_GetShiftState done [23:48:13]FM_GetShiftState done [23:48:13]req_shift_opened done [23:48:13]requested_item shift.open_date is exist - process it [23:48:13]req_shift_open_date [23:48:13]req_shift_open_date done [23:48:13]produce_requested_data done [23:48:13]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118946,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641} [23:48:13]process_action_free get_value [23:48:13]json_value_free [23:48:13]json_value_free done [23:48:13]process_json_proto returns [23:48:13]Send response to host [23:48:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118946,"shift.num":434,"shift.opened":1,"shift.open_date":1722211641}}} [23:48:13]free response buf [23:48:13]execute_script done [23:48:13]execute_script returns [23:48:13]free content buf [23:48:13]Sock 9.Close socket [23:48:13]Sock 9.Thread stoped [23:48:13]accept exits with 7 [23:48:13]New connection [23:48:13]New thread 3067239780 created [23:48:13]Thread 3067383140 joined [23:48:13]Waiting for new connection... [23:48:13] Sock 7.Parse request [23:48:13]Sock 7.Check first char [23:48:13]Sock 7.First char is OK [23:48:13]request: POST /json_proto HTTP/1.0 [23:48:13]Method: POST [23:48:13]URL: /json_proto [23:48:13]Method is POST - this is cgi request [23:48:13]url: /json_proto [23:48:13]query_string will be loaded in cgi processing [23:48:13]execute_cgi json_proto POST (null) [23:48:13]execute_cgi path=json_proto method=POST [23:48:13]POST find Content-Length [23:48:13]Host: 172.17.45.7:8080 [23:48:13]Content-Length: 331 [23:48:13]Content-Type: application/json [23:48:13] [23:48:13]POST finish read [23:48:13]Found Content-Length = 331 [23:48:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:48:13]execute_script... [23:48:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:48:13]POST & json_proto [23:48:13]process_json_proto [23:48:13]json parsed OK: [23:48:13]protocol is kg_v1.0 [23:48:13]action value=get_value [23:48:13]process_action get_value [23:48:13]cmd_get_value [23:48:13]process_action get_value done [23:48:13]requested_data is exist [23:48:13]produce_requested_data [23:48:13]requested_item fm.sale.total is exist - process it [23:48:13]SAM_PROTO_GetFMData [23:48:13]wFMCommunicate request_size=4 [23:48:13]MH_SAM_APDU [23:48:13]CAPDU: 80 13 03 00 [23:48:13]Write to MH i2c: E2 08 00 26 8C 80 13 03 00 00 00 00 00 31 [23:48:13]Write i2c OK [23:48:13]MH_I2C_Read... [23:48:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:48:14]Read from MH i2c: E2 [23:48:14]MH_I2C_Read... [23:48:14]Read from MH i2c: E2 FD 00 [23:48:14]MH_I2C_Read... [23:48:14]Read from MH i2c: E2 FD 00 26 8C 00 C5 04 85 04 C1 04 6E 04 04 00 3E CD 01 00 69 04 A3 00 6F 04 04 00 AB BF 01 00 B1 04 05 00 10 68 07 78 03 70 04 05 00 18 05 19 A9 02 72 04 04 00 F8 62 EE CE 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C6 11 54 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7F 35 DC 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 93 0D 00 00 B1 04 04 00 D8 ED 3F 3B 70 04 04 00 D8 ED 3F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 F1 4A 06 EF 03 09 90 00 B3 [23:48:14]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3E CD 01 00 69 04 A3 00 6F 04 04 00 AB BF 01 00 B1 04 05 00 10 68 07 78 03 70 04 05 00 18 05 19 A9 02 72 04 04 00 F8 62 EE CE 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C6 11 54 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7F 35 DC 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 93 0D 00 00 B1 04 04 00 D8 ED 3F 3B 70 04 04 00 D8 ED 3F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 F1 4A 06 EF 03 09 90 00 [23:48:14]wFMCommunicate OK [23:48:14]wFMCommunicate request_size=4 [23:48:14]MH_SAM_APDU [23:48:14]CAPDU: 80 17 00 00 [23:48:14]Write to MH i2c: E2 08 00 27 8C 80 17 00 00 00 00 00 00 33 [23:48:14]Write i2c OK [23:48:14]MH_I2C_Read... [23:48:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:14]Read from MH i2c: E2 [23:48:14]MH_I2C_Read... [23:48:14]Read from MH i2c: E2 FD 00 [23:48:14]MH_I2C_Read... [23:48:14]Read from MH i2c: E2 FD 00 27 8C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 3D 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 93 [23:48:14]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 3D 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:48:14]wFMCommunicate OK [23:48:14]wFMCommunicate request_size=4 [23:48:14]MH_SAM_APDU [23:48:14]CAPDU: 80 17 00 00 [23:48:14]Write to MH i2c: E2 08 00 28 8C 80 17 00 00 00 00 00 00 34 [23:48:14]Write i2c OK [23:48:14]MH_I2C_Read... [23:48:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:14]Read from MH i2c: E2 [23:48:14]MH_I2C_Read... [23:48:14]Read from MH i2c: E2 FD 00 [23:48:14]MH_I2C_Read... [23:48:14]Read from MH i2c: E2 FD 00 28 8C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 46 [23:48:14]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:48:14]wFMCommunicate OK [23:48:14]wFMCommunicate request_size=4 [23:48:14]MH_SAM_APDU [23:48:14]CAPDU: 80 17 00 00 [23:48:14]Write to MH i2c: E2 08 00 29 8C 80 17 00 00 00 00 00 00 35 [23:48:14]Write i2c OK [23:48:14]MH_I2C_Read... [23:48:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:15]Read from MH i2c: E2 [23:48:15]MH_I2C_Read... [23:48:15]Read from MH i2c: E2 FD 00 [23:48:15]MH_I2C_Read... [23:48:15]Read from MH i2c: E2 FD 00 29 8C 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 C1 [23:48:15]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:48:15]wFMCommunicate OK [23:48:15]wFMCommunicate request_size=4 [23:48:15]MH_SAM_APDU [23:48:15]CAPDU: 80 17 00 00 [23:48:15]Write to MH i2c: E2 08 00 2A 8C 80 17 00 00 00 00 00 00 36 [23:48:15]Write i2c OK [23:48:15]MH_I2C_Read... [23:48:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:48:15]Read from MH i2c: E2 [23:48:15]MH_I2C_Read... [23:48:15]Read from MH i2c: E2 E2 00 [23:48:15]MH_I2C_Read... [23:48:15]Read from MH i2c: E2 E2 00 2A 8C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 14 [23:48:15]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:48:15]wFMCommunicate OK [23:48:15]SAM_PROTO_GetFMData done [23:48:15]requested_item fm.sale_refund.total is exist - process it [23:48:15]requested_item fm.buy.total is exist - process it [23:48:15]requested_item shift.sale.total is exist - process it [23:48:15]SAM_PROTO_GetShiftData [23:48:15]wFMCommunicate request_size=4 [23:48:15]MH_SAM_APDU [23:48:15]CAPDU: 80 13 02 00 [23:48:15]Write to MH i2c: E2 08 00 2B 8C 80 13 02 00 00 00 00 00 35 [23:48:15]Write i2c OK [23:48:15]MH_I2C_Read... [23:48:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:48:15]Read from MH i2c: E2 [23:48:15]MH_I2C_Read... [23:48:15]Read from MH i2c: E2 FD 00 [23:48:15]MH_I2C_Read... [23:48:15]Read from MH i2c: E2 FD 00 2B 8C 00 BD 04 AA 04 B9 04 6E 04 04 00 42 01 00 00 69 04 9F 00 6F 04 04 00 39 01 00 00 B1 04 04 00 98 7A A9 02 70 04 04 00 80 4D 81 01 72 04 04 00 18 2D 28 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BA 62 48 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2F 08 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 9C 0A 2C 70 04 03 00 9C 0A 2C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 66 AD 04 EF 03 09 00 F6 03 01 00 00 F7 90 00 A6 [23:48:15]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 42 01 00 00 69 04 9F 00 6F 04 04 00 39 01 00 00 B1 04 04 00 98 7A A9 02 70 04 04 00 80 4D 81 01 72 04 04 00 18 2D 28 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BA 62 48 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2F 08 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 9C 0A 2C 70 04 03 00 9C 0A 2C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 66 AD 04 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:48:16]wFMCommunicate OK [23:48:16]wFMCommunicate request_size=4 [23:48:16]MH_SAM_APDU [23:48:16]CAPDU: 80 17 00 00 [23:48:16]Write to MH i2c: E2 08 00 2C 8C 80 17 00 00 00 00 00 00 38 [23:48:16]Write i2c OK [23:48:16]MH_I2C_Read... [23:48:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:16]Read from MH i2c: E2 [23:48:16]MH_I2C_Read... [23:48:16]Read from MH i2c: E2 FD 00 [23:48:16]MH_I2C_Read... [23:48:16]Read from MH i2c: E2 FD 00 2C 8C 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 10 [23:48:16]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 [23:48:16]wFMCommunicate OK [23:48:16]wFMCommunicate request_size=4 [23:48:16]MH_SAM_APDU [23:48:16]CAPDU: 80 17 00 00 [23:48:16]Write to MH i2c: E2 08 00 2D 8C 80 17 00 00 00 00 00 00 39 [23:48:16]Write i2c OK [23:48:16]MH_I2C_Read... [23:48:16]OFD Sender: No OFD packet to send [23:48:16]Read from MH i2c: E2 [23:48:16]MH_I2C_Read... [23:48:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:16]Read from MH i2c: E2 FD 00 [23:48:16]MH_I2C_Read... [23:48:16]Read from MH i2c: E2 FD 00 2D 8C 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 6B [23:48:16]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [23:48:16]wFMCommunicate OK [23:48:16]wFMCommunicate request_size=4 [23:48:16]MH_SAM_APDU [23:48:16]CAPDU: 80 17 00 00 [23:48:16]Write to MH i2c: E2 08 00 2E 8C 80 17 00 00 00 00 00 00 3A [23:48:16]Write i2c OK [23:48:16]MH_I2C_Read... [23:48:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:16]Read from MH i2c: E2 [23:48:16]MH_I2C_Read... [23:48:16]Read from MH i2c: E2 FD 00 [23:48:16]MH_I2C_Read... [23:48:16]Read from MH i2c: E2 FD 00 2E 8C 00 F7 03 00 00 EF 03 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 90 00 B1 [23:48:16]RAPDU: F7 03 00 00 EF 03 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 90 00 [23:48:17]wFMCommunicate OK [23:48:17]wFMCommunicate request_size=4 [23:48:17]MH_SAM_APDU [23:48:17]CAPDU: 80 17 00 00 [23:48:17]Write to MH i2c: E2 08 00 2F 8C 80 17 00 00 00 00 00 00 3B [23:48:17]Write i2c OK [23:48:17]MH_I2C_Read... [23:48:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [23:48:17]Read from MH i2c: E2 [23:48:17]MH_I2C_Read... [23:48:17]Read from MH i2c: E2 DA 00 [23:48:17]MH_I2C_Read... [23:48:17]Read from MH i2c: E2 DA 00 2F 8C 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1C [23:48:17]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:48:17]wFMCommunicate OK [23:48:17]SAM_PROTO_GetShiftData done [23:48:17]requested_item shift.sale.total_cash is exist - process it [23:48:17]requested_item shift.sale_refund.total is exist - process it [23:48:17]requested_item shift.sale_refund.total_cash is exist - process it [23:48:17]requested_item shift.buy.total is exist - process it [23:48:17]requested_item shift.buy.total_cash is exist - process it [23:48:17]produce_requested_data done [23:48:17]produce_requested_data return {"fm.sale.total":148986532.00,"fm.sale_refund.total":9940454.00,"fm.buy.total":0.00,"shift.sale.total":446614.00,"shift.sale.total_cash":252512.00,"shift.sale_refund.total":28863.00,"shift.sale_refund.total_cash":28863.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:48:17]process_action_free get_value [23:48:17]json_value_free [23:48:17]json_value_free done [23:48:17]process_json_proto returns [23:48:17]Send response to host [23:48:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148986532.00,"fm.sale_refund.total":9940454.00,"fm.buy.total":0.00,"shift.sale.total":446614.00,"shift.sale.total_cash":252512.00,"shift.sale_refund.total":28863.00,"shift.sale_refund.total_cash":28863.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:48:17]free response buf [23:48:17]execute_script done [23:48:17]execute_script returns [23:48:17]free content buf [23:48:17]Sock 7.Close socket [23:48:17]Sock 7.Thread stoped [23:48:17]accept exits with 9 [23:48:17]New connection [23:48:17]New thread 3067383140 created [23:48:17]Thread 3067239780 joined [23:48:17]Waiting for new connection... [23:48:17] Sock 9.Parse request [23:48:17]Sock 9.Check first char [23:48:17]Sock 9.First char is OK [23:48:17]request: POST /json_proto HTTP/1.0 [23:48:17]Method: POST [23:48:17]URL: /json_proto [23:48:17]Method is POST - this is cgi request [23:48:17]url: /json_proto [23:48:17]query_string will be loaded in cgi processing [23:48:17]execute_cgi json_proto POST (null) [23:48:17]execute_cgi path=json_proto method=POST [23:48:17]POST find Content-Length [23:48:17]Host: 172.17.45.7:8080 [23:48:17]Content-Length: 331 [23:48:17]Content-Type: application/json [23:48:17] [23:48:17]POST finish read [23:48:17]Found Content-Length = 331 [23:48:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:48:17]execute_script... [23:48:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:48:17]POST & json_proto [23:48:17]process_json_proto [23:48:17]json parsed OK: [23:48:17]protocol is kg_v1.0 [23:48:17]action value=get_value [23:48:17]process_action get_value [23:48:17]cmd_get_value [23:48:17]process_action get_value done [23:48:17]requested_data is exist [23:48:17]produce_requested_data [23:48:17]requested_item fm.sale.total is exist - process it [23:48:17]SAM_PROTO_GetFMData [23:48:17]wFMCommunicate request_size=4 [23:48:17]MH_SAM_APDU [23:48:17]CAPDU: 80 13 03 00 [23:48:17]Write to MH i2c: E2 08 00 30 8C 80 13 03 00 00 00 00 00 3B [23:48:17]Write i2c OK [23:48:17]MH_I2C_Read... [23:48:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:48:17]Read from MH i2c: E2 [23:48:17]MH_I2C_Read... [23:48:17]Read from MH i2c: E2 FD 00 [23:48:17]MH_I2C_Read... [23:48:18]Read from MH i2c: E2 FD 00 30 8C 00 C5 04 85 04 C1 04 6E 04 04 00 3E CD 01 00 69 04 A3 00 6F 04 04 00 AB BF 01 00 B1 04 05 00 10 68 07 78 03 70 04 05 00 18 05 19 A9 02 72 04 04 00 F8 62 EE CE 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C6 11 54 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7F 35 DC 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 93 0D 00 00 B1 04 04 00 D8 ED 3F 3B 70 04 04 00 D8 ED 3F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 F1 4A 06 EF 03 09 90 00 BD [23:48:18]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3E CD 01 00 69 04 A3 00 6F 04 04 00 AB BF 01 00 B1 04 05 00 10 68 07 78 03 70 04 05 00 18 05 19 A9 02 72 04 04 00 F8 62 EE CE 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C6 11 54 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7F 35 DC 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 93 0D 00 00 B1 04 04 00 D8 ED 3F 3B 70 04 04 00 D8 ED 3F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 F1 4A 06 EF 03 09 90 00 [23:48:18]wFMCommunicate OK [23:48:18]wFMCommunicate request_size=4 [23:48:18]MH_SAM_APDU [23:48:18]CAPDU: 80 17 00 00 [23:48:18]Write to MH i2c: E2 08 00 31 8C 80 17 00 00 00 00 00 00 3D [23:48:18]Write i2c OK [23:48:18]MH_I2C_Read... [23:48:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:18]Read from MH i2c: E2 [23:48:18]MH_I2C_Read... [23:48:18]Read from MH i2c: E2 FD 00 [23:48:18]MH_I2C_Read... [23:48:18]Read from MH i2c: E2 FD 00 31 8C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 3D 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 9D [23:48:18]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 3D 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:48:18]wFMCommunicate OK [23:48:18]wFMCommunicate request_size=4 [23:48:18]MH_SAM_APDU [23:48:18]CAPDU: 80 17 00 00 [23:48:18]Write to MH i2c: E2 08 00 32 8C 80 17 00 00 00 00 00 00 3E [23:48:18]Write i2c OK [23:48:18]MH_I2C_Read... [23:48:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:18]Read from MH i2c: E2 [23:48:18]MH_I2C_Read... [23:48:18]Read from MH i2c: E2 FD 00 [23:48:18]MH_I2C_Read... [23:48:18]Read from MH i2c: E2 FD 00 32 8C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 50 [23:48:18]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:48:18]wFMCommunicate OK [23:48:18]wFMCommunicate request_size=4 [23:48:18]MH_SAM_APDU [23:48:18]CAPDU: 80 17 00 00 [23:48:19]Write to MH i2c: E2 08 00 33 8C 80 17 00 00 00 00 00 00 3F [23:48:19]Write i2c OK [23:48:19]MH_I2C_Read... [23:48:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:19]Read from MH i2c: E2 [23:48:19]MH_I2C_Read... [23:48:19]Read from MH i2c: E2 FD 00 [23:48:19]MH_I2C_Read... [23:48:19]Read from MH i2c: E2 FD 00 33 8C 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 CB [23:48:19]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:48:19]wFMCommunicate OK [23:48:19]wFMCommunicate request_size=4 [23:48:19]MH_SAM_APDU [23:48:19]CAPDU: 80 17 00 00 [23:48:19]Write to MH i2c: E2 08 00 34 8C 80 17 00 00 00 00 00 00 40 [23:48:19]Write i2c OK [23:48:19]MH_I2C_Read... [23:48:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:48:19]Read from MH i2c: E2 [23:48:19]MH_I2C_Read... [23:48:19]Read from MH i2c: E2 E2 00 [23:48:19]MH_I2C_Read... [23:48:19]Read from MH i2c: E2 E2 00 34 8C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1E [23:48:19]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:48:19]wFMCommunicate OK [23:48:19]SAM_PROTO_GetFMData done [23:48:19]requested_item fm.sale_refund.total is exist - process it [23:48:19]requested_item fm.buy.total is exist - process it [23:48:19]requested_item shift.sale.total is exist - process it [23:48:19]SAM_PROTO_GetShiftData [23:48:19]wFMCommunicate request_size=4 [23:48:19]MH_SAM_APDU [23:48:19]CAPDU: 80 13 02 00 [23:48:19]Write to MH i2c: E2 08 00 35 8C 80 13 02 00 00 00 00 00 3F [23:48:19]Write i2c OK [23:48:19]MH_I2C_Read... [23:48:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:48:20]Read from MH i2c: E2 [23:48:20]MH_I2C_Read... [23:48:20]Read from MH i2c: E2 FD 00 [23:48:20]MH_I2C_Read... [23:48:20]Read from MH i2c: E2 FD 00 35 8C 00 BD 04 AA 04 B9 04 6E 04 04 00 42 01 00 00 69 04 9F 00 6F 04 04 00 39 01 00 00 B1 04 04 00 98 7A A9 02 70 04 04 00 80 4D 81 01 72 04 04 00 18 2D 28 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BA 62 48 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2F 08 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 9C 0A 2C 70 04 03 00 9C 0A 2C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 66 AD 04 EF 03 09 00 F6 03 01 00 00 F7 90 00 B0 [23:48:20]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 42 01 00 00 69 04 9F 00 6F 04 04 00 39 01 00 00 B1 04 04 00 98 7A A9 02 70 04 04 00 80 4D 81 01 72 04 04 00 18 2D 28 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BA 62 48 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2F 08 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 9C 0A 2C 70 04 03 00 9C 0A 2C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 66 AD 04 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:48:20]wFMCommunicate OK [23:48:20]wFMCommunicate request_size=4 [23:48:20]MH_SAM_APDU [23:48:20]CAPDU: 80 17 00 00 [23:48:20]Write to MH i2c: E2 08 00 36 8C 80 17 00 00 00 00 00 00 42 [23:48:20]Write i2c OK [23:48:20]MH_I2C_Read... [23:48:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:20]Read from MH i2c: E2 [23:48:20]MH_I2C_Read... [23:48:20]Read from MH i2c: E2 FD 00 [23:48:20]MH_I2C_Read... [23:48:20]Read from MH i2c: E2 FD 00 36 8C 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 1A [23:48:20]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 [23:48:21]wFMCommunicate OK [23:48:21]wFMCommunicate request_size=4 [23:48:21]MH_SAM_APDU [23:48:21]CAPDU: 80 17 00 00 [23:48:21]Write to MH i2c: E2 08 00 37 8C 80 17 00 00 00 00 00 00 43 [23:48:21]Write i2c OK [23:48:21]MH_I2C_Read... [23:48:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:21]Read from MH i2c: E2 [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: E2 FD 00 [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: E2 FD 00 37 8C 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 75 [23:48:21]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [23:48:21]wFMCommunicate OK [23:48:21]wFMCommunicate request_size=4 [23:48:21]MH_SAM_APDU [23:48:21]CAPDU: 80 17 00 00 [23:48:21]Write to MH i2c: E2 08 00 38 8C 80 17 00 00 00 00 00 00 44 [23:48:21]Write i2c OK [23:48:21]MH_I2C_Read... [23:48:21]OFD Sender: No OFD packet to send [23:48:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:21]Read from MH i2c: E2 [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: E2 FD 00 [23:48:21]MH_I2C_Read... [23:48:21]Read from MH i2c: E2 FD 00 38 8C 00 F7 03 00 00 EF 03 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 90 00 BB [23:48:21]RAPDU: F7 03 00 00 EF 03 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 90 00 [23:48:21]wFMCommunicate OK [23:48:21]wFMCommunicate request_size=4 [23:48:21]MH_SAM_APDU [23:48:21]CAPDU: 80 17 00 00 [23:48:21]Write to MH i2c: E2 08 00 39 8C 80 17 00 00 00 00 00 00 45 [23:48:22]Write i2c OK [23:48:22]MH_I2C_Read... [23:48:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [23:48:22]Read from MH i2c: E2 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: E2 DA 00 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: E2 DA 00 39 8C 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 26 [23:48:22]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:48:22]wFMCommunicate OK [23:48:22]SAM_PROTO_GetShiftData done [23:48:22]requested_item shift.sale.total_cash is exist - process it [23:48:22]requested_item shift.sale_refund.total is exist - process it [23:48:22]requested_item shift.sale_refund.total_cash is exist - process it [23:48:22]requested_item shift.buy.total is exist - process it [23:48:22]requested_item shift.buy.total_cash is exist - process it [23:48:22]produce_requested_data done [23:48:22]produce_requested_data return {"fm.sale.total":148986532.00,"fm.sale_refund.total":9940454.00,"fm.buy.total":0.00,"shift.sale.total":446614.00,"shift.sale.total_cash":252512.00,"shift.sale_refund.total":28863.00,"shift.sale_refund.total_cash":28863.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:48:22]process_action_free get_value [23:48:22]json_value_free [23:48:22]json_value_free done [23:48:22]process_json_proto returns [23:48:22]Send response to host [23:48:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148986532.00,"fm.sale_refund.total":9940454.00,"fm.buy.total":0.00,"shift.sale.total":446614.00,"shift.sale.total_cash":252512.00,"shift.sale_refund.total":28863.00,"shift.sale_refund.total_cash":28863.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:48:22]free response buf [23:48:22]execute_script done [23:48:22]execute_script returns [23:48:22]free content buf [23:48:22]Sock 9.Close socket [23:48:22]Sock 9.Thread stoped [23:48:22]accept exits with 7 [23:48:22]New connection [23:48:22]New thread 3067239780 created [23:48:22]Thread 3067383140 joined [23:48:22]Waiting for new connection... [23:48:22] Sock 7.Parse request [23:48:22]Sock 7.Check first char [23:48:22]Sock 7.First char is OK [23:48:22]request: POST /json_proto HTTP/1.0 [23:48:22]Method: POST [23:48:22]URL: /json_proto [23:48:22]Method is POST - this is cgi request [23:48:22]url: /json_proto [23:48:22]query_string will be loaded in cgi processing [23:48:22]execute_cgi json_proto POST (null) [23:48:22]execute_cgi path=json_proto method=POST [23:48:22]POST find Content-Length [23:48:22]Host: 172.17.45.7:8080 [23:48:22]Content-Length: 254 [23:48:22]Content-Type: application/json [23:48:22] [23:48:22]POST finish read [23:48:22]Found Content-Length = 254 [23:48:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:22]execute_script... [23:48:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:22]POST & json_proto [23:48:22]process_json_proto [23:48:22]json parsed OK: [23:48:22]protocol is kg_v1.0 [23:48:22]action value=close_shift [23:48:22]process_action close_shift [23:48:22]cmd_close_shift [23:48:22]MH_GetDate [23:48:22]Write to MH i2c: F0 00 00 3A 8C B5 [23:48:22]Write i2c OK [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: F0 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: F0 09 00 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: F0 09 00 3A 8C 00 4E 2A A8 66 90 0F 3E 66 87 [23:48:22]GetLastDocTimeStamp 1722296857 [23:48:22]current date 1722296910 [23:48:22]FM_GetShiftState [23:48:22]SAM_PROTO_GetShiftState [23:48:22]wFMCommunicate request_size=4 [23:48:22]MH_SAM_APDU [23:48:22]CAPDU: 80 13 01 00 [23:48:22]Write to MH i2c: E2 08 00 3B 8C 80 13 01 00 00 00 00 00 44 [23:48:22]Write i2c OK [23:48:22]MH_I2C_Read... [23:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:22]Read from MH i2c: E2 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: E2 0E 00 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: E2 0E 00 3B 8C 00 09 00 01 39 DD A6 66 00 00 00 00 90 00 72 [23:48:22]RAPDU: 09 00 01 39 DD A6 66 00 00 00 00 90 00 [23:48:22]wFMCommunicate OK [23:48:22]SAM_PROTO_GetShiftState done [23:48:22]FM_GetShiftState done [23:48:22]KKMCreateCloseShiftDocument [23:48:22]Load OK [23:48:22]Malloc new data [23:48:22]MH_GetDate [23:48:22]Write to MH i2c: F0 00 00 3C 8C B7 [23:48:22]Write i2c OK [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: F0 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: F0 09 00 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: F0 09 00 3C 8C 00 4E 2A A8 66 90 0F 3E 66 89 [23:48:22]Malloc new data [23:48:22]Malloc new data [23:48:22]Malloc new data [23:48:22]Malloc new data [23:48:22]KKMCreateCloseShiftDocument OK [23:48:22]KKMSetCloseShiftData OK [23:48:22]ProcessDocumentItem done err = 0, tmpTLVsize=69 [23:48:22]tlvbuf is 021E6340 [23:48:22]KKMLoadAndSignCloseShiftData [23:48:22]SAM_PROTO_ProcessDocument [23:48:22]wFMCommunicate request_size=9 [23:48:22]MH_SAM_APDU [23:48:22]CAPDU: 80 15 01 00 04 05 00 45 00 [23:48:22]Write to MH i2c: E2 0C 00 3D 8C 80 15 01 00 04 00 05 00 45 00 00 00 9A [23:48:22]Write i2c OK [23:48:22]MH_I2C_Read... [23:48:22]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:48:22]Read from MH i2c: E2 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: E2 03 00 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: E2 03 00 3D 8C 00 90 00 3D [23:48:22]RAPDU: 90 00 [23:48:22]wFMCommunicate OK [23:48:22]wFMCommunicate request_size=23 [23:48:22]MH_SAM_APDU [23:48:22]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:48:22]Write to MH i2c: E2 1A 00 3E 8C 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 3F [23:48:22]Write i2c OK [23:48:22]MH_I2C_Read... [23:48:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:48:22]Read from MH i2c: E2 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: E2 03 00 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: E2 03 00 3E 8C 00 90 00 3E [23:48:22]RAPDU: 90 00 [23:48:22]wFMCommunicate OK [23:48:22]wFMCommunicate request_size=28 [23:48:22]MH_SAM_APDU [23:48:22]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 9A D0 B0 D0 B7 D0 B0 D0 BA D0 BE D0 B2 20 D0 A7 2E 20 [23:48:22]Write to MH i2c: E2 1F 00 3F 8C 80 15 02 00 17 00 FD 03 13 00 D0 9A D0 B0 D0 B7 D0 B0 D0 BA D0 BE D0 B2 20 D0 A7 2E 20 00 00 FC [23:48:22]Write i2c OK [23:48:22]MH_I2C_Read... [23:48:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:48:22]Read from MH i2c: E2 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: E2 03 00 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: E2 03 00 3F 8C 00 90 00 3F [23:48:22]RAPDU: 90 00 [23:48:22]wFMCommunicate OK [23:48:22]wFMCommunicate request_size=13 [23:48:22]MH_SAM_APDU [23:48:22]CAPDU: 80 15 02 00 08 F4 03 04 00 4E 2A A8 66 [23:48:22]Write to MH i2c: E2 10 00 40 8C 80 15 02 00 08 00 F4 03 04 00 4E 2A A8 66 00 00 DD [23:48:22]Write i2c OK [23:48:22]MH_I2C_Read... [23:48:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:48:22]Read from MH i2c: E2 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: E2 03 00 [23:48:22]MH_I2C_Read... [23:48:22]Read from MH i2c: E2 03 00 40 8C 00 90 00 40 [23:48:22]RAPDU: 90 00 [23:48:22]wFMCommunicate OK [23:48:22]wFMCommunicate request_size=25 [23:48:22]MH_SAM_APDU [23:48:22]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 [23:48:22]Write to MH i2c: E2 1C 00 41 8C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 00 00 AD [23:48:23]Write i2c OK [23:48:23]MH_I2C_Read... [23:48:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:48:23]Read from MH i2c: E2 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: E2 03 00 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: E2 03 00 41 8C 00 90 00 41 [23:48:23]RAPDU: 90 00 [23:48:23]wFMCommunicate OK [23:48:23]wFMCommunicate request_size=4 [23:48:23]MH_SAM_APDU [23:48:23]CAPDU: 80 15 03 00 [23:48:23]Write to MH i2c: E2 08 00 42 8C 80 15 03 00 00 00 00 00 4F [23:48:23]Write i2c OK [23:48:23]MH_I2C_Read... [23:48:23]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:48:23]Read from MH i2c: E2 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: E2 FD 00 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: E2 FD 00 42 8C 00 00 05 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A3 D0 01 00 0E 04 04 00 B2 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 44 01 00 00 AA 04 B9 04 6E 04 04 00 42 01 00 00 69 04 9F 00 6F 04 04 00 39 01 00 00 B1 04 04 00 98 7A A9 02 70 04 04 00 80 4D 81 01 72 04 04 00 18 2D 28 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BA 62 48 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2F 08 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 90 00 CA [23:48:23]RAPDU: 00 05 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A3 D0 01 00 0E 04 04 00 B2 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 44 01 00 00 AA 04 B9 04 6E 04 04 00 42 01 00 00 69 04 9F 00 6F 04 04 00 39 01 00 00 B1 04 04 00 98 7A A9 02 70 04 04 00 80 4D 81 01 72 04 04 00 18 2D 28 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BA 62 48 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2F 08 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 90 00 [23:48:23]wFMCommunicate OK [23:48:23]SAM_PROTO_ProcessDocument answer len = 1280 [23:48:23]SAM_PROTO_ProcessDocument remain to read = 1032 [23:48:23]wFMCommunicate request_size=4 [23:48:23]MH_SAM_APDU [23:48:23]CAPDU: 80 17 00 00 [23:48:23]Write to MH i2c: E2 08 00 43 8C 80 17 00 00 00 00 00 00 4F [23:48:23]Write i2c OK [23:48:23]MH_I2C_Read... [23:48:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:24]Read from MH i2c: E2 [23:48:24]MH_I2C_Read... [23:48:24]Read from MH i2c: E2 FD 00 [23:48:24]MH_I2C_Read... [23:48:24]Read from MH i2c: E2 FD 00 43 8C 00 9C 0A 2C 70 04 03 00 9C 0A 2C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 66 AD 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 18 [23:48:24]RAPDU: 9C 0A 2C 70 04 03 00 9C 0A 2C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 66 AD 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [23:48:24]wFMCommunicate OK [23:48:24]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:48:24]SAM_PROTO_ProcessDocument remain to read = 782 [23:48:24]wFMCommunicate request_size=4 [23:48:24]MH_SAM_APDU [23:48:24]CAPDU: 80 17 00 00 [23:48:24]Write to MH i2c: E2 08 00 44 8C 80 17 00 00 00 00 00 00 50 [23:48:24]Write i2c OK [23:48:24]MH_I2C_Read... [23:48:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:24]Read from MH i2c: E2 [23:48:24]MH_I2C_Read... [23:48:24]Read from MH i2c: E2 FD 00 [23:48:24]MH_I2C_Read... [23:48:24]Read from MH i2c: E2 FD 00 44 8C 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 90 00 B6 [23:48:24]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 90 00 [23:48:24]wFMCommunicate OK [23:48:24]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:48:24]SAM_PROTO_ProcessDocument remain to read = 532 [23:48:24]wFMCommunicate request_size=4 [23:48:24]MH_SAM_APDU [23:48:24]CAPDU: 80 17 00 00 [23:48:24]Write to MH i2c: E2 08 00 45 8C 80 17 00 00 00 00 00 00 51 [23:48:24]Write i2c OK [23:48:24]MH_I2C_Read... [23:48:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:25]Read from MH i2c: E2 [23:48:25]MH_I2C_Read... [23:48:25]Read from MH i2c: E2 FD 00 [23:48:25]MH_I2C_Read... [23:48:25]Read from MH i2c: E2 FD 00 45 8C 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E8 [23:48:25]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:48:25]wFMCommunicate OK [23:48:25]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:48:25]SAM_PROTO_ProcessDocument remain to read = 282 [23:48:25]wFMCommunicate request_size=4 [23:48:25]MH_SAM_APDU [23:48:25]CAPDU: 80 17 00 00 [23:48:25]Write to MH i2c: E2 08 00 46 8C 80 17 00 00 00 00 00 00 52 [23:48:25]Write i2c OK [23:48:25]MH_I2C_Read... [23:48:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:25]Read from MH i2c: E2 [23:48:25]MH_I2C_Read... [23:48:25]Read from MH i2c: E2 FD 00 [23:48:25]MH_I2C_Read... [23:48:25]Read from MH i2c: E2 FD 00 46 8C 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 08 [23:48:26]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:48:26]wFMCommunicate OK [23:48:26]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:48:26]SAM_PROTO_ProcessDocument remain to read = 32 [23:48:26]wFMCommunicate request_size=4 [23:48:26]MH_SAM_APDU [23:48:26]CAPDU: 80 17 00 00 [23:48:26]Write to MH i2c: E2 08 00 47 8C 80 17 00 00 00 00 00 00 53 [23:48:26]Write i2c OK [23:48:26]MH_I2C_Read... [23:48:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 32! [23:48:26]Read from MH i2c: E2 [23:48:26]MH_I2C_Read... [23:48:26]Read from MH i2c: E2 23 00 [23:48:26]MH_I2C_Read... [23:48:26]Read from MH i2c: E2 23 00 47 8C 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 49 CE AB 25 F6 A6 90 00 17 [23:48:26]RAPDU: F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 49 CE AB 25 F6 A6 90 00 [23:48:26]wFMCommunicate OK [23:48:26]SAM_PROTO_ProcessDocument received (without SW) 32 bytes [23:48:26]SAM_PROTO_ProcessDocument done [23:48:26]1209 (1) - 1.0 - номер версии ФФД [23:48:26]1041 (16) - 0000000000874939 - номер ФМ [23:48:26]1040 (4) - 118947 - номер ФД [23:48:26]1038 (4) - 434 - номер смены [23:48:26]1118 (4) - 322 - количество кассовых чеков за смену [23:48:26]1111 (4) - 324 - общее количество ФД за смену [23:48:26]1194 (1209) - счетчики итогов смены [23:48:26] 1134 (4) - 322 - количество чеков со всеми признаками расчетов [23:48:26] 1129 (159) - счетчики операций «приход» [23:48:26] 1135 (4) - 313 - количество чеков по признаку расчетов [23:48:26] 1201 (4) - 446614.00 - общая итоговая сумма в чеках [23:48:26] 1136 (4) - 252512.00 - итоговая сумма в чеках наличными [23:48:26] 1138 (4) - 194102.00 - итоговая сумма в чеках безналичными [23:48:26] 1024 (123) - суммы налогов [23:48:26] 1006 (9) - суммы НДС [23:48:26] 1010 (1) - 0% - код ставки НДС [23:48:26] 1011 (0) - 0.00 - сумма НДС по ставке [23:48:26] 1006 (12) - суммы НДС [23:48:26] 1010 (1) - 12% - код ставки НДС [23:48:26] 1011 (3) - 47438.66 - сумма НДС по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 0% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1007 (12) - суммы НСП [23:48:26] 1014 (1) - 1% - код ставки НСП [23:48:26] 1015 (3) - 3953.11 - сумма НСП по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 2% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 3% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 5% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 0,50% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 1,50% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1130 (152) - счетчики операций «возврат прихода» [23:48:26] 1135 (4) - 9 - количество чеков по признаку расчетов [23:48:26] 1201 (3) - 28863.00 - общая итоговая сумма в чеках [23:48:26] 1136 (3) - 28863.00 - итоговая сумма в чеках наличными [23:48:26] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:48:26] 1024 (122) - суммы налогов [23:48:26] 1006 (9) - суммы НДС [23:48:26] 1010 (1) - 0% - код ставки НДС [23:48:26] 1011 (0) - 0.00 - сумма НДС по ставке [23:48:26] 1006 (12) - суммы НДС [23:48:26] 1010 (1) - 12% - код ставки НДС [23:48:26] 1011 (3) - 3065.34 - сумма НДС по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 0% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1007 (11) - суммы НСП [23:48:26] 1014 (1) - 1% - код ставки НСП [23:48:26] 1015 (2) - 255.44 - сумма НСП по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 2% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 3% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 5% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 0,50% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 1,50% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1131 (141) - счетчики операций «расход» [23:48:26] 1135 (4) - 0 - количество чеков по признаку расчетов [23:48:26] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:48:26] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:48:26] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:48:26] 1024 (117) - суммы налогов [23:48:26] 1006 (9) - суммы НДС [23:48:26] 1010 (1) - 0% - код ставки НДС [23:48:26] 1011 (0) - 0.00 - сумма НДС по ставке [23:48:26] 1006 (9) - суммы НДС [23:48:26] 1010 (1) - 12% - код ставки НДС [23:48:26] 1011 (0) - 0.00 - сумма НДС по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 0% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 1% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 2% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 3% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 5% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 0,50% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 1,50% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1132 (141) - счетчики операций «возврат расхода» [23:48:26] 1135 (4) - 0 - количество чеков по признаку расчетов [23:48:26] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:48:26] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:48:26] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:48:26] 1024 (117) - суммы налогов [23:48:26] 1006 (9) - суммы НДС [23:48:26] 1010 (1) - 0% - код ставки НДС [23:48:26] 1011 (0) - 0.00 - сумма НДС по ставке [23:48:26] 1006 (9) - суммы НДС [23:48:26] 1010 (1) - 12% - код ставки НДС [23:48:26] 1011 (0) - 0.00 - сумма НДС по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 0% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 1% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 2% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 3% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 5% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] 1014 (1) - 0,50% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1007 (9) - суммы НСП [23:48:26] OFD Sender: No OFD packet to send [23:48:26] 1014 (1) - 1,50% - код ставки НСП [23:48:26] 1015 (0) - 0.00 - сумма НСП по ставке [23:48:26] 1133 (588) - - счетчики коррекции - не используются [23:48:26]1077 (6) - 81151983482534 - ФПД [23:48:26]SetTLVBufToDocument [23:48:26]Processing tag 1209 (04B9) [23:48:26]Malloc new data [23:48:26]Processing tag 1041 (0411) [23:48:26]Processing tag 1040 (0410) [23:48:26]Malloc new data [23:48:26]Processing tag 1038 (040E) [23:48:26]Malloc new data [23:48:26]Processing tag 1118 (045E) [23:48:26]Malloc new data [23:48:26]Processing tag 1111 (0457) [23:48:26]Malloc new data [23:48:26]Processing tag 1194 (04AA) [23:48:26]Load OK [23:48:26]SetTLVBufToDocument [23:48:26]Processing tag 1134 (046E) [23:48:26]Malloc new data [23:48:26]Processing tag 1129 (0469) [23:48:26]Load OK [23:48:26]SetTLVBufToDocument [23:48:26]Processing tag 1135 (046F) [23:48:26]Malloc new data [23:48:26]Processing tag 1201 (04B1) [23:48:26]Malloc new data [23:48:26]Processing tag 1136 (0470) [23:48:26]Malloc new data [23:48:26]Processing tag 1138 (0472) [23:48:26]Malloc new data [23:48:26]Processing tag 1024 (0400) [23:48:26]Load OK [23:48:26]SetTLVBufToDocument [23:48:26]Processing tag 1006 (03EE) [23:48:26]Load OK [23:48:26]SetTLVBufToDocument [23:48:26]Processing tag 1010 (03F2) [23:48:26]Malloc new data [23:48:26]Processing tag 1011 (03F3) [23:48:26]Malloc new data [23:48:26]SetTLVBufToDocument err=0 [23:48:26]Processing tag 1006 (03EE) [23:48:26]Load OK [23:48:26]SetTLVBufToDocument [23:48:26]Processing tag 1010 (03F2) [23:48:26]Malloc new data [23:48:26]Processing tag 1011 (03F3) [23:48:26]Malloc new data [23:48:26]SetTLVBufToDocument err=0 [23:48:26]Processing tag 1007 (03EF) [23:48:26]Load OK [23:48:26]SetTLVBufToDocument [23:48:26]Processing tag 1014 (03F6) [23:48:26]Malloc new data [23:48:26]Processing tag 1015 (03F7) [23:48:26]Malloc new data [23:48:26]SetTLVBufToDocument err=0 [23:48:26]Processing tag 1007 (03EF) [23:48:26]Load OK [23:48:26]SetTLVBufToDocument [23:48:26]Processing tag 1014 (03F6) [23:48:26]Malloc new data [23:48:26]Processing tag 1015 (03F7) [23:48:26]Malloc new data [23:48:26]SetTLVBufToDocument err=0 [23:48:26]Processing tag 1007 (03EF) [23:48:26]Load OK [23:48:26]SetTLVBufToDocument [23:48:26]Processing tag 1014 (03F6) [23:48:26]Malloc new data [23:48:26]Processing tag 1015 (03F7) [23:48:26]Malloc new data [23:48:26]SetTLVBufToDocument err=0 [23:48:26]Processing tag 1007 (03EF) [23:48:26]Load OK [23:48:26]SetTLVBufToDocument [23:48:26]Processing tag 1014 (03F6) [23:48:26]Malloc new data [23:48:26]Processing tag 1015 (03F7) [23:48:26]Malloc new data [23:48:26]SetTLVBufToDocument err=0 [23:48:26]Processing tag 1007 (03EF) [23:48:26]Load OK [23:48:26]SetTLVBufToDocument [23:48:26]Processing tag 1014 (03F6) [23:48:26]Malloc new data [23:48:26]Processing tag 1015 (03F7) [23:48:26]Malloc new data [23:48:26]SetTLVBufToDocument err=0 [23:48:26]Processing tag 1007 (03EF) [23:48:26]Load OK [23:48:26]SetTLVBufToDocument [23:48:26]Processing tag 1014 (03F6) [23:48:26]Malloc new data [23:48:26]Processing tag 1015 (03F7) [23:48:26]Malloc new data [23:48:26]SetTLVBufToDocument err=0 [23:48:26]Processing tag 1007 (03EF) [23:48:26]Load OK [23:48:26]SetTLVBufToDocument [23:48:26]Processing tag 1014 (03F6) [23:48:26]Malloc new data [23:48:26]Processing tag 1015 (03F7) [23:48:26]Malloc new data [23:48:26]SetTLVBufToDocument err=0 [23:48:26]SetTLVBufToDocument err=0 [23:48:26]SetTLVBufToDocument err=0 [23:48:26]Processing tag 1130 (046A) [23:48:26]Load OK [23:48:26]SetTLVBufToDocument [23:48:26]Processing tag 1135 (046F) [23:48:26]Malloc new data [23:48:26]Processing tag 1201 (04B1) [23:48:26]Malloc new data [23:48:26]Processing tag 1136 (0470) [23:48:26]Malloc new data [23:48:26]Processing tag 1138 (0472) [23:48:26]Malloc new data [23:48:26]Processing tag 1024 (0400) [23:48:26]Load OK [23:48:26]SetTLVBufToDocument [23:48:26]Processing tag 1006 (03EE) [23:48:26]Load OK [23:48:26]SetTLVBufToDocument [23:48:26]Processing tag 1010 (03F2) [23:48:26]Malloc new data [23:48:26]Processing tag 1011 (03F3) [23:48:26]Malloc new data [23:48:26]SetTLVBufToDocument err=0 [23:48:26]Processing tag 1006 (03EE) [23:48:26]Load OK [23:48:26]SetTLVBufToDocument [23:48:26]Processing tag 1010 (03F2) [23:48:26]Malloc new data [23:48:26]Processing tag 1011 (03F3) [23:48:26]Malloc new data [23:48:26]SetTLVBufToDocument err=0 [23:48:26]Processing tag 1007 (03EF) [23:48:26]Load OK [23:48:26]SetTLVBufToDocument [23:48:26]Processing tag 1014 (03F6) [23:48:26]Malloc new data [23:48:26]Processing tag 1015 (03F7) [23:48:26]Malloc new data [23:48:26]SetTLVBufToDocument err=0 [23:48:26]Processing tag 1007 (03EF) [23:48:26]Load OK [23:48:26]SetTLVBufToDocument [23:48:26]Processing tag 1014 (03F6) [23:48:26]Malloc new data [23:48:26]Processing tag 1015 (03F7) [23:48:26]Malloc new data [23:48:26]SetTLVBufToDocument err=0 [23:48:26]Processing tag 1007 (03EF) [23:48:26]Load OK [23:48:26]SetTLVBufToDocument [23:48:26]Processing tag 1014 (03F6) [23:48:26]Malloc new data [23:48:27]Processing tag 1015 (03F7) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1007 (03EF) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1014 (03F6) [23:48:27]Malloc new data [23:48:27]Processing tag 1015 (03F7) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1007 (03EF) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1014 (03F6) [23:48:27]Malloc new data [23:48:27]Processing tag 1015 (03F7) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1007 (03EF) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1014 (03F6) [23:48:27]Malloc new data [23:48:27]Processing tag 1015 (03F7) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1007 (03EF) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1014 (03F6) [23:48:27]Malloc new data [23:48:27]Processing tag 1015 (03F7) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]SetTLVBufToDocument err=0 [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1131 (046B) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1135 (046F) [23:48:27]Malloc new data [23:48:27]Processing tag 1201 (04B1) [23:48:27]Malloc new data [23:48:27]Processing tag 1136 (0470) [23:48:27]Malloc new data [23:48:27]Processing tag 1138 (0472) [23:48:27]Malloc new data [23:48:27]Processing tag 1024 (0400) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1006 (03EE) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1010 (03F2) [23:48:27]Malloc new data [23:48:27]Processing tag 1011 (03F3) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1006 (03EE) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1010 (03F2) [23:48:27]Malloc new data [23:48:27]Processing tag 1011 (03F3) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1007 (03EF) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1014 (03F6) [23:48:27]Malloc new data [23:48:27]Processing tag 1015 (03F7) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1007 (03EF) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1014 (03F6) [23:48:27]Malloc new data [23:48:27]Processing tag 1015 (03F7) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1007 (03EF) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1014 (03F6) [23:48:27]Malloc new data [23:48:27]Processing tag 1015 (03F7) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1007 (03EF) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1014 (03F6) [23:48:27]Malloc new data [23:48:27]Processing tag 1015 (03F7) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1007 (03EF) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1014 (03F6) [23:48:27]Malloc new data [23:48:27]Processing tag 1015 (03F7) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1007 (03EF) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1014 (03F6) [23:48:27]Malloc new data [23:48:27]Processing tag 1015 (03F7) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1007 (03EF) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1014 (03F6) [23:48:27]Malloc new data [23:48:27]Processing tag 1015 (03F7) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]SetTLVBufToDocument err=0 [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1132 (046C) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1135 (046F) [23:48:27]Malloc new data [23:48:27]Processing tag 1201 (04B1) [23:48:27]Malloc new data [23:48:27]Processing tag 1136 (0470) [23:48:27]Malloc new data [23:48:27]Processing tag 1138 (0472) [23:48:27]Malloc new data [23:48:27]Processing tag 1024 (0400) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1006 (03EE) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1010 (03F2) [23:48:27]Malloc new data [23:48:27]Processing tag 1011 (03F3) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1006 (03EE) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1010 (03F2) [23:48:27]Malloc new data [23:48:27]Processing tag 1011 (03F3) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1007 (03EF) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1014 (03F6) [23:48:27]Malloc new data [23:48:27]Processing tag 1015 (03F7) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1007 (03EF) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1014 (03F6) [23:48:27]Malloc new data [23:48:27]Processing tag 1015 (03F7) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1007 (03EF) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1014 (03F6) [23:48:27]Malloc new data [23:48:27]Processing tag 1015 (03F7) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1007 (03EF) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1014 (03F6) [23:48:27]Malloc new data [23:48:27]Processing tag 1015 (03F7) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1007 (03EF) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1014 (03F6) [23:48:27]Malloc new data [23:48:27]Processing tag 1015 (03F7) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1007 (03EF) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1014 (03F6) [23:48:27]Malloc new data [23:48:27]Processing tag 1015 (03F7) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1007 (03EF) [23:48:27]Load OK [23:48:27]SetTLVBufToDocument [23:48:27]Processing tag 1014 (03F6) [23:48:27]Malloc new data [23:48:27]Processing tag 1015 (03F7) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]SetTLVBufToDocument err=0 [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1133 (046D) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Processing tag 1077 (0435) [23:48:27]Malloc new data [23:48:27]SetTLVBufToDocument err=0 [23:48:27]Malloc new data [23:48:27]SAM_PROTO_GetFMData [23:48:27]wFMCommunicate request_size=4 [23:48:27]MH_SAM_APDU [23:48:27]CAPDU: 80 13 03 00 [23:48:27]Write to MH i2c: E2 08 00 48 8C 80 13 03 00 00 00 00 00 53 [23:48:27]Write i2c OK [23:48:27]MH_I2C_Read... [23:48:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:48:27]Read from MH i2c: E2 [23:48:27]MH_I2C_Read... [23:48:27]Read from MH i2c: E2 FD 00 [23:48:27]MH_I2C_Read... [23:48:27]Read from MH i2c: E2 FD 00 48 8C 00 C5 04 85 04 C1 04 6E 04 04 00 3E CD 01 00 69 04 A3 00 6F 04 04 00 AB BF 01 00 B1 04 05 00 10 68 07 78 03 70 04 05 00 18 05 19 A9 02 72 04 04 00 F8 62 EE CE 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C6 11 54 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7F 35 DC 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 93 0D 00 00 B1 04 04 00 D8 ED 3F 3B 70 04 04 00 D8 ED 3F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 F1 4A 06 EF 03 09 90 00 D5 [23:48:27]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3E CD 01 00 69 04 A3 00 6F 04 04 00 AB BF 01 00 B1 04 05 00 10 68 07 78 03 70 04 05 00 18 05 19 A9 02 72 04 04 00 F8 62 EE CE 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C6 11 54 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7F 35 DC 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 93 0D 00 00 B1 04 04 00 D8 ED 3F 3B 70 04 04 00 D8 ED 3F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 F1 4A 06 EF 03 09 90 00 [23:48:28]wFMCommunicate OK [23:48:28]wFMCommunicate request_size=4 [23:48:28]MH_SAM_APDU [23:48:28]CAPDU: 80 17 00 00 [23:48:28]Write to MH i2c: E2 08 00 49 8C 80 17 00 00 00 00 00 00 55 [23:48:28]Write i2c OK [23:48:28]MH_I2C_Read... [23:48:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:28]Read from MH i2c: E2 [23:48:28]MH_I2C_Read... [23:48:28]Read from MH i2c: E2 FD 00 [23:48:28]MH_I2C_Read... [23:48:28]Read from MH i2c: E2 FD 00 49 8C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 3D 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 B5 [23:48:28]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 3D 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:48:28]wFMCommunicate OK [23:48:28]wFMCommunicate request_size=4 [23:48:28]MH_SAM_APDU [23:48:28]CAPDU: 80 17 00 00 [23:48:28]Write to MH i2c: E2 08 00 4A 8C 80 17 00 00 00 00 00 00 56 [23:48:28]Write i2c OK [23:48:28]MH_I2C_Read... [23:48:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:29]Read from MH i2c: E2 [23:48:29]MH_I2C_Read... [23:48:29]Read from MH i2c: E2 FD 00 [23:48:29]MH_I2C_Read... [23:48:29]Read from MH i2c: E2 FD 00 4A 8C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 68 [23:48:29]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:48:29]wFMCommunicate OK [23:48:29]wFMCommunicate request_size=4 [23:48:29]MH_SAM_APDU [23:48:29]CAPDU: 80 17 00 00 [23:48:29]Write to MH i2c: E2 08 00 4B 8C 80 17 00 00 00 00 00 00 57 [23:48:29]Write i2c OK [23:48:29]MH_I2C_Read... [23:48:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:48:29]Read from MH i2c: E2 [23:48:29]MH_I2C_Read... [23:48:29]Read from MH i2c: E2 FD 00 [23:48:29]MH_I2C_Read... [23:48:29]Read from MH i2c: E2 FD 00 4B 8C 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 E3 [23:48:29]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:48:29]wFMCommunicate OK [23:48:29]wFMCommunicate request_size=4 [23:48:29]MH_SAM_APDU [23:48:29]CAPDU: 80 17 00 00 [23:48:29]Write to MH i2c: E2 08 00 4C 8C 80 17 00 00 00 00 00 00 58 [23:48:29]Write i2c OK [23:48:29]MH_I2C_Read... [23:48:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:48:30]Read from MH i2c: E2 [23:48:30]MH_I2C_Read... [23:48:30]Read from MH i2c: E2 E2 00 [23:48:30]MH_I2C_Read... [23:48:30]Read from MH i2c: E2 E2 00 4C 8C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 36 [23:48:30]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:48:30]wFMCommunicate OK [23:48:30]SAM_PROTO_GetFMData done [23:48:30]Malloc new data [23:48:30]Malloc new data [23:48:30]Malloc new data [23:48:30]Malloc new data [23:48:30]KKMLoadAndSignCloseShiftData err=0 [23:48:30]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Казаков Ч. 29.07.2024 23:48 Смена: 434 РНМ: 0000000000092660 ЗНМ: 0300000044 СНО: Общий режим Чеков за смену: 322 ФД за смену: 324 Всего чеков: 322 ИТОГИ ПРИХОД Чеков: 313 Общий итог: 446614.00 Итого наличными: 252512.00 Итого безнал.: 194102.00 НДС 0% : 0.00 НДС 12% : 47438.66 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3953.11 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 9 Общий итог: 28863.00 Итого наличными: 28863.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 3065.34 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 255.44 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 223649.00 НС Приход: 148986532.00 НС Возвр.Прихода: 9940454.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 118947 ФМ: 0000000000874939 ФПД: 81151983482534 [23:48:30]StoreToDocumentArchive [23:48:30]shift 434 fd 118947 [23:48:30]save to /storage/0434/doc_00118947 [23:48:30]save last doc name /storage/0434/doc_00118947 to /storage/kkm_last_doc_name [23:48:30]save OK [23:48:30]Clear old archive folders... [23:48:30]Remove dir /storage/0266 [23:48:30]opendir ok [23:48:30]file . [23:48:30]file .. [23:48:30]file doc_1722296865 [23:48:30]remove file /storage/0266/doc_1722296865 [23:48:30]remove dir /storage/0266 [23:48:30]NVStorageSaveData kkm_registers [23:48:30]File name is /storage/kkm_registers [23:48:30]Write 24 bytes [23:48:30]NVStorageSaveData done [23:48:30]NVStorageSaveData kkm_registers [23:48:30]File name is /storage/kkm_registers [23:48:30]Write 24 bytes [23:48:30]NVStorageSaveData done [23:48:30]ProcessDocumentItem done err = 0, tmpTLVsize=1388 [23:48:30]tlvbuf is 021ADCD0 [23:48:30]SAM_PROTO_ClearQueue [23:48:30]wFMCommunicate request_size=4 [23:48:30]MH_SAM_APDU [23:48:30]CAPDU: 80 09 00 00 [23:48:30]Write to MH i2c: E2 08 00 4D 8C 80 09 00 00 00 00 00 00 4B [23:48:30]Write i2c OK [23:48:30]MH_I2C_Read... [23:48:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:48:30]Read from MH i2c: E2 [23:48:30]MH_I2C_Read... [23:48:30]Read from MH i2c: E2 03 00 [23:48:30]MH_I2C_Read... [23:48:30]Read from MH i2c: E2 03 00 4D 8C 00 90 00 4D [23:48:30]RAPDU: 90 00 [23:48:30]wFMCommunicate OK [23:48:30]SAM_PROTO_ClearQueue done [23:48:30]KKMCreateOFDPacket [23:48:30]OFDProtocolAddRootSTLVToBuf [23:48:30]FM_MakeSignedData [23:48:30]FM_MakeSignedData [23:48:30]SAM_PROTO_SignData [23:48:30]wFMCommunicate request_size=4 [23:48:30]MH_SAM_APDU [23:48:30]CAPDU: 80 0D 01 02 [23:48:30]Write to MH i2c: E2 08 00 4E 8C 80 0D 01 02 00 00 00 00 53 [23:48:30]Write i2c OK [23:48:30]MH_I2C_Read... [23:48:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:48:30]Read from MH i2c: E2 [23:48:30]MH_I2C_Read... [23:48:30]Read from MH i2c: E2 03 00 [23:48:30]MH_I2C_Read... [23:48:30]Read from MH i2c: E2 03 00 4E 8C 00 90 00 4E [23:48:30]RAPDU: 90 00 [23:48:30]wFMCommunicate OK [23:48:30]wFMCommunicate request_size=255 [23:48:30]MH_SAM_APDU [23:48:30]CAPDU: 80 0D 02 02 FA 05 00 6C 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 13 00 D0 9A D0 B0 D0 B7 D0 B0 D0 BA D0 BE D0 B2 20 D0 A7 2E 20 F4 03 04 00 4E 2A A8 66 0E 04 04 00 B2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 5E 04 04 00 42 01 00 00 57 04 04 00 44 01 00 00 AA 04 E0 04 6E 04 04 00 42 01 00 00 69 04 A6 00 6F 04 04 00 39 01 00 00 B1 04 04 00 98 7A A9 02 70 04 04 00 80 4D 81 01 72 04 04 00 18 2D 28 01 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BA 62 48 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 [23:48:30]Write to MH i2c: E2 02 01 4F 8C 80 0D 02 02 FA 00 05 00 6C 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 13 00 D0 9A D0 B0 D0 B7 D0 B0 D0 BA D0 BE D0 B2 20 D0 A7 2E 20 F4 03 04 00 4E 2A A8 66 0E 04 04 00 B2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 5E 04 04 00 42 01 00 00 57 04 04 00 44 01 00 00 AA 04 E0 04 6E 04 04 00 42 01 00 00 69 04 A6 00 6F 04 04 00 39 01 00 00 B1 04 04 00 98 7A A9 02 70 04 04 00 80 4D 81 01 72 04 04 00 18 2D 28 01 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BA 62 48 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 00 00 58 [23:48:31]Write i2c OK [23:48:31]MH_I2C_Read... [23:48:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:31]Read from MH i2c: E2 [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: E2 03 00 [23:48:31]MH_I2C_Read... [23:48:31]Read from MH i2c: E2 03 00 4F 8C 00 90 00 4F [23:48:31]RAPDU: 90 00 [23:48:31]wFMCommunicate OK [23:48:31]wFMCommunicate request_size=255 [23:48:31]MH_SAM_APDU [23:48:31]CAPDU: 80 0D 02 02 FA 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2F 08 06 6A 04 A0 00 6F 04 04 00 09 00 00 00 B1 04 03 00 9C 0A 2C 70 04 03 00 9C 0A 2C 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 66 AD 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 C8 63 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 [23:48:31]Write to MH i2c: E2 02 01 50 8C 80 0D 02 02 FA 00 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2F 08 06 6A 04 A0 00 6F 04 04 00 09 00 00 00 B1 04 03 00 9C 0A 2C 70 04 03 00 9C 0A 2C 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 66 AD 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 C8 63 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 OFD Sender: No OFD packet to send [23:48:31]00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 00 13 [23:48:31]Write i2c OK [23:48:31]MH_I2C_Read... [23:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:32]Read from MH i2c: E2 [23:48:32]MH_I2C_Read... [23:48:32]Read from MH i2c: E2 03 00 [23:48:32]MH_I2C_Read... [23:48:32]Read from MH i2c: E2 03 00 50 8C 00 90 00 50 [23:48:32]RAPDU: 90 00 [23:48:32]wFMCommunicate OK [23:48:32]wFMCommunicate request_size=255 [23:48:32]MH_SAM_APDU [23:48:32]CAPDU: 80 0D 02 02 FA 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 [23:48:32]Write to MH i2c: E2 02 01 51 8C 80 0D 02 02 FA 00 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 00 00 11 [23:48:32]Write i2c OK [23:48:32]MH_I2C_Read... [23:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:32]Read from MH i2c: E2 [23:48:32]MH_I2C_Read... [23:48:32]Read from MH i2c: E2 03 00 [23:48:32]MH_I2C_Read... [23:48:32]Read from MH i2c: E2 03 00 51 8C 00 90 00 51 [23:48:32]RAPDU: 90 00 [23:48:32]wFMCommunicate OK [23:48:32]wFMCommunicate request_size=255 [23:48:32]MH_SAM_APDU [23:48:32]CAPDU: 80 0D 02 02 FA 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 [23:48:33]Write to MH i2c: E2 02 01 52 8C 80 0D 02 02 FA 00 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 00 00 1B [23:48:33]Write i2c OK [23:48:33]MH_I2C_Read... [23:48:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:33]Read from MH i2c: E2 [23:48:33]MH_I2C_Read... [23:48:33]Read from MH i2c: E2 03 00 [23:48:33]MH_I2C_Read... [23:48:33]Read from MH i2c: E2 03 00 52 8C 00 90 00 52 [23:48:33]RAPDU: 90 00 [23:48:33]wFMCommunicate OK [23:48:33]wFMCommunicate request_size=255 [23:48:33]MH_SAM_APDU [23:48:33]CAPDU: 80 0D 02 02 FA 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:48:33]Write to MH i2c: E2 02 01 53 8C 80 0D 02 02 FA 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 00 00 FA [23:48:33]Write i2c OK [23:48:33]MH_I2C_Read... [23:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:34]Read from MH i2c: E2 [23:48:34]MH_I2C_Read... [23:48:34]Read from MH i2c: E2 03 00 [23:48:34]MH_I2C_Read... [23:48:34]Read from MH i2c: E2 03 00 53 8C 00 90 00 53 [23:48:34]RAPDU: 90 00 [23:48:34]wFMCommunicate OK [23:48:34]wFMCommunicate request_size=147 [23:48:34]MH_SAM_APDU [23:48:34]CAPDU: 80 0D 02 02 8E EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 A3 D0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 49 CE AB 25 F6 A6 [23:48:34]Write to MH i2c: E2 96 00 54 8C 80 0D 02 02 8E 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 A3 D0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 49 CE AB 25 F6 A6 00 00 96 [23:48:34]Write i2c OK [23:48:34]MH_I2C_Read... [23:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:34]Read from MH i2c: E2 [23:48:34]MH_I2C_Read... [23:48:34]Read from MH i2c: E2 03 00 [23:48:34]MH_I2C_Read... [23:48:34]Read from MH i2c: E2 03 00 54 8C 00 90 00 54 [23:48:34]RAPDU: 90 00 [23:48:34]wFMCommunicate OK [23:48:34]wFMCommunicate request_size=4 [23:48:34]MH_SAM_APDU [23:48:34]CAPDU: 80 0D 03 02 [23:48:34]Write to MH i2c: E2 08 00 55 8C 80 0D 03 02 00 00 00 00 5C [23:48:34]Write i2c OK [23:48:34]MH_I2C_Read... [23:48:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:48:34]Read from MH i2c: E2 [23:48:34]MH_I2C_Read... [23:48:34]Read from MH i2c: E2 0B 00 [23:48:34]MH_I2C_Read... [23:48:34]Read from MH i2c: E2 0B 00 55 8C 00 E8 DB 59 B2 18 83 95 0D 90 00 68 [23:48:34]RAPDU: E8 DB 59 B2 18 83 95 0D 90 00 [23:48:34]wFMCommunicate OK [23:48:34]SAM_PROTO_SignData done [23:48:34]FM_MakeSignedData done [23:48:34]CreateOFDProtocolMessage [23:48:34]wFMCommunicate request_size=4 [23:48:34]MH_SAM_APDU [23:48:34]CAPDU: 80 11 00 00 [23:48:34]Write to MH i2c: E2 08 00 56 8C 80 11 00 00 00 00 00 00 5C [23:48:34]Write i2c OK [23:48:34]MH_I2C_Read... [23:48:34]Read from MH i2c: E2 [23:48:34]MH_I2C_Read... [23:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:34]Read from MH i2c: E2 17 00 [23:48:34]MH_I2C_Read... [23:48:34]Read from MH i2c: E2 17 00 56 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B7 [23:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:48:34]wFMCommunicate OK [23:48:34]CreateOFDProtocolMessage done [23:48:34]OFDSenderStorePacket 118947 [23:48:34]StoreOFDPacket docnum=118947 [23:48:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 80 05 00 00 D1 62 78 05 06 D2 5A 05 01 00 05 00 6C 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 13 00 D0 9A D0 B0 D0 B7 D0 B0 D0 BA D0 BE D0 B2 20 D0 A7 2E 20 F4 03 04 00 4E 2A A8 66 0E 04 04 00 B2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 5E 04 04 00 42 01 00 00 57 04 04 00 44 01 00 00 AA 04 E0 04 6E 04 04 00 42 01 00 00 69 04 A6 00 6F 04 04 00 39 01 00 00 B1 04 04 00 98 7A A9 02 70 04 04 00 80 4D 81 01 72 04 04 00 18 2D 28 01 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BA 62 48 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2F 08 06 6A 04 A0 00 6F 04 04 00 09 00 00 00 B1 04 03 00 9C 0A 2C 70 04 03 00 9C 0A 2C 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 66 AD 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 C8 63 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 A3 D0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 49 CE AB 25 F6 A6 E8 DB 59 B2 18 83 95 0D [23:48:35]CheckFolder [23:48:35]dirname=/storage/ofd_packets [23:48:35]CheckFolder done [23:48:35]ProducePacketName [23:48:35]name=ofd_packets/00118947 [23:48:35]NVStorageSaveData ofd_packets/00118947 [23:48:35]File name is /storage/ofd_packets/00118947 [23:48:35]Write 1438 bytes [23:48:35]NVStorageSaveData done [23:48:35]OFDSenderStorePacket done [23:48:35]KKMCreateOFDPacket done [23:48:35]NVStorageSaveData kkm_last_timestamp [23:48:35]File name is /storage/kkm_last_timestamp [23:48:35]Write 4 bytes [23:48:35]NVStorageSaveData done [23:48:35]ExternCall_PrintAddStr [23:48:35]wPrintStart [23:48:35]Write to MH i2c: 01 00 00 57 8C E3 [23:48:35]Write i2c OK [23:48:35]MH_I2C_Read... [23:48:35]Read from MH i2c: 01 [23:48:35]MH_I2C_Read... [23:48:35]Read from MH i2c: 01 07 00 [23:48:35]MH_I2C_Read... [23:48:35]Read from MH i2c: 01 07 00 57 8C 00 00 00 00 00 FF 0F F8 [23:48:35]RasterBufferAndPrint [23:48:35]line Отчет о закрытии смены [23:48:35]line ФФД: 1.0 [23:48:35]line ИНН: 02508201610067 [23:48:35]line Кассир: Казаков Ч. [23:48:35]line 29.07.2024 23:48 [23:48:35]line Смена: 434 [23:48:35]line РНМ: 0000000000092660 [23:48:35]line ЗНМ: 0300000044 [23:48:35]line СНО: Общий режим [23:48:35]line Чеков за смену: 322 [23:48:35]line ФД за смену: 324 [23:48:35]line Всего чеков: 322 [23:48:35]line ИТОГИ ПРИХОД [23:48:35]line Чеков: 313 [23:48:35]line Общий итог: 446614.00 [23:48:35]line Итого наличными: 252512.00 [23:48:35]line Итого безнал.: 194102.00 [23:48:35]line НДС 0% : 0.00 [23:48:35]line НДС 12% : 47438.66 [23:48:35]line НСП 0% : 0.00 [23:48:35]line НСП 1,50% : 0.00 [23:48:35]line НСП 0,50% : 0.00 [23:48:35]line НСП 5% : 0.00 [23:48:35]line НСП 3% : 0.00 [23:48:35]line НСП 2% : 0.00 [23:48:35]line НСП 1% : 3953.11 [23:48:35]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:48:35]line Чеков: 9 [23:48:35]line Общий итог: 28863.00 [23:48:35]line Итого наличными: 28863.00 [23:48:35]line Итого безнал.: 0.00 [23:48:35]line НДС 0% : 0.00 [23:48:35]line НДС 12% : 3065.34 [23:48:35]line НСП 0% : 0.00 [23:48:35]line НСП 1,50% : 0.00 [23:48:35]line НСП 0,50% : 0.00 [23:48:35]line НСП 5% : 0.00 [23:48:35]line НСП 3% : 0.00 [23:48:35]line НСП 2% : 0.00 [23:48:35]line НСП 1% : 255.44 [23:48:35]line ИТОГИ РАСХОД [23:48:35]line Чеков: 0 [23:48:35]line Общий итог: 0.00 [23:48:35]line Итого наличными: 0.00 [23:48:35]line Итого безнал.: 0.00 [23:48:35]line НДС 0% : 0.00 [23:48:35]line НДС 12% : 0.00 [23:48:35]line НСП 0% : 0.00 [23:48:35]line НСП 1,50% : 0.00 [23:48:35]line НСП 0,50% : 0.00 [23:48:35]line НСП 5% : 0.00 [23:48:35]line НСП 3% : 0.00 [23:48:35]line НСП 2% : 0.00 [23:48:35]line НСП 1% : 0.00 [23:48:35]line ИТОГИ ВОЗВРАТ РАСХОДА [23:48:35]line Чеков: 0 [23:48:35]line Общий итог: 0.00 [23:48:35]line Итого наличными: 0.00 [23:48:35]line Итого безнал.: 0.00 [23:48:35]line НДС 0% : 0.00 [23:48:35]line НДС 12% : 0.00 [23:48:35]line НСП 0% : 0.00 [23:48:35]line НСП 1,50% : 0.00 [23:48:35]line НСП 0,50% : 0.00 [23:48:35]line НСП 5% : 0.00 [23:48:35]line НСП 3% : 0.00 [23:48:35]line НСП 2% : 0.00 [23:48:35]line НСП 1% : 0.00 [23:48:35]line Сумма внесений: 0.00 [23:48:35]line Сумма выплат: 0.00 [23:48:35]line Нал. в кассе: 223649.00 [23:48:35]line НС Приход: 148986532.00 [23:48:35]line НС Возвр.Прихода: 9940454.00 [23:48:35]line НС Расход: 0.00 [23:48:35]line НС Возвр.Расхода: 0.00 [23:48:35]line ФД: 118947 [23:48:35]line ФМ: 0000000000874939 [23:48:35]line ФПД: 81151983482534 [23:48:35]OFD Sender: Processing packet 118947 [packets to send 86, broken 85] [23:48:35]ProducePacketName [23:48:35]name=ofd_packets/00118947 [23:48:35]OFD Sender: To server: pG, [23:48:35]CommunicateWithHost lk.salyk.kg:30040 [23:48:35]ConnectInit lk.salyk.kg [23:48:35]written 0, free lines is 4095 [23:48:35]Connected sock=10 [23:48:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 80 05 00 00 D1 62 78 05 06 D2 5A 05 01 00 05 00 6C 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 13 00 D0 9A D0 B0 D0 B7 D0 B0 D0 BA D0 BE D0 B2 20 D0 A7 2E 20 F4 03 04 00 4E 2A A8 66 0E 04 04 00 B2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 5E 04 04 00 42 01 00 00 57 04 04 00 44 01 00 00 AA 04 E0 04 6E 04 04 00 42 01 00 00 69 04 A6 00 6F 04 04 00 39 01 00 00 B1 04 04 00 98 7A A9 02 70 04 04 00 80 4D 81 01 72 04 04 00 18 2D 28 01 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BA 62 48 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2F 08 06 6A 04 A0 00 6F 04 04 00 09 00 00 00 B1 04 03 00 9C 0A 2C 70 04 03 00 9C 0A 2C 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 66 AD 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 C8 63 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 Write to MH i2c: 00 01 EE 00 03 00 09 A7 00 8C 33 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 [23:48:36]03 Write i2c OK [23:48:36]01 MH_I2C_Read... [23:48:36]00 Read from MH i2c: 00 01 F7 [23:48:36]03 MH_I2C_Read... [23:48:36]00 00 EF 03 09 00 F6 03 01 00 01 F7 Read from MH i2c: 03 01 00 07 00 00 EF [23:48:36]03 MH_I2C_Read... [23:48:36]09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 Read from MH i2c: 00 01 F6 07 03 00 01 A7 00 8C 03 00 F7 00 03 00 00 00 00 00 EF BD 03 0B 09 02 00 [23:48:36]F6 RasterBufferAndPrint [23:48:36]03 line [23:48:36]01 line [23:48:36]00 line [23:48:36]04 line [23:48:36]F7 line [23:48:36]03 00 00 written 0, free lines is 3162 [23:48:36]EF 03 09 00 F6 03 01 00 05 F7 03 00 00 MH_Cut [23:48:36]EF Write to MH i2c: D1 03 01 09 00 00 AE F6 8C 03 01 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 0C 00 [23:48:36]72 Write i2c OK [23:48:36]04 MH_I2C_Read... [23:48:36]00 Read from MH i2c: 00 D1 00 [23:48:36]04 MH_I2C_Read... [23:48:36]75 00 EE 03 09 00 F2 03 01 00 Read from MH i2c: 00 D1 F3 01 03 00 00 [23:48:36]00 MH_I2C_Read... [23:48:36]EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF Read from MH i2c: 03 D1 09 01 00 00 F6 AE 03 8C 01 00 00 0B 00 [23:48:36]F7 Write to MH i2c: 03 01 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF AF 03 8C 09 3B 00 [23:48:36]F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 Write i2c OK [23:48:36]03 MH_I2C_Read... [23:48:36]00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 A3 D0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 49 CE AB 25 F6 A6 E8 DB 59 B2 18 83 95 0D [23:48:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F *** Cut start [23:48:37]00 00 00 11 91 47 00 10 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 *** Partial cut [23:48:37]30 30 *** CUTSNS_PIN = 1 [23:48:37]30 30 30 30 30 30 30 30 38 37 34 39 33 39 *** CUTSNS_PIN = 0 [23:48:37]10 04 04 00 A3 D0 01 00 F4 *** Brake cut motor [23:48:37]03 04 00 E7 D7 A7 66 B6 04 01 00 00 8C 79 1C 10 42 16 73 00 [23:48:37]CommunicateWithHost err = 0 [23:48:37]CheckOFDResponse [23:48:37]1017 (14) - 77093643461234 [23:48:37]1041 (16) - 0000000000874939 [23:48:37]1040 (4) - 118947 [23:48:37]1012 (4) - 29.07.2024 17:56 [23:48:37]1206 (1) - 0 [23:48:37]OFD Sender: Remove packet 118947 [23:48:37]ProducePacketName [23:48:37]name=ofd_packets/00118947 [23:48:37]NVStorageDeleteData [23:48:37]Read from MH i2c: *** Stop cut motor [23:48:37]01 *** Cut end [23:48:37] [23:48:37]MH_I2C_Read... [23:48:37]Read from MH i2c: 01 07 00 [23:48:37]MH_I2C_Read... [23:48:37]Read from MH i2c: 01 07 00 AF 8C 00 00 00 00 00 FF 0F 50 [23:48:37]process_action close_shift done [23:48:37]requested_data is exist [23:48:37]produce_requested_data [23:48:37]requested_item fd.num is exist - process it [23:48:37]SAM_PROTO_GetFieldsCounters [23:48:37]wFMCommunicate request_size=4 [23:48:37]MH_SAM_APDU [23:48:37]CAPDU: 80 13 00 00 [23:48:37]Write to MH i2c: E2 08 00 B0 8C 80 13 00 00 00 00 00 00 B8 [23:48:37]Write i2c OK [23:48:37]MH_I2C_Read... [23:48:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:37]Read from MH i2c: E2 [23:48:37]MH_I2C_Read... [23:48:37]Read from MH i2c: E2 62 00 [23:48:37]MH_I2C_Read... [23:48:38]Read from MH i2c: E2 62 00 B0 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 OFD Sender: No OFD packet to send [23:48:38]30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A3 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 D0 [23:48: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A3 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:48:38]wFMCommunicate OK [23:48:38]SAM_PROTO_GetFieldsCounters done [23:48:38]requested_item shift.num is exist - process it [23:48:38]requested_item shift.opened is exist - process it [23:48:38]req_shift_opened [23:48:38]FM_GetShiftState [23:48:38]SAM_PROTO_GetShiftState [23:48:38]wFMCommunicate request_size=4 [23:48:38]MH_SAM_APDU [23:48:38]CAPDU: 80 13 01 00 [23:48:38]Write to MH i2c: E2 08 00 B1 8C 80 13 01 00 00 00 00 00 BA [23:48:38]Write i2c OK [23:48:38]MH_I2C_Read... [23:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:38]Read from MH i2c: E2 [23:48:38]MH_I2C_Read... [23:48:38]Read from MH i2c: E2 0E 00 [23:48:38]MH_I2C_Read... [23:48:38]Read from MH i2c: E2 0E 00 B1 8C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C5 [23:48:38]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:48:38]wFMCommunicate OK [23:48:38]SAM_PROTO_GetShiftState done [23:48:38]FM_GetShiftState done [23:48:38]req_shift_opened done [23:48:38]requested_item shift.open_date is exist - process it [23:48:38]req_shift_open_date [23:48:38]FM_GetShiftState [23:48:38]SAM_PROTO_GetShiftState [23:48:38]wFMCommunicate request_size=4 [23:48:38]MH_SAM_APDU [23:48:38]CAPDU: 80 13 01 00 [23:48:38]Write to MH i2c: E2 08 00 B2 8C 80 13 01 00 00 00 00 00 BB [23:48:38]Write i2c OK [23:48:38]MH_I2C_Read... [23:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:38]Read from MH i2c: E2 [23:48:38]MH_I2C_Read... [23:48:38]Read from MH i2c: E2 0E 00 [23:48:38]MH_I2C_Read... [23:48:38]Read from MH i2c: E2 0E 00 B2 8C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C6 [23:48:38]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:48:38]wFMCommunicate OK [23:48:38]SAM_PROTO_GetShiftState done [23:48:38]FM_GetShiftState done [23:48:38]req_shift_open_date done [23:48:38]produce_requested_data done [23:48:38]produce_requested_data return {"fd.num":118947,"shift.num":434,"shift.opened":0,"shift.open_date":0} [23:48:38]process_action_free close_shift [23:48:38]json_value_free [23:48:38]json_value_free done [23:48:38]process_json_proto returns [23:48:38]Send response to host [23:48:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":118947,"shift.num":434,"shift.opened":0,"shift.open_date":0}}} [23:48:38]free response buf [23:48:38]execute_script done [23:48:38]execute_script returns [23:48:38]free content buf [23:48:38]Sock 7.Close socket [23:48:38]Sock 7.Thread stoped [23:48:43]OFD Sender: No OFD packet to send [23:48:48]OFD Sender: No OFD packet to send [23:48:53]OFD Sender: No OFD packet to send [23:48:58]OFD Sender: No OFD packet to send [23:49:03]OFD Sender: No OFD packet to send [23:49:08]OFD Sender: No OFD packet to send [23:49:13]OFD Sender: No OFD packet to send [23:49:18]OFD Sender: No OFD packet to send [23:49:23]OFD Sender: No OFD packet to send [23:49:28]OFD Sender: No OFD packet to send [23:49:33]OFD Sender: No OFD packet to send [23:49:38]OFD Sender: No OFD packet to send [23:49:43]OFD Sender: No OFD packet to send [23:49:48]OFD Sender: No OFD packet to send [23:49:53]OFD Sender: No OFD packet to send [23:49:58]OFD Sender: No OFD packet to send [23:50:03]OFD Sender: No OFD packet to send [23:50:08]OFD Sender: No OFD packet to send [23:50:13]OFD Sender: No OFD packet to send [23:50:18]OFD Sender: No OFD packet to send [23:50:23]OFD Sender: No OFD packet to send [23:50:28]OFD Sender: No OFD packet to send [23:50:33]OFD Sender: No OFD packet to send [23:50:38]OFD Sender: No OFD packet to send [23:50:43]OFD Sender: No OFD packet to send [23:50:48]OFD Sender: No OFD packet to send [23:50:53]OFD Sender: No OFD packet to send [23:50:58]OFD Sender: No OFD packet to send [23:51:03]OFD Sender: No OFD packet to send [23:51:08]OFD Sender: No OFD packet to send [23:51:13]OFD Sender: No OFD packet to send [23:51:18]OFD Sender: No OFD packet to send [23:51:23]OFD Sender: No OFD packet to send [23:51:28]OFD Sender: No OFD packet to send [23:51:33]OFD Sender: No OFD packet to send [23:51:38]OFD Sender: No OFD packet to send [23:51:43]OFD Sender: No OFD packet to send [23:51:48]OFD Sender: No OFD packet to send [23:51:53]OFD Sender: No OFD packet to send [23:51:58]OFD Sender: No OFD packet to send [23:52:03]OFD Sender: No OFD packet to send [23:52:08]OFD Sender: No OFD packet to send [23:52:13]OFD Sender: No OFD packet to send [23:52:18]OFD Sender: No OFD packet to send [23:52:23]OFD Sender: No OFD packet to send [23:52:28]OFD Sender: No OFD packet to send [23:52:33]OFD Sender: No OFD packet to send [23:52:38]OFD Sender: No OFD packet to send [23:52:43]OFD Sender: No OFD packet to send [23:52:48]OFD Sender: No OFD packet to send [23:52:53]OFD Sender: No OFD packet to send [23:52:58]OFD Sender: No OFD packet to send [23:53:03]OFD Sender: No OFD packet to send [23:53:08]OFD Sender: No OFD packet to send [23:53:13]OFD Sender: No OFD packet to send [23:53:18]OFD Sender: No OFD packet to send [23:53:23]OFD Sender: No OFD packet to send [23:53:28]OFD Sender: No OFD packet to send [23:53:33]OFD Sender: No OFD packet to send [23:53:38]OFD Sender: No OFD packet to send [23:53:43]OFD Sender: No OFD packet to send [23:53:48]OFD Sender: No OFD packet to send [23:53:53]OFD Sender: No OFD packet to send [23:53:58]OFD Sender: No OFD packet to send [23:54:03]OFD Sender: No OFD packet to send [23:54:08]OFD Sender: No OFD packet to send [23:54:13]OFD Sender: No OFD packet to send [23:54:18]OFD Sender: No OFD packet to send [23:54:23]OFD Sender: No OFD packet to send [23:54:28]OFD Sender: No OFD packet to send [23:54:33]OFD Sender: No OFD packet to send [23:54:38]OFD Sender: No OFD packet to send [23:54:43]OFD Sender: No OFD packet to send [23:54:48]OFD Sender: No OFD packet to send [23:54:53]OFD Sender: No OFD packet to send [23:54:58]OFD Sender: No OFD packet to send [23:55:03]OFD Sender: No OFD packet to send [23:55:08]OFD Sender: No OFD packet to send [23:55:13]OFD Sender: No OFD packet to send [23:55:18]OFD Sender: No OFD packet to send [23:55:23]OFD Sender: No OFD packet to send [23:55:28]OFD Sender: No OFD packet to send [23:55:33]OFD Sender: No OFD packet to send [23:55:38]OFD Sender: No OFD packet to send [23:55:43]OFD Sender: No OFD packet to send [23:55:48]OFD Sender: No OFD packet to send [23:55:53]OFD Sender: No OFD packet to send [23:55:58]OFD Sender: No OFD packet to send [23:56:03]OFD Sender: No OFD packet to send [23:56:08]OFD Sender: No OFD packet to send [23:56:13]OFD Sender: No OFD packet to send [23:56:18]OFD Sender: No OFD packet to send [23:56:23]OFD Sender: No OFD packet to send [23:56:28]OFD Sender: No OFD packet to send [23:56:33]OFD Sender: No OFD packet to send [23:56:38]OFD Sender: No OFD packet to send [23:56:43]OFD Sender: No OFD packet to send [23:56:48]OFD Sender: No OFD packet to send [23:56:53]OFD Sender: No OFD packet to send [23:56:58]OFD Sender: No OFD packet to send [23:57:03]OFD Sender: No OFD packet to send [23:57:08]OFD Sender: No OFD packet to send [23:57:13]OFD Sender: No OFD packet to send [23:57:18]OFD Sender: No OFD packet to send [23:57:23]OFD Sender: No OFD packet to send [23:57:28]OFD Sender: No OFD packet to send [23:57:33]OFD Sender: No OFD packet to send [23:57:38]OFD Sender: No OFD packet to send [23:57:43]OFD Sender: No OFD packet to send [23:57:48]OFD Sender: No OFD packet to send [23:57:53]OFD Sender: No OFD packet to send [23:57:58]OFD Sender: No OFD packet to send [23:58:03]OFD Sender: No OFD packet to send [23:58:08]OFD Sender: No OFD packet to send [23:58:13]OFD Sender: No OFD packet to send [23:58:18]OFD Sender: No OFD packet to send [23:58:23]OFD Sender: No OFD packet to send [23:58:28]OFD Sender: No OFD packet to send [23:58:33]OFD Sender: No OFD packet to send [23:58:38]OFD Sender: No OFD packet to send [23:58:43]OFD Sender: No OFD packet to send [23:58:48]OFD Sender: No OFD packet to send [23:58:53]OFD Sender: No OFD packet to send [23:58:58]OFD Sender: No OFD packet to send [23:59:03]OFD Sender: No OFD packet to send [23:59:08]OFD Sender: No OFD packet to send [23:59:13]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:23]OFD Sender: No OFD packet to send [23:59:28]OFD Sender: No OFD packet to send [23:59:33]OFD Sender: No OFD packet to send [23:59:38]OFD Sender: No OFD packet to send [23:59:43]OFD Sender: No OFD packet to send [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [00:00:03]OFD Sender: No OFD packet to send [00:00:08]OFD Sender: No OFD packet to send [00:00:13]OFD Sender: No OFD packet to send [00:00:18]OFD Sender: No OFD packet to send [00:00:23]OFD Sender: No OFD packet to send [00:00:28]OFD Sender: No OFD packet to send [00:00:33]OFD Sender: No OFD packet to send [00:00:38]OFD Sender: No OFD packet to send [00:00:43]OFD Sender: No OFD packet to send [00:00:48]OFD Sender: No OFD packet to send [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:01:03]OFD Sender: No OFD packet to send [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:38]OFD Sender: No OFD packet to send [00:01:43]OFD Sender: No OFD packet to send [00:01:48]OFD Sender: No OFD packet to send [00:01:53]OFD Sender: No OFD packet to send [00:01:58]OFD Sender: No OFD packet to send [00:02:03]OFD Sender: No OFD packet to send [00:02:08]OFD Sender: No OFD packet to send [00:02:13]OFD Sender: No OFD packet to send [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:33]OFD Sender: No OFD packet to send [00:02:38]OFD Sender: No OFD packet to send [00:02:43]OFD Sender: No OFD packet to send [00:02:48]OFD Sender: No OFD packet to send [00:02:53]OFD Sender: No OFD packet to send [00:02:58]OFD Sender: No OFD packet to send [00:03:03]OFD Sender: No OFD packet to send [00:03:08]OFD Sender: No OFD packet to send [00:03:13]OFD Sender: No OFD packet to send [00:03:18]OFD Sender: No OFD packet to send [00:03:23]OFD Sender: No OFD packet to send [00:03:28]OFD Sender: No OFD packet to send [00:03:33]OFD Sender: No OFD packet to send [00:03:38]OFD Sender: No OFD packet to send [00:03:43]OFD Sender: No OFD packet to send [00:03:48]OFD Sender: No OFD packet to send [00:03:53]OFD Sender: No OFD packet to send [00:03:58]OFD Sender: No OFD packet to send [00:04:03]OFD Sender: No OFD packet to send [00:04:09]OFD Sender: No OFD packet to send [00:04:14]OFD Sender: No OFD packet to send [00:04:19]OFD Sender: No OFD packet to send [00:04:24]OFD Sender: No OFD packet to send [00:04:29]OFD Sender: No OFD packet to send [00:04:34]OFD Sender: No OFD packet to send [00:04:39]OFD Sender: No OFD packet to send [00:04:44]OFD Sender: No OFD packet to send [00:04:49]OFD Sender: No OFD packet to send [00:04:54]OFD Sender: No OFD packet to send [00:04:59]OFD Sender: No OFD packet to send [00:05:04]OFD Sender: No OFD packet to send [00:05:09]OFD Sender: No OFD packet to send [00:05:14]OFD Sender: No OFD packet to send [00:05:19]OFD Sender: No OFD packet to send [00:05:24]OFD Sender: No OFD packet to send [00:05:29]OFD Sender: No OFD packet to send [00:05:34]OFD Sender: No OFD packet to send [00:05:39]OFD Sender: No OFD packet to send [00:05:44]OFD Sender: No OFD packet to send [00:05:49]OFD Sender: No OFD packet to send [00:05:54]OFD Sender: No OFD packet to send [00:05:59]OFD Sender: No OFD packet to send [00:06:04]OFD Sender: No OFD packet to send [00:06:09]OFD Sender: No OFD packet to send [00:06:14]OFD Sender: No OFD packet to send [00:06:19]OFD Sender: No OFD packet to send [00:06:24]OFD Sender: No OFD packet to send [00:06:29]OFD Sender: No OFD packet to send [00:06:34]OFD Sender: No OFD packet to send [00:06:39]OFD Sender: No OFD packet to send [00:06:44]OFD Sender: No OFD packet to send [00:06:49]OFD Sender: No OFD packet to send [00:06:54]OFD Sender: No OFD packet to send [00:06:59]OFD Sender: No OFD packet to send [00:07:04]OFD Sender: No OFD packet to send [00:07:09]OFD Sender: No OFD packet to send [00:07:14]OFD Sender: No OFD packet to send [00:07:19]OFD Sender: No OFD packet to send [00:07:24]OFD Sender: No OFD packet to send [00:07:29]OFD Sender: No OFD packet to send [00:07:34]OFD Sender: No OFD packet to send [00:07:39]OFD Sender: No OFD packet to send [00:07:44]OFD Sender: No OFD packet to send [00:07:49]OFD Sender: No OFD packet to send [00:07:54]OFD Sender: No OFD packet to send [00:07:59]OFD Sender: No OFD packet to send [00:08:04]OFD Sender: No OFD packet to send [00:08:09]OFD Sender: No OFD packet to send [00:08:14]OFD Sender: No OFD packet to send [00:08:19]OFD Sender: No OFD packet to send [00:08:24]OFD Sender: No OFD packet to send [00:08:29]OFD Sender: No OFD packet to send [00:08:34]OFD Sender: No OFD packet to send [00:08:39]OFD Sender: No OFD packet to send [00:08:44]OFD Sender: No OFD packet to send [00:08:49]OFD Sender: No OFD packet to send [00:08:54]OFD Sender: No OFD packet to send [00:08:59]OFD Sender: No OFD packet to send [00:09:04]OFD Sender: No OFD packet to send [00:09:09]OFD Sender: No OFD packet to send [00:09:14]OFD Sender: No OFD packet to send [00:09:19]OFD Sender: No OFD packet to send [00:09:24]OFD Sender: No OFD packet to send [00:09:29]OFD Sender: No OFD packet to send [00:09:34]OFD Sender: No OFD packet to send [00:09:39]OFD Sender: No OFD packet to send [00:09:44]OFD Sender: No OFD packet to send [00:09:49]OFD Sender: No OFD packet to send [00:09:54]OFD Sender: No OFD packet to send [00:09:59]OFD Sender: No OFD packet to send [00:10:04]OFD Sender: No OFD packet to send [00:10:09]OFD Sender: No OFD packet to send [00:10:14]OFD Sender: No OFD packet to send [00:10:19]OFD Sender: No OFD packet to send [00:10:24]OFD Sender: No OFD packet to send [00:10:29]OFD Sender: No OFD packet to send [00:10:30]accept exits with 9 [00:10:30]New connection [00:10:30]New thread 3067383140 created [00:10:30]Thread 3067239780 joined [00:10:30]Waiting for new connection... [00:10:30] Sock 9.Parse request [00:10:30]Sock 9.Check first char [00:10:30]Sock 9.First char is OK [00:10:30]request: POST /json_proto HTTP/1.0 [00:10:30]Method: POST [00:10:30]URL: /json_proto [00:10:30]Method is POST - this is cgi request [00:10:30]url: /json_proto [00:10:30]query_string will be loaded in cgi processing [00:10:30]execute_cgi json_proto POST (null) [00:10:30]execute_cgi path=json_proto method=POST [00:10:30]POST find Content-Length [00:10:30]Host: 172.17.45.7:8080 [00:10:30]Content-Length: 215 [00:10:30]Content-Type: application/json [00:10:30] [00:10:30]POST finish read [00:10:30]Found Content-Length = 215 [00:10:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:30]execute_script... [00:10:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:30]POST & json_proto [00:10:30]process_json_proto [00:10:30]json parsed OK: [00:10:30]protocol is kg_v1.0 [00:10:30]action value=get_value [00:10:30]process_action get_value [00:10:30]cmd_get_value [00:10:30]process_action get_value done [00:10:30]requested_data is exist [00:10:30]produce_requested_data [00:10:30]requested_item kkm.sn is exist - process it [00:10:30]requested_item kkm.ver is exist - process it [00:10:30]requested_item fm.sn is exist - process it [00:10:30]wFMCommunicate request_size=4 [00:10:30]MH_SAM_APDU [00:10:30]CAPDU: 80 11 00 00 [00:10:30]Write to MH i2c: E2 08 00 B3 8C 80 11 00 00 00 00 00 00 B9 [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:30]Read from MH i2c: E2 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 17 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 17 00 B3 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 14 [00:10:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:10:30]wFMCommunicate OK [00:10:30]requested_item fd.num is exist - process it [00:10:30]SAM_PROTO_GetFieldsCounters [00:10:30]wFMCommunicate request_size=4 [00:10:30]MH_SAM_APDU [00:10:30]CAPDU: 80 13 00 00 [00:10:30]Write to MH i2c: E2 08 00 B4 8C 80 13 00 00 00 00 00 00 BC [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:30]Read from MH i2c: E2 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 62 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 62 00 B4 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A3 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 D4 [00:10: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A3 D0 01 00 0E 04 04 00 B2 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:10:30]wFMCommunicate OK [00:10:30]SAM_PROTO_GetFieldsCounters done [00:10:30]requested_item shift.num is exist - process it [00:10:30]requested_item shift.opened is exist - process it [00:10:30]req_shift_opened [00:10:30]FM_GetShiftState [00:10:30]SAM_PROTO_GetShiftState [00:10:30]wFMCommunicate request_size=4 [00:10:30]MH_SAM_APDU [00:10:30]CAPDU: 80 13 01 00 [00:10:30]Write to MH i2c: E2 08 00 B5 8C 80 13 01 00 00 00 00 00 BE [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:30]Read from MH i2c: E2 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 0E 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 0E 00 B5 8C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C9 [00:10:30]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:10:30]wFMCommunicate OK [00:10:30]SAM_PROTO_GetShiftState done [00:10:30]FM_GetShiftState done [00:10:30]req_shift_opened done [00:10:30]requested_item shift.open_date is exist - process it [00:10:30]req_shift_open_date [00:10:30]FM_GetShiftState [00:10:30]SAM_PROTO_GetShiftState [00:10:30]wFMCommunicate request_size=4 [00:10:30]MH_SAM_APDU [00:10:30]CAPDU: 80 13 01 00 [00:10:30]Write to MH i2c: E2 08 00 B6 8C 80 13 01 00 00 00 00 00 BF [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:30]Read from MH i2c: E2 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 0E 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 0E 00 B6 8C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 CA [00:10:30]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:10:30]wFMCommunicate OK [00:10:30]SAM_PROTO_GetShiftState done [00:10:30]FM_GetShiftState done [00:10:30]req_shift_open_date done [00:10:30]produce_requested_data done [00:10:30]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118947,"shift.num":434,"shift.opened":0,"shift.open_date":0} [00:10:30]process_action_free get_value [00:10:30]json_value_free [00:10:30]json_value_free done [00:10:30]process_json_proto returns [00:10:30]Send response to host [00:10:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":118947,"shift.num":434,"shift.opened":0,"shift.open_date":0}}} [00:10:30]free response buf [00:10:30]execute_script done [00:10:30]execute_script returns [00:10:30]free content buf [00:10:30]Sock 9.Close socket [00:10:30]Sock 9.Thread stoped [00:10:30]accept exits with 7 [00:10:30]New connection [00:10:30]New thread 3067239780 created [00:10:30]Thread 3067383140 joined [00:10:30]Waiting for new connection... [00:10:30] Sock 7.Parse request [00:10:30]Sock 7.Check first char [00:10:30]Sock 7.First char is OK [00:10:30]request: POST /json_proto HTTP/1.0 [00:10:30]Method: POST [00:10:30]URL: /json_proto [00:10:30]Method is POST - this is cgi request [00:10:30]url: /json_proto [00:10:30]query_string will be loaded in cgi processing [00:10:30]execute_cgi json_proto POST (null) [00:10:30]execute_cgi path=json_proto method=POST [00:10:30]POST find Content-Length [00:10:30]Host: 172.17.45.7:8080 [00:10:30]Content-Length: 331 [00:10:30]Content-Type: application/json [00:10:30] [00:10:30]POST finish read [00:10:30]Found Content-Length = 331 [00:10:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:30]execute_script... [00:10:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:30]POST & json_proto [00:10:30]process_json_proto [00:10:30]json parsed OK: [00:10:30]protocol is kg_v1.0 [00:10:30]action value=get_value [00:10:30]process_action get_value [00:10:30]cmd_get_value [00:10:30]process_action get_value done [00:10:30]requested_data is exist [00:10:30]produce_requested_data [00:10:30]requested_item fm.sale.total is exist - process it [00:10:30]SAM_PROTO_GetFMData [00:10:30]wFMCommunicate request_size=4 [00:10:30]MH_SAM_APDU [00:10:30]CAPDU: 80 13 03 00 [00:10:30]Write to MH i2c: E2 08 00 B7 8C 80 13 03 00 00 00 00 00 C2 [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:10:31]Read from MH i2c: E2 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: E2 FD 00 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: E2 FD 00 B7 8C 00 C5 04 85 04 C1 04 6E 04 04 00 3E CD 01 00 69 04 A3 00 6F 04 04 00 AB BF 01 00 B1 04 05 00 10 68 07 78 03 70 04 05 00 18 05 19 A9 02 72 04 04 00 F8 62 EE CE 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C6 11 54 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7F 35 DC 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 93 0D 00 00 B1 04 04 00 D8 ED 3F 3B 70 04 04 00 D8 ED 3F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 F1 4A 06 EF 03 09 90 00 44 [00:10:31]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3E CD 01 00 69 04 A3 00 6F 04 04 00 AB BF 01 00 B1 04 05 00 10 68 07 78 03 70 04 05 00 18 05 19 A9 02 72 04 04 00 F8 62 EE CE 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C6 11 54 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7F 35 DC 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 93 0D 00 00 B1 04 04 00 D8 ED 3F 3B 70 04 04 00 D8 ED 3F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 F1 4A 06 EF 03 09 90 00 [00:10:31]wFMCommunicate OK [00:10:31]wFMCommunicate request_size=4 [00:10:31]MH_SAM_APDU [00:10:31]CAPDU: 80 17 00 00 [00:10:31]Write to MH i2c: E2 08 00 B8 8C 80 17 00 00 00 00 00 00 C4 [00:10:31]Write i2c OK [00:10:31]MH_I2C_Read... [00:10:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:31]Read from MH i2c: E2 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: E2 FD 00 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: E2 FD 00 B8 8C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 3D 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 24 [00:10:31]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 3D 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:10:31]wFMCommunicate OK [00:10:31]wFMCommunicate request_size=4 [00:10:31]MH_SAM_APDU [00:10:31]CAPDU: 80 17 00 00 [00:10:31]Write to MH i2c: E2 08 00 B9 8C 80 17 00 00 00 00 00 00 C5 [00:10:31]Write i2c OK [00:10:31]MH_I2C_Read... [00:10:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:31]Read from MH i2c: E2 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: E2 FD 00 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: E2 FD 00 B9 8C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 D7 [00:10:31]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:10:31]wFMCommunicate OK [00:10:31]wFMCommunicate request_size=4 [00:10:31]MH_SAM_APDU [00:10:31]CAPDU: 80 17 00 00 [00:10:31]Write to MH i2c: E2 08 00 BA 8C 80 17 00 00 00 00 00 00 C6 [00:10:31]Write i2c OK [00:10:31]MH_I2C_Read... [00:10:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:32]Read from MH i2c: E2 [00:10:32]MH_I2C_Read... [00:10:32]Read from MH i2c: E2 FD 00 [00:10:32]MH_I2C_Read... [00:10:32]Read from MH i2c: E2 FD 00 BA 8C 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 52 [00:10:32]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:10:32]wFMCommunicate OK [00:10:32]wFMCommunicate request_size=4 [00:10:32]MH_SAM_APDU [00:10:32]CAPDU: 80 17 00 00 [00:10:32]Write to MH i2c: E2 08 00 BB 8C 80 17 00 00 00 00 00 00 C7 [00:10:32]Write i2c OK [00:10:32]MH_I2C_Read... [00:10:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:10:32]Read from MH i2c: E2 [00:10:32]MH_I2C_Read... [00:10:32]Read from MH i2c: E2 E2 00 [00:10:32]MH_I2C_Read... [00:10:32]Read from MH i2c: E2 E2 00 BB 8C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A5 [00:10:32]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:10:32]wFMCommunicate OK [00:10:32]SAM_PROTO_GetFMData done [00:10:32]requested_item fm.sale_refund.total is exist - process it [00:10:32]requested_item fm.buy.total is exist - process it [00:10:32]requested_item shift.sale.total is exist - process it [00:10:32]SAM_PROTO_GetShiftData [00:10:32]wFMCommunicate request_size=4 [00:10:32]MH_SAM_APDU [00:10:32]CAPDU: 80 13 02 00 [00:10:32]Write to MH i2c: E2 08 00 BC 8C 80 13 02 00 00 00 00 00 C6 [00:10:32]Write i2c OK [00:10:32]MH_I2C_Read... [00:10:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:10:32]Read from MH i2c: E2 [00:10:32]MH_I2C_Read... [00:10:32]Read from MH i2c: E2 FD 00 [00:10:32]MH_I2C_Read... [00:10:32]Read from MH i2c: E2 FD 00 BC 8C 00 BD 04 AA 04 B9 04 6E 04 04 00 42 01 00 00 69 04 9F 00 6F 04 04 00 39 01 00 00 B1 04 04 00 98 7A A9 02 70 04 04 00 80 4D 81 01 72 04 04 00 18 2D 28 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BA 62 48 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2F 08 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 9C 0A 2C 70 04 03 00 9C 0A 2C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 66 AD 04 EF 03 09 00 F6 03 01 00 00 F7 90 00 37 [00:10:32]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 42 01 00 00 69 04 9F 00 6F 04 04 00 39 01 00 00 B1 04 04 00 98 7A A9 02 70 04 04 00 80 4D 81 01 72 04 04 00 18 2D 28 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BA 62 48 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2F 08 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 9C 0A 2C 70 04 03 00 9C 0A 2C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 66 AD 04 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:10:32]wFMCommunicate OK [00:10:32]wFMCommunicate request_size=4 [00:10:32]MH_SAM_APDU [00:10:32]CAPDU: 80 17 00 00 [00:10:32]Write to MH i2c: E2 08 00 BD 8C 80 17 00 00 00 00 00 00 C9 [00:10:32]Write i2c OK [00:10:32]MH_I2C_Read... [00:10:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:33]Read from MH i2c: E2 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 FD 00 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 FD 00 BD 8C 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 A1 [00:10:33]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 [00:10:33]wFMCommunicate OK [00:10:33]wFMCommunicate request_size=4 [00:10:33]MH_SAM_APDU [00:10:33]CAPDU: 80 17 00 00 [00:10:33]Write to MH i2c: E2 08 00 BE 8C 80 17 00 00 00 00 00 00 CA [00:10:33]Write i2c OK [00:10:33]MH_I2C_Read... [00:10:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:33]Read from MH i2c: E2 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 FD 00 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 FD 00 BE 8C 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 FC [00:10:33]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [00:10:33]wFMCommunicate OK [00:10:33]wFMCommunicate request_size=4 [00:10:33]MH_SAM_APDU [00:10:33]CAPDU: 80 17 00 00 [00:10:33]Write to MH i2c: E2 08 00 BF 8C 80 17 00 00 00 00 00 00 CB [00:10:33]Write i2c OK [00:10:33]MH_I2C_Read... [00:10:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:33]Read from MH i2c: E2 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 FD 00 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 FD 00 BF 8C 00 F7 03 00 00 EF 03 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 90 00 42 [00:10:33]RAPDU: F7 03 00 00 EF 03 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 90 00 [00:10:33]wFMCommunicate OK [00:10:33]wFMCommunicate request_size=4 [00:10:33]MH_SAM_APDU [00:10:33]CAPDU: 80 17 00 00 [00:10:33]Write to MH i2c: E2 08 00 C0 8C 80 17 00 00 00 00 00 00 CC [00:10:33]Write i2c OK [00:10:33]MH_I2C_Read... [00:10:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [00:10:33]Read from MH i2c: E2 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 DA 00 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 DA 00 C0 8C 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AD [00:10:34]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:10:34]wFMCommunicate OK [00:10:34]SAM_PROTO_GetShiftData done [00:10:34]requested_item shift.sale.total_cash is exist - process it [00:10:34]requested_item shift.sale_refund.total is exist - process it [00:10:34]requested_item shift.sale_refund.total_cash is exist - process it [00:10:34]requested_item shift.buy.total is exist - process it [00:10:34]requested_item shift.buy.total_cash is exist - process it [00:10:34]produce_requested_data done [00:10:34]produce_requested_data return {"fm.sale.total":148986532.00,"fm.sale_refund.total":9940454.00,"fm.buy.total":0.00,"shift.sale.total":446614.00,"shift.sale.total_cash":252512.00,"shift.sale_refund.total":28863.00,"shift.sale_refund.total_cash":28863.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:10:34]process_action_free get_value [00:10:34]json_value_free [00:10:34]json_value_free done [00:10:34]process_json_proto returns [00:10:34]Send response to host [00:10:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148986532.00,"fm.sale_refund.total":9940454.00,"fm.buy.total":0.00,"shift.sale.total":446614.00,"shift.sale.total_cash":252512.00,"shift.sale_refund.total":28863.00,"shift.sale_refund.total_cash":28863.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:10:34]free response buf [00:10:34]execute_script done [00:10:34]execute_script returns [00:10:34]free content buf [00:10:34]Sock 7.Close socket [00:10:34]Sock 7.Thread stoped [00:10:34]OFD Sender: No OFD packet to send [00:10:34]accept exits with 9 [00:10:34]New connection [00:10:34]New thread 3067383140 created [00:10:34]Thread 3067239780 joined [00:10:34]Waiting for new connection... [00:10:34] Sock 9.Parse request [00:10:34]Sock 9.Check first char [00:10:34]Sock 9.First char is OK [00:10:34]request: POST /json_proto HTTP/1.0 [00:10:34]Method: POST [00:10:34]URL: /json_proto [00:10:34]Method is POST - this is cgi request [00:10:34]url: /json_proto [00:10:34]query_string will be loaded in cgi processing [00:10:34]execute_cgi json_proto POST (null) [00:10:34]execute_cgi path=json_proto method=POST [00:10:34]POST find Content-Length [00:10:34]Host: 172.17.45.7:8080 [00:10:34]Content-Length: 266 [00:10:34]Content-Type: application/json [00:10:34] [00:10:34]POST finish read [00:10:34]Found Content-Length = 266 [00:10:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:34]execute_script... [00:10:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:34]POST & json_proto [00:10:34]process_json_proto [00:10:34]json parsed OK: [00:10:34]protocol is kg_v1.0 [00:10:34]action value=open_shift [00:10:34]process_action open_shift [00:10:34]cmd_open_shift [00:10:34]MH_GetDate [00:10:34]Write to MH i2c: F0 00 00 C1 8C 3C [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: F0 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: F0 09 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: F0 09 00 C1 8C 00 82 2F A8 66 90 0F 3E 66 47 [00:10:34]GetLastDocTimeStamp 1722296910 [00:10:34]current date 1722298242 [00:10:34]FM_GetShiftState [00:10:34]SAM_PROTO_GetShiftState [00:10:34]wFMCommunicate request_size=4 [00:10:34]MH_SAM_APDU [00:10:34]CAPDU: 80 13 01 00 [00:10:34]Write to MH i2c: E2 08 00 C2 8C 80 13 01 00 00 00 00 00 CB [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:34]Read from MH i2c: E2 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 0E 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 0E 00 C2 8C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 D6 [00:10:34]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:10:34]wFMCommunicate OK [00:10:34]SAM_PROTO_GetShiftState done [00:10:34]FM_GetShiftState done [00:10:34]KKMCreateOpenShiftDocument [00:10:34]Load OK [00:10:34]Malloc new data [00:10:34]MH_GetDate [00:10:34]Write to MH i2c: F0 00 00 C3 8C 3E [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: F0 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: F0 09 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: F0 09 00 C3 8C 00 82 2F A8 66 90 0F 3E 66 49 [00:10:34]Malloc new data [00:10:34]KKMCreateOpenShiftDocument OK [00:10:34]KKMSetOpenShiftData OK [00:10:34]ProcessDocumentItem done err = 0, tmpTLVsize=171 [00:10:34]tlvbuf is 020A58C0 [00:10:34]KKMLoadAndSignOpenShiftData [00:10:34]SAM_PROTO_ProcessDocument [00:10:34]wFMCommunicate request_size=9 [00:10:34]MH_SAM_APDU [00:10:34]CAPDU: 80 15 01 00 04 02 00 AB 00 [00:10:34]Write to MH i2c: E2 0C 00 C4 8C 80 15 01 00 04 00 02 00 AB 00 00 00 84 [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:10:34]Read from MH i2c: E2 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 03 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 03 00 C4 8C 00 90 00 C4 [00:10:34]RAPDU: 90 00 [00:10:34]wFMCommunicate OK [00:10:34]wFMCommunicate request_size=23 [00:10:34]MH_SAM_APDU [00:10:34]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:10:34]Write to MH i2c: E2 1A 00 C5 8C 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 C6 [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:34]Read from MH i2c: E2 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 03 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 03 00 C5 8C 00 90 00 C5 [00:10:34]RAPDU: 90 00 [00:10:34]wFMCommunicate OK [00:10:34]wFMCommunicate request_size=33 [00:10:34]MH_SAM_APDU [00:10:34]CAPDU: 80 15 02 00 1C FD 03 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 [00:10:34]Write to MH i2c: E2 24 00 C6 8C 80 15 02 00 1C 00 FD 03 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 00 00 36 [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:34]Read from MH i2c: E2 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 03 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 03 00 C6 8C 00 90 00 C6 [00:10:34]RAPDU: 90 00 [00:10:34]wFMCommunicate OK [00:10:34]wFMCommunicate request_size=56 [00:10:34]MH_SAM_APDU [00:10:34]CAPDU: 80 15 02 00 33 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 [00:10:34]Write to MH i2c: E2 3B 00 C7 8C 80 15 02 00 33 00 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 00 00 88 [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:34]Read from MH i2c: E2 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 03 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 03 00 C7 8C 00 90 00 C7 [00:10:34]RAPDU: 90 00 [00:10:34]wFMCommunicate OK [00:10:34]wFMCommunicate request_size=51 [00:10:34]MH_SAM_APDU [00:10:34]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:10:34]Write to MH i2c: E2 36 00 C8 8C 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 7E [00:10:35]Write i2c OK [00:10:35]MH_I2C_Read... [00:10:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:35]Read from MH i2c: E2 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 03 00 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 03 00 C8 8C 00 90 00 C8 [00:10:35]RAPDU: 90 00 [00:10:35]wFMCommunicate OK [00:10:35]wFMCommunicate request_size=13 [00:10:35]MH_SAM_APDU [00:10:35]CAPDU: 80 15 02 00 08 F4 03 04 00 82 2F A8 66 [00:10:35]Write to MH i2c: E2 10 00 C9 8C 80 15 02 00 08 00 F4 03 04 00 82 2F A8 66 00 00 9F [00:10:35]Write i2c OK [00:10:35]MH_I2C_Read... [00:10:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:35]Read from MH i2c: E2 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 03 00 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 03 00 C9 8C 00 90 00 C9 [00:10:35]RAPDU: 90 00 [00:10:35]wFMCommunicate OK [00:10:35]wFMCommunicate request_size=25 [00:10:35]MH_SAM_APDU [00:10:35]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 [00:10:35]Write to MH i2c: E2 1C 00 CA 8C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 00 00 36 [00:10:35]Write i2c OK [00:10:35]MH_I2C_Read... [00:10:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:35]Read from MH i2c: E2 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 03 00 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 03 00 CA 8C 00 90 00 CA [00:10:35]RAPDU: 90 00 [00:10:35]wFMCommunicate OK [00:10:35]wFMCommunicate request_size=4 [00:10:35]MH_SAM_APDU [00:10:35]CAPDU: 80 15 03 00 [00:10:35]Write to MH i2c: E2 08 00 CB 8C 80 15 03 00 00 00 00 00 D8 [00:10:35]Write i2c OK [00:10:35]MH_I2C_Read... [00:10:35]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:10:35]Read from MH i2c: E2 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 38 00 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 38 00 CB 8C 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A4 D0 01 00 0E 04 04 00 B3 01 00 00 35 04 06 00 19 D9 27 15 71 C9 90 00 3D [00:10:35]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A4 D0 01 00 0E 04 04 00 B3 01 00 00 35 04 06 00 19 D9 27 15 71 C9 90 00 [00:10:35]wFMCommunicate OK [00:10:35]SAM_PROTO_ProcessDocument answer len = 51 [00:10:35]SAM_PROTO_ProcessDocument done [00:10:35]SetTLVBufToDocument [00:10:35]Processing tag 1209 (04B9) [00:10:35]Malloc new data [00:10:35]Processing tag 1041 (0411) [00:10:35]Processing tag 1040 (0410) [00:10:35]Malloc new data [00:10:35]Processing tag 1038 (040E) [00:10:35]Malloc new data [00:10:35]Processing tag 1077 (0435) [00:10:35]Malloc new data [00:10:35]SetTLVBufToDocument err=0 [00:10:35]KKMLoadAndSignOpenShiftData store KKM data [00:10:35]KKMLoadAndSignOpenShiftData err=0 [00:10:35]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Айдарали у Б. Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 Место: АЗС № 134 "Партнер Нефть" 30.07.2024 00:10 Смена: 435 РНМ: 0000000000092660 ЗНМ: 0300000044 ФД: 118948 ФМ: 0000000000874939 ФПД: 28420454314441 [00:10:35]StoreToDocumentArchive [00:10:35]shift 435 fd 118948 [00:10:35]Create dir for shift 0435 [00:10:35]save to /storage/0435/doc_00118948 [00:10:35]save last doc name /storage/0435/doc_00118948 to /storage/kkm_last_doc_name [00:10:35]save OK [00:10:35]Clear old archive folders... [00:10:35]Remove dir /storage/0434 [00:10:35]opendir ok [00:10:35]file . [00:10:35]file .. [00:10:35]file doc_00118624 [00:10:35]remove file /storage/0434/doc_00118624 [00:10:35]file doc_00118625 [00:10:35]remove file /storage/0434/doc_00118625 [00:10:35]file doc_00118626 [00:10:35]remove file /storage/0434/doc_00118626 [00:10:35]file doc_00118627 [00:10:35]remove file /storage/0434/doc_00118627 [00:10:35]file doc_00118628 [00:10:35]remove file /storage/0434/doc_00118628 [00:10:35]file doc_00118629 [00:10:35]remove file /storage/0434/doc_00118629 [00:10:35]file doc_00118630 [00:10:35]remove file /storage/0434/doc_00118630 [00:10:35]file doc_00118631 [00:10:35]remove file /storage/0434/doc_00118631 [00:10:35]file doc_00118632 [00:10:35]remove file /storage/0434/doc_00118632 [00:10:35]file doc_00118633 [00:10:35]remove file /storage/0434/doc_00118633 [00:10:35]file doc_00118634 [00:10:35]remove file /storage/0434/doc_00118634 [00:10:35]file doc_00118635 [00:10:35]remove file /storage/0434/doc_00118635 [00:10:35]file doc_00118636 [00:10:35]remove file /storage/0434/doc_00118636 [00:10:35]file doc_00118637 [00:10:35]remove file /storage/0434/doc_00118637 [00:10:35]file doc_00118638 [00:10:35]remove file /storage/0434/doc_00118638 [00:10:35]file doc_00118639 [00:10:35]remove file /storage/0434/doc_00118639 [00:10:35]file doc_00118640 [00:10:35]remove file /storage/0434/doc_00118640 [00:10:35]file doc_00118641 [00:10:35]remove file /storage/0434/doc_00118641 [00:10:35]file doc_00118642 [00:10:35]remove file /storage/0434/doc_00118642 [00:10:35]file doc_00118643 [00:10:35]remove file /storage/0434/doc_00118643 [00:10:35]file doc_00118644 [00:10:35]remove file /storage/0434/doc_00118644 [00:10:35]file doc_00118645 [00:10:35]remove file /storage/0434/doc_00118645 [00:10:35]file doc_00118646 [00:10:35]remove file /storage/0434/doc_00118646 [00:10:35]file doc_00118647 [00:10:35]remove file /storage/0434/doc_00118647 [00:10:35]file doc_00118648 [00:10:35]remove file /storage/0434/doc_00118648 [00:10:35]file doc_00118649 [00:10:35]remove file /storage/0434/doc_00118649 [00:10:35]file doc_00118650 [00:10:35]remove file /storage/0434/doc_00118650 [00:10:35]file doc_00118651 [00:10:35]remove file /storage/0434/doc_00118651 [00:10:35]file doc_00118652 [00:10:35]remove file /storage/0434/doc_00118652 [00:10:35]file doc_00118653 [00:10:35]remove file /storage/0434/doc_00118653 [00:10:35]file doc_00118654 [00:10:35]remove file /storage/0434/doc_00118654 [00:10:35]file doc_00118655 [00:10:35]remove file /storage/0434/doc_00118655 [00:10:35]file doc_00118656 [00:10:35]remove file /storage/0434/doc_00118656 [00:10:35]file doc_00118657 [00:10:35]remove file /storage/0434/doc_00118657 [00:10:35]file doc_00118658 [00:10:35]remove file /storage/0434/doc_00118658 [00:10:35]file doc_00118659 [00:10:35]remove file /storage/0434/doc_00118659 [00:10:35]file doc_00118660 [00:10:35]remove file /storage/0434/doc_00118660 [00:10:35]file doc_00118661 [00:10:35]remove file /storage/0434/doc_00118661 [00:10:35]file doc_00118662 [00:10:35]remove file /storage/0434/doc_00118662 [00:10:35]file doc_00118663 [00:10:35]remove file /storage/0434/doc_00118663 [00:10:35]file doc_00118664 [00:10:35]remove file /storage/0434/doc_00118664 [00:10:35]file doc_00118665 [00:10:35]remove file /storage/0434/doc_00118665 [00:10:35]file doc_00118666 [00:10:35]remove file /storage/0434/doc_00118666 [00:10:35]file doc_00118667 [00:10:35]remove file /storage/0434/doc_00118667 [00:10:35]file doc_00118668 [00:10:35]remove file /storage/0434/doc_00118668 [00:10:35]file doc_00118669 [00:10:35]remove file /storage/0434/doc_00118669 [00:10:35]file doc_00118670 [00:10:35]remove file /storage/0434/doc_00118670 [00:10:35]file doc_00118671 [00:10:35]remove file /storage/0434/doc_00118671 [00:10:35]file doc_00118672 [00:10:35]remove file /storage/0434/doc_00118672 [00:10:35]file doc_00118673 [00:10:35]remove file /storage/0434/doc_00118673 [00:10:35]file doc_00118674 [00:10:35]remove file /storage/0434/doc_00118674 [00:10:35]file doc_00118675 [00:10:35]remove file /storage/0434/doc_00118675 [00:10:35]file doc_00118676 [00:10:35]remove file /storage/0434/doc_00118676 [00:10:35]file doc_00118677 [00:10:35]remove file /storage/0434/doc_00118677 [00:10:35]file doc_00118678 [00:10:35]remove file /storage/0434/doc_00118678 [00:10:35]file doc_00118679 [00:10:35]remove file /storage/0434/doc_00118679 [00:10:35]file doc_00118680 [00:10:35]remove file /storage/0434/doc_00118680 [00:10:35]file doc_00118681 [00:10:35]remove file /storage/0434/doc_00118681 [00:10:35]file doc_00118682 [00:10:35]remove file /storage/0434/doc_00118682 [00:10:35]file doc_00118683 [00:10:35]remove file /storage/0434/doc_00118683 [00:10:35]file doc_00118684 [00:10:35]remove file /storage/0434/doc_00118684 [00:10:35]file doc_00118685 [00:10:35]remove file /storage/0434/doc_00118685 [00:10:35]file doc_00118686 [00:10:35]remove file /storage/0434/doc_00118686 [00:10:35]file doc_00118687 [00:10:35]remove file /storage/0434/doc_00118687 [00:10:35]file doc_00118688 [00:10:35]remove file /storage/0434/doc_00118688 [00:10:35]file doc_00118689 [00:10:35]remove file /storage/0434/doc_00118689 [00:10:35]file doc_00118690 [00:10:35]remove file /storage/0434/doc_00118690 [00:10:35]file doc_00118691 [00:10:35]remove file /storage/0434/doc_00118691 [00:10:35]file doc_00118692 [00:10:35]remove file /storage/0434/doc_00118692 [00:10:35]file doc_00118693 [00:10:35]remove file /storage/0434/doc_00118693 [00:10:35]file doc_00118694 [00:10:35]remove file /storage/0434/doc_00118694 [00:10:35]file doc_00118695 [00:10:35]remove file /storage/0434/doc_00118695 [00:10:35]file doc_00118696 [00:10:35]remove file /storage/0434/doc_00118696 [00:10:35]file doc_00118697 [00:10:35]remove file /storage/0434/doc_00118697 [00:10:35]file doc_00118698 [00:10:35]remove file /storage/0434/doc_00118698 [00:10:35]file doc_00118699 [00:10:35]remove file /storage/0434/doc_00118699 [00:10:35]file doc_00118700 [00:10:35]remove file /storage/0434/doc_00118700 [00:10:35]file doc_00118701 [00:10:35]remove file /storage/0434/doc_00118701 [00:10:35]file doc_00118702 [00:10:35]remove file /storage/0434/doc_00118702 [00:10:35]file doc_00118703 [00:10:35]remove file /storage/0434/doc_00118703 [00:10:35]file doc_00118704 [00:10:35]remove file /storage/0434/doc_00118704 [00:10:35]file doc_00118705 [00:10:35]remove file /storage/0434/doc_00118705 [00:10:35]file doc_00118706 [00:10:35]remove file /storage/0434/doc_00118706 [00:10:35]file doc_00118707 [00:10:35]remove file /storage/0434/doc_00118707 [00:10:35]file doc_00118708 [00:10:35]remove file /storage/0434/doc_00118708 [00:10:35]file doc_00118709 [00:10:35]remove file /storage/0434/doc_00118709 [00:10:35]file doc_00118710 [00:10:35]remove file /storage/0434/doc_00118710 [00:10:35]file doc_00118711 [00:10:35]remove file /storage/0434/doc_00118711 [00:10:35]file doc_00118712 [00:10:35]remove file /storage/0434/doc_00118712 [00:10:35]file doc_00118713 [00:10:35]remove file /storage/0434/doc_00118713 [00:10:35]file doc_00118714 [00:10:35]remove file /storage/0434/doc_00118714 [00:10:35]file doc_00118715 [00:10:35]remove file /storage/0434/doc_00118715 [00:10:35]file doc_00118716 [00:10:35]remove file /storage/0434/doc_00118716 [00:10:35]file doc_00118717 [00:10:35]remove file /storage/0434/doc_00118717 [00:10:35]file doc_00118718 [00:10:35]remove file /storage/0434/doc_00118718 [00:10:35]file doc_00118719 [00:10:35]remove file /storage/0434/doc_00118719 [00:10:35]file doc_00118720 [00:10:35]remove file /storage/0434/doc_00118720 [00:10:35]file doc_00118721 [00:10:35]remove file /storage/0434/doc_00118721 [00:10:35]file doc_00118722 [00:10:35]remove file /storage/0434/doc_00118722 [00:10:35]file doc_00118723 [00:10:35]remove file /storage/0434/doc_00118723 [00:10:35]file doc_00118724 [00:10:35]remove file /storage/0434/doc_00118724 [00:10:36]file doc_00118725 [00:10:36]remove file /storage/0434/doc_00118725 [00:10:36]file doc_00118726 [00:10:36]remove file /storage/0434/doc_00118726 [00:10:36]file doc_00118727 [00:10:36]remove file /storage/0434/doc_00118727 [00:10:36]file doc_00118728 [00:10:36]remove file /storage/0434/doc_00118728 [00:10:36]file doc_00118729 [00:10:36]remove file /storage/0434/doc_00118729 [00:10:36]file doc_00118730 [00:10:36]remove file /storage/0434/doc_00118730 [00:10:36]file doc_00118731 [00:10:36]remove file /storage/0434/doc_00118731 [00:10:36]file doc_00118732 [00:10:36]remove file /storage/0434/doc_00118732 [00:10:36]file doc_00118733 [00:10:36]remove file /storage/0434/doc_00118733 [00:10:36]file doc_00118734 [00:10:36]remove file /storage/0434/doc_00118734 [00:10:36]file doc_00118735 [00:10:36]remove file /storage/0434/doc_00118735 [00:10:36]file doc_00118736 [00:10:36]remove file /storage/0434/doc_00118736 [00:10:36]file doc_00118737 [00:10:36]remove file /storage/0434/doc_00118737 [00:10:36]file doc_00118738 [00:10:36]remove file /storage/0434/doc_00118738 [00:10:36]file doc_00118739 [00:10:36]remove file /storage/0434/doc_00118739 [00:10:36]file doc_00118740 [00:10:36]remove file /storage/0434/doc_00118740 [00:10:36]file doc_00118741 [00:10:36]remove file /storage/0434/doc_00118741 [00:10:36]file doc_00118742 [00:10:36]remove file /storage/0434/doc_00118742 [00:10:36]file doc_00118743 [00:10:36]remove file /storage/0434/doc_00118743 [00:10:36]file doc_00118744 [00:10:36]remove file /storage/0434/doc_00118744 [00:10:36]file doc_00118745 [00:10:36]remove file /storage/0434/doc_00118745 [00:10:36]file doc_00118746 [00:10:36]remove file /storage/0434/doc_00118746 [00:10:36]file doc_00118747 [00:10:36]remove file /storage/0434/doc_00118747 [00:10:36]file doc_00118748 [00:10:36]remove file /storage/0434/doc_00118748 [00:10:36]file doc_00118749 [00:10:36]remove file /storage/0434/doc_00118749 [00:10:36]file doc_00118750 [00:10:36]remove file /storage/0434/doc_00118750 [00:10:36]file doc_00118751 [00:10:36]remove file /storage/0434/doc_00118751 [00:10:36]file doc_00118752 [00:10:36]remove file /storage/0434/doc_00118752 [00:10:36]file doc_00118753 [00:10:36]remove file /storage/0434/doc_00118753 [00:10:36]file doc_00118754 [00:10:36]remove file /storage/0434/doc_00118754 [00:10:36]file doc_00118755 [00:10:36]remove file /storage/0434/doc_00118755 [00:10:36]file doc_00118756 [00:10:36]remove file /storage/0434/doc_00118756 [00:10:36]file doc_00118757 [00:10:36]remove file /storage/0434/doc_00118757 [00:10:36]file doc_00118758 [00:10:36]remove file /storage/0434/doc_00118758 [00:10:36]file doc_00118759 [00:10:36]remove file /storage/0434/doc_00118759 [00:10:36]file doc_00118760 [00:10:36]remove file /storage/0434/doc_00118760 [00:10:36]file doc_00118761 [00:10:36]remove file /storage/0434/doc_00118761 [00:10:36]file doc_00118762 [00:10:36]remove file /storage/0434/doc_00118762 [00:10:36]file doc_00118763 [00:10:36]remove file /storage/0434/doc_00118763 [00:10:36]file doc_00118764 [00:10:36]remove file /storage/0434/doc_00118764 [00:10:36]file doc_00118765 [00:10:36]remove file /storage/0434/doc_00118765 [00:10:36]file doc_00118766 [00:10:36]remove file /storage/0434/doc_00118766 [00:10:36]file doc_00118767 [00:10:36]remove file /storage/0434/doc_00118767 [00:10:36]file doc_00118768 [00:10:36]remove file /storage/0434/doc_00118768 [00:10:36]file doc_00118769 [00:10:36]remove file /storage/0434/doc_00118769 [00:10:36]file doc_00118770 [00:10:36]remove file /storage/0434/doc_00118770 [00:10:36]file doc_00118771 [00:10:36]remove file /storage/0434/doc_00118771 [00:10:36]file doc_00118772 [00:10:36]remove file /storage/0434/doc_00118772 [00:10:36]file doc_00118773 [00:10:36]remove file /storage/0434/doc_00118773 [00:10:36]file doc_00118774 [00:10:36]remove file /storage/0434/doc_00118774 [00:10:36]file doc_00118775 [00:10:36]remove file /storage/0434/doc_00118775 [00:10:36]file doc_00118776 [00:10:36]remove file /storage/0434/doc_00118776 [00:10:36]file doc_00118777 [00:10:36]remove file /storage/0434/doc_00118777 [00:10:36]file doc_00118778 [00:10:36]remove file /storage/0434/doc_00118778 [00:10:36]file doc_00118779 [00:10:36]remove file /storage/0434/doc_00118779 [00:10:36]file doc_00118780 [00:10:36]remove file /storage/0434/doc_00118780 [00:10:36]file doc_00118781 [00:10:36]remove file /storage/0434/doc_00118781 [00:10:36]file doc_00118782 [00:10:36]remove file /storage/0434/doc_00118782 [00:10:36]file doc_00118783 [00:10:36]remove file /storage/0434/doc_00118783 [00:10:36]file doc_00118784 [00:10:36]remove file /storage/0434/doc_00118784 [00:10:36]file doc_00118785 [00:10:36]remove file /storage/0434/doc_00118785 [00:10:36]file doc_00118786 [00:10:36]remove file /storage/0434/doc_00118786 [00:10:36]file doc_00118787 [00:10:36]remove file /storage/0434/doc_00118787 [00:10:36]file doc_00118788 [00:10:36]remove file /storage/0434/doc_00118788 [00:10:36]file doc_00118789 [00:10:36]remove file /storage/0434/doc_00118789 [00:10:36]file doc_00118790 [00:10:36]remove file /storage/0434/doc_00118790 [00:10:36]file doc_00118791 [00:10:36]remove file /storage/0434/doc_00118791 [00:10:36]file doc_00118792 [00:10:36]remove file /storage/0434/doc_00118792 [00:10:36]file doc_00118793 [00:10:36]remove file /storage/0434/doc_00118793 [00:10:36]file doc_00118794 [00:10:36]remove file /storage/0434/doc_00118794 [00:10:36]file doc_00118795 [00:10:36]remove file /storage/0434/doc_00118795 [00:10:36]file doc_00118796 [00:10:36]remove file /storage/0434/doc_00118796 [00:10:36]file doc_00118797 [00:10:36]remove file /storage/0434/doc_00118797 [00:10:36]file doc_00118798 [00:10:36]remove file /storage/0434/doc_00118798 [00:10:36]file doc_00118799 [00:10:36]remove file /storage/0434/doc_00118799 [00:10:36]file doc_00118800 [00:10:36]remove file /storage/0434/doc_00118800 [00:10:36]file doc_00118801 [00:10:36]remove file /storage/0434/doc_00118801 [00:10:36]file doc_00118802 [00:10:36]remove file /storage/0434/doc_00118802 [00:10:36]file doc_00118803 [00:10:36]remove file /storage/0434/doc_00118803 [00:10:36]file doc_00118804 [00:10:36]remove file /storage/0434/doc_00118804 [00:10:36]file doc_00118805 [00:10:36]remove file /storage/0434/doc_00118805 [00:10:36]file doc_00118806 [00:10:36]remove file /storage/0434/doc_00118806 [00:10:36]file doc_00118807 [00:10:36]remove file /storage/0434/doc_00118807 [00:10:36]file doc_00118808 [00:10:36]remove file /storage/0434/doc_00118808 [00:10:36]file doc_00118809 [00:10:36]remove file /storage/0434/doc_00118809 [00:10:36]file doc_00118810 [00:10:36]remove file /storage/0434/doc_00118810 [00:10:36]file doc_00118811 [00:10:36]remove file /storage/0434/doc_00118811 [00:10:36]file doc_00118812 [00:10:36]remove file /storage/0434/doc_00118812 [00:10:36]file doc_00118813 [00:10:36]remove file /storage/0434/doc_00118813 [00:10:36]file doc_00118814 [00:10:36]remove file /storage/0434/doc_00118814 [00:10:36]file doc_00118815 [00:10:36]remove file /storage/0434/doc_00118815 [00:10:36]file doc_00118816 [00:10:36]remove file /storage/0434/doc_00118816 [00:10:36]file doc_00118817 [00:10:36]remove file /storage/0434/doc_00118817 [00:10:36]file doc_00118818 [00:10:36]remove file /storage/0434/doc_00118818 [00:10:36]file doc_00118819 [00:10:36]remove file /storage/0434/doc_00118819 [00:10:36]file doc_00118820 [00:10:36]remove file /storage/0434/doc_00118820 [00:10:36]file doc_00118821 [00:10:36]remove file /storage/0434/doc_00118821 [00:10:36]file doc_00118822 [00:10:36]remove file /storage/0434/doc_00118822 [00:10:36]file doc_00118823 [00:10:36]remove file /storage/0434/doc_00118823 [00:10:36]file doc_00118824 [00:10:36]remove file /storage/0434/doc_00118824 [00:10:36]file doc_00118825 [00:10:36]remove file /storage/0434/doc_00118825 [00:10:36]file doc_00118826 [00:10:36]remove file /storage/0434/doc_00118826 [00:10:36]file doc_00118827 [00:10:36]remove file /storage/0434/doc_00118827 [00:10:36]file doc_00118828 [00:10:36]remove file /storage/0434/doc_00118828 [00:10:36]file doc_00118829 [00:10:36]remove file /storage/0434/doc_00118829 [00:10:36]file doc_00118830 [00:10:36]remove file /storage/0434/doc_00118830 [00:10:36]file doc_00118831 [00:10:36]remove file /storage/0434/doc_00118831 [00:10:36]file doc_00118832 [00:10:36]remove file /storage/0434/doc_00118832 [00:10:36]file doc_00118833 [00:10:36]remove file /storage/0434/doc_00118833 [00:10:36]file doc_00118834 [00:10:36]remove file /storage/0434/doc_00118834 [00:10:36]file doc_00118835 [00:10:36]remove file /storage/0434/doc_00118835 [00:10:36]file doc_00118836 [00:10:36]remove file /storage/0434/doc_00118836 [00:10:36]file doc_00118837 [00:10:36]remove file /storage/0434/doc_00118837 [00:10:36]file doc_00118838 [00:10:36]remove file /storage/0434/doc_00118838 [00:10:36]file doc_00118839 [00:10:36]remove file /storage/0434/doc_00118839 [00:10:36]file doc_00118840 [00:10:36]remove file /storage/0434/doc_00118840 [00:10:36]file doc_00118841 [00:10:36]remove file /storage/0434/doc_00118841 [00:10:36]file doc_00118842 [00:10:36]remove file /storage/0434/doc_00118842 [00:10:36]file doc_00118843 [00:10:36]remove file /storage/0434/doc_00118843 [00:10:36]file doc_00118844 [00:10:36]remove file /storage/0434/doc_00118844 [00:10:36]file doc_00118845 [00:10:36]remove file /storage/0434/doc_00118845 [00:10:36]file doc_00118846 [00:10:36]remove file /storage/0434/doc_00118846 [00:10:36]file doc_00118847 [00:10:36]remove file /storage/0434/doc_00118847 [00:10:36]file doc_00118848 [00:10:36]remove file /storage/0434/doc_00118848 [00:10:36]file doc_00118849 [00:10:36]remove file /storage/0434/doc_00118849 [00:10:36]file doc_00118850 [00:10:36]remove file /storage/0434/doc_00118850 [00:10:36]file doc_00118851 [00:10:36]remove file /storage/0434/doc_00118851 [00:10:36]file doc_00118852 [00:10:36]remove file /storage/0434/doc_00118852 [00:10:36]file doc_00118853 [00:10:36]remove file /storage/0434/doc_00118853 [00:10:36]file doc_00118854 [00:10:36]remove file /storage/0434/doc_00118854 [00:10:36]file doc_00118855 [00:10:36]remove file /storage/0434/doc_00118855 [00:10:36]file doc_00118856 [00:10:36]remove file /storage/0434/doc_00118856 [00:10:36]file doc_00118857 [00:10:36]remove file /storage/0434/doc_00118857 [00:10:36]file doc_00118858 [00:10:36]remove file /storage/0434/doc_00118858 [00:10:36]file doc_00118859 [00:10:36]remove file /storage/0434/doc_00118859 [00:10:36]file doc_00118860 [00:10:36]remove file /storage/0434/doc_00118860 [00:10:36]file doc_00118861 [00:10:36]remove file /storage/0434/doc_00118861 [00:10:36]file doc_00118862 [00:10:36]remove file /storage/0434/doc_00118862 [00:10:36]file doc_00118863 [00:10:36]remove file /storage/0434/doc_00118863 [00:10:36]file doc_00118864 [00:10:36]remove file /storage/0434/doc_00118864 [00:10:36]file doc_00118865 [00:10:36]remove file /storage/0434/doc_00118865 [00:10:36]file doc_00118866 [00:10:36]remove file /storage/0434/doc_00118866 [00:10:36]file doc_00118867 [00:10:36]remove file /storage/0434/doc_00118867 [00:10:36]file doc_00118868 [00:10:36]remove file /storage/0434/doc_00118868 [00:10:36]file doc_00118869 [00:10:36]remove file /storage/0434/doc_00118869 [00:10:36]file doc_00118870 [00:10:36]remove file /storage/0434/doc_00118870 [00:10:36]file doc_00118871 [00:10:36]remove file /storage/0434/doc_00118871 [00:10:36]file doc_00118872 [00:10:36]remove file /storage/0434/doc_00118872 [00:10:36]file doc_00118873 [00:10:36]remove file /storage/0434/doc_00118873 [00:10:36]file doc_00118874 [00:10:36]remove file /storage/0434/doc_00118874 [00:10:36]file doc_00118875 [00:10:36]remove file /storage/0434/doc_00118875 [00:10:36]file doc_00118876 [00:10:36]remove file /storage/0434/doc_00118876 [00:10:36]file doc_00118877 [00:10:36]remove file /storage/0434/doc_00118877 [00:10:36]file doc_00118878 [00:10:36]remove file /storage/0434/doc_00118878 [00:10:36]file doc_00118879 [00:10:36]remove file /storage/0434/doc_00118879 [00:10:36]file doc_00118880 [00:10:36]remove file /storage/0434/doc_00118880 [00:10:36]file doc_00118881 [00:10:36]remove file /storage/0434/doc_00118881 [00:10:36]file doc_00118882 [00:10:36]remove file /storage/0434/doc_00118882 [00:10:36]file doc_00118883 [00:10:36]remove file /storage/0434/doc_00118883 [00:10:36]file doc_00118884 [00:10:36]remove file /storage/0434/doc_00118884 [00:10:36]file doc_00118885 [00:10:36]remove file /storage/0434/doc_00118885 [00:10:36]file doc_00118886 [00:10:36]remove file /storage/0434/doc_00118886 [00:10:36]file doc_00118887 [00:10:36]remove file /storage/0434/doc_00118887 [00:10:36]file doc_00118888 [00:10:36]remove file /storage/0434/doc_00118888 [00:10:36]file doc_00118889 [00:10:36]remove file /storage/0434/doc_00118889 [00:10:36]file doc_00118890 [00:10:36]remove file /storage/0434/doc_00118890 [00:10:36]file doc_00118891 [00:10:36]remove file /storage/0434/doc_00118891 [00:10:36]file doc_00118892 [00:10:36]remove file /storage/0434/doc_00118892 [00:10:36]file doc_00118893 [00:10:36]remove file /storage/0434/doc_00118893 [00:10:36]file doc_00118894 [00:10:36]remove file /storage/0434/doc_00118894 [00:10:36]file doc_00118895 [00:10:36]remove file /storage/0434/doc_00118895 [00:10:36]file doc_00118896 [00:10:36]remove file /storage/0434/doc_00118896 [00:10:36]file doc_00118897 [00:10:36]remove file /storage/0434/doc_00118897 [00:10:36]file doc_00118898 [00:10:36]remove file /storage/0434/doc_00118898 [00:10:36]file doc_00118899 [00:10:36]remove file /storage/0434/doc_00118899 [00:10:36]file doc_00118900 [00:10:36]remove file /storage/0434/doc_00118900 [00:10:36]file doc_00118901 [00:10:36]remove file /storage/0434/doc_00118901 [00:10:36]file doc_00118902 [00:10:36]remove file /storage/0434/doc_00118902 [00:10:36]file doc_00118903 [00:10:36]remove file /storage/0434/doc_00118903 [00:10:36]file doc_00118904 [00:10:36]remove file /storage/0434/doc_00118904 [00:10:36]file doc_00118905 [00:10:36]remove file /storage/0434/doc_00118905 [00:10:36]file doc_00118906 [00:10:36]remove file /storage/0434/doc_00118906 [00:10:36]file doc_00118907 [00:10:36]remove file /storage/0434/doc_00118907 [00:10:36]file doc_00118908 [00:10:36]remove file /storage/0434/doc_00118908 [00:10:36]file doc_00118909 [00:10:36]remove file /storage/0434/doc_00118909 [00:10:36]file doc_00118910 [00:10:36]remove file /storage/0434/doc_00118910 [00:10:36]file doc_00118911 [00:10:36]remove file /storage/0434/doc_00118911 [00:10:36]file doc_00118912 [00:10:36]remove file /storage/0434/doc_00118912 [00:10:36]file doc_00118913 [00:10:36]remove file /storage/0434/doc_00118913 [00:10:36]file doc_00118914 [00:10:36]remove file /storage/0434/doc_00118914 [00:10:36]file doc_00118915 [00:10:36]remove file /storage/0434/doc_00118915 [00:10:36]file doc_00118916 [00:10:36]remove file /storage/0434/doc_00118916 [00:10:36]file doc_00118917 [00:10:36]remove file /storage/0434/doc_00118917 [00:10:36]file doc_00118918 [00:10:36]remove file /storage/0434/doc_00118918 [00:10:36]file doc_00118919 [00:10:37]remove file /storage/0434/doc_00118919 [00:10:37]file doc_00118920 [00:10:37]remove file /storage/0434/doc_00118920 [00:10:37]file doc_00118921 [00:10:37]remove file /storage/0434/doc_00118921 [00:10:37]file doc_00118922 [00:10:37]remove file /storage/0434/doc_00118922 [00:10:37]file doc_00118923 [00:10:37]remove file /storage/0434/doc_00118923 [00:10:37]file doc_00118924 [00:10:37]remove file /storage/0434/doc_00118924 [00:10:37]file doc_00118925 [00:10:37]remove file /storage/0434/doc_00118925 [00:10:37]file doc_00118926 [00:10:37]remove file /storage/0434/doc_00118926 [00:10:37]file doc_00118927 [00:10:37]remove file /storage/0434/doc_00118927 [00:10:37]file doc_00118928 [00:10:37]remove file /storage/0434/doc_00118928 [00:10:37]file doc_00118929 [00:10:37]remove file /storage/0434/doc_00118929 [00:10:37]file doc_00118930 [00:10:37]remove file /storage/0434/doc_00118930 [00:10:37]file doc_00118931 [00:10:37]remove file /storage/0434/doc_00118931 [00:10:37]file doc_00118932 [00:10:37]remove file /storage/0434/doc_00118932 [00:10:37]file doc_00118933 [00:10:37]remove file /storage/0434/doc_00118933 [00:10:37]file doc_00118934 [00:10:37]remove file /storage/0434/doc_00118934 [00:10:37]file doc_00118935 [00:10:37]remove file /storage/0434/doc_00118935 [00:10:37]file doc_00118936 [00:10:37]remove file /storage/0434/doc_00118936 [00:10:37]file doc_00118937 [00:10:37]remove file /storage/0434/doc_00118937 [00:10:37]file doc_00118938 [00:10:37]remove file /storage/0434/doc_00118938 [00:10:37]file doc_00118939 [00:10:37]remove file /storage/0434/doc_00118939 [00:10:37]file doc_00118940 [00:10:37]remove file /storage/0434/doc_00118940 [00:10:37]file doc_00118941 [00:10:37]remove file /storage/0434/doc_00118941 [00:10:37]file doc_00118942 [00:10:37]remove file /storage/0434/doc_00118942 [00:10:37]file doc_00118943 [00:10:37]remove file /storage/0434/doc_00118943 [00:10:37]file doc_00118944 [00:10:37]remove file /storage/0434/doc_00118944 [00:10:37]file doc_00118945 [00:10:37]remove file /storage/0434/doc_00118945 [00:10:37]file doc_00118946 [00:10:37]remove file /storage/0434/doc_00118946 [00:10:37]file doc_00118947 [00:10:37]remove file /storage/0434/doc_00118947 [00:10:37]remove dir /storage/0434 [00:10:37]ProcessDocumentItem done err = 0, tmpTLVsize=222 [00:10:37]tlvbuf is 01E69180 [00:10:37]SAM_PROTO_ClearQueue [00:10:37]wFMCommunicate request_size=4 [00:10:37]MH_SAM_APDU [00:10:37]CAPDU: 80 09 00 00 [00:10:37]Write to MH i2c: E2 08 00 CC 8C 80 09 00 00 00 00 00 00 CA [00:10:37]Write i2c OK [00:10:37]MH_I2C_Read... [00:10:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:10:37]Read from MH i2c: E2 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 03 00 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 03 00 CC 8C 00 90 00 CC [00:10:37]RAPDU: 90 00 [00:10:37]wFMCommunicate OK [00:10:37]SAM_PROTO_ClearQueue done [00:10:37]KKMCreateOFDPacket [00:10:37]OFDProtocolAddRootSTLVToBuf [00:10:37]FM_MakeSignedData [00:10:37]FM_MakeSignedData [00:10:37]SAM_PROTO_SignData [00:10:37]wFMCommunicate request_size=4 [00:10:37]MH_SAM_APDU [00:10:37]CAPDU: 80 0D 01 02 [00:10:37]Write to MH i2c: E2 08 00 CD 8C 80 0D 01 02 00 00 00 00 D2 [00:10:37]Write i2c OK [00:10:37]MH_I2C_Read... [00:10:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:10:37]Read from MH i2c: E2 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 03 00 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 03 00 CD 8C 00 90 00 CD [00:10:37]RAPDU: 90 00 [00:10:37]wFMCommunicate OK [00:10:37]wFMCommunicate request_size=231 [00:10:37]MH_SAM_APDU [00:10:37]CAPDU: 80 0D 02 02 E2 02 00 DE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 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 82 2F A8 66 0E 04 04 00 B3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A4 D0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 19 D9 27 15 71 C9 [00:10:37]Write to MH i2c: E2 EA 00 CE 8C 80 0D 02 02 E2 00 02 00 DE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 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 82 2F A8 66 0E 04 04 00 B3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A4 D0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 19 D9 27 15 71 C9 00 00 0E [00:10:37]Write i2c OK [00:10:37]MH_I2C_Read... [00:10:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:37]Read from MH i2c: E2 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 03 00 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 03 00 CE 8C 00 90 00 CE [00:10:37]RAPDU: 90 00 [00:10:37]wFMCommunicate OK [00:10:37]wFMCommunicate request_size=4 [00:10:37]MH_SAM_APDU [00:10:37]CAPDU: 80 0D 03 02 [00:10:37]Write to MH i2c: E2 08 00 CF 8C 80 0D 03 02 00 00 00 00 D6 [00:10:37]Write i2c OK [00:10:37]MH_I2C_Read... [00:10:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:10:37]Read from MH i2c: E2 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 0B 00 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 0B 00 CF 8C 00 D4 95 EE 29 DF 27 14 EF 90 00 60 [00:10:37]RAPDU: D4 95 EE 29 DF 27 14 EF 90 00 [00:10:37]wFMCommunicate OK [00:10:37]SAM_PROTO_SignData done [00:10:37]FM_MakeSignedData done [00:10:37]CreateOFDProtocolMessage [00:10:37]wFMCommunicate request_size=4 [00:10:37]MH_SAM_APDU [00:10:37]CAPDU: 80 11 00 00 [00:10:37]Write to MH i2c: E2 08 00 D0 8C 80 11 00 00 00 00 00 00 D6 [00:10:37]Write i2c OK [00:10:37]MH_I2C_Read... [00:10:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:37]Read from MH i2c: E2 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 17 00 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 17 00 D0 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 31 [00:10:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:10:37]wFMCommunicate OK [00:10:37]CreateOFDProtocolMessage done [00:10:37]OFDSenderStorePacket 118948 [00:10:37]StoreOFDPacket docnum=118948 [00:10:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 F2 00 00 00 5D D1 EA 00 CE 5D 5A 02 01 00 02 00 DE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 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 82 2F A8 66 0E 04 04 00 B3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A4 D0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 19 D9 27 15 71 C9 D4 95 EE 29 DF 27 14 EF [00:10:37]CheckFolder [00:10:37]dirname=/storage/ofd_packets [00:10:37]CheckFolder done [00:10:37]ProducePacketName [00:10:37]name=ofd_packets/00118948 [00:10:37]NVStorageSaveData ofd_packets/00118948 [00:10:37]File name is /storage/ofd_packets/00118948 [00:10:37]Write 272 bytes [00:10:37]NVStorageSaveData done [00:10:37]OFDSenderStorePacket done [00:10:37]KKMCreateOFDPacket done [00:10:37]NVStorageSaveData kkm_last_timestamp [00:10:37]File name is /storage/kkm_last_timestamp [00:10:37]Write 4 bytes [00:10:37]NVStorageSaveData done [00:10:37]ExternCall_PrintAddStr [00:10:37]wPrintStart [00:10:37]Write to MH i2c: 01 00 00 D1 8C 5D [00:10:37]OFD Sender: Processing packet 118948 [packets to send 86, broken 85] [00:10:37]ProducePacketName [00:10:37]name=ofd_packets/00118948 [00:10:37]OFD Sender: To server: pG, [00:10:37]CommunicateWithHost lk.salyk.kg:30040 [00:10:37]ConnectInit lk.salyk.kg [00:10:37]Write i2c OK [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: 01 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: 01 07 00 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: 01 07 00 D1 8C 00 00 00 00 00 FF 0F 72 [00:10:37]RasterBufferAndPrint [00:10:37]line Отчет об открытии смены [00:10:37]line ФФД: 1.0 [00:10:37]line ИНН: 02508201610067 [00:10:37]line Кассир: Айдарали у Б. [00:10:37]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:10:37]line Место: АЗС № 134 "Партнер Нефть" [00:10:37]line 30.07.2024 00:10 [00:10:37]line Смена: 435 [00:10:37]line РНМ: 0000000000092660 [00:10:37]line ЗНМ: 0300000044 [00:10:37]line ФД: 118948 [00:10:37]line ФМ: 0000000000874939 [00:10:37]line ФПД: 28420454314441 [00:10:37]written 0, free lines is 4095 [00:10:37]Connected sock=10 [00:10:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 F2 00 00 00 5D D1 EA 00 CE 5D 5A 02 01 00 02 00 DE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 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 82 2F A8 66 0E 04 04 00 B3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A4 D0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 19 D9 27 15 71 C9 D4 95 EE 29 DF 27 14 EF [00:10:38]Write to MH i2c: 01 00 00 E2 8C 6E [00:10:38]Write i2c OK [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: 01 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: 01 07 00 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: 01 07 00 E2 8C 00 00 00 00 00 68 0E EB [00:10:38]RasterBufferAndPrint [00:10:38]line [00:10:38]line [00:10:38]line [00:10:38]line [00:10:38]line [00:10:38]written 0, free lines is 3696 [00:10:38]MH_Cut [00:10:38]Write to MH i2c: D1 01 00 E9 8C 01 47 [00:10:38]Write i2c OK [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: D1 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: D1 01 00 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: D1 01 00 E9 8C 00 46 [00:10:38]Write to MH i2c: 01 00 00 EA 8C 76 [00:10:38]Write i2c OK [00:10:38]MH_I2C_Read... [00:10:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AC E9 47 00 1E 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 34 39 33 39 10 04 04 00 A4 D0 01 00 F4 03 04 00 10 DD A7 66 B6 04 01 00 00 9D 31 D4 F2 96 87 AB CC [00:10:38]CommunicateWithHost err = 0 [00:10:38]CheckOFDResponse [00:10:38]1017 (14) - 77093643461234 [00:10:38]1041 (16) - 0000000000874939 [00:10:38]1040 (4) - 118948 [00:10:38]1012 (4) - 29.07.2024 18:18 [00:10:38]1206 (1) - 0 [00:10:38]OFD Sender: Remove packet 118948 [00:10:38]ProducePacketName [00:10:38]name=ofd_packets/00118948 [00:10:38]NVStorageDeleteData [00:10:38]*** Cut start [00:10:38]*** Partial cut [00:10:38]*** CUTSNS_PIN = 1 [00:10:38]*** CUTSNS_PIN = 0 [00:10:38]OFD Sender: No OFD packet to send [00:10:38]*** Brake cut motor [00:10:39]Read from MH i2c: 01 [00:10:39]MH_I2C_Read... [00:10:39]*** Stop cut motor [00:10:39]*** Cut end [00:10:39]Read from MH i2c: 01 07 00 [00:10:39]MH_I2C_Read... [00:10:39]Read from MH i2c: 01 07 00 EA 8C 00 00 00 00 00 FF 0F 8B [00:10:39]process_action open_shift done [00:10:39]requested_data is exist [00:10:39]produce_requested_data [00:10:39]requested_item fd.num is exist - process it [00:10:39]SAM_PROTO_GetFieldsCounters [00:10:39]wFMCommunicate request_size=4 [00:10:39]MH_SAM_APDU [00:10:39]CAPDU: 80 13 00 00 [00:10:39]Write to MH i2c: E2 08 00 EB 8C 80 13 00 00 00 00 00 00 F3 [00:10:39]Write i2c OK [00:10:39]MH_I2C_Read... [00:10:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:39]Read from MH i2c: E2 [00:10:39]MH_I2C_Read... [00:10:39]Read from MH i2c: E2 62 00 [00:10:39]MH_I2C_Read... [00:10:39]Read from MH i2c: E2 62 00 EB 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A4 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [00:10:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A4 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:10:39]wFMCommunicate OK [00:10:39]SAM_PROTO_GetFieldsCounters done [00:10:39]requested_item shift.num is exist - process it [00:10:39]requested_item shift.opened is exist - process it [00:10:39]req_shift_opened [00:10:39]FM_GetShiftState [00:10:39]SAM_PROTO_GetShiftState [00:10:39]wFMCommunicate request_size=4 [00:10:39]MH_SAM_APDU [00:10:39]CAPDU: 80 13 01 00 [00:10:39]Write to MH i2c: E2 08 00 EC 8C 80 13 01 00 00 00 00 00 F5 [00:10:39]Write i2c OK [00:10:39]MH_I2C_Read... [00:10:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:39]Read from MH i2c: E2 [00:10:39]MH_I2C_Read... [00:10:39]Read from MH i2c: E2 0E 00 [00:10:39]MH_I2C_Read... [00:10:39]Read from MH i2c: E2 0E 00 EC 8C 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 C0 [00:10:39]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [00:10:39]wFMCommunicate OK [00:10:39]SAM_PROTO_GetShiftState done [00:10:39]FM_GetShiftState done [00:10:39]req_shift_opened done [00:10:39]requested_item shift.open_date is exist - process it [00:10:39]req_shift_open_date [00:10:39]req_shift_open_date done [00:10:39]produce_requested_data done [00:10:39]produce_requested_data return {"fd.num":118948,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [00:10:39]process_action_free open_shift [00:10:39]json_value_free [00:10:39]json_value_free done [00:10:39]process_json_proto returns [00:10:39]Send response to host [00:10:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":118948,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [00:10:39]free response buf [00:10:39]execute_script done [00:10:39]execute_script returns [00:10:39]free content buf [00:10:39]Sock 9.Close socket [00:10:39]Sock 9.Thread stoped [00:10:39]accept exits with 7 [00:10:39]New connection [00:10:39]New thread 3067239780 created [00:10:39]Thread 3067383140 joined [00:10:39]Waiting for new connection... [00:10:39] Sock 7.Parse request [00:10:39]Sock 7.Check first char [00:10:39]Sock 7.First char is OK [00:10:39]request: POST /json_proto HTTP/1.0 [00:10:39]Method: POST [00:10:39]URL: /json_proto [00:10:39]Method is POST - this is cgi request [00:10:39]url: /json_proto [00:10:39]query_string will be loaded in cgi processing [00:10:39]execute_cgi json_proto POST (null) [00:10:39]execute_cgi path=json_proto method=POST [00:10:39]POST find Content-Length [00:10:39]Host: 172.17.45.7:8080 [00:10:39]Content-Length: 331 [00:10:39]Content-Type: application/json [00:10:39] [00:10:39]POST finish read [00:10:39]Found Content-Length = 331 [00:10:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:39]execute_script... [00:10:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:39]POST & json_proto [00:10:39]process_json_proto [00:10:39]json parsed OK: [00:10:39]protocol is kg_v1.0 [00:10:39]action value=get_value [00:10:39]process_action get_value [00:10:39]cmd_get_value [00:10:39]process_action get_value done [00:10:39]requested_data is exist [00:10:39]produce_requested_data [00:10:39]requested_item fm.sale.total is exist - process it [00:10:39]SAM_PROTO_GetFMData [00:10:39]wFMCommunicate request_size=4 [00:10:39]MH_SAM_APDU [00:10:39]CAPDU: 80 13 03 00 [00:10:39]Write to MH i2c: E2 08 00 ED 8C 80 13 03 00 00 00 00 00 F8 [00:10:39]Write i2c OK [00:10:39]MH_I2C_Read... [00:10:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:10:39]Read from MH i2c: E2 [00:10:39]MH_I2C_Read... [00:10:39]Read from MH i2c: E2 FD 00 [00:10:39]MH_I2C_Read... [00:10:39]Read from MH i2c: E2 FD 00 ED 8C 00 C5 04 85 04 C1 04 6E 04 04 00 3E CD 01 00 69 04 A3 00 6F 04 04 00 AB BF 01 00 B1 04 05 00 10 68 07 78 03 70 04 05 00 18 05 19 A9 02 72 04 04 00 F8 62 EE CE 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C6 11 54 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7F 35 DC 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 93 0D 00 00 B1 04 04 00 D8 ED 3F 3B 70 04 04 00 D8 ED 3F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 F1 4A 06 EF 03 09 90 00 7A [00:10:39]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3E CD 01 00 69 04 A3 00 6F 04 04 00 AB BF 01 00 B1 04 05 00 10 68 07 78 03 70 04 05 00 18 05 19 A9 02 72 04 04 00 F8 62 EE CE 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C6 11 54 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 7F 35 DC 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 93 0D 00 00 B1 04 04 00 D8 ED 3F 3B 70 04 04 00 D8 ED 3F 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 77 F1 4A 06 EF 03 09 90 00 [00:10:39]wFMCommunicate OK [00:10:39]wFMCommunicate request_size=4 [00:10:39]MH_SAM_APDU [00:10:39]CAPDU: 80 17 00 00 [00:10:39]Write to MH i2c: E2 08 00 EE 8C 80 17 00 00 00 00 00 00 FA [00:10:40]Write i2c OK [00:10:40]MH_I2C_Read... [00:10:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:40]Read from MH i2c: E2 [00:10:40]MH_I2C_Read... [00:10:40]Read from MH i2c: E2 FD 00 [00:10:40]MH_I2C_Read... [00:10:40]Read from MH i2c: E2 FD 00 EE 8C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 3D 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 5A [00:10:40]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 3D 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:10:40]wFMCommunicate OK [00:10:40]wFMCommunicate request_size=4 [00:10:40]MH_SAM_APDU [00:10:40]CAPDU: 80 17 00 00 [00:10:40]Write to MH i2c: E2 08 00 EF 8C 80 17 00 00 00 00 00 00 FB [00:10:40]Write i2c OK [00:10:40]MH_I2C_Read... [00:10:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:40]Read from MH i2c: E2 [00:10:40]MH_I2C_Read... [00:10:40]Read from MH i2c: E2 FD 00 [00:10:40]MH_I2C_Read... [00:10:40]Read from MH i2c: E2 FD 00 EF 8C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 0D [00:10:40]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:10:40]wFMCommunicate OK [00:10:40]wFMCommunicate request_size=4 [00:10:40]MH_SAM_APDU [00:10:40]CAPDU: 80 17 00 00 [00:10:40]Write to MH i2c: E2 08 00 F0 8C 80 17 00 00 00 00 00 00 FC [00:10:40]Write i2c OK [00:10:40]MH_I2C_Read... [00:10:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:41]Read from MH i2c: E2 [00:10:41]MH_I2C_Read... [00:10:41]Read from MH i2c: E2 FD 00 [00:10:41]MH_I2C_Read... [00:10:41]Read from MH i2c: E2 FD 00 F0 8C 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 88 [00:10:41]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:10:41]wFMCommunicate OK [00:10:41]wFMCommunicate request_size=4 [00:10:41]MH_SAM_APDU [00:10:41]CAPDU: 80 17 00 00 [00:10:41]Write to MH i2c: E2 08 00 F1 8C 80 17 00 00 00 00 00 00 FD [00:10:41]Write i2c OK [00:10:41]MH_I2C_Read... [00:10:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:10:41]Read from MH i2c: E2 [00:10:41]MH_I2C_Read... [00:10:41]Read from MH i2c: E2 E2 00 [00:10:41]MH_I2C_Read... [00:10:41]Read from MH i2c: E2 E2 00 F1 8C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DB [00:10:41]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:10:41]wFMCommunicate OK [00:10:41]SAM_PROTO_GetFMData done [00:10:41]requested_item fm.sale_refund.total is exist - process it [00:10:41]requested_item fm.buy.total is exist - process it [00:10:41]requested_item shift.sale.total is exist - process it [00:10:41]SAM_PROTO_GetShiftData [00:10:41]wFMCommunicate request_size=4 [00:10:41]MH_SAM_APDU [00:10:41]CAPDU: 80 13 02 00 [00:10:41]Write to MH i2c: E2 08 00 F2 8C 80 13 02 00 00 00 00 00 FC [00:10:41]Write i2c OK [00:10:41]MH_I2C_Read... [00:10:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:10:42]Read from MH i2c: E2 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 FD 00 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 FD 00 F2 8C 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 6F [00:10:42]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:10:42]wFMCommunicate OK [00:10:42]wFMCommunicate request_size=4 [00:10:42]MH_SAM_APDU [00:10:42]CAPDU: 80 17 00 00 [00:10:42]Write to MH i2c: E2 08 00 F3 8C 80 17 00 00 00 00 00 00 FF [00:10:42]Write i2c OK [00:10:42]MH_I2C_Read... [00:10:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:42]Read from MH i2c: E2 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 FD 00 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 FD 00 F3 8C 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 07 [00:10:42]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:10:42]wFMCommunicate OK [00:10:42]wFMCommunicate request_size=4 [00:10:42]MH_SAM_APDU [00:10:42]CAPDU: 80 17 00 00 [00:10:42]Write to MH i2c: E2 08 00 F4 8C 80 17 00 00 00 00 00 00 00 [00:10:42]Write i2c OK [00:10:42]MH_I2C_Read... [00:10:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:42]Read from MH i2c: E2 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 FD 00 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 FD 00 F4 8C 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 D2 [00:10:43]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:10:43]wFMCommunicate OK [00:10:43]wFMCommunicate request_size=4 [00:10:43]MH_SAM_APDU [00:10:43]CAPDU: 80 17 00 00 [00:10:43]Write to MH i2c: E2 08 00 F5 8C 80 17 00 00 00 00 00 00 01 [00:10:43]Write i2c OK [00:10:43]MH_I2C_Read... [00:10:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:43]Read from MH i2c: E2 [00:10:43]MH_I2C_Read... [00:10:43]Read from MH i2c: E2 FD 00 [00:10:43]MH_I2C_Read... [00:10:43]Read from MH i2c: E2 FD 00 F5 8C 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 73 [00:10:43]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:10:43]wFMCommunicate OK [00:10:43]wFMCommunicate request_size=4 [00:10:43]MH_SAM_APDU [00:10:43]CAPDU: 80 17 00 00 [00:10:43]Write to MH i2c: E2 08 00 F6 8C 80 17 00 00 00 00 00 00 02 [00:10:43]Write i2c OK [00:10:43]MH_I2C_Read... [00:10:43]OFD Sender: No OFD packet to send [00:10:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:10:43]Read from MH i2c: E2 [00:10:43]MH_I2C_Read... [00:10:43]Read from MH i2c: E2 BD 00 [00:10:43]MH_I2C_Read... [00:10:43]Read from MH i2c: E2 BD 00 F6 8C 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E8 [00:10:43]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:10:43]wFMCommunicate OK [00:10:43]SAM_PROTO_GetShiftData done [00:10:43]requested_item shift.sale.total_cash is exist - process it [00:10:43]requested_item shift.sale_refund.total is exist - process it [00:10:43]requested_item shift.sale_refund.total_cash is exist - process it [00:10:43]requested_item shift.buy.total is exist - process it [00:10:43]requested_item shift.buy.total_cash is exist - process it [00:10:43]produce_requested_data done [00:10:43]produce_requested_data return {"fm.sale.total":148986532.00,"fm.sale_refund.total":9940454.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:10:43]process_action_free get_value [00:10:43]json_value_free [00:10:43]json_value_free done [00:10:43]process_json_proto returns [00:10:43]Send response to host [00:10:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":148986532.00,"fm.sale_refund.total":9940454.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:10:43]free response buf [00:10:43]execute_script done [00:10:43]execute_script returns [00:10:43]free content buf [00:10:43]Sock 7.Close socket [00:10:43]Sock 7.Thread stoped [00:10:48]OFD Sender: No OFD packet to send [00:10:53]OFD Sender: No OFD packet to send [00:10:58]OFD Sender: No OFD packet to send [00:11:03]OFD Sender: No OFD packet to send [00:11:08]OFD Sender: No OFD packet to send [00:11:13]OFD Sender: No OFD packet to send [00:11:18]OFD Sender: No OFD packet to send [00:11:23]OFD Sender: No OFD packet to send [00:11:28]OFD Sender: No OFD packet to send [00:11:33]OFD Sender: No OFD packet to send [00:11:38]OFD Sender: No OFD packet to send [00:11:43]OFD Sender: No OFD packet to send [00:11:48]OFD Sender: No OFD packet to send [00:11:53]OFD Sender: No OFD packet to send [00:11:58]OFD Sender: No OFD packet to send [00:12:03]OFD Sender: No OFD packet to send [00:12:08]OFD Sender: No OFD packet to send [00:12:13]OFD Sender: No OFD packet to send [00:12:18]OFD Sender: No OFD packet to send [00:12:23]OFD Sender: No OFD packet to send [00:12:28]OFD Sender: No OFD packet to send [00:12:33]OFD Sender: No OFD packet to send [00:12:38]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:44]OFD Sender: No OFD packet to send [00:14:49]OFD Sender: No OFD packet to send [00:14:54]OFD Sender: No OFD packet to send [00:14:59]OFD Sender: No OFD packet to send [00:15:04]OFD Sender: No OFD packet to send [00:15:09]OFD Sender: No OFD packet to send [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:00]accept exits with 9 [00:16:00]New connection [00:16:00]New thread 3067383140 created [00:16:00]Thread 3067239780 joined [00:16:00]Waiting for new connection... [00:16:00] Sock 9.Parse request [00:16:00]Sock 9.Check first char [00:16:00]Sock 9.First char is OK [00:16:00]request: POST /json_proto HTTP/1.0 [00:16:00]Method: POST [00:16:00]URL: /json_proto [00:16:00]Method is POST - this is cgi request [00:16:00]url: /json_proto [00:16:00]query_string will be loaded in cgi processing [00:16:00]execute_cgi json_proto POST (null) [00:16:00]execute_cgi path=json_proto method=POST [00:16:00]POST find Content-Length [00:16:00]Host: 172.17.45.7:8080 [00:16:00]Content-Length: 820 [00:16:00]Content-Type: application/json [00:16:00] [00:16:00]POST finish read [00:16:00]Found Content-Length = 820 [00:16:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:00]execute_script... [00:16: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)949866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:00]POST & json_proto [00:16:00]process_json_proto [00:16:00]json parsed OK: [00:16:00]protocol is kg_v1.0 [00:16:00]action value=close_receipt [00:16:00]process_action close_receipt [00:16:00]cmd_close_receipt [00:16:00]MH_GetDate [00:16:00]Write to MH i2c: F0 00 00 F7 8C 72 [00:16:00]Write i2c OK [00:16:00]MH_I2C_Read... [00:16:00]Read from MH i2c: F0 [00:16:00]MH_I2C_Read... [00:16:00]Read from MH i2c: F0 09 00 [00:16:00]MH_I2C_Read... [00:16:00]Read from MH i2c: F0 09 00 F7 8C 00 C8 30 A8 66 90 0F 3E 66 C4 [00:16:00]GetLastDocTimeStamp 1722298242 [00:16:00]current date 1722298568 [00:16:00]FM_GetShiftState [00:16:00]SAM_PROTO_GetShiftState [00:16:00]wFMCommunicate request_size=4 [00:16:00]MH_SAM_APDU [00:16:00]CAPDU: 80 13 01 00 [00:16:00]Write to MH i2c: E2 08 00 F8 8C 80 13 01 00 00 00 00 00 01 [00:16:00]Write i2c OK [00:16:00]MH_I2C_Read... [00:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:00]Read from MH i2c: E2 [00:16:00]MH_I2C_Read... [00:16:00]Read from MH i2c: E2 0E 00 [00:16:00]MH_I2C_Read... [00:16:00]Read from MH i2c: E2 0E 00 F8 8C 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 CC [00:16:00]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [00:16:00]wFMCommunicate OK [00:16:00]SAM_PROTO_GetShiftState done [00:16:00]FM_GetShiftState done [00:16:00]opened in 1722298242 [00:16:00]opened+sec_in_day 1722384642 [00:16:00]quantity*price = 998982 [00:16:00]sum+1 = 998983 [00:16:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 9989.00 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 1 30.07.2024 00:16 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118949 ФПД: 196385112814917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T001608&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118949&fm=196385112814917&tin=02508201610067®Number=0000000000092660&sum=998900 [00:16:01]StoreToDocumentArchive [00:16:01]shift 435 fd 118949 [00:16:01]save to /storage/0435/doc_00118949 [00:16:01]save last doc name /storage/0435/doc_00118949 to /storage/kkm_last_doc_name [00:16:01]save OK [00:16:01]Clear old archive folders... [00:16:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:16:01]tlvbuf is 01F74400 [00:16:01]SAM_PROTO_ClearQueue [00:16:01]wFMCommunicate request_size=4 [00:16:01]MH_SAM_APDU [00:16:01]CAPDU: 80 09 00 00 [00:16:01]Write to MH i2c: E2 08 00 05 8D 80 09 00 00 00 00 00 00 04 [00:16:01]Write i2c OK [00:16:01]MH_I2C_Read... [00:16:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:16:01]Read from MH i2c: E2 [00:16:01]MH_I2C_Read... [00:16:01]Read from MH i2c: E2 03 00 [00:16:01]MH_I2C_Read... [00:16:01]Read from MH i2c: E2 03 00 05 8D 00 90 00 06 [00:16:01]RAPDU: 90 00 [00:16:01]wFMCommunicate OK [00:16:01]SAM_PROTO_ClearQueue done [00:16:01]KKMCreateOFDPacket [00:16:01]OFDProtocolAddRootSTLVToBuf [00:16:01]FM_MakeSignedData [00:16:01]FM_MakeSignedData [00:16:01]SAM_PROTO_SignData [00:16:01]wFMCommunicate request_size=4 [00:16:01]MH_SAM_APDU [00:16:01]CAPDU: 80 0D 01 02 [00:16:01]Write to MH i2c: E2 08 00 06 8D 80 0D 01 02 00 00 00 00 0C [00:16:01]Write i2c OK [00:16:01]MH_I2C_Read... [00:16:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:16:01]Read from MH i2c: E2 [00:16:01]MH_I2C_Read... [00:16:01]Read from MH i2c: E2 03 00 [00:16:01]MH_I2C_Read... [00:16:01]Read from MH i2c: E2 03 00 06 8D 00 90 00 07 [00:16:01]RAPDU: 90 00 [00:16:01]wFMCommunicate OK [00:16:01]wFMCommunicate request_size=255 [00:16:01]MH_SAM_APDU [00:16:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 C8 30 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A5 D0 01 00 35 04 06 00 B2 9C 78 E3 [00:16:01]Write to MH i2c: E2 02 01 07 8D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 C8 30 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A5 D0 01 00 35 04 06 00 B2 9C 78 E3 00 00 10 [00:16:01]Write i2c OK [00:16:01]MH_I2C_Read... [00:16:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:16:02]Read from MH i2c: E2 [00:16:02]MH_I2C_Read... [00:16:02]Read from MH i2c: E2 03 00 [00:16:02]MH_I2C_Read... [00:16:02]Read from MH i2c: E2 03 00 07 8D 00 90 00 08 [00:16:02]RAPDU: 90 00 [00:16:02]wFMCommunicate OK [00:16:02]wFMCommunicate request_size=7 [00:16:02]MH_SAM_APDU [00:16:02]CAPDU: 80 0D 02 02 02 75 45 [00:16:02]Write to MH i2c: E2 0A 00 08 8D 80 0D 02 02 02 00 75 45 00 00 CD [00:16:02]Write i2c OK [00:16:02]MH_I2C_Read... [00:16:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:16:02]Read from MH i2c: E2 [00:16:02]MH_I2C_Read... [00:16:02]Read from MH i2c: E2 03 00 [00:16:02]MH_I2C_Read... [00:16:02]Read from MH i2c: E2 03 00 08 8D 00 90 00 09 [00:16:02]RAPDU: 90 00 [00:16:02]wFMCommunicate OK [00:16:02]wFMCommunicate request_size=4 [00:16:02]MH_SAM_APDU [00:16:02]CAPDU: 80 0D 03 02 [00:16:02]Write to MH i2c: E2 08 00 09 8D 80 0D 03 02 00 00 00 00 11 [00:16:02]Write i2c OK [00:16:02]MH_I2C_Read... [00:16:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:16:02]Read from MH i2c: E2 [00:16:02]MH_I2C_Read... [00:16:02]Read from MH i2c: E2 0B 00 [00:16:02]MH_I2C_Read... [00:16:02]Read from MH i2c: E2 0B 00 09 8D 00 C6 42 3C 0C 3D 41 37 FE 90 00 15 [00:16:02]RAPDU: C6 42 3C 0C 3D 41 37 FE 90 00 [00:16:02]wFMCommunicate OK [00:16:02]SAM_PROTO_SignData done [00:16:02]FM_MakeSignedData done [00:16:02]CreateOFDProtocolMessage [00:16:02]wFMCommunicate request_size=4 [00:16:02]MH_SAM_APDU [00:16:02]CAPDU: 80 11 00 00 [00:16:02]Write to MH i2c: E2 08 00 0A 8D 80 11 00 00 00 00 00 00 11 [00:16:02]Write i2c OK [00:16:02]MH_I2C_Read... [00:16:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:16:02]Read from MH i2c: E2 [00:16:02]MH_I2C_Read... [00:16:02]Read from MH i2c: E2 17 00 [00:16:02]MH_I2C_Read... [00:16:02]Read from MH i2c: E2 17 00 0A 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6C [00:16:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:16:02]wFMCommunicate OK [00:16:02]CreateOFDProtocolMessage done [00:16:02]OFDSenderStorePacket 118949 [00:16:02]StoreOFDPacket docnum=118949 [00:16:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 72 4F 04 01 7A 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 C8 30 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A5 D0 01 00 35 04 06 00 B2 9C 78 E3 75 45 C6 42 3C 0C 3D 41 37 FE [00:16:02]CheckFolder [00:16:02]dirname=/storage/ofd_packets [00:16:02]CheckFolder done [00:16:02]ProducePacketName [00:16:02]name=ofd_packets/00118949 [00:16:02]NVStorageSaveData ofd_packets/00118949 [00:16:02]File name is /storage/ofd_packets/00118949 [00:16:02]Write 298 bytes [00:16:02]NVStorageSaveData done [00:16:02]OFDSenderStorePacket done [00:16:02]KKMCreateOFDPacket done [00:16:02]NVStorageSaveData kkm_last_timestamp [00:16:02]File name is /storage/kkm_last_timestamp [00:16:02]Write 4 bytes [00:16:02]NVStorageSaveData done [00:16:02]ExternCall_PrintAddStr [00:16:02]wPrintStart [00:16:02]Write to MH i2c: 01 00 00 0B 8D 98 [00:16:02]Write i2c OK [00:16:02]MH_I2C_Read... [00:16:02]Read from MH i2c: 01 [00:16:02]MH_I2C_Read... [00:16:02]Read from MH i2c: 01 07 00 [00:16:02]MH_I2C_Read... [00:16:02]Read from MH i2c: 01 07 00 0B 8D 00 00 00 00 00 FF 0F AD [00:16:02]RasterBufferAndPrint [00:16:02]line Счет N : (1)949866 [00:16:02]line ИНН: 02508201610067 [00:16:02]line Контрольно-Кассовый Чек [00:16:02]line ПРОДАЖА [00:16:02]line ТРК (МРК, ГНК) : 21 [00:16:02]line Товар: 2710194800 [00:16:02]line ДТ-К-5 [00:16:02]line 131.100 * 76.20 [00:16:02]line = 9989.82 [00:16:02]line НДС 12% НСП 1% [00:16:02]line > о реализуемом товаре [00:16:02]line ОКРУГЛЕНИЕ: -0.82 [00:16:02]line ИТОГО: 9989.00 [00:16:02]line НСП 1% : 88.40 [00:16:02]line НДС 12% : 1060.87 [00:16:02]line Наличными: 0.00 [00:16:02]line Безнал.: 9989.00 [00:16:02]line Место: АЗС № 134 "Партнер Нефть" [00:16:02]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:16:02]line СНО: Общий режим [00:16:02]line Чек 1 30.07.2024 00:16 [00:16:02]line Смена: 435 ФФД: 1.0 [00:16:02]line ЗНМ: 0300000044 [00:16:02]line РНМ: 0000000000092660 [00:16:02]line Версия ККМ: 001 [00:16:02]line Платежная система: O! деньги [00:16:02]line ФМ: 0000000000874939 [00:16:02]line ФД: 118949 [00:16:02]line ФПД: 196385112814917 [00:16:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T001608&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118949&fm=196385112814917&tin=02508201610067®Number=0000000000092660&sum=998900 [00:16:02]OFD Sender: Processing packet 118949 [packets to send 86, broken 85] [00:16:02]ProducePacketName [00:16:02]name=ofd_packets/00118949 [00:16:02]OFD Sender: To server: pG, [00:16:02]CommunicateWithHost lk.salyk.kg:30040 [00:16:02]ConnectInit lk.salyk.kg [00:16:02]written 0, free lines is 4095 [00:16:02]Connected sock=10 [00:16:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 72 4F 04 01 7A 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 C8 30 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A5 D0 01 00 35 04 06 00 B2 9C 78 E3 75 45 C6 42 3C 0C 3D 41 37 FE [00:16:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D5 F5 47 00 73 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A5 D0 01 00 F4 03 04 00 55 DE A7 66 B6 04 01 00 00 CA CF 84 E8 FA 6E 8C E9 [00:16:02]CommunicateWithHost err = 0 [00:16:02]CheckOFDResponse [00:16:02]1017 (14) - 77093643461234 [00:16:02]1041 (16) - 0000000000874939 [00:16:02]1040 (4) - 118949 [00:16:02]1012 (4) - 29.07.2024 18:24 [00:16:02]1206 (1) - 0 [00:16:02]OFD Sender: Remove packet 118949 [00:16:02]ProducePacketName [00:16:02]name=ofd_packets/00118949 [00:16:02]NVStorageDeleteData [00:16:03]Write to MH i2c: 01 00 00 35 8D C2 [00:16:03]Write i2c OK [00:16:03]MH_I2C_Read... [00:16:03]Read from MH i2c: 01 [00:16:03]MH_I2C_Read... [00:16:03]Read from MH i2c: 01 07 00 [00:16:03]MH_I2C_Read... [00:16:03]Read from MH i2c: 01 07 00 35 8D 00 00 00 00 00 D3 0C A8 [00:16:03]RasterBufferAndPrint [00:16:03]line [00:16:03]line [00:16:03]line [00:16:03]line [00:16:03]line [00:16:03]written 0, free lines is 3290 [00:16:03]MH_Cut [00:16:03]Write to MH i2c: D1 01 00 3C 8D 01 9B [00:16:03]Write i2c OK [00:16:03]MH_I2C_Read... [00:16:03]Read from MH i2c: D1 [00:16:03]MH_I2C_Read... [00:16:03]Read from MH i2c: D1 01 00 [00:16:03]MH_I2C_Read... [00:16:03]Read from MH i2c: D1 01 00 3C 8D 00 9A [00:16:03]Write to MH i2c: 01 00 00 3D 8D CA [00:16:03]Write i2c OK [00:16:03]MH_I2C_Read... [00:16:03]OFD Sender: No OFD packet to send [00:16:03]*** Cut start [00:16:03]*** Partial cut [00:16:03]*** CUTSNS_PIN = 1 [00:16:03]*** CUTSNS_PIN = 0 [00:16:04]*** Brake cut motor [00:16:04]Read from MH i2c: 01 [00:16:04]MH_I2C_Read... [00:16:04]*** Stop cut motor [00:16:04]*** Cut end [00:16:04]Read from MH i2c: 01 07 00 [00:16:04]MH_I2C_Read... [00:16:04]Read from MH i2c: 01 07 00 3D 8D 00 00 00 00 00 FF 0F DF [00:16:04]process_action close_receipt done [00:16:04]requested_data is exist [00:16:04]produce_requested_data [00:16:04]requested_item fm.sn is exist - process it [00:16:04]wFMCommunicate request_size=4 [00:16:04]MH_SAM_APDU [00:16:04]CAPDU: 80 11 00 00 [00:16:04]Write to MH i2c: E2 08 00 3E 8D 80 11 00 00 00 00 00 00 45 [00:16:04]Write i2c OK [00:16:04]MH_I2C_Read... [00:16:04]Read from MH i2c: E2 [00:16:04]MH_I2C_Read... [00:16:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:16:04]Read from MH i2c: E2 17 00 [00:16:04]MH_I2C_Read... [00:16:04]Read from MH i2c: E2 17 00 3E 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A0 [00:16:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:16:04]wFMCommunicate OK [00:16:04]requested_item fd.num is exist - process it [00:16:04]SAM_PROTO_GetFieldsCounters [00:16:04]wFMCommunicate request_size=4 [00:16:04]MH_SAM_APDU [00:16:04]CAPDU: 80 13 00 00 [00:16:04]Write to MH i2c: E2 08 00 3F 8D 80 13 00 00 00 00 00 00 48 [00:16:04]Write i2c OK [00:16:04]MH_I2C_Read... [00:16:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:16:04]Read from MH i2c: E2 [00:16:04]MH_I2C_Read... [00:16:04]Read from MH i2c: E2 62 00 [00:16:04]MH_I2C_Read... [00:16:04]Read from MH i2c: E2 62 00 3F 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A5 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [00:16: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A5 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:16:04]wFMCommunicate OK [00:16:04]SAM_PROTO_GetFieldsCounters done [00:16:04]requested_item shift.num is exist - process it [00:16:04]requested_item shift.opened is exist - process it [00:16:04]req_shift_opened [00:16:04]FM_GetShiftState [00:16:04]SAM_PROTO_GetShiftState [00:16:04]wFMCommunicate request_size=4 [00:16:04]MH_SAM_APDU [00:16:04]CAPDU: 80 13 01 00 [00:16:04]Write to MH i2c: E2 08 00 40 8D 80 13 01 00 00 00 00 00 4A [00:16:04]Write i2c OK [00:16:04]MH_I2C_Read... [00:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:04]Read from MH i2c: E2 [00:16:04]MH_I2C_Read... [00:16:04]Read from MH i2c: E2 0E 00 [00:16:04]MH_I2C_Read... [00:16:04]Read from MH i2c: E2 0E 00 40 8D 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 15 [00:16:04]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [00:16:04]wFMCommunicate OK [00:16:04]SAM_PROTO_GetShiftState done [00:16:04]FM_GetShiftState done [00:16:04]req_shift_opened done [00:16:04]requested_item shift.open_date is exist - process it [00:16:04]req_shift_open_date [00:16:04]req_shift_open_date done [00:16:04]produce_requested_data done [00:16:04]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118949,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [00:16:04]process_action_free close_receipt [00:16:04]json_value_free [00:16:04]json_value_free done [00:16:04]process_json_proto returns [00:16:04]Send response to host [00:16:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118949,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [00:16:04]free response buf [00:16:04]execute_script done [00:16:04]execute_script returns [00:16:04]free content buf [00:16:04]Sock 9.Close socket [00:16:04]Sock 9.Thread stoped [00:16:05]accept exits with 7 [00:16:05]New connection [00:16:05]New thread 3067239780 created [00:16:05]Thread 3067383140 joined [00:16:05]Waiting for new connection... [00:16:05] Sock 7.Parse request [00:16:05]Sock 7.Check first char [00:16:05]Sock 7.First char is OK [00:16:05]request: POST /json_proto HTTP/1.0 [00:16:05]Method: POST [00:16:05]URL: /json_proto [00:16:05]Method is POST - this is cgi request [00:16:05]url: /json_proto [00:16:05]query_string will be loaded in cgi processing [00:16:05]execute_cgi json_proto POST (null) [00:16:05]execute_cgi path=json_proto method=POST [00:16:05]POST find Content-Length [00:16:05]Host: 172.17.45.7:8080 [00:16:05]Content-Length: 820 [00:16:05]Content-Type: application/json [00:16:05] [00:16:05]POST finish read [00:16:05]Found Content-Length = 820 [00:16:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 117.670, "sum" : 8966.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 8966.00, "payments": [ { "type": 1, "sum" : 8966.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:05]execute_script... [00:16: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)949867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 117.670, "sum" : 8966.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 8966.00, "payments": [ { "type": 1, "sum" : 8966.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:05]POST & json_proto [00:16:05]process_json_proto [00:16:05]json parsed OK: [00:16:05]protocol is kg_v1.0 [00:16:05]action value=close_receipt [00:16:05]process_action close_receipt [00:16:05]cmd_close_receipt [00:16:05]MH_GetDate [00:16:05]Write to MH i2c: F0 00 00 41 8D BD [00:16:05]Write i2c OK [00:16:05]MH_I2C_Read... [00:16:05]Read from MH i2c: F0 [00:16:05]MH_I2C_Read... [00:16:05]Read from MH i2c: F0 09 00 [00:16:05]MH_I2C_Read... [00:16:05]Read from MH i2c: F0 09 00 41 8D 00 CD 30 A8 66 90 0F 3E 66 14 [00:16:05]GetLastDocTimeStamp 1722298568 [00:16:05]current date 1722298573 [00:16:05]FM_GetShiftState [00:16:05]SAM_PROTO_GetShiftState [00:16:05]wFMCommunicate request_size=4 [00:16:05]MH_SAM_APDU [00:16:05]CAPDU: 80 13 01 00 [00:16:05]Write to MH i2c: E2 08 00 42 8D 80 13 01 00 00 00 00 00 4C [00:16:05]Write i2c OK [00:16:05]MH_I2C_Read... [00:16:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:05]Read from MH i2c: E2 [00:16:05]MH_I2C_Read... [00:16:05]Read from MH i2c: E2 0E 00 [00:16:05]MH_I2C_Read... [00:16:05]Read from MH i2c: E2 0E 00 42 8D 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 17 [00:16:05]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [00:16:05]wFMCommunicate OK [00:16:05]SAM_PROTO_GetShiftState done [00:16:05]FM_GetShiftState done [00:16:05]opened in 1722298242 [00:16:05]opened+sec_in_day 1722384642 [00:16:05]quantity*price = 896645 [00:16:05]sum+1 = 896646 [00:16:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 8966.00 НСП 1% : 79.35 НДС 12% : 952.19 Наличными: 0.00 Безнал.: 8966.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 2 30.07.2024 00:16 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118950 ФПД: 172429767423836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T001613&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118950&fm=172429767423836&tin=02508201610067®Number=0000000000092660&sum=896600 [00:16:06]StoreToDocumentArchive [00:16:06]shift 435 fd 118950 [00:16:06]save to /storage/0435/doc_00118950 [00:16:06]save last doc name /storage/0435/doc_00118950 to /storage/kkm_last_doc_name [00:16:06]save OK [00:16:06]Clear old archive folders... [00:16:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:16:06]tlvbuf is 01FD34E0 [00:16:06]SAM_PROTO_ClearQueue [00:16:06]wFMCommunicate request_size=4 [00:16:06]MH_SAM_APDU [00:16:06]CAPDU: 80 09 00 00 [00:16:06]Write to MH i2c: E2 08 00 4F 8D 80 09 00 00 00 00 00 00 4E [00:16:06]Write i2c OK [00:16:06]MH_I2C_Read... [00:16:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:16:06]Read from MH i2c: E2 [00:16:06]MH_I2C_Read... [00:16:06]Read from MH i2c: E2 03 00 [00:16:06]MH_I2C_Read... [00:16:06]Read from MH i2c: E2 03 00 4F 8D 00 90 00 50 [00:16:06]RAPDU: 90 00 [00:16:06]wFMCommunicate OK [00:16:06]SAM_PROTO_ClearQueue done [00:16:06]KKMCreateOFDPacket [00:16:06]OFDProtocolAddRootSTLVToBuf [00:16:06]FM_MakeSignedData [00:16:06]FM_MakeSignedData [00:16:06]SAM_PROTO_SignData [00:16:06]wFMCommunicate request_size=4 [00:16:06]MH_SAM_APDU [00:16:06]CAPDU: 80 0D 01 02 [00:16:06]Write to MH i2c: E2 08 00 50 8D 80 0D 01 02 00 00 00 00 56 [00:16:06]Write i2c OK [00:16:06]MH_I2C_Read... [00:16:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:16:06]Read from MH i2c: E2 [00:16:06]MH_I2C_Read... [00:16:06]Read from MH i2c: E2 03 00 [00:16:06]MH_I2C_Read... [00:16:06]Read from MH i2c: E2 03 00 50 8D 00 90 00 51 [00:16:06]RAPDU: 90 00 [00:16:06]wFMCommunicate OK [00:16:06]wFMCommunicate request_size=255 [00:16:06]MH_SAM_APDU [00:16:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 CB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 85 AE 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 AE 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 73 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 AE 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 CD 30 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A6 D0 01 00 35 04 06 00 9C D2 EF 09 [00:16:06]Write to MH i2c: E2 02 01 51 8D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 CB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 85 AE 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 AE 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 73 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 AE 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 CD 30 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A6 D0 01 00 35 04 06 00 9C D2 EF 09 00 00 99 [00:16:06]Write i2c OK [00:16:06]MH_I2C_Read... [00:16:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:16:07]Read from MH i2c: E2 [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: E2 03 00 [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: E2 03 00 51 8D 00 90 00 52 [00:16:07]RAPDU: 90 00 [00:16:07]wFMCommunicate OK [00:16:07]wFMCommunicate request_size=7 [00:16:07]MH_SAM_APDU [00:16:07]CAPDU: 80 0D 02 02 02 37 5C [00:16:07]Write to MH i2c: E2 0A 00 52 8D 80 0D 02 02 02 00 37 5C 00 00 F0 [00:16:07]Write i2c OK [00:16:07]MH_I2C_Read... [00:16:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:16:07]Read from MH i2c: E2 [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: E2 03 00 [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: E2 03 00 52 8D 00 90 00 53 [00:16:07]RAPDU: 90 00 [00:16:07]wFMCommunicate OK [00:16:07]wFMCommunicate request_size=4 [00:16:07]MH_SAM_APDU [00:16:07]CAPDU: 80 0D 03 02 [00:16:07]Write to MH i2c: E2 08 00 53 8D 80 0D 03 02 00 00 00 00 5B [00:16:07]Write i2c OK [00:16:07]MH_I2C_Read... [00:16:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:16:07]Read from MH i2c: E2 [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: E2 0B 00 [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: E2 0B 00 53 8D 00 4D F6 EF 7B 8F 9D 49 F0 90 00 6E [00:16:07]RAPDU: 4D F6 EF 7B 8F 9D 49 F0 90 00 [00:16:07]wFMCommunicate OK [00:16:07]SAM_PROTO_SignData done [00:16:07]FM_MakeSignedData done [00:16:07]CreateOFDProtocolMessage [00:16:07]wFMCommunicate request_size=4 [00:16:07]MH_SAM_APDU [00:16:07]CAPDU: 80 11 00 00 [00:16:07]Write to MH i2c: E2 08 00 54 8D 80 11 00 00 00 00 00 00 5B [00:16:07]Write i2c OK [00:16:07]MH_I2C_Read... [00:16:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:16:07]Read from MH i2c: E2 [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: E2 17 00 [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: E2 17 00 54 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B6 [00:16:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:16:07]wFMCommunicate OK [00:16:07]CreateOFDProtocolMessage done [00:16:07]OFDSenderStorePacket 118950 [00:16:07]StoreOFDPacket docnum=118950 [00:16:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E3 27 04 01 76 E5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 CB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 85 AE 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 AE 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 73 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 AE 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 CD 30 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A6 D0 01 00 35 04 06 00 9C D2 EF 09 37 5C 4D F6 EF 7B 8F 9D 49 F0 [00:16:07]CheckFolder [00:16:07]dirname=/storage/ofd_packets [00:16:07]CheckFolder done [00:16:07]ProducePacketName [00:16:07]name=ofd_packets/00118950 [00:16:07]NVStorageSaveData ofd_packets/00118950 [00:16:07]File name is /storage/ofd_packets/00118950 [00:16:07]Write 298 bytes [00:16:07]NVStorageSaveData done [00:16:07]OFDSenderStorePacket done [00:16:07]KKMCreateOFDPacket done [00:16:07]NVStorageSaveData kkm_last_timestamp [00:16:07]File name is /storage/kkm_last_timestamp [00:16:07]Write 4 bytes [00:16:07]NVStorageSaveData done [00:16:07]ExternCall_PrintAddStr [00:16:07]wPrintStart [00:16:07]Write to MH i2c: 01 00 00 55 8D E2 [00:16:07]Write i2c OK [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: 01 [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: 01 07 00 [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: 01 07 00 55 8D 00 00 00 00 00 FF 0F F7 [00:16:07]RasterBufferAndPrint [00:16:07]line Счет N : (1)949867 [00:16:07]line ИНН: 02508201610067 [00:16:07]line Контрольно-Кассовый Чек [00:16:07]line ПРОДАЖА [00:16:07]line ТРК (МРК, ГНК) : 11 [00:16:07]line Товар: 2710194800 [00:16:07]line ДТ-К-5 [00:16:07]line 117.670 * 76.20 [00:16:07]line = 8966.45 [00:16:07]line НДС 12% НСП 1% [00:16:07]line > о реализуемом товаре [00:16:07]line ОКРУГЛЕНИЕ: -0.45 [00:16:07]line ИТОГО: 8966.00 [00:16:07]line НСП 1% : 79.35 [00:16:07]line НДС 12% : 952.19 [00:16:07]line Наличными: 0.00 [00:16:07]line Безнал.: 8966.00 [00:16:07]line Место: АЗС № 134 "Партнер Нефть" [00:16:07]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:16:07]line СНО: Общий режим [00:16:07]line Чек 2 30.07.2024 00:16 [00:16:07]line Смена: 435 ФФД: 1.0 [00:16:07]line ЗНМ: 0300000044 [00:16:07]line РНМ: 0000000000092660 [00:16:07]line Версия ККМ: 001 [00:16:07]line Платежная система: O! деньги [00:16:07]line ФМ: 0000000000874939 [00:16:07]line ФД: 118950 [00:16:07]line ФПД: 172429767423836 [00:16:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T001613&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118950&fm=172429767423836&tin=02508201610067®Number=0000000000092660&sum=896600 [00:16:07]written 0, free lines is 4095 [00:16:07]OFD Sender: Processing packet 118950 [packets to send 86, broken 85] [00:16:07]ProducePacketName [00:16:07]name=ofd_packets/00118950 [00:16:07]OFD Sender: To server: pG, [00:16:07]CommunicateWithHost lk.salyk.kg:30040 [00:16:07]ConnectInit lk.salyk.kg [00:16:07]Connected sock=10 [00:16:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E3 27 04 01 76 E5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 CB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 85 AE 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 AE 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 73 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 AE 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 CD 30 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A6 D0 01 00 35 04 06 00 9C D2 EF 09 37 5C 4D F6 EF 7B 8F 9D 49 F0 [00:16:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8A 11 47 00 54 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 34 39 33 39 10 04 04 00 A6 D0 01 00 F4 03 04 00 5A DE A7 66 B6 04 01 00 00 A9 95 AC 57 2E 71 EF 46 [00:16:07]CommunicateWithHost err = 0 [00:16:07]CheckOFDResponse [00:16:07]1017 (14) - 77093643461234 [00:16:07]1041 (16) - 0000000000874939 [00:16:07]1040 (4) - 118950 [00:16:07]1012 (4) - 29.07.2024 18:24 [00:16:07]1206 (1) - 0 [00:16:07]OFD Sender: Remove packet 118950 [00:16:07]ProducePacketName [00:16:07]name=ofd_packets/00118950 [00:16:07]NVStorageDeleteData [00:16:07]Write to MH i2c: 01 00 00 7F 8D 0C [00:16:07]Write i2c OK [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: 01 [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: 01 07 00 [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: 01 07 00 7F 8D 00 00 00 00 00 E8 0C 07 [00:16:07]RasterBufferAndPrint [00:16:07]line [00:16:07]line [00:16:07]line [00:16:07]line [00:16:07]line [00:16:07]written 0, free lines is 3320 [00:16:07]MH_Cut [00:16:07]Write to MH i2c: D1 01 00 86 8D 01 E5 [00:16:07]Write i2c OK [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: D1 [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: D1 01 00 [00:16:07]MH_I2C_Read... [00:16:07]Read from MH i2c: D1 01 00 86 8D 00 E4 [00:16:07]Write to MH i2c: 01 00 00 87 8D 14 [00:16:07]Write i2c OK [00:16:07]MH_I2C_Read... [00:16:08]OFD Sender: No OFD packet to send [00:16:08]*** Cut start [00:16:08]*** Partial cut [00:16:08]*** CUTSNS_PIN = 1 [00:16:08]*** CUTSNS_PIN = 0 [00:16:08]*** Brake cut motor [00:16:09]Read from MH i2c: 01 [00:16:09]MH_I2C_Read... [00:16:09]*** Stop cut motor [00:16:09]*** Cut end [00:16:09]Read from MH i2c: 01 07 00 [00:16:09]MH_I2C_Read... [00:16:09]Read from MH i2c: 01 07 00 87 8D 00 00 00 00 00 FF 0F 29 [00:16:09]process_action close_receipt done [00:16:09]requested_data is exist [00:16:09]produce_requested_data [00:16:09]requested_item fm.sn is exist - process it [00:16:09]wFMCommunicate request_size=4 [00:16:09]MH_SAM_APDU [00:16:09]CAPDU: 80 11 00 00 [00:16:09]Write to MH i2c: E2 08 00 88 8D 80 11 00 00 00 00 00 00 8F [00:16:09]Write i2c OK [00:16:09]MH_I2C_Read... [00:16:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:16:09]Read from MH i2c: E2 [00:16:09]MH_I2C_Read... [00:16:09]Read from MH i2c: E2 17 00 [00:16:09]MH_I2C_Read... [00:16:09]Read from MH i2c: E2 17 00 88 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EA [00:16:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:16:09]wFMCommunicate OK [00:16:09]requested_item fd.num is exist - process it [00:16:09]SAM_PROTO_GetFieldsCounters [00:16:09]wFMCommunicate request_size=4 [00:16:09]MH_SAM_APDU [00:16:09]CAPDU: 80 13 00 00 [00:16:09]Write to MH i2c: E2 08 00 89 8D 80 13 00 00 00 00 00 00 92 [00:16:09]Write i2c OK [00:16:09]MH_I2C_Read... [00:16:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:16:09]Read from MH i2c: E2 [00:16:09]MH_I2C_Read... [00:16:09]Read from MH i2c: E2 62 00 [00:16:09]MH_I2C_Read... [00:16:09]Read from MH i2c: E2 62 00 89 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A6 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [00:16: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A6 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:16:09]wFMCommunicate OK [00:16:09]SAM_PROTO_GetFieldsCounters done [00:16:09]requested_item shift.num is exist - process it [00:16:09]requested_item shift.opened is exist - process it [00:16:09]req_shift_opened [00:16:09]FM_GetShiftState [00:16:09]SAM_PROTO_GetShiftState [00:16:09]wFMCommunicate request_size=4 [00:16:09]MH_SAM_APDU [00:16:09]CAPDU: 80 13 01 00 [00:16:09]Write to MH i2c: E2 08 00 8A 8D 80 13 01 00 00 00 00 00 94 [00:16:09]Write i2c OK [00:16:09]MH_I2C_Read... [00:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:09]Read from MH i2c: E2 [00:16:09]MH_I2C_Read... [00:16:09]Read from MH i2c: E2 0E 00 [00:16:09]MH_I2C_Read... [00:16:09]Read from MH i2c: E2 0E 00 8A 8D 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 5F [00:16:09]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [00:16:09]wFMCommunicate OK [00:16:09]SAM_PROTO_GetShiftState done [00:16:09]FM_GetShiftState done [00:16:09]req_shift_opened done [00:16:09]requested_item shift.open_date is exist - process it [00:16:09]req_shift_open_date [00:16:09]req_shift_open_date done [00:16:09]produce_requested_data done [00:16:09]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118950,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [00:16:09]process_action_free close_receipt [00:16:09]json_value_free [00:16:09]json_value_free done [00:16:09]process_json_proto returns [00:16:09]Send response to host [00:16:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118950,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [00:16:09]free response buf [00:16:09]execute_script done [00:16:09]execute_script returns [00:16:09]free content buf [00:16:09]Sock 7.Close socket [00:16:09]Sock 7.Thread stoped [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]OFD Sender: No OFD packet to send [00:20:32]accept exits with 9 [00:20:32]New connection [00:20:32]New thread 3067383140 created [00:20:32]Thread 3067239780 joined [00:20:32]Waiting for new connection... [00:20:32] Sock 9.Parse request [00:20:32]Sock 9.Check first char [00:20:32]Sock 9.First char is OK [00:20:32]request: POST /json_proto HTTP/1.0 [00:20:32]Method: POST [00:20:32]URL: /json_proto [00:20:32]Method is POST - this is cgi request [00:20:32]url: /json_proto [00:20:32]query_string will be loaded in cgi processing [00:20:32]execute_cgi json_proto POST (null) [00:20:32]execute_cgi path=json_proto method=POST [00:20:32]POST find Content-Length [00:20:32]Host: 172.17.45.7:8080 [00:20:32]Content-Length: 819 [00:20:32]Content-Type: application/json [00:20:32] [00:20:32]POST finish read [00:20:32]Found Content-Length = 819 [00:20:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 44.620, "sum" : 3400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 3400.00, "payments": [ { "type": 1, "sum" : 3400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:32]execute_script... [00:20:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 44.620, "sum" : 3400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 3400.00, "payments": [ { "type": 1, "sum" : 3400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:32]POST & json_proto [00:20:32]process_json_proto [00:20:32]json parsed OK: [00:20:32]protocol is kg_v1.0 [00:20:32]action value=close_receipt [00:20:32]process_action close_receipt [00:20:32]cmd_close_receipt [00:20:32]MH_GetDate [00:20:32]Write to MH i2c: F0 00 00 8B 8D 07 [00:20:32]Write i2c OK [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: F0 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: F0 09 00 [00:20:32]MH_I2C_Read... [00:20:32]Read from MH i2c: F0 09 00 8B 8D 00 D8 31 A8 66 90 0F 3E 66 6A [00:20:32]GetLastDocTimeStamp 1722298573 [00:20:32]current date 1722298840 [00:20:32]FM_GetShiftState [00:20:32]SAM_PROTO_GetShiftState [00:20:32]wFMCommunicate request_size=4 [00:20:32]MH_SAM_APDU [00:20:32]CAPDU: 80 13 01 00 [00:20:32]Write to MH i2c: E2 08 00 8C 8D 80 13 01 00 00 00 00 00 96 [00:20:32]Write i2c OK [00:20:32]MH_I2C_Read... [00:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:33]Read from MH i2c: E2 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 0E 00 [00:20:33]MH_I2C_Read... [00:20:33]Read from MH i2c: E2 0E 00 8C 8D 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 61 [00:20:33]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [00:20:33]wFMCommunicate OK [00:20:33]SAM_PROTO_GetShiftState done [00:20:33]FM_GetShiftState done [00:20:33]opened in 1722298242 [00:20:33]opened+sec_in_day 1722384642 [00:20:33]quantity*price = 340004 [00:20:33]sum+1 = 340005 [00:20:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 3400.00 НСП 1% : 30.09 НДС 12% : 361.07 Наличными: 0.00 Безнал.: 3400.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 3 30.07.2024 00:20 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118951 ФПД: 243618933209495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T002041&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118951&fm=243618933209495&tin=02508201610067®Number=0000000000092660&sum=340000 [00:20:34]StoreToDocumentArchive [00:20:34]shift 435 fd 118951 [00:20:34]save to /storage/0435/doc_00118951 [00:20:34]save last doc name /storage/0435/doc_00118951 to /storage/kkm_last_doc_name [00:20:34]save OK [00:20:34]Clear old archive folders... [00:20:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:20:34]tlvbuf is B6E111B0 [00:20:34]SAM_PROTO_ClearQueue [00:20:34]wFMCommunicate request_size=4 [00:20:34]MH_SAM_APDU [00:20:34]CAPDU: 80 09 00 00 [00:20:34]Write to MH i2c: E2 08 00 99 8D 80 09 00 00 00 00 00 00 98 [00:20:34]Write i2c OK [00:20:34]MH_I2C_Read... [00:20:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:20:34]Read from MH i2c: E2 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 03 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 03 00 99 8D 00 90 00 9A [00:20:34]RAPDU: 90 00 [00:20:34]wFMCommunicate OK [00:20:34]SAM_PROTO_ClearQueue done [00:20:34]KKMCreateOFDPacket [00:20:34]OFDProtocolAddRootSTLVToBuf [00:20:34]FM_MakeSignedData [00:20:34]FM_MakeSignedData [00:20:34]SAM_PROTO_SignData [00:20:34]wFMCommunicate request_size=4 [00:20:34]MH_SAM_APDU [00:20:34]CAPDU: 80 0D 01 02 [00:20:34]Write to MH i2c: E2 08 00 9A 8D 80 0D 01 02 00 00 00 00 A0 [00:20:34]Write i2c OK [00:20:34]MH_I2C_Read... [00:20:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:20:34]Read from MH i2c: E2 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 03 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 03 00 9A 8D 00 90 00 9B [00:20:34]RAPDU: 90 00 [00:20:34]wFMCommunicate OK [00:20:34]wFMCommunicate request_size=255 [00:20:34]MH_SAM_APDU [00:20:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C AE 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 8D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 30 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 D9 31 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A7 D0 01 00 35 04 06 00 DD 91 F3 F9 [00:20:34]Write to MH i2c: E2 02 01 9B 8D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C AE 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 8D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 30 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 D9 31 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A7 D0 01 00 35 04 06 00 DD 91 F3 F9 00 00 EB [00:20:34]Write i2c OK [00:20:34]MH_I2C_Read... [00:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:34]Read from MH i2c: E2 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 03 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 03 00 9B 8D 00 90 00 9C [00:20:34]RAPDU: 90 00 [00:20:34]wFMCommunicate OK [00:20:34]wFMCommunicate request_size=7 [00:20:34]MH_SAM_APDU [00:20:34]CAPDU: 80 0D 02 02 02 79 97 [00:20:34]Write to MH i2c: E2 0A 00 9C 8D 80 0D 02 02 02 00 79 97 00 00 B7 [00:20:34]Write i2c OK [00:20:34]MH_I2C_Read... [00:20:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:34]Read from MH i2c: E2 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 03 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 03 00 9C 8D 00 90 00 9D [00:20:34]RAPDU: 90 00 [00:20:34]wFMCommunicate OK [00:20:34]wFMCommunicate request_size=4 [00:20:34]MH_SAM_APDU [00:20:34]CAPDU: 80 0D 03 02 [00:20:34]Write to MH i2c: E2 08 00 9D 8D 80 0D 03 02 00 00 00 00 A5 [00:20:34]Write i2c OK [00:20:34]MH_I2C_Read... [00:20:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:20:34]Read from MH i2c: E2 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 0B 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 0B 00 9D 8D 00 FD 84 5F 77 6D 07 44 2F 90 00 E4 [00:20:34]RAPDU: FD 84 5F 77 6D 07 44 2F 90 00 [00:20:34]wFMCommunicate OK [00:20:34]SAM_PROTO_SignData done [00:20:34]FM_MakeSignedData done [00:20:34]CreateOFDProtocolMessage [00:20:34]wFMCommunicate request_size=4 [00:20:34]MH_SAM_APDU [00:20:34]CAPDU: 80 11 00 00 [00:20:34]Write to MH i2c: E2 08 00 9E 8D 80 11 00 00 00 00 00 00 A5 [00:20:34]Write i2c OK [00:20:34]MH_I2C_Read... [00:20:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:34]Read from MH i2c: E2 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 17 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: E2 17 00 9E 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 00 [00:20:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:20:34]wFMCommunicate OK [00:20:34]CreateOFDProtocolMessage done [00:20:34]OFDSenderStorePacket 118951 [00:20:34]StoreOFDPacket docnum=118951 [00:20:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 7B 7C 04 01 76 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C AE 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 8D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 30 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 D9 31 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A7 D0 01 00 35 04 06 00 DD 91 F3 F9 79 97 FD 84 5F 77 6D 07 44 2F [00:20:34]CheckFolder [00:20:34]dirname=/storage/ofd_packets [00:20:34]CheckFolder done [00:20:34]ProducePacketName [00:20:34]name=ofd_packets/00118951 [00:20:34]NVStorageSaveData ofd_packets/00118951 [00:20:34]File name is /storage/ofd_packets/00118951 [00:20:34]Write 298 bytes [00:20:34]NVStorageSaveData done [00:20:34]OFDSenderStorePacket done [00:20:34]KKMCreateOFDPacket done [00:20:34]NVStorageSaveData kkm_last_timestamp [00:20:34]File name is /storage/kkm_last_timestamp [00:20:34]Write 4 bytes [00:20:34]NVStorageSaveData done [00:20:34]ExternCall_PrintAddStr [00:20:34]wPrintStart [00:20:34]Write to MH i2c: 01 00 00 9F 8D 2C [00:20:34]Write i2c OK [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: 01 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: 01 07 00 [00:20:34]MH_I2C_Read... [00:20:34]Read from MH i2c: 01 07 00 9F 8D 00 00 00 00 00 FF 0F 41 [00:20:34]RasterBufferAndPrint [00:20:34]line Счет N : (1)949868 [00:20:34]line ИНН: 02508201610067 [00:20:34]line Контрольно-Кассовый Чек [00:20:34]line ПРОДАЖА [00:20:34]line ТРК (МРК, ГНК) : 21 [00:20:34]line Товар: 2710194800 [00:20:34]line ДТ-К-5 [00:20:34]line 44.620 * 76.20 [00:20:34]line = 3400.04 [00:20:34]line НДС 12% НСП 1% [00:20:34]line > о реализуемом товаре [00:20:34]line ОКРУГЛЕНИЕ: -0.04 [00:20:34]line ИТОГО: 3400.00 [00:20:34]line НСП 1% : 30.09 [00:20:34]line НДС 12% : 361.07 [00:20:34]line Наличными: 0.00 [00:20:34]line Безнал.: 3400.00 [00:20:34]line Место: АЗС № 134 "Партнер Нефть" [00:20:34]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:20:34]line СНО: Общий режим [00:20:34]line Чек 3 30.07.2024 00:20 [00:20:34]line Смена: 435 ФФД: 1.0 [00:20:34]line ЗНМ: 0300000044 [00:20:34]line РНМ: 0000000000092660 [00:20:34]line Версия ККМ: 001 [00:20:34]line Платежная система: O! деньги [00:20:34]line ФМ: 0000000000874939 [00:20:34]line ФД: 118951 [00:20:34]line ФПД: 243618933209495 [00:20:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T002041&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118951&fm=243618933209495&tin=02508201610067®Number=0000000000092660&sum=340000 [00:20:35]OFD Sender: Processing packet 118951 [packets to send 86, broken 85] [00:20:35]ProducePacketName [00:20:35]name=ofd_packets/00118951 [00:20:35]OFD Sender: To server: pG, [00:20:35]CommunicateWithHost lk.salyk.kg:30040 [00:20:35]ConnectInit lk.salyk.kg [00:20:35]written 0, free lines is 4095 [00:20:35]Connected sock=10 [00:20:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 7B 7C 04 01 76 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C AE 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 8D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 30 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 D9 31 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A7 D0 01 00 35 04 06 00 DD 91 F3 F9 79 97 FD 84 5F 77 6D 07 44 2F [00:20:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B2 C7 47 00 2E 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 34 39 33 39 10 04 04 00 A7 D0 01 00 F4 03 04 00 65 DF A7 66 B6 04 01 00 00 1B 1D DA 7D ED 72 44 10 [00:20:35]CommunicateWithHost err = 0 [00:20:35]CheckOFDResponse [00:20:35]1017 (14) - 77093643461234 [00:20:35]1041 (16) - 0000000000874939 [00:20:35]1040 (4) - 118951 [00:20:35]1012 (4) - 29.07.2024 18:28 [00:20:35]1206 (1) - 0 [00:20:35]OFD Sender: Remove packet 118951 [00:20:35]ProducePacketName [00:20:35]name=ofd_packets/00118951 [00:20:35]NVStorageDeleteData [00:20:35]Write to MH i2c: 01 00 00 C9 8D 56 [00:20:35]Write i2c OK [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: 01 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: 01 07 00 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: 01 07 00 C9 8D 00 00 00 00 00 E5 0C 4E [00:20:35]RasterBufferAndPrint [00:20:35]line [00:20:35]line [00:20:35]line [00:20:35]line [00:20:35]line [00:20:35]written 0, free lines is 3307 [00:20:35]MH_Cut [00:20:35]Write to MH i2c: D1 01 00 D0 8D 01 2F [00:20:35]Write i2c OK [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: D1 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: D1 01 00 [00:20:35]MH_I2C_Read... [00:20:35]Read from MH i2c: D1 01 00 D0 8D 00 2E [00:20:35]Write to MH i2c: 01 00 00 D1 8D 5E [00:20:35]Write i2c OK [00:20:35]MH_I2C_Read... [00:20:35]OFD Sender: No OFD packet to send [00:20:36]*** Cut start [00:20:36]*** Partial cut [00:20:36]*** CUTSNS_PIN = 1 [00:20:36]*** CUTSNS_PIN = 0 [00:20:36]*** Brake cut motor [00:20:36]Read from MH i2c: 01 [00:20:36]MH_I2C_Read... [00:20:36]*** Stop cut motor [00:20:36]*** Cut end [00:20:36]Read from MH i2c: 01 07 00 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: 01 07 00 D1 8D 00 00 00 00 00 FF 0F 73 [00:20:36]process_action close_receipt done [00:20:36]requested_data is exist [00:20:36]produce_requested_data [00:20:36]requested_item fm.sn is exist - process it [00:20:36]wFMCommunicate request_size=4 [00:20:36]MH_SAM_APDU [00:20:36]CAPDU: 80 11 00 00 [00:20:36]Write to MH i2c: E2 08 00 D2 8D 80 11 00 00 00 00 00 00 D9 [00:20:36]Write i2c OK [00:20:36]MH_I2C_Read... [00:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:36]Read from MH i2c: E2 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: E2 17 00 [00:20:36]MH_I2C_Read... [00:20:36]Read from MH i2c: E2 17 00 D2 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 34 [00:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:20:36]wFMCommunicate OK [00:20:36]requested_item fd.num is exist - process it [00:20:36]SAM_PROTO_GetFieldsCounters [00:20:36]wFMCommunicate request_size=4 [00:20:36]MH_SAM_APDU [00:20:36]CAPDU: 80 13 00 00 [00:20:36]Write to MH i2c: E2 08 00 D3 8D 80 13 00 00 00 00 00 00 DC [00:20:36]Write i2c OK [00:20:36]MH_I2C_Read... [00:20:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:37]Read from MH i2c: E2 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 62 00 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 62 00 D3 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A7 D0 01 00 0E 04 04 00 B3 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 38 [00:20: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A7 D0 01 00 0E 04 04 00 B3 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 [00:20:37]wFMCommunicate OK [00:20:37]SAM_PROTO_GetFieldsCounters done [00:20:37]requested_item shift.num is exist - process it [00:20:37]requested_item shift.opened is exist - process it [00:20:37]req_shift_opened [00:20:37]FM_GetShiftState [00:20:37]SAM_PROTO_GetShiftState [00:20:37]wFMCommunicate request_size=4 [00:20:37]MH_SAM_APDU [00:20:37]CAPDU: 80 13 01 00 [00:20:37]Write to MH i2c: E2 08 00 D4 8D 80 13 01 00 00 00 00 00 DE [00:20:37]Write i2c OK [00:20:37]MH_I2C_Read... [00:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:37]Read from MH i2c: E2 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 0E 00 [00:20:37]MH_I2C_Read... [00:20:37]Read from MH i2c: E2 0E 00 D4 8D 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 A9 [00:20:37]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [00:20:37]wFMCommunicate OK [00:20:37]SAM_PROTO_GetShiftState done [00:20:37]FM_GetShiftState done [00:20:37]req_shift_opened done [00:20:37]requested_item shift.open_date is exist - process it [00:20:37]req_shift_open_date [00:20:37]req_shift_open_date done [00:20:37]produce_requested_data done [00:20:37]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118951,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [00:20:37]process_action_free close_receipt [00:20:37]json_value_free [00:20:37]json_value_free done [00:20:37]process_json_proto returns [00:20:37]Send response to host [00:20:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118951,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [00:20:37]free response buf [00:20:37]execute_script done [00:20:37]execute_script returns [00:20:37]free content buf [00:20:37]Sock 9.Close socket [00:20:37]Sock 9.Thread stoped [00:20:40]OFD Sender: No OFD packet to send [00:20:45]OFD Sender: No OFD packet to send [00:20:50]OFD Sender: No OFD packet to send [00:20:55]OFD Sender: No OFD packet to send [00:21:00]OFD Sender: No OFD packet to send [00:21:05]OFD Sender: No OFD packet to send [00:21:10]OFD Sender: No OFD packet to send [00:21:15]OFD Sender: No OFD packet to send [00:21:20]OFD Sender: No OFD packet to send [00:21:25]OFD Sender: No OFD packet to send [00:21:30]OFD Sender: No OFD packet to send [00:21:35]OFD Sender: No OFD packet to send [00:21:40]OFD Sender: No OFD packet to send [00:21:45]OFD Sender: No OFD packet to send [00:21:50]OFD Sender: No OFD packet to send [00:21:55]OFD Sender: No OFD packet to send [00:22:00]OFD Sender: No OFD packet to send [00:22:05]OFD Sender: No OFD packet to send [00:22:10]OFD Sender: No OFD packet to send [00:22:15]OFD Sender: No OFD packet to send [00:22:20]OFD Sender: No OFD packet to send [00:22:25]OFD Sender: No OFD packet to send [00:22:31]OFD Sender: No OFD packet to send [00:22:36]OFD Sender: No OFD packet to send [00:22:41]OFD Sender: No OFD packet to send [00:22:46]OFD Sender: No OFD packet to send [00:22:51]OFD Sender: No OFD packet to send [00:22:56]OFD Sender: No OFD packet to send [00:23:01]OFD Sender: No OFD packet to send [00:23:06]OFD Sender: No OFD packet to send [00:23:11]OFD Sender: No OFD packet to send [00:23:16]OFD Sender: No OFD packet to send [00:23:21]OFD Sender: No OFD packet to send [00:23:26]OFD Sender: No OFD packet to send [00:23:31]OFD Sender: No OFD packet to send [00:23:36]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:46]OFD Sender: No OFD packet to send [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:01]OFD Sender: No OFD packet to send [00:24:06]OFD Sender: No OFD packet to send [00:24:11]OFD Sender: No OFD packet to send [00:24:16]OFD Sender: No OFD packet to send [00:24:21]OFD Sender: No OFD packet to send [00:24:26]OFD Sender: No OFD packet to send [00:24:31]OFD Sender: No OFD packet to send [00:24:36]OFD Sender: No OFD packet to send [00:24:41]OFD Sender: No OFD packet to send [00:24:46]OFD Sender: No OFD packet to send [00:24:51]OFD Sender: No OFD packet to send [00:24:56]OFD Sender: No OFD packet to send [00:25:01]OFD Sender: No OFD packet to send [00:25:06]OFD Sender: No OFD packet to send [00:25:11]OFD Sender: No OFD packet to send [00:25:16]OFD Sender: No OFD packet to send [00:25:21]OFD Sender: No OFD packet to send [00:25:26]OFD Sender: No OFD packet to send [00:25:31]OFD Sender: No OFD packet to send [00:25:36]OFD Sender: No OFD packet to send [00:25:41]OFD Sender: No OFD packet to send [00:25:46]OFD Sender: No OFD packet to send [00:25:51]OFD Sender: No OFD packet to send [00:25:56]OFD Sender: No OFD packet to send [00:26:01]OFD Sender: No OFD packet to send [00:26:06]OFD Sender: No OFD packet to send [00:26:11]OFD Sender: No OFD packet to send [00:26:16]OFD Sender: No OFD packet to send [00:26:21]OFD Sender: No OFD packet to send [00:26:26]OFD Sender: No OFD packet to send [00:26:31]OFD Sender: No OFD packet to send [00:26:36]OFD Sender: No OFD packet to send [00:26:41]OFD Sender: No OFD packet to send [00:26:46]OFD Sender: No OFD packet to send [00:26:51]OFD Sender: No OFD packet to send [00:26:56]OFD Sender: No OFD packet to send [00:27:01]OFD Sender: No OFD packet to send [00:27:06]OFD Sender: No OFD packet to send [00:27:11]OFD Sender: No OFD packet to send [00:27:16]OFD Sender: No OFD packet to send [00:27:21]OFD Sender: No OFD packet to send [00:27:26]OFD Sender: No OFD packet to send [00:27:31]OFD Sender: No OFD packet to send [00:27:36]OFD Sender: No OFD packet to send [00:27:41]OFD Sender: No OFD packet to send [00:27:46]OFD Sender: No OFD packet to send [00:27:51]OFD Sender: No OFD packet to send [00:27:56]OFD Sender: No OFD packet to send [00:28:01]OFD Sender: No OFD packet to send [00:28:06]OFD Sender: No OFD packet to send [00:28:11]OFD Sender: No OFD packet to send [00:28:16]OFD Sender: No OFD packet to send [00:28:21]OFD Sender: No OFD packet to send [00:28:26]OFD Sender: No OFD packet to send [00:28:31]OFD Sender: No OFD packet to send [00:28:36]OFD Sender: No OFD packet to send [00:28:41]OFD Sender: No OFD packet to send [00:28:46]OFD Sender: No OFD packet to send [00:28:51]OFD Sender: No OFD packet to send [00:28:56]OFD Sender: No OFD packet to send [00:29:01]OFD Sender: No OFD packet to send [00:29:06]OFD Sender: No OFD packet to send [00:29:11]OFD Sender: No OFD packet to send [00:29:16]OFD Sender: No OFD packet to send [00:29:21]OFD Sender: No OFD packet to send [00:29:26]OFD Sender: No OFD packet to send [00:29:31]OFD Sender: No OFD packet to send [00:29:36]OFD Sender: No OFD packet to send [00:29:41]OFD Sender: No OFD packet to send [00:29:46]OFD Sender: No OFD packet to send [00:29:51]OFD Sender: No OFD packet to send [00:29:56]OFD Sender: No OFD packet to send [00:30:01]OFD Sender: No OFD packet to send [00:30:06]OFD Sender: No OFD packet to send [00:30:11]OFD Sender: No OFD packet to send [00:30:16]OFD Sender: No OFD packet to send [00:30:21]OFD Sender: No OFD packet to send [00:30:26]OFD Sender: No OFD packet to send [00:30:31]OFD Sender: No OFD packet to send [00:30:36]OFD Sender: No OFD packet to send [00:30:41]OFD Sender: No OFD packet to send [00:30:46]OFD Sender: No OFD packet to send [00:30:51]OFD Sender: No OFD packet to send [00:30:56]OFD Sender: No OFD packet to send [00:31:01]OFD Sender: No OFD packet to send [00:31:06]OFD Sender: No OFD packet to send [00:31:11]OFD Sender: No OFD packet to send [00:31:16]OFD Sender: No OFD packet to send [00:31:21]OFD Sender: No OFD packet to send [00:31:26]OFD Sender: No OFD packet to send [00:31:31]OFD Sender: No OFD packet to send [00:31:36]OFD Sender: No OFD packet to send [00:31:41]OFD Sender: No OFD packet to send [00:31:46]OFD Sender: No OFD packet to send [00:31:51]OFD Sender: No OFD packet to send [00:31:56]OFD Sender: No OFD packet to send [00:32:01]OFD Sender: No OFD packet to send [00:32:06]OFD Sender: No OFD packet to send [00:32:11]OFD Sender: No OFD packet to send [00:32:16]OFD Sender: No OFD packet to send [00:32:21]OFD Sender: No OFD packet to send [00:32:26]OFD Sender: No OFD packet to send [00:32:31]OFD Sender: No OFD packet to send [00:32:36]OFD Sender: No OFD packet to send [00:32:41]OFD Sender: No OFD packet to send [00:32:46]OFD Sender: No OFD packet to send [00:32:51]OFD Sender: No OFD packet to send [00:32:56]OFD Sender: No OFD packet to send [00:33:01]OFD Sender: No OFD packet to send [00:33:06]OFD Sender: No OFD packet to send [00:33:11]OFD Sender: No OFD packet to send [00:33:16]OFD Sender: No OFD packet to send [00:33:21]OFD Sender: No OFD packet to send [00:33:26]OFD Sender: No OFD packet to send [00:33:31]OFD Sender: No OFD packet to send [00:33:36]OFD Sender: No OFD packet to send [00:33:41]OFD Sender: No OFD packet to send [00:33:46]OFD Sender: No OFD packet to send [00:33:51]OFD Sender: No OFD packet to send [00:33:56]OFD Sender: No OFD packet to send [00:34:01]OFD Sender: No OFD packet to send [00:34:06]OFD Sender: No OFD packet to send [00:34:11]OFD Sender: No OFD packet to send [00:34:16]OFD Sender: No OFD packet to send [00:34:21]OFD Sender: No OFD packet to send [00:34:26]OFD Sender: No OFD packet to send [00:34:31]OFD Sender: No OFD packet to send [00:34:36]OFD Sender: No OFD packet to send [00:34:41]OFD Sender: No OFD packet to send [00:34:46]OFD Sender: No OFD packet to send [00:34:51]OFD Sender: No OFD packet to send [00:34:56]OFD Sender: No OFD packet to send [00:35:01]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:36]OFD Sender: No OFD packet to send [00:35:41]OFD Sender: No OFD packet to send [00:35:46]OFD Sender: No OFD packet to send [00:35:51]OFD Sender: No OFD packet to send [00:35:56]OFD Sender: No OFD packet to send [00:36:01]OFD Sender: No OFD packet to send [00:36:06]OFD Sender: No OFD packet to send [00:36:11]OFD Sender: No OFD packet to send [00:36:16]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:21]OFD Sender: No OFD packet to send [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:36]OFD Sender: No OFD packet to send [00:37:41]OFD Sender: No OFD packet to send [00:37:46]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:06]OFD Sender: No OFD packet to send [00:38:11]OFD Sender: No OFD packet to send [00:38:16]OFD Sender: No OFD packet to send [00:38:21]OFD Sender: No OFD packet to send [00:38:26]OFD Sender: No OFD packet to send [00:38:32]OFD Sender: No OFD packet to send [00:38:37]OFD Sender: No OFD packet to send [00:38:42]OFD Sender: No OFD packet to send [00:38:47]OFD Sender: No OFD packet to send [00:38:52]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:07]OFD Sender: No OFD packet to send [00:39:12]OFD Sender: No OFD packet to send [00:39:17]OFD Sender: No OFD packet to send [00:39:22]OFD Sender: No OFD packet to send [00:39:27]OFD Sender: No OFD packet to send [00:39:32]OFD Sender: No OFD packet to send [00:39:37]OFD Sender: No OFD packet to send [00:39:42]OFD Sender: No OFD packet to send [00:39:47]OFD Sender: No OFD packet to send [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:12]OFD Sender: No OFD packet to send [00:48:17]OFD Sender: No OFD packet to send [00:48:22]OFD Sender: No OFD packet to send [00:48:27]OFD Sender: No OFD packet to send [00:48:32]OFD Sender: No OFD packet to send [00:48:37]OFD Sender: No OFD packet to send [00:48:42]OFD Sender: No OFD packet to send [00:48:47]OFD Sender: No OFD packet to send [00:48:52]OFD Sender: No OFD packet to send [00:48:57]OFD Sender: No OFD packet to send [00:49:02]OFD Sender: No OFD packet to send [00:49:07]OFD Sender: No OFD packet to send [00:49:12]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:32]OFD Sender: No OFD packet to send [00:49:37]OFD Sender: No OFD packet to send [00:49:42]OFD Sender: No OFD packet to send [00:49:47]OFD Sender: No OFD packet to send [00:49:52]OFD Sender: No OFD packet to send [00:49:57]OFD Sender: No OFD packet to send [00:50:02]OFD Sender: No OFD packet to send [00:50:07]OFD Sender: No OFD packet to send [00:50:12]OFD Sender: No OFD packet to send [00:50:17]OFD Sender: No OFD packet to send [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:17]OFD Sender: No OFD packet to send [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:37]OFD Sender: No OFD packet to send [00:51:42]OFD Sender: No OFD packet to send [00:51:47]OFD Sender: No OFD packet to send [00:51:52]OFD Sender: No OFD packet to send [00:51:57]OFD Sender: No OFD packet to send [00:52:02]OFD Sender: No OFD packet to send [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:42]OFD Sender: No OFD packet to send [00:52:43]accept exits with 7 [00:52:43]New connection [00:52:43]New thread 3067239780 created [00:52:43]Thread 3067383140 joined [00:52:43]Waiting for new connection... [00:52:43] Sock 7.Parse request [00:52:43]Sock 7.Check first char [00:52:43]Sock 7.First char is OK [00:52:43]request: POST /json_proto HTTP/1.0 [00:52:43]Method: POST [00:52:43]URL: /json_proto [00:52:43]Method is POST - this is cgi request [00:52:43]url: /json_proto [00:52:43]query_string will be loaded in cgi processing [00:52:43]execute_cgi json_proto POST (null) [00:52:43]execute_cgi path=json_proto method=POST [00:52:43]POST find Content-Length [00:52:43]Host: 172.17.45.7:8080 [00:52:43]Content-Length: 819 [00:52:43]Content-Type: application/json [00:52:43] [00:52:43]POST finish read [00:52:43]Found Content-Length = 819 [00:52:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 98.430, "sum" : 7500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 7500.00, "payments": [ { "type": 1, "sum" : 7500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:52:43]execute_script... [00:52:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 98.430, "sum" : 7500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 7500.00, "payments": [ { "type": 1, "sum" : 7500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:52:43]POST & json_proto [00:52:43]process_json_proto [00:52:43]json parsed OK: [00:52:43]protocol is kg_v1.0 [00:52:43]action value=close_receipt [00:52:43]process_action close_receipt [00:52:43]cmd_close_receipt [00:52:43]MH_GetDate [00:52:43]Write to MH i2c: F0 00 00 D5 8D 51 [00:52:43]Write i2c OK [00:52:43]MH_I2C_Read... [00:52:43]Read from MH i2c: F0 [00:52:43]MH_I2C_Read... [00:52:43]Read from MH i2c: F0 09 00 [00:52:43]MH_I2C_Read... [00:52:43]Read from MH i2c: F0 09 00 D5 8D 00 63 39 A8 66 90 0F 3E 66 47 [00:52:43]GetLastDocTimeStamp 1722298841 [00:52:43]current date 1722300771 [00:52:43]FM_GetShiftState [00:52:43]SAM_PROTO_GetShiftState [00:52:43]wFMCommunicate request_size=4 [00:52:43]MH_SAM_APDU [00:52:43]CAPDU: 80 13 01 00 [00:52:43]Write to MH i2c: E2 08 00 D6 8D 80 13 01 00 00 00 00 00 E0 [00:52:43]Write i2c OK [00:52:43]MH_I2C_Read... [00:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:43]Read from MH i2c: E2 [00:52:43]MH_I2C_Read... [00:52:43]Read from MH i2c: E2 0E 00 [00:52:43]MH_I2C_Read... [00:52:43]Read from MH i2c: E2 0E 00 D6 8D 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 AB [00:52:43]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [00:52:43]wFMCommunicate OK [00:52:43]SAM_PROTO_GetShiftState done [00:52:43]FM_GetShiftState done [00:52:43]opened in 1722298242 [00:52:43]opened+sec_in_day 1722384642 [00:52:43]quantity*price = 750036 [00:52:43]sum+1 = 750038 [00:52:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 7500.00 НСП 1% : 66.37 НДС 12% : 796.50 Наличными: 0.00 Безнал.: 7500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 4 30.07.2024 00:52 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118952 ФПД: 25088678686852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T005251&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118952&fm=25088678686852&tin=02508201610067®Number=0000000000092660&sum=750000 [00:52:44]StoreToDocumentArchive [00:52:44]shift 435 fd 118952 [00:52:44]save to /storage/0435/doc_00118952 [00:52:44]save last doc name /storage/0435/doc_00118952 to /storage/kkm_last_doc_name [00:52:44]save OK [00:52:44]Clear old archive folders... [00:52:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:52:44]tlvbuf is 01E97B60 [00:52:44]SAM_PROTO_ClearQueue [00:52:44]wFMCommunicate request_size=4 [00:52:44]MH_SAM_APDU [00:52:44]CAPDU: 80 09 00 00 [00:52:44]Write to MH i2c: E2 08 00 E3 8D 80 09 00 00 00 00 00 00 E2 [00:52:44]Write i2c OK [00:52:44]MH_I2C_Read... [00:52:44]Read from MH i2c: E2 [00:52:44]MH_I2C_Read... [00:52:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:52:44]Read from MH i2c: E2 03 00 [00:52:44]MH_I2C_Read... [00:52:44]Read from MH i2c: E2 03 00 E3 8D 00 90 00 E4 [00:52:44]RAPDU: 90 00 [00:52:44]wFMCommunicate OK [00:52:44]SAM_PROTO_ClearQueue done [00:52:44]KKMCreateOFDPacket [00:52:44]OFDProtocolAddRootSTLVToBuf [00:52:44]FM_MakeSignedData [00:52:44]FM_MakeSignedData [00:52:44]SAM_PROTO_SignData [00:52:44]wFMCommunicate request_size=4 [00:52:44]MH_SAM_APDU [00:52:44]CAPDU: 80 0D 01 02 [00:52:44]Write to MH i2c: E2 08 00 E4 8D 80 0D 01 02 00 00 00 00 EA [00:52:44]Write i2c OK [00:52:44]MH_I2C_Read... [00:52:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:52:44]Read from MH i2c: E2 [00:52:44]MH_I2C_Read... [00:52:44]Read from MH i2c: E2 03 00 [00:52:44]MH_I2C_Read... [00:52:44]Read from MH i2c: E2 03 00 E4 8D 00 90 00 E5 [00:52:44]RAPDU: 90 00 [00:52:44]wFMCommunicate OK [00:52:44]wFMCommunicate request_size=255 [00:52:44]MH_SAM_APDU [00:52:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 71 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 63 39 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A8 D0 01 00 35 04 06 00 16 D1 69 C7 [00:52:44]Write to MH i2c: E2 02 01 E5 8D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 71 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 63 39 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A8 D0 01 00 35 04 06 00 16 D1 69 C7 00 00 2D [00:52:44]Write i2c OK [00:52:44]MH_I2C_Read... [00:52:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:44]Read from MH i2c: E2 [00:52:44]MH_I2C_Read... [00:52:44]Read from MH i2c: E2 03 00 [00:52:44]MH_I2C_Read... [00:52:44]Read from MH i2c: E2 03 00 E5 8D 00 90 00 E6 [00:52:44]RAPDU: 90 00 [00:52:44]wFMCommunicate OK [00:52:44]wFMCommunicate request_size=7 [00:52:44]MH_SAM_APDU [00:52:44]CAPDU: 80 0D 02 02 02 F0 84 [00:52:44]Write to MH i2c: E2 0A 00 E6 8D 80 0D 02 02 02 00 F0 84 00 00 65 [00:52:44]Write i2c OK [00:52:44]MH_I2C_Read... [00:52:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:44]Read from MH i2c: E2 [00:52:44]MH_I2C_Read... [00:52:44]Read from MH i2c: E2 03 00 [00:52:44]MH_I2C_Read... [00:52:44]Read from MH i2c: E2 03 00 E6 8D 00 90 00 E7 [00:52:44]RAPDU: 90 00 [00:52:44]wFMCommunicate OK [00:52:44]wFMCommunicate request_size=4 [00:52:44]MH_SAM_APDU [00:52:44]CAPDU: 80 0D 03 02 [00:52:44]Write to MH i2c: E2 08 00 E7 8D 80 0D 03 02 00 00 00 00 EF [00:52:44]Write i2c OK [00:52:44]MH_I2C_Read... [00:52:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:52:44]Read from MH i2c: E2 [00:52:44]MH_I2C_Read... [00:52:44]Read from MH i2c: E2 0B 00 [00:52:44]MH_I2C_Read... [00:52:44]Read from MH i2c: E2 0B 00 E7 8D 00 ED 32 23 7F 06 AF 86 5E 90 00 4A [00:52:44]RAPDU: ED 32 23 7F 06 AF 86 5E 90 00 [00:52:44]wFMCommunicate OK [00:52:44]SAM_PROTO_SignData done [00:52:44]FM_MakeSignedData done [00:52:44]CreateOFDProtocolMessage [00:52:44]wFMCommunicate request_size=4 [00:52:44]MH_SAM_APDU [00:52:44]CAPDU: 80 11 00 00 [00:52:44]Write to MH i2c: E2 08 00 E8 8D 80 11 00 00 00 00 00 00 EF [00:52:44]Write i2c OK [00:52:44]MH_I2C_Read... [00:52:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:44]Read from MH i2c: E2 [00:52:44]MH_I2C_Read... [00:52:44]Read from MH i2c: E2 17 00 [00:52:44]MH_I2C_Read... [00:52:44]Read from MH i2c: E2 17 00 E8 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4A [00:52:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:52:44]wFMCommunicate OK [00:52:44]CreateOFDProtocolMessage done [00:52:44]OFDSenderStorePacket 118952 [00:52:44]StoreOFDPacket docnum=118952 [00:52:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 57 DD 04 01 7B B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 71 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 63 39 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A8 D0 01 00 35 04 06 00 16 D1 69 C7 F0 84 ED 32 23 7F 06 AF 86 5E [00:52:44]CheckFolder [00:52:44]dirname=/storage/ofd_packets [00:52:44]CheckFolder done [00:52:44]ProducePacketName [00:52:44]name=ofd_packets/00118952 [00:52:44]NVStorageSaveData ofd_packets/00118952 [00:52:44]File name is /storage/ofd_packets/00118952 [00:52:44]Write 298 bytes [00:52:44]NVStorageSaveData done [00:52:44]OFDSenderStorePacket done [00:52:44]KKMCreateOFDPacket done [00:52:44]NVStorageSaveData kkm_last_timestamp [00:52:44]File name is /storage/kkm_last_timestamp [00:52:44]Write 4 bytes [00:52:44]NVStorageSaveData done [00:52:44]ExternCall_PrintAddStr [00:52:44]wPrintStart [00:52:44]Write to MH i2c: 01 00 00 E9 8D 76 [00:52:44]Write i2c OK [00:52:44]MH_I2C_Read... [00:52:44]Read from MH i2c: 01 [00:52:44]MH_I2C_Read... [00:52:44]Read from MH i2c: 01 07 00 [00:52:44]MH_I2C_Read... [00:52:44]Read from MH i2c: 01 07 00 E9 8D 00 00 00 00 00 FF 0F 8B [00:52:44]RasterBufferAndPrint [00:52:44]line Счет N : (1)949869 [00:52:44]line ИНН: 02508201610067 [00:52:44]line Контрольно-Кассовый Чек [00:52:44]line ПРОДАЖА [00:52:44]line ТРК (МРК, ГНК) : 21 [00:52:44]line Товар: 2710194800 [00:52:44]line ДТ-К-5 [00:52:44]line 98.430 * 76.20 [00:52:44]line = 7500.37 [00:52:44]line НДС 12% НСП 1% [00:52:44]line > о реализуемом товаре [00:52:44]line ОКРУГЛЕНИЕ: -0.37 [00:52:44]line ИТОГО: 7500.00 [00:52:44]line НСП 1% : 66.37 [00:52:44]line НДС 12% : 796.50 [00:52:44]line Наличными: 0.00 [00:52:44]line Безнал.: 7500.00 [00:52:44]line Место: АЗС № 134 "Партнер Нефть" [00:52:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:52:44]line СНО: Общий режим [00:52:44]line Чек 4 30.07.2024 00:52 [00:52:44]line Смена: 435 ФФД: 1.0 [00:52:44]line ЗНМ: 0300000044 [00:52:44]line РНМ: 0000000000092660 [00:52:44]line Версия ККМ: 001 [00:52:44]line Платежная система: O! деньги [00:52:44]line ФМ: 0000000000874939 [00:52:44]line ФД: 118952 [00:52:44]line ФПД: 25088678686852 [00:52:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T005251&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118952&fm=25088678686852&tin=02508201610067®Number=0000000000092660&sum=750000 [00:52:45]OFD Sender: Processing packet 118952 [packets to send 86, broken 85] [00:52:45]ProducePacketName [00:52:45]name=ofd_packets/00118952 [00:52:45]OFD Sender: To server: pG, [00:52:45]CommunicateWithHost lk.salyk.kg:30040 [00:52:45]ConnectInit lk.salyk.kg [00:52:45]written 0, free lines is 4095 [00:52:45]Connected sock=10 [00:52:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 57 DD 04 01 7B B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 71 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 63 39 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A8 D0 01 00 35 04 06 00 16 D1 69 C7 F0 84 ED 32 23 7F 06 AF 86 5E [00:52:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C8 21 47 00 EB 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 34 39 33 39 10 04 04 00 A8 D0 01 00 F4 03 04 00 EF E6 A7 66 B6 04 01 00 00 45 30 E3 6A 05 FD D1 C1 [00:52:45]CommunicateWithHost err = 0 [00:52:45]CheckOFDResponse [00:52:45]1017 (14) - 77093643461234 [00:52:45]1041 (16) - 0000000000874939 [00:52:45]1040 (4) - 118952 [00:52:45]1012 (4) - 29.07.2024 19:01 [00:52:45]1206 (1) - 0 [00:52:45]OFD Sender: Remove packet 118952 [00:52:45]ProducePacketName [00:52:45]name=ofd_packets/00118952 [00:52:45]NVStorageDeleteData [00:52:45]Write to MH i2c: 01 00 00 13 8E A1 [00:52:45]Write i2c OK [00:52:45]MH_I2C_Read... [00:52:45]Read from MH i2c: 01 [00:52:45]MH_I2C_Read... [00:52:45]Read from MH i2c: 01 07 00 [00:52:45]MH_I2C_Read... [00:52:45]Read from MH i2c: 01 07 00 13 8E 00 00 00 00 00 D2 0C 86 [00:52:45]RasterBufferAndPrint [00:52:45]line [00:52:45]line [00:52:45]line [00:52:45]line [00:52:45]line [00:52:45]written 0, free lines is 3288 [00:52:45]MH_Cut [00:52:45]Write to MH i2c: D1 01 00 1A 8E 01 7A [00:52:45]Write i2c OK [00:52:45]MH_I2C_Read... [00:52:45]Read from MH i2c: D1 [00:52:45]MH_I2C_Read... [00:52:45]Read from MH i2c: D1 01 00 [00:52:45]MH_I2C_Read... [00:52:45]Read from MH i2c: D1 01 00 1A 8E 00 79 [00:52:45]Write to MH i2c: 01 00 00 1B 8E A9 [00:52:45]Write i2c OK [00:52:45]MH_I2C_Read... [00:52:46]OFD Sender: No OFD packet to send [00:52:46]*** Cut start [00:52:46]*** Partial cut [00:52:46]*** CUTSNS_PIN = 1 [00:52:46]*** CUTSNS_PIN = 0 [00:52:46]*** Brake cut motor [00:52:47]Read from MH i2c: 01 [00:52:47]MH_I2C_Read... [00:52:47]*** Stop cut motor [00:52:47]*** Cut end [00:52:47]Read from MH i2c: 01 07 00 [00:52:47]MH_I2C_Read... [00:52:47]Read from MH i2c: 01 07 00 1B 8E 00 00 00 00 00 FF 0F BE [00:52:47]process_action close_receipt done [00:52:47]requested_data is exist [00:52:47]produce_requested_data [00:52:47]requested_item fm.sn is exist - process it [00:52:47]wFMCommunicate request_size=4 [00:52:47]MH_SAM_APDU [00:52:47]CAPDU: 80 11 00 00 [00:52:47]Write to MH i2c: E2 08 00 1C 8E 80 11 00 00 00 00 00 00 24 [00:52:47]Write i2c OK [00:52:47]MH_I2C_Read... [00:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:47]Read from MH i2c: E2 [00:52:47]MH_I2C_Read... [00:52:47]Read from MH i2c: E2 17 00 [00:52:47]MH_I2C_Read... [00:52:47]Read from MH i2c: E2 17 00 1C 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7F [00:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:52:47]wFMCommunicate OK [00:52:47]requested_item fd.num is exist - process it [00:52:47]SAM_PROTO_GetFieldsCounters [00:52:47]wFMCommunicate request_size=4 [00:52:47]MH_SAM_APDU [00:52:47]CAPDU: 80 13 00 00 [00:52:47]Write to MH i2c: E2 08 00 1D 8E 80 13 00 00 00 00 00 00 27 [00:52:47]Write i2c OK [00:52:47]MH_I2C_Read... [00:52:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:52:47]Read from MH i2c: E2 [00:52:47]MH_I2C_Read... [00:52:47]Read from MH i2c: E2 62 00 [00:52:47]MH_I2C_Read... [00:52:47]Read from MH i2c: E2 62 00 1D 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A8 D0 01 00 0E 04 04 00 B3 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 87 [00:52: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A8 D0 01 00 0E 04 04 00 B3 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 [00:52:47]wFMCommunicate OK [00:52:47]SAM_PROTO_GetFieldsCounters done [00:52:47]requested_item shift.num is exist - process it [00:52:47]requested_item shift.opened is exist - process it [00:52:47]req_shift_opened [00:52:47]FM_GetShiftState [00:52:47]SAM_PROTO_GetShiftState [00:52:47]wFMCommunicate request_size=4 [00:52:47]MH_SAM_APDU [00:52:47]CAPDU: 80 13 01 00 [00:52:47]Write to MH i2c: E2 08 00 1E 8E 80 13 01 00 00 00 00 00 29 [00:52:47]Write i2c OK [00:52:47]MH_I2C_Read... [00:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:47]Read from MH i2c: E2 [00:52:47]MH_I2C_Read... [00:52:47]Read from MH i2c: E2 0E 00 [00:52:47]MH_I2C_Read... [00:52:47]Read from MH i2c: E2 0E 00 1E 8E 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 F4 [00:52:47]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [00:52:47]wFMCommunicate OK [00:52:47]SAM_PROTO_GetShiftState done [00:52:47]FM_GetShiftState done [00:52:47]req_shift_opened done [00:52:47]requested_item shift.open_date is exist - process it [00:52:47]req_shift_open_date [00:52:47]req_shift_open_date done [00:52:47]produce_requested_data done [00:52:47]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118952,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [00:52:47]process_action_free close_receipt [00:52:47]json_value_free [00:52:47]json_value_free done [00:52:47]process_json_proto returns [00:52:47]Send response to host [00:52:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118952,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [00:52:47]free response buf [00:52:47]execute_script done [00:52:47]execute_script returns [00:52:47]free content buf [00:52:47]Sock 7.Close socket [00:52:47]Sock 7.Thread stoped [00:52:50]accept exits with 9 [00:52:50]New connection [00:52:50]New thread 3067383140 created [00:52:50]Thread 3067239780 joined [00:52:50]Waiting for new connection... [00:52:50] Sock 9.Parse request [00:52:50]Sock 9.Check first char [00:52:50]Sock 9.First char is OK [00:52:50]request: POST /json_proto HTTP/1.0 [00:52:50]Method: POST [00:52:50]URL: /json_proto [00:52:50]Method is POST - this is cgi request [00:52:50]url: /json_proto [00:52:50]query_string will be loaded in cgi processing [00:52:50]execute_cgi json_proto POST (null) [00:52:50]execute_cgi path=json_proto method=POST [00:52:50]POST find Content-Length [00:52:50]Host: 172.17.45.7:8080 [00:52:50]Content-Length: 819 [00:52:50]Content-Type: application/json [00:52:50] [00:52:50]POST finish read [00:52:50]Found Content-Length = 819 [00:52:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 98.430, "sum" : 7500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 7500.00, "payments": [ { "type": 1, "sum" : 7500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:52:50]execute_script... [00:52:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 98.430, "sum" : 7500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 7500.00, "payments": [ { "type": 1, "sum" : 7500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:52:50]POST & json_proto [00:52:50]process_json_proto [00:52:50]json parsed OK: [00:52:50]protocol is kg_v1.0 [00:52:50]action value=close_receipt [00:52:50]process_action close_receipt [00:52:50]cmd_close_receipt [00:52:50]MH_GetDate [00:52:50]Write to MH i2c: F0 00 00 1F 8E 9C [00:52:50]Write i2c OK [00:52:50]MH_I2C_Read... [00:52:50]Read from MH i2c: F0 [00:52:50]MH_I2C_Read... [00:52:50]Read from MH i2c: F0 09 00 [00:52:50]MH_I2C_Read... [00:52:50]Read from MH i2c: F0 09 00 1F 8E 00 6A 39 A8 66 90 0F 3E 66 99 [00:52:50]GetLastDocTimeStamp 1722300771 [00:52:50]current date 1722300778 [00:52:50]FM_GetShiftState [00:52:50]SAM_PROTO_GetShiftState [00:52:50]wFMCommunicate request_size=4 [00:52:50]MH_SAM_APDU [00:52:50]CAPDU: 80 13 01 00 [00:52:50]Write to MH i2c: E2 08 00 20 8E 80 13 01 00 00 00 00 00 2B [00:52:50]Write i2c OK [00:52:50]MH_I2C_Read... [00:52:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:50]Read from MH i2c: E2 [00:52:50]MH_I2C_Read... [00:52:50]Read from MH i2c: E2 0E 00 [00:52:50]MH_I2C_Read... [00:52:50]Read from MH i2c: E2 0E 00 20 8E 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 F6 [00:52:50]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [00:52:50]wFMCommunicate OK [00:52:50]SAM_PROTO_GetShiftState done [00:52:50]FM_GetShiftState done [00:52:50]opened in 1722298242 [00:52:50]opened+sec_in_day 1722384642 [00:52:50]quantity*price = 750036 [00:52:50]sum+1 = 750038 [00:52:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 7500.00 НСП 1% : 66.37 НДС 12% : 796.50 Наличными: 0.00 Безнал.: 7500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 5 30.07.2024 00:52 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118953 ФПД: 245640857618726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T005258&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118953&fm=245640857618726&tin=02508201610067®Number=0000000000092660&sum=750000 [00:52:51]StoreToDocumentArchive [00:52:51]shift 435 fd 118953 [00:52:51]save to /storage/0435/doc_00118953 [00:52:51]save last doc name /storage/0435/doc_00118953 to /storage/kkm_last_doc_name [00:52:51]save OK [00:52:51]Clear old archive folders... [00:52:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:52:51]tlvbuf is 020CE520 [00:52:51]SAM_PROTO_ClearQueue [00:52:51]wFMCommunicate request_size=4 [00:52:51]MH_SAM_APDU [00:52:51]CAPDU: 80 09 00 00 [00:52:51]Write to MH i2c: E2 08 00 2D 8E 80 09 00 00 00 00 00 00 2D [00:52:51]Write i2c OK [00:52:51]MH_I2C_Read... [00:52:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:52:51]Read from MH i2c: E2 [00:52:51]MH_I2C_Read... [00:52:51]Read from MH i2c: E2 03 00 [00:52:51]MH_I2C_Read... [00:52:51]Read from MH i2c: E2 03 00 2D 8E 00 90 00 2F [00:52:51]RAPDU: 90 00 [00:52:51]wFMCommunicate OK [00:52:51]SAM_PROTO_ClearQueue done [00:52:51]KKMCreateOFDPacket [00:52:51]OFDProtocolAddRootSTLVToBuf [00:52:51]FM_MakeSignedData [00:52:51]FM_MakeSignedData [00:52:51]SAM_PROTO_SignData [00:52:51]wFMCommunicate request_size=4 [00:52:51]MH_SAM_APDU [00:52:51]CAPDU: 80 0D 01 02 [00:52:51]Write to MH i2c: E2 08 00 2E 8E 80 0D 01 02 00 00 00 00 35 [00:52:51]Write i2c OK [00:52:51]MH_I2C_Read... [00:52:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:52:51]Read from MH i2c: E2 [00:52:51]MH_I2C_Read... [00:52:51]Read from MH i2c: E2 03 00 [00:52:51]MH_I2C_Read... [00:52:51]Read from MH i2c: E2 03 00 2E 8E 00 90 00 30 [00:52:51]RAPDU: 90 00 [00:52:51]wFMCommunicate OK [00:52:51]wFMCommunicate request_size=255 [00:52:51]MH_SAM_APDU [00:52:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 71 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 6A 39 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A9 D0 01 00 35 04 06 00 DF 68 B8 0F [00:52:51]Write to MH i2c: E2 02 01 2F 8E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 71 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 6A 39 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A9 D0 01 00 35 04 06 00 DF 68 B8 0F 00 00 78 [00:52:51]Write i2c OK [00:52:51]MH_I2C_Read... [00:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:51]Read from MH i2c: E2 [00:52:51]MH_I2C_Read... [00:52:51]Read from MH i2c: E2 03 00 [00:52:51]MH_I2C_Read... [00:52:51]Read from MH i2c: E2 03 00 2F 8E 00 90 00 31 [00:52:51]RAPDU: 90 00 [00:52:51]wFMCommunicate OK [00:52:51]wFMCommunicate request_size=7 [00:52:51]MH_SAM_APDU [00:52:51]CAPDU: 80 0D 02 02 02 89 26 [00:52:51]Write to MH i2c: E2 0A 00 30 8E 80 0D 02 02 02 00 89 26 00 00 EB [00:52:51]Write i2c OK [00:52:51]MH_I2C_Read... [00:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:51]Read from MH i2c: E2 [00:52:51]MH_I2C_Read... [00:52:51]Read from MH i2c: E2 03 00 [00:52:51]MH_I2C_Read... [00:52:51]Read from MH i2c: E2 03 00 30 8E 00 90 00 32 [00:52:51]RAPDU: 90 00 [00:52:51]wFMCommunicate OK [00:52:51]wFMCommunicate request_size=4 [00:52:51]MH_SAM_APDU [00:52:51]CAPDU: 80 0D 03 02 [00:52:51]Write to MH i2c: E2 08 00 31 8E 80 0D 03 02 00 00 00 00 3A [00:52:51]Write i2c OK [00:52:51]MH_I2C_Read... [00:52:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:52:51]Read from MH i2c: E2 [00:52:51]MH_I2C_Read... [00:52:51]Read from MH i2c: E2 0B 00 [00:52:51]MH_I2C_Read... [00:52:51]Read from MH i2c: E2 0B 00 31 8E 00 CE 1D 78 F5 A5 67 43 72 90 00 54 [00:52:51]RAPDU: CE 1D 78 F5 A5 67 43 72 90 00 [00:52:51]wFMCommunicate OK [00:52:51]SAM_PROTO_SignData done [00:52:51]FM_MakeSignedData done [00:52:51]CreateOFDProtocolMessage [00:52:51]wFMCommunicate request_size=4 [00:52:51]MH_SAM_APDU [00:52:51]CAPDU: 80 11 00 00 [00:52:51]Write to MH i2c: E2 08 00 32 8E 80 11 00 00 00 00 00 00 3A [00:52:51]Write i2c OK [00:52:51]MH_I2C_Read... [00:52:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:51]Read from MH i2c: E2 [00:52:51]MH_I2C_Read... [00:52:51]Read from MH i2c: E2 17 00 [00:52:51]MH_I2C_Read... [00:52:51]Read from MH i2c: E2 17 00 32 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 95 [00:52:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:52:51]wFMCommunicate OK [00:52:51]CreateOFDProtocolMessage done [00:52:51]OFDSenderStorePacket 118953 [00:52:51]StoreOFDPacket docnum=118953 [00:52:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C3 6B 04 01 0F 49 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 71 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 6A 39 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A9 D0 01 00 35 04 06 00 DF 68 B8 0F 89 26 CE 1D 78 F5 A5 67 43 72 [00:52:51]CheckFolder [00:52:51]dirname=/storage/ofd_packets [00:52:51]CheckFolder done [00:52:51]ProducePacketName [00:52:51]name=ofd_packets/00118953 [00:52:51]NVStorageSaveData ofd_packets/00118953 [00:52:51]File name is /storage/ofd_packets/00118953 [00:52:51]Write 298 bytes [00:52:51]NVStorageSaveData done [00:52:51]OFDSenderStorePacket done [00:52:51]KKMCreateOFDPacket done [00:52:51]NVStorageSaveData kkm_last_timestamp [00:52:51]File name is /storage/kkm_last_timestamp [00:52:51]Write 4 bytes [00:52:51]NVStorageSaveData done [00:52:51]ExternCall_PrintAddStr [00:52:51]wPrintStart [00:52:51]Write to MH i2c: 01 00 00 33 8E C1 [00:52:51]Write i2c OK [00:52:51]MH_I2C_Read... [00:52:51]Read from MH i2c: 01 [00:52:51]MH_I2C_Read... [00:52:51]Read from MH i2c: 01 07 00 [00:52:51]MH_I2C_Read... [00:52:51]Read from MH i2c: 01 07 00 33 8E 00 00 00 00 00 FF 0F D6 [00:52:51]RasterBufferAndPrint [00:52:51]line Счет N : (1)949870 [00:52:51]line ИНН: 02508201610067 [00:52:51]line Контрольно-Кассовый Чек [00:52:51]line ПРОДАЖА [00:52:51]line ТРК (МРК, ГНК) : 11 [00:52:51]line Товар: 2710194800 [00:52:51]line ДТ-К-5 [00:52:51]line 98.430 * 76.20 [00:52:51]line = 7500.37 [00:52:51]line НДС 12% НСП 1% [00:52:51]line > о реализуемом товаре [00:52:51]line ОКРУГЛЕНИЕ: -0.37 [00:52:51]line ИТОГО: 7500.00 [00:52:51]line НСП 1% : 66.37 [00:52:51]line НДС 12% : 796.50 [00:52:51]line Наличными: 0.00 [00:52:51]line Безнал.: 7500.00 [00:52:51]line Место: АЗС № 134 "Партнер Нефть" [00:52:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:52:51]line СНО: Общий режим [00:52:51]line Чек 5 30.07.2024 00:52 [00:52:51]line Смена: 435 ФФД: 1.0 [00:52:51]line ЗНМ: 0300000044 [00:52:51]line РНМ: 0000000000092660 [00:52:51]line Версия ККМ: 001 [00:52:51]line Платежная система: O! деньги [00:52:51]line ФМ: 0000000000874939 [00:52:51]line ФД: 118953 [00:52:51]line ФПД: 245640857618726 [00:52:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T005258&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118953&fm=245640857618726&tin=02508201610067®Number=0000000000092660&sum=750000 [00:52:51]written 0, free lines is 4095 [00:52:52]OFD Sender: Processing packet 118953 [packets to send 86, broken 85] [00:52:52]ProducePacketName [00:52:52]name=ofd_packets/00118953 [00:52:52]OFD Sender: To server: pG, [00:52:52]CommunicateWithHost lk.salyk.kg:30040 [00:52:52]ConnectInit lk.salyk.kg [00:52:52]Connected sock=10 [00:52:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C3 6B 04 01 0F 49 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 71 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 6A 39 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A9 D0 01 00 35 04 06 00 DF 68 B8 0F 89 26 CE 1D 78 F5 A5 67 43 72 [00:52:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 57 95 47 00 03 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 34 39 33 39 10 04 04 00 A9 D0 01 00 F4 03 04 00 F6 E6 A7 66 B6 04 01 00 00 3E EC C5 F0 C5 19 41 F8 [00:52:52]CommunicateWithHost err = 0 [00:52:52]CheckOFDResponse [00:52:52]1017 (14) - 77093643461234 [00:52:52]1041 (16) - 0000000000874939 [00:52:52]1040 (4) - 118953 [00:52:52]1012 (4) - 29.07.2024 19:01 [00:52:52]1206 (1) - 0 [00:52:52]OFD Sender: Remove packet 118953 [00:52:52]ProducePacketName [00:52:52]name=ofd_packets/00118953 [00:52:52]NVStorageDeleteData [00:52:52]Write to MH i2c: 01 00 00 5D 8E EB [00:52:52]Write i2c OK [00:52:52]MH_I2C_Read... [00:52:52]Read from MH i2c: 01 [00:52:52]MH_I2C_Read... [00:52:52]Read from MH i2c: 01 07 00 [00:52:52]MH_I2C_Read... [00:52:52]Read from MH i2c: 01 07 00 5D 8E 00 00 00 00 00 0E 0D 0D [00:52:52]RasterBufferAndPrint [00:52:52]line [00:52:52]line [00:52:52]line [00:52:52]line [00:52:52]line [00:52:52]written 0, free lines is 3354 [00:52:52]MH_Cut [00:52:52]Write to MH i2c: D1 01 00 64 8E 01 C4 [00:52:52]Write i2c OK [00:52:52]MH_I2C_Read... [00:52:52]Read from MH i2c: D1 [00:52:52]MH_I2C_Read... [00:52:52]Read from MH i2c: D1 01 00 [00:52:52]MH_I2C_Read... [00:52:52]Read from MH i2c: D1 01 00 64 8E 00 C3 [00:52:52]Write to MH i2c: 01 00 00 65 8E F3 [00:52:52]Write i2c OK [00:52:52]MH_I2C_Read... [00:52:52]OFD Sender: No OFD packet to send [00:52:53]*** Cut start [00:52:53]*** Partial cut [00:52:53]*** CUTSNS_PIN = 1 [00:52:53]*** CUTSNS_PIN = 0 [00:52:53]*** Brake cut motor [00:52:53]Read from MH i2c: 01 [00:52:53]MH_I2C_Read... [00:52:53]*** Stop cut motor [00:52:53]*** Cut end [00:52:53]Read from MH i2c: 01 07 00 [00:52:53]MH_I2C_Read... [00:52:53]Read from MH i2c: 01 07 00 65 8E 00 00 00 00 00 FF 0F 08 [00:52:53]process_action close_receipt done [00:52:53]requested_data is exist [00:52:53]produce_requested_data [00:52:53]requested_item fm.sn is exist - process it [00:52:53]wFMCommunicate request_size=4 [00:52:53]MH_SAM_APDU [00:52:53]CAPDU: 80 11 00 00 [00:52:53]Write to MH i2c: E2 08 00 66 8E 80 11 00 00 00 00 00 00 6E [00:52:53]Write i2c OK [00:52:53]MH_I2C_Read... [00:52:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:53]Read from MH i2c: E2 [00:52:53]MH_I2C_Read... [00:52:53]Read from MH i2c: E2 17 00 [00:52:53]MH_I2C_Read... [00:52:53]Read from MH i2c: E2 17 00 66 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C9 [00:52:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:52:53]wFMCommunicate OK [00:52:53]requested_item fd.num is exist - process it [00:52:53]SAM_PROTO_GetFieldsCounters [00:52:53]wFMCommunicate request_size=4 [00:52:53]MH_SAM_APDU [00:52:53]CAPDU: 80 13 00 00 [00:52:53]Write to MH i2c: E2 08 00 67 8E 80 13 00 00 00 00 00 00 71 [00:52:53]Write i2c OK [00:52:53]MH_I2C_Read... [00:52:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:52:53]Read from MH i2c: E2 [00:52:53]MH_I2C_Read... [00:52:53]Read from MH i2c: E2 62 00 [00:52:53]MH_I2C_Read... [00:52:53]Read from MH i2c: E2 62 00 67 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A9 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [00:52: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 A9 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:52:54]wFMCommunicate OK [00:52:54]SAM_PROTO_GetFieldsCounters done [00:52:54]requested_item shift.num is exist - process it [00:52:54]requested_item shift.opened is exist - process it [00:52:54]req_shift_opened [00:52:54]FM_GetShiftState [00:52:54]SAM_PROTO_GetShiftState [00:52:54]wFMCommunicate request_size=4 [00:52:54]MH_SAM_APDU [00:52:54]CAPDU: 80 13 01 00 [00:52:54]Write to MH i2c: E2 08 00 68 8E 80 13 01 00 00 00 00 00 73 [00:52:54]Write i2c OK [00:52:54]MH_I2C_Read... [00:52:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:54]Read from MH i2c: E2 [00:52:54]MH_I2C_Read... [00:52:54]Read from MH i2c: E2 0E 00 [00:52:54]MH_I2C_Read... [00:52:54]Read from MH i2c: E2 0E 00 68 8E 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 3E [00:52:54]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [00:52:54]wFMCommunicate OK [00:52:54]SAM_PROTO_GetShiftState done [00:52:54]FM_GetShiftState done [00:52:54]req_shift_opened done [00:52:54]requested_item shift.open_date is exist - process it [00:52:54]req_shift_open_date [00:52:54]req_shift_open_date done [00:52:54]produce_requested_data done [00:52:54]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118953,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [00:52:54]process_action_free close_receipt [00:52:54]json_value_free [00:52:54]json_value_free done [00:52:54]process_json_proto returns [00:52:54]Send response to host [00:52:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118953,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [00:52:54]free response buf [00:52:54]execute_script done [00:52:54]execute_script returns [00:52:54]free content buf [00:52:54]Sock 9.Close socket [00:52:54]Sock 9.Thread stoped [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:53]OFD Sender: No OFD packet to send [00:54:58]OFD Sender: No OFD packet to send [00:55:03]OFD Sender: No OFD packet to send [00:55:08]OFD Sender: No OFD packet to send [00:55:13]OFD Sender: No OFD packet to send [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:58]OFD Sender: No OFD packet to send [00:56:03]OFD Sender: No OFD packet to send [00:56:08]OFD Sender: No OFD packet to send [00:56:13]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]OFD Sender: No OFD packet to send [00:56:38]OFD Sender: No OFD packet to send [00:56:43]OFD Sender: No OFD packet to send [00:56:48]OFD Sender: No OFD packet to send [00:56:53]OFD Sender: No OFD packet to send [00:56:58]OFD Sender: No OFD packet to send [00:57:03]OFD Sender: No OFD packet to send [00:57:08]OFD Sender: No OFD packet to send [00:57:13]OFD Sender: No OFD packet to send [00:57:18]OFD Sender: No OFD packet to send [00:57:23]OFD Sender: No OFD packet to send [00:57:28]OFD Sender: No OFD packet to send [00:57:33]OFD Sender: No OFD packet to send [00:57:38]OFD Sender: No OFD packet to send [00:57:43]OFD Sender: No OFD packet to send [00:57:48]OFD Sender: No OFD packet to send [00:57:53]OFD Sender: No OFD packet to send [00:57:58]OFD Sender: No OFD packet to send [00:58:03]OFD Sender: No OFD packet to send [00:58:08]OFD Sender: No OFD packet to send [00:58:13]OFD Sender: No OFD packet to send [00:58:18]OFD Sender: No OFD packet to send [00:58:23]OFD Sender: No OFD packet to send [00:58:28]OFD Sender: No OFD packet to send [00:58:33]OFD Sender: No OFD packet to send [00:58:38]OFD Sender: No OFD packet to send [00:58:43]OFD Sender: No OFD packet to send [00:58:48]OFD Sender: No OFD packet to send [00:58:53]OFD Sender: No OFD packet to send [00:58:58]OFD Sender: No OFD packet to send [00:59:03]OFD Sender: No OFD packet to send [00:59:08]OFD Sender: No OFD packet to send [00:59:13]OFD Sender: No OFD packet to send [00:59:18]OFD Sender: No OFD packet to send [00:59:23]OFD Sender: No OFD packet to send [00:59:28]OFD Sender: No OFD packet to send [00:59:33]OFD Sender: No OFD packet to send [00:59:38]OFD Sender: No OFD packet to send [00:59:43]OFD Sender: No OFD packet to send [00:59:48]OFD Sender: No OFD packet to send [00:59:53]OFD Sender: No OFD packet to send [00:59:58]OFD Sender: No OFD packet to send [01:00:03]OFD Sender: No OFD packet to send [01:00:08]OFD Sender: No OFD packet to send [01:00:13]OFD Sender: No OFD packet to send [01:00:18]OFD Sender: No OFD packet to send [01:00:23]OFD Sender: No OFD packet to send [01:00:28]OFD Sender: No OFD packet to send [01:00:33]OFD Sender: No OFD packet to send [01:00:38]OFD Sender: No OFD packet to send [01:00:43]OFD Sender: No OFD packet to send [01:00:48]OFD Sender: No OFD packet to send [01:00:53]OFD Sender: No OFD packet to send [01:00:58]OFD Sender: No OFD packet to send [01:01:03]OFD Sender: No OFD packet to send [01:01:08]OFD Sender: No OFD packet to send [01:01:13]OFD Sender: No OFD packet to send [01:01:18]OFD Sender: No OFD packet to send [01:01:23]OFD Sender: No OFD packet to send [01:01:28]OFD Sender: No OFD packet to send [01:01:33]OFD Sender: No OFD packet to send [01:01:38]OFD Sender: No OFD packet to send [01:01:43]OFD Sender: No OFD packet to send [01:01:48]OFD Sender: No OFD packet to send [01:01:53]OFD Sender: No OFD packet to send [01:01:58]OFD Sender: No OFD packet to send [01:02:03]OFD Sender: No OFD packet to send [01:02:08]OFD Sender: No OFD packet to send [01:02:13]OFD Sender: No OFD packet to send [01:02:18]OFD Sender: No OFD packet to send [01:02:23]OFD Sender: No OFD packet to send [01:02:28]OFD Sender: No OFD packet to send [01:02:33]OFD Sender: No OFD packet to send [01:02:38]OFD Sender: No OFD packet to send [01:02:43]OFD Sender: No OFD packet to send [01:02:48]OFD Sender: No OFD packet to send [01:02:53]OFD Sender: No OFD packet to send [01:02:58]OFD Sender: No OFD packet to send [01:03:03]OFD Sender: No OFD packet to send [01:03:08]OFD Sender: No OFD packet to send [01:03:13]OFD Sender: No OFD packet to send [01:03:18]OFD Sender: No OFD packet to send [01:03:23]OFD Sender: No OFD packet to send [01:03:28]OFD Sender: No OFD packet to send [01:03:33]OFD Sender: No OFD packet to send [01:03:38]OFD Sender: No OFD packet to send [01:03:43]OFD Sender: No OFD packet to send [01:03:48]OFD Sender: No OFD packet to send [01:03:53]OFD Sender: No OFD packet to send [01:03:58]OFD Sender: No OFD packet to send [01:04:03]OFD Sender: No OFD packet to send [01:04:08]OFD Sender: No OFD packet to send [01:04:13]OFD Sender: No OFD packet to send [01:04:18]OFD Sender: No OFD packet to send [01:04:23]OFD Sender: No OFD packet to send [01:04:28]OFD Sender: No OFD packet to send [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:05:08]OFD Sender: No OFD packet to send [01:05:13]OFD Sender: No OFD packet to send [01:05:18]OFD Sender: No OFD packet to send [01:05:23]OFD Sender: No OFD packet to send [01:05:28]OFD Sender: No OFD packet to send [01:05:33]OFD Sender: No OFD packet to send [01:05:38]OFD Sender: No OFD packet to send [01:05:43]OFD Sender: No OFD packet to send [01:05:48]OFD Sender: No OFD packet to send [01:05:53]OFD Sender: No OFD packet to send [01:05:58]OFD Sender: No OFD packet to send [01:06:03]OFD Sender: No OFD packet to send [01:06:08]OFD Sender: No OFD packet to send [01:06:13]OFD Sender: No OFD packet to send [01:06:18]OFD Sender: No OFD packet to send [01:06:23]OFD Sender: No OFD packet to send [01:06:28]OFD Sender: No OFD packet to send [01:06:33]OFD Sender: No OFD packet to send [01:06:38]OFD Sender: No OFD packet to send [01:06:43]OFD Sender: No OFD packet to send [01:06:48]OFD Sender: No OFD packet to send [01:06:53]OFD Sender: No OFD packet to send [01:06:58]OFD Sender: No OFD packet to send [01:07:03]OFD Sender: No OFD packet to send [01:07:08]OFD Sender: No OFD packet to send [01:07:13]OFD Sender: No OFD packet to send [01:07:18]OFD Sender: No OFD packet to send [01:07:23]OFD Sender: No OFD packet to send [01:07:28]OFD Sender: No OFD packet to send [01:07:33]OFD Sender: No OFD packet to send [01:07:38]OFD Sender: No OFD packet to send [01:07:43]OFD Sender: No OFD packet to send [01:07:48]OFD Sender: No OFD packet to send [01:07:53]OFD Sender: No OFD packet to send [01:07:58]OFD Sender: No OFD packet to send [01:08:03]OFD Sender: No OFD packet to send [01:08:08]OFD Sender: No OFD packet to send [01:08:13]OFD Sender: No OFD packet to send [01:08:18]OFD Sender: No OFD packet to send [01:08:23]OFD Sender: No OFD packet to send [01:08:28]OFD Sender: No OFD packet to send [01:08:33]OFD Sender: No OFD packet to send [01:08:38]OFD Sender: No OFD packet to send [01:08:43]OFD Sender: No OFD packet to send [01:08:48]OFD Sender: No OFD packet to send [01:08:53]OFD Sender: No OFD packet to send [01:08:58]OFD Sender: No OFD packet to send [01:09:03]OFD Sender: No OFD packet to send [01:09:08]OFD Sender: No OFD packet to send [01:09:13]OFD Sender: No OFD packet to send [01:09:18]OFD Sender: No OFD packet to send [01:09:23]OFD Sender: No OFD packet to send [01:09:28]OFD Sender: No OFD packet to send [01:09:33]OFD Sender: No OFD packet to send [01:09:38]OFD Sender: No OFD packet to send [01:09:43]OFD Sender: No OFD packet to send [01:09:48]OFD Sender: No OFD packet to send [01:09:53]OFD Sender: No OFD packet to send [01:09:59]OFD Sender: No OFD packet to send [01:10:04]OFD Sender: No OFD packet to send [01:10:09]OFD Sender: No OFD packet to send [01:10:14]OFD Sender: No OFD packet to send [01:10:19]OFD Sender: No OFD packet to send [01:10:24]OFD Sender: No OFD packet to send [01:10:29]OFD Sender: No OFD packet to send [01:10:34]OFD Sender: No OFD packet to send [01:10:39]OFD Sender: No OFD packet to send [01:10:44]OFD Sender: No OFD packet to send [01:10:49]OFD Sender: No OFD packet to send [01:10:54]OFD Sender: No OFD packet to send [01:10:59]OFD Sender: No OFD packet to send [01:11:04]OFD Sender: No OFD packet to send [01:11:09]OFD Sender: No OFD packet to send [01:11:14]OFD Sender: No OFD packet to send [01:11:19]OFD Sender: No OFD packet to send [01:11:24]OFD Sender: No OFD packet to send [01:11:29]OFD Sender: No OFD packet to send [01:11:34]OFD Sender: No OFD packet to send [01:11:39]OFD Sender: No OFD packet to send [01:11:44]OFD Sender: No OFD packet to send [01:11:49]OFD Sender: No OFD packet to send [01:11:54]OFD Sender: No OFD packet to send [01:11:59]OFD Sender: No OFD packet to send [01:12:04]OFD Sender: No OFD packet to send [01:12:09]OFD Sender: No OFD packet to send [01:12:14]OFD Sender: No OFD packet to send [01:12:19]OFD Sender: No OFD packet to send [01:12:24]OFD Sender: No OFD packet to send [01:12:29]OFD Sender: No OFD packet to send [01:12:34]OFD Sender: No OFD packet to send [01:12:39]OFD Sender: No OFD packet to send [01:12:44]OFD Sender: No OFD packet to send [01:12:49]OFD Sender: No OFD packet to send [01:12:54]OFD Sender: No OFD packet to send [01:12:59]OFD Sender: No OFD packet to send [01:13:04]OFD Sender: No OFD packet to send [01:13:09]OFD Sender: No OFD packet to send [01:13:14]OFD Sender: No OFD packet to send [01:13:19]OFD Sender: No OFD packet to send [01:13:24]OFD Sender: No OFD packet to send [01:13:29]OFD Sender: No OFD packet to send [01:13:34]OFD Sender: No OFD packet to send [01:13:39]OFD Sender: No OFD packet to send [01:13:44]OFD Sender: No OFD packet to send [01:13:49]OFD Sender: No OFD packet to send [01:13:54]OFD Sender: No OFD packet to send [01:13:59]OFD Sender: No OFD packet to send [01:14:04]OFD Sender: No OFD packet to send [01:14:09]OFD Sender: No OFD packet to send [01:14:14]OFD Sender: No OFD packet to send [01:14:19]OFD Sender: No OFD packet to send [01:14:24]OFD Sender: No OFD packet to send [01:14:29]OFD Sender: No OFD packet to send [01:14:34]OFD Sender: No OFD packet to send [01:14:39]OFD Sender: No OFD packet to send [01:14:44]OFD Sender: No OFD packet to send [01:14:49]OFD Sender: No OFD packet to send [01:14:54]OFD Sender: No OFD packet to send [01:14:59]OFD Sender: No OFD packet to send [01:15:04]OFD Sender: No OFD packet to send [01:15:09]OFD Sender: No OFD packet to send [01:15:14]OFD Sender: No OFD packet to send [01:15:19]OFD Sender: No OFD packet to send [01:15:24]OFD Sender: No OFD packet to send [01:15:29]OFD Sender: No OFD packet to send [01:15:34]OFD Sender: No OFD packet to send [01:15:39]OFD Sender: No OFD packet to send [01:15:44]OFD Sender: No OFD packet to send [01:15:49]OFD Sender: No OFD packet to send [01:15:54]OFD Sender: No OFD packet to send [01:15:59]OFD Sender: No OFD packet to send [01:16:04]OFD Sender: No OFD packet to send [01:16:09]OFD Sender: No OFD packet to send [01:16:14]OFD Sender: No OFD packet to send [01:16:19]OFD Sender: No OFD packet to send [01:16:24]OFD Sender: No OFD packet to send [01:16:29]OFD Sender: No OFD packet to send [01:16:34]OFD Sender: No OFD packet to send [01:16:39]OFD Sender: No OFD packet to send [01:16:44]OFD Sender: No OFD packet to send [01:16:49]OFD Sender: No OFD packet to send [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:09]OFD Sender: No OFD packet to send [01:17:14]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send [01:18:34]OFD Sender: No OFD packet to send [01:18:39]OFD Sender: No OFD packet to send [01:18:44]OFD Sender: No OFD packet to send [01:18:49]OFD Sender: No OFD packet to send [01:18:54]OFD Sender: No OFD packet to send [01:18:59]OFD Sender: No OFD packet to send [01:19:04]OFD Sender: No OFD packet to send [01:19:09]OFD Sender: No OFD packet to send [01:19:14]OFD Sender: No OFD packet to send [01:19:19]OFD Sender: No OFD packet to send [01:19:24]OFD Sender: No OFD packet to send [01:19:29]OFD Sender: No OFD packet to send [01:19:34]OFD Sender: No OFD packet to send [01:19:39]OFD Sender: No OFD packet to send [01:19:44]OFD Sender: No OFD packet to send [01:19:49]OFD Sender: No OFD packet to send [01:19:54]OFD Sender: No OFD packet to send [01:19:59]OFD Sender: No OFD packet to send [01:20:04]OFD Sender: No OFD packet to send [01:20:09]OFD Sender: No OFD packet to send [01:20:14]OFD Sender: No OFD packet to send [01:20:19]OFD Sender: No OFD packet to send [01:20:24]OFD Sender: No OFD packet to send [01:20:29]OFD Sender: No OFD packet to send [01:20:34]OFD Sender: No OFD packet to send [01:20:39]OFD Sender: No OFD packet to send [01:20:44]OFD Sender: No OFD packet to send [01:20:49]OFD Sender: No OFD packet to send [01:20:54]OFD Sender: No OFD packet to send [01:20:59]OFD Sender: No OFD packet to send [01:21:04]OFD Sender: No OFD packet to send [01:21:09]OFD Sender: No OFD packet to send [01:21:14]OFD Sender: No OFD packet to send [01:21:19]OFD Sender: No OFD packet to send [01:21:24]OFD Sender: No OFD packet to send [01:21:29]OFD Sender: No OFD packet to send [01:21:34]OFD Sender: No OFD packet to send [01:21:39]OFD Sender: No OFD packet to send [01:21:44]OFD Sender: No OFD packet to send [01:21:49]OFD Sender: No OFD packet to send [01:21:54]OFD Sender: No OFD packet to send [01:21:59]OFD Sender: No OFD packet to send [01:22:04]OFD Sender: No OFD packet to send [01:22:09]OFD Sender: No OFD packet to send [01:22:14]OFD Sender: No OFD packet to send [01:22:19]OFD Sender: No OFD packet to send [01:22:24]OFD Sender: No OFD packet to send [01:22:29]OFD Sender: No OFD packet to send [01:22:34]OFD Sender: No OFD packet to send [01:22:39]OFD Sender: No OFD packet to send [01:22:44]OFD Sender: No OFD packet to send [01:22:49]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:55]OFD Sender: No OFD packet to send [01:26:00]OFD Sender: No OFD packet to send [01:26:05]OFD Sender: No OFD packet to send [01:26:10]OFD Sender: No OFD packet to send [01:26:15]OFD Sender: No OFD packet to send [01:26:20]OFD Sender: No OFD packet to send [01:26:25]OFD Sender: No OFD packet to send [01:26:30]OFD Sender: No OFD packet to send [01:26:35]OFD Sender: No OFD packet to send [01:26:40]OFD Sender: No OFD packet to send [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:20]OFD Sender: No OFD packet to send [01:27:25]OFD Sender: No OFD packet to send [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:45]OFD Sender: No OFD packet to send [01:27:50]OFD Sender: No OFD packet to send [01:27:55]OFD Sender: No OFD packet to send [01:28:00]OFD Sender: No OFD packet to send [01:28:05]OFD Sender: No OFD packet to send [01:28:10]OFD Sender: No OFD packet to send [01:28:15]OFD Sender: No OFD packet to send [01:28:20]OFD Sender: No OFD packet to send [01:28:25]OFD Sender: No OFD packet to send [01:28:30]OFD Sender: No OFD packet to send [01:28:35]OFD Sender: No OFD packet to send [01:28:40]OFD Sender: No OFD packet to send [01:28:45]OFD Sender: No OFD packet to send [01:28:50]OFD Sender: No OFD packet to send [01:28:55]OFD Sender: No OFD packet to send [01:29:00]OFD Sender: No OFD packet to send [01:29:05]OFD Sender: No OFD packet to send [01:29:10]OFD Sender: No OFD packet to send [01:29:15]OFD Sender: No OFD packet to send [01:29:20]OFD Sender: No OFD packet to send [01:29:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:25]OFD Sender: No OFD packet to send [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:45]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:01]OFD Sender: No OFD packet to send [01:42:06]OFD Sender: No OFD packet to send [01:42:11]OFD Sender: No OFD packet to send [01:42:16]OFD Sender: No OFD packet to send [01:42:21]OFD Sender: No OFD packet to send [01:42:26]OFD Sender: No OFD packet to send [01:42:31]OFD Sender: No OFD packet to send [01:42:36]OFD Sender: No OFD packet to send [01:42:41]OFD Sender: No OFD packet to send [01:42:46]OFD Sender: No OFD packet to send [01:42:51]OFD Sender: No OFD packet to send [01:42:56]OFD Sender: No OFD packet to send [01:43:01]OFD Sender: No OFD packet to send [01:43:06]OFD Sender: No OFD packet to send [01:43:11]OFD Sender: No OFD packet to send [01:43:16]OFD Sender: No OFD packet to send [01:43:21]OFD Sender: No OFD packet to send [01:43:26]OFD Sender: No OFD packet to send [01:43:31]OFD Sender: No OFD packet to send [01:43:36]OFD Sender: No OFD packet to send [01:43:41]OFD Sender: No OFD packet to send [01:43:46]OFD Sender: No OFD packet to send [01:43:51]OFD Sender: No OFD packet to send [01:43:56]OFD Sender: No OFD packet to send [01:44:01]OFD Sender: No OFD packet to send [01:44:06]OFD Sender: No OFD packet to send [01:44:11]OFD Sender: No OFD packet to send [01:44:16]OFD Sender: No OFD packet to send [01:44:21]OFD Sender: No OFD packet to send [01:44:26]OFD Sender: No OFD packet to send [01:44:31]OFD Sender: No OFD packet to send [01:44:36]OFD Sender: No OFD packet to send [01:44:41]OFD Sender: No OFD packet to send [01:44:46]OFD Sender: No OFD packet to send [01:44:51]OFD Sender: No OFD packet to send [01:44:56]OFD Sender: No OFD packet to send [01:45:01]OFD Sender: No OFD packet to send [01:45:06]OFD Sender: No OFD packet to send [01:45:11]OFD Sender: No OFD packet to send [01:45:16]OFD Sender: No OFD packet to send [01:45:21]OFD Sender: No OFD packet to send [01:45:26]OFD Sender: No OFD packet to send [01:45:31]OFD Sender: No OFD packet to send [01:45:36]OFD Sender: No OFD packet to send [01:45:41]OFD Sender: No OFD packet to send [01:45:46]OFD Sender: No OFD packet to send [01:45:51]OFD Sender: No OFD packet to send [01:45:56]OFD Sender: No OFD packet to send [01:46:01]OFD Sender: No OFD packet to send [01:46:06]OFD Sender: No OFD packet to send [01:46:11]OFD Sender: No OFD packet to send [01:46:16]OFD Sender: No OFD packet to send [01:46:21]OFD Sender: No OFD packet to send [01:46:26]OFD Sender: No OFD packet to send [01:46:31]OFD Sender: No OFD packet to send [01:46:36]OFD Sender: No OFD packet to send [01:46:41]OFD Sender: No OFD packet to send [01:46:46]OFD Sender: No OFD packet to send [01:46:51]OFD Sender: No OFD packet to send [01:46:56]OFD Sender: No OFD packet to send [01:47:01]OFD Sender: No OFD packet to send [01:47:06]OFD Sender: No OFD packet to send [01:47:11]OFD Sender: No OFD packet to send [01:47:16]OFD Sender: No OFD packet to send [01:47:21]OFD Sender: No OFD packet to send [01:47:26]OFD Sender: No OFD packet to send [01:47:31]OFD Sender: No OFD packet to send [01:47:36]OFD Sender: No OFD packet to send [01:47:41]OFD Sender: No OFD packet to send [01:47:46]OFD Sender: No OFD packet to send [01:47:51]OFD Sender: No OFD packet to send [01:47:56]OFD Sender: No OFD packet to send [01:48:01]OFD Sender: No OFD packet to send [01:48:06]OFD Sender: No OFD packet to send [01:48:11]OFD Sender: No OFD packet to send [01:48:16]OFD Sender: No OFD packet to send [01:48:21]OFD Sender: No OFD packet to send [01:48:26]OFD Sender: No OFD packet to send [01:48:31]OFD Sender: No OFD packet to send [01:48:36]OFD Sender: No OFD packet to send [01:48:41]OFD Sender: No OFD packet to send [01:48:46]OFD Sender: No OFD packet to send [01:48:51]OFD Sender: No OFD packet to send [01:48:56]OFD Sender: No OFD packet to send [01:49:01]OFD Sender: No OFD packet to send [01:49:06]OFD Sender: No OFD packet to send [01:49:11]OFD Sender: No OFD packet to send [01:49:16]OFD Sender: No OFD packet to send [01:49:21]OFD Sender: No OFD packet to send [01:49:26]OFD Sender: No OFD packet to send [01:49:31]OFD Sender: No OFD packet to send [01:49:36]OFD Sender: No OFD packet to send [01:49:41]OFD Sender: No OFD packet to send [01:49:46]OFD Sender: No OFD packet to send [01:49:51]OFD Sender: No OFD packet to send [01:49:56]OFD Sender: No OFD packet to send [01:50:01]OFD Sender: No OFD packet to send [01:50:06]OFD Sender: No OFD packet to send [01:50:11]OFD Sender: No OFD packet to send [01:50:16]OFD Sender: No OFD packet to send [01:50:21]OFD Sender: No OFD packet to send [01:50:26]OFD Sender: No OFD packet to send [01:50:31]OFD Sender: No OFD packet to send [01:50:36]OFD Sender: No OFD packet to send [01:50:41]OFD Sender: No OFD packet to send [01:50:46]OFD Sender: No OFD packet to send [01:50:51]OFD Sender: No OFD packet to send [01:50:56]OFD Sender: No OFD packet to send [01:51:01]OFD Sender: No OFD packet to send [01:51:06]OFD Sender: No OFD packet to send [01:51:11]OFD Sender: No OFD packet to send [01:51:16]OFD Sender: No OFD packet to send [01:51:21]OFD Sender: No OFD packet to send [01:51:26]OFD Sender: No OFD packet to send [01:51:31]OFD Sender: No OFD packet to send [01:51:36]OFD Sender: No OFD packet to send [01:51:41]OFD Sender: No OFD packet to send [01:51:46]OFD Sender: No OFD packet to send [01:51:51]OFD Sender: No OFD packet to send [01:51:56]OFD Sender: No OFD packet to send [01:52:01]OFD Sender: No OFD packet to send [01:52:06]OFD Sender: No OFD packet to send [01:52:11]OFD Sender: No OFD packet to send [01:52:16]OFD Sender: No OFD packet to send [01:52:21]OFD Sender: No OFD packet to send [01:52:26]OFD Sender: No OFD packet to send [01:52:31]OFD Sender: No OFD packet to send [01:52:36]OFD Sender: No OFD packet to send [01:52:41]OFD Sender: No OFD packet to send [01:52:46]OFD Sender: No OFD packet to send [01:52:51]OFD Sender: No OFD packet to send [01:52:56]OFD Sender: No OFD packet to send [01:53:01]OFD Sender: No OFD packet to send [01:53:06]OFD Sender: No OFD packet to send [01:53:11]OFD Sender: No OFD packet to send [01:53:16]OFD Sender: No OFD packet to send [01:53:21]OFD Sender: No OFD packet to send [01:53:26]OFD Sender: No OFD packet to send [01:53:31]OFD Sender: No OFD packet to send [01:53:36]OFD Sender: No OFD packet to send [01:53:41]OFD Sender: No OFD packet to send [01:53:46]OFD Sender: No OFD packet to send [01:53:51]OFD Sender: No OFD packet to send [01:53:56]OFD Sender: No OFD packet to send [01:54:01]OFD Sender: No OFD packet to send [01:54:06]OFD Sender: No OFD packet to send [01:54:11]OFD Sender: No OFD packet to send [01:54:16]OFD Sender: No OFD packet to send [01:54:21]OFD Sender: No OFD packet to send [01:54:26]OFD Sender: No OFD packet to send [01:54:31]OFD Sender: No OFD packet to send [01:54:36]OFD Sender: No OFD packet to send [01:54:41]OFD Sender: No OFD packet to send [01:54:46]OFD Sender: No OFD packet to send [01:54:51]OFD Sender: No OFD packet to send [01:54:56]OFD Sender: No OFD packet to send [01:55:01]OFD Sender: No OFD packet to send [01:55:06]OFD Sender: No OFD packet to send [01:55:11]OFD Sender: No OFD packet to send [01:55:16]OFD Sender: No OFD packet to send [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:06]OFD Sender: No OFD packet to send [01:56:11]OFD Sender: No OFD packet to send [01:56:16]OFD Sender: No OFD packet to send [01:56:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [01:56:31]OFD Sender: No OFD packet to send [01:56:36]OFD Sender: No OFD packet to send [01:56:41]OFD Sender: No OFD packet to send [01:56:46]OFD Sender: No OFD packet to send [01:56:51]OFD Sender: No OFD packet to send [01:56:56]OFD Sender: No OFD packet to send [01:57:01]OFD Sender: No OFD packet to send [01:57:06]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:07]OFD Sender: No OFD packet to send [01:58:12]OFD Sender: No OFD packet to send [01:58:17]OFD Sender: No OFD packet to send [01:58:22]OFD Sender: No OFD packet to send [01:58:27]OFD Sender: No OFD packet to send [01:58:32]OFD Sender: No OFD packet to send [01:58:37]OFD Sender: No OFD packet to send [01:58:42]OFD Sender: No OFD packet to send [01:58:47]OFD Sender: No OFD packet to send [01:58:52]OFD Sender: No OFD packet to send [01:58:57]OFD Sender: No OFD packet to send [01:59:02]OFD Sender: No OFD packet to send [01:59:07]OFD Sender: No OFD packet to send [01:59:12]OFD Sender: No OFD packet to send [01:59:17]OFD Sender: No OFD packet to send [01:59:22]OFD Sender: No OFD packet to send [01:59:27]OFD Sender: No OFD packet to send [01:59:32]OFD Sender: No OFD packet to send [01:59:37]OFD Sender: No OFD packet to send [01:59:42]OFD Sender: No OFD packet to send [01:59:47]OFD Sender: No OFD packet to send [01:59:52]OFD Sender: No OFD packet to send [01:59:57]OFD Sender: No OFD packet to send [02:00:02]OFD Sender: No OFD packet to send [02:00:07]OFD Sender: No OFD packet to send [02:00:12]OFD Sender: No OFD packet to send [02:00:17]OFD Sender: No OFD packet to send [02:00:22]OFD Sender: No OFD packet to send [02:00:27]OFD Sender: No OFD packet to send [02:00:32]OFD Sender: No OFD packet to send [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:52]OFD Sender: No OFD packet to send [02:00:57]OFD Sender: No OFD packet to send [02:01:02]OFD Sender: No OFD packet to send [02:01:07]OFD Sender: No OFD packet to send [02:01:12]OFD Sender: No OFD packet to send [02:01:17]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:52]OFD Sender: No OFD packet to send [02:01:57]OFD Sender: No OFD packet to send [02:02:02]OFD Sender: No OFD packet to send [02:02:07]OFD Sender: No OFD packet to send [02:02:12]OFD Sender: No OFD packet to send [02:02:17]OFD Sender: No OFD packet to send [02:02:22]OFD Sender: No OFD packet to send [02:02:27]OFD Sender: No OFD packet to send [02:02:32]OFD Sender: No OFD packet to send [02:02:37]OFD Sender: No OFD packet to send [02:02:42]OFD Sender: No OFD packet to send [02:02:47]OFD Sender: No OFD packet to send [02:02:52]OFD Sender: No OFD packet to send [02:02:57]OFD Sender: No OFD packet to send [02:03:02]OFD Sender: No OFD packet to send [02:03:07]OFD Sender: No OFD packet to send [02:03:12]OFD Sender: No OFD packet to send [02:03:17]OFD Sender: No OFD packet to send [02:03:22]OFD Sender: No OFD packet to send [02:03:27]OFD Sender: No OFD packet to send [02:03:32]OFD Sender: No OFD packet to send [02:03:37]OFD Sender: No OFD packet to send [02:03:42]OFD Sender: No OFD packet to send [02:03:47]OFD Sender: No OFD packet to send [02:03:52]OFD Sender: No OFD packet to send [02:03:57]OFD Sender: No OFD packet to send [02:04:02]OFD Sender: No OFD packet to send [02:04:07]OFD Sender: No OFD packet to send [02:04:12]OFD Sender: No OFD packet to send [02:04:17]OFD Sender: No OFD packet to send [02:04:22]OFD Sender: No OFD packet to send [02:04:27]OFD Sender: No OFD packet to send [02:04:32]OFD Sender: No OFD packet to send [02:04:37]OFD Sender: No OFD packet to send [02:04:42]OFD Sender: No OFD packet to send [02:04:47]OFD Sender: No OFD packet to send [02:04:52]OFD Sender: No OFD packet to send [02:04:57]OFD Sender: No OFD packet to send [02:05:02]OFD Sender: No OFD packet to send [02:05:07]OFD Sender: No OFD packet to send [02:05:12]OFD Sender: No OFD packet to send [02:05:17]OFD Sender: No OFD packet to send [02:05:22]OFD Sender: No OFD packet to send [02:05:27]OFD Sender: No OFD packet to send [02:05:32]OFD Sender: No OFD packet to send [02:05:37]OFD Sender: No OFD packet to send [02:05:42]OFD Sender: No OFD packet to send [02:05:47]OFD Sender: No OFD packet to send [02:05:52]OFD Sender: No OFD packet to send [02:05:57]OFD Sender: No OFD packet to send [02:06:02]OFD Sender: No OFD packet to send [02:06:07]OFD Sender: No OFD packet to send [02:06:12]OFD Sender: No OFD packet to send [02:06:17]OFD Sender: No OFD packet to send [02:06:22]OFD Sender: No OFD packet to send [02:06:27]OFD Sender: No OFD packet to send [02:06:32]OFD Sender: No OFD packet to send [02:06:37]OFD Sender: No OFD packet to send [02:06:42]OFD Sender: No OFD packet to send [02:06:47]OFD Sender: No OFD packet to send [02:06:52]OFD Sender: No OFD packet to send [02:06:57]OFD Sender: No OFD packet to send [02:07:02]OFD Sender: No OFD packet to send [02:07:07]OFD Sender: No OFD packet to send [02:07:12]OFD Sender: No OFD packet to send [02:07:17]OFD Sender: No OFD packet to send [02:07:22]OFD Sender: No OFD packet to send [02:07:27]OFD Sender: No OFD packet to send [02:07:32]OFD Sender: No OFD packet to send [02:07:37]OFD Sender: No OFD packet to send [02:07:42]OFD Sender: No OFD packet to send [02:07:47]OFD Sender: No OFD packet to send [02:07:52]OFD Sender: No OFD packet to send [02:07:57]OFD Sender: No OFD packet to send [02:08:02]OFD Sender: No OFD packet to send [02:08:07]OFD Sender: No OFD packet to send [02:08:12]OFD Sender: No OFD packet to send [02:08:17]OFD Sender: No OFD packet to send [02:08:22]OFD Sender: No OFD packet to send [02:08:27]OFD Sender: No OFD packet to send [02:08:32]OFD Sender: No OFD packet to send [02:08:37]OFD Sender: No OFD packet to send [02:08:42]OFD Sender: No OFD packet to send [02:08:47]OFD Sender: No OFD packet to send [02:08:52]OFD Sender: No OFD packet to send [02:08:57]OFD Sender: No OFD packet to send [02:09:02]OFD Sender: No OFD packet to send [02:09:07]OFD Sender: No OFD packet to send [02:09:12]OFD Sender: No OFD packet to send [02:09:17]OFD Sender: No OFD packet to send [02:09:22]OFD Sender: No OFD packet to send [02:09:27]OFD Sender: No OFD packet to send [02:09:32]OFD Sender: No OFD packet to send [02:09:37]OFD Sender: No OFD packet to send [02:09:42]OFD Sender: No OFD packet to send [02:09:47]OFD Sender: No OFD packet to send [02:09:52]OFD Sender: No OFD packet to send [02:09:57]OFD Sender: No OFD packet to send [02:10:02]OFD Sender: No OFD packet to send [02:10:07]OFD Sender: No OFD packet to send [02:10:12]OFD Sender: No OFD packet to send [02:10:17]OFD Sender: No OFD packet to send [02:10:22]OFD Sender: No OFD packet to send [02:10:27]OFD Sender: No OFD packet to send [02:10:32]OFD Sender: No OFD packet to send [02:10:37]OFD Sender: No OFD packet to send [02:10:42]OFD Sender: No OFD packet to send [02:10:47]OFD Sender: No OFD packet to send [02:10:52]OFD Sender: No OFD packet to send [02:10:57]OFD Sender: No OFD packet to send [02:11:02]OFD Sender: No OFD packet to send [02:11:07]OFD Sender: No OFD packet to send [02:11:12]OFD Sender: No OFD packet to send [02:11:17]OFD Sender: No OFD packet to send [02:11:22]OFD Sender: No OFD packet to send [02:11:27]OFD Sender: No OFD packet to send [02:11:32]OFD Sender: No OFD packet to send [02:11:37]OFD Sender: No OFD packet to send [02:11:42]OFD Sender: No OFD packet to send [02:11:47]OFD Sender: No OFD packet to send [02:11:52]OFD Sender: No OFD packet to send [02:11:57]OFD Sender: No OFD packet to send [02:12:02]OFD Sender: No OFD packet to send [02:12:07]OFD Sender: No OFD packet to send [02:12:12]OFD Sender: No OFD packet to send [02:12:17]OFD Sender: No OFD packet to send [02:12:22]OFD Sender: No OFD packet to send [02:12:27]OFD Sender: No OFD packet to send [02:12:32]OFD Sender: No OFD packet to send [02:12:37]OFD Sender: No OFD packet to send [02:12:42]OFD Sender: No OFD packet to send [02:12:47]OFD Sender: No OFD packet to send [02:12:52]OFD Sender: No OFD packet to send [02:12:57]OFD Sender: No OFD packet to send [02:13:02]OFD Sender: No OFD packet to send [02:13:07]OFD Sender: No OFD packet to send [02:13:12]OFD Sender: No OFD packet to send [02:13:17]OFD Sender: No OFD packet to send [02:13:22]OFD Sender: No OFD packet to send [02:13:27]OFD Sender: No OFD packet to send [02:13:32]OFD Sender: No OFD packet to send [02:13:37]OFD Sender: No OFD packet to send [02:13:42]OFD Sender: No OFD packet to send [02:13:47]OFD Sender: No OFD packet to send [02:13:52]OFD Sender: No OFD packet to send [02:13:57]OFD Sender: No OFD packet to send [02:14:02]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:58]OFD Sender: No OFD packet to send [02:25:03]OFD Sender: No OFD packet to send [02:25:08]OFD Sender: No OFD packet to send [02:25:13]OFD Sender: No OFD packet to send [02:25:18]OFD Sender: No OFD packet to send [02:25:23]OFD Sender: No OFD packet to send [02:25:28]OFD Sender: No OFD packet to send [02:25:33]OFD Sender: No OFD packet to send [02:25:38]OFD Sender: No OFD packet to send [02:25:43]OFD Sender: No OFD packet to send [02:25:48]OFD Sender: No OFD packet to send [02:25:53]OFD Sender: No OFD packet to send [02:25:58]OFD Sender: No OFD packet to send [02:26:03]OFD Sender: No OFD packet to send [02:26:08]OFD Sender: No OFD packet to send [02:26:13]OFD Sender: No OFD packet to send [02:26:18]OFD Sender: No OFD packet to send [02:26:23]OFD Sender: No OFD packet to send [02:26:28]OFD Sender: No OFD packet to send [02:26:33]OFD Sender: No OFD packet to send [02:26:38]OFD Sender: No OFD packet to send [02:26:43]OFD Sender: No OFD packet to send [02:26:48]OFD Sender: No OFD packet to send [02:26:53]OFD Sender: No OFD packet to send [02:26:58]OFD Sender: No OFD packet to send [02:27:03]OFD Sender: No OFD packet to send [02:27:08]OFD Sender: No OFD packet to send [02:27:13]OFD Sender: No OFD packet to send [02:27:18]OFD Sender: No OFD packet to send [02:27:23]OFD Sender: No OFD packet to send [02:27:28]OFD Sender: No OFD packet to send [02:27:33]OFD Sender: No OFD packet to send [02:27:38]OFD Sender: No OFD packet to send [02:27:43]OFD Sender: No OFD packet to send [02:27:48]OFD Sender: No OFD packet to send [02:27:53]OFD Sender: No OFD packet to send [02:27:58]OFD Sender: No OFD packet to send [02:28:03]OFD Sender: No OFD packet to send [02:28:08]OFD Sender: No OFD packet to send [02:28:13]OFD Sender: No OFD packet to send [02:28:18]OFD Sender: No OFD packet to send [02:28:23]OFD Sender: No OFD packet to send [02:28:28]OFD Sender: No OFD packet to send [02:28:33]OFD Sender: No OFD packet to send [02:28:38]OFD Sender: No OFD packet to send [02:28:43]OFD Sender: No OFD packet to send [02:28:48]OFD Sender: No OFD packet to send [02:28:53]OFD Sender: No OFD packet to send [02:28:58]OFD Sender: No OFD packet to send [02:29:03]OFD Sender: No OFD packet to send [02:29:08]OFD Sender: No OFD packet to send [02:29:13]OFD Sender: No OFD packet to send [02:29:18]OFD Sender: No OFD packet to send [02:29:23]OFD Sender: No OFD packet to send [02:29:28]OFD Sender: No OFD packet to send [02:29:33]OFD Sender: No OFD packet to send [02:29:38]OFD Sender: No OFD packet to send [02:29:43]OFD Sender: No OFD packet to send [02:29:48]OFD Sender: No OFD packet to send [02:29:53]OFD Sender: No OFD packet to send [02:29:58]OFD Sender: No OFD packet to send [02:30:03]OFD Sender: No OFD packet to send [02:30:08]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:34]OFD Sender: No OFD packet to send [02:39:39]OFD Sender: No OFD packet to send [02:39:44]OFD Sender: No OFD packet to send [02:39:49]OFD Sender: No OFD packet to send [02:39:54]OFD Sender: No OFD packet to send [02:39:59]OFD Sender: No OFD packet to send [02:40:04]OFD Sender: No OFD packet to send [02:40:09]OFD Sender: No OFD packet to send [02:40:14]OFD Sender: No OFD packet to send [02:40:19]OFD Sender: No OFD packet to send [02:40:24]OFD Sender: No OFD packet to send [02:40:29]OFD Sender: No OFD packet to send [02:40:34]OFD Sender: No OFD packet to send [02:40:39]OFD Sender: No OFD packet to send [02:40:44]OFD Sender: No OFD packet to send [02:40:49]OFD Sender: No OFD packet to send [02:40:54]OFD Sender: No OFD packet to send [02:40:59]OFD Sender: No OFD packet to send [02:41:04]OFD Sender: No OFD packet to send [02:41:09]OFD Sender: No OFD packet to send [02:41:14]OFD Sender: No OFD packet to send [02:41:19]OFD Sender: No OFD packet to send [02:41:24]OFD Sender: No OFD packet to send [02:41:29]OFD Sender: No OFD packet to send [02:41:34]OFD Sender: No OFD packet to send [02:41:39]OFD Sender: No OFD packet to send [02:41:44]OFD Sender: No OFD packet to send [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]OFD Sender: No OFD packet to send [02:42:24]OFD Sender: No OFD packet to send [02:42:29]OFD Sender: No OFD packet to send [02:42:34]OFD Sender: No OFD packet to send [02:42:39]OFD Sender: No OFD packet to send [02:42:44]OFD Sender: No OFD packet to send [02:42:49]OFD Sender: No OFD packet to send [02:42:54]OFD Sender: No OFD packet to send [02:42:59]OFD Sender: No OFD packet to send [02:43:04]OFD Sender: No OFD packet to send [02:43:09]OFD Sender: No OFD packet to send [02:43:14]OFD Sender: No OFD packet to send [02:43:19]OFD Sender: No OFD packet to send [02:43:24]OFD Sender: No OFD packet to send [02:43:29]OFD Sender: No OFD packet to send [02:43:34]OFD Sender: No OFD packet to send [02:43:39]OFD Sender: No OFD packet to send [02:43:44]OFD Sender: No OFD packet to send [02:43:49]OFD Sender: No OFD packet to send [02:43:54]OFD Sender: No OFD packet to send [02:43:59]OFD Sender: No OFD packet to send [02:44:04]OFD Sender: No OFD packet to send [02:44:09]OFD Sender: No OFD packet to send [02:44:14]OFD Sender: No OFD packet to send [02:44:19]OFD Sender: No OFD packet to send [02:44:24]OFD Sender: No OFD packet to send [02:44:29]OFD Sender: No OFD packet to send [02:44:34]OFD Sender: No OFD packet to send [02:44:39]OFD Sender: No OFD packet to send [02:44:44]OFD Sender: No OFD packet to send [02:44:49]OFD Sender: No OFD packet to send [02:44:54]OFD Sender: No OFD packet to send [02:44:59]OFD Sender: No OFD packet to send [02:45:04]OFD Sender: No OFD packet to send [02:45:09]OFD Sender: No OFD packet to send [02:45:14]OFD Sender: No OFD packet to send [02:45:19]OFD Sender: No OFD packet to send [02:45:24]OFD Sender: No OFD packet to send [02:45:29]OFD Sender: No OFD packet to send [02:45:34]OFD Sender: No OFD packet to send [02:45:39]OFD Sender: No OFD packet to send [02:45:44]OFD Sender: No OFD packet to send [02:45:49]OFD Sender: No OFD packet to send [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46: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:48:45]OFD Sender: No OFD packet to send [02:48:50]OFD Sender: No OFD packet to send [02:48:55]OFD Sender: No OFD packet to send [02:49:00]OFD Sender: No OFD packet to send [02:49:05]OFD Sender: No OFD packet to send [02:49:10]OFD Sender: No OFD packet to send [02:49:15]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:30]OFD Sender: No OFD packet to send [02:49:35]OFD Sender: No OFD packet to send [02:49:40]OFD Sender: No OFD packet to send [02:49:45]OFD Sender: No OFD packet to send [02:49:50]OFD Sender: No OFD packet to send [02:49:55]OFD Sender: No OFD packet to send [02:50:00]OFD Sender: No OFD packet to send [02:50:05]OFD Sender: No OFD packet to send [02:50:10]OFD Sender: No OFD packet to send [02:50:15]OFD Sender: No OFD packet to send [02:50:20]OFD Sender: No OFD packet to send [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:50]OFD Sender: No OFD packet to send [02:50:55]OFD Sender: No OFD packet to send [02:51:00]OFD Sender: No OFD packet to send [02:51:05]OFD Sender: No OFD packet to send [02:51:10]OFD Sender: No OFD packet to send [02:51:15]OFD Sender: No OFD packet to send [02:51:20]OFD Sender: No OFD packet to send [02:51:25]OFD Sender: No OFD packet to send [02:51:30]OFD Sender: No OFD packet to send [02:51:35]OFD Sender: No OFD packet to send